libgomp/test: Remove a build sysroot fix regression
[gcc.git] / libgomp / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GNU Offloading and Multi Processing Runtime Library 1.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
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 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='GNU Offloading and Multi Processing Runtime Library'
589 PACKAGE_TARNAME='libgomp'
590 PACKAGE_VERSION='1.0'
591 PACKAGE_STRING='GNU Offloading and Multi Processing Runtime Library 1.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL='http://www.gnu.org/software/libgomp/'
594
595 # Factoring default headers for most tests.
596 ac_includes_default="\
597 #include <stdio.h>
598 #ifdef HAVE_SYS_TYPES_H
599 # include <sys/types.h>
600 #endif
601 #ifdef HAVE_SYS_STAT_H
602 # include <sys/stat.h>
603 #endif
604 #ifdef STDC_HEADERS
605 # include <stdlib.h>
606 # include <stddef.h>
607 #else
608 # ifdef HAVE_STDLIB_H
609 # include <stdlib.h>
610 # endif
611 #endif
612 #ifdef HAVE_STRING_H
613 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
614 # include <memory.h>
615 # endif
616 # include <string.h>
617 #endif
618 #ifdef HAVE_STRINGS_H
619 # include <strings.h>
620 #endif
621 #ifdef HAVE_INTTYPES_H
622 # include <inttypes.h>
623 #endif
624 #ifdef HAVE_STDINT_H
625 # include <stdint.h>
626 #endif
627 #ifdef HAVE_UNISTD_H
628 # include <unistd.h>
629 #endif"
630
631 ac_header_list=
632 ac_func_list=
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 OMP_NEST_LOCK_25_KIND
639 OMP_LOCK_25_KIND
640 OMP_NEST_LOCK_25_ALIGN
641 OMP_NEST_LOCK_25_SIZE
642 OMP_LOCK_25_ALIGN
643 OMP_LOCK_25_SIZE
644 OMP_NEST_LOCK_KIND
645 OMP_LOCK_KIND
646 OMP_NEST_LOCK_ALIGN
647 OMP_NEST_LOCK_SIZE
648 OMP_LOCK_ALIGN
649 OMP_LOCK_SIZE
650 USE_FORTRAN_FALSE
651 USE_FORTRAN_TRUE
652 link_gomp
653 XLDFLAGS
654 XCFLAGS
655 config_path
656 CPU_COUNT
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
662 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
663 OPT_LDFLAGS
664 SECTION_LDFLAGS
665 PLUGIN_GCN_FALSE
666 PLUGIN_GCN_TRUE
667 PLUGIN_HSA_FALSE
668 PLUGIN_HSA_TRUE
669 PLUGIN_NVPTX_FALSE
670 PLUGIN_NVPTX_TRUE
671 offload_additional_lib_paths
672 offload_additional_options
673 offload_targets
674 offload_plugins
675 PLUGIN_GCN_LIBS
676 PLUGIN_GCN_LDFLAGS
677 PLUGIN_GCN_CPPFLAGS
678 PLUGIN_GCN
679 PLUGIN_HSA_LIBS
680 PLUGIN_HSA_LDFLAGS
681 PLUGIN_HSA_CPPFLAGS
682 PLUGIN_HSA
683 HSA_RUNTIME_LIB
684 HSA_RUNTIME_INCLUDE
685 PLUGIN_NVPTX_LIBS
686 PLUGIN_NVPTX_LDFLAGS
687 PLUGIN_NVPTX_CPPFLAGS
688 PLUGIN_NVPTX
689 CUDA_DRIVER_LIB
690 CUDA_DRIVER_INCLUDE
691 libtool_VERSION
692 ac_ct_FC
693 FCFLAGS
694 FC
695 MAINT
696 MAINTAINER_MODE_FALSE
697 MAINTAINER_MODE_TRUE
698 enable_static
699 enable_shared
700 lt_host_flags
701 CPP
702 OTOOL64
703 OTOOL
704 LIPO
705 NMEDIT
706 DSYMUTIL
707 OBJDUMP
708 LN_S
709 NM
710 ac_ct_DUMPBIN
711 DUMPBIN
712 LD
713 FGREP
714 EGREP
715 GREP
716 SED
717 LIBTOOL
718 BUILD_INFO_FALSE
719 BUILD_INFO_TRUE
720 PERL
721 RANLIB
722 AR
723 am__fastdepCC_FALSE
724 am__fastdepCC_TRUE
725 CCDEPMODE
726 am__nodep
727 AMDEPBACKSLASH
728 AMDEP_FALSE
729 AMDEP_TRUE
730 am__quote
731 am__include
732 DEPDIR
733 OBJEXT
734 EXEEXT
735 ac_ct_CC
736 CPPFLAGS
737 LDFLAGS
738 CFLAGS
739 CC
740 toolexeclibdir
741 toolexecdir
742 multi_basedir
743 AM_BACKSLASH
744 AM_DEFAULT_VERBOSITY
745 AM_DEFAULT_V
746 AM_V
747 am__untar
748 am__tar
749 AMTAR
750 am__leading_dot
751 SET_MAKE
752 AWK
753 mkdir_p
754 MKDIR_P
755 INSTALL_STRIP_PROGRAM
756 STRIP
757 install_sh
758 MAKEINFO
759 AUTOHEADER
760 AUTOMAKE
761 AUTOCONF
762 ACLOCAL
763 VERSION
764 PACKAGE
765 CYGPATH_W
766 am__isrc
767 INSTALL_DATA
768 INSTALL_SCRIPT
769 INSTALL_PROGRAM
770 target_os
771 target_vendor
772 target_cpu
773 target
774 host_os
775 host_vendor
776 host_cpu
777 host
778 build_os
779 build_vendor
780 build_cpu
781 build
782 GENINSRC_FALSE
783 GENINSRC_TRUE
784 target_alias
785 host_alias
786 build_alias
787 LIBS
788 ECHO_T
789 ECHO_N
790 ECHO_C
791 DEFS
792 mandir
793 localedir
794 libdir
795 psdir
796 pdfdir
797 dvidir
798 htmldir
799 infodir
800 docdir
801 oldincludedir
802 includedir
803 localstatedir
804 sharedstatedir
805 sysconfdir
806 datadir
807 datarootdir
808 libexecdir
809 sbindir
810 bindir
811 program_transform_name
812 prefix
813 exec_prefix
814 PACKAGE_URL
815 PACKAGE_BUGREPORT
816 PACKAGE_STRING
817 PACKAGE_VERSION
818 PACKAGE_TARNAME
819 PACKAGE_NAME
820 PATH_SEPARATOR
821 SHELL'
822 ac_subst_files=''
823 ac_user_opts='
824 enable_option_checking
825 enable_version_specific_runtime_libs
826 enable_generated_files_in_srcdir
827 enable_silent_rules
828 enable_multilib
829 with_toolexeclibdir
830 enable_dependency_tracking
831 enable_shared
832 enable_static
833 with_pic
834 enable_fast_install
835 with_gnu_ld
836 enable_libtool_lock
837 enable_maintainer_mode
838 with_cuda_driver
839 with_cuda_driver_include
840 with_cuda_driver_lib
841 with_hsa_runtime
842 with_hsa_runtime_include
843 with_hsa_runtime_lib
844 enable_linux_futex
845 enable_tls
846 enable_symvers
847 enable_cet
848 with_gcc_major_version_only
849 '
850 ac_precious_vars='build_alias
851 host_alias
852 target_alias
853 CPP
854 CPPFLAGS
855 FC
856 FCFLAGS
857 LDFLAGS
858 LIBS'
859
860
861 # Initialize some variables set by options.
862 ac_init_help=
863 ac_init_version=false
864 ac_unrecognized_opts=
865 ac_unrecognized_sep=
866 # The variables have the same names as the options, with
867 # dashes changed to underlines.
868 cache_file=/dev/null
869 exec_prefix=NONE
870 no_create=
871 no_recursion=
872 prefix=NONE
873 program_prefix=NONE
874 program_suffix=NONE
875 program_transform_name=s,x,x,
876 silent=
877 site=
878 srcdir=
879 verbose=
880 x_includes=NONE
881 x_libraries=NONE
882
883 # Installation directory options.
884 # These are left unexpanded so users can "make install exec_prefix=/foo"
885 # and all the variables that are supposed to be based on exec_prefix
886 # by default will actually change.
887 # Use braces instead of parens because sh, perl, etc. also accept them.
888 # (The list follows the same order as the GNU Coding Standards.)
889 bindir='${exec_prefix}/bin'
890 sbindir='${exec_prefix}/sbin'
891 libexecdir='${exec_prefix}/libexec'
892 datarootdir='${prefix}/share'
893 datadir='${datarootdir}'
894 sysconfdir='${prefix}/etc'
895 sharedstatedir='${prefix}/com'
896 localstatedir='${prefix}/var'
897 includedir='${prefix}/include'
898 oldincludedir='/usr/include'
899 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
900 infodir='${datarootdir}/info'
901 htmldir='${docdir}'
902 dvidir='${docdir}'
903 pdfdir='${docdir}'
904 psdir='${docdir}'
905 libdir='${exec_prefix}/lib'
906 localedir='${datarootdir}/locale'
907 mandir='${datarootdir}/man'
908
909 ac_prev=
910 ac_dashdash=
911 for ac_option
912 do
913 # If the previous option needs an argument, assign it.
914 if test -n "$ac_prev"; then
915 eval $ac_prev=\$ac_option
916 ac_prev=
917 continue
918 fi
919
920 case $ac_option in
921 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
922 *=) ac_optarg= ;;
923 *) ac_optarg=yes ;;
924 esac
925
926 # Accept the important Cygnus configure options, so we can diagnose typos.
927
928 case $ac_dashdash$ac_option in
929 --)
930 ac_dashdash=yes ;;
931
932 -bindir | --bindir | --bindi | --bind | --bin | --bi)
933 ac_prev=bindir ;;
934 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
935 bindir=$ac_optarg ;;
936
937 -build | --build | --buil | --bui | --bu)
938 ac_prev=build_alias ;;
939 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
940 build_alias=$ac_optarg ;;
941
942 -cache-file | --cache-file | --cache-fil | --cache-fi \
943 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
944 ac_prev=cache_file ;;
945 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
946 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
947 cache_file=$ac_optarg ;;
948
949 --config-cache | -C)
950 cache_file=config.cache ;;
951
952 -datadir | --datadir | --datadi | --datad)
953 ac_prev=datadir ;;
954 -datadir=* | --datadir=* | --datadi=* | --datad=*)
955 datadir=$ac_optarg ;;
956
957 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
958 | --dataroo | --dataro | --datar)
959 ac_prev=datarootdir ;;
960 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
961 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
962 datarootdir=$ac_optarg ;;
963
964 -disable-* | --disable-*)
965 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
966 # Reject names that are not valid shell variable names.
967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
968 as_fn_error $? "invalid feature name: $ac_useropt"
969 ac_useropt_orig=$ac_useropt
970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
971 case $ac_user_opts in
972 *"
973 "enable_$ac_useropt"
974 "*) ;;
975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
976 ac_unrecognized_sep=', ';;
977 esac
978 eval enable_$ac_useropt=no ;;
979
980 -docdir | --docdir | --docdi | --doc | --do)
981 ac_prev=docdir ;;
982 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
983 docdir=$ac_optarg ;;
984
985 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
986 ac_prev=dvidir ;;
987 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
988 dvidir=$ac_optarg ;;
989
990 -enable-* | --enable-*)
991 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
992 # Reject names that are not valid shell variable names.
993 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
994 as_fn_error $? "invalid feature name: $ac_useropt"
995 ac_useropt_orig=$ac_useropt
996 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
997 case $ac_user_opts in
998 *"
999 "enable_$ac_useropt"
1000 "*) ;;
1001 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1002 ac_unrecognized_sep=', ';;
1003 esac
1004 eval enable_$ac_useropt=\$ac_optarg ;;
1005
1006 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1007 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1008 | --exec | --exe | --ex)
1009 ac_prev=exec_prefix ;;
1010 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1011 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1012 | --exec=* | --exe=* | --ex=*)
1013 exec_prefix=$ac_optarg ;;
1014
1015 -gas | --gas | --ga | --g)
1016 # Obsolete; use --with-gas.
1017 with_gas=yes ;;
1018
1019 -help | --help | --hel | --he | -h)
1020 ac_init_help=long ;;
1021 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1022 ac_init_help=recursive ;;
1023 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1024 ac_init_help=short ;;
1025
1026 -host | --host | --hos | --ho)
1027 ac_prev=host_alias ;;
1028 -host=* | --host=* | --hos=* | --ho=*)
1029 host_alias=$ac_optarg ;;
1030
1031 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1032 ac_prev=htmldir ;;
1033 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1034 | --ht=*)
1035 htmldir=$ac_optarg ;;
1036
1037 -includedir | --includedir | --includedi | --included | --include \
1038 | --includ | --inclu | --incl | --inc)
1039 ac_prev=includedir ;;
1040 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1041 | --includ=* | --inclu=* | --incl=* | --inc=*)
1042 includedir=$ac_optarg ;;
1043
1044 -infodir | --infodir | --infodi | --infod | --info | --inf)
1045 ac_prev=infodir ;;
1046 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1047 infodir=$ac_optarg ;;
1048
1049 -libdir | --libdir | --libdi | --libd)
1050 ac_prev=libdir ;;
1051 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1052 libdir=$ac_optarg ;;
1053
1054 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1055 | --libexe | --libex | --libe)
1056 ac_prev=libexecdir ;;
1057 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1058 | --libexe=* | --libex=* | --libe=*)
1059 libexecdir=$ac_optarg ;;
1060
1061 -localedir | --localedir | --localedi | --localed | --locale)
1062 ac_prev=localedir ;;
1063 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1064 localedir=$ac_optarg ;;
1065
1066 -localstatedir | --localstatedir | --localstatedi | --localstated \
1067 | --localstate | --localstat | --localsta | --localst | --locals)
1068 ac_prev=localstatedir ;;
1069 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1070 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1071 localstatedir=$ac_optarg ;;
1072
1073 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1074 ac_prev=mandir ;;
1075 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1076 mandir=$ac_optarg ;;
1077
1078 -nfp | --nfp | --nf)
1079 # Obsolete; use --without-fp.
1080 with_fp=no ;;
1081
1082 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1083 | --no-cr | --no-c | -n)
1084 no_create=yes ;;
1085
1086 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1087 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1088 no_recursion=yes ;;
1089
1090 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1091 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1092 | --oldin | --oldi | --old | --ol | --o)
1093 ac_prev=oldincludedir ;;
1094 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1095 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1096 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1097 oldincludedir=$ac_optarg ;;
1098
1099 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1100 ac_prev=prefix ;;
1101 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1102 prefix=$ac_optarg ;;
1103
1104 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1105 | --program-pre | --program-pr | --program-p)
1106 ac_prev=program_prefix ;;
1107 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1108 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1109 program_prefix=$ac_optarg ;;
1110
1111 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1112 | --program-suf | --program-su | --program-s)
1113 ac_prev=program_suffix ;;
1114 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1115 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1116 program_suffix=$ac_optarg ;;
1117
1118 -program-transform-name | --program-transform-name \
1119 | --program-transform-nam | --program-transform-na \
1120 | --program-transform-n | --program-transform- \
1121 | --program-transform | --program-transfor \
1122 | --program-transfo | --program-transf \
1123 | --program-trans | --program-tran \
1124 | --progr-tra | --program-tr | --program-t)
1125 ac_prev=program_transform_name ;;
1126 -program-transform-name=* | --program-transform-name=* \
1127 | --program-transform-nam=* | --program-transform-na=* \
1128 | --program-transform-n=* | --program-transform-=* \
1129 | --program-transform=* | --program-transfor=* \
1130 | --program-transfo=* | --program-transf=* \
1131 | --program-trans=* | --program-tran=* \
1132 | --progr-tra=* | --program-tr=* | --program-t=*)
1133 program_transform_name=$ac_optarg ;;
1134
1135 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1136 ac_prev=pdfdir ;;
1137 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1138 pdfdir=$ac_optarg ;;
1139
1140 -psdir | --psdir | --psdi | --psd | --ps)
1141 ac_prev=psdir ;;
1142 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1143 psdir=$ac_optarg ;;
1144
1145 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1146 | -silent | --silent | --silen | --sile | --sil)
1147 silent=yes ;;
1148
1149 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1150 ac_prev=sbindir ;;
1151 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1152 | --sbi=* | --sb=*)
1153 sbindir=$ac_optarg ;;
1154
1155 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1156 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1157 | --sharedst | --shareds | --shared | --share | --shar \
1158 | --sha | --sh)
1159 ac_prev=sharedstatedir ;;
1160 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1161 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1162 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1163 | --sha=* | --sh=*)
1164 sharedstatedir=$ac_optarg ;;
1165
1166 -site | --site | --sit)
1167 ac_prev=site ;;
1168 -site=* | --site=* | --sit=*)
1169 site=$ac_optarg ;;
1170
1171 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1172 ac_prev=srcdir ;;
1173 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1174 srcdir=$ac_optarg ;;
1175
1176 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1177 | --syscon | --sysco | --sysc | --sys | --sy)
1178 ac_prev=sysconfdir ;;
1179 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1180 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1181 sysconfdir=$ac_optarg ;;
1182
1183 -target | --target | --targe | --targ | --tar | --ta | --t)
1184 ac_prev=target_alias ;;
1185 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1186 target_alias=$ac_optarg ;;
1187
1188 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1189 verbose=yes ;;
1190
1191 -version | --version | --versio | --versi | --vers | -V)
1192 ac_init_version=: ;;
1193
1194 -with-* | --with-*)
1195 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1196 # Reject names that are not valid shell variable names.
1197 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1198 as_fn_error $? "invalid package name: $ac_useropt"
1199 ac_useropt_orig=$ac_useropt
1200 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1201 case $ac_user_opts in
1202 *"
1203 "with_$ac_useropt"
1204 "*) ;;
1205 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1206 ac_unrecognized_sep=', ';;
1207 esac
1208 eval with_$ac_useropt=\$ac_optarg ;;
1209
1210 -without-* | --without-*)
1211 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1212 # Reject names that are not valid shell variable names.
1213 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1214 as_fn_error $? "invalid package name: $ac_useropt"
1215 ac_useropt_orig=$ac_useropt
1216 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1217 case $ac_user_opts in
1218 *"
1219 "with_$ac_useropt"
1220 "*) ;;
1221 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1222 ac_unrecognized_sep=', ';;
1223 esac
1224 eval with_$ac_useropt=no ;;
1225
1226 --x)
1227 # Obsolete; use --with-x.
1228 with_x=yes ;;
1229
1230 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1231 | --x-incl | --x-inc | --x-in | --x-i)
1232 ac_prev=x_includes ;;
1233 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1234 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1235 x_includes=$ac_optarg ;;
1236
1237 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1238 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1239 ac_prev=x_libraries ;;
1240 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1241 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1242 x_libraries=$ac_optarg ;;
1243
1244 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1245 Try \`$0 --help' for more information"
1246 ;;
1247
1248 *=*)
1249 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1250 # Reject names that are not valid shell variable names.
1251 case $ac_envvar in #(
1252 '' | [0-9]* | *[!_$as_cr_alnum]* )
1253 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1254 esac
1255 eval $ac_envvar=\$ac_optarg
1256 export $ac_envvar ;;
1257
1258 *)
1259 # FIXME: should be removed in autoconf 3.0.
1260 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1261 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1262 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1263 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1264 ;;
1265
1266 esac
1267 done
1268
1269 if test -n "$ac_prev"; then
1270 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1271 as_fn_error $? "missing argument to $ac_option"
1272 fi
1273
1274 if test -n "$ac_unrecognized_opts"; then
1275 case $enable_option_checking in
1276 no) ;;
1277 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1278 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1279 esac
1280 fi
1281
1282 # Check all directory arguments for consistency.
1283 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1284 datadir sysconfdir sharedstatedir localstatedir includedir \
1285 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1286 libdir localedir mandir
1287 do
1288 eval ac_val=\$$ac_var
1289 # Remove trailing slashes.
1290 case $ac_val in
1291 */ )
1292 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1293 eval $ac_var=\$ac_val;;
1294 esac
1295 # Be sure to have absolute directory names.
1296 case $ac_val in
1297 [\\/$]* | ?:[\\/]* ) continue;;
1298 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1299 esac
1300 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1301 done
1302
1303 # There might be people who depend on the old broken behavior: `$host'
1304 # used to hold the argument of --host etc.
1305 # FIXME: To remove some day.
1306 build=$build_alias
1307 host=$host_alias
1308 target=$target_alias
1309
1310 # FIXME: To remove some day.
1311 if test "x$host_alias" != x; then
1312 if test "x$build_alias" = x; then
1313 cross_compiling=maybe
1314 elif test "x$build_alias" != "x$host_alias"; then
1315 cross_compiling=yes
1316 fi
1317 fi
1318
1319 ac_tool_prefix=
1320 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1321
1322 test "$silent" = yes && exec 6>/dev/null
1323
1324
1325 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1326 ac_ls_di=`ls -di .` &&
1327 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1328 as_fn_error $? "working directory cannot be determined"
1329 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1330 as_fn_error $? "pwd does not report name of working directory"
1331
1332
1333 # Find the source files, if location was not specified.
1334 if test -z "$srcdir"; then
1335 ac_srcdir_defaulted=yes
1336 # Try the directory containing this script, then the parent directory.
1337 ac_confdir=`$as_dirname -- "$as_myself" ||
1338 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1339 X"$as_myself" : 'X\(//\)[^/]' \| \
1340 X"$as_myself" : 'X\(//\)$' \| \
1341 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1342 $as_echo X"$as_myself" |
1343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1344 s//\1/
1345 q
1346 }
1347 /^X\(\/\/\)[^/].*/{
1348 s//\1/
1349 q
1350 }
1351 /^X\(\/\/\)$/{
1352 s//\1/
1353 q
1354 }
1355 /^X\(\/\).*/{
1356 s//\1/
1357 q
1358 }
1359 s/.*/./; q'`
1360 srcdir=$ac_confdir
1361 if test ! -r "$srcdir/$ac_unique_file"; then
1362 srcdir=..
1363 fi
1364 else
1365 ac_srcdir_defaulted=no
1366 fi
1367 if test ! -r "$srcdir/$ac_unique_file"; then
1368 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1369 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1370 fi
1371 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1372 ac_abs_confdir=`(
1373 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1374 pwd)`
1375 # When building in place, set srcdir=.
1376 if test "$ac_abs_confdir" = "$ac_pwd"; then
1377 srcdir=.
1378 fi
1379 # Remove unnecessary trailing slashes from srcdir.
1380 # Double slashes in file names in object file debugging info
1381 # mess up M-x gdb in Emacs.
1382 case $srcdir in
1383 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1384 esac
1385 for ac_var in $ac_precious_vars; do
1386 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_env_${ac_var}_value=\$${ac_var}
1388 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1389 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1390 done
1391
1392 #
1393 # Report the --help message.
1394 #
1395 if test "$ac_init_help" = "long"; then
1396 # Omit some internal or obsolete options to make the list less imposing.
1397 # This message is too long to be a string in the A/UX 3.1 sh.
1398 cat <<_ACEOF
1399 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1400
1401 Usage: $0 [OPTION]... [VAR=VALUE]...
1402
1403 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1404 VAR=VALUE. See below for descriptions of some of the useful variables.
1405
1406 Defaults for the options are specified in brackets.
1407
1408 Configuration:
1409 -h, --help display this help and exit
1410 --help=short display options specific to this package
1411 --help=recursive display the short help of all the included packages
1412 -V, --version display version information and exit
1413 -q, --quiet, --silent do not print \`checking ...' messages
1414 --cache-file=FILE cache test results in FILE [disabled]
1415 -C, --config-cache alias for \`--cache-file=config.cache'
1416 -n, --no-create do not create output files
1417 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1418
1419 Installation directories:
1420 --prefix=PREFIX install architecture-independent files in PREFIX
1421 [$ac_default_prefix]
1422 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1423 [PREFIX]
1424
1425 By default, \`make install' will install all the files in
1426 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1427 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1428 for instance \`--prefix=\$HOME'.
1429
1430 For better control, use the options below.
1431
1432 Fine tuning of the installation directories:
1433 --bindir=DIR user executables [EPREFIX/bin]
1434 --sbindir=DIR system admin executables [EPREFIX/sbin]
1435 --libexecdir=DIR program executables [EPREFIX/libexec]
1436 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1437 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1438 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1439 --libdir=DIR object code libraries [EPREFIX/lib]
1440 --includedir=DIR C header files [PREFIX/include]
1441 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1442 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1443 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1444 --infodir=DIR info documentation [DATAROOTDIR/info]
1445 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1446 --mandir=DIR man documentation [DATAROOTDIR/man]
1447 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1448 --htmldir=DIR html documentation [DOCDIR]
1449 --dvidir=DIR dvi documentation [DOCDIR]
1450 --pdfdir=DIR pdf documentation [DOCDIR]
1451 --psdir=DIR ps documentation [DOCDIR]
1452 _ACEOF
1453
1454 cat <<\_ACEOF
1455
1456 Program names:
1457 --program-prefix=PREFIX prepend PREFIX to installed program names
1458 --program-suffix=SUFFIX append SUFFIX to installed program names
1459 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1460
1461 System types:
1462 --build=BUILD configure for building on BUILD [guessed]
1463 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1464 --target=TARGET configure for building compilers for TARGET [HOST]
1465 _ACEOF
1466 fi
1467
1468 if test -n "$ac_init_help"; then
1469 case $ac_init_help in
1470 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1471 esac
1472 cat <<\_ACEOF
1473
1474 Optional Features:
1475 --disable-option-checking ignore unrecognized --enable/--with options
1476 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1477 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1478 --enable-version-specific-runtime-libs
1479 Specify that runtime libraries should be installed
1480 in a compiler-specific directory [default=no]
1481 --enable-generated-files-in-srcdir
1482 put copies of generated files in source dir intended
1483 for creating source tarballs for users without
1484 texinfo bison or flex. [default=no]
1485 --enable-silent-rules less verbose build output (undo: "make V=1")
1486 --disable-silent-rules verbose build output (undo: "make V=0")
1487 --enable-multilib build many library versions (default)
1488 --enable-dependency-tracking
1489 do not reject slow dependency extractors
1490 --disable-dependency-tracking
1491 speeds up one-time build
1492 --enable-shared[=PKGS] build shared libraries [default=yes]
1493 --enable-static[=PKGS] build static libraries [default=yes]
1494 --enable-fast-install[=PKGS]
1495 optimize for fast installation [default=yes]
1496 --disable-libtool-lock avoid locking (might break parallel builds)
1497 --enable-maintainer-mode
1498 enable make rules and dependencies not useful (and
1499 sometimes confusing) to the casual installer
1500 --enable-linux-futex use the Linux futex system call [default=default]
1501 --enable-tls Use thread-local storage [default=yes]
1502 --enable-symvers=STYLE enables symbol versioning of the shared library
1503 [default=yes]
1504 --enable-cet enable Intel CET in target libraries [default=no]
1505
1506 Optional Packages:
1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1509 --with-toolexeclibdir=DIR
1510 install libraries built with a cross compiler within
1511 DIR
1512 --with-pic try to use only PIC/non-PIC objects [default=use
1513 both]
1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1515 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1516 package. Equivalent to
1517 --with-cuda-driver-include=PATH/include plus
1518 --with-cuda-driver-lib=PATH/lib
1519 --with-cuda-driver-include=PATH
1520 specify directory for installed CUDA driver include
1521 files
1522 --with-cuda-driver-lib=PATH
1523 specify directory for the installed CUDA driver
1524 library
1525 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1526 package. Equivalent to
1527 --with-hsa-runtime-include=PATH/include plus
1528 --with-hsa-runtime-lib=PATH/lib
1529 --with-hsa-runtime-include=PATH
1530 specify directory for installed HSA run-time include
1531 files
1532 --with-hsa-runtime-lib=PATH
1533 specify directory for the installed HSA run-time
1534 library
1535 --with-gcc-major-version-only
1536 use only GCC major number in filesystem paths
1537
1538 Some influential environment variables:
1539 CC C compiler command
1540 CFLAGS C compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CPP C preprocessor
1547 FC Fortran compiler command
1548 FCFLAGS Fortran compiler flags
1549
1550 Use these variables to override the choices made by `configure' or to help
1551 it to find libraries and programs with nonstandard names/locations.
1552
1553 Report bugs to the package provider.
1554 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1555 General help using GNU software: <http://www.gnu.org/gethelp/>.
1556 _ACEOF
1557 ac_status=$?
1558 fi
1559
1560 if test "$ac_init_help" = "recursive"; then
1561 # If there are subdirs, report their specific --help.
1562 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1563 test -d "$ac_dir" ||
1564 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1565 continue
1566 ac_builddir=.
1567
1568 case "$ac_dir" in
1569 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1570 *)
1571 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1572 # A ".." for each directory in $ac_dir_suffix.
1573 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1574 case $ac_top_builddir_sub in
1575 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1576 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1577 esac ;;
1578 esac
1579 ac_abs_top_builddir=$ac_pwd
1580 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1581 # for backward compatibility:
1582 ac_top_builddir=$ac_top_build_prefix
1583
1584 case $srcdir in
1585 .) # We are building in place.
1586 ac_srcdir=.
1587 ac_top_srcdir=$ac_top_builddir_sub
1588 ac_abs_top_srcdir=$ac_pwd ;;
1589 [\\/]* | ?:[\\/]* ) # Absolute name.
1590 ac_srcdir=$srcdir$ac_dir_suffix;
1591 ac_top_srcdir=$srcdir
1592 ac_abs_top_srcdir=$srcdir ;;
1593 *) # Relative name.
1594 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1595 ac_top_srcdir=$ac_top_build_prefix$srcdir
1596 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1597 esac
1598 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1599
1600 cd "$ac_dir" || { ac_status=$?; continue; }
1601 # Check for guested configure.
1602 if test -f "$ac_srcdir/configure.gnu"; then
1603 echo &&
1604 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1605 elif test -f "$ac_srcdir/configure"; then
1606 echo &&
1607 $SHELL "$ac_srcdir/configure" --help=recursive
1608 else
1609 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1610 fi || ac_status=$?
1611 cd "$ac_pwd" || { ac_status=$?; break; }
1612 done
1613 fi
1614
1615 test -n "$ac_init_help" && exit $ac_status
1616 if $ac_init_version; then
1617 cat <<\_ACEOF
1618 GNU Offloading and Multi Processing Runtime Library configure 1.0
1619 generated by GNU Autoconf 2.69
1620
1621 Copyright (C) 2012 Free Software Foundation, Inc.
1622 This configure script is free software; the Free Software Foundation
1623 gives unlimited permission to copy, distribute and modify it.
1624 _ACEOF
1625 exit
1626 fi
1627
1628 ## ------------------------ ##
1629 ## Autoconf initialization. ##
1630 ## ------------------------ ##
1631
1632 # ac_fn_c_try_compile LINENO
1633 # --------------------------
1634 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_compile ()
1636 {
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext
1639 if { { ac_try="$ac_compile"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_compile") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1652 fi
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest.$ac_objext; then :
1658 ac_retval=0
1659 else
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1662
1663 ac_retval=1
1664 fi
1665 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 as_fn_set_status $ac_retval
1667
1668 } # ac_fn_c_try_compile
1669
1670 # ac_fn_c_try_link LINENO
1671 # -----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded.
1673 ac_fn_c_try_link ()
1674 {
1675 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1676 rm -f conftest.$ac_objext conftest$ac_exeext
1677 if { { ac_try="$ac_link"
1678 case "(($ac_try" in
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1681 esac
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>conftest.err
1685 ac_status=$?
1686 if test -s conftest.err; then
1687 grep -v '^ *+' conftest.err >conftest.er1
1688 cat conftest.er1 >&5
1689 mv -f conftest.er1 conftest.err
1690 fi
1691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1692 test $ac_status = 0; } && {
1693 test -z "$ac_c_werror_flag" ||
1694 test ! -s conftest.err
1695 } && test -s conftest$ac_exeext && {
1696 test "$cross_compiling" = yes ||
1697 test -x conftest$ac_exeext
1698 }; then :
1699 ac_retval=0
1700 else
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1703
1704 ac_retval=1
1705 fi
1706 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1707 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1708 # interfere with the next link command; also delete a directory that is
1709 # left behind by Apple's compiler. We do this before executing the actions.
1710 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714 } # ac_fn_c_try_link
1715
1716 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1717 # -------------------------------------------------------
1718 # Tests whether HEADER exists and can be compiled using the include files in
1719 # INCLUDES, setting the cache variable VAR accordingly.
1720 ac_fn_c_check_header_compile ()
1721 {
1722 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1724 $as_echo_n "checking for $2... " >&6; }
1725 if eval \${$3+:} false; then :
1726 $as_echo_n "(cached) " >&6
1727 else
1728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1729 /* end confdefs.h. */
1730 $4
1731 #include <$2>
1732 _ACEOF
1733 if ac_fn_c_try_compile "$LINENO"; then :
1734 eval "$3=yes"
1735 else
1736 eval "$3=no"
1737 fi
1738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1739 fi
1740 eval ac_res=\$$3
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1742 $as_echo "$ac_res" >&6; }
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744
1745 } # ac_fn_c_check_header_compile
1746
1747 # ac_fn_c_try_cpp LINENO
1748 # ----------------------
1749 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1750 ac_fn_c_try_cpp ()
1751 {
1752 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1753 if { { ac_try="$ac_cpp conftest.$ac_ext"
1754 case "(($ac_try" in
1755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1756 *) ac_try_echo=$ac_try;;
1757 esac
1758 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1759 $as_echo "$ac_try_echo"; } >&5
1760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1761 ac_status=$?
1762 if test -s conftest.err; then
1763 grep -v '^ *+' conftest.err >conftest.er1
1764 cat conftest.er1 >&5
1765 mv -f conftest.er1 conftest.err
1766 fi
1767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1768 test $ac_status = 0; } > conftest.i && {
1769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1770 test ! -s conftest.err
1771 }; then :
1772 ac_retval=0
1773 else
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1776
1777 ac_retval=1
1778 fi
1779 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1780 as_fn_set_status $ac_retval
1781
1782 } # ac_fn_c_try_cpp
1783
1784 # ac_fn_c_try_run LINENO
1785 # ----------------------
1786 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1787 # that executables *can* be run.
1788 ac_fn_c_try_run ()
1789 {
1790 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1791 if { { ac_try="$ac_link"
1792 case "(($ac_try" in
1793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1794 *) ac_try_echo=$ac_try;;
1795 esac
1796 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1797 $as_echo "$ac_try_echo"; } >&5
1798 (eval "$ac_link") 2>&5
1799 ac_status=$?
1800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1801 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1802 { { case "(($ac_try" in
1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1804 *) ac_try_echo=$ac_try;;
1805 esac
1806 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1807 $as_echo "$ac_try_echo"; } >&5
1808 (eval "$ac_try") 2>&5
1809 ac_status=$?
1810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1811 test $ac_status = 0; }; }; then :
1812 ac_retval=0
1813 else
1814 $as_echo "$as_me: program exited with status $ac_status" >&5
1815 $as_echo "$as_me: failed program was:" >&5
1816 sed 's/^/| /' conftest.$ac_ext >&5
1817
1818 ac_retval=$ac_status
1819 fi
1820 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 as_fn_set_status $ac_retval
1823
1824 } # ac_fn_c_try_run
1825
1826 # ac_fn_c_check_func LINENO FUNC VAR
1827 # ----------------------------------
1828 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1829 ac_fn_c_check_func ()
1830 {
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1833 $as_echo_n "checking for $2... " >&6; }
1834 if eval \${$3+:} false; then :
1835 $as_echo_n "(cached) " >&6
1836 else
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1841 #define $2 innocuous_$2
1842
1843 /* System header to define __stub macros and hopefully few prototypes,
1844 which can conflict with char $2 (); below.
1845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1846 <limits.h> exists even on freestanding compilers. */
1847
1848 #ifdef __STDC__
1849 # include <limits.h>
1850 #else
1851 # include <assert.h>
1852 #endif
1853
1854 #undef $2
1855
1856 /* Override any GCC internal prototype to avoid an error.
1857 Use char because int might match the return type of a GCC
1858 builtin and then its argument prototype would still apply. */
1859 #ifdef __cplusplus
1860 extern "C"
1861 #endif
1862 char $2 ();
1863 /* The GNU C library defines this for functions which it implements
1864 to always fail with ENOSYS. Some functions are actually named
1865 something starting with __ and the normal name is an alias. */
1866 #if defined __stub_$2 || defined __stub___$2
1867 choke me
1868 #endif
1869
1870 int
1871 main ()
1872 {
1873 return $2 ();
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_link "$LINENO"; then :
1879 eval "$3=yes"
1880 else
1881 eval "$3=no"
1882 fi
1883 rm -f core conftest.err conftest.$ac_objext \
1884 conftest$ac_exeext conftest.$ac_ext
1885 fi
1886 eval ac_res=\$$3
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1888 $as_echo "$ac_res" >&6; }
1889 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1890
1891 } # ac_fn_c_check_func
1892
1893 # ac_fn_fc_try_compile LINENO
1894 # ---------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_fc_try_compile ()
1897 {
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1913 fi
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_fc_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1923
1924 ac_retval=1
1925 fi
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1928
1929 } # ac_fn_fc_try_compile
1930
1931 # ac_fn_fc_try_link LINENO
1932 # ------------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_fc_try_link ()
1935 {
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1939 case "(($ac_try" in
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1942 esac
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1946 ac_status=$?
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1951 fi
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_fc_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 test -x conftest$ac_exeext
1959 }; then :
1960 ac_retval=0
1961 else
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1964
1965 ac_retval=1
1966 fi
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1973 as_fn_set_status $ac_retval
1974
1975 } # ac_fn_fc_try_link
1976
1977 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1978 # -------------------------------------------------------
1979 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1980 # the include files in INCLUDES and setting the cache variable VAR
1981 # accordingly.
1982 ac_fn_c_check_header_mongrel ()
1983 {
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if eval \${$3+:} false; then :
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1987 $as_echo_n "checking for $2... " >&6; }
1988 if eval \${$3+:} false; then :
1989 $as_echo_n "(cached) " >&6
1990 fi
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 else
1995 # Is the header compilable?
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1997 $as_echo_n "checking $2 usability... " >&6; }
1998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1999 /* end confdefs.h. */
2000 $4
2001 #include <$2>
2002 _ACEOF
2003 if ac_fn_c_try_compile "$LINENO"; then :
2004 ac_header_compiler=yes
2005 else
2006 ac_header_compiler=no
2007 fi
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2010 $as_echo "$ac_header_compiler" >&6; }
2011
2012 # Is the header present?
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2014 $as_echo_n "checking $2 presence... " >&6; }
2015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2016 /* end confdefs.h. */
2017 #include <$2>
2018 _ACEOF
2019 if ac_fn_c_try_cpp "$LINENO"; then :
2020 ac_header_preproc=yes
2021 else
2022 ac_header_preproc=no
2023 fi
2024 rm -f conftest.err conftest.i conftest.$ac_ext
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2026 $as_echo "$ac_header_preproc" >&6; }
2027
2028 # So? What about this header?
2029 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2030 yes:no: )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2032 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2034 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 ;;
2036 no:yes:* )
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2038 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2040 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2042 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2044 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2046 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 ;;
2048 esac
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2050 $as_echo_n "checking for $2... " >&6; }
2051 if eval \${$3+:} false; then :
2052 $as_echo_n "(cached) " >&6
2053 else
2054 eval "$3=\$ac_header_compiler"
2055 fi
2056 eval ac_res=\$$3
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2058 $as_echo "$ac_res" >&6; }
2059 fi
2060 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2061
2062 } # ac_fn_c_check_header_mongrel
2063
2064 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2065 # -------------------------------------------
2066 # Tests whether TYPE exists after having included INCLUDES, setting cache
2067 # variable VAR accordingly.
2068 ac_fn_c_check_type ()
2069 {
2070 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2072 $as_echo_n "checking for $2... " >&6; }
2073 if eval \${$3+:} false; then :
2074 $as_echo_n "(cached) " >&6
2075 else
2076 eval "$3=no"
2077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2078 /* end confdefs.h. */
2079 $4
2080 int
2081 main ()
2082 {
2083 if (sizeof ($2))
2084 return 0;
2085 ;
2086 return 0;
2087 }
2088 _ACEOF
2089 if ac_fn_c_try_compile "$LINENO"; then :
2090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2091 /* end confdefs.h. */
2092 $4
2093 int
2094 main ()
2095 {
2096 if (sizeof (($2)))
2097 return 0;
2098 ;
2099 return 0;
2100 }
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103
2104 else
2105 eval "$3=yes"
2106 fi
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2108 fi
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 fi
2111 eval ac_res=\$$3
2112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2113 $as_echo "$ac_res" >&6; }
2114 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2115
2116 } # ac_fn_c_check_type
2117
2118 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2119 # --------------------------------------------
2120 # Tries to find the compile-time value of EXPR in a program that includes
2121 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2122 # computed
2123 ac_fn_c_compute_int ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 if test "$cross_compiling" = yes; then
2127 # Depending upon the size, compute the lo and hi bounds.
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2130 $4
2131 int
2132 main ()
2133 {
2134 static int test_array [1 - 2 * !(($2) >= 0)];
2135 test_array [0] = 0;
2136 return test_array [0];
2137
2138 ;
2139 return 0;
2140 }
2141 _ACEOF
2142 if ac_fn_c_try_compile "$LINENO"; then :
2143 ac_lo=0 ac_mid=0
2144 while :; do
2145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2146 /* end confdefs.h. */
2147 $4
2148 int
2149 main ()
2150 {
2151 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2152 test_array [0] = 0;
2153 return test_array [0];
2154
2155 ;
2156 return 0;
2157 }
2158 _ACEOF
2159 if ac_fn_c_try_compile "$LINENO"; then :
2160 ac_hi=$ac_mid; break
2161 else
2162 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2163 if test $ac_lo -le $ac_mid; then
2164 ac_lo= ac_hi=
2165 break
2166 fi
2167 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2168 fi
2169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2170 done
2171 else
2172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2173 /* end confdefs.h. */
2174 $4
2175 int
2176 main ()
2177 {
2178 static int test_array [1 - 2 * !(($2) < 0)];
2179 test_array [0] = 0;
2180 return test_array [0];
2181
2182 ;
2183 return 0;
2184 }
2185 _ACEOF
2186 if ac_fn_c_try_compile "$LINENO"; then :
2187 ac_hi=-1 ac_mid=-1
2188 while :; do
2189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2190 /* end confdefs.h. */
2191 $4
2192 int
2193 main ()
2194 {
2195 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2196 test_array [0] = 0;
2197 return test_array [0];
2198
2199 ;
2200 return 0;
2201 }
2202 _ACEOF
2203 if ac_fn_c_try_compile "$LINENO"; then :
2204 ac_lo=$ac_mid; break
2205 else
2206 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2207 if test $ac_mid -le $ac_hi; then
2208 ac_lo= ac_hi=
2209 break
2210 fi
2211 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2212 fi
2213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2214 done
2215 else
2216 ac_lo= ac_hi=
2217 fi
2218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2219 fi
2220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2221 # Binary search between lo and hi bounds.
2222 while test "x$ac_lo" != "x$ac_hi"; do
2223 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2225 /* end confdefs.h. */
2226 $4
2227 int
2228 main ()
2229 {
2230 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2231 test_array [0] = 0;
2232 return test_array [0];
2233
2234 ;
2235 return 0;
2236 }
2237 _ACEOF
2238 if ac_fn_c_try_compile "$LINENO"; then :
2239 ac_hi=$ac_mid
2240 else
2241 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2242 fi
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2244 done
2245 case $ac_lo in #((
2246 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2247 '') ac_retval=1 ;;
2248 esac
2249 else
2250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2251 /* end confdefs.h. */
2252 $4
2253 static long int longval () { return $2; }
2254 static unsigned long int ulongval () { return $2; }
2255 #include <stdio.h>
2256 #include <stdlib.h>
2257 int
2258 main ()
2259 {
2260
2261 FILE *f = fopen ("conftest.val", "w");
2262 if (! f)
2263 return 1;
2264 if (($2) < 0)
2265 {
2266 long int i = longval ();
2267 if (i != ($2))
2268 return 1;
2269 fprintf (f, "%ld", i);
2270 }
2271 else
2272 {
2273 unsigned long int i = ulongval ();
2274 if (i != ($2))
2275 return 1;
2276 fprintf (f, "%lu", i);
2277 }
2278 /* Do not output a trailing newline, as this causes \r\n confusion
2279 on some platforms. */
2280 return ferror (f) || fclose (f) != 0;
2281
2282 ;
2283 return 0;
2284 }
2285 _ACEOF
2286 if ac_fn_c_try_run "$LINENO"; then :
2287 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2288 else
2289 ac_retval=1
2290 fi
2291 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2292 conftest.$ac_objext conftest.beam conftest.$ac_ext
2293 rm -f conftest.val
2294
2295 fi
2296 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2297 as_fn_set_status $ac_retval
2298
2299 } # ac_fn_c_compute_int
2300 cat >config.log <<_ACEOF
2301 This file contains any messages produced by compilers while
2302 running configure, to aid debugging if configure makes a mistake.
2303
2304 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2305 generated by GNU Autoconf 2.69. Invocation command line was
2306
2307 $ $0 $@
2308
2309 _ACEOF
2310 exec 5>>config.log
2311 {
2312 cat <<_ASUNAME
2313 ## --------- ##
2314 ## Platform. ##
2315 ## --------- ##
2316
2317 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2318 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2319 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2320 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2321 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2322
2323 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2324 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2325
2326 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2327 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2328 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2329 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2330 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2331 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2332 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2333
2334 _ASUNAME
2335
2336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 for as_dir in $PATH
2338 do
2339 IFS=$as_save_IFS
2340 test -z "$as_dir" && as_dir=.
2341 $as_echo "PATH: $as_dir"
2342 done
2343 IFS=$as_save_IFS
2344
2345 } >&5
2346
2347 cat >&5 <<_ACEOF
2348
2349
2350 ## ----------- ##
2351 ## Core tests. ##
2352 ## ----------- ##
2353
2354 _ACEOF
2355
2356
2357 # Keep a trace of the command line.
2358 # Strip out --no-create and --no-recursion so they do not pile up.
2359 # Strip out --silent because we don't want to record it for future runs.
2360 # Also quote any args containing shell meta-characters.
2361 # Make two passes to allow for proper duplicate-argument suppression.
2362 ac_configure_args=
2363 ac_configure_args0=
2364 ac_configure_args1=
2365 ac_must_keep_next=false
2366 for ac_pass in 1 2
2367 do
2368 for ac_arg
2369 do
2370 case $ac_arg in
2371 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2372 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2373 | -silent | --silent | --silen | --sile | --sil)
2374 continue ;;
2375 *\'*)
2376 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2377 esac
2378 case $ac_pass in
2379 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2380 2)
2381 as_fn_append ac_configure_args1 " '$ac_arg'"
2382 if test $ac_must_keep_next = true; then
2383 ac_must_keep_next=false # Got value, back to normal.
2384 else
2385 case $ac_arg in
2386 *=* | --config-cache | -C | -disable-* | --disable-* \
2387 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2388 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2389 | -with-* | --with-* | -without-* | --without-* | --x)
2390 case "$ac_configure_args0 " in
2391 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2392 esac
2393 ;;
2394 -* ) ac_must_keep_next=true ;;
2395 esac
2396 fi
2397 as_fn_append ac_configure_args " '$ac_arg'"
2398 ;;
2399 esac
2400 done
2401 done
2402 { ac_configure_args0=; unset ac_configure_args0;}
2403 { ac_configure_args1=; unset ac_configure_args1;}
2404
2405 # When interrupted or exit'd, cleanup temporary files, and complete
2406 # config.log. We remove comments because anyway the quotes in there
2407 # would cause problems or look ugly.
2408 # WARNING: Use '\'' to represent an apostrophe within the trap.
2409 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2410 trap 'exit_status=$?
2411 # Save into config.log some information that might help in debugging.
2412 {
2413 echo
2414
2415 $as_echo "## ---------------- ##
2416 ## Cache variables. ##
2417 ## ---------------- ##"
2418 echo
2419 # The following way of writing the cache mishandles newlines in values,
2420 (
2421 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2422 eval ac_val=\$$ac_var
2423 case $ac_val in #(
2424 *${as_nl}*)
2425 case $ac_var in #(
2426 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2427 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2428 esac
2429 case $ac_var in #(
2430 _ | IFS | as_nl) ;; #(
2431 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2432 *) { eval $ac_var=; unset $ac_var;} ;;
2433 esac ;;
2434 esac
2435 done
2436 (set) 2>&1 |
2437 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2438 *${as_nl}ac_space=\ *)
2439 sed -n \
2440 "s/'\''/'\''\\\\'\'''\''/g;
2441 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2442 ;; #(
2443 *)
2444 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2445 ;;
2446 esac |
2447 sort
2448 )
2449 echo
2450
2451 $as_echo "## ----------------- ##
2452 ## Output variables. ##
2453 ## ----------------- ##"
2454 echo
2455 for ac_var in $ac_subst_vars
2456 do
2457 eval ac_val=\$$ac_var
2458 case $ac_val in
2459 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2460 esac
2461 $as_echo "$ac_var='\''$ac_val'\''"
2462 done | sort
2463 echo
2464
2465 if test -n "$ac_subst_files"; then
2466 $as_echo "## ------------------- ##
2467 ## File substitutions. ##
2468 ## ------------------- ##"
2469 echo
2470 for ac_var in $ac_subst_files
2471 do
2472 eval ac_val=\$$ac_var
2473 case $ac_val in
2474 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2475 esac
2476 $as_echo "$ac_var='\''$ac_val'\''"
2477 done | sort
2478 echo
2479 fi
2480
2481 if test -s confdefs.h; then
2482 $as_echo "## ----------- ##
2483 ## confdefs.h. ##
2484 ## ----------- ##"
2485 echo
2486 cat confdefs.h
2487 echo
2488 fi
2489 test "$ac_signal" != 0 &&
2490 $as_echo "$as_me: caught signal $ac_signal"
2491 $as_echo "$as_me: exit $exit_status"
2492 } >&5
2493 rm -f core *.core core.conftest.* &&
2494 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2495 exit $exit_status
2496 ' 0
2497 for ac_signal in 1 2 13 15; do
2498 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2499 done
2500 ac_signal=0
2501
2502 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2503 rm -f -r conftest* confdefs.h
2504
2505 $as_echo "/* confdefs.h */" > confdefs.h
2506
2507 # Predefined preprocessor variables.
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_NAME "$PACKAGE_NAME"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2519 _ACEOF
2520
2521 cat >>confdefs.h <<_ACEOF
2522 #define PACKAGE_STRING "$PACKAGE_STRING"
2523 _ACEOF
2524
2525 cat >>confdefs.h <<_ACEOF
2526 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2527 _ACEOF
2528
2529 cat >>confdefs.h <<_ACEOF
2530 #define PACKAGE_URL "$PACKAGE_URL"
2531 _ACEOF
2532
2533
2534 # Let the site file select an alternate cache file if it wants to.
2535 # Prefer an explicitly selected file to automatically selected ones.
2536 ac_site_file1=NONE
2537 ac_site_file2=NONE
2538 if test -n "$CONFIG_SITE"; then
2539 # We do not want a PATH search for config.site.
2540 case $CONFIG_SITE in #((
2541 -*) ac_site_file1=./$CONFIG_SITE;;
2542 */*) ac_site_file1=$CONFIG_SITE;;
2543 *) ac_site_file1=./$CONFIG_SITE;;
2544 esac
2545 elif test "x$prefix" != xNONE; then
2546 ac_site_file1=$prefix/share/config.site
2547 ac_site_file2=$prefix/etc/config.site
2548 else
2549 ac_site_file1=$ac_default_prefix/share/config.site
2550 ac_site_file2=$ac_default_prefix/etc/config.site
2551 fi
2552 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2553 do
2554 test "x$ac_site_file" = xNONE && continue
2555 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2557 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2558 sed 's/^/| /' "$ac_site_file" >&5
2559 . "$ac_site_file" \
2560 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2561 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2562 as_fn_error $? "failed to load site script $ac_site_file
2563 See \`config.log' for more details" "$LINENO" 5; }
2564 fi
2565 done
2566
2567 if test -r "$cache_file"; then
2568 # Some versions of bash will fail to source /dev/null (special files
2569 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2570 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2572 $as_echo "$as_me: loading cache $cache_file" >&6;}
2573 case $cache_file in
2574 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2575 *) . "./$cache_file";;
2576 esac
2577 fi
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2580 $as_echo "$as_me: creating cache $cache_file" >&6;}
2581 >$cache_file
2582 fi
2583
2584 as_fn_append ac_header_list " unistd.h"
2585 as_fn_append ac_func_list " secure_getenv"
2586 as_fn_append ac_func_list " __secure_getenv"
2587 as_fn_append ac_func_list " getuid"
2588 as_fn_append ac_func_list " geteuid"
2589 as_fn_append ac_func_list " getgid"
2590 as_fn_append ac_func_list " getegid"
2591 # Check that the precious variables saved in the cache have kept the same
2592 # value.
2593 ac_cache_corrupted=false
2594 for ac_var in $ac_precious_vars; do
2595 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2596 eval ac_new_set=\$ac_env_${ac_var}_set
2597 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2598 eval ac_new_val=\$ac_env_${ac_var}_value
2599 case $ac_old_set,$ac_new_set in
2600 set,)
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2602 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2603 ac_cache_corrupted=: ;;
2604 ,set)
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2606 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2607 ac_cache_corrupted=: ;;
2608 ,);;
2609 *)
2610 if test "x$ac_old_val" != "x$ac_new_val"; then
2611 # differences in whitespace do not lead to failure.
2612 ac_old_val_w=`echo x $ac_old_val`
2613 ac_new_val_w=`echo x $ac_new_val`
2614 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2616 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2617 ac_cache_corrupted=:
2618 else
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2620 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2621 eval $ac_var=\$ac_old_val
2622 fi
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2624 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2625 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2626 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2627 fi;;
2628 esac
2629 # Pass precious variables to config.status.
2630 if test "$ac_new_set" = set; then
2631 case $ac_new_val in
2632 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2633 *) ac_arg=$ac_var=$ac_new_val ;;
2634 esac
2635 case " $ac_configure_args " in
2636 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2637 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2638 esac
2639 fi
2640 done
2641 if $ac_cache_corrupted; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2645 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2646 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2647 fi
2648 ## -------------------- ##
2649 ## Main body of script. ##
2650 ## -------------------- ##
2651
2652 ac_ext=c
2653 ac_cpp='$CPP $CPPFLAGS'
2654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2657
2658
2659
2660
2661
2662 ac_config_headers="$ac_config_headers config.h"
2663
2664
2665 # -------
2666 # Options
2667 # -------
2668
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2670 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2671 # Check whether --enable-version-specific-runtime-libs was given.
2672 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2673 enableval=$enable_version_specific_runtime_libs;
2674 case "$enableval" in
2675 yes|no) ;;
2676 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2677 esac
2678
2679 else
2680 enable_version_specific_runtime_libs=no
2681 fi
2682
2683
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2685 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2686
2687 # We would like our source tree to be readonly. However when releases or
2688 # pre-releases are generated, the flex/bison generated files as well as the
2689 # various formats of manuals need to be included along with the rest of the
2690 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2691 # just that.
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2693 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2694 # Check whether --enable-generated-files-in-srcdir was given.
2695 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2696 enableval=$enable_generated_files_in_srcdir;
2697 case "$enableval" in
2698 yes|no) ;;
2699 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2700 esac
2701
2702 else
2703 enable_generated_files_in_srcdir=no
2704 fi
2705
2706
2707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2708 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2709 if test "$enable_generated_files_in_srcdir" = yes; then
2710 GENINSRC_TRUE=
2711 GENINSRC_FALSE='#'
2712 else
2713 GENINSRC_TRUE='#'
2714 GENINSRC_FALSE=
2715 fi
2716
2717
2718
2719 # -------
2720 # -------
2721
2722 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2723 #
2724 # You will slowly go insane if you do not grok the following fact: when
2725 # building this library, the top-level /target/ becomes the library's /host/.
2726 #
2727 # configure then causes --target to default to --host, exactly like any
2728 # other package using autoconf. Therefore, 'target' and 'host' will
2729 # always be the same. This makes sense both for native and cross compilers
2730 # just think about it for a little while. :-)
2731 #
2732 # Also, if this library is being configured as part of a cross compiler, the
2733 # top-level configure script will pass the "real" host as $with_cross_host.
2734 #
2735 # Do not delete or change the following two lines. For why, see
2736 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2737 ac_aux_dir=
2738 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2739 if test -f "$ac_dir/install-sh"; then
2740 ac_aux_dir=$ac_dir
2741 ac_install_sh="$ac_aux_dir/install-sh -c"
2742 break
2743 elif test -f "$ac_dir/install.sh"; then
2744 ac_aux_dir=$ac_dir
2745 ac_install_sh="$ac_aux_dir/install.sh -c"
2746 break
2747 elif test -f "$ac_dir/shtool"; then
2748 ac_aux_dir=$ac_dir
2749 ac_install_sh="$ac_aux_dir/shtool install -c"
2750 break
2751 fi
2752 done
2753 if test -z "$ac_aux_dir"; then
2754 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2755 fi
2756
2757 # These three variables are undocumented and unsupported,
2758 # and are intended to be withdrawn in a future Autoconf release.
2759 # They can cause serious problems if a builder's source tree is in a directory
2760 # whose full name contains unusual characters.
2761 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2762 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2763 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2764
2765
2766 # Make sure we can run config.sub.
2767 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2768 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2769
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2771 $as_echo_n "checking build system type... " >&6; }
2772 if ${ac_cv_build+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 ac_build_alias=$build_alias
2776 test "x$ac_build_alias" = x &&
2777 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2778 test "x$ac_build_alias" = x &&
2779 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2780 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2781 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2782
2783 fi
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2785 $as_echo "$ac_cv_build" >&6; }
2786 case $ac_cv_build in
2787 *-*-*) ;;
2788 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2789 esac
2790 build=$ac_cv_build
2791 ac_save_IFS=$IFS; IFS='-'
2792 set x $ac_cv_build
2793 shift
2794 build_cpu=$1
2795 build_vendor=$2
2796 shift; shift
2797 # Remember, the first character of IFS is used to create $*,
2798 # except with old shells:
2799 build_os=$*
2800 IFS=$ac_save_IFS
2801 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2802
2803
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2805 $as_echo_n "checking host system type... " >&6; }
2806 if ${ac_cv_host+:} false; then :
2807 $as_echo_n "(cached) " >&6
2808 else
2809 if test "x$host_alias" = x; then
2810 ac_cv_host=$ac_cv_build
2811 else
2812 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2813 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2814 fi
2815
2816 fi
2817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2818 $as_echo "$ac_cv_host" >&6; }
2819 case $ac_cv_host in
2820 *-*-*) ;;
2821 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2822 esac
2823 host=$ac_cv_host
2824 ac_save_IFS=$IFS; IFS='-'
2825 set x $ac_cv_host
2826 shift
2827 host_cpu=$1
2828 host_vendor=$2
2829 shift; shift
2830 # Remember, the first character of IFS is used to create $*,
2831 # except with old shells:
2832 host_os=$*
2833 IFS=$ac_save_IFS
2834 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2835
2836
2837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2838 $as_echo_n "checking target system type... " >&6; }
2839 if ${ac_cv_target+:} false; then :
2840 $as_echo_n "(cached) " >&6
2841 else
2842 if test "x$target_alias" = x; then
2843 ac_cv_target=$ac_cv_host
2844 else
2845 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2846 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2847 fi
2848
2849 fi
2850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2851 $as_echo "$ac_cv_target" >&6; }
2852 case $ac_cv_target in
2853 *-*-*) ;;
2854 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2855 esac
2856 target=$ac_cv_target
2857 ac_save_IFS=$IFS; IFS='-'
2858 set x $ac_cv_target
2859 shift
2860 target_cpu=$1
2861 target_vendor=$2
2862 shift; shift
2863 # Remember, the first character of IFS is used to create $*,
2864 # except with old shells:
2865 target_os=$*
2866 IFS=$ac_save_IFS
2867 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2868
2869
2870 # The aliases save the names the user supplied, while $host etc.
2871 # will get canonicalized.
2872 test -n "$target_alias" &&
2873 test "$program_prefix$program_suffix$program_transform_name" = \
2874 NONENONEs,x,x, &&
2875 program_prefix=${target_alias}-
2876
2877 target_alias=${target_alias-$host_alias}
2878
2879 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2880 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2881 # 1.9.0: minimum required version
2882 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2883 # of other PACKAGE_* variables will, however, and there's nothing
2884 # we can do about that; they come from AC_INIT).
2885 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2886 # file in the top srcdir, etc, etc), so stop complaining.
2887 # no-dist: we don't want 'dist' and related rules.
2888 # -Wall: turns on all automake warnings...
2889 # -Wno-portability: ...except this one, since GNU make is required.
2890 # -Wno-override: ... and this one, since we do want this in testsuite.
2891 am__api_version='1.15'
2892
2893 # Find a good install program. We prefer a C program (faster),
2894 # so one script is as good as another. But avoid the broken or
2895 # incompatible versions:
2896 # SysV /etc/install, /usr/sbin/install
2897 # SunOS /usr/etc/install
2898 # IRIX /sbin/install
2899 # AIX /bin/install
2900 # AmigaOS /C/install, which installs bootblocks on floppy discs
2901 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2902 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2903 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2904 # OS/2's system install, which has a completely different semantic
2905 # ./install, which can be erroneously created by make from ./install.sh.
2906 # Reject install programs that cannot install multiple files.
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2908 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2909 if test -z "$INSTALL"; then
2910 if ${ac_cv_path_install+:} false; then :
2911 $as_echo_n "(cached) " >&6
2912 else
2913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2914 for as_dir in $PATH
2915 do
2916 IFS=$as_save_IFS
2917 test -z "$as_dir" && as_dir=.
2918 # Account for people who put trailing slashes in PATH elements.
2919 case $as_dir/ in #((
2920 ./ | .// | /[cC]/* | \
2921 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2922 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2923 /usr/ucb/* ) ;;
2924 *)
2925 # OSF1 and SCO ODT 3.0 have their own names for install.
2926 # Don't use installbsd from OSF since it installs stuff as root
2927 # by default.
2928 for ac_prog in ginstall scoinst install; do
2929 for ac_exec_ext in '' $ac_executable_extensions; do
2930 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2931 if test $ac_prog = install &&
2932 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2933 # AIX install. It has an incompatible calling convention.
2934 :
2935 elif test $ac_prog = install &&
2936 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2937 # program-specific install script used by HP pwplus--don't use.
2938 :
2939 else
2940 rm -rf conftest.one conftest.two conftest.dir
2941 echo one > conftest.one
2942 echo two > conftest.two
2943 mkdir conftest.dir
2944 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2945 test -s conftest.one && test -s conftest.two &&
2946 test -s conftest.dir/conftest.one &&
2947 test -s conftest.dir/conftest.two
2948 then
2949 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2950 break 3
2951 fi
2952 fi
2953 fi
2954 done
2955 done
2956 ;;
2957 esac
2958
2959 done
2960 IFS=$as_save_IFS
2961
2962 rm -rf conftest.one conftest.two conftest.dir
2963
2964 fi
2965 if test "${ac_cv_path_install+set}" = set; then
2966 INSTALL=$ac_cv_path_install
2967 else
2968 # As a last resort, use the slow shell script. Don't cache a
2969 # value for INSTALL within a source directory, because that will
2970 # break other packages using the cache if that directory is
2971 # removed, or if the value is a relative name.
2972 INSTALL=$ac_install_sh
2973 fi
2974 fi
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2976 $as_echo "$INSTALL" >&6; }
2977
2978 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2979 # It thinks the first close brace ends the variable substitution.
2980 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2981
2982 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2983
2984 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2985
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2987 $as_echo_n "checking whether build environment is sane... " >&6; }
2988 # Reject unsafe characters in $srcdir or the absolute working directory
2989 # name. Accept space and tab only in the latter.
2990 am_lf='
2991 '
2992 case `pwd` in
2993 *[\\\"\#\$\&\'\`$am_lf]*)
2994 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2995 esac
2996 case $srcdir in
2997 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2998 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2999 esac
3000
3001 # Do 'set' in a subshell so we don't clobber the current shell's
3002 # arguments. Must try -L first in case configure is actually a
3003 # symlink; some systems play weird games with the mod time of symlinks
3004 # (eg FreeBSD returns the mod time of the symlink's containing
3005 # directory).
3006 if (
3007 am_has_slept=no
3008 for am_try in 1 2; do
3009 echo "timestamp, slept: $am_has_slept" > conftest.file
3010 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3011 if test "$*" = "X"; then
3012 # -L didn't work.
3013 set X `ls -t "$srcdir/configure" conftest.file`
3014 fi
3015 if test "$*" != "X $srcdir/configure conftest.file" \
3016 && test "$*" != "X conftest.file $srcdir/configure"; then
3017
3018 # If neither matched, then we have a broken ls. This can happen
3019 # if, for instance, CONFIG_SHELL is bash and it inherits a
3020 # broken ls alias from the environment. This has actually
3021 # happened. Such a system could not be considered "sane".
3022 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3023 alias in your environment" "$LINENO" 5
3024 fi
3025 if test "$2" = conftest.file || test $am_try -eq 2; then
3026 break
3027 fi
3028 # Just in case.
3029 sleep 1
3030 am_has_slept=yes
3031 done
3032 test "$2" = conftest.file
3033 )
3034 then
3035 # Ok.
3036 :
3037 else
3038 as_fn_error $? "newly created file is older than distributed files!
3039 Check your system clock" "$LINENO" 5
3040 fi
3041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3042 $as_echo "yes" >&6; }
3043 # If we didn't sleep, we still need to ensure time stamps of config.status and
3044 # generated files are strictly newer.
3045 am_sleep_pid=
3046 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3047 ( sleep 1 ) &
3048 am_sleep_pid=$!
3049 fi
3050
3051 rm -f conftest.file
3052
3053 test "$program_prefix" != NONE &&
3054 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3055 # Use a double $ so make ignores it.
3056 test "$program_suffix" != NONE &&
3057 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3058 # Double any \ or $.
3059 # By default was `s,x,x', remove it if useless.
3060 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3061 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3062
3063 # Expand $ac_aux_dir to an absolute path.
3064 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3065
3066 if test x"${MISSING+set}" != xset; then
3067 case $am_aux_dir in
3068 *\ * | *\ *)
3069 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3070 *)
3071 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3072 esac
3073 fi
3074 # Use eval to expand $SHELL
3075 if eval "$MISSING --is-lightweight"; then
3076 am_missing_run="$MISSING "
3077 else
3078 am_missing_run=
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3080 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3081 fi
3082
3083 if test x"${install_sh+set}" != xset; then
3084 case $am_aux_dir in
3085 *\ * | *\ *)
3086 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3087 *)
3088 install_sh="\${SHELL} $am_aux_dir/install-sh"
3089 esac
3090 fi
3091
3092 # Installed binaries are usually stripped using 'strip' when the user
3093 # run "make install-strip". However 'strip' might not be the right
3094 # tool to use in cross-compilation environments, therefore Automake
3095 # will honor the 'STRIP' environment variable to overrule this program.
3096 if test "$cross_compiling" != no; then
3097 if test -n "$ac_tool_prefix"; then
3098 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3099 set dummy ${ac_tool_prefix}strip; ac_word=$2
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3101 $as_echo_n "checking for $ac_word... " >&6; }
3102 if ${ac_cv_prog_STRIP+:} false; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 if test -n "$STRIP"; then
3106 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3107 else
3108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3109 for as_dir in $PATH
3110 do
3111 IFS=$as_save_IFS
3112 test -z "$as_dir" && as_dir=.
3113 for ac_exec_ext in '' $ac_executable_extensions; do
3114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3115 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3116 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3117 break 2
3118 fi
3119 done
3120 done
3121 IFS=$as_save_IFS
3122
3123 fi
3124 fi
3125 STRIP=$ac_cv_prog_STRIP
3126 if test -n "$STRIP"; then
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3128 $as_echo "$STRIP" >&6; }
3129 else
3130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3131 $as_echo "no" >&6; }
3132 fi
3133
3134
3135 fi
3136 if test -z "$ac_cv_prog_STRIP"; then
3137 ac_ct_STRIP=$STRIP
3138 # Extract the first word of "strip", so it can be a program name with args.
3139 set dummy strip; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 if test -n "$ac_ct_STRIP"; then
3146 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3147 else
3148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149 for as_dir in $PATH
3150 do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3155 ac_cv_prog_ac_ct_STRIP="strip"
3156 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3157 break 2
3158 fi
3159 done
3160 done
3161 IFS=$as_save_IFS
3162
3163 fi
3164 fi
3165 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3166 if test -n "$ac_ct_STRIP"; then
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3168 $as_echo "$ac_ct_STRIP" >&6; }
3169 else
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3171 $as_echo "no" >&6; }
3172 fi
3173
3174 if test "x$ac_ct_STRIP" = x; then
3175 STRIP=":"
3176 else
3177 case $cross_compiling:$ac_tool_warned in
3178 yes:)
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3180 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3181 ac_tool_warned=yes ;;
3182 esac
3183 STRIP=$ac_ct_STRIP
3184 fi
3185 else
3186 STRIP="$ac_cv_prog_STRIP"
3187 fi
3188
3189 fi
3190 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3191
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3193 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3194 if test -z "$MKDIR_P"; then
3195 if ${ac_cv_path_mkdir+:} false; then :
3196 $as_echo_n "(cached) " >&6
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_prog in mkdir gmkdir; do
3204 for ac_exec_ext in '' $ac_executable_extensions; do
3205 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3206 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3207 'mkdir (GNU coreutils) '* | \
3208 'mkdir (coreutils) '* | \
3209 'mkdir (fileutils) '4.1*)
3210 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3211 break 3;;
3212 esac
3213 done
3214 done
3215 done
3216 IFS=$as_save_IFS
3217
3218 fi
3219
3220 test -d ./--version && rmdir ./--version
3221 if test "${ac_cv_path_mkdir+set}" = set; then
3222 MKDIR_P="$ac_cv_path_mkdir -p"
3223 else
3224 # As a last resort, use the slow shell script. Don't cache a
3225 # value for MKDIR_P within a source directory, because that will
3226 # break other packages using the cache if that directory is
3227 # removed, or if the value is a relative name.
3228 MKDIR_P="$ac_install_sh -d"
3229 fi
3230 fi
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3232 $as_echo "$MKDIR_P" >&6; }
3233
3234 for ac_prog in gawk mawk nawk awk
3235 do
3236 # Extract the first word of "$ac_prog", so it can be a program name with args.
3237 set dummy $ac_prog; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_prog_AWK+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 if test -n "$AWK"; then
3244 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3245 else
3246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3247 for as_dir in $PATH
3248 do
3249 IFS=$as_save_IFS
3250 test -z "$as_dir" && as_dir=.
3251 for ac_exec_ext in '' $ac_executable_extensions; do
3252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3253 ac_cv_prog_AWK="$ac_prog"
3254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3255 break 2
3256 fi
3257 done
3258 done
3259 IFS=$as_save_IFS
3260
3261 fi
3262 fi
3263 AWK=$ac_cv_prog_AWK
3264 if test -n "$AWK"; then
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3266 $as_echo "$AWK" >&6; }
3267 else
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 fi
3271
3272
3273 test -n "$AWK" && break
3274 done
3275
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3277 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3278 set x ${MAKE-make}
3279 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3280 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3281 $as_echo_n "(cached) " >&6
3282 else
3283 cat >conftest.make <<\_ACEOF
3284 SHELL = /bin/sh
3285 all:
3286 @echo '@@@%%%=$(MAKE)=@@@%%%'
3287 _ACEOF
3288 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3289 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3290 *@@@%%%=?*=@@@%%%*)
3291 eval ac_cv_prog_make_${ac_make}_set=yes;;
3292 *)
3293 eval ac_cv_prog_make_${ac_make}_set=no;;
3294 esac
3295 rm -f conftest.make
3296 fi
3297 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3300 SET_MAKE=
3301 else
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3303 $as_echo "no" >&6; }
3304 SET_MAKE="MAKE=${MAKE-make}"
3305 fi
3306
3307 rm -rf .tst 2>/dev/null
3308 mkdir .tst 2>/dev/null
3309 if test -d .tst; then
3310 am__leading_dot=.
3311 else
3312 am__leading_dot=_
3313 fi
3314 rmdir .tst 2>/dev/null
3315
3316 # Check whether --enable-silent-rules was given.
3317 if test "${enable_silent_rules+set}" = set; then :
3318 enableval=$enable_silent_rules;
3319 fi
3320
3321 case $enable_silent_rules in # (((
3322 yes) AM_DEFAULT_VERBOSITY=0;;
3323 no) AM_DEFAULT_VERBOSITY=1;;
3324 *) AM_DEFAULT_VERBOSITY=1;;
3325 esac
3326 am_make=${MAKE-make}
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3328 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3329 if ${am_cv_make_support_nested_variables+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if $as_echo 'TRUE=$(BAR$(V))
3333 BAR0=false
3334 BAR1=true
3335 V=1
3336 am__doit:
3337 @$(TRUE)
3338 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3339 am_cv_make_support_nested_variables=yes
3340 else
3341 am_cv_make_support_nested_variables=no
3342 fi
3343 fi
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3345 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3346 if test $am_cv_make_support_nested_variables = yes; then
3347 AM_V='$(V)'
3348 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3349 else
3350 AM_V=$AM_DEFAULT_VERBOSITY
3351 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3352 fi
3353 AM_BACKSLASH='\'
3354
3355 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3356 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3357 # is not polluted with repeated "-I."
3358 am__isrc=' -I$(srcdir)'
3359 # test to see if srcdir already configured
3360 if test -f $srcdir/config.status; then
3361 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3362 fi
3363 fi
3364
3365 # test whether we have cygpath
3366 if test -z "$CYGPATH_W"; then
3367 if (cygpath --version) >/dev/null 2>/dev/null; then
3368 CYGPATH_W='cygpath -w'
3369 else
3370 CYGPATH_W=echo
3371 fi
3372 fi
3373
3374
3375 # Define the identity of the package.
3376 PACKAGE='libgomp'
3377 VERSION='1.0'
3378
3379
3380 cat >>confdefs.h <<_ACEOF
3381 #define PACKAGE "$PACKAGE"
3382 _ACEOF
3383
3384
3385 cat >>confdefs.h <<_ACEOF
3386 #define VERSION "$VERSION"
3387 _ACEOF
3388
3389 # Some tools Automake needs.
3390
3391 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3392
3393
3394 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3395
3396
3397 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3398
3399
3400 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3401
3402
3403 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3404
3405 # For better backward compatibility. To be removed once Automake 1.9.x
3406 # dies out for good. For more background, see:
3407 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3408 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3409 mkdir_p='$(MKDIR_P)'
3410
3411 # We need awk for the "check" target (and possibly the TAP driver). The
3412 # system "awk" is bad on some platforms.
3413 # Always define AMTAR for backward compatibility. Yes, it's still used
3414 # in the wild :-( We should find a proper way to deprecate it ...
3415 AMTAR='$${TAR-tar}'
3416
3417
3418 # We'll loop over all known methods to create a tar archive until one works.
3419 _am_tools='gnutar pax cpio none'
3420
3421 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3422
3423
3424
3425
3426
3427
3428 # POSIX will say in a future version that running "rm -f" with no argument
3429 # is OK; and we want to be able to make that assumption in our Makefile
3430 # recipes. So use an aggressive probe to check that the usage we want is
3431 # actually supported "in the wild" to an acceptable degree.
3432 # See automake bug#10828.
3433 # To make any issue more visible, cause the running configure to be aborted
3434 # by default if the 'rm' program in use doesn't match our expectations; the
3435 # user can still override this though.
3436 if rm -f && rm -fr && rm -rf; then : OK; else
3437 cat >&2 <<'END'
3438 Oops!
3439
3440 Your 'rm' program seems unable to run without file operands specified
3441 on the command line, even when the '-f' option is present. This is contrary
3442 to the behaviour of most rm programs out there, and not conforming with
3443 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3444
3445 Please tell bug-automake@gnu.org about your system, including the value
3446 of your $PATH and any error possibly output before this message. This
3447 can help us improve future automake versions.
3448
3449 END
3450 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3451 echo 'Configuration will proceed anyway, since you have set the' >&2
3452 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3453 echo >&2
3454 else
3455 cat >&2 <<'END'
3456 Aborting the configuration process, to ensure you take notice of the issue.
3457
3458 You can download and install GNU coreutils to get an 'rm' implementation
3459 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3460
3461 If you want to complete the configuration process using your problematic
3462 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3463 to "yes", and re-run configure.
3464
3465 END
3466 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3467 fi
3468 fi
3469
3470 # Default to --enable-multilib
3471 # Check whether --enable-multilib was given.
3472 if test "${enable_multilib+set}" = set; then :
3473 enableval=$enable_multilib; case "$enableval" in
3474 yes) multilib=yes ;;
3475 no) multilib=no ;;
3476 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3477 esac
3478 else
3479 multilib=yes
3480 fi
3481
3482
3483 # We may get other options which we leave undocumented:
3484 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3485 # See config-ml.in if you want the gory details.
3486
3487 if test "$srcdir" = "."; then
3488 if test "$with_target_subdir" != "."; then
3489 multi_basedir="$srcdir/$with_multisrctop../.."
3490 else
3491 multi_basedir="$srcdir/$with_multisrctop.."
3492 fi
3493 else
3494 multi_basedir="$srcdir/.."
3495 fi
3496
3497
3498 # Even if the default multilib is not a cross compilation,
3499 # it may be that some of the other multilibs are.
3500 if test $cross_compiling = no && test $multilib = yes \
3501 && test "x${with_multisubdir}" != x ; then
3502 cross_compiling=maybe
3503 fi
3504
3505 ac_config_commands="$ac_config_commands default-1"
3506
3507
3508
3509 # Check whether --with-toolexeclibdir was given.
3510 if test "${with_toolexeclibdir+set}" = set; then :
3511 withval=$with_toolexeclibdir; case ${with_toolexeclibdir} in
3512 /)
3513 ;;
3514 */)
3515 with_toolexeclibdir=`echo $with_toolexeclibdir | sed 's,/$,,'`
3516 ;;
3517 esac
3518 else
3519 with_toolexeclibdir=no
3520 fi
3521
3522
3523
3524 # Calculate toolexeclibdir
3525 # Also toolexecdir, though it's only used in toolexeclibdir
3526 case ${enable_version_specific_runtime_libs} in
3527 yes)
3528 # Need the gcc compiler version to know where to install libraries
3529 # and header files if --enable-version-specific-runtime-libs option
3530 # is selected.
3531 toolexecdir='$(libdir)/gcc/$(target_alias)'
3532 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3533 ;;
3534 no)
3535 if test -n "$with_cross_host" &&
3536 test x"$with_cross_host" != x"no"; then
3537 # Install a library built with a cross compiler in tooldir, not libdir.
3538 toolexecdir='$(exec_prefix)/$(target_alias)'
3539 case ${with_toolexeclibdir} in
3540 no)
3541 toolexeclibdir='$(toolexecdir)/lib'
3542 ;;
3543 *)
3544 toolexeclibdir=${with_toolexeclibdir}
3545 ;;
3546 esac
3547 else
3548 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3549 toolexeclibdir='$(libdir)'
3550 fi
3551 multi_os_directory=`$CC -print-multi-os-directory`
3552 case $multi_os_directory in
3553 .) ;; # Avoid trailing /.
3554 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3555 esac
3556 ;;
3557 esac
3558
3559
3560
3561 # Check the compiler.
3562 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3563 # We must force CC to /not/ be precious variables; otherwise
3564 # the wrong, non-multilib-adjusted value will be used in multilibs.
3565 # As a side effect, we have to subst CFLAGS ourselves.
3566
3567
3568
3569 ac_ext=c
3570 ac_cpp='$CPP $CPPFLAGS'
3571 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3572 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3573 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3574 if test -n "$ac_tool_prefix"; then
3575 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3576 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3578 $as_echo_n "checking for $ac_word... " >&6; }
3579 if ${ac_cv_prog_CC+:} false; then :
3580 $as_echo_n "(cached) " >&6
3581 else
3582 if test -n "$CC"; then
3583 ac_cv_prog_CC="$CC" # Let the user override the test.
3584 else
3585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3586 for as_dir in $PATH
3587 do
3588 IFS=$as_save_IFS
3589 test -z "$as_dir" && as_dir=.
3590 for ac_exec_ext in '' $ac_executable_extensions; do
3591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3592 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3594 break 2
3595 fi
3596 done
3597 done
3598 IFS=$as_save_IFS
3599
3600 fi
3601 fi
3602 CC=$ac_cv_prog_CC
3603 if test -n "$CC"; then
3604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3605 $as_echo "$CC" >&6; }
3606 else
3607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3608 $as_echo "no" >&6; }
3609 fi
3610
3611
3612 fi
3613 if test -z "$ac_cv_prog_CC"; then
3614 ac_ct_CC=$CC
3615 # Extract the first word of "gcc", so it can be a program name with args.
3616 set dummy gcc; ac_word=$2
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3618 $as_echo_n "checking for $ac_word... " >&6; }
3619 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3620 $as_echo_n "(cached) " >&6
3621 else
3622 if test -n "$ac_ct_CC"; then
3623 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3624 else
3625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3626 for as_dir in $PATH
3627 do
3628 IFS=$as_save_IFS
3629 test -z "$as_dir" && as_dir=.
3630 for ac_exec_ext in '' $ac_executable_extensions; do
3631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3632 ac_cv_prog_ac_ct_CC="gcc"
3633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 break 2
3635 fi
3636 done
3637 done
3638 IFS=$as_save_IFS
3639
3640 fi
3641 fi
3642 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3643 if test -n "$ac_ct_CC"; then
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3645 $as_echo "$ac_ct_CC" >&6; }
3646 else
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3648 $as_echo "no" >&6; }
3649 fi
3650
3651 if test "x$ac_ct_CC" = x; then
3652 CC=""
3653 else
3654 case $cross_compiling:$ac_tool_warned in
3655 yes:)
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3657 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3658 ac_tool_warned=yes ;;
3659 esac
3660 CC=$ac_ct_CC
3661 fi
3662 else
3663 CC="$ac_cv_prog_CC"
3664 fi
3665
3666 if test -z "$CC"; then
3667 if test -n "$ac_tool_prefix"; then
3668 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3669 set dummy ${ac_tool_prefix}cc; ac_word=$2
3670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3671 $as_echo_n "checking for $ac_word... " >&6; }
3672 if ${ac_cv_prog_CC+:} false; then :
3673 $as_echo_n "(cached) " >&6
3674 else
3675 if test -n "$CC"; then
3676 ac_cv_prog_CC="$CC" # Let the user override the test.
3677 else
3678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3679 for as_dir in $PATH
3680 do
3681 IFS=$as_save_IFS
3682 test -z "$as_dir" && as_dir=.
3683 for ac_exec_ext in '' $ac_executable_extensions; do
3684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3685 ac_cv_prog_CC="${ac_tool_prefix}cc"
3686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3687 break 2
3688 fi
3689 done
3690 done
3691 IFS=$as_save_IFS
3692
3693 fi
3694 fi
3695 CC=$ac_cv_prog_CC
3696 if test -n "$CC"; then
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3698 $as_echo "$CC" >&6; }
3699 else
3700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701 $as_echo "no" >&6; }
3702 fi
3703
3704
3705 fi
3706 fi
3707 if test -z "$CC"; then
3708 # Extract the first word of "cc", so it can be a program name with args.
3709 set dummy cc; ac_word=$2
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3711 $as_echo_n "checking for $ac_word... " >&6; }
3712 if ${ac_cv_prog_CC+:} false; then :
3713 $as_echo_n "(cached) " >&6
3714 else
3715 if test -n "$CC"; then
3716 ac_cv_prog_CC="$CC" # Let the user override the test.
3717 else
3718 ac_prog_rejected=no
3719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3720 for as_dir in $PATH
3721 do
3722 IFS=$as_save_IFS
3723 test -z "$as_dir" && as_dir=.
3724 for ac_exec_ext in '' $ac_executable_extensions; do
3725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3726 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3727 ac_prog_rejected=yes
3728 continue
3729 fi
3730 ac_cv_prog_CC="cc"
3731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3732 break 2
3733 fi
3734 done
3735 done
3736 IFS=$as_save_IFS
3737
3738 if test $ac_prog_rejected = yes; then
3739 # We found a bogon in the path, so make sure we never use it.
3740 set dummy $ac_cv_prog_CC
3741 shift
3742 if test $# != 0; then
3743 # We chose a different compiler from the bogus one.
3744 # However, it has the same basename, so the bogon will be chosen
3745 # first if we set CC to just the basename; use the full file name.
3746 shift
3747 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3748 fi
3749 fi
3750 fi
3751 fi
3752 CC=$ac_cv_prog_CC
3753 if test -n "$CC"; then
3754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3755 $as_echo "$CC" >&6; }
3756 else
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758 $as_echo "no" >&6; }
3759 fi
3760
3761
3762 fi
3763 if test -z "$CC"; then
3764 if test -n "$ac_tool_prefix"; then
3765 for ac_prog in cl.exe
3766 do
3767 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3768 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3770 $as_echo_n "checking for $ac_word... " >&6; }
3771 if ${ac_cv_prog_CC+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -n "$CC"; then
3775 ac_cv_prog_CC="$CC" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_exec_ext in '' $ac_executable_extensions; do
3783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3784 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3786 break 2
3787 fi
3788 done
3789 done
3790 IFS=$as_save_IFS
3791
3792 fi
3793 fi
3794 CC=$ac_cv_prog_CC
3795 if test -n "$CC"; then
3796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3797 $as_echo "$CC" >&6; }
3798 else
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3800 $as_echo "no" >&6; }
3801 fi
3802
3803
3804 test -n "$CC" && break
3805 done
3806 fi
3807 if test -z "$CC"; then
3808 ac_ct_CC=$CC
3809 for ac_prog in cl.exe
3810 do
3811 # Extract the first word of "$ac_prog", so it can be a program name with args.
3812 set dummy $ac_prog; ac_word=$2
3813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3814 $as_echo_n "checking for $ac_word... " >&6; }
3815 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3816 $as_echo_n "(cached) " >&6
3817 else
3818 if test -n "$ac_ct_CC"; then
3819 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3820 else
3821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3822 for as_dir in $PATH
3823 do
3824 IFS=$as_save_IFS
3825 test -z "$as_dir" && as_dir=.
3826 for ac_exec_ext in '' $ac_executable_extensions; do
3827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3828 ac_cv_prog_ac_ct_CC="$ac_prog"
3829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3830 break 2
3831 fi
3832 done
3833 done
3834 IFS=$as_save_IFS
3835
3836 fi
3837 fi
3838 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3839 if test -n "$ac_ct_CC"; then
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3841 $as_echo "$ac_ct_CC" >&6; }
3842 else
3843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3844 $as_echo "no" >&6; }
3845 fi
3846
3847
3848 test -n "$ac_ct_CC" && break
3849 done
3850
3851 if test "x$ac_ct_CC" = x; then
3852 CC=""
3853 else
3854 case $cross_compiling:$ac_tool_warned in
3855 yes:)
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3857 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3858 ac_tool_warned=yes ;;
3859 esac
3860 CC=$ac_ct_CC
3861 fi
3862 fi
3863
3864 fi
3865
3866
3867 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3868 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3869 as_fn_error $? "no acceptable C compiler found in \$PATH
3870 See \`config.log' for more details" "$LINENO" 5; }
3871
3872 # Provide some information about the compiler.
3873 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3874 set X $ac_compile
3875 ac_compiler=$2
3876 for ac_option in --version -v -V -qversion; do
3877 { { ac_try="$ac_compiler $ac_option >&5"
3878 case "(($ac_try" in
3879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3880 *) ac_try_echo=$ac_try;;
3881 esac
3882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3883 $as_echo "$ac_try_echo"; } >&5
3884 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3885 ac_status=$?
3886 if test -s conftest.err; then
3887 sed '10a\
3888 ... rest of stderr output deleted ...
3889 10q' conftest.err >conftest.er1
3890 cat conftest.er1 >&5
3891 fi
3892 rm -f conftest.er1 conftest.err
3893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3894 test $ac_status = 0; }
3895 done
3896
3897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3898 /* end confdefs.h. */
3899
3900 int
3901 main ()
3902 {
3903
3904 ;
3905 return 0;
3906 }
3907 _ACEOF
3908 ac_clean_files_save=$ac_clean_files
3909 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3910 # Try to create an executable without -o first, disregard a.out.
3911 # It will help us diagnose broken compilers, and finding out an intuition
3912 # of exeext.
3913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3914 $as_echo_n "checking whether the C compiler works... " >&6; }
3915 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3916
3917 # The possible output files:
3918 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3919
3920 ac_rmfiles=
3921 for ac_file in $ac_files
3922 do
3923 case $ac_file in
3924 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3925 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3926 esac
3927 done
3928 rm -f $ac_rmfiles
3929
3930 if { { ac_try="$ac_link_default"
3931 case "(($ac_try" in
3932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3933 *) ac_try_echo=$ac_try;;
3934 esac
3935 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3936 $as_echo "$ac_try_echo"; } >&5
3937 (eval "$ac_link_default") 2>&5
3938 ac_status=$?
3939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3940 test $ac_status = 0; }; then :
3941 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3942 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3943 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3944 # so that the user can short-circuit this test for compilers unknown to
3945 # Autoconf.
3946 for ac_file in $ac_files ''
3947 do
3948 test -f "$ac_file" || continue
3949 case $ac_file in
3950 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3951 ;;
3952 [ab].out )
3953 # We found the default executable, but exeext='' is most
3954 # certainly right.
3955 break;;
3956 *.* )
3957 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3958 then :; else
3959 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3960 fi
3961 # We set ac_cv_exeext here because the later test for it is not
3962 # safe: cross compilers may not add the suffix if given an `-o'
3963 # argument, so we may need to know it at that point already.
3964 # Even if this section looks crufty: it has the advantage of
3965 # actually working.
3966 break;;
3967 * )
3968 break;;
3969 esac
3970 done
3971 test "$ac_cv_exeext" = no && ac_cv_exeext=
3972
3973 else
3974 ac_file=''
3975 fi
3976 if test -z "$ac_file"; then :
3977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3978 $as_echo "no" >&6; }
3979 $as_echo "$as_me: failed program was:" >&5
3980 sed 's/^/| /' conftest.$ac_ext >&5
3981
3982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3984 as_fn_error 77 "C compiler cannot create executables
3985 See \`config.log' for more details" "$LINENO" 5; }
3986 else
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3988 $as_echo "yes" >&6; }
3989 fi
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3991 $as_echo_n "checking for C compiler default output file name... " >&6; }
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3993 $as_echo "$ac_file" >&6; }
3994 ac_exeext=$ac_cv_exeext
3995
3996 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3997 ac_clean_files=$ac_clean_files_save
3998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3999 $as_echo_n "checking for suffix of executables... " >&6; }
4000 if { { ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; then :
4011 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4012 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4013 # work properly (i.e., refer to `conftest.exe'), while it won't with
4014 # `rm'.
4015 for ac_file in conftest.exe conftest conftest.*; do
4016 test -f "$ac_file" || continue
4017 case $ac_file in
4018 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4019 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4020 break;;
4021 * ) break;;
4022 esac
4023 done
4024 else
4025 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4026 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4027 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4028 See \`config.log' for more details" "$LINENO" 5; }
4029 fi
4030 rm -f conftest conftest$ac_cv_exeext
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4032 $as_echo "$ac_cv_exeext" >&6; }
4033
4034 rm -f conftest.$ac_ext
4035 EXEEXT=$ac_cv_exeext
4036 ac_exeext=$EXEEXT
4037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4038 /* end confdefs.h. */
4039 #include <stdio.h>
4040 int
4041 main ()
4042 {
4043 FILE *f = fopen ("conftest.out", "w");
4044 return ferror (f) || fclose (f) != 0;
4045
4046 ;
4047 return 0;
4048 }
4049 _ACEOF
4050 ac_clean_files="$ac_clean_files conftest.out"
4051 # Check that the compiler produces executables we can run. If not, either
4052 # the compiler is broken, or we cross compile.
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4054 $as_echo_n "checking whether we are cross compiling... " >&6; }
4055 if test "$cross_compiling" != yes; then
4056 { { ac_try="$ac_link"
4057 case "(($ac_try" in
4058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4059 *) ac_try_echo=$ac_try;;
4060 esac
4061 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4062 $as_echo "$ac_try_echo"; } >&5
4063 (eval "$ac_link") 2>&5
4064 ac_status=$?
4065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4066 test $ac_status = 0; }
4067 if { ac_try='./conftest$ac_cv_exeext'
4068 { { case "(($ac_try" in
4069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4070 *) ac_try_echo=$ac_try;;
4071 esac
4072 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4073 $as_echo "$ac_try_echo"; } >&5
4074 (eval "$ac_try") 2>&5
4075 ac_status=$?
4076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4077 test $ac_status = 0; }; }; then
4078 cross_compiling=no
4079 else
4080 if test "$cross_compiling" = maybe; then
4081 cross_compiling=yes
4082 else
4083 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4084 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4085 as_fn_error $? "cannot run C compiled programs.
4086 If you meant to cross compile, use \`--host'.
4087 See \`config.log' for more details" "$LINENO" 5; }
4088 fi
4089 fi
4090 fi
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4092 $as_echo "$cross_compiling" >&6; }
4093
4094 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4095 ac_clean_files=$ac_clean_files_save
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4097 $as_echo_n "checking for suffix of object files... " >&6; }
4098 if ${ac_cv_objext+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4102 /* end confdefs.h. */
4103
4104 int
4105 main ()
4106 {
4107
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 rm -f conftest.o conftest.obj
4113 if { { ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4119 $as_echo "$ac_try_echo"; } >&5
4120 (eval "$ac_compile") 2>&5
4121 ac_status=$?
4122 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4123 test $ac_status = 0; }; then :
4124 for ac_file in conftest.o conftest.obj conftest.*; do
4125 test -f "$ac_file" || continue;
4126 case $ac_file in
4127 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4128 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4129 break;;
4130 esac
4131 done
4132 else
4133 $as_echo "$as_me: failed program was:" >&5
4134 sed 's/^/| /' conftest.$ac_ext >&5
4135
4136 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4137 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4138 as_fn_error $? "cannot compute suffix of object files: cannot compile
4139 See \`config.log' for more details" "$LINENO" 5; }
4140 fi
4141 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4142 fi
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4144 $as_echo "$ac_cv_objext" >&6; }
4145 OBJEXT=$ac_cv_objext
4146 ac_objext=$OBJEXT
4147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4148 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4149 if ${ac_cv_c_compiler_gnu+:} false; then :
4150 $as_echo_n "(cached) " >&6
4151 else
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158 #ifndef __GNUC__
4159 choke me
4160 #endif
4161
4162 ;
4163 return 0;
4164 }
4165 _ACEOF
4166 if ac_fn_c_try_compile "$LINENO"; then :
4167 ac_compiler_gnu=yes
4168 else
4169 ac_compiler_gnu=no
4170 fi
4171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4172 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4173
4174 fi
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4176 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4177 if test $ac_compiler_gnu = yes; then
4178 GCC=yes
4179 else
4180 GCC=
4181 fi
4182 ac_test_CFLAGS=${CFLAGS+set}
4183 ac_save_CFLAGS=$CFLAGS
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4185 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4186 if ${ac_cv_prog_cc_g+:} false; then :
4187 $as_echo_n "(cached) " >&6
4188 else
4189 ac_save_c_werror_flag=$ac_c_werror_flag
4190 ac_c_werror_flag=yes
4191 ac_cv_prog_cc_g=no
4192 CFLAGS="-g"
4193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4194 /* end confdefs.h. */
4195
4196 int
4197 main ()
4198 {
4199
4200 ;
4201 return 0;
4202 }
4203 _ACEOF
4204 if ac_fn_c_try_compile "$LINENO"; then :
4205 ac_cv_prog_cc_g=yes
4206 else
4207 CFLAGS=""
4208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209 /* end confdefs.h. */
4210
4211 int
4212 main ()
4213 {
4214
4215 ;
4216 return 0;
4217 }
4218 _ACEOF
4219 if ac_fn_c_try_compile "$LINENO"; then :
4220
4221 else
4222 ac_c_werror_flag=$ac_save_c_werror_flag
4223 CFLAGS="-g"
4224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4225 /* end confdefs.h. */
4226
4227 int
4228 main ()
4229 {
4230
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 if ac_fn_c_try_compile "$LINENO"; then :
4236 ac_cv_prog_cc_g=yes
4237 fi
4238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4239 fi
4240 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4241 fi
4242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4243 ac_c_werror_flag=$ac_save_c_werror_flag
4244 fi
4245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4246 $as_echo "$ac_cv_prog_cc_g" >&6; }
4247 if test "$ac_test_CFLAGS" = set; then
4248 CFLAGS=$ac_save_CFLAGS
4249 elif test $ac_cv_prog_cc_g = yes; then
4250 if test "$GCC" = yes; then
4251 CFLAGS="-g -O2"
4252 else
4253 CFLAGS="-g"
4254 fi
4255 else
4256 if test "$GCC" = yes; then
4257 CFLAGS="-O2"
4258 else
4259 CFLAGS=
4260 fi
4261 fi
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4263 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4264 if ${ac_cv_prog_cc_c89+:} false; then :
4265 $as_echo_n "(cached) " >&6
4266 else
4267 ac_cv_prog_cc_c89=no
4268 ac_save_CC=$CC
4269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4270 /* end confdefs.h. */
4271 #include <stdarg.h>
4272 #include <stdio.h>
4273 struct stat;
4274 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4275 struct buf { int x; };
4276 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4277 static char *e (p, i)
4278 char **p;
4279 int i;
4280 {
4281 return p[i];
4282 }
4283 static char *f (char * (*g) (char **, int), char **p, ...)
4284 {
4285 char *s;
4286 va_list v;
4287 va_start (v,p);
4288 s = g (p, va_arg (v,int));
4289 va_end (v);
4290 return s;
4291 }
4292
4293 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4294 function prototypes and stuff, but not '\xHH' hex character constants.
4295 These don't provoke an error unfortunately, instead are silently treated
4296 as 'x'. The following induces an error, until -std is added to get
4297 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4298 array size at least. It's necessary to write '\x00'==0 to get something
4299 that's true only with -std. */
4300 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4301
4302 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4303 inside strings and character constants. */
4304 #define FOO(x) 'x'
4305 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4306
4307 int test (int i, double x);
4308 struct s1 {int (*f) (int a);};
4309 struct s2 {int (*f) (double a);};
4310 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4311 int argc;
4312 char **argv;
4313 int
4314 main ()
4315 {
4316 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4317 ;
4318 return 0;
4319 }
4320 _ACEOF
4321 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4322 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4323 do
4324 CC="$ac_save_CC $ac_arg"
4325 if ac_fn_c_try_compile "$LINENO"; then :
4326 ac_cv_prog_cc_c89=$ac_arg
4327 fi
4328 rm -f core conftest.err conftest.$ac_objext
4329 test "x$ac_cv_prog_cc_c89" != "xno" && break
4330 done
4331 rm -f conftest.$ac_ext
4332 CC=$ac_save_CC
4333
4334 fi
4335 # AC_CACHE_VAL
4336 case "x$ac_cv_prog_cc_c89" in
4337 x)
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4339 $as_echo "none needed" >&6; } ;;
4340 xno)
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4342 $as_echo "unsupported" >&6; } ;;
4343 *)
4344 CC="$CC $ac_cv_prog_cc_c89"
4345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4346 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4347 esac
4348 if test "x$ac_cv_prog_cc_c89" != xno; then :
4349
4350 fi
4351
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357
4358 ac_ext=c
4359 ac_cpp='$CPP $CPPFLAGS'
4360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4364 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4365 if ${am_cv_prog_cc_c_o+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370
4371 int
4372 main ()
4373 {
4374
4375 ;
4376 return 0;
4377 }
4378 _ACEOF
4379 # Make sure it works both with $CC and with simple cc.
4380 # Following AC_PROG_CC_C_O, we do the test twice because some
4381 # compilers refuse to overwrite an existing .o file with -o,
4382 # though they will create one.
4383 am_cv_prog_cc_c_o=yes
4384 for am_i in 1 2; do
4385 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4386 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4387 ac_status=$?
4388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4389 (exit $ac_status); } \
4390 && test -f conftest2.$ac_objext; then
4391 : OK
4392 else
4393 am_cv_prog_cc_c_o=no
4394 break
4395 fi
4396 done
4397 rm -f core conftest*
4398 unset am_i
4399 fi
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4401 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4402 if test "$am_cv_prog_cc_c_o" != yes; then
4403 # Losing compiler, so override with the script.
4404 # FIXME: It is wrong to rewrite CC.
4405 # But if we don't then we get into trouble of one sort or another.
4406 # A longer-term fix would be to have automake use am__CC in this case,
4407 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4408 CC="$am_aux_dir/compile $CC"
4409 fi
4410 ac_ext=c
4411 ac_cpp='$CPP $CPPFLAGS'
4412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4415
4416 DEPDIR="${am__leading_dot}deps"
4417
4418 ac_config_commands="$ac_config_commands depfiles"
4419
4420
4421 am_make=${MAKE-make}
4422 cat > confinc << 'END'
4423 am__doit:
4424 @echo this is the am__doit target
4425 .PHONY: am__doit
4426 END
4427 # If we don't find an include directive, just comment out the code.
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4429 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4430 am__include="#"
4431 am__quote=
4432 _am_result=none
4433 # First try GNU make style include.
4434 echo "include confinc" > confmf
4435 # Ignore all kinds of additional output from 'make'.
4436 case `$am_make -s -f confmf 2> /dev/null` in #(
4437 *the\ am__doit\ target*)
4438 am__include=include
4439 am__quote=
4440 _am_result=GNU
4441 ;;
4442 esac
4443 # Now try BSD make style include.
4444 if test "$am__include" = "#"; then
4445 echo '.include "confinc"' > confmf
4446 case `$am_make -s -f confmf 2> /dev/null` in #(
4447 *the\ am__doit\ target*)
4448 am__include=.include
4449 am__quote="\""
4450 _am_result=BSD
4451 ;;
4452 esac
4453 fi
4454
4455
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4457 $as_echo "$_am_result" >&6; }
4458 rm -f confinc confmf
4459
4460 # Check whether --enable-dependency-tracking was given.
4461 if test "${enable_dependency_tracking+set}" = set; then :
4462 enableval=$enable_dependency_tracking;
4463 fi
4464
4465 if test "x$enable_dependency_tracking" != xno; then
4466 am_depcomp="$ac_aux_dir/depcomp"
4467 AMDEPBACKSLASH='\'
4468 am__nodep='_no'
4469 fi
4470 if test "x$enable_dependency_tracking" != xno; then
4471 AMDEP_TRUE=
4472 AMDEP_FALSE='#'
4473 else
4474 AMDEP_TRUE='#'
4475 AMDEP_FALSE=
4476 fi
4477
4478
4479
4480 depcc="$CC" am_compiler_list=
4481
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4483 $as_echo_n "checking dependency style of $depcc... " >&6; }
4484 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4488 # We make a subdir and do the tests there. Otherwise we can end up
4489 # making bogus files that we don't know about and never remove. For
4490 # instance it was reported that on HP-UX the gcc test will end up
4491 # making a dummy file named 'D' -- because '-MD' means "put the output
4492 # in D".
4493 rm -rf conftest.dir
4494 mkdir conftest.dir
4495 # Copy depcomp to subdir because otherwise we won't find it if we're
4496 # using a relative directory.
4497 cp "$am_depcomp" conftest.dir
4498 cd conftest.dir
4499 # We will build objects and dependencies in a subdirectory because
4500 # it helps to detect inapplicable dependency modes. For instance
4501 # both Tru64's cc and ICC support -MD to output dependencies as a
4502 # side effect of compilation, but ICC will put the dependencies in
4503 # the current directory while Tru64 will put them in the object
4504 # directory.
4505 mkdir sub
4506
4507 am_cv_CC_dependencies_compiler_type=none
4508 if test "$am_compiler_list" = ""; then
4509 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4510 fi
4511 am__universal=false
4512 case " $depcc " in #(
4513 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4514 esac
4515
4516 for depmode in $am_compiler_list; do
4517 # Setup a source with many dependencies, because some compilers
4518 # like to wrap large dependency lists on column 80 (with \), and
4519 # we should not choose a depcomp mode which is confused by this.
4520 #
4521 # We need to recreate these files for each test, as the compiler may
4522 # overwrite some of them when testing with obscure command lines.
4523 # This happens at least with the AIX C compiler.
4524 : > sub/conftest.c
4525 for i in 1 2 3 4 5 6; do
4526 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4527 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4528 # Solaris 10 /bin/sh.
4529 echo '/* dummy */' > sub/conftst$i.h
4530 done
4531 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4532
4533 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4534 # mode. It turns out that the SunPro C++ compiler does not properly
4535 # handle '-M -o', and we need to detect this. Also, some Intel
4536 # versions had trouble with output in subdirs.
4537 am__obj=sub/conftest.${OBJEXT-o}
4538 am__minus_obj="-o $am__obj"
4539 case $depmode in
4540 gcc)
4541 # This depmode causes a compiler race in universal mode.
4542 test "$am__universal" = false || continue
4543 ;;
4544 nosideeffect)
4545 # After this tag, mechanisms are not by side-effect, so they'll
4546 # only be used when explicitly requested.
4547 if test "x$enable_dependency_tracking" = xyes; then
4548 continue
4549 else
4550 break
4551 fi
4552 ;;
4553 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4554 # This compiler won't grok '-c -o', but also, the minuso test has
4555 # not run yet. These depmodes are late enough in the game, and
4556 # so weak that their functioning should not be impacted.
4557 am__obj=conftest.${OBJEXT-o}
4558 am__minus_obj=
4559 ;;
4560 none) break ;;
4561 esac
4562 if depmode=$depmode \
4563 source=sub/conftest.c object=$am__obj \
4564 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4565 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4566 >/dev/null 2>conftest.err &&
4567 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4568 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4569 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4570 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4571 # icc doesn't choke on unknown options, it will just issue warnings
4572 # or remarks (even with -Werror). So we grep stderr for any message
4573 # that says an option was ignored or not supported.
4574 # When given -MP, icc 7.0 and 7.1 complain thusly:
4575 # icc: Command line warning: ignoring option '-M'; no argument required
4576 # The diagnosis changed in icc 8.0:
4577 # icc: Command line remark: option '-MP' not supported
4578 if (grep 'ignoring option' conftest.err ||
4579 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4580 am_cv_CC_dependencies_compiler_type=$depmode
4581 break
4582 fi
4583 fi
4584 done
4585
4586 cd ..
4587 rm -rf conftest.dir
4588 else
4589 am_cv_CC_dependencies_compiler_type=none
4590 fi
4591
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4594 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4595 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4596
4597 if
4598 test "x$enable_dependency_tracking" != xno \
4599 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4600 am__fastdepCC_TRUE=
4601 am__fastdepCC_FALSE='#'
4602 else
4603 am__fastdepCC_TRUE='#'
4604 am__fastdepCC_FALSE=
4605 fi
4606
4607
4608
4609
4610
4611
4612 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4613 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4614 # in both places for now and restore CFLAGS at the end of config.
4615 save_CFLAGS="$CFLAGS"
4616
4617 # Add -Wall -Werror if we are using GCC.
4618 if test "x$GCC" = "xyes"; then
4619 XCFLAGS="$XCFLAGS -Wall -Werror"
4620 fi
4621
4622 # Find other programs we need.
4623 if test -n "$ac_tool_prefix"; then
4624 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4625 set dummy ${ac_tool_prefix}ar; ac_word=$2
4626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4627 $as_echo_n "checking for $ac_word... " >&6; }
4628 if ${ac_cv_prog_AR+:} false; then :
4629 $as_echo_n "(cached) " >&6
4630 else
4631 if test -n "$AR"; then
4632 ac_cv_prog_AR="$AR" # Let the user override the test.
4633 else
4634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4635 for as_dir in $PATH
4636 do
4637 IFS=$as_save_IFS
4638 test -z "$as_dir" && as_dir=.
4639 for ac_exec_ext in '' $ac_executable_extensions; do
4640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4641 ac_cv_prog_AR="${ac_tool_prefix}ar"
4642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4643 break 2
4644 fi
4645 done
4646 done
4647 IFS=$as_save_IFS
4648
4649 fi
4650 fi
4651 AR=$ac_cv_prog_AR
4652 if test -n "$AR"; then
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4654 $as_echo "$AR" >&6; }
4655 else
4656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4657 $as_echo "no" >&6; }
4658 fi
4659
4660
4661 fi
4662 if test -z "$ac_cv_prog_AR"; then
4663 ac_ct_AR=$AR
4664 # Extract the first word of "ar", so it can be a program name with args.
4665 set dummy ar; ac_word=$2
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4667 $as_echo_n "checking for $ac_word... " >&6; }
4668 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4669 $as_echo_n "(cached) " >&6
4670 else
4671 if test -n "$ac_ct_AR"; then
4672 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4673 else
4674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4675 for as_dir in $PATH
4676 do
4677 IFS=$as_save_IFS
4678 test -z "$as_dir" && as_dir=.
4679 for ac_exec_ext in '' $ac_executable_extensions; do
4680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4681 ac_cv_prog_ac_ct_AR="ar"
4682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4683 break 2
4684 fi
4685 done
4686 done
4687 IFS=$as_save_IFS
4688
4689 fi
4690 fi
4691 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4692 if test -n "$ac_ct_AR"; then
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4694 $as_echo "$ac_ct_AR" >&6; }
4695 else
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4697 $as_echo "no" >&6; }
4698 fi
4699
4700 if test "x$ac_ct_AR" = x; then
4701 AR=""
4702 else
4703 case $cross_compiling:$ac_tool_warned in
4704 yes:)
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4706 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4707 ac_tool_warned=yes ;;
4708 esac
4709 AR=$ac_ct_AR
4710 fi
4711 else
4712 AR="$ac_cv_prog_AR"
4713 fi
4714
4715 if test -n "$ac_tool_prefix"; then
4716 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4717 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4719 $as_echo_n "checking for $ac_word... " >&6; }
4720 if ${ac_cv_prog_RANLIB+:} false; then :
4721 $as_echo_n "(cached) " >&6
4722 else
4723 if test -n "$RANLIB"; then
4724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4725 else
4726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4727 for as_dir in $PATH
4728 do
4729 IFS=$as_save_IFS
4730 test -z "$as_dir" && as_dir=.
4731 for ac_exec_ext in '' $ac_executable_extensions; do
4732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4733 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4735 break 2
4736 fi
4737 done
4738 done
4739 IFS=$as_save_IFS
4740
4741 fi
4742 fi
4743 RANLIB=$ac_cv_prog_RANLIB
4744 if test -n "$RANLIB"; then
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4746 $as_echo "$RANLIB" >&6; }
4747 else
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4749 $as_echo "no" >&6; }
4750 fi
4751
4752
4753 fi
4754 if test -z "$ac_cv_prog_RANLIB"; then
4755 ac_ct_RANLIB=$RANLIB
4756 # Extract the first word of "ranlib", so it can be a program name with args.
4757 set dummy ranlib; ac_word=$2
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4759 $as_echo_n "checking for $ac_word... " >&6; }
4760 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if test -n "$ac_ct_RANLIB"; then
4764 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4765 else
4766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767 for as_dir in $PATH
4768 do
4769 IFS=$as_save_IFS
4770 test -z "$as_dir" && as_dir=.
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4773 ac_cv_prog_ac_ct_RANLIB="ranlib"
4774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775 break 2
4776 fi
4777 done
4778 done
4779 IFS=$as_save_IFS
4780
4781 fi
4782 fi
4783 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4784 if test -n "$ac_ct_RANLIB"; then
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4786 $as_echo "$ac_ct_RANLIB" >&6; }
4787 else
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4789 $as_echo "no" >&6; }
4790 fi
4791
4792 if test "x$ac_ct_RANLIB" = x; then
4793 RANLIB="ranlib-not-found-in-path-error"
4794 else
4795 case $cross_compiling:$ac_tool_warned in
4796 yes:)
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4798 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4799 ac_tool_warned=yes ;;
4800 esac
4801 RANLIB=$ac_ct_RANLIB
4802 fi
4803 else
4804 RANLIB="$ac_cv_prog_RANLIB"
4805 fi
4806
4807 # Extract the first word of "perl", so it can be a program name with args.
4808 set dummy perl; ac_word=$2
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4810 $as_echo_n "checking for $ac_word... " >&6; }
4811 if ${ac_cv_path_PERL+:} false; then :
4812 $as_echo_n "(cached) " >&6
4813 else
4814 case $PERL in
4815 [\\/]* | ?:[\\/]*)
4816 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4817 ;;
4818 *)
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH
4821 do
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_exec_ext in '' $ac_executable_extensions; do
4825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4826 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 break 2
4829 fi
4830 done
4831 done
4832 IFS=$as_save_IFS
4833
4834 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4835 ;;
4836 esac
4837 fi
4838 PERL=$ac_cv_path_PERL
4839 if test -n "$PERL"; then
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4841 $as_echo "$PERL" >&6; }
4842 else
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4844 $as_echo "no" >&6; }
4845 fi
4846
4847
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4849 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4850 set x ${MAKE-make}
4851 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4852 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4853 $as_echo_n "(cached) " >&6
4854 else
4855 cat >conftest.make <<\_ACEOF
4856 SHELL = /bin/sh
4857 all:
4858 @echo '@@@%%%=$(MAKE)=@@@%%%'
4859 _ACEOF
4860 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4861 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4862 *@@@%%%=?*=@@@%%%*)
4863 eval ac_cv_prog_make_${ac_make}_set=yes;;
4864 *)
4865 eval ac_cv_prog_make_${ac_make}_set=no;;
4866 esac
4867 rm -f conftest.make
4868 fi
4869 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4871 $as_echo "yes" >&6; }
4872 SET_MAKE=
4873 else
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4875 $as_echo "no" >&6; }
4876 SET_MAKE="MAKE=${MAKE-make}"
4877 fi
4878
4879
4880
4881 # See if makeinfo has been installed and is modern enough
4882 # that we can use it.
4883
4884 # Extract the first word of "makeinfo", so it can be a program name with args.
4885 set dummy makeinfo; ac_word=$2
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4887 $as_echo_n "checking for $ac_word... " >&6; }
4888 if ${ac_cv_prog_MAKEINFO+:} false; then :
4889 $as_echo_n "(cached) " >&6
4890 else
4891 if test -n "$MAKEINFO"; then
4892 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4893 else
4894 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4895 for as_dir in $PATH
4896 do
4897 IFS=$as_save_IFS
4898 test -z "$as_dir" && as_dir=.
4899 for ac_exec_ext in '' $ac_executable_extensions; do
4900 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4901 ac_cv_prog_MAKEINFO="makeinfo"
4902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4903 break 2
4904 fi
4905 done
4906 done
4907 IFS=$as_save_IFS
4908
4909 fi
4910 fi
4911 MAKEINFO=$ac_cv_prog_MAKEINFO
4912 if test -n "$MAKEINFO"; then
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4914 $as_echo "$MAKEINFO" >&6; }
4915 else
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4917 $as_echo "no" >&6; }
4918 fi
4919
4920
4921 if test -n "$MAKEINFO"; then
4922 # Found it, now check the version.
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4924 $as_echo_n "checking for modern makeinfo... " >&6; }
4925 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4926 $as_echo_n "(cached) " >&6
4927 else
4928 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4929 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4930
4931 case $ac_prog_version in
4932 '') gcc_cv_prog_makeinfo_modern=no;;
4933 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4934 *) gcc_cv_prog_makeinfo_modern=no;;
4935 esac
4936
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4939 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4940 else
4941 gcc_cv_prog_makeinfo_modern=no
4942 fi
4943 if test $gcc_cv_prog_makeinfo_modern = no; then
4944 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4945 fi
4946
4947 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4948 BUILD_INFO_TRUE=
4949 BUILD_INFO_FALSE='#'
4950 else
4951 BUILD_INFO_TRUE='#'
4952 BUILD_INFO_FALSE=
4953 fi
4954
4955
4956
4957 # Configure libtool
4958 case `pwd` in
4959 *\ * | *\ *)
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4961 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4962 esac
4963
4964
4965
4966 macro_version='2.2.7a'
4967 macro_revision='1.3134'
4968
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981 ltmain="$ac_aux_dir/ltmain.sh"
4982
4983 # Backslashify metacharacters that are still active within
4984 # double-quoted strings.
4985 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4986
4987 # Same as above, but do not quote variable references.
4988 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4989
4990 # Sed substitution to delay expansion of an escaped shell variable in a
4991 # double_quote_subst'ed string.
4992 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4993
4994 # Sed substitution to delay expansion of an escaped single quote.
4995 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4996
4997 # Sed substitution to avoid accidental globbing in evaled expressions
4998 no_glob_subst='s/\*/\\\*/g'
4999
5000 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5001 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5002 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5003
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5005 $as_echo_n "checking how to print strings... " >&6; }
5006 # Test print first, because it will be a builtin if present.
5007 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5008 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5009 ECHO='print -r --'
5010 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5011 ECHO='printf %s\n'
5012 else
5013 # Use this function as a fallback that always works.
5014 func_fallback_echo ()
5015 {
5016 eval 'cat <<_LTECHO_EOF
5017 $1
5018 _LTECHO_EOF'
5019 }
5020 ECHO='func_fallback_echo'
5021 fi
5022
5023 # func_echo_all arg...
5024 # Invoke $ECHO with all args, space-separated.
5025 func_echo_all ()
5026 {
5027 $ECHO ""
5028 }
5029
5030 case "$ECHO" in
5031 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5032 $as_echo "printf" >&6; } ;;
5033 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5034 $as_echo "print -r" >&6; } ;;
5035 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5036 $as_echo "cat" >&6; } ;;
5037 esac
5038
5039
5040
5041
5042
5043
5044
5045
5046
5047
5048
5049
5050
5051
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5053 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5054 if ${ac_cv_path_SED+:} false; then :
5055 $as_echo_n "(cached) " >&6
5056 else
5057 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5058 for ac_i in 1 2 3 4 5 6 7; do
5059 ac_script="$ac_script$as_nl$ac_script"
5060 done
5061 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5062 { ac_script=; unset ac_script;}
5063 if test -z "$SED"; then
5064 ac_path_SED_found=false
5065 # Loop through the user's path and test for each of PROGNAME-LIST
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_prog in sed gsed; do
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5074 as_fn_executable_p "$ac_path_SED" || continue
5075 # Check for GNU ac_path_SED and select it if it is found.
5076 # Check for GNU $ac_path_SED
5077 case `"$ac_path_SED" --version 2>&1` in
5078 *GNU*)
5079 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5080 *)
5081 ac_count=0
5082 $as_echo_n 0123456789 >"conftest.in"
5083 while :
5084 do
5085 cat "conftest.in" "conftest.in" >"conftest.tmp"
5086 mv "conftest.tmp" "conftest.in"
5087 cp "conftest.in" "conftest.nl"
5088 $as_echo '' >> "conftest.nl"
5089 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5090 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5091 as_fn_arith $ac_count + 1 && ac_count=$as_val
5092 if test $ac_count -gt ${ac_path_SED_max-0}; then
5093 # Best one so far, save it but keep looking for a better one
5094 ac_cv_path_SED="$ac_path_SED"
5095 ac_path_SED_max=$ac_count
5096 fi
5097 # 10*(2^10) chars as input seems more than enough
5098 test $ac_count -gt 10 && break
5099 done
5100 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5101 esac
5102
5103 $ac_path_SED_found && break 3
5104 done
5105 done
5106 done
5107 IFS=$as_save_IFS
5108 if test -z "$ac_cv_path_SED"; then
5109 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5110 fi
5111 else
5112 ac_cv_path_SED=$SED
5113 fi
5114
5115 fi
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5117 $as_echo "$ac_cv_path_SED" >&6; }
5118 SED="$ac_cv_path_SED"
5119 rm -f conftest.sed
5120
5121 test -z "$SED" && SED=sed
5122 Xsed="$SED -e 1s/^X//"
5123
5124
5125
5126
5127
5128
5129
5130
5131
5132
5133
5134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5135 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5136 if ${ac_cv_path_GREP+:} false; then :
5137 $as_echo_n "(cached) " >&6
5138 else
5139 if test -z "$GREP"; then
5140 ac_path_GREP_found=false
5141 # Loop through the user's path and test for each of PROGNAME-LIST
5142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5144 do
5145 IFS=$as_save_IFS
5146 test -z "$as_dir" && as_dir=.
5147 for ac_prog in grep ggrep; do
5148 for ac_exec_ext in '' $ac_executable_extensions; do
5149 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5150 as_fn_executable_p "$ac_path_GREP" || continue
5151 # Check for GNU ac_path_GREP and select it if it is found.
5152 # Check for GNU $ac_path_GREP
5153 case `"$ac_path_GREP" --version 2>&1` in
5154 *GNU*)
5155 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5156 *)
5157 ac_count=0
5158 $as_echo_n 0123456789 >"conftest.in"
5159 while :
5160 do
5161 cat "conftest.in" "conftest.in" >"conftest.tmp"
5162 mv "conftest.tmp" "conftest.in"
5163 cp "conftest.in" "conftest.nl"
5164 $as_echo 'GREP' >> "conftest.nl"
5165 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5166 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5167 as_fn_arith $ac_count + 1 && ac_count=$as_val
5168 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5169 # Best one so far, save it but keep looking for a better one
5170 ac_cv_path_GREP="$ac_path_GREP"
5171 ac_path_GREP_max=$ac_count
5172 fi
5173 # 10*(2^10) chars as input seems more than enough
5174 test $ac_count -gt 10 && break
5175 done
5176 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5177 esac
5178
5179 $ac_path_GREP_found && break 3
5180 done
5181 done
5182 done
5183 IFS=$as_save_IFS
5184 if test -z "$ac_cv_path_GREP"; then
5185 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5186 fi
5187 else
5188 ac_cv_path_GREP=$GREP
5189 fi
5190
5191 fi
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5193 $as_echo "$ac_cv_path_GREP" >&6; }
5194 GREP="$ac_cv_path_GREP"
5195
5196
5197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5198 $as_echo_n "checking for egrep... " >&6; }
5199 if ${ac_cv_path_EGREP+:} false; then :
5200 $as_echo_n "(cached) " >&6
5201 else
5202 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5203 then ac_cv_path_EGREP="$GREP -E"
5204 else
5205 if test -z "$EGREP"; then
5206 ac_path_EGREP_found=false
5207 # Loop through the user's path and test for each of PROGNAME-LIST
5208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5209 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5210 do
5211 IFS=$as_save_IFS
5212 test -z "$as_dir" && as_dir=.
5213 for ac_prog in egrep; do
5214 for ac_exec_ext in '' $ac_executable_extensions; do
5215 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5216 as_fn_executable_p "$ac_path_EGREP" || continue
5217 # Check for GNU ac_path_EGREP and select it if it is found.
5218 # Check for GNU $ac_path_EGREP
5219 case `"$ac_path_EGREP" --version 2>&1` in
5220 *GNU*)
5221 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5222 *)
5223 ac_count=0
5224 $as_echo_n 0123456789 >"conftest.in"
5225 while :
5226 do
5227 cat "conftest.in" "conftest.in" >"conftest.tmp"
5228 mv "conftest.tmp" "conftest.in"
5229 cp "conftest.in" "conftest.nl"
5230 $as_echo 'EGREP' >> "conftest.nl"
5231 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5232 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5233 as_fn_arith $ac_count + 1 && ac_count=$as_val
5234 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5235 # Best one so far, save it but keep looking for a better one
5236 ac_cv_path_EGREP="$ac_path_EGREP"
5237 ac_path_EGREP_max=$ac_count
5238 fi
5239 # 10*(2^10) chars as input seems more than enough
5240 test $ac_count -gt 10 && break
5241 done
5242 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5243 esac
5244
5245 $ac_path_EGREP_found && break 3
5246 done
5247 done
5248 done
5249 IFS=$as_save_IFS
5250 if test -z "$ac_cv_path_EGREP"; then
5251 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5252 fi
5253 else
5254 ac_cv_path_EGREP=$EGREP
5255 fi
5256
5257 fi
5258 fi
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5260 $as_echo "$ac_cv_path_EGREP" >&6; }
5261 EGREP="$ac_cv_path_EGREP"
5262
5263
5264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5265 $as_echo_n "checking for fgrep... " >&6; }
5266 if ${ac_cv_path_FGREP+:} false; then :
5267 $as_echo_n "(cached) " >&6
5268 else
5269 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5270 then ac_cv_path_FGREP="$GREP -F"
5271 else
5272 if test -z "$FGREP"; then
5273 ac_path_FGREP_found=false
5274 # Loop through the user's path and test for each of PROGNAME-LIST
5275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5277 do
5278 IFS=$as_save_IFS
5279 test -z "$as_dir" && as_dir=.
5280 for ac_prog in fgrep; do
5281 for ac_exec_ext in '' $ac_executable_extensions; do
5282 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5283 as_fn_executable_p "$ac_path_FGREP" || continue
5284 # Check for GNU ac_path_FGREP and select it if it is found.
5285 # Check for GNU $ac_path_FGREP
5286 case `"$ac_path_FGREP" --version 2>&1` in
5287 *GNU*)
5288 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5289 *)
5290 ac_count=0
5291 $as_echo_n 0123456789 >"conftest.in"
5292 while :
5293 do
5294 cat "conftest.in" "conftest.in" >"conftest.tmp"
5295 mv "conftest.tmp" "conftest.in"
5296 cp "conftest.in" "conftest.nl"
5297 $as_echo 'FGREP' >> "conftest.nl"
5298 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5300 as_fn_arith $ac_count + 1 && ac_count=$as_val
5301 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5302 # Best one so far, save it but keep looking for a better one
5303 ac_cv_path_FGREP="$ac_path_FGREP"
5304 ac_path_FGREP_max=$ac_count
5305 fi
5306 # 10*(2^10) chars as input seems more than enough
5307 test $ac_count -gt 10 && break
5308 done
5309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5310 esac
5311
5312 $ac_path_FGREP_found && break 3
5313 done
5314 done
5315 done
5316 IFS=$as_save_IFS
5317 if test -z "$ac_cv_path_FGREP"; then
5318 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5319 fi
5320 else
5321 ac_cv_path_FGREP=$FGREP
5322 fi
5323
5324 fi
5325 fi
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5327 $as_echo "$ac_cv_path_FGREP" >&6; }
5328 FGREP="$ac_cv_path_FGREP"
5329
5330
5331 test -z "$GREP" && GREP=grep
5332
5333
5334
5335
5336
5337
5338
5339
5340
5341
5342
5343
5344
5345
5346
5347
5348
5349
5350
5351 # Check whether --with-gnu-ld was given.
5352 if test "${with_gnu_ld+set}" = set; then :
5353 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5354 else
5355 with_gnu_ld=no
5356 fi
5357
5358 ac_prog=ld
5359 if test "$GCC" = yes; then
5360 # Check if gcc -print-prog-name=ld gives a path.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5362 $as_echo_n "checking for ld used by $CC... " >&6; }
5363 case $host in
5364 *-*-mingw*)
5365 # gcc leaves a trailing carriage return which upsets mingw
5366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5367 *)
5368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5369 esac
5370 case $ac_prog in
5371 # Accept absolute paths.
5372 [\\/]* | ?:[\\/]*)
5373 re_direlt='/[^/][^/]*/\.\./'
5374 # Canonicalize the pathname of ld
5375 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5376 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5377 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5378 done
5379 test -z "$LD" && LD="$ac_prog"
5380 ;;
5381 "")
5382 # If it fails, then pretend we aren't using GCC.
5383 ac_prog=ld
5384 ;;
5385 *)
5386 # If it is relative, then search for the first ld in PATH.
5387 with_gnu_ld=unknown
5388 ;;
5389 esac
5390 elif test "$with_gnu_ld" = yes; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5392 $as_echo_n "checking for GNU ld... " >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5395 $as_echo_n "checking for non-GNU ld... " >&6; }
5396 fi
5397 if ${lt_cv_path_LD+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -z "$LD"; then
5401 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5402 for ac_dir in $PATH; do
5403 IFS="$lt_save_ifs"
5404 test -z "$ac_dir" && ac_dir=.
5405 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5406 lt_cv_path_LD="$ac_dir/$ac_prog"
5407 # Check to see if the program is GNU ld. I'd rather use --version,
5408 # but apparently some variants of GNU ld only accept -v.
5409 # Break only if it was the GNU/non-GNU ld that we prefer.
5410 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5411 *GNU* | *'with BFD'*)
5412 test "$with_gnu_ld" != no && break
5413 ;;
5414 *)
5415 test "$with_gnu_ld" != yes && break
5416 ;;
5417 esac
5418 fi
5419 done
5420 IFS="$lt_save_ifs"
5421 else
5422 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5423 fi
5424 fi
5425
5426 LD="$lt_cv_path_LD"
5427 if test -n "$LD"; then
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5429 $as_echo "$LD" >&6; }
5430 else
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5433 fi
5434 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5436 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5437 if ${lt_cv_prog_gnu_ld+:} false; then :
5438 $as_echo_n "(cached) " >&6
5439 else
5440 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5441 case `$LD -v 2>&1 </dev/null` in
5442 *GNU* | *'with BFD'*)
5443 lt_cv_prog_gnu_ld=yes
5444 ;;
5445 *)
5446 lt_cv_prog_gnu_ld=no
5447 ;;
5448 esac
5449 fi
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5451 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5452 with_gnu_ld=$lt_cv_prog_gnu_ld
5453
5454
5455
5456
5457
5458
5459
5460
5461
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5463 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5464 if ${lt_cv_path_NM+:} false; then :
5465 $as_echo_n "(cached) " >&6
5466 else
5467 if test -n "$NM"; then
5468 # Let the user override the test.
5469 lt_cv_path_NM="$NM"
5470 else
5471 lt_nm_to_check="${ac_tool_prefix}nm"
5472 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5473 lt_nm_to_check="$lt_nm_to_check nm"
5474 fi
5475 for lt_tmp_nm in $lt_nm_to_check; do
5476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5477 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5478 IFS="$lt_save_ifs"
5479 test -z "$ac_dir" && ac_dir=.
5480 tmp_nm="$ac_dir/$lt_tmp_nm"
5481 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5482 # Check to see if the nm accepts a BSD-compat flag.
5483 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5484 # nm: unknown option "B" ignored
5485 # Tru64's nm complains that /dev/null is an invalid object file
5486 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5487 */dev/null* | *'Invalid file or object type'*)
5488 lt_cv_path_NM="$tmp_nm -B"
5489 break
5490 ;;
5491 *)
5492 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5493 */dev/null*)
5494 lt_cv_path_NM="$tmp_nm -p"
5495 break
5496 ;;
5497 *)
5498 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5499 continue # so that we can try to find one that supports BSD flags
5500 ;;
5501 esac
5502 ;;
5503 esac
5504 fi
5505 done
5506 IFS="$lt_save_ifs"
5507 done
5508 : ${lt_cv_path_NM=no}
5509 fi
5510 fi
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5512 $as_echo "$lt_cv_path_NM" >&6; }
5513 if test "$lt_cv_path_NM" != "no"; then
5514 NM="$lt_cv_path_NM"
5515 else
5516 # Didn't find any BSD compatible name lister, look for dumpbin.
5517 if test -n "$DUMPBIN"; then :
5518 # Let the user override the test.
5519 else
5520 if test -n "$ac_tool_prefix"; then
5521 for ac_prog in dumpbin "link -dump"
5522 do
5523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5526 $as_echo_n "checking for $ac_word... " >&6; }
5527 if ${ac_cv_prog_DUMPBIN+:} false; then :
5528 $as_echo_n "(cached) " >&6
5529 else
5530 if test -n "$DUMPBIN"; then
5531 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5532 else
5533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5534 for as_dir in $PATH
5535 do
5536 IFS=$as_save_IFS
5537 test -z "$as_dir" && as_dir=.
5538 for ac_exec_ext in '' $ac_executable_extensions; do
5539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5540 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5542 break 2
5543 fi
5544 done
5545 done
5546 IFS=$as_save_IFS
5547
5548 fi
5549 fi
5550 DUMPBIN=$ac_cv_prog_DUMPBIN
5551 if test -n "$DUMPBIN"; then
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5553 $as_echo "$DUMPBIN" >&6; }
5554 else
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5556 $as_echo "no" >&6; }
5557 fi
5558
5559
5560 test -n "$DUMPBIN" && break
5561 done
5562 fi
5563 if test -z "$DUMPBIN"; then
5564 ac_ct_DUMPBIN=$DUMPBIN
5565 for ac_prog in dumpbin "link -dump"
5566 do
5567 # Extract the first word of "$ac_prog", so it can be a program name with args.
5568 set dummy $ac_prog; ac_word=$2
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5570 $as_echo_n "checking for $ac_word... " >&6; }
5571 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5572 $as_echo_n "(cached) " >&6
5573 else
5574 if test -n "$ac_ct_DUMPBIN"; then
5575 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5576 else
5577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5578 for as_dir in $PATH
5579 do
5580 IFS=$as_save_IFS
5581 test -z "$as_dir" && as_dir=.
5582 for ac_exec_ext in '' $ac_executable_extensions; do
5583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5584 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5586 break 2
5587 fi
5588 done
5589 done
5590 IFS=$as_save_IFS
5591
5592 fi
5593 fi
5594 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5595 if test -n "$ac_ct_DUMPBIN"; then
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5597 $as_echo "$ac_ct_DUMPBIN" >&6; }
5598 else
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5600 $as_echo "no" >&6; }
5601 fi
5602
5603
5604 test -n "$ac_ct_DUMPBIN" && break
5605 done
5606
5607 if test "x$ac_ct_DUMPBIN" = x; then
5608 DUMPBIN=":"
5609 else
5610 case $cross_compiling:$ac_tool_warned in
5611 yes:)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5614 ac_tool_warned=yes ;;
5615 esac
5616 DUMPBIN=$ac_ct_DUMPBIN
5617 fi
5618 fi
5619
5620 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5621 *COFF*)
5622 DUMPBIN="$DUMPBIN -symbols"
5623 ;;
5624 *)
5625 DUMPBIN=:
5626 ;;
5627 esac
5628 fi
5629
5630 if test "$DUMPBIN" != ":"; then
5631 NM="$DUMPBIN"
5632 fi
5633 fi
5634 test -z "$NM" && NM=nm
5635
5636
5637
5638
5639
5640
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5642 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5643 if ${lt_cv_nm_interface+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 lt_cv_nm_interface="BSD nm"
5647 echo "int some_variable = 0;" > conftest.$ac_ext
5648 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5649 (eval "$ac_compile" 2>conftest.err)
5650 cat conftest.err >&5
5651 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5652 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5653 cat conftest.err >&5
5654 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5655 cat conftest.out >&5
5656 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5657 lt_cv_nm_interface="MS dumpbin"
5658 fi
5659 rm -f conftest*
5660 fi
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5662 $as_echo "$lt_cv_nm_interface" >&6; }
5663
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5665 $as_echo_n "checking whether ln -s works... " >&6; }
5666 LN_S=$as_ln_s
5667 if test "$LN_S" = "ln -s"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5669 $as_echo "yes" >&6; }
5670 else
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5672 $as_echo "no, using $LN_S" >&6; }
5673 fi
5674
5675 # find the maximum length of command line arguments
5676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5677 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5678 if ${lt_cv_sys_max_cmd_len+:} false; then :
5679 $as_echo_n "(cached) " >&6
5680 else
5681 i=0
5682 teststring="ABCD"
5683
5684 case $build_os in
5685 msdosdjgpp*)
5686 # On DJGPP, this test can blow up pretty badly due to problems in libc
5687 # (any single argument exceeding 2000 bytes causes a buffer overrun
5688 # during glob expansion). Even if it were fixed, the result of this
5689 # check would be larger than it should be.
5690 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5691 ;;
5692
5693 gnu*)
5694 # Under GNU Hurd, this test is not required because there is
5695 # no limit to the length of command line arguments.
5696 # Libtool will interpret -1 as no limit whatsoever
5697 lt_cv_sys_max_cmd_len=-1;
5698 ;;
5699
5700 cygwin* | mingw* | cegcc*)
5701 # On Win9x/ME, this test blows up -- it succeeds, but takes
5702 # about 5 minutes as the teststring grows exponentially.
5703 # Worse, since 9x/ME are not pre-emptively multitasking,
5704 # you end up with a "frozen" computer, even though with patience
5705 # the test eventually succeeds (with a max line length of 256k).
5706 # Instead, let's just punt: use the minimum linelength reported by
5707 # all of the supported platforms: 8192 (on NT/2K/XP).
5708 lt_cv_sys_max_cmd_len=8192;
5709 ;;
5710
5711 mint*)
5712 # On MiNT this can take a long time and run out of memory.
5713 lt_cv_sys_max_cmd_len=8192;
5714 ;;
5715
5716 amigaos*)
5717 # On AmigaOS with pdksh, this test takes hours, literally.
5718 # So we just punt and use a minimum line length of 8192.
5719 lt_cv_sys_max_cmd_len=8192;
5720 ;;
5721
5722 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5723 # This has been around since 386BSD, at least. Likely further.
5724 if test -x /sbin/sysctl; then
5725 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5726 elif test -x /usr/sbin/sysctl; then
5727 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5728 else
5729 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5730 fi
5731 # And add a safety zone
5732 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5734 ;;
5735
5736 interix*)
5737 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5738 lt_cv_sys_max_cmd_len=196608
5739 ;;
5740
5741 osf*)
5742 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5743 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5744 # nice to cause kernel panics so lets avoid the loop below.
5745 # First set a reasonable default.
5746 lt_cv_sys_max_cmd_len=16384
5747 #
5748 if test -x /sbin/sysconfig; then
5749 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5750 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5751 esac
5752 fi
5753 ;;
5754 sco3.2v5*)
5755 lt_cv_sys_max_cmd_len=102400
5756 ;;
5757 sysv5* | sco5v6* | sysv4.2uw2*)
5758 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5759 if test -n "$kargmax"; then
5760 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5761 else
5762 lt_cv_sys_max_cmd_len=32768
5763 fi
5764 ;;
5765 *)
5766 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5767 if test -n "$lt_cv_sys_max_cmd_len"; then
5768 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5769 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5770 else
5771 # Make teststring a little bigger before we do anything with it.
5772 # a 1K string should be a reasonable start.
5773 for i in 1 2 3 4 5 6 7 8 ; do
5774 teststring=$teststring$teststring
5775 done
5776 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5777 # If test is not a shell built-in, we'll probably end up computing a
5778 # maximum length that is only half of the actual maximum length, but
5779 # we can't tell.
5780 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5781 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5782 test $i != 17 # 1/2 MB should be enough
5783 do
5784 i=`expr $i + 1`
5785 teststring=$teststring$teststring
5786 done
5787 # Only check the string length outside the loop.
5788 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5789 teststring=
5790 # Add a significant safety factor because C++ compilers can tack on
5791 # massive amounts of additional arguments before passing them to the
5792 # linker. It appears as though 1/2 is a usable value.
5793 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5794 fi
5795 ;;
5796 esac
5797
5798 fi
5799
5800 if test -n $lt_cv_sys_max_cmd_len ; then
5801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5802 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5803 else
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5805 $as_echo "none" >&6; }
5806 fi
5807 max_cmd_len=$lt_cv_sys_max_cmd_len
5808
5809
5810
5811
5812
5813
5814 : ${CP="cp -f"}
5815 : ${MV="mv -f"}
5816 : ${RM="rm -f"}
5817
5818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5819 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5820 # Try some XSI features
5821 xsi_shell=no
5822 ( _lt_dummy="a/b/c"
5823 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5824 = c,a/b,, \
5825 && eval 'test $(( 1 + 1 )) -eq 2 \
5826 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5827 && xsi_shell=yes
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5829 $as_echo "$xsi_shell" >&6; }
5830
5831
5832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5833 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5834 lt_shell_append=no
5835 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5836 >/dev/null 2>&1 \
5837 && lt_shell_append=yes
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5839 $as_echo "$lt_shell_append" >&6; }
5840
5841
5842 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5843 lt_unset=unset
5844 else
5845 lt_unset=false
5846 fi
5847
5848
5849
5850
5851
5852 # test EBCDIC or ASCII
5853 case `echo X|tr X '\101'` in
5854 A) # ASCII based system
5855 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5856 lt_SP2NL='tr \040 \012'
5857 lt_NL2SP='tr \015\012 \040\040'
5858 ;;
5859 *) # EBCDIC based system
5860 lt_SP2NL='tr \100 \n'
5861 lt_NL2SP='tr \r\n \100\100'
5862 ;;
5863 esac
5864
5865
5866
5867
5868
5869
5870
5871
5872
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5874 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5875 if ${lt_cv_ld_reload_flag+:} false; then :
5876 $as_echo_n "(cached) " >&6
5877 else
5878 lt_cv_ld_reload_flag='-r'
5879 fi
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5881 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5882 reload_flag=$lt_cv_ld_reload_flag
5883 case $reload_flag in
5884 "" | " "*) ;;
5885 *) reload_flag=" $reload_flag" ;;
5886 esac
5887 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5888 case $host_os in
5889 darwin*)
5890 if test "$GCC" = yes; then
5891 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5892 else
5893 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5894 fi
5895 ;;
5896 esac
5897
5898
5899
5900
5901
5902
5903
5904
5905
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5908 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910 $as_echo_n "checking for $ac_word... " >&6; }
5911 if ${ac_cv_prog_OBJDUMP+:} false; then :
5912 $as_echo_n "(cached) " >&6
5913 else
5914 if test -n "$OBJDUMP"; then
5915 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5916 else
5917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918 for as_dir in $PATH
5919 do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
5923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5924 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928 done
5929 done
5930 IFS=$as_save_IFS
5931
5932 fi
5933 fi
5934 OBJDUMP=$ac_cv_prog_OBJDUMP
5935 if test -n "$OBJDUMP"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5937 $as_echo "$OBJDUMP" >&6; }
5938 else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940 $as_echo "no" >&6; }
5941 fi
5942
5943
5944 fi
5945 if test -z "$ac_cv_prog_OBJDUMP"; then
5946 ac_ct_OBJDUMP=$OBJDUMP
5947 # Extract the first word of "objdump", so it can be a program name with args.
5948 set dummy objdump; 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 ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$ac_ct_OBJDUMP"; then
5955 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # 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 as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_ac_ct_OBJDUMP="objdump"
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 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5975 if test -n "$ac_ct_OBJDUMP"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5977 $as_echo "$ac_ct_OBJDUMP" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5981 fi
5982
5983 if test "x$ac_ct_OBJDUMP" = x; then
5984 OBJDUMP="false"
5985 else
5986 case $cross_compiling:$ac_tool_warned in
5987 yes:)
5988 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5989 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5990 ac_tool_warned=yes ;;
5991 esac
5992 OBJDUMP=$ac_ct_OBJDUMP
5993 fi
5994 else
5995 OBJDUMP="$ac_cv_prog_OBJDUMP"
5996 fi
5997
5998 test -z "$OBJDUMP" && OBJDUMP=objdump
5999
6000
6001
6002
6003
6004
6005
6006
6007
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6009 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6010 if ${lt_cv_deplibs_check_method+:} false; then :
6011 $as_echo_n "(cached) " >&6
6012 else
6013 lt_cv_file_magic_cmd='$MAGIC_CMD'
6014 lt_cv_file_magic_test_file=
6015 lt_cv_deplibs_check_method='unknown'
6016 # Need to set the preceding variable on all platforms that support
6017 # interlibrary dependencies.
6018 # 'none' -- dependencies not supported.
6019 # `unknown' -- same as none, but documents that we really don't know.
6020 # 'pass_all' -- all dependencies passed with no checks.
6021 # 'test_compile' -- check by making test program.
6022 # 'file_magic [[regex]]' -- check by looking for files in library path
6023 # which responds to the $file_magic_cmd with a given extended regex.
6024 # If you have `file' or equivalent on your system and you're not sure
6025 # whether `pass_all' will *always* work, you probably want this one.
6026
6027 case $host_os in
6028 aix[4-9]*)
6029 lt_cv_deplibs_check_method=pass_all
6030 ;;
6031
6032 beos*)
6033 lt_cv_deplibs_check_method=pass_all
6034 ;;
6035
6036 bsdi[45]*)
6037 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6038 lt_cv_file_magic_cmd='/usr/bin/file -L'
6039 lt_cv_file_magic_test_file=/shlib/libc.so
6040 ;;
6041
6042 cygwin*)
6043 # func_win32_libid is a shell function defined in ltmain.sh
6044 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6045 lt_cv_file_magic_cmd='func_win32_libid'
6046 ;;
6047
6048 mingw* | pw32*)
6049 # Base MSYS/MinGW do not provide the 'file' command needed by
6050 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6051 # unless we find 'file', for example because we are cross-compiling.
6052 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6053 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6055 lt_cv_file_magic_cmd='func_win32_libid'
6056 else
6057 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6058 lt_cv_file_magic_cmd='$OBJDUMP -f'
6059 fi
6060 ;;
6061
6062 cegcc*)
6063 # use the weaker test based on 'objdump'. See mingw*.
6064 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6065 lt_cv_file_magic_cmd='$OBJDUMP -f'
6066 ;;
6067
6068 darwin* | rhapsody*)
6069 lt_cv_deplibs_check_method=pass_all
6070 ;;
6071
6072 freebsd* | dragonfly*)
6073 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6074 case $host_cpu in
6075 i*86 )
6076 # Not sure whether the presence of OpenBSD here was a mistake.
6077 # Let's accept both of them until this is cleared up.
6078 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6079 lt_cv_file_magic_cmd=/usr/bin/file
6080 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6081 ;;
6082 esac
6083 else
6084 lt_cv_deplibs_check_method=pass_all
6085 fi
6086 ;;
6087
6088 gnu*)
6089 lt_cv_deplibs_check_method=pass_all
6090 ;;
6091
6092 haiku*)
6093 lt_cv_deplibs_check_method=pass_all
6094 ;;
6095
6096 hpux10.20* | hpux11*)
6097 lt_cv_file_magic_cmd=/usr/bin/file
6098 case $host_cpu in
6099 ia64*)
6100 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6101 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6102 ;;
6103 hppa*64*)
6104 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]'
6105 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6106 ;;
6107 *)
6108 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6109 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6110 ;;
6111 esac
6112 ;;
6113
6114 interix[3-9]*)
6115 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6116 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6117 ;;
6118
6119 irix5* | irix6* | nonstopux*)
6120 case $LD in
6121 *-32|*"-32 ") libmagic=32-bit;;
6122 *-n32|*"-n32 ") libmagic=N32;;
6123 *-64|*"-64 ") libmagic=64-bit;;
6124 *) libmagic=never-match;;
6125 esac
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 # This must be Linux ELF.
6130 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
6131 lt_cv_deplibs_check_method=pass_all
6132 ;;
6133
6134 netbsd*)
6135 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6136 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6137 else
6138 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6139 fi
6140 ;;
6141
6142 newos6*)
6143 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6144 lt_cv_file_magic_cmd=/usr/bin/file
6145 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6146 ;;
6147
6148 *nto* | *qnx*)
6149 lt_cv_deplibs_check_method=pass_all
6150 ;;
6151
6152 openbsd*)
6153 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6154 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6155 else
6156 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6157 fi
6158 ;;
6159
6160 osf3* | osf4* | osf5*)
6161 lt_cv_deplibs_check_method=pass_all
6162 ;;
6163
6164 rdos*)
6165 lt_cv_deplibs_check_method=pass_all
6166 ;;
6167
6168 solaris*)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171
6172 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6173 lt_cv_deplibs_check_method=pass_all
6174 ;;
6175
6176 sysv4 | sysv4.3*)
6177 case $host_vendor in
6178 motorola)
6179 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]'
6180 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6181 ;;
6182 ncr)
6183 lt_cv_deplibs_check_method=pass_all
6184 ;;
6185 sequent)
6186 lt_cv_file_magic_cmd='/bin/file'
6187 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6188 ;;
6189 sni)
6190 lt_cv_file_magic_cmd='/bin/file'
6191 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6192 lt_cv_file_magic_test_file=/lib/libc.so
6193 ;;
6194 siemens)
6195 lt_cv_deplibs_check_method=pass_all
6196 ;;
6197 pc)
6198 lt_cv_deplibs_check_method=pass_all
6199 ;;
6200 esac
6201 ;;
6202
6203 tpf*)
6204 lt_cv_deplibs_check_method=pass_all
6205 ;;
6206 esac
6207
6208 fi
6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6210 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6211 file_magic_cmd=$lt_cv_file_magic_cmd
6212 deplibs_check_method=$lt_cv_deplibs_check_method
6213 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6214
6215
6216
6217
6218
6219
6220
6221
6222
6223
6224
6225
6226 if test -n "$ac_tool_prefix"; then
6227 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6228 set dummy ${ac_tool_prefix}ar; ac_word=$2
6229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6230 $as_echo_n "checking for $ac_word... " >&6; }
6231 if ${ac_cv_prog_AR+:} false; then :
6232 $as_echo_n "(cached) " >&6
6233 else
6234 if test -n "$AR"; then
6235 ac_cv_prog_AR="$AR" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240 IFS=$as_save_IFS
6241 test -z "$as_dir" && as_dir=.
6242 for ac_exec_ext in '' $ac_executable_extensions; do
6243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6244 ac_cv_prog_AR="${ac_tool_prefix}ar"
6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6246 break 2
6247 fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 AR=$ac_cv_prog_AR
6255 if test -n "$AR"; then
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6257 $as_echo "$AR" >&6; }
6258 else
6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6260 $as_echo "no" >&6; }
6261 fi
6262
6263
6264 fi
6265 if test -z "$ac_cv_prog_AR"; then
6266 ac_ct_AR=$AR
6267 # Extract the first word of "ar", so it can be a program name with args.
6268 set dummy ar; ac_word=$2
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6270 $as_echo_n "checking for $ac_word... " >&6; }
6271 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 if test -n "$ac_ct_AR"; then
6275 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6276 else
6277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6278 for as_dir in $PATH
6279 do
6280 IFS=$as_save_IFS
6281 test -z "$as_dir" && as_dir=.
6282 for ac_exec_ext in '' $ac_executable_extensions; do
6283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6284 ac_cv_prog_ac_ct_AR="ar"
6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6286 break 2
6287 fi
6288 done
6289 done
6290 IFS=$as_save_IFS
6291
6292 fi
6293 fi
6294 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6295 if test -n "$ac_ct_AR"; then
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6297 $as_echo "$ac_ct_AR" >&6; }
6298 else
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6300 $as_echo "no" >&6; }
6301 fi
6302
6303 if test "x$ac_ct_AR" = x; then
6304 AR="false"
6305 else
6306 case $cross_compiling:$ac_tool_warned in
6307 yes:)
6308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6309 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6310 ac_tool_warned=yes ;;
6311 esac
6312 AR=$ac_ct_AR
6313 fi
6314 else
6315 AR="$ac_cv_prog_AR"
6316 fi
6317
6318 test -z "$AR" && AR=ar
6319 test -z "$AR_FLAGS" && AR_FLAGS=cru
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331 if test -n "$ac_tool_prefix"; then
6332 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6333 set dummy ${ac_tool_prefix}strip; ac_word=$2
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6335 $as_echo_n "checking for $ac_word... " >&6; }
6336 if ${ac_cv_prog_STRIP+:} false; then :
6337 $as_echo_n "(cached) " >&6
6338 else
6339 if test -n "$STRIP"; then
6340 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6341 else
6342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6343 for as_dir in $PATH
6344 do
6345 IFS=$as_save_IFS
6346 test -z "$as_dir" && as_dir=.
6347 for ac_exec_ext in '' $ac_executable_extensions; do
6348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6349 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6351 break 2
6352 fi
6353 done
6354 done
6355 IFS=$as_save_IFS
6356
6357 fi
6358 fi
6359 STRIP=$ac_cv_prog_STRIP
6360 if test -n "$STRIP"; then
6361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6362 $as_echo "$STRIP" >&6; }
6363 else
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6365 $as_echo "no" >&6; }
6366 fi
6367
6368
6369 fi
6370 if test -z "$ac_cv_prog_STRIP"; then
6371 ac_ct_STRIP=$STRIP
6372 # Extract the first word of "strip", so it can be a program name with args.
6373 set dummy strip; ac_word=$2
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6375 $as_echo_n "checking for $ac_word... " >&6; }
6376 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6377 $as_echo_n "(cached) " >&6
6378 else
6379 if test -n "$ac_ct_STRIP"; then
6380 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6381 else
6382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6383 for as_dir in $PATH
6384 do
6385 IFS=$as_save_IFS
6386 test -z "$as_dir" && as_dir=.
6387 for ac_exec_ext in '' $ac_executable_extensions; do
6388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6389 ac_cv_prog_ac_ct_STRIP="strip"
6390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6391 break 2
6392 fi
6393 done
6394 done
6395 IFS=$as_save_IFS
6396
6397 fi
6398 fi
6399 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6400 if test -n "$ac_ct_STRIP"; then
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6402 $as_echo "$ac_ct_STRIP" >&6; }
6403 else
6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6405 $as_echo "no" >&6; }
6406 fi
6407
6408 if test "x$ac_ct_STRIP" = x; then
6409 STRIP=":"
6410 else
6411 case $cross_compiling:$ac_tool_warned in
6412 yes:)
6413 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6414 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6415 ac_tool_warned=yes ;;
6416 esac
6417 STRIP=$ac_ct_STRIP
6418 fi
6419 else
6420 STRIP="$ac_cv_prog_STRIP"
6421 fi
6422
6423 test -z "$STRIP" && STRIP=:
6424
6425
6426
6427
6428
6429
6430 if test -n "$ac_tool_prefix"; then
6431 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6432 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6434 $as_echo_n "checking for $ac_word... " >&6; }
6435 if ${ac_cv_prog_RANLIB+:} false; then :
6436 $as_echo_n "(cached) " >&6
6437 else
6438 if test -n "$RANLIB"; then
6439 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6440 else
6441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6442 for as_dir in $PATH
6443 do
6444 IFS=$as_save_IFS
6445 test -z "$as_dir" && as_dir=.
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6448 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6450 break 2
6451 fi
6452 done
6453 done
6454 IFS=$as_save_IFS
6455
6456 fi
6457 fi
6458 RANLIB=$ac_cv_prog_RANLIB
6459 if test -n "$RANLIB"; then
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6461 $as_echo "$RANLIB" >&6; }
6462 else
6463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6464 $as_echo "no" >&6; }
6465 fi
6466
6467
6468 fi
6469 if test -z "$ac_cv_prog_RANLIB"; then
6470 ac_ct_RANLIB=$RANLIB
6471 # Extract the first word of "ranlib", so it can be a program name with args.
6472 set dummy ranlib; ac_word=$2
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6474 $as_echo_n "checking for $ac_word... " >&6; }
6475 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6476 $as_echo_n "(cached) " >&6
6477 else
6478 if test -n "$ac_ct_RANLIB"; then
6479 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6480 else
6481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6482 for as_dir in $PATH
6483 do
6484 IFS=$as_save_IFS
6485 test -z "$as_dir" && as_dir=.
6486 for ac_exec_ext in '' $ac_executable_extensions; do
6487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6488 ac_cv_prog_ac_ct_RANLIB="ranlib"
6489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6490 break 2
6491 fi
6492 done
6493 done
6494 IFS=$as_save_IFS
6495
6496 fi
6497 fi
6498 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6499 if test -n "$ac_ct_RANLIB"; then
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6501 $as_echo "$ac_ct_RANLIB" >&6; }
6502 else
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6504 $as_echo "no" >&6; }
6505 fi
6506
6507 if test "x$ac_ct_RANLIB" = x; then
6508 RANLIB=":"
6509 else
6510 case $cross_compiling:$ac_tool_warned in
6511 yes:)
6512 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6513 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6514 ac_tool_warned=yes ;;
6515 esac
6516 RANLIB=$ac_ct_RANLIB
6517 fi
6518 else
6519 RANLIB="$ac_cv_prog_RANLIB"
6520 fi
6521
6522 test -z "$RANLIB" && RANLIB=:
6523
6524
6525
6526
6527
6528
6529 # Determine commands to create old-style static archives.
6530 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6531 old_postinstall_cmds='chmod 644 $oldlib'
6532 old_postuninstall_cmds=
6533
6534 if test -n "$RANLIB"; then
6535 case $host_os in
6536 openbsd*)
6537 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6538 ;;
6539 *)
6540 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6541 ;;
6542 esac
6543 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6544 fi
6545
6546 case $host_os in
6547 darwin*)
6548 lock_old_archive_extraction=yes ;;
6549 *)
6550 lock_old_archive_extraction=no ;;
6551 esac
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591 # If no C compiler was specified, use CC.
6592 LTCC=${LTCC-"$CC"}
6593
6594 # If no C compiler flags were specified, use CFLAGS.
6595 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6596
6597 # Allow CC to be a program name with arguments.
6598 compiler=$CC
6599
6600
6601 # Check for command to grab the raw symbol name followed by C symbol from nm.
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6603 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6604 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6605 $as_echo_n "(cached) " >&6
6606 else
6607
6608 # These are sane defaults that work on at least a few old systems.
6609 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6610
6611 # Character class describing NM global symbol codes.
6612 symcode='[BCDEGRST]'
6613
6614 # Regexp to match symbols that can be accessed directly from C.
6615 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6616
6617 # Define system-specific variables.
6618 case $host_os in
6619 aix*)
6620 symcode='[BCDT]'
6621 ;;
6622 cygwin* | mingw* | pw32* | cegcc*)
6623 symcode='[ABCDGISTW]'
6624 ;;
6625 hpux*)
6626 if test "$host_cpu" = ia64; then
6627 symcode='[ABCDEGRST]'
6628 fi
6629 ;;
6630 irix* | nonstopux*)
6631 symcode='[BCDEGRST]'
6632 ;;
6633 osf*)
6634 symcode='[BCDEGQRST]'
6635 ;;
6636 solaris*)
6637 symcode='[BDRT]'
6638 ;;
6639 sco3.2v5*)
6640 symcode='[DT]'
6641 ;;
6642 sysv4.2uw2*)
6643 symcode='[DT]'
6644 ;;
6645 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6646 symcode='[ABDT]'
6647 ;;
6648 sysv4)
6649 symcode='[DFNSTU]'
6650 ;;
6651 esac
6652
6653 # If we're using GNU nm, then use its standard symbol codes.
6654 case `$NM -V 2>&1` in
6655 *GNU* | *'with BFD'*)
6656 symcode='[ABCDGIRSTW]' ;;
6657 esac
6658
6659 # Transform an extracted symbol line into a proper C declaration.
6660 # Some systems (esp. on ia64) link data and code symbols differently,
6661 # so use this general approach.
6662 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6663
6664 # Transform an extracted symbol line into symbol name and symbol address
6665 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6666 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'"
6667
6668 # Handle CRLF in mingw tool chain
6669 opt_cr=
6670 case $build_os in
6671 mingw*)
6672 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6673 ;;
6674 esac
6675
6676 # Try without a prefix underscore, then with it.
6677 for ac_symprfx in "" "_"; do
6678
6679 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6680 symxfrm="\\1 $ac_symprfx\\2 \\2"
6681
6682 # Write the raw and C identifiers.
6683 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6684 # Fake it for dumpbin and say T for any non-static function
6685 # and D for any global variable.
6686 # Also find C++ and __fastcall symbols from MSVC++,
6687 # which start with @ or ?.
6688 lt_cv_sys_global_symbol_pipe="$AWK '"\
6689 " {last_section=section; section=\$ 3};"\
6690 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6691 " \$ 0!~/External *\|/{next};"\
6692 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6693 " {if(hide[section]) next};"\
6694 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6695 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6696 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6697 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6698 " ' prfx=^$ac_symprfx"
6699 else
6700 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6701 fi
6702
6703 # Check to see that the pipe works correctly.
6704 pipe_works=no
6705
6706 rm -f conftest*
6707 cat > conftest.$ac_ext <<_LT_EOF
6708 #ifdef __cplusplus
6709 extern "C" {
6710 #endif
6711 char nm_test_var;
6712 void nm_test_func(void);
6713 void nm_test_func(void){}
6714 #ifdef __cplusplus
6715 }
6716 #endif
6717 int main(){nm_test_var='a';nm_test_func();return(0);}
6718 _LT_EOF
6719
6720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6721 (eval $ac_compile) 2>&5
6722 ac_status=$?
6723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6724 test $ac_status = 0; }; then
6725 # Now try to grab the symbols.
6726 nlist=conftest.nm
6727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6728 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6729 ac_status=$?
6730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6731 test $ac_status = 0; } && test -s "$nlist"; then
6732 # Try sorting and uniquifying the output.
6733 if sort "$nlist" | uniq > "$nlist"T; then
6734 mv -f "$nlist"T "$nlist"
6735 else
6736 rm -f "$nlist"T
6737 fi
6738
6739 # Make sure that we snagged all the symbols we need.
6740 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6741 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6742 cat <<_LT_EOF > conftest.$ac_ext
6743 #ifdef __cplusplus
6744 extern "C" {
6745 #endif
6746
6747 _LT_EOF
6748 # Now generate the symbol file.
6749 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6750
6751 cat <<_LT_EOF >> conftest.$ac_ext
6752
6753 /* The mapping between symbol names and symbols. */
6754 const struct {
6755 const char *name;
6756 void *address;
6757 }
6758 lt__PROGRAM__LTX_preloaded_symbols[] =
6759 {
6760 { "@PROGRAM@", (void *) 0 },
6761 _LT_EOF
6762 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6763 cat <<\_LT_EOF >> conftest.$ac_ext
6764 {0, (void *) 0}
6765 };
6766
6767 /* This works around a problem in FreeBSD linker */
6768 #ifdef FREEBSD_WORKAROUND
6769 static const void *lt_preloaded_setup() {
6770 return lt__PROGRAM__LTX_preloaded_symbols;
6771 }
6772 #endif
6773
6774 #ifdef __cplusplus
6775 }
6776 #endif
6777 _LT_EOF
6778 # Now try linking the two files.
6779 mv conftest.$ac_objext conftstm.$ac_objext
6780 lt_save_LIBS="$LIBS"
6781 lt_save_CFLAGS="$CFLAGS"
6782 LIBS="conftstm.$ac_objext"
6783 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6785 (eval $ac_link) 2>&5
6786 ac_status=$?
6787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6788 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6789 pipe_works=yes
6790 fi
6791 LIBS="$lt_save_LIBS"
6792 CFLAGS="$lt_save_CFLAGS"
6793 else
6794 echo "cannot find nm_test_func in $nlist" >&5
6795 fi
6796 else
6797 echo "cannot find nm_test_var in $nlist" >&5
6798 fi
6799 else
6800 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6801 fi
6802 else
6803 echo "$progname: failed program was:" >&5
6804 cat conftest.$ac_ext >&5
6805 fi
6806 rm -rf conftest* conftst*
6807
6808 # Do not use the global_symbol_pipe unless it works.
6809 if test "$pipe_works" = yes; then
6810 break
6811 else
6812 lt_cv_sys_global_symbol_pipe=
6813 fi
6814 done
6815
6816 fi
6817
6818 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6819 lt_cv_sys_global_symbol_to_cdecl=
6820 fi
6821 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6823 $as_echo "failed" >&6; }
6824 else
6825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6826 $as_echo "ok" >&6; }
6827 fi
6828
6829
6830
6831
6832
6833
6834
6835
6836
6837
6838
6839
6840
6841
6842
6843
6844
6845
6846
6847
6848
6849
6850
6851 # Check whether --enable-libtool-lock was given.
6852 if test "${enable_libtool_lock+set}" = set; then :
6853 enableval=$enable_libtool_lock;
6854 fi
6855
6856 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6857
6858 # Some flags need to be propagated to the compiler or linker for good
6859 # libtool support.
6860 case $host in
6861 ia64-*-hpux*)
6862 # Find out which ABI we are using.
6863 echo 'int i;' > conftest.$ac_ext
6864 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6865 (eval $ac_compile) 2>&5
6866 ac_status=$?
6867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6868 test $ac_status = 0; }; then
6869 case `/usr/bin/file conftest.$ac_objext` in
6870 *ELF-32*)
6871 HPUX_IA64_MODE="32"
6872 ;;
6873 *ELF-64*)
6874 HPUX_IA64_MODE="64"
6875 ;;
6876 esac
6877 fi
6878 rm -rf conftest*
6879 ;;
6880 *-*-irix6*)
6881 # Find out which ABI we are using.
6882 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6884 (eval $ac_compile) 2>&5
6885 ac_status=$?
6886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6887 test $ac_status = 0; }; then
6888 if test "$lt_cv_prog_gnu_ld" = yes; then
6889 case `/usr/bin/file conftest.$ac_objext` in
6890 *32-bit*)
6891 LD="${LD-ld} -melf32bsmip"
6892 ;;
6893 *N32*)
6894 LD="${LD-ld} -melf32bmipn32"
6895 ;;
6896 *64-bit*)
6897 LD="${LD-ld} -melf64bmip"
6898 ;;
6899 esac
6900 else
6901 case `/usr/bin/file conftest.$ac_objext` in
6902 *32-bit*)
6903 LD="${LD-ld} -32"
6904 ;;
6905 *N32*)
6906 LD="${LD-ld} -n32"
6907 ;;
6908 *64-bit*)
6909 LD="${LD-ld} -64"
6910 ;;
6911 esac
6912 fi
6913 fi
6914 rm -rf conftest*
6915 ;;
6916
6917 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6918 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6919 # Find out which ABI we are using.
6920 echo 'int i;' > conftest.$ac_ext
6921 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6922 (eval $ac_compile) 2>&5
6923 ac_status=$?
6924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6925 test $ac_status = 0; }; then
6926 case `/usr/bin/file conftest.o` in
6927 *32-bit*)
6928 case $host in
6929 x86_64-*kfreebsd*-gnu)
6930 LD="${LD-ld} -m elf_i386_fbsd"
6931 ;;
6932 x86_64-*linux*)
6933 case `/usr/bin/file conftest.o` in
6934 *x86-64*)
6935 LD="${LD-ld} -m elf32_x86_64"
6936 ;;
6937 *)
6938 LD="${LD-ld} -m elf_i386"
6939 ;;
6940 esac
6941 ;;
6942 powerpc64le-*linux*)
6943 LD="${LD-ld} -m elf32lppclinux"
6944 ;;
6945 powerpc64-*linux*)
6946 LD="${LD-ld} -m elf32ppclinux"
6947 ;;
6948 s390x-*linux*)
6949 LD="${LD-ld} -m elf_s390"
6950 ;;
6951 sparc64-*linux*)
6952 LD="${LD-ld} -m elf32_sparc"
6953 ;;
6954 esac
6955 ;;
6956 *64-bit*)
6957 case $host in
6958 x86_64-*kfreebsd*-gnu)
6959 LD="${LD-ld} -m elf_x86_64_fbsd"
6960 ;;
6961 x86_64-*linux*)
6962 LD="${LD-ld} -m elf_x86_64"
6963 ;;
6964 powerpcle-*linux*)
6965 LD="${LD-ld} -m elf64lppc"
6966 ;;
6967 powerpc-*linux*)
6968 LD="${LD-ld} -m elf64ppc"
6969 ;;
6970 s390*-*linux*|s390*-*tpf*)
6971 LD="${LD-ld} -m elf64_s390"
6972 ;;
6973 sparc*-*linux*)
6974 LD="${LD-ld} -m elf64_sparc"
6975 ;;
6976 esac
6977 ;;
6978 esac
6979 fi
6980 rm -rf conftest*
6981 ;;
6982
6983 *-*-sco3.2v5*)
6984 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6985 SAVE_CFLAGS="$CFLAGS"
6986 CFLAGS="$CFLAGS -belf"
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6988 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6989 if ${lt_cv_cc_needs_belf+:} false; then :
6990 $as_echo_n "(cached) " >&6
6991 else
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997
6998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6999 /* end confdefs.h. */
7000
7001 int
7002 main ()
7003 {
7004
7005 ;
7006 return 0;
7007 }
7008 _ACEOF
7009 if ac_fn_c_try_link "$LINENO"; then :
7010 lt_cv_cc_needs_belf=yes
7011 else
7012 lt_cv_cc_needs_belf=no
7013 fi
7014 rm -f core conftest.err conftest.$ac_objext \
7015 conftest$ac_exeext conftest.$ac_ext
7016 ac_ext=c
7017 ac_cpp='$CPP $CPPFLAGS'
7018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7021
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7024 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7025 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7026 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7027 CFLAGS="$SAVE_CFLAGS"
7028 fi
7029 ;;
7030 sparc*-*solaris*)
7031 # Find out which ABI we are using.
7032 echo 'int i;' > conftest.$ac_ext
7033 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7034 (eval $ac_compile) 2>&5
7035 ac_status=$?
7036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7037 test $ac_status = 0; }; then
7038 case `/usr/bin/file conftest.o` in
7039 *64-bit*)
7040 case $lt_cv_prog_gnu_ld in
7041 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7042 *)
7043 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7044 LD="${LD-ld} -64"
7045 fi
7046 ;;
7047 esac
7048 ;;
7049 esac
7050 fi
7051 rm -rf conftest*
7052 ;;
7053 esac
7054
7055 need_locks="$enable_libtool_lock"
7056
7057
7058 case $host_os in
7059 rhapsody* | darwin*)
7060 if test -n "$ac_tool_prefix"; then
7061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7062 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7064 $as_echo_n "checking for $ac_word... " >&6; }
7065 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7066 $as_echo_n "(cached) " >&6
7067 else
7068 if test -n "$DSYMUTIL"; then
7069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7070 else
7071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7072 for as_dir in $PATH
7073 do
7074 IFS=$as_save_IFS
7075 test -z "$as_dir" && as_dir=.
7076 for ac_exec_ext in '' $ac_executable_extensions; do
7077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7080 break 2
7081 fi
7082 done
7083 done
7084 IFS=$as_save_IFS
7085
7086 fi
7087 fi
7088 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7089 if test -n "$DSYMUTIL"; then
7090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7091 $as_echo "$DSYMUTIL" >&6; }
7092 else
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7094 $as_echo "no" >&6; }
7095 fi
7096
7097
7098 fi
7099 if test -z "$ac_cv_prog_DSYMUTIL"; then
7100 ac_ct_DSYMUTIL=$DSYMUTIL
7101 # Extract the first word of "dsymutil", so it can be a program name with args.
7102 set dummy dsymutil; ac_word=$2
7103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104 $as_echo_n "checking for $ac_word... " >&6; }
7105 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7106 $as_echo_n "(cached) " >&6
7107 else
7108 if test -n "$ac_ct_DSYMUTIL"; then
7109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7110 else
7111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7112 for as_dir in $PATH
7113 do
7114 IFS=$as_save_IFS
7115 test -z "$as_dir" && as_dir=.
7116 for ac_exec_ext in '' $ac_executable_extensions; do
7117 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7120 break 2
7121 fi
7122 done
7123 done
7124 IFS=$as_save_IFS
7125
7126 fi
7127 fi
7128 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7129 if test -n "$ac_ct_DSYMUTIL"; then
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7131 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7132 else
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7134 $as_echo "no" >&6; }
7135 fi
7136
7137 if test "x$ac_ct_DSYMUTIL" = x; then
7138 DSYMUTIL=":"
7139 else
7140 case $cross_compiling:$ac_tool_warned in
7141 yes:)
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7143 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7144 ac_tool_warned=yes ;;
7145 esac
7146 DSYMUTIL=$ac_ct_DSYMUTIL
7147 fi
7148 else
7149 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7150 fi
7151
7152 if test -n "$ac_tool_prefix"; then
7153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7154 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if ${ac_cv_prog_NMEDIT+:} false; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$NMEDIT"; then
7161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 NMEDIT=$ac_cv_prog_NMEDIT
7181 if test -n "$NMEDIT"; then
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7183 $as_echo "$NMEDIT" >&6; }
7184 else
7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189
7190 fi
7191 if test -z "$ac_cv_prog_NMEDIT"; then
7192 ac_ct_NMEDIT=$NMEDIT
7193 # Extract the first word of "nmedit", so it can be a program name with args.
7194 set dummy nmedit; ac_word=$2
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7196 $as_echo_n "checking for $ac_word... " >&6; }
7197 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7198 $as_echo_n "(cached) " >&6
7199 else
7200 if test -n "$ac_ct_NMEDIT"; then
7201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7202 else
7203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7204 for as_dir in $PATH
7205 do
7206 IFS=$as_save_IFS
7207 test -z "$as_dir" && as_dir=.
7208 for ac_exec_ext in '' $ac_executable_extensions; do
7209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7210 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7212 break 2
7213 fi
7214 done
7215 done
7216 IFS=$as_save_IFS
7217
7218 fi
7219 fi
7220 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7221 if test -n "$ac_ct_NMEDIT"; then
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7223 $as_echo "$ac_ct_NMEDIT" >&6; }
7224 else
7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7226 $as_echo "no" >&6; }
7227 fi
7228
7229 if test "x$ac_ct_NMEDIT" = x; then
7230 NMEDIT=":"
7231 else
7232 case $cross_compiling:$ac_tool_warned in
7233 yes:)
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7235 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7236 ac_tool_warned=yes ;;
7237 esac
7238 NMEDIT=$ac_ct_NMEDIT
7239 fi
7240 else
7241 NMEDIT="$ac_cv_prog_NMEDIT"
7242 fi
7243
7244 if test -n "$ac_tool_prefix"; then
7245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7246 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if ${ac_cv_prog_LIPO+:} false; then :
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$LIPO"; then
7253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 LIPO=$ac_cv_prog_LIPO
7273 if test -n "$LIPO"; then
7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7275 $as_echo "$LIPO" >&6; }
7276 else
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281
7282 fi
7283 if test -z "$ac_cv_prog_LIPO"; then
7284 ac_ct_LIPO=$LIPO
7285 # Extract the first word of "lipo", so it can be a program name with args.
7286 set dummy lipo; ac_word=$2
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7288 $as_echo_n "checking for $ac_word... " >&6; }
7289 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7290 $as_echo_n "(cached) " >&6
7291 else
7292 if test -n "$ac_ct_LIPO"; then
7293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7294 else
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7297 do
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_prog_ac_ct_LIPO="lipo"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7305 fi
7306 done
7307 done
7308 IFS=$as_save_IFS
7309
7310 fi
7311 fi
7312 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7313 if test -n "$ac_ct_LIPO"; then
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7315 $as_echo "$ac_ct_LIPO" >&6; }
7316 else
7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7318 $as_echo "no" >&6; }
7319 fi
7320
7321 if test "x$ac_ct_LIPO" = x; then
7322 LIPO=":"
7323 else
7324 case $cross_compiling:$ac_tool_warned in
7325 yes:)
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7327 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7328 ac_tool_warned=yes ;;
7329 esac
7330 LIPO=$ac_ct_LIPO
7331 fi
7332 else
7333 LIPO="$ac_cv_prog_LIPO"
7334 fi
7335
7336 if test -n "$ac_tool_prefix"; then
7337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7338 set dummy ${ac_tool_prefix}otool; ac_word=$2
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7340 $as_echo_n "checking for $ac_word... " >&6; }
7341 if ${ac_cv_prog_OTOOL+:} false; then :
7342 $as_echo_n "(cached) " >&6
7343 else
7344 if test -n "$OTOOL"; then
7345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7346 else
7347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7348 for as_dir in $PATH
7349 do
7350 IFS=$as_save_IFS
7351 test -z "$as_dir" && as_dir=.
7352 for ac_exec_ext in '' $ac_executable_extensions; do
7353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7356 break 2
7357 fi
7358 done
7359 done
7360 IFS=$as_save_IFS
7361
7362 fi
7363 fi
7364 OTOOL=$ac_cv_prog_OTOOL
7365 if test -n "$OTOOL"; then
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7367 $as_echo "$OTOOL" >&6; }
7368 else
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7370 $as_echo "no" >&6; }
7371 fi
7372
7373
7374 fi
7375 if test -z "$ac_cv_prog_OTOOL"; then
7376 ac_ct_OTOOL=$OTOOL
7377 # Extract the first word of "otool", so it can be a program name with args.
7378 set dummy otool; ac_word=$2
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7380 $as_echo_n "checking for $ac_word... " >&6; }
7381 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7382 $as_echo_n "(cached) " >&6
7383 else
7384 if test -n "$ac_ct_OTOOL"; then
7385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7386 else
7387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7388 for as_dir in $PATH
7389 do
7390 IFS=$as_save_IFS
7391 test -z "$as_dir" && as_dir=.
7392 for ac_exec_ext in '' $ac_executable_extensions; do
7393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7394 ac_cv_prog_ac_ct_OTOOL="otool"
7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7396 break 2
7397 fi
7398 done
7399 done
7400 IFS=$as_save_IFS
7401
7402 fi
7403 fi
7404 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7405 if test -n "$ac_ct_OTOOL"; then
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7407 $as_echo "$ac_ct_OTOOL" >&6; }
7408 else
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7410 $as_echo "no" >&6; }
7411 fi
7412
7413 if test "x$ac_ct_OTOOL" = x; then
7414 OTOOL=":"
7415 else
7416 case $cross_compiling:$ac_tool_warned in
7417 yes:)
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7419 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7420 ac_tool_warned=yes ;;
7421 esac
7422 OTOOL=$ac_ct_OTOOL
7423 fi
7424 else
7425 OTOOL="$ac_cv_prog_OTOOL"
7426 fi
7427
7428 if test -n "$ac_tool_prefix"; then
7429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7430 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7432 $as_echo_n "checking for $ac_word... " >&6; }
7433 if ${ac_cv_prog_OTOOL64+:} false; then :
7434 $as_echo_n "(cached) " >&6
7435 else
7436 if test -n "$OTOOL64"; then
7437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7438 else
7439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7440 for as_dir in $PATH
7441 do
7442 IFS=$as_save_IFS
7443 test -z "$as_dir" && as_dir=.
7444 for ac_exec_ext in '' $ac_executable_extensions; do
7445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7448 break 2
7449 fi
7450 done
7451 done
7452 IFS=$as_save_IFS
7453
7454 fi
7455 fi
7456 OTOOL64=$ac_cv_prog_OTOOL64
7457 if test -n "$OTOOL64"; then
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7459 $as_echo "$OTOOL64" >&6; }
7460 else
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7462 $as_echo "no" >&6; }
7463 fi
7464
7465
7466 fi
7467 if test -z "$ac_cv_prog_OTOOL64"; then
7468 ac_ct_OTOOL64=$OTOOL64
7469 # Extract the first word of "otool64", so it can be a program name with args.
7470 set dummy otool64; ac_word=$2
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7472 $as_echo_n "checking for $ac_word... " >&6; }
7473 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7474 $as_echo_n "(cached) " >&6
7475 else
7476 if test -n "$ac_ct_OTOOL64"; then
7477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7478 else
7479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7480 for as_dir in $PATH
7481 do
7482 IFS=$as_save_IFS
7483 test -z "$as_dir" && as_dir=.
7484 for ac_exec_ext in '' $ac_executable_extensions; do
7485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7486 ac_cv_prog_ac_ct_OTOOL64="otool64"
7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7488 break 2
7489 fi
7490 done
7491 done
7492 IFS=$as_save_IFS
7493
7494 fi
7495 fi
7496 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7497 if test -n "$ac_ct_OTOOL64"; then
7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7499 $as_echo "$ac_ct_OTOOL64" >&6; }
7500 else
7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7502 $as_echo "no" >&6; }
7503 fi
7504
7505 if test "x$ac_ct_OTOOL64" = x; then
7506 OTOOL64=":"
7507 else
7508 case $cross_compiling:$ac_tool_warned in
7509 yes:)
7510 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7511 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7512 ac_tool_warned=yes ;;
7513 esac
7514 OTOOL64=$ac_ct_OTOOL64
7515 fi
7516 else
7517 OTOOL64="$ac_cv_prog_OTOOL64"
7518 fi
7519
7520
7521
7522
7523
7524
7525
7526
7527
7528
7529
7530
7531
7532
7533
7534
7535
7536
7537
7538
7539
7540
7541
7542
7543
7544
7545
7546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7547 $as_echo_n "checking for -single_module linker flag... " >&6; }
7548 if ${lt_cv_apple_cc_single_mod+:} false; then :
7549 $as_echo_n "(cached) " >&6
7550 else
7551 lt_cv_apple_cc_single_mod=no
7552 if test -z "${LT_MULTI_MODULE}"; then
7553 # By default we will add the -single_module flag. You can override
7554 # by either setting the environment variable LT_MULTI_MODULE
7555 # non-empty at configure time, or by adding -multi_module to the
7556 # link flags.
7557 rm -rf libconftest.dylib*
7558 echo "int foo(void){return 1;}" > conftest.c
7559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7560 -dynamiclib -Wl,-single_module conftest.c" >&5
7561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7563 _lt_result=$?
7564 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7565 lt_cv_apple_cc_single_mod=yes
7566 else
7567 cat conftest.err >&5
7568 fi
7569 rm -rf libconftest.dylib*
7570 rm -f conftest.*
7571 fi
7572 fi
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7574 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7576 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7577 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7578 $as_echo_n "(cached) " >&6
7579 else
7580 lt_cv_ld_exported_symbols_list=no
7581 save_LDFLAGS=$LDFLAGS
7582 echo "_main" > conftest.sym
7583 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7585 /* end confdefs.h. */
7586
7587 int
7588 main ()
7589 {
7590
7591 ;
7592 return 0;
7593 }
7594 _ACEOF
7595 if ac_fn_c_try_link "$LINENO"; then :
7596 lt_cv_ld_exported_symbols_list=yes
7597 else
7598 lt_cv_ld_exported_symbols_list=no
7599 fi
7600 rm -f core conftest.err conftest.$ac_objext \
7601 conftest$ac_exeext conftest.$ac_ext
7602 LDFLAGS="$save_LDFLAGS"
7603
7604 fi
7605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7606 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7608 $as_echo_n "checking for -force_load linker flag... " >&6; }
7609 if ${lt_cv_ld_force_load+:} false; then :
7610 $as_echo_n "(cached) " >&6
7611 else
7612 lt_cv_ld_force_load=no
7613 cat > conftest.c << _LT_EOF
7614 int forced_loaded() { return 2;}
7615 _LT_EOF
7616 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7617 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7618 echo "$AR cru libconftest.a conftest.o" >&5
7619 $AR cru libconftest.a conftest.o 2>&5
7620 cat > conftest.c << _LT_EOF
7621 int main() { return 0;}
7622 _LT_EOF
7623 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7624 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7625 _lt_result=$?
7626 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7627 lt_cv_ld_force_load=yes
7628 else
7629 cat conftest.err >&5
7630 fi
7631 rm -f conftest.err libconftest.a conftest conftest.c
7632 rm -rf conftest.dSYM
7633
7634 fi
7635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7636 $as_echo "$lt_cv_ld_force_load" >&6; }
7637 case $host_os in
7638 rhapsody* | darwin1.[012])
7639 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7640 darwin1.*)
7641 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7642 darwin*) # darwin 5.x on
7643 # if running on 10.5 or later, the deployment target defaults
7644 # to the OS version, if on x86, and 10.4, the deployment
7645 # target defaults to 10.4. Don't you love it?
7646 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7647 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7648 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7649 10.[012][,.]*)
7650 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7651 10.*)
7652 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7653 esac
7654 ;;
7655 esac
7656 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7657 _lt_dar_single_mod='$single_module'
7658 fi
7659 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7660 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7661 else
7662 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7663 fi
7664 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7665 _lt_dsymutil='~$DSYMUTIL $lib || :'
7666 else
7667 _lt_dsymutil=
7668 fi
7669 ;;
7670 esac
7671
7672 ac_ext=c
7673 ac_cpp='$CPP $CPPFLAGS'
7674 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7675 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7676 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7678 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7679 # On Suns, sometimes $CPP names a directory.
7680 if test -n "$CPP" && test -d "$CPP"; then
7681 CPP=
7682 fi
7683 if test -z "$CPP"; then
7684 if ${ac_cv_prog_CPP+:} false; then :
7685 $as_echo_n "(cached) " >&6
7686 else
7687 # Double quotes because CPP needs to be expanded
7688 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7689 do
7690 ac_preproc_ok=false
7691 for ac_c_preproc_warn_flag in '' yes
7692 do
7693 # Use a header file that comes with gcc, so configuring glibc
7694 # with a fresh cross-compiler works.
7695 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7696 # <limits.h> exists even on freestanding compilers.
7697 # On the NeXT, cc -E runs the code through the compiler's parser,
7698 # not just through cpp. "Syntax error" is here to catch this case.
7699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7700 /* end confdefs.h. */
7701 #ifdef __STDC__
7702 # include <limits.h>
7703 #else
7704 # include <assert.h>
7705 #endif
7706 Syntax error
7707 _ACEOF
7708 if ac_fn_c_try_cpp "$LINENO"; then :
7709
7710 else
7711 # Broken: fails on valid input.
7712 continue
7713 fi
7714 rm -f conftest.err conftest.i conftest.$ac_ext
7715
7716 # OK, works on sane cases. Now check whether nonexistent headers
7717 # can be detected and how.
7718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7719 /* end confdefs.h. */
7720 #include <ac_nonexistent.h>
7721 _ACEOF
7722 if ac_fn_c_try_cpp "$LINENO"; then :
7723 # Broken: success on invalid input.
7724 continue
7725 else
7726 # Passes both tests.
7727 ac_preproc_ok=:
7728 break
7729 fi
7730 rm -f conftest.err conftest.i conftest.$ac_ext
7731
7732 done
7733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7734 rm -f conftest.i conftest.err conftest.$ac_ext
7735 if $ac_preproc_ok; then :
7736 break
7737 fi
7738
7739 done
7740 ac_cv_prog_CPP=$CPP
7741
7742 fi
7743 CPP=$ac_cv_prog_CPP
7744 else
7745 ac_cv_prog_CPP=$CPP
7746 fi
7747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7748 $as_echo "$CPP" >&6; }
7749 ac_preproc_ok=false
7750 for ac_c_preproc_warn_flag in '' yes
7751 do
7752 # Use a header file that comes with gcc, so configuring glibc
7753 # with a fresh cross-compiler works.
7754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7755 # <limits.h> exists even on freestanding compilers.
7756 # On the NeXT, cc -E runs the code through the compiler's parser,
7757 # not just through cpp. "Syntax error" is here to catch this case.
7758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7759 /* end confdefs.h. */
7760 #ifdef __STDC__
7761 # include <limits.h>
7762 #else
7763 # include <assert.h>
7764 #endif
7765 Syntax error
7766 _ACEOF
7767 if ac_fn_c_try_cpp "$LINENO"; then :
7768
7769 else
7770 # Broken: fails on valid input.
7771 continue
7772 fi
7773 rm -f conftest.err conftest.i conftest.$ac_ext
7774
7775 # OK, works on sane cases. Now check whether nonexistent headers
7776 # can be detected and how.
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7779 #include <ac_nonexistent.h>
7780 _ACEOF
7781 if ac_fn_c_try_cpp "$LINENO"; then :
7782 # Broken: success on invalid input.
7783 continue
7784 else
7785 # Passes both tests.
7786 ac_preproc_ok=:
7787 break
7788 fi
7789 rm -f conftest.err conftest.i conftest.$ac_ext
7790
7791 done
7792 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7793 rm -f conftest.i conftest.err conftest.$ac_ext
7794 if $ac_preproc_ok; then :
7795
7796 else
7797 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7798 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7799 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7800 See \`config.log' for more details" "$LINENO" 5; }
7801 fi
7802
7803 ac_ext=c
7804 ac_cpp='$CPP $CPPFLAGS'
7805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7808
7809
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7811 $as_echo_n "checking for ANSI C header files... " >&6; }
7812 if ${ac_cv_header_stdc+:} false; then :
7813 $as_echo_n "(cached) " >&6
7814 else
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 #include <stdlib.h>
7818 #include <stdarg.h>
7819 #include <string.h>
7820 #include <float.h>
7821
7822 int
7823 main ()
7824 {
7825
7826 ;
7827 return 0;
7828 }
7829 _ACEOF
7830 if ac_fn_c_try_compile "$LINENO"; then :
7831 ac_cv_header_stdc=yes
7832 else
7833 ac_cv_header_stdc=no
7834 fi
7835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7836
7837 if test $ac_cv_header_stdc = yes; then
7838 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7840 /* end confdefs.h. */
7841 #include <string.h>
7842
7843 _ACEOF
7844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7845 $EGREP "memchr" >/dev/null 2>&1; then :
7846
7847 else
7848 ac_cv_header_stdc=no
7849 fi
7850 rm -f conftest*
7851
7852 fi
7853
7854 if test $ac_cv_header_stdc = yes; then
7855 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7857 /* end confdefs.h. */
7858 #include <stdlib.h>
7859
7860 _ACEOF
7861 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7862 $EGREP "free" >/dev/null 2>&1; then :
7863
7864 else
7865 ac_cv_header_stdc=no
7866 fi
7867 rm -f conftest*
7868
7869 fi
7870
7871 if test $ac_cv_header_stdc = yes; then
7872 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7873 if test "$cross_compiling" = yes; then :
7874 :
7875 else
7876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7877 /* end confdefs.h. */
7878 #include <ctype.h>
7879 #include <stdlib.h>
7880 #if ((' ' & 0x0FF) == 0x020)
7881 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7882 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7883 #else
7884 # define ISLOWER(c) \
7885 (('a' <= (c) && (c) <= 'i') \
7886 || ('j' <= (c) && (c) <= 'r') \
7887 || ('s' <= (c) && (c) <= 'z'))
7888 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7889 #endif
7890
7891 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7892 int
7893 main ()
7894 {
7895 int i;
7896 for (i = 0; i < 256; i++)
7897 if (XOR (islower (i), ISLOWER (i))
7898 || toupper (i) != TOUPPER (i))
7899 return 2;
7900 return 0;
7901 }
7902 _ACEOF
7903 if ac_fn_c_try_run "$LINENO"; then :
7904
7905 else
7906 ac_cv_header_stdc=no
7907 fi
7908 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7909 conftest.$ac_objext conftest.beam conftest.$ac_ext
7910 fi
7911
7912 fi
7913 fi
7914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7915 $as_echo "$ac_cv_header_stdc" >&6; }
7916 if test $ac_cv_header_stdc = yes; then
7917
7918 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7919
7920 fi
7921
7922 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7923 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7924 inttypes.h stdint.h unistd.h
7925 do :
7926 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7927 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7928 "
7929 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7930 cat >>confdefs.h <<_ACEOF
7931 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7932 _ACEOF
7933
7934 fi
7935
7936 done
7937
7938
7939 for ac_header in dlfcn.h
7940 do :
7941 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7942 "
7943 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7944 cat >>confdefs.h <<_ACEOF
7945 #define HAVE_DLFCN_H 1
7946 _ACEOF
7947
7948 fi
7949
7950 done
7951
7952
7953
7954
7955
7956 # Set options
7957
7958
7959
7960 enable_dlopen=no
7961
7962
7963 enable_win32_dll=no
7964
7965
7966 # Check whether --enable-shared was given.
7967 if test "${enable_shared+set}" = set; then :
7968 enableval=$enable_shared; p=${PACKAGE-default}
7969 case $enableval in
7970 yes) enable_shared=yes ;;
7971 no) enable_shared=no ;;
7972 *)
7973 enable_shared=no
7974 # Look at the argument we got. We use all the common list separators.
7975 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7976 for pkg in $enableval; do
7977 IFS="$lt_save_ifs"
7978 if test "X$pkg" = "X$p"; then
7979 enable_shared=yes
7980 fi
7981 done
7982 IFS="$lt_save_ifs"
7983 ;;
7984 esac
7985 else
7986 enable_shared=yes
7987 fi
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997 # Check whether --enable-static was given.
7998 if test "${enable_static+set}" = set; then :
7999 enableval=$enable_static; p=${PACKAGE-default}
8000 case $enableval in
8001 yes) enable_static=yes ;;
8002 no) enable_static=no ;;
8003 *)
8004 enable_static=no
8005 # Look at the argument we got. We use all the common list separators.
8006 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8007 for pkg in $enableval; do
8008 IFS="$lt_save_ifs"
8009 if test "X$pkg" = "X$p"; then
8010 enable_static=yes
8011 fi
8012 done
8013 IFS="$lt_save_ifs"
8014 ;;
8015 esac
8016 else
8017 enable_static=yes
8018 fi
8019
8020
8021
8022
8023
8024
8025
8026
8027
8028
8029 # Check whether --with-pic was given.
8030 if test "${with_pic+set}" = set; then :
8031 withval=$with_pic; pic_mode="$withval"
8032 else
8033 pic_mode=default
8034 fi
8035
8036
8037 test -z "$pic_mode" && pic_mode=default
8038
8039
8040
8041
8042
8043
8044
8045 # Check whether --enable-fast-install was given.
8046 if test "${enable_fast_install+set}" = set; then :
8047 enableval=$enable_fast_install; p=${PACKAGE-default}
8048 case $enableval in
8049 yes) enable_fast_install=yes ;;
8050 no) enable_fast_install=no ;;
8051 *)
8052 enable_fast_install=no
8053 # Look at the argument we got. We use all the common list separators.
8054 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8055 for pkg in $enableval; do
8056 IFS="$lt_save_ifs"
8057 if test "X$pkg" = "X$p"; then
8058 enable_fast_install=yes
8059 fi
8060 done
8061 IFS="$lt_save_ifs"
8062 ;;
8063 esac
8064 else
8065 enable_fast_install=yes
8066 fi
8067
8068
8069
8070
8071
8072
8073
8074
8075
8076
8077
8078 # This can be used to rebuild libtool when needed
8079 LIBTOOL_DEPS="$ltmain"
8080
8081 # Always use our own libtool.
8082 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109 test -z "$LN_S" && LN_S="ln -s"
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124 if test -n "${ZSH_VERSION+set}" ; then
8125 setopt NO_GLOB_SUBST
8126 fi
8127
8128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8129 $as_echo_n "checking for objdir... " >&6; }
8130 if ${lt_cv_objdir+:} false; then :
8131 $as_echo_n "(cached) " >&6
8132 else
8133 rm -f .libs 2>/dev/null
8134 mkdir .libs 2>/dev/null
8135 if test -d .libs; then
8136 lt_cv_objdir=.libs
8137 else
8138 # MS-DOS does not allow filenames that begin with a dot.
8139 lt_cv_objdir=_libs
8140 fi
8141 rmdir .libs 2>/dev/null
8142 fi
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8144 $as_echo "$lt_cv_objdir" >&6; }
8145 objdir=$lt_cv_objdir
8146
8147
8148
8149
8150
8151 cat >>confdefs.h <<_ACEOF
8152 #define LT_OBJDIR "$lt_cv_objdir/"
8153 _ACEOF
8154
8155
8156
8157
8158 case $host_os in
8159 aix3*)
8160 # AIX sometimes has problems with the GCC collect2 program. For some
8161 # reason, if we set the COLLECT_NAMES environment variable, the problems
8162 # vanish in a puff of smoke.
8163 if test "X${COLLECT_NAMES+set}" != Xset; then
8164 COLLECT_NAMES=
8165 export COLLECT_NAMES
8166 fi
8167 ;;
8168 esac
8169
8170 # Global variables:
8171 ofile=libtool
8172 can_build_shared=yes
8173
8174 # All known linkers require a `.a' archive for static linking (except MSVC,
8175 # which needs '.lib').
8176 libext=a
8177
8178 with_gnu_ld="$lt_cv_prog_gnu_ld"
8179
8180 old_CC="$CC"
8181 old_CFLAGS="$CFLAGS"
8182
8183 # Set sane defaults for various variables
8184 test -z "$CC" && CC=cc
8185 test -z "$LTCC" && LTCC=$CC
8186 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8187 test -z "$LD" && LD=ld
8188 test -z "$ac_objext" && ac_objext=o
8189
8190 for cc_temp in $compiler""; do
8191 case $cc_temp in
8192 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8193 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8194 \-*) ;;
8195 *) break;;
8196 esac
8197 done
8198 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8199
8200
8201 # Only perform the check for file, if the check method requires it
8202 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8203 case $deplibs_check_method in
8204 file_magic*)
8205 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8207 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8208 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 case $MAGIC_CMD in
8212 [\\/*] | ?:[\\/]*)
8213 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8214 ;;
8215 *)
8216 lt_save_MAGIC_CMD="$MAGIC_CMD"
8217 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8218 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8219 for ac_dir in $ac_dummy; do
8220 IFS="$lt_save_ifs"
8221 test -z "$ac_dir" && ac_dir=.
8222 if test -f $ac_dir/${ac_tool_prefix}file; then
8223 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8224 if test -n "$file_magic_test_file"; then
8225 case $deplibs_check_method in
8226 "file_magic "*)
8227 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8228 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8229 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8230 $EGREP "$file_magic_regex" > /dev/null; then
8231 :
8232 else
8233 cat <<_LT_EOF 1>&2
8234
8235 *** Warning: the command libtool uses to detect shared libraries,
8236 *** $file_magic_cmd, produces output that libtool cannot recognize.
8237 *** The result is that libtool may fail to recognize shared libraries
8238 *** as such. This will affect the creation of libtool libraries that
8239 *** depend on shared libraries, but programs linked with such libtool
8240 *** libraries will work regardless of this problem. Nevertheless, you
8241 *** may want to report the problem to your system manager and/or to
8242 *** bug-libtool@gnu.org
8243
8244 _LT_EOF
8245 fi ;;
8246 esac
8247 fi
8248 break
8249 fi
8250 done
8251 IFS="$lt_save_ifs"
8252 MAGIC_CMD="$lt_save_MAGIC_CMD"
8253 ;;
8254 esac
8255 fi
8256
8257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8258 if test -n "$MAGIC_CMD"; then
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8260 $as_echo "$MAGIC_CMD" >&6; }
8261 else
8262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8263 $as_echo "no" >&6; }
8264 fi
8265
8266
8267
8268
8269
8270 if test -z "$lt_cv_path_MAGIC_CMD"; then
8271 if test -n "$ac_tool_prefix"; then
8272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8273 $as_echo_n "checking for file... " >&6; }
8274 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8275 $as_echo_n "(cached) " >&6
8276 else
8277 case $MAGIC_CMD in
8278 [\\/*] | ?:[\\/]*)
8279 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8280 ;;
8281 *)
8282 lt_save_MAGIC_CMD="$MAGIC_CMD"
8283 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8284 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8285 for ac_dir in $ac_dummy; do
8286 IFS="$lt_save_ifs"
8287 test -z "$ac_dir" && ac_dir=.
8288 if test -f $ac_dir/file; then
8289 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8290 if test -n "$file_magic_test_file"; then
8291 case $deplibs_check_method in
8292 "file_magic "*)
8293 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8294 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8295 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8296 $EGREP "$file_magic_regex" > /dev/null; then
8297 :
8298 else
8299 cat <<_LT_EOF 1>&2
8300
8301 *** Warning: the command libtool uses to detect shared libraries,
8302 *** $file_magic_cmd, produces output that libtool cannot recognize.
8303 *** The result is that libtool may fail to recognize shared libraries
8304 *** as such. This will affect the creation of libtool libraries that
8305 *** depend on shared libraries, but programs linked with such libtool
8306 *** libraries will work regardless of this problem. Nevertheless, you
8307 *** may want to report the problem to your system manager and/or to
8308 *** bug-libtool@gnu.org
8309
8310 _LT_EOF
8311 fi ;;
8312 esac
8313 fi
8314 break
8315 fi
8316 done
8317 IFS="$lt_save_ifs"
8318 MAGIC_CMD="$lt_save_MAGIC_CMD"
8319 ;;
8320 esac
8321 fi
8322
8323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8324 if test -n "$MAGIC_CMD"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8326 $as_echo "$MAGIC_CMD" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8330 fi
8331
8332
8333 else
8334 MAGIC_CMD=:
8335 fi
8336 fi
8337
8338 fi
8339 ;;
8340 esac
8341
8342 # Use C for the default configuration in the libtool script
8343
8344 lt_save_CC="$CC"
8345 ac_ext=c
8346 ac_cpp='$CPP $CPPFLAGS'
8347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8350
8351
8352 # Source file extension for C test sources.
8353 ac_ext=c
8354
8355 # Object file extension for compiled C test sources.
8356 objext=o
8357 objext=$objext
8358
8359 # Code to be used in simple compile tests
8360 lt_simple_compile_test_code="int some_variable = 0;"
8361
8362 # Code to be used in simple link tests
8363 lt_simple_link_test_code='int main(){return(0);}'
8364
8365
8366
8367
8368
8369
8370
8371 # If no C compiler was specified, use CC.
8372 LTCC=${LTCC-"$CC"}
8373
8374 # If no C compiler flags were specified, use CFLAGS.
8375 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8376
8377 # Allow CC to be a program name with arguments.
8378 compiler=$CC
8379
8380 # Save the default compiler, since it gets overwritten when the other
8381 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8382 compiler_DEFAULT=$CC
8383
8384 # save warnings/boilerplate of simple test code
8385 ac_outfile=conftest.$ac_objext
8386 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8387 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8388 _lt_compiler_boilerplate=`cat conftest.err`
8389 $RM conftest*
8390
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8393 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394 _lt_linker_boilerplate=`cat conftest.err`
8395 $RM -r conftest*
8396
8397
8398 ## CAVEAT EMPTOR:
8399 ## There is no encapsulation within the following macros, do not change
8400 ## the running order or otherwise move them around unless you know exactly
8401 ## what you are doing...
8402 if test -n "$compiler"; then
8403
8404 lt_prog_compiler_no_builtin_flag=
8405
8406 if test "$GCC" = yes; then
8407 case $cc_basename in
8408 nvcc*)
8409 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8410 *)
8411 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8412 esac
8413
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8415 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8416 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 lt_cv_prog_compiler_rtti_exceptions=no
8420 ac_outfile=conftest.$ac_objext
8421 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8422 lt_compiler_flag="-fno-rtti -fno-exceptions"
8423 # Insert the option either (1) after the last *FLAGS variable, or
8424 # (2) before a word containing "conftest.", or (3) at the end.
8425 # Note that $ac_compile itself does not contain backslashes and begins
8426 # with a dollar sign (not a hyphen), so the echo should work correctly.
8427 # The option is referenced via a variable to avoid confusing sed.
8428 lt_compile=`echo "$ac_compile" | $SED \
8429 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8430 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8431 -e 's:$: $lt_compiler_flag:'`
8432 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8433 (eval "$lt_compile" 2>conftest.err)
8434 ac_status=$?
8435 cat conftest.err >&5
8436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8437 if (exit $ac_status) && test -s "$ac_outfile"; then
8438 # The compiler can only warn and ignore the option if not recognized
8439 # So say no if there are warnings other than the usual output.
8440 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8441 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8442 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8443 lt_cv_prog_compiler_rtti_exceptions=yes
8444 fi
8445 fi
8446 $RM conftest*
8447
8448 fi
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8450 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8451
8452 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8453 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8454 else
8455 :
8456 fi
8457
8458 fi
8459
8460
8461
8462
8463
8464
8465 lt_prog_compiler_wl=
8466 lt_prog_compiler_pic=
8467 lt_prog_compiler_static=
8468
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8470 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8471
8472 if test "$GCC" = yes; then
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_static='-static'
8475
8476 case $host_os in
8477 aix*)
8478 # All AIX code is PIC.
8479 if test "$host_cpu" = ia64; then
8480 # AIX 5 now supports IA64 processor
8481 lt_prog_compiler_static='-Bstatic'
8482 fi
8483 lt_prog_compiler_pic='-fPIC'
8484 ;;
8485
8486 amigaos*)
8487 case $host_cpu in
8488 powerpc)
8489 # see comment about AmigaOS4 .so support
8490 lt_prog_compiler_pic='-fPIC'
8491 ;;
8492 m68k)
8493 # FIXME: we need at least 68020 code to build shared libraries, but
8494 # adding the `-m68020' flag to GCC prevents building anything better,
8495 # like `-m68040'.
8496 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8497 ;;
8498 esac
8499 ;;
8500
8501 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8502 # PIC is the default for these OSes.
8503 ;;
8504
8505 mingw* | cygwin* | pw32* | os2* | cegcc*)
8506 # This hack is so that the source file can tell whether it is being
8507 # built for inclusion in a dll (and should export symbols for example).
8508 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8509 # (--disable-auto-import) libraries
8510 lt_prog_compiler_pic='-DDLL_EXPORT'
8511 ;;
8512
8513 darwin* | rhapsody*)
8514 # PIC is the default on this platform
8515 # Common symbols not allowed in MH_DYLIB files
8516 lt_prog_compiler_pic='-fno-common'
8517 ;;
8518
8519 haiku*)
8520 # PIC is the default for Haiku.
8521 # The "-static" flag exists, but is broken.
8522 lt_prog_compiler_static=
8523 ;;
8524
8525 hpux*)
8526 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8527 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8528 # sets the default TLS model and affects inlining.
8529 case $host_cpu in
8530 hppa*64*)
8531 # +Z the default
8532 ;;
8533 *)
8534 lt_prog_compiler_pic='-fPIC'
8535 ;;
8536 esac
8537 ;;
8538
8539 interix[3-9]*)
8540 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8541 # Instead, we relocate shared libraries at runtime.
8542 ;;
8543
8544 msdosdjgpp*)
8545 # Just because we use GCC doesn't mean we suddenly get shared libraries
8546 # on systems that don't support them.
8547 lt_prog_compiler_can_build_shared=no
8548 enable_shared=no
8549 ;;
8550
8551 *nto* | *qnx*)
8552 # QNX uses GNU C++, but need to define -shared option too, otherwise
8553 # it will coredump.
8554 lt_prog_compiler_pic='-fPIC -shared'
8555 ;;
8556
8557 sysv4*MP*)
8558 if test -d /usr/nec; then
8559 lt_prog_compiler_pic=-Kconform_pic
8560 fi
8561 ;;
8562
8563 *)
8564 lt_prog_compiler_pic='-fPIC'
8565 ;;
8566 esac
8567
8568 case $cc_basename in
8569 nvcc*) # Cuda Compiler Driver 2.2
8570 lt_prog_compiler_wl='-Xlinker '
8571 lt_prog_compiler_pic='-Xcompiler -fPIC'
8572 ;;
8573 esac
8574 else
8575 # PORTME Check for flag to pass linker flags through the system compiler.
8576 case $host_os in
8577 aix*)
8578 lt_prog_compiler_wl='-Wl,'
8579 if test "$host_cpu" = ia64; then
8580 # AIX 5 now supports IA64 processor
8581 lt_prog_compiler_static='-Bstatic'
8582 else
8583 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8584 fi
8585 ;;
8586
8587 mingw* | cygwin* | pw32* | os2* | cegcc*)
8588 # This hack is so that the source file can tell whether it is being
8589 # built for inclusion in a dll (and should export symbols for example).
8590 lt_prog_compiler_pic='-DDLL_EXPORT'
8591 ;;
8592
8593 hpux9* | hpux10* | hpux11*)
8594 lt_prog_compiler_wl='-Wl,'
8595 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8596 # not for PA HP-UX.
8597 case $host_cpu in
8598 hppa*64*|ia64*)
8599 # +Z the default
8600 ;;
8601 *)
8602 lt_prog_compiler_pic='+Z'
8603 ;;
8604 esac
8605 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8606 lt_prog_compiler_static='${wl}-a ${wl}archive'
8607 ;;
8608
8609 irix5* | irix6* | nonstopux*)
8610 lt_prog_compiler_wl='-Wl,'
8611 # PIC (with -KPIC) is the default.
8612 lt_prog_compiler_static='-non_shared'
8613 ;;
8614
8615 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8616 case $cc_basename in
8617 # old Intel for x86_64 which still supported -KPIC.
8618 ecc*)
8619 lt_prog_compiler_wl='-Wl,'
8620 lt_prog_compiler_pic='-KPIC'
8621 lt_prog_compiler_static='-static'
8622 ;;
8623 # icc used to be incompatible with GCC.
8624 # ICC 10 doesn't accept -KPIC any more.
8625 icc* | ifort*)
8626 lt_prog_compiler_wl='-Wl,'
8627 lt_prog_compiler_pic='-fPIC'
8628 lt_prog_compiler_static='-static'
8629 ;;
8630 # Lahey Fortran 8.1.
8631 lf95*)
8632 lt_prog_compiler_wl='-Wl,'
8633 lt_prog_compiler_pic='--shared'
8634 lt_prog_compiler_static='--static'
8635 ;;
8636 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8637 # Portland Group compilers (*not* the Pentium gcc compiler,
8638 # which looks to be a dead project)
8639 lt_prog_compiler_wl='-Wl,'
8640 lt_prog_compiler_pic='-fpic'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643 ccc*)
8644 lt_prog_compiler_wl='-Wl,'
8645 # All Alpha code is PIC.
8646 lt_prog_compiler_static='-non_shared'
8647 ;;
8648 xl* | bgxl* | bgf* | mpixl*)
8649 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8650 lt_prog_compiler_wl='-Wl,'
8651 lt_prog_compiler_pic='-qpic'
8652 lt_prog_compiler_static='-qstaticlink'
8653 ;;
8654 *)
8655 case `$CC -V 2>&1 | sed 5q` in
8656 *Sun\ F* | *Sun*Fortran*)
8657 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8658 lt_prog_compiler_pic='-KPIC'
8659 lt_prog_compiler_static='-Bstatic'
8660 lt_prog_compiler_wl=''
8661 ;;
8662 *Sun\ C*)
8663 # Sun C 5.9
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 lt_prog_compiler_wl='-Wl,'
8667 ;;
8668 esac
8669 ;;
8670 esac
8671 ;;
8672
8673 newsos6)
8674 lt_prog_compiler_pic='-KPIC'
8675 lt_prog_compiler_static='-Bstatic'
8676 ;;
8677
8678 *nto* | *qnx*)
8679 # QNX uses GNU C++, but need to define -shared option too, otherwise
8680 # it will coredump.
8681 lt_prog_compiler_pic='-fPIC -shared'
8682 ;;
8683
8684 osf3* | osf4* | osf5*)
8685 lt_prog_compiler_wl='-Wl,'
8686 # All OSF/1 code is PIC.
8687 lt_prog_compiler_static='-non_shared'
8688 ;;
8689
8690 rdos*)
8691 lt_prog_compiler_static='-non_shared'
8692 ;;
8693
8694 solaris*)
8695 lt_prog_compiler_pic='-KPIC'
8696 lt_prog_compiler_static='-Bstatic'
8697 case $cc_basename in
8698 f77* | f90* | f95*)
8699 lt_prog_compiler_wl='-Qoption ld ';;
8700 *)
8701 lt_prog_compiler_wl='-Wl,';;
8702 esac
8703 ;;
8704
8705 sunos4*)
8706 lt_prog_compiler_wl='-Qoption ld '
8707 lt_prog_compiler_pic='-PIC'
8708 lt_prog_compiler_static='-Bstatic'
8709 ;;
8710
8711 sysv4 | sysv4.2uw2* | sysv4.3*)
8712 lt_prog_compiler_wl='-Wl,'
8713 lt_prog_compiler_pic='-KPIC'
8714 lt_prog_compiler_static='-Bstatic'
8715 ;;
8716
8717 sysv4*MP*)
8718 if test -d /usr/nec ;then
8719 lt_prog_compiler_pic='-Kconform_pic'
8720 lt_prog_compiler_static='-Bstatic'
8721 fi
8722 ;;
8723
8724 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8725 lt_prog_compiler_wl='-Wl,'
8726 lt_prog_compiler_pic='-KPIC'
8727 lt_prog_compiler_static='-Bstatic'
8728 ;;
8729
8730 unicos*)
8731 lt_prog_compiler_wl='-Wl,'
8732 lt_prog_compiler_can_build_shared=no
8733 ;;
8734
8735 uts4*)
8736 lt_prog_compiler_pic='-pic'
8737 lt_prog_compiler_static='-Bstatic'
8738 ;;
8739
8740 *)
8741 lt_prog_compiler_can_build_shared=no
8742 ;;
8743 esac
8744 fi
8745
8746 case $host_os in
8747 # For platforms which do not support PIC, -DPIC is meaningless:
8748 *djgpp*)
8749 lt_prog_compiler_pic=
8750 ;;
8751 *)
8752 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8753 ;;
8754 esac
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8756 $as_echo "$lt_prog_compiler_pic" >&6; }
8757
8758
8759
8760
8761
8762
8763 #
8764 # Check to make sure the PIC flag actually works.
8765 #
8766 if test -n "$lt_prog_compiler_pic"; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8768 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8769 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8770 $as_echo_n "(cached) " >&6
8771 else
8772 lt_cv_prog_compiler_pic_works=no
8773 ac_outfile=conftest.$ac_objext
8774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8775 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8776 # Insert the option either (1) after the last *FLAGS variable, or
8777 # (2) before a word containing "conftest.", or (3) at the end.
8778 # Note that $ac_compile itself does not contain backslashes and begins
8779 # with a dollar sign (not a hyphen), so the echo should work correctly.
8780 # The option is referenced via a variable to avoid confusing sed.
8781 lt_compile=`echo "$ac_compile" | $SED \
8782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8784 -e 's:$: $lt_compiler_flag:'`
8785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8786 (eval "$lt_compile" 2>conftest.err)
8787 ac_status=$?
8788 cat conftest.err >&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 if (exit $ac_status) && test -s "$ac_outfile"; then
8791 # The compiler can only warn and ignore the option if not recognized
8792 # So say no if there are warnings other than the usual output.
8793 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8794 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8795 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8796 lt_cv_prog_compiler_pic_works=yes
8797 fi
8798 fi
8799 $RM conftest*
8800
8801 fi
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8803 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8804
8805 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8806 case $lt_prog_compiler_pic in
8807 "" | " "*) ;;
8808 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8809 esac
8810 else
8811 lt_prog_compiler_pic=
8812 lt_prog_compiler_can_build_shared=no
8813 fi
8814
8815 fi
8816
8817
8818
8819
8820
8821
8822 #
8823 # Check to make sure the static flag actually works.
8824 #
8825 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8827 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8828 if ${lt_cv_prog_compiler_static_works+:} false; then :
8829 $as_echo_n "(cached) " >&6
8830 else
8831 lt_cv_prog_compiler_static_works=no
8832 save_LDFLAGS="$LDFLAGS"
8833 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8834 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8835 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8836 # The linker can only warn and ignore the option if not recognized
8837 # So say no if there are warnings
8838 if test -s conftest.err; then
8839 # Append any errors to the config.log.
8840 cat conftest.err 1>&5
8841 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8842 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8843 if diff conftest.exp conftest.er2 >/dev/null; then
8844 lt_cv_prog_compiler_static_works=yes
8845 fi
8846 else
8847 lt_cv_prog_compiler_static_works=yes
8848 fi
8849 fi
8850 $RM -r conftest*
8851 LDFLAGS="$save_LDFLAGS"
8852
8853 fi
8854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8855 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8856
8857 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8858 :
8859 else
8860 lt_prog_compiler_static=
8861 fi
8862
8863
8864
8865
8866
8867
8868
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8870 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8871 if ${lt_cv_prog_compiler_c_o+:} false; then :
8872 $as_echo_n "(cached) " >&6
8873 else
8874 lt_cv_prog_compiler_c_o=no
8875 $RM -r conftest 2>/dev/null
8876 mkdir conftest
8877 cd conftest
8878 mkdir out
8879 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8880
8881 lt_compiler_flag="-o out/conftest2.$ac_objext"
8882 # Insert the option either (1) after the last *FLAGS variable, or
8883 # (2) before a word containing "conftest.", or (3) at the end.
8884 # Note that $ac_compile itself does not contain backslashes and begins
8885 # with a dollar sign (not a hyphen), so the echo should work correctly.
8886 lt_compile=`echo "$ac_compile" | $SED \
8887 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8888 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8889 -e 's:$: $lt_compiler_flag:'`
8890 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8891 (eval "$lt_compile" 2>out/conftest.err)
8892 ac_status=$?
8893 cat out/conftest.err >&5
8894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8895 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8896 then
8897 # The compiler can only warn and ignore the option if not recognized
8898 # So say no if there are warnings
8899 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8900 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8901 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8902 lt_cv_prog_compiler_c_o=yes
8903 fi
8904 fi
8905 chmod u+w . 2>&5
8906 $RM conftest*
8907 # SGI C++ compiler will create directory out/ii_files/ for
8908 # template instantiation
8909 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8910 $RM out/* && rmdir out
8911 cd ..
8912 $RM -r conftest
8913 $RM conftest*
8914
8915 fi
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8917 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8918
8919
8920
8921
8922
8923
8924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8925 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8926 if ${lt_cv_prog_compiler_c_o+:} false; then :
8927 $as_echo_n "(cached) " >&6
8928 else
8929 lt_cv_prog_compiler_c_o=no
8930 $RM -r conftest 2>/dev/null
8931 mkdir conftest
8932 cd conftest
8933 mkdir out
8934 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8935
8936 lt_compiler_flag="-o out/conftest2.$ac_objext"
8937 # Insert the option either (1) after the last *FLAGS variable, or
8938 # (2) before a word containing "conftest.", or (3) at the end.
8939 # Note that $ac_compile itself does not contain backslashes and begins
8940 # with a dollar sign (not a hyphen), so the echo should work correctly.
8941 lt_compile=`echo "$ac_compile" | $SED \
8942 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8943 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8944 -e 's:$: $lt_compiler_flag:'`
8945 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8946 (eval "$lt_compile" 2>out/conftest.err)
8947 ac_status=$?
8948 cat out/conftest.err >&5
8949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8950 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8951 then
8952 # The compiler can only warn and ignore the option if not recognized
8953 # So say no if there are warnings
8954 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8955 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8956 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8957 lt_cv_prog_compiler_c_o=yes
8958 fi
8959 fi
8960 chmod u+w . 2>&5
8961 $RM conftest*
8962 # SGI C++ compiler will create directory out/ii_files/ for
8963 # template instantiation
8964 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8965 $RM out/* && rmdir out
8966 cd ..
8967 $RM -r conftest
8968 $RM conftest*
8969
8970 fi
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8972 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8973
8974
8975
8976
8977 hard_links="nottested"
8978 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8979 # do not overwrite the value of need_locks provided by the user
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8981 $as_echo_n "checking if we can lock with hard links... " >&6; }
8982 hard_links=yes
8983 $RM conftest*
8984 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8985 touch conftest.a
8986 ln conftest.a conftest.b 2>&5 || hard_links=no
8987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8989 $as_echo "$hard_links" >&6; }
8990 if test "$hard_links" = no; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8992 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8993 need_locks=warn
8994 fi
8995 else
8996 need_locks=no
8997 fi
8998
8999
9000
9001
9002
9003
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9006
9007 runpath_var=
9008 allow_undefined_flag=
9009 always_export_symbols=no
9010 archive_cmds=
9011 archive_expsym_cmds=
9012 compiler_needs_object=no
9013 enable_shared_with_static_runtimes=no
9014 export_dynamic_flag_spec=
9015 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9016 hardcode_automatic=no
9017 hardcode_direct=no
9018 hardcode_direct_absolute=no
9019 hardcode_libdir_flag_spec=
9020 hardcode_libdir_flag_spec_ld=
9021 hardcode_libdir_separator=
9022 hardcode_minus_L=no
9023 hardcode_shlibpath_var=unsupported
9024 inherit_rpath=no
9025 link_all_deplibs=unknown
9026 module_cmds=
9027 module_expsym_cmds=
9028 old_archive_from_new_cmds=
9029 old_archive_from_expsyms_cmds=
9030 thread_safe_flag_spec=
9031 whole_archive_flag_spec=
9032 # include_expsyms should be a list of space-separated symbols to be *always*
9033 # included in the symbol list
9034 include_expsyms=
9035 # exclude_expsyms can be an extended regexp of symbols to exclude
9036 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9037 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9038 # as well as any symbol that contains `d'.
9039 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9040 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9041 # platforms (ab)use it in PIC code, but their linkers get confused if
9042 # the symbol is explicitly referenced. Since portable code cannot
9043 # rely on this symbol name, it's probably fine to never include it in
9044 # preloaded symbol tables.
9045 # Exclude shared library initialization/finalization symbols.
9046 extract_expsyms_cmds=
9047
9048 case $host_os in
9049 cygwin* | mingw* | pw32* | cegcc*)
9050 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9051 # When not using gcc, we currently assume that we are using
9052 # Microsoft Visual C++.
9053 if test "$GCC" != yes; then
9054 with_gnu_ld=no
9055 fi
9056 ;;
9057 interix*)
9058 # we just hope/assume this is gcc and not c89 (= MSVC++)
9059 with_gnu_ld=yes
9060 ;;
9061 openbsd*)
9062 with_gnu_ld=no
9063 ;;
9064 esac
9065
9066 ld_shlibs=yes
9067
9068 # On some targets, GNU ld is compatible enough with the native linker
9069 # that we're better off using the native interface for both.
9070 lt_use_gnu_ld_interface=no
9071 if test "$with_gnu_ld" = yes; then
9072 case $host_os in
9073 aix*)
9074 # The AIX port of GNU ld has always aspired to compatibility
9075 # with the native linker. However, as the warning in the GNU ld
9076 # block says, versions before 2.19.5* couldn't really create working
9077 # shared libraries, regardless of the interface used.
9078 case `$LD -v 2>&1` in
9079 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9080 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9081 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9082 *)
9083 lt_use_gnu_ld_interface=yes
9084 ;;
9085 esac
9086 ;;
9087 *)
9088 lt_use_gnu_ld_interface=yes
9089 ;;
9090 esac
9091 fi
9092
9093 if test "$lt_use_gnu_ld_interface" = yes; then
9094 # If archive_cmds runs LD, not CC, wlarc should be empty
9095 wlarc='${wl}'
9096
9097 # Set some defaults for GNU ld with shared library support. These
9098 # are reset later if shared libraries are not supported. Putting them
9099 # here allows them to be overridden if necessary.
9100 runpath_var=LD_RUN_PATH
9101 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9102 export_dynamic_flag_spec='${wl}--export-dynamic'
9103 # ancient GNU ld didn't support --whole-archive et. al.
9104 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9105 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9106 else
9107 whole_archive_flag_spec=
9108 fi
9109 supports_anon_versioning=no
9110 case `$LD -v 2>&1` in
9111 *GNU\ gold*) supports_anon_versioning=yes ;;
9112 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9113 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9114 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9115 *\ 2.11.*) ;; # other 2.11 versions
9116 *) supports_anon_versioning=yes ;;
9117 esac
9118
9119 # See if GNU ld supports shared libraries.
9120 case $host_os in
9121 aix[3-9]*)
9122 # On AIX/PPC, the GNU linker is very broken
9123 if test "$host_cpu" != ia64; then
9124 ld_shlibs=no
9125 cat <<_LT_EOF 1>&2
9126
9127 *** Warning: the GNU linker, at least up to release 2.19, is reported
9128 *** to be unable to reliably create shared libraries on AIX.
9129 *** Therefore, libtool is disabling shared libraries support. If you
9130 *** really care for shared libraries, you may want to install binutils
9131 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9132 *** You will then need to restart the configuration process.
9133
9134 _LT_EOF
9135 fi
9136 ;;
9137
9138 amigaos*)
9139 case $host_cpu in
9140 powerpc)
9141 # see comment about AmigaOS4 .so support
9142 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9143 archive_expsym_cmds=''
9144 ;;
9145 m68k)
9146 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)'
9147 hardcode_libdir_flag_spec='-L$libdir'
9148 hardcode_minus_L=yes
9149 ;;
9150 esac
9151 ;;
9152
9153 beos*)
9154 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9155 allow_undefined_flag=unsupported
9156 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9157 # support --undefined. This deserves some investigation. FIXME
9158 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9159 else
9160 ld_shlibs=no
9161 fi
9162 ;;
9163
9164 cygwin* | mingw* | pw32* | cegcc*)
9165 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9166 # as there is no search path for DLLs.
9167 hardcode_libdir_flag_spec='-L$libdir'
9168 export_dynamic_flag_spec='${wl}--export-all-symbols'
9169 allow_undefined_flag=unsupported
9170 always_export_symbols=no
9171 enable_shared_with_static_runtimes=yes
9172 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9173
9174 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9176 # If the export-symbols file already is a .def file (1st line
9177 # is EXPORTS), use it as is; otherwise, prepend...
9178 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9179 cp $export_symbols $output_objdir/$soname.def;
9180 else
9181 echo EXPORTS > $output_objdir/$soname.def;
9182 cat $export_symbols >> $output_objdir/$soname.def;
9183 fi~
9184 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9185 else
9186 ld_shlibs=no
9187 fi
9188 ;;
9189
9190 haiku*)
9191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 link_all_deplibs=yes
9193 ;;
9194
9195 interix[3-9]*)
9196 hardcode_direct=no
9197 hardcode_shlibpath_var=no
9198 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9199 export_dynamic_flag_spec='${wl}-E'
9200 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9201 # Instead, shared libraries are loaded at an image base (0x10000000 by
9202 # default) and relocated if they conflict, which is a slow very memory
9203 # consuming and fragmenting process. To avoid this, we pick a random,
9204 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9205 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9206 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9207 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'
9208 ;;
9209
9210 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9211 tmp_diet=no
9212 if test "$host_os" = linux-dietlibc; then
9213 case $cc_basename in
9214 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9215 esac
9216 fi
9217 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9218 && test "$tmp_diet" = no
9219 then
9220 tmp_addflag=' $pic_flag'
9221 tmp_sharedflag='-shared'
9222 case $cc_basename,$host_cpu in
9223 pgcc*) # Portland Group C compiler
9224 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'
9225 tmp_addflag=' $pic_flag'
9226 ;;
9227 pgf77* | pgf90* | pgf95* | pgfortran*)
9228 # Portland Group f77 and f90 compilers
9229 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'
9230 tmp_addflag=' $pic_flag -Mnomain' ;;
9231 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9232 tmp_addflag=' -i_dynamic' ;;
9233 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9234 tmp_addflag=' -i_dynamic -nofor_main' ;;
9235 ifc* | ifort*) # Intel Fortran compiler
9236 tmp_addflag=' -nofor_main' ;;
9237 lf95*) # Lahey Fortran 8.1
9238 whole_archive_flag_spec=
9239 tmp_sharedflag='--shared' ;;
9240 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9241 tmp_sharedflag='-qmkshrobj'
9242 tmp_addflag= ;;
9243 nvcc*) # Cuda Compiler Driver 2.2
9244 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'
9245 compiler_needs_object=yes
9246 ;;
9247 esac
9248 case `$CC -V 2>&1 | sed 5q` in
9249 *Sun\ C*) # Sun C 5.9
9250 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'
9251 compiler_needs_object=yes
9252 tmp_sharedflag='-G' ;;
9253 *Sun\ F*) # Sun Fortran 8.3
9254 tmp_sharedflag='-G' ;;
9255 esac
9256 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9257
9258 if test "x$supports_anon_versioning" = xyes; then
9259 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9260 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9261 echo "local: *; };" >> $output_objdir/$libname.ver~
9262 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9263 fi
9264
9265 case $cc_basename in
9266 xlf* | bgf* | bgxlf* | mpixlf*)
9267 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9268 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9269 hardcode_libdir_flag_spec=
9270 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9271 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9272 if test "x$supports_anon_versioning" = xyes; then
9273 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9275 echo "local: *; };" >> $output_objdir/$libname.ver~
9276 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9277 fi
9278 ;;
9279 esac
9280 else
9281 ld_shlibs=no
9282 fi
9283 ;;
9284
9285 netbsd*)
9286 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9287 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9288 wlarc=
9289 else
9290 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9291 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9292 fi
9293 ;;
9294
9295 solaris*)
9296 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9297 ld_shlibs=no
9298 cat <<_LT_EOF 1>&2
9299
9300 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9301 *** create shared libraries on Solaris systems. Therefore, libtool
9302 *** is disabling shared libraries support. We urge you to upgrade GNU
9303 *** binutils to release 2.9.1 or newer. Another option is to modify
9304 *** your PATH or compiler configuration so that the native linker is
9305 *** used, and then restart.
9306
9307 _LT_EOF
9308 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9309 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9310 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9311 else
9312 ld_shlibs=no
9313 fi
9314 ;;
9315
9316 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9317 case `$LD -v 2>&1` in
9318 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9319 ld_shlibs=no
9320 cat <<_LT_EOF 1>&2
9321
9322 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9323 *** reliably create shared libraries on SCO systems. Therefore, libtool
9324 *** is disabling shared libraries support. We urge you to upgrade GNU
9325 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9326 *** your PATH or compiler configuration so that the native linker is
9327 *** used, and then restart.
9328
9329 _LT_EOF
9330 ;;
9331 *)
9332 # For security reasons, it is highly recommended that you always
9333 # use absolute paths for naming shared libraries, and exclude the
9334 # DT_RUNPATH tag from executables and libraries. But doing so
9335 # requires that you compile everything twice, which is a pain.
9336 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9337 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9340 else
9341 ld_shlibs=no
9342 fi
9343 ;;
9344 esac
9345 ;;
9346
9347 sunos4*)
9348 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9349 wlarc=
9350 hardcode_direct=yes
9351 hardcode_shlibpath_var=no
9352 ;;
9353
9354 *)
9355 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9356 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9357 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9358 else
9359 ld_shlibs=no
9360 fi
9361 ;;
9362 esac
9363
9364 if test "$ld_shlibs" = no; then
9365 runpath_var=
9366 hardcode_libdir_flag_spec=
9367 export_dynamic_flag_spec=
9368 whole_archive_flag_spec=
9369 fi
9370 else
9371 # PORTME fill in a description of your system's linker (not GNU ld)
9372 case $host_os in
9373 aix3*)
9374 allow_undefined_flag=unsupported
9375 always_export_symbols=yes
9376 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'
9377 # Note: this linker hardcodes the directories in LIBPATH if there
9378 # are no directories specified by -L.
9379 hardcode_minus_L=yes
9380 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9381 # Neither direct hardcoding nor static linking is supported with a
9382 # broken collect2.
9383 hardcode_direct=unsupported
9384 fi
9385 ;;
9386
9387 aix[4-9]*)
9388 if test "$host_cpu" = ia64; then
9389 # On IA64, the linker does run time linking by default, so we don't
9390 # have to do anything special.
9391 aix_use_runtimelinking=no
9392 exp_sym_flag='-Bexport'
9393 no_entry_flag=""
9394 else
9395 # If we're using GNU nm, then we don't want the "-C" option.
9396 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9397 # Also, AIX nm treats weak defined symbols like other global
9398 # defined symbols, whereas GNU nm marks them as "W".
9399 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9400 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'
9401 else
9402 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'
9403 fi
9404 aix_use_runtimelinking=no
9405
9406 # Test if we are trying to use run time linking or normal
9407 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9408 # need to do runtime linking.
9409 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9410 for ld_flag in $LDFLAGS; do
9411 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9412 aix_use_runtimelinking=yes
9413 break
9414 fi
9415 done
9416 ;;
9417 esac
9418
9419 exp_sym_flag='-bexport'
9420 no_entry_flag='-bnoentry'
9421 fi
9422
9423 # When large executables or shared objects are built, AIX ld can
9424 # have problems creating the table of contents. If linking a library
9425 # or program results in "error TOC overflow" add -mminimal-toc to
9426 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9427 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9428
9429 archive_cmds=''
9430 hardcode_direct=yes
9431 hardcode_direct_absolute=yes
9432 hardcode_libdir_separator=':'
9433 link_all_deplibs=yes
9434 file_list_spec='${wl}-f,'
9435
9436 if test "$GCC" = yes; then
9437 case $host_os in aix4.[012]|aix4.[012].*)
9438 # We only want to do this on AIX 4.2 and lower, the check
9439 # below for broken collect2 doesn't work under 4.3+
9440 collect2name=`${CC} -print-prog-name=collect2`
9441 if test -f "$collect2name" &&
9442 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9443 then
9444 # We have reworked collect2
9445 :
9446 else
9447 # We have old collect2
9448 hardcode_direct=unsupported
9449 # It fails to find uninstalled libraries when the uninstalled
9450 # path is not listed in the libpath. Setting hardcode_minus_L
9451 # to unsupported forces relinking
9452 hardcode_minus_L=yes
9453 hardcode_libdir_flag_spec='-L$libdir'
9454 hardcode_libdir_separator=
9455 fi
9456 ;;
9457 esac
9458 shared_flag='-shared'
9459 if test "$aix_use_runtimelinking" = yes; then
9460 shared_flag="$shared_flag "'${wl}-G'
9461 fi
9462 else
9463 # not using gcc
9464 if test "$host_cpu" = ia64; then
9465 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9466 # chokes on -Wl,-G. The following line is correct:
9467 shared_flag='-G'
9468 else
9469 if test "$aix_use_runtimelinking" = yes; then
9470 shared_flag='${wl}-G'
9471 else
9472 shared_flag='${wl}-bM:SRE'
9473 fi
9474 fi
9475 fi
9476
9477 export_dynamic_flag_spec='${wl}-bexpall'
9478 # It seems that -bexpall does not export symbols beginning with
9479 # underscore (_), so it is better to generate a list of symbols to export.
9480 always_export_symbols=yes
9481 if test "$aix_use_runtimelinking" = yes; then
9482 # Warning - without using the other runtime loading flags (-brtl),
9483 # -berok will link without error, but may produce a broken library.
9484 allow_undefined_flag='-berok'
9485 # Determine the default libpath from the value encoded in an
9486 # empty executable.
9487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9488 /* end confdefs.h. */
9489
9490 int
9491 main ()
9492 {
9493
9494 ;
9495 return 0;
9496 }
9497 _ACEOF
9498 if ac_fn_c_try_link "$LINENO"; then :
9499
9500 lt_aix_libpath_sed='
9501 /Import File Strings/,/^$/ {
9502 /^0/ {
9503 s/^0 *\(.*\)$/\1/
9504 p
9505 }
9506 }'
9507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9508 # Check for a 64-bit object if we didn't find anything.
9509 if test -z "$aix_libpath"; then
9510 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9511 fi
9512 fi
9513 rm -f core conftest.err conftest.$ac_objext \
9514 conftest$ac_exeext conftest.$ac_ext
9515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9516
9517 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9518 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"
9519 else
9520 if test "$host_cpu" = ia64; then
9521 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9522 allow_undefined_flag="-z nodefs"
9523 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"
9524 else
9525 # Determine the default libpath from the value encoded in an
9526 # empty executable.
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9529
9530 int
9531 main ()
9532 {
9533
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9539
9540 lt_aix_libpath_sed='
9541 /Import File Strings/,/^$/ {
9542 /^0/ {
9543 s/^0 *\(.*\)$/\1/
9544 p
9545 }
9546 }'
9547 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548 # Check for a 64-bit object if we didn't find anything.
9549 if test -z "$aix_libpath"; then
9550 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 fi
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9556
9557 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9558 # Warning - without using the other run time loading flags,
9559 # -berok will link without error, but may produce a broken library.
9560 no_undefined_flag=' ${wl}-bernotok'
9561 allow_undefined_flag=' ${wl}-berok'
9562 if test "$with_gnu_ld" = yes; then
9563 # We only use this code for GNU lds that support --whole-archive.
9564 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9565 else
9566 # Exported symbols can be pulled into shared objects from archives
9567 whole_archive_flag_spec='$convenience'
9568 fi
9569 archive_cmds_need_lc=yes
9570 # This is similar to how AIX traditionally builds its shared libraries.
9571 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'
9572 fi
9573 fi
9574 ;;
9575
9576 amigaos*)
9577 case $host_cpu in
9578 powerpc)
9579 # see comment about AmigaOS4 .so support
9580 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9581 archive_expsym_cmds=''
9582 ;;
9583 m68k)
9584 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)'
9585 hardcode_libdir_flag_spec='-L$libdir'
9586 hardcode_minus_L=yes
9587 ;;
9588 esac
9589 ;;
9590
9591 bsdi[45]*)
9592 export_dynamic_flag_spec=-rdynamic
9593 ;;
9594
9595 cygwin* | mingw* | pw32* | cegcc*)
9596 # When not using gcc, we currently assume that we are using
9597 # Microsoft Visual C++.
9598 # hardcode_libdir_flag_spec is actually meaningless, as there is
9599 # no search path for DLLs.
9600 hardcode_libdir_flag_spec=' '
9601 allow_undefined_flag=unsupported
9602 # Tell ltmain to make .lib files, not .a files.
9603 libext=lib
9604 # Tell ltmain to make .dll files, not .so files.
9605 shrext_cmds=".dll"
9606 # FIXME: Setting linknames here is a bad hack.
9607 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9608 # The linker will automatically build a .lib file if we build a DLL.
9609 old_archive_from_new_cmds='true'
9610 # FIXME: Should let the user specify the lib program.
9611 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9612 fix_srcfile_path='`cygpath -w "$srcfile"`'
9613 enable_shared_with_static_runtimes=yes
9614 ;;
9615
9616 darwin* | rhapsody*)
9617
9618
9619 archive_cmds_need_lc=no
9620 hardcode_direct=no
9621 hardcode_automatic=yes
9622 hardcode_shlibpath_var=unsupported
9623 if test "$lt_cv_ld_force_load" = "yes"; then
9624 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\"`'
9625 else
9626 whole_archive_flag_spec=''
9627 fi
9628 link_all_deplibs=yes
9629 allow_undefined_flag="$_lt_dar_allow_undefined"
9630 case $cc_basename in
9631 ifort*) _lt_dar_can_shared=yes ;;
9632 *) _lt_dar_can_shared=$GCC ;;
9633 esac
9634 if test "$_lt_dar_can_shared" = "yes"; then
9635 output_verbose_link_cmd=func_echo_all
9636 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9637 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9638 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}"
9639 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}"
9640
9641 else
9642 ld_shlibs=no
9643 fi
9644
9645 ;;
9646
9647 dgux*)
9648 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9649 hardcode_libdir_flag_spec='-L$libdir'
9650 hardcode_shlibpath_var=no
9651 ;;
9652
9653 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9654 # support. Future versions do this automatically, but an explicit c++rt0.o
9655 # does not break anything, and helps significantly (at the cost of a little
9656 # extra space).
9657 freebsd2.2*)
9658 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9659 hardcode_libdir_flag_spec='-R$libdir'
9660 hardcode_direct=yes
9661 hardcode_shlibpath_var=no
9662 ;;
9663
9664 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9665 freebsd2.*)
9666 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9667 hardcode_direct=yes
9668 hardcode_minus_L=yes
9669 hardcode_shlibpath_var=no
9670 ;;
9671
9672 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9673 freebsd* | dragonfly*)
9674 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9675 hardcode_libdir_flag_spec='-R$libdir'
9676 hardcode_direct=yes
9677 hardcode_shlibpath_var=no
9678 ;;
9679
9680 hpux9*)
9681 if test "$GCC" = yes; then
9682 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'
9683 else
9684 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'
9685 fi
9686 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9687 hardcode_libdir_separator=:
9688 hardcode_direct=yes
9689
9690 # hardcode_minus_L: Not really in the search PATH,
9691 # but as the default location of the library.
9692 hardcode_minus_L=yes
9693 export_dynamic_flag_spec='${wl}-E'
9694 ;;
9695
9696 hpux10*)
9697 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9698 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9699 else
9700 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9701 fi
9702 if test "$with_gnu_ld" = no; then
9703 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9704 hardcode_libdir_flag_spec_ld='+b $libdir'
9705 hardcode_libdir_separator=:
9706 hardcode_direct=yes
9707 hardcode_direct_absolute=yes
9708 export_dynamic_flag_spec='${wl}-E'
9709 # hardcode_minus_L: Not really in the search PATH,
9710 # but as the default location of the library.
9711 hardcode_minus_L=yes
9712 fi
9713 ;;
9714
9715 hpux11*)
9716 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9717 case $host_cpu in
9718 hppa*64*)
9719 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9720 ;;
9721 ia64*)
9722 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9723 ;;
9724 *)
9725 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9726 ;;
9727 esac
9728 else
9729 case $host_cpu in
9730 hppa*64*)
9731 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9732 ;;
9733 ia64*)
9734 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9735 ;;
9736 *)
9737
9738 # Older versions of the 11.00 compiler do not understand -b yet
9739 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9741 $as_echo_n "checking if $CC understands -b... " >&6; }
9742 if ${lt_cv_prog_compiler__b+:} false; then :
9743 $as_echo_n "(cached) " >&6
9744 else
9745 lt_cv_prog_compiler__b=no
9746 save_LDFLAGS="$LDFLAGS"
9747 LDFLAGS="$LDFLAGS -b"
9748 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9749 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9750 # The linker can only warn and ignore the option if not recognized
9751 # So say no if there are warnings
9752 if test -s conftest.err; then
9753 # Append any errors to the config.log.
9754 cat conftest.err 1>&5
9755 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9756 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9757 if diff conftest.exp conftest.er2 >/dev/null; then
9758 lt_cv_prog_compiler__b=yes
9759 fi
9760 else
9761 lt_cv_prog_compiler__b=yes
9762 fi
9763 fi
9764 $RM -r conftest*
9765 LDFLAGS="$save_LDFLAGS"
9766
9767 fi
9768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9769 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9770
9771 if test x"$lt_cv_prog_compiler__b" = xyes; then
9772 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9773 else
9774 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9775 fi
9776
9777 ;;
9778 esac
9779 fi
9780 if test "$with_gnu_ld" = no; then
9781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator=:
9783
9784 case $host_cpu in
9785 hppa*64*|ia64*)
9786 hardcode_direct=no
9787 hardcode_shlibpath_var=no
9788 ;;
9789 *)
9790 hardcode_direct=yes
9791 hardcode_direct_absolute=yes
9792 export_dynamic_flag_spec='${wl}-E'
9793
9794 # hardcode_minus_L: Not really in the search PATH,
9795 # but as the default location of the library.
9796 hardcode_minus_L=yes
9797 ;;
9798 esac
9799 fi
9800 ;;
9801
9802 irix5* | irix6* | nonstopux*)
9803 if test "$GCC" = yes; then
9804 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'
9805 # Try to use the -exported_symbol ld option, if it does not
9806 # work, assume that -exports_file does not work either and
9807 # implicitly export all symbols.
9808 save_LDFLAGS="$LDFLAGS"
9809 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811 /* end confdefs.h. */
9812 int foo(void) {}
9813 _ACEOF
9814 if ac_fn_c_try_link "$LINENO"; then :
9815 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'
9816
9817 fi
9818 rm -f core conftest.err conftest.$ac_objext \
9819 conftest$ac_exeext conftest.$ac_ext
9820 LDFLAGS="$save_LDFLAGS"
9821 else
9822 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'
9823 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'
9824 fi
9825 archive_cmds_need_lc='no'
9826 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9827 hardcode_libdir_separator=:
9828 inherit_rpath=yes
9829 link_all_deplibs=yes
9830 ;;
9831
9832 netbsd*)
9833 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9834 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9835 else
9836 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9837 fi
9838 hardcode_libdir_flag_spec='-R$libdir'
9839 hardcode_direct=yes
9840 hardcode_shlibpath_var=no
9841 ;;
9842
9843 newsos6)
9844 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9845 hardcode_direct=yes
9846 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9847 hardcode_libdir_separator=:
9848 hardcode_shlibpath_var=no
9849 ;;
9850
9851 *nto* | *qnx*)
9852 ;;
9853
9854 openbsd*)
9855 if test -f /usr/libexec/ld.so; then
9856 hardcode_direct=yes
9857 hardcode_shlibpath_var=no
9858 hardcode_direct_absolute=yes
9859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9860 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9861 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9862 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9863 export_dynamic_flag_spec='${wl}-E'
9864 else
9865 case $host_os in
9866 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9867 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9868 hardcode_libdir_flag_spec='-R$libdir'
9869 ;;
9870 *)
9871 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9872 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9873 ;;
9874 esac
9875 fi
9876 else
9877 ld_shlibs=no
9878 fi
9879 ;;
9880
9881 os2*)
9882 hardcode_libdir_flag_spec='-L$libdir'
9883 hardcode_minus_L=yes
9884 allow_undefined_flag=unsupported
9885 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'
9886 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9887 ;;
9888
9889 osf3*)
9890 if test "$GCC" = yes; then
9891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9892 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'
9893 else
9894 allow_undefined_flag=' -expect_unresolved \*'
9895 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'
9896 fi
9897 archive_cmds_need_lc='no'
9898 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9899 hardcode_libdir_separator=:
9900 ;;
9901
9902 osf4* | osf5*) # as osf3* with the addition of -msym flag
9903 if test "$GCC" = yes; then
9904 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9905 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'
9906 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9907 else
9908 allow_undefined_flag=' -expect_unresolved \*'
9909 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'
9910 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~
9911 $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'
9912
9913 # Both c and cxx compiler support -rpath directly
9914 hardcode_libdir_flag_spec='-rpath $libdir'
9915 fi
9916 archive_cmds_need_lc='no'
9917 hardcode_libdir_separator=:
9918 ;;
9919
9920 solaris*)
9921 no_undefined_flag=' -z defs'
9922 if test "$GCC" = yes; then
9923 wlarc='${wl}'
9924 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9926 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9927 else
9928 case `$CC -V 2>&1` in
9929 *"Compilers 5.0"*)
9930 wlarc=''
9931 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9932 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9933 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9934 ;;
9935 *)
9936 wlarc='${wl}'
9937 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9938 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9939 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9940 ;;
9941 esac
9942 fi
9943 hardcode_libdir_flag_spec='-R$libdir'
9944 hardcode_shlibpath_var=no
9945 case $host_os in
9946 solaris2.[0-5] | solaris2.[0-5].*) ;;
9947 *)
9948 # The compiler driver will combine and reorder linker options,
9949 # but understands `-z linker_flag'. GCC discards it without `$wl',
9950 # but is careful enough not to reorder.
9951 # Supported since Solaris 2.6 (maybe 2.5.1?)
9952 if test "$GCC" = yes; then
9953 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9954 else
9955 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9956 fi
9957 ;;
9958 esac
9959 link_all_deplibs=yes
9960 ;;
9961
9962 sunos4*)
9963 if test "x$host_vendor" = xsequent; then
9964 # Use $CC to link under sequent, because it throws in some extra .o
9965 # files that make .init and .fini sections work.
9966 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9967 else
9968 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9969 fi
9970 hardcode_libdir_flag_spec='-L$libdir'
9971 hardcode_direct=yes
9972 hardcode_minus_L=yes
9973 hardcode_shlibpath_var=no
9974 ;;
9975
9976 sysv4)
9977 case $host_vendor in
9978 sni)
9979 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9980 hardcode_direct=yes # is this really true???
9981 ;;
9982 siemens)
9983 ## LD is ld it makes a PLAMLIB
9984 ## CC just makes a GrossModule.
9985 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9986 reload_cmds='$CC -r -o $output$reload_objs'
9987 hardcode_direct=no
9988 ;;
9989 motorola)
9990 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9991 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9992 ;;
9993 esac
9994 runpath_var='LD_RUN_PATH'
9995 hardcode_shlibpath_var=no
9996 ;;
9997
9998 sysv4.3*)
9999 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10000 hardcode_shlibpath_var=no
10001 export_dynamic_flag_spec='-Bexport'
10002 ;;
10003
10004 sysv4*MP*)
10005 if test -d /usr/nec; then
10006 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10007 hardcode_shlibpath_var=no
10008 runpath_var=LD_RUN_PATH
10009 hardcode_runpath_var=yes
10010 ld_shlibs=yes
10011 fi
10012 ;;
10013
10014 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10015 no_undefined_flag='${wl}-z,text'
10016 archive_cmds_need_lc=no
10017 hardcode_shlibpath_var=no
10018 runpath_var='LD_RUN_PATH'
10019
10020 if test "$GCC" = yes; then
10021 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10022 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10023 else
10024 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10025 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10026 fi
10027 ;;
10028
10029 sysv5* | sco3.2v5* | sco5v6*)
10030 # Note: We can NOT use -z defs as we might desire, because we do not
10031 # link with -lc, and that would cause any symbols used from libc to
10032 # always be unresolved, which means just about no library would
10033 # ever link correctly. If we're not using GNU ld we use -z text
10034 # though, which does catch some bad symbols but isn't as heavy-handed
10035 # as -z defs.
10036 no_undefined_flag='${wl}-z,text'
10037 allow_undefined_flag='${wl}-z,nodefs'
10038 archive_cmds_need_lc=no
10039 hardcode_shlibpath_var=no
10040 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10041 hardcode_libdir_separator=':'
10042 link_all_deplibs=yes
10043 export_dynamic_flag_spec='${wl}-Bexport'
10044 runpath_var='LD_RUN_PATH'
10045
10046 if test "$GCC" = yes; then
10047 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10048 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10049 else
10050 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10051 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10052 fi
10053 ;;
10054
10055 uts4*)
10056 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10057 hardcode_libdir_flag_spec='-L$libdir'
10058 hardcode_shlibpath_var=no
10059 ;;
10060
10061 *)
10062 ld_shlibs=no
10063 ;;
10064 esac
10065
10066 if test x$host_vendor = xsni; then
10067 case $host in
10068 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10069 export_dynamic_flag_spec='${wl}-Blargedynsym'
10070 ;;
10071 esac
10072 fi
10073 fi
10074
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10076 $as_echo "$ld_shlibs" >&6; }
10077 test "$ld_shlibs" = no && can_build_shared=no
10078
10079 with_gnu_ld=$with_gnu_ld
10080
10081
10082
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094
10095 #
10096 # Do we need to explicitly link libc?
10097 #
10098 case "x$archive_cmds_need_lc" in
10099 x|xyes)
10100 # Assume -lc should be added
10101 archive_cmds_need_lc=yes
10102
10103 if test "$enable_shared" = yes && test "$GCC" = yes; then
10104 case $archive_cmds in
10105 *'~'*)
10106 # FIXME: we may have to deal with multi-command sequences.
10107 ;;
10108 '$CC '*)
10109 # Test whether the compiler implicitly links with -lc since on some
10110 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10111 # to ld, don't add -lc before -lgcc.
10112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10113 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10114 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10115 $as_echo_n "(cached) " >&6
10116 else
10117 $RM conftest*
10118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10119
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10121 (eval $ac_compile) 2>&5
10122 ac_status=$?
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; } 2>conftest.err; then
10125 soname=conftest
10126 lib=conftest
10127 libobjs=conftest.$ac_objext
10128 deplibs=
10129 wl=$lt_prog_compiler_wl
10130 pic_flag=$lt_prog_compiler_pic
10131 compiler_flags=-v
10132 linker_flags=-v
10133 verstring=
10134 output_objdir=.
10135 libname=conftest
10136 lt_save_allow_undefined_flag=$allow_undefined_flag
10137 allow_undefined_flag=
10138 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10139 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10140 ac_status=$?
10141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10142 test $ac_status = 0; }
10143 then
10144 lt_cv_archive_cmds_need_lc=no
10145 else
10146 lt_cv_archive_cmds_need_lc=yes
10147 fi
10148 allow_undefined_flag=$lt_save_allow_undefined_flag
10149 else
10150 cat conftest.err 1>&5
10151 fi
10152 $RM conftest*
10153
10154 fi
10155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10156 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10157 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10158 ;;
10159 esac
10160 fi
10161 ;;
10162 esac
10163
10164
10165
10166
10167
10168
10169
10170
10171
10172
10173
10174
10175
10176
10177
10178
10179
10180
10181
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10321 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10322
10323 if test "$GCC" = yes; then
10324 case $host_os in
10325 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10326 *) lt_awk_arg="/^libraries:/" ;;
10327 esac
10328 case $host_os in
10329 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10330 *) lt_sed_strip_eq="s,=/,/,g" ;;
10331 esac
10332 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10333 case $lt_search_path_spec in
10334 *\;*)
10335 # if the path contains ";" then we assume it to be the separator
10336 # otherwise default to the standard path separator (i.e. ":") - it is
10337 # assumed that no part of a normal pathname contains ";" but that should
10338 # okay in the real world where ";" in dirpaths is itself problematic.
10339 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10340 ;;
10341 *)
10342 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10343 ;;
10344 esac
10345 # Ok, now we have the path, separated by spaces, we can step through it
10346 # and add multilib dir if necessary.
10347 lt_tmp_lt_search_path_spec=
10348 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10349 for lt_sys_path in $lt_search_path_spec; do
10350 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10351 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10352 else
10353 test -d "$lt_sys_path" && \
10354 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10355 fi
10356 done
10357 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10358 BEGIN {RS=" "; FS="/|\n";} {
10359 lt_foo="";
10360 lt_count=0;
10361 for (lt_i = NF; lt_i > 0; lt_i--) {
10362 if ($lt_i != "" && $lt_i != ".") {
10363 if ($lt_i == "..") {
10364 lt_count++;
10365 } else {
10366 if (lt_count == 0) {
10367 lt_foo="/" $lt_i lt_foo;
10368 } else {
10369 lt_count--;
10370 }
10371 }
10372 }
10373 }
10374 if (lt_foo != "") { lt_freq[lt_foo]++; }
10375 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10376 }'`
10377 # AWK program above erroneously prepends '/' to C:/dos/paths
10378 # for these hosts.
10379 case $host_os in
10380 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10381 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10382 esac
10383 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10384 else
10385 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10386 fi
10387 library_names_spec=
10388 libname_spec='lib$name'
10389 soname_spec=
10390 shrext_cmds=".so"
10391 postinstall_cmds=
10392 postuninstall_cmds=
10393 finish_cmds=
10394 finish_eval=
10395 shlibpath_var=
10396 shlibpath_overrides_runpath=unknown
10397 version_type=none
10398 dynamic_linker="$host_os ld.so"
10399 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10400 need_lib_prefix=unknown
10401 hardcode_into_libs=no
10402
10403 # when you set need_version to no, make sure it does not cause -set_version
10404 # flags to be left without arguments
10405 need_version=unknown
10406
10407 case $host_os in
10408 aix3*)
10409 version_type=linux
10410 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10411 shlibpath_var=LIBPATH
10412
10413 # AIX 3 has no versioning support, so we append a major version to the name.
10414 soname_spec='${libname}${release}${shared_ext}$major'
10415 ;;
10416
10417 aix[4-9]*)
10418 version_type=linux
10419 need_lib_prefix=no
10420 need_version=no
10421 hardcode_into_libs=yes
10422 if test "$host_cpu" = ia64; then
10423 # AIX 5 supports IA64
10424 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10425 shlibpath_var=LD_LIBRARY_PATH
10426 else
10427 # With GCC up to 2.95.x, collect2 would create an import file
10428 # for dependence libraries. The import file would start with
10429 # the line `#! .'. This would cause the generated library to
10430 # depend on `.', always an invalid library. This was fixed in
10431 # development snapshots of GCC prior to 3.0.
10432 case $host_os in
10433 aix4 | aix4.[01] | aix4.[01].*)
10434 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10435 echo ' yes '
10436 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10437 :
10438 else
10439 can_build_shared=no
10440 fi
10441 ;;
10442 esac
10443 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10444 # soname into executable. Probably we can add versioning support to
10445 # collect2, so additional links can be useful in future.
10446 if test "$aix_use_runtimelinking" = yes; then
10447 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10448 # instead of lib<name>.a to let people know that these are not
10449 # typical AIX shared libraries.
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 else
10452 # We preserve .a as extension for shared libraries through AIX4.2
10453 # and later when we are not doing run time linking.
10454 library_names_spec='${libname}${release}.a $libname.a'
10455 soname_spec='${libname}${release}${shared_ext}$major'
10456 fi
10457 shlibpath_var=LIBPATH
10458 fi
10459 ;;
10460
10461 amigaos*)
10462 case $host_cpu in
10463 powerpc)
10464 # Since July 2007 AmigaOS4 officially supports .so libraries.
10465 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10467 ;;
10468 m68k)
10469 library_names_spec='$libname.ixlibrary $libname.a'
10470 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10471 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'
10472 ;;
10473 esac
10474 ;;
10475
10476 beos*)
10477 library_names_spec='${libname}${shared_ext}'
10478 dynamic_linker="$host_os ld.so"
10479 shlibpath_var=LIBRARY_PATH
10480 ;;
10481
10482 bsdi[45]*)
10483 version_type=linux
10484 need_version=no
10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486 soname_spec='${libname}${release}${shared_ext}$major'
10487 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10488 shlibpath_var=LD_LIBRARY_PATH
10489 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10490 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10491 # the default ld.so.conf also contains /usr/contrib/lib and
10492 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10493 # libtool to hard-code these into programs
10494 ;;
10495
10496 cygwin* | mingw* | pw32* | cegcc*)
10497 version_type=windows
10498 shrext_cmds=".dll"
10499 need_version=no
10500 need_lib_prefix=no
10501
10502 case $GCC,$host_os in
10503 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10504 library_names_spec='$libname.dll.a'
10505 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10506 postinstall_cmds='base_file=`basename \${file}`~
10507 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10508 dldir=$destdir/`dirname \$dlpath`~
10509 test -d \$dldir || mkdir -p \$dldir~
10510 $install_prog $dir/$dlname \$dldir/$dlname~
10511 chmod a+x \$dldir/$dlname~
10512 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10513 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10514 fi'
10515 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10516 dlpath=$dir/\$dldll~
10517 $RM \$dlpath'
10518 shlibpath_overrides_runpath=yes
10519
10520 case $host_os in
10521 cygwin*)
10522 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10523 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10524
10525 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10526 ;;
10527 mingw* | cegcc*)
10528 # MinGW DLLs use traditional 'lib' prefix
10529 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10530 ;;
10531 pw32*)
10532 # pw32 DLLs use 'pw' prefix rather than 'lib'
10533 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10534 ;;
10535 esac
10536 ;;
10537
10538 *)
10539 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10540 ;;
10541 esac
10542 dynamic_linker='Win32 ld.exe'
10543 # FIXME: first we should search . and the directory the executable is in
10544 shlibpath_var=PATH
10545 ;;
10546
10547 darwin* | rhapsody*)
10548 dynamic_linker="$host_os dyld"
10549 version_type=darwin
10550 need_lib_prefix=no
10551 need_version=no
10552 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10553 soname_spec='${libname}${release}${major}$shared_ext'
10554 shlibpath_overrides_runpath=yes
10555 shlibpath_var=DYLD_LIBRARY_PATH
10556 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10557
10558 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10559 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10560 ;;
10561
10562 dgux*)
10563 version_type=linux
10564 need_lib_prefix=no
10565 need_version=no
10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 shlibpath_var=LD_LIBRARY_PATH
10569 ;;
10570
10571 freebsd* | dragonfly*)
10572 # DragonFly does not have aout. When/if they implement a new
10573 # versioning mechanism, adjust this.
10574 if test -x /usr/bin/objformat; then
10575 objformat=`/usr/bin/objformat`
10576 else
10577 case $host_os in
10578 freebsd[23].*) objformat=aout ;;
10579 *) objformat=elf ;;
10580 esac
10581 fi
10582 version_type=freebsd-$objformat
10583 case $version_type in
10584 freebsd-elf*)
10585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10586 need_version=no
10587 need_lib_prefix=no
10588 ;;
10589 freebsd-*)
10590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10591 need_version=yes
10592 ;;
10593 esac
10594 shlibpath_var=LD_LIBRARY_PATH
10595 case $host_os in
10596 freebsd2.*)
10597 shlibpath_overrides_runpath=yes
10598 ;;
10599 freebsd3.[01]* | freebsdelf3.[01]*)
10600 shlibpath_overrides_runpath=yes
10601 hardcode_into_libs=yes
10602 ;;
10603 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10604 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10605 shlibpath_overrides_runpath=no
10606 hardcode_into_libs=yes
10607 ;;
10608 *) # from 4.6 on, and DragonFly
10609 shlibpath_overrides_runpath=yes
10610 hardcode_into_libs=yes
10611 ;;
10612 esac
10613 ;;
10614
10615 gnu*)
10616 version_type=linux
10617 need_lib_prefix=no
10618 need_version=no
10619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10620 soname_spec='${libname}${release}${shared_ext}$major'
10621 shlibpath_var=LD_LIBRARY_PATH
10622 hardcode_into_libs=yes
10623 ;;
10624
10625 haiku*)
10626 version_type=linux
10627 need_lib_prefix=no
10628 need_version=no
10629 dynamic_linker="$host_os runtime_loader"
10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10631 soname_spec='${libname}${release}${shared_ext}$major'
10632 shlibpath_var=LIBRARY_PATH
10633 shlibpath_overrides_runpath=yes
10634 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10635 hardcode_into_libs=yes
10636 ;;
10637
10638 hpux9* | hpux10* | hpux11*)
10639 # Give a soname corresponding to the major version so that dld.sl refuses to
10640 # link against other versions.
10641 version_type=sunos
10642 need_lib_prefix=no
10643 need_version=no
10644 case $host_cpu in
10645 ia64*)
10646 shrext_cmds='.so'
10647 hardcode_into_libs=yes
10648 dynamic_linker="$host_os dld.so"
10649 shlibpath_var=LD_LIBRARY_PATH
10650 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10652 soname_spec='${libname}${release}${shared_ext}$major'
10653 if test "X$HPUX_IA64_MODE" = X32; then
10654 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10655 else
10656 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10657 fi
10658 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10659 ;;
10660 hppa*64*)
10661 shrext_cmds='.sl'
10662 hardcode_into_libs=yes
10663 dynamic_linker="$host_os dld.sl"
10664 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10665 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10666 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10667 soname_spec='${libname}${release}${shared_ext}$major'
10668 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10669 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10670 ;;
10671 *)
10672 shrext_cmds='.sl'
10673 dynamic_linker="$host_os dld.sl"
10674 shlibpath_var=SHLIB_PATH
10675 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10677 soname_spec='${libname}${release}${shared_ext}$major'
10678 ;;
10679 esac
10680 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10681 postinstall_cmds='chmod 555 $lib'
10682 # or fails outright, so override atomically:
10683 install_override_mode=555
10684 ;;
10685
10686 interix[3-9]*)
10687 version_type=linux
10688 need_lib_prefix=no
10689 need_version=no
10690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10691 soname_spec='${libname}${release}${shared_ext}$major'
10692 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10693 shlibpath_var=LD_LIBRARY_PATH
10694 shlibpath_overrides_runpath=no
10695 hardcode_into_libs=yes
10696 ;;
10697
10698 irix5* | irix6* | nonstopux*)
10699 case $host_os in
10700 nonstopux*) version_type=nonstopux ;;
10701 *)
10702 if test "$lt_cv_prog_gnu_ld" = yes; then
10703 version_type=linux
10704 else
10705 version_type=irix
10706 fi ;;
10707 esac
10708 need_lib_prefix=no
10709 need_version=no
10710 soname_spec='${libname}${release}${shared_ext}$major'
10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10712 case $host_os in
10713 irix5* | nonstopux*)
10714 libsuff= shlibsuff=
10715 ;;
10716 *)
10717 case $LD in # libtool.m4 will add one of these switches to LD
10718 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10719 libsuff= shlibsuff= libmagic=32-bit;;
10720 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10721 libsuff=32 shlibsuff=N32 libmagic=N32;;
10722 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10723 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10724 *) libsuff= shlibsuff= libmagic=never-match;;
10725 esac
10726 ;;
10727 esac
10728 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10729 shlibpath_overrides_runpath=no
10730 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10731 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10732 hardcode_into_libs=yes
10733 ;;
10734
10735 # No shared lib support for Linux oldld, aout, or coff.
10736 linux*oldld* | linux*aout* | linux*coff*)
10737 dynamic_linker=no
10738 ;;
10739
10740 # This must be Linux ELF.
10741
10742 # uclinux* changes (here and below) have been submitted to the libtool
10743 # project, but have not yet been accepted: they are GCC-local changes
10744 # for the time being. (See
10745 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
10746 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10747 version_type=linux
10748 need_lib_prefix=no
10749 need_version=no
10750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10751 soname_spec='${libname}${release}${shared_ext}$major'
10752 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10753 shlibpath_var=LD_LIBRARY_PATH
10754 shlibpath_overrides_runpath=no
10755
10756 # Some binutils ld are patched to set DT_RUNPATH
10757 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10758 $as_echo_n "(cached) " >&6
10759 else
10760 lt_cv_shlibpath_overrides_runpath=no
10761 save_LDFLAGS=$LDFLAGS
10762 save_libdir=$libdir
10763 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10764 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10766 /* end confdefs.h. */
10767
10768 int
10769 main ()
10770 {
10771
10772 ;
10773 return 0;
10774 }
10775 _ACEOF
10776 if ac_fn_c_try_link "$LINENO"; then :
10777 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10778 lt_cv_shlibpath_overrides_runpath=yes
10779 fi
10780 fi
10781 rm -f core conftest.err conftest.$ac_objext \
10782 conftest$ac_exeext conftest.$ac_ext
10783 LDFLAGS=$save_LDFLAGS
10784 libdir=$save_libdir
10785
10786 fi
10787
10788 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10789
10790 # This implies no fast_install, which is unacceptable.
10791 # Some rework will be needed to allow for fast_install
10792 # before this can be enabled.
10793 hardcode_into_libs=yes
10794
10795 # Append ld.so.conf contents to the search path
10796 if test -f /etc/ld.so.conf; then
10797 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' ' '`
10798 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10799 fi
10800
10801 # We used to test for /lib/ld.so.1 and disable shared libraries on
10802 # powerpc, because MkLinux only supported shared libraries with the
10803 # GNU dynamic linker. Since this was broken with cross compilers,
10804 # most powerpc-linux boxes support dynamic linking these days and
10805 # people can always --disable-shared, the test was removed, and we
10806 # assume the GNU/Linux dynamic linker is in use.
10807 dynamic_linker='GNU/Linux ld.so'
10808 ;;
10809
10810 netbsd*)
10811 version_type=sunos
10812 need_lib_prefix=no
10813 need_version=no
10814 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10816 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10817 dynamic_linker='NetBSD (a.out) ld.so'
10818 else
10819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10820 soname_spec='${libname}${release}${shared_ext}$major'
10821 dynamic_linker='NetBSD ld.elf_so'
10822 fi
10823 shlibpath_var=LD_LIBRARY_PATH
10824 shlibpath_overrides_runpath=yes
10825 hardcode_into_libs=yes
10826 ;;
10827
10828 newsos6)
10829 version_type=linux
10830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10831 shlibpath_var=LD_LIBRARY_PATH
10832 shlibpath_overrides_runpath=yes
10833 ;;
10834
10835 *nto* | *qnx*)
10836 version_type=qnx
10837 need_lib_prefix=no
10838 need_version=no
10839 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10840 soname_spec='${libname}${release}${shared_ext}$major'
10841 shlibpath_var=LD_LIBRARY_PATH
10842 shlibpath_overrides_runpath=no
10843 hardcode_into_libs=yes
10844 dynamic_linker='ldqnx.so'
10845 ;;
10846
10847 openbsd*)
10848 version_type=sunos
10849 sys_lib_dlsearch_path_spec="/usr/lib"
10850 need_lib_prefix=no
10851 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10852 case $host_os in
10853 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10854 *) need_version=no ;;
10855 esac
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10858 shlibpath_var=LD_LIBRARY_PATH
10859 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10860 case $host_os in
10861 openbsd2.[89] | openbsd2.[89].*)
10862 shlibpath_overrides_runpath=no
10863 ;;
10864 *)
10865 shlibpath_overrides_runpath=yes
10866 ;;
10867 esac
10868 else
10869 shlibpath_overrides_runpath=yes
10870 fi
10871 ;;
10872
10873 os2*)
10874 libname_spec='$name'
10875 shrext_cmds=".dll"
10876 need_lib_prefix=no
10877 library_names_spec='$libname${shared_ext} $libname.a'
10878 dynamic_linker='OS/2 ld.exe'
10879 shlibpath_var=LIBPATH
10880 ;;
10881
10882 osf3* | osf4* | osf5*)
10883 version_type=osf
10884 need_lib_prefix=no
10885 need_version=no
10886 soname_spec='${libname}${release}${shared_ext}$major'
10887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10888 shlibpath_var=LD_LIBRARY_PATH
10889 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10890 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10891 ;;
10892
10893 rdos*)
10894 dynamic_linker=no
10895 ;;
10896
10897 solaris*)
10898 version_type=linux
10899 need_lib_prefix=no
10900 need_version=no
10901 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10902 soname_spec='${libname}${release}${shared_ext}$major'
10903 shlibpath_var=LD_LIBRARY_PATH
10904 shlibpath_overrides_runpath=yes
10905 hardcode_into_libs=yes
10906 # ldd complains unless libraries are executable
10907 postinstall_cmds='chmod +x $lib'
10908 ;;
10909
10910 sunos4*)
10911 version_type=sunos
10912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10913 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10914 shlibpath_var=LD_LIBRARY_PATH
10915 shlibpath_overrides_runpath=yes
10916 if test "$with_gnu_ld" = yes; then
10917 need_lib_prefix=no
10918 fi
10919 need_version=yes
10920 ;;
10921
10922 sysv4 | sysv4.3*)
10923 version_type=linux
10924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10925 soname_spec='${libname}${release}${shared_ext}$major'
10926 shlibpath_var=LD_LIBRARY_PATH
10927 case $host_vendor in
10928 sni)
10929 shlibpath_overrides_runpath=no
10930 need_lib_prefix=no
10931 runpath_var=LD_RUN_PATH
10932 ;;
10933 siemens)
10934 need_lib_prefix=no
10935 ;;
10936 motorola)
10937 need_lib_prefix=no
10938 need_version=no
10939 shlibpath_overrides_runpath=no
10940 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10941 ;;
10942 esac
10943 ;;
10944
10945 sysv4*MP*)
10946 if test -d /usr/nec ;then
10947 version_type=linux
10948 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10949 soname_spec='$libname${shared_ext}.$major'
10950 shlibpath_var=LD_LIBRARY_PATH
10951 fi
10952 ;;
10953
10954 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10955 version_type=freebsd-elf
10956 need_lib_prefix=no
10957 need_version=no
10958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10959 soname_spec='${libname}${release}${shared_ext}$major'
10960 shlibpath_var=LD_LIBRARY_PATH
10961 shlibpath_overrides_runpath=yes
10962 hardcode_into_libs=yes
10963 if test "$with_gnu_ld" = yes; then
10964 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10965 else
10966 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10967 case $host_os in
10968 sco3.2v5*)
10969 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10970 ;;
10971 esac
10972 fi
10973 sys_lib_dlsearch_path_spec='/usr/lib'
10974 ;;
10975
10976 tpf*)
10977 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10978 version_type=linux
10979 need_lib_prefix=no
10980 need_version=no
10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10982 shlibpath_var=LD_LIBRARY_PATH
10983 shlibpath_overrides_runpath=no
10984 hardcode_into_libs=yes
10985 ;;
10986
10987 uts4*)
10988 version_type=linux
10989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10990 soname_spec='${libname}${release}${shared_ext}$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 ;;
10993
10994 *)
10995 dynamic_linker=no
10996 ;;
10997 esac
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10999 $as_echo "$dynamic_linker" >&6; }
11000 test "$dynamic_linker" = no && can_build_shared=no
11001
11002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11003 if test "$GCC" = yes; then
11004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11005 fi
11006
11007 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11008 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11009 fi
11010 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11011 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11012 fi
11013
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024
11025
11026
11027
11028
11029
11030
11031
11032
11033
11034
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11106 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11107 hardcode_action=
11108 if test -n "$hardcode_libdir_flag_spec" ||
11109 test -n "$runpath_var" ||
11110 test "X$hardcode_automatic" = "Xyes" ; then
11111
11112 # We can hardcode non-existent directories.
11113 if test "$hardcode_direct" != no &&
11114 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11115 # have to relink, otherwise we might link with an installed library
11116 # when we should be linking with a yet-to-be-installed one
11117 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11118 test "$hardcode_minus_L" != no; then
11119 # Linking always hardcodes the temporary library directory.
11120 hardcode_action=relink
11121 else
11122 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11123 hardcode_action=immediate
11124 fi
11125 else
11126 # We cannot hardcode anything, or else we can only hardcode existing
11127 # directories.
11128 hardcode_action=unsupported
11129 fi
11130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11131 $as_echo "$hardcode_action" >&6; }
11132
11133 if test "$hardcode_action" = relink ||
11134 test "$inherit_rpath" = yes; then
11135 # Fast installation is not supported
11136 enable_fast_install=no
11137 elif test "$shlibpath_overrides_runpath" = yes ||
11138 test "$enable_shared" = no; then
11139 # Fast installation is not necessary
11140 enable_fast_install=needless
11141 fi
11142
11143
11144
11145
11146
11147
11148 if test "x$enable_dlopen" != xyes; then
11149 enable_dlopen=unknown
11150 enable_dlopen_self=unknown
11151 enable_dlopen_self_static=unknown
11152 else
11153 lt_cv_dlopen=no
11154 lt_cv_dlopen_libs=
11155
11156 case $host_os in
11157 beos*)
11158 lt_cv_dlopen="load_add_on"
11159 lt_cv_dlopen_libs=
11160 lt_cv_dlopen_self=yes
11161 ;;
11162
11163 mingw* | pw32* | cegcc*)
11164 lt_cv_dlopen="LoadLibrary"
11165 lt_cv_dlopen_libs=
11166 ;;
11167
11168 cygwin*)
11169 lt_cv_dlopen="dlopen"
11170 lt_cv_dlopen_libs=
11171 ;;
11172
11173 darwin*)
11174 # if libdl is installed we need to link against it
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11176 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11177 if ${ac_cv_lib_dl_dlopen+:} false; then :
11178 $as_echo_n "(cached) " >&6
11179 else
11180 ac_check_lib_save_LIBS=$LIBS
11181 LIBS="-ldl $LIBS"
11182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11183 /* end confdefs.h. */
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186 Use char because int might match the return type of a GCC
11187 builtin and then its argument prototype would still apply. */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char dlopen ();
11192 int
11193 main ()
11194 {
11195 return dlopen ();
11196 ;
11197 return 0;
11198 }
11199 _ACEOF
11200 if ac_fn_c_try_link "$LINENO"; then :
11201 ac_cv_lib_dl_dlopen=yes
11202 else
11203 ac_cv_lib_dl_dlopen=no
11204 fi
11205 rm -f core conftest.err conftest.$ac_objext \
11206 conftest$ac_exeext conftest.$ac_ext
11207 LIBS=$ac_check_lib_save_LIBS
11208 fi
11209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11210 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11211 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11212 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11213 else
11214
11215 lt_cv_dlopen="dyld"
11216 lt_cv_dlopen_libs=
11217 lt_cv_dlopen_self=yes
11218
11219 fi
11220
11221 ;;
11222
11223 *)
11224 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11225 if test "x$ac_cv_func_shl_load" = xyes; then :
11226 lt_cv_dlopen="shl_load"
11227 else
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11229 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11230 if ${ac_cv_lib_dld_shl_load+:} false; then :
11231 $as_echo_n "(cached) " >&6
11232 else
11233 ac_check_lib_save_LIBS=$LIBS
11234 LIBS="-ldld $LIBS"
11235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11236 /* end confdefs.h. */
11237
11238 /* Override any GCC internal prototype to avoid an error.
11239 Use char because int might match the return type of a GCC
11240 builtin and then its argument prototype would still apply. */
11241 #ifdef __cplusplus
11242 extern "C"
11243 #endif
11244 char shl_load ();
11245 int
11246 main ()
11247 {
11248 return shl_load ();
11249 ;
11250 return 0;
11251 }
11252 _ACEOF
11253 if ac_fn_c_try_link "$LINENO"; then :
11254 ac_cv_lib_dld_shl_load=yes
11255 else
11256 ac_cv_lib_dld_shl_load=no
11257 fi
11258 rm -f core conftest.err conftest.$ac_objext \
11259 conftest$ac_exeext conftest.$ac_ext
11260 LIBS=$ac_check_lib_save_LIBS
11261 fi
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11263 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11264 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11265 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11266 else
11267 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11268 if test "x$ac_cv_func_dlopen" = xyes; then :
11269 lt_cv_dlopen="dlopen"
11270 else
11271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11272 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11273 if ${ac_cv_lib_dl_dlopen+:} false; then :
11274 $as_echo_n "(cached) " >&6
11275 else
11276 ac_check_lib_save_LIBS=$LIBS
11277 LIBS="-ldl $LIBS"
11278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11279 /* end confdefs.h. */
11280
11281 /* Override any GCC internal prototype to avoid an error.
11282 Use char because int might match the return type of a GCC
11283 builtin and then its argument prototype would still apply. */
11284 #ifdef __cplusplus
11285 extern "C"
11286 #endif
11287 char dlopen ();
11288 int
11289 main ()
11290 {
11291 return dlopen ();
11292 ;
11293 return 0;
11294 }
11295 _ACEOF
11296 if ac_fn_c_try_link "$LINENO"; then :
11297 ac_cv_lib_dl_dlopen=yes
11298 else
11299 ac_cv_lib_dl_dlopen=no
11300 fi
11301 rm -f core conftest.err conftest.$ac_objext \
11302 conftest$ac_exeext conftest.$ac_ext
11303 LIBS=$ac_check_lib_save_LIBS
11304 fi
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11306 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11307 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11308 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11309 else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11311 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11312 if ${ac_cv_lib_svld_dlopen+:} false; then :
11313 $as_echo_n "(cached) " >&6
11314 else
11315 ac_check_lib_save_LIBS=$LIBS
11316 LIBS="-lsvld $LIBS"
11317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11318 /* end confdefs.h. */
11319
11320 /* Override any GCC internal prototype to avoid an error.
11321 Use char because int might match the return type of a GCC
11322 builtin and then its argument prototype would still apply. */
11323 #ifdef __cplusplus
11324 extern "C"
11325 #endif
11326 char dlopen ();
11327 int
11328 main ()
11329 {
11330 return dlopen ();
11331 ;
11332 return 0;
11333 }
11334 _ACEOF
11335 if ac_fn_c_try_link "$LINENO"; then :
11336 ac_cv_lib_svld_dlopen=yes
11337 else
11338 ac_cv_lib_svld_dlopen=no
11339 fi
11340 rm -f core conftest.err conftest.$ac_objext \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11343 fi
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11345 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11346 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11347 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11348 else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11350 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11351 if ${ac_cv_lib_dld_dld_link+:} false; then :
11352 $as_echo_n "(cached) " >&6
11353 else
11354 ac_check_lib_save_LIBS=$LIBS
11355 LIBS="-ldld $LIBS"
11356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11357 /* end confdefs.h. */
11358
11359 /* Override any GCC internal prototype to avoid an error.
11360 Use char because int might match the return type of a GCC
11361 builtin and then its argument prototype would still apply. */
11362 #ifdef __cplusplus
11363 extern "C"
11364 #endif
11365 char dld_link ();
11366 int
11367 main ()
11368 {
11369 return dld_link ();
11370 ;
11371 return 0;
11372 }
11373 _ACEOF
11374 if ac_fn_c_try_link "$LINENO"; then :
11375 ac_cv_lib_dld_dld_link=yes
11376 else
11377 ac_cv_lib_dld_dld_link=no
11378 fi
11379 rm -f core conftest.err conftest.$ac_objext \
11380 conftest$ac_exeext conftest.$ac_ext
11381 LIBS=$ac_check_lib_save_LIBS
11382 fi
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11384 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11385 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11386 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11387 fi
11388
11389
11390 fi
11391
11392
11393 fi
11394
11395
11396 fi
11397
11398
11399 fi
11400
11401
11402 fi
11403
11404 ;;
11405 esac
11406
11407 if test "x$lt_cv_dlopen" != xno; then
11408 enable_dlopen=yes
11409 else
11410 enable_dlopen=no
11411 fi
11412
11413 case $lt_cv_dlopen in
11414 dlopen)
11415 save_CPPFLAGS="$CPPFLAGS"
11416 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11417
11418 save_LDFLAGS="$LDFLAGS"
11419 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11420
11421 save_LIBS="$LIBS"
11422 LIBS="$lt_cv_dlopen_libs $LIBS"
11423
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11425 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11426 if ${lt_cv_dlopen_self+:} false; then :
11427 $as_echo_n "(cached) " >&6
11428 else
11429 if test "$cross_compiling" = yes; then :
11430 lt_cv_dlopen_self=cross
11431 else
11432 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11433 lt_status=$lt_dlunknown
11434 cat > conftest.$ac_ext <<_LT_EOF
11435 #line 11435 "configure"
11436 #include "confdefs.h"
11437
11438 #if HAVE_DLFCN_H
11439 #include <dlfcn.h>
11440 #endif
11441
11442 #include <stdio.h>
11443
11444 #ifdef RTLD_GLOBAL
11445 # define LT_DLGLOBAL RTLD_GLOBAL
11446 #else
11447 # ifdef DL_GLOBAL
11448 # define LT_DLGLOBAL DL_GLOBAL
11449 # else
11450 # define LT_DLGLOBAL 0
11451 # endif
11452 #endif
11453
11454 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11455 find out it does not work in some platform. */
11456 #ifndef LT_DLLAZY_OR_NOW
11457 # ifdef RTLD_LAZY
11458 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11459 # else
11460 # ifdef DL_LAZY
11461 # define LT_DLLAZY_OR_NOW DL_LAZY
11462 # else
11463 # ifdef RTLD_NOW
11464 # define LT_DLLAZY_OR_NOW RTLD_NOW
11465 # else
11466 # ifdef DL_NOW
11467 # define LT_DLLAZY_OR_NOW DL_NOW
11468 # else
11469 # define LT_DLLAZY_OR_NOW 0
11470 # endif
11471 # endif
11472 # endif
11473 # endif
11474 #endif
11475
11476 /* When -fvisbility=hidden is used, assume the code has been annotated
11477 correspondingly for the symbols needed. */
11478 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11479 void fnord () __attribute__((visibility("default")));
11480 #endif
11481
11482 void fnord () { int i=42; }
11483 int main ()
11484 {
11485 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11486 int status = $lt_dlunknown;
11487
11488 if (self)
11489 {
11490 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11491 else
11492 {
11493 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11494 else puts (dlerror ());
11495 }
11496 /* dlclose (self); */
11497 }
11498 else
11499 puts (dlerror ());
11500
11501 return status;
11502 }
11503 _LT_EOF
11504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11505 (eval $ac_link) 2>&5
11506 ac_status=$?
11507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11508 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11509 (./conftest; exit; ) >&5 2>/dev/null
11510 lt_status=$?
11511 case x$lt_status in
11512 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11513 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11514 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11515 esac
11516 else :
11517 # compilation failed
11518 lt_cv_dlopen_self=no
11519 fi
11520 fi
11521 rm -fr conftest*
11522
11523
11524 fi
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11526 $as_echo "$lt_cv_dlopen_self" >&6; }
11527
11528 if test "x$lt_cv_dlopen_self" = xyes; then
11529 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11531 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11532 if ${lt_cv_dlopen_self_static+:} false; then :
11533 $as_echo_n "(cached) " >&6
11534 else
11535 if test "$cross_compiling" = yes; then :
11536 lt_cv_dlopen_self_static=cross
11537 else
11538 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11539 lt_status=$lt_dlunknown
11540 cat > conftest.$ac_ext <<_LT_EOF
11541 #line 11541 "configure"
11542 #include "confdefs.h"
11543
11544 #if HAVE_DLFCN_H
11545 #include <dlfcn.h>
11546 #endif
11547
11548 #include <stdio.h>
11549
11550 #ifdef RTLD_GLOBAL
11551 # define LT_DLGLOBAL RTLD_GLOBAL
11552 #else
11553 # ifdef DL_GLOBAL
11554 # define LT_DLGLOBAL DL_GLOBAL
11555 # else
11556 # define LT_DLGLOBAL 0
11557 # endif
11558 #endif
11559
11560 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11561 find out it does not work in some platform. */
11562 #ifndef LT_DLLAZY_OR_NOW
11563 # ifdef RTLD_LAZY
11564 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11565 # else
11566 # ifdef DL_LAZY
11567 # define LT_DLLAZY_OR_NOW DL_LAZY
11568 # else
11569 # ifdef RTLD_NOW
11570 # define LT_DLLAZY_OR_NOW RTLD_NOW
11571 # else
11572 # ifdef DL_NOW
11573 # define LT_DLLAZY_OR_NOW DL_NOW
11574 # else
11575 # define LT_DLLAZY_OR_NOW 0
11576 # endif
11577 # endif
11578 # endif
11579 # endif
11580 #endif
11581
11582 /* When -fvisbility=hidden is used, assume the code has been annotated
11583 correspondingly for the symbols needed. */
11584 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11585 void fnord () __attribute__((visibility("default")));
11586 #endif
11587
11588 void fnord () { int i=42; }
11589 int main ()
11590 {
11591 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11592 int status = $lt_dlunknown;
11593
11594 if (self)
11595 {
11596 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11597 else
11598 {
11599 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11600 else puts (dlerror ());
11601 }
11602 /* dlclose (self); */
11603 }
11604 else
11605 puts (dlerror ());
11606
11607 return status;
11608 }
11609 _LT_EOF
11610 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11611 (eval $ac_link) 2>&5
11612 ac_status=$?
11613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11614 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11615 (./conftest; exit; ) >&5 2>/dev/null
11616 lt_status=$?
11617 case x$lt_status in
11618 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11619 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11620 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11621 esac
11622 else :
11623 # compilation failed
11624 lt_cv_dlopen_self_static=no
11625 fi
11626 fi
11627 rm -fr conftest*
11628
11629
11630 fi
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11632 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11633 fi
11634
11635 CPPFLAGS="$save_CPPFLAGS"
11636 LDFLAGS="$save_LDFLAGS"
11637 LIBS="$save_LIBS"
11638 ;;
11639 esac
11640
11641 case $lt_cv_dlopen_self in
11642 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11643 *) enable_dlopen_self=unknown ;;
11644 esac
11645
11646 case $lt_cv_dlopen_self_static in
11647 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11648 *) enable_dlopen_self_static=unknown ;;
11649 esac
11650 fi
11651
11652
11653
11654
11655
11656
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668 striplib=
11669 old_striplib=
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11671 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11672 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11673 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11674 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11676 $as_echo "yes" >&6; }
11677 else
11678 # FIXME - insert some real tests, host_os isn't really good enough
11679 case $host_os in
11680 darwin*)
11681 if test -n "$STRIP" ; then
11682 striplib="$STRIP -x"
11683 old_striplib="$STRIP -S"
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11685 $as_echo "yes" >&6; }
11686 else
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11688 $as_echo "no" >&6; }
11689 fi
11690 ;;
11691 *)
11692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11693 $as_echo "no" >&6; }
11694 ;;
11695 esac
11696 fi
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 # Report which library types will actually be built
11710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11711 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11713 $as_echo "$can_build_shared" >&6; }
11714
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11716 $as_echo_n "checking whether to build shared libraries... " >&6; }
11717 test "$can_build_shared" = "no" && enable_shared=no
11718
11719 # On AIX, shared libraries and static libraries use the same namespace, and
11720 # are all built from PIC.
11721 case $host_os in
11722 aix3*)
11723 test "$enable_shared" = yes && enable_static=no
11724 if test -n "$RANLIB"; then
11725 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11726 postinstall_cmds='$RANLIB $lib'
11727 fi
11728 ;;
11729
11730 aix[4-9]*)
11731 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11732 test "$enable_shared" = yes && enable_static=no
11733 fi
11734 ;;
11735 esac
11736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11737 $as_echo "$enable_shared" >&6; }
11738
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11740 $as_echo_n "checking whether to build static libraries... " >&6; }
11741 # Make sure either enable_shared or enable_static is yes.
11742 test "$enable_shared" = yes || enable_static=yes
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11744 $as_echo "$enable_static" >&6; }
11745
11746
11747
11748
11749 fi
11750 ac_ext=c
11751 ac_cpp='$CPP $CPPFLAGS'
11752 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11753 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11754 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11755
11756 CC="$lt_save_CC"
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770 ac_config_commands="$ac_config_commands libtool"
11771
11772
11773
11774
11775 # Only expand once:
11776
11777
11778
11779
11780
11781 case $host in
11782 *-cygwin* | *-mingw*)
11783 # 'host' will be top-level target in the case of a target lib,
11784 # we must compare to with_cross_host to decide if this is a native
11785 # or cross-compiler and select where to install dlls appropriately.
11786 if test -n "$with_cross_host" &&
11787 test x"$with_cross_host" != x"no"; then
11788 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11789 else
11790 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11791 fi
11792 ;;
11793 *)
11794 lt_host_flags=
11795 ;;
11796 esac
11797
11798
11799
11800
11801
11802
11803
11804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11805 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11806 # Check whether --enable-maintainer-mode was given.
11807 if test "${enable_maintainer_mode+set}" = set; then :
11808 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11809 else
11810 USE_MAINTAINER_MODE=no
11811 fi
11812
11813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11814 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11815 if test $USE_MAINTAINER_MODE = yes; then
11816 MAINTAINER_MODE_TRUE=
11817 MAINTAINER_MODE_FALSE='#'
11818 else
11819 MAINTAINER_MODE_TRUE='#'
11820 MAINTAINER_MODE_FALSE=
11821 fi
11822
11823 MAINT=$MAINTAINER_MODE_TRUE
11824
11825
11826
11827 # Create a spec file, so that compile/link tests don't fail
11828 test -f libgfortran.spec || touch libgfortran.spec
11829 FCFLAGS="$FCFLAGS -L."
11830
11831 # We need gfortran to compile parts of the library
11832 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11833 #AC_PROG_FC(gfortran)
11834 case `echo $GFORTRAN` in
11835 -* | no* )
11836 FC=no ;;
11837 *)
11838 set dummy $GFORTRAN; ac_word=$2
11839 if test -x "$ac_word"; then
11840 FC="$GFORTRAN"
11841 else
11842 FC=no
11843 fi ;;
11844 esac
11845 ac_ext=${ac_fc_srcext-f}
11846 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11847 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11848 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11849 if test -n "$ac_tool_prefix"; then
11850 for ac_prog in gfortran
11851 do
11852 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11853 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_FC+:} false; then :
11857 $as_echo_n "(cached) " >&6
11858 else
11859 if test -n "$FC"; then
11860 ac_cv_prog_FC="$FC" # Let the user override the test.
11861 else
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11864 do
11865 IFS=$as_save_IFS
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11871 break 2
11872 fi
11873 done
11874 done
11875 IFS=$as_save_IFS
11876
11877 fi
11878 fi
11879 FC=$ac_cv_prog_FC
11880 if test -n "$FC"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11882 $as_echo "$FC" >&6; }
11883 else
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11886 fi
11887
11888
11889 test -n "$FC" && break
11890 done
11891 fi
11892 if test -z "$FC"; then
11893 ac_ct_FC=$FC
11894 for ac_prog in gfortran
11895 do
11896 # Extract the first word of "$ac_prog", so it can be a program name with args.
11897 set dummy $ac_prog; ac_word=$2
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11899 $as_echo_n "checking for $ac_word... " >&6; }
11900 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 if test -n "$ac_ct_FC"; then
11904 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11905 else
11906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11907 for as_dir in $PATH
11908 do
11909 IFS=$as_save_IFS
11910 test -z "$as_dir" && as_dir=.
11911 for ac_exec_ext in '' $ac_executable_extensions; do
11912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11913 ac_cv_prog_ac_ct_FC="$ac_prog"
11914 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11915 break 2
11916 fi
11917 done
11918 done
11919 IFS=$as_save_IFS
11920
11921 fi
11922 fi
11923 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11924 if test -n "$ac_ct_FC"; then
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11926 $as_echo "$ac_ct_FC" >&6; }
11927 else
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11929 $as_echo "no" >&6; }
11930 fi
11931
11932
11933 test -n "$ac_ct_FC" && break
11934 done
11935
11936 if test "x$ac_ct_FC" = x; then
11937 FC=""
11938 else
11939 case $cross_compiling:$ac_tool_warned in
11940 yes:)
11941 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11942 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11943 ac_tool_warned=yes ;;
11944 esac
11945 FC=$ac_ct_FC
11946 fi
11947 fi
11948
11949
11950 # Provide some information about the compiler.
11951 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11952 set X $ac_compile
11953 ac_compiler=$2
11954 for ac_option in --version -v -V -qversion; do
11955 { { ac_try="$ac_compiler $ac_option >&5"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959 esac
11960 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11961 $as_echo "$ac_try_echo"; } >&5
11962 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11963 ac_status=$?
11964 if test -s conftest.err; then
11965 sed '10a\
11966 ... rest of stderr output deleted ...
11967 10q' conftest.err >conftest.er1
11968 cat conftest.er1 >&5
11969 fi
11970 rm -f conftest.er1 conftest.err
11971 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11972 test $ac_status = 0; }
11973 done
11974 rm -f a.out
11975
11976 # If we don't use `.F' as extension, the preprocessor is not run on the
11977 # input file. (Note that this only needs to work for GNU compilers.)
11978 ac_save_ext=$ac_ext
11979 ac_ext=F
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11981 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11982 if ${ac_cv_fc_compiler_gnu+:} false; then :
11983 $as_echo_n "(cached) " >&6
11984 else
11985 cat > conftest.$ac_ext <<_ACEOF
11986 program main
11987 #ifndef __GNUC__
11988 choke me
11989 #endif
11990
11991 end
11992 _ACEOF
11993 if ac_fn_fc_try_compile "$LINENO"; then :
11994 ac_compiler_gnu=yes
11995 else
11996 ac_compiler_gnu=no
11997 fi
11998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11999 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12000
12001 fi
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12003 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12004 ac_ext=$ac_save_ext
12005 ac_test_FCFLAGS=${FCFLAGS+set}
12006 ac_save_FCFLAGS=$FCFLAGS
12007 FCFLAGS=
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12009 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12010 if ${ac_cv_prog_fc_g+:} false; then :
12011 $as_echo_n "(cached) " >&6
12012 else
12013 FCFLAGS=-g
12014 cat > conftest.$ac_ext <<_ACEOF
12015 program main
12016
12017 end
12018 _ACEOF
12019 if ac_fn_fc_try_compile "$LINENO"; then :
12020 ac_cv_prog_fc_g=yes
12021 else
12022 ac_cv_prog_fc_g=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12025
12026 fi
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12028 $as_echo "$ac_cv_prog_fc_g" >&6; }
12029 if test "$ac_test_FCFLAGS" = set; then
12030 FCFLAGS=$ac_save_FCFLAGS
12031 elif test $ac_cv_prog_fc_g = yes; then
12032 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12033 FCFLAGS="-g -O2"
12034 else
12035 FCFLAGS="-g"
12036 fi
12037 else
12038 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12039 FCFLAGS="-O2"
12040 else
12041 FCFLAGS=
12042 fi
12043 fi
12044
12045 if test $ac_compiler_gnu = yes; then
12046 GFC=yes
12047 else
12048 GFC=
12049 fi
12050 ac_ext=c
12051 ac_cpp='$CPP $CPPFLAGS'
12052 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12053 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12054 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12055
12056 ac_ext=${ac_fc_srcext-f}
12057 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12058 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12059 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12060
12061
12062 if test -z "$FC" || test "X$FC" = "Xno"; then
12063 _lt_disable_FC=yes
12064 fi
12065
12066 archive_cmds_need_lc_FC=no
12067 allow_undefined_flag_FC=
12068 always_export_symbols_FC=no
12069 archive_expsym_cmds_FC=
12070 export_dynamic_flag_spec_FC=
12071 hardcode_direct_FC=no
12072 hardcode_direct_absolute_FC=no
12073 hardcode_libdir_flag_spec_FC=
12074 hardcode_libdir_flag_spec_ld_FC=
12075 hardcode_libdir_separator_FC=
12076 hardcode_minus_L_FC=no
12077 hardcode_automatic_FC=no
12078 inherit_rpath_FC=no
12079 module_cmds_FC=
12080 module_expsym_cmds_FC=
12081 link_all_deplibs_FC=unknown
12082 old_archive_cmds_FC=$old_archive_cmds
12083 reload_flag_FC=$reload_flag
12084 reload_cmds_FC=$reload_cmds
12085 no_undefined_flag_FC=
12086 whole_archive_flag_spec_FC=
12087 enable_shared_with_static_runtimes_FC=no
12088
12089 # Source file extension for fc test sources.
12090 ac_ext=${ac_fc_srcext-f}
12091
12092 # Object file extension for compiled fc test sources.
12093 objext=o
12094 objext_FC=$objext
12095
12096 # No sense in running all these tests if we already determined that
12097 # the FC compiler isn't working. Some variables (like enable_shared)
12098 # are currently assumed to apply to all compilers on this platform,
12099 # and will be corrupted by setting them based on a non-working compiler.
12100 if test "$_lt_disable_FC" != yes; then
12101 # Code to be used in simple compile tests
12102 lt_simple_compile_test_code="\
12103 subroutine t
12104 return
12105 end
12106 "
12107
12108 # Code to be used in simple link tests
12109 lt_simple_link_test_code="\
12110 program t
12111 end
12112 "
12113
12114 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12115
12116
12117
12118
12119
12120
12121 # If no C compiler was specified, use CC.
12122 LTCC=${LTCC-"$CC"}
12123
12124 # If no C compiler flags were specified, use CFLAGS.
12125 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12126
12127 # Allow CC to be a program name with arguments.
12128 compiler=$CC
12129
12130
12131 # save warnings/boilerplate of simple test code
12132 ac_outfile=conftest.$ac_objext
12133 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12134 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12135 _lt_compiler_boilerplate=`cat conftest.err`
12136 $RM conftest*
12137
12138 ac_outfile=conftest.$ac_objext
12139 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12140 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12141 _lt_linker_boilerplate=`cat conftest.err`
12142 $RM -r conftest*
12143
12144
12145 # Allow CC to be a program name with arguments.
12146 lt_save_CC="$CC"
12147 lt_save_GCC=$GCC
12148 CC=${FC-"f95"}
12149 compiler=$CC
12150 GCC=$ac_cv_fc_compiler_gnu
12151
12152 compiler_FC=$CC
12153 for cc_temp in $compiler""; do
12154 case $cc_temp in
12155 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12156 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12157 \-*) ;;
12158 *) break;;
12159 esac
12160 done
12161 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12162
12163
12164 if test -n "$compiler"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12166 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12168 $as_echo "$can_build_shared" >&6; }
12169
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12171 $as_echo_n "checking whether to build shared libraries... " >&6; }
12172 test "$can_build_shared" = "no" && enable_shared=no
12173
12174 # On AIX, shared libraries and static libraries use the same namespace, and
12175 # are all built from PIC.
12176 case $host_os in
12177 aix3*)
12178 test "$enable_shared" = yes && enable_static=no
12179 if test -n "$RANLIB"; then
12180 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12181 postinstall_cmds='$RANLIB $lib'
12182 fi
12183 ;;
12184 aix[4-9]*)
12185 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12186 test "$enable_shared" = yes && enable_static=no
12187 fi
12188 ;;
12189 esac
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12191 $as_echo "$enable_shared" >&6; }
12192
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12194 $as_echo_n "checking whether to build static libraries... " >&6; }
12195 # Make sure either enable_shared or enable_static is yes.
12196 test "$enable_shared" = yes || enable_static=yes
12197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12198 $as_echo "$enable_static" >&6; }
12199
12200 GCC_FC="$ac_cv_fc_compiler_gnu"
12201 LD_FC="$LD"
12202
12203 ## CAVEAT EMPTOR:
12204 ## There is no encapsulation within the following macros, do not change
12205 ## the running order or otherwise move them around unless you know exactly
12206 ## what you are doing...
12207 # Dependencies to place before and after the object being linked:
12208 predep_objects_FC=
12209 postdep_objects_FC=
12210 predeps_FC=
12211 postdeps_FC=
12212 compiler_lib_search_path_FC=
12213
12214 cat > conftest.$ac_ext <<_LT_EOF
12215 subroutine foo
12216 implicit none
12217 integer a
12218 a=0
12219 return
12220 end
12221 _LT_EOF
12222
12223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12224 (eval $ac_compile) 2>&5
12225 ac_status=$?
12226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12227 test $ac_status = 0; }; then
12228 # Parse the compiler output and extract the necessary
12229 # objects, libraries and library flags.
12230
12231 # Sentinel used to keep track of whether or not we are before
12232 # the conftest object file.
12233 pre_test_object_deps_done=no
12234
12235 for p in `eval "$output_verbose_link_cmd"`; do
12236 case $p in
12237
12238 -L* | -R* | -l*)
12239 # Some compilers place space between "-{L,R}" and the path.
12240 # Remove the space.
12241 if test $p = "-L" ||
12242 test $p = "-R"; then
12243 prev=$p
12244 continue
12245 else
12246 prev=
12247 fi
12248
12249 if test "$pre_test_object_deps_done" = no; then
12250 case $p in
12251 -L* | -R*)
12252 # Internal compiler library paths should come after those
12253 # provided the user. The postdeps already come after the
12254 # user supplied libs so there is no need to process them.
12255 if test -z "$compiler_lib_search_path_FC"; then
12256 compiler_lib_search_path_FC="${prev}${p}"
12257 else
12258 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12259 fi
12260 ;;
12261 # The "-l" case would never come before the object being
12262 # linked, so don't bother handling this case.
12263 esac
12264 else
12265 if test -z "$postdeps_FC"; then
12266 postdeps_FC="${prev}${p}"
12267 else
12268 postdeps_FC="${postdeps_FC} ${prev}${p}"
12269 fi
12270 fi
12271 ;;
12272
12273 *.$objext)
12274 # This assumes that the test object file only shows up
12275 # once in the compiler output.
12276 if test "$p" = "conftest.$objext"; then
12277 pre_test_object_deps_done=yes
12278 continue
12279 fi
12280
12281 if test "$pre_test_object_deps_done" = no; then
12282 if test -z "$predep_objects_FC"; then
12283 predep_objects_FC="$p"
12284 else
12285 predep_objects_FC="$predep_objects_FC $p"
12286 fi
12287 else
12288 if test -z "$postdep_objects_FC"; then
12289 postdep_objects_FC="$p"
12290 else
12291 postdep_objects_FC="$postdep_objects_FC $p"
12292 fi
12293 fi
12294 ;;
12295
12296 *) ;; # Ignore the rest.
12297
12298 esac
12299 done
12300
12301 # Clean up.
12302 rm -f a.out a.exe
12303 else
12304 echo "libtool.m4: error: problem compiling FC test program"
12305 fi
12306
12307 $RM -f confest.$objext
12308
12309 # PORTME: override above test on systems where it is broken
12310
12311
12312 case " $postdeps_FC " in
12313 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12314 esac
12315 compiler_lib_search_dirs_FC=
12316 if test -n "${compiler_lib_search_path_FC}"; then
12317 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12318 fi
12319
12320
12321
12322
12323
12324
12325
12326
12327
12328
12329
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350 lt_prog_compiler_wl_FC=
12351 lt_prog_compiler_pic_FC=
12352 lt_prog_compiler_static_FC=
12353
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12355 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12356
12357 if test "$GCC" = yes; then
12358 lt_prog_compiler_wl_FC='-Wl,'
12359 lt_prog_compiler_static_FC='-static'
12360
12361 case $host_os in
12362 aix*)
12363 # All AIX code is PIC.
12364 if test "$host_cpu" = ia64; then
12365 # AIX 5 now supports IA64 processor
12366 lt_prog_compiler_static_FC='-Bstatic'
12367 fi
12368 lt_prog_compiler_pic_FC='-fPIC'
12369 ;;
12370
12371 amigaos*)
12372 case $host_cpu in
12373 powerpc)
12374 # see comment about AmigaOS4 .so support
12375 lt_prog_compiler_pic_FC='-fPIC'
12376 ;;
12377 m68k)
12378 # FIXME: we need at least 68020 code to build shared libraries, but
12379 # adding the `-m68020' flag to GCC prevents building anything better,
12380 # like `-m68040'.
12381 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12382 ;;
12383 esac
12384 ;;
12385
12386 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12387 # PIC is the default for these OSes.
12388 ;;
12389
12390 mingw* | cygwin* | pw32* | os2* | cegcc*)
12391 # This hack is so that the source file can tell whether it is being
12392 # built for inclusion in a dll (and should export symbols for example).
12393 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12394 # (--disable-auto-import) libraries
12395 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12396 ;;
12397
12398 darwin* | rhapsody*)
12399 # PIC is the default on this platform
12400 # Common symbols not allowed in MH_DYLIB files
12401 lt_prog_compiler_pic_FC='-fno-common'
12402 ;;
12403
12404 haiku*)
12405 # PIC is the default for Haiku.
12406 # The "-static" flag exists, but is broken.
12407 lt_prog_compiler_static_FC=
12408 ;;
12409
12410 hpux*)
12411 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12412 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12413 # sets the default TLS model and affects inlining.
12414 case $host_cpu in
12415 hppa*64*)
12416 # +Z the default
12417 ;;
12418 *)
12419 lt_prog_compiler_pic_FC='-fPIC'
12420 ;;
12421 esac
12422 ;;
12423
12424 interix[3-9]*)
12425 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12426 # Instead, we relocate shared libraries at runtime.
12427 ;;
12428
12429 msdosdjgpp*)
12430 # Just because we use GCC doesn't mean we suddenly get shared libraries
12431 # on systems that don't support them.
12432 lt_prog_compiler_can_build_shared_FC=no
12433 enable_shared=no
12434 ;;
12435
12436 *nto* | *qnx*)
12437 # QNX uses GNU C++, but need to define -shared option too, otherwise
12438 # it will coredump.
12439 lt_prog_compiler_pic_FC='-fPIC -shared'
12440 ;;
12441
12442 sysv4*MP*)
12443 if test -d /usr/nec; then
12444 lt_prog_compiler_pic_FC=-Kconform_pic
12445 fi
12446 ;;
12447
12448 *)
12449 lt_prog_compiler_pic_FC='-fPIC'
12450 ;;
12451 esac
12452
12453 case $cc_basename in
12454 nvcc*) # Cuda Compiler Driver 2.2
12455 lt_prog_compiler_wl_FC='-Xlinker '
12456 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12457 ;;
12458 esac
12459 else
12460 # PORTME Check for flag to pass linker flags through the system compiler.
12461 case $host_os in
12462 aix*)
12463 lt_prog_compiler_wl_FC='-Wl,'
12464 if test "$host_cpu" = ia64; then
12465 # AIX 5 now supports IA64 processor
12466 lt_prog_compiler_static_FC='-Bstatic'
12467 else
12468 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12469 fi
12470 ;;
12471
12472 mingw* | cygwin* | pw32* | os2* | cegcc*)
12473 # This hack is so that the source file can tell whether it is being
12474 # built for inclusion in a dll (and should export symbols for example).
12475 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12476 ;;
12477
12478 hpux9* | hpux10* | hpux11*)
12479 lt_prog_compiler_wl_FC='-Wl,'
12480 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12481 # not for PA HP-UX.
12482 case $host_cpu in
12483 hppa*64*|ia64*)
12484 # +Z the default
12485 ;;
12486 *)
12487 lt_prog_compiler_pic_FC='+Z'
12488 ;;
12489 esac
12490 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12491 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12492 ;;
12493
12494 irix5* | irix6* | nonstopux*)
12495 lt_prog_compiler_wl_FC='-Wl,'
12496 # PIC (with -KPIC) is the default.
12497 lt_prog_compiler_static_FC='-non_shared'
12498 ;;
12499
12500 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12501 case $cc_basename in
12502 # old Intel for x86_64 which still supported -KPIC.
12503 ecc*)
12504 lt_prog_compiler_wl_FC='-Wl,'
12505 lt_prog_compiler_pic_FC='-KPIC'
12506 lt_prog_compiler_static_FC='-static'
12507 ;;
12508 # icc used to be incompatible with GCC.
12509 # ICC 10 doesn't accept -KPIC any more.
12510 icc* | ifort*)
12511 lt_prog_compiler_wl_FC='-Wl,'
12512 lt_prog_compiler_pic_FC='-fPIC'
12513 lt_prog_compiler_static_FC='-static'
12514 ;;
12515 # Lahey Fortran 8.1.
12516 lf95*)
12517 lt_prog_compiler_wl_FC='-Wl,'
12518 lt_prog_compiler_pic_FC='--shared'
12519 lt_prog_compiler_static_FC='--static'
12520 ;;
12521 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12522 # Portland Group compilers (*not* the Pentium gcc compiler,
12523 # which looks to be a dead project)
12524 lt_prog_compiler_wl_FC='-Wl,'
12525 lt_prog_compiler_pic_FC='-fpic'
12526 lt_prog_compiler_static_FC='-Bstatic'
12527 ;;
12528 ccc*)
12529 lt_prog_compiler_wl_FC='-Wl,'
12530 # All Alpha code is PIC.
12531 lt_prog_compiler_static_FC='-non_shared'
12532 ;;
12533 xl* | bgxl* | bgf* | mpixl*)
12534 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12535 lt_prog_compiler_wl_FC='-Wl,'
12536 lt_prog_compiler_pic_FC='-qpic'
12537 lt_prog_compiler_static_FC='-qstaticlink'
12538 ;;
12539 *)
12540 case `$CC -V 2>&1 | sed 5q` in
12541 *Sun\ F* | *Sun*Fortran*)
12542 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12543 lt_prog_compiler_pic_FC='-KPIC'
12544 lt_prog_compiler_static_FC='-Bstatic'
12545 lt_prog_compiler_wl_FC=''
12546 ;;
12547 *Sun\ C*)
12548 # Sun C 5.9
12549 lt_prog_compiler_pic_FC='-KPIC'
12550 lt_prog_compiler_static_FC='-Bstatic'
12551 lt_prog_compiler_wl_FC='-Wl,'
12552 ;;
12553 esac
12554 ;;
12555 esac
12556 ;;
12557
12558 newsos6)
12559 lt_prog_compiler_pic_FC='-KPIC'
12560 lt_prog_compiler_static_FC='-Bstatic'
12561 ;;
12562
12563 *nto* | *qnx*)
12564 # QNX uses GNU C++, but need to define -shared option too, otherwise
12565 # it will coredump.
12566 lt_prog_compiler_pic_FC='-fPIC -shared'
12567 ;;
12568
12569 osf3* | osf4* | osf5*)
12570 lt_prog_compiler_wl_FC='-Wl,'
12571 # All OSF/1 code is PIC.
12572 lt_prog_compiler_static_FC='-non_shared'
12573 ;;
12574
12575 rdos*)
12576 lt_prog_compiler_static_FC='-non_shared'
12577 ;;
12578
12579 solaris*)
12580 lt_prog_compiler_pic_FC='-KPIC'
12581 lt_prog_compiler_static_FC='-Bstatic'
12582 case $cc_basename in
12583 f77* | f90* | f95*)
12584 lt_prog_compiler_wl_FC='-Qoption ld ';;
12585 *)
12586 lt_prog_compiler_wl_FC='-Wl,';;
12587 esac
12588 ;;
12589
12590 sunos4*)
12591 lt_prog_compiler_wl_FC='-Qoption ld '
12592 lt_prog_compiler_pic_FC='-PIC'
12593 lt_prog_compiler_static_FC='-Bstatic'
12594 ;;
12595
12596 sysv4 | sysv4.2uw2* | sysv4.3*)
12597 lt_prog_compiler_wl_FC='-Wl,'
12598 lt_prog_compiler_pic_FC='-KPIC'
12599 lt_prog_compiler_static_FC='-Bstatic'
12600 ;;
12601
12602 sysv4*MP*)
12603 if test -d /usr/nec ;then
12604 lt_prog_compiler_pic_FC='-Kconform_pic'
12605 lt_prog_compiler_static_FC='-Bstatic'
12606 fi
12607 ;;
12608
12609 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12610 lt_prog_compiler_wl_FC='-Wl,'
12611 lt_prog_compiler_pic_FC='-KPIC'
12612 lt_prog_compiler_static_FC='-Bstatic'
12613 ;;
12614
12615 unicos*)
12616 lt_prog_compiler_wl_FC='-Wl,'
12617 lt_prog_compiler_can_build_shared_FC=no
12618 ;;
12619
12620 uts4*)
12621 lt_prog_compiler_pic_FC='-pic'
12622 lt_prog_compiler_static_FC='-Bstatic'
12623 ;;
12624
12625 *)
12626 lt_prog_compiler_can_build_shared_FC=no
12627 ;;
12628 esac
12629 fi
12630
12631 case $host_os in
12632 # For platforms which do not support PIC, -DPIC is meaningless:
12633 *djgpp*)
12634 lt_prog_compiler_pic_FC=
12635 ;;
12636 *)
12637 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12638 ;;
12639 esac
12640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12641 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12642
12643
12644
12645 #
12646 # Check to make sure the PIC flag actually works.
12647 #
12648 if test -n "$lt_prog_compiler_pic_FC"; then
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12650 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12651 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12652 $as_echo_n "(cached) " >&6
12653 else
12654 lt_cv_prog_compiler_pic_works_FC=no
12655 ac_outfile=conftest.$ac_objext
12656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12657 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12658 # Insert the option either (1) after the last *FLAGS variable, or
12659 # (2) before a word containing "conftest.", or (3) at the end.
12660 # Note that $ac_compile itself does not contain backslashes and begins
12661 # with a dollar sign (not a hyphen), so the echo should work correctly.
12662 # The option is referenced via a variable to avoid confusing sed.
12663 lt_compile=`echo "$ac_compile" | $SED \
12664 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12665 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12666 -e 's:$: $lt_compiler_flag:'`
12667 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12668 (eval "$lt_compile" 2>conftest.err)
12669 ac_status=$?
12670 cat conftest.err >&5
12671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12672 if (exit $ac_status) && test -s "$ac_outfile"; then
12673 # The compiler can only warn and ignore the option if not recognized
12674 # So say no if there are warnings other than the usual output.
12675 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12676 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12677 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12678 lt_cv_prog_compiler_pic_works_FC=yes
12679 fi
12680 fi
12681 $RM conftest*
12682
12683 fi
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12685 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12686
12687 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12688 case $lt_prog_compiler_pic_FC in
12689 "" | " "*) ;;
12690 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12691 esac
12692 else
12693 lt_prog_compiler_pic_FC=
12694 lt_prog_compiler_can_build_shared_FC=no
12695 fi
12696
12697 fi
12698
12699
12700
12701 #
12702 # Check to make sure the static flag actually works.
12703 #
12704 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12706 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12707 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 lt_cv_prog_compiler_static_works_FC=no
12711 save_LDFLAGS="$LDFLAGS"
12712 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12715 # The linker can only warn and ignore the option if not recognized
12716 # So say no if there are warnings
12717 if test -s conftest.err; then
12718 # Append any errors to the config.log.
12719 cat conftest.err 1>&5
12720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12722 if diff conftest.exp conftest.er2 >/dev/null; then
12723 lt_cv_prog_compiler_static_works_FC=yes
12724 fi
12725 else
12726 lt_cv_prog_compiler_static_works_FC=yes
12727 fi
12728 fi
12729 $RM -r conftest*
12730 LDFLAGS="$save_LDFLAGS"
12731
12732 fi
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12734 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12735
12736 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12737 :
12738 else
12739 lt_prog_compiler_static_FC=
12740 fi
12741
12742
12743
12744
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12746 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12747 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12748 $as_echo_n "(cached) " >&6
12749 else
12750 lt_cv_prog_compiler_c_o_FC=no
12751 $RM -r conftest 2>/dev/null
12752 mkdir conftest
12753 cd conftest
12754 mkdir out
12755 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12756
12757 lt_compiler_flag="-o out/conftest2.$ac_objext"
12758 # Insert the option either (1) after the last *FLAGS variable, or
12759 # (2) before a word containing "conftest.", or (3) at the end.
12760 # Note that $ac_compile itself does not contain backslashes and begins
12761 # with a dollar sign (not a hyphen), so the echo should work correctly.
12762 lt_compile=`echo "$ac_compile" | $SED \
12763 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12764 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12765 -e 's:$: $lt_compiler_flag:'`
12766 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12767 (eval "$lt_compile" 2>out/conftest.err)
12768 ac_status=$?
12769 cat out/conftest.err >&5
12770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12772 then
12773 # The compiler can only warn and ignore the option if not recognized
12774 # So say no if there are warnings
12775 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12776 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12777 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12778 lt_cv_prog_compiler_c_o_FC=yes
12779 fi
12780 fi
12781 chmod u+w . 2>&5
12782 $RM conftest*
12783 # SGI C++ compiler will create directory out/ii_files/ for
12784 # template instantiation
12785 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12786 $RM out/* && rmdir out
12787 cd ..
12788 $RM -r conftest
12789 $RM conftest*
12790
12791 fi
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12793 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12794
12795
12796
12797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12798 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12799 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12800 $as_echo_n "(cached) " >&6
12801 else
12802 lt_cv_prog_compiler_c_o_FC=no
12803 $RM -r conftest 2>/dev/null
12804 mkdir conftest
12805 cd conftest
12806 mkdir out
12807 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12808
12809 lt_compiler_flag="-o out/conftest2.$ac_objext"
12810 # Insert the option either (1) after the last *FLAGS variable, or
12811 # (2) before a word containing "conftest.", or (3) at the end.
12812 # Note that $ac_compile itself does not contain backslashes and begins
12813 # with a dollar sign (not a hyphen), so the echo should work correctly.
12814 lt_compile=`echo "$ac_compile" | $SED \
12815 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12816 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12817 -e 's:$: $lt_compiler_flag:'`
12818 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12819 (eval "$lt_compile" 2>out/conftest.err)
12820 ac_status=$?
12821 cat out/conftest.err >&5
12822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12823 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12824 then
12825 # The compiler can only warn and ignore the option if not recognized
12826 # So say no if there are warnings
12827 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12828 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12829 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12830 lt_cv_prog_compiler_c_o_FC=yes
12831 fi
12832 fi
12833 chmod u+w . 2>&5
12834 $RM conftest*
12835 # SGI C++ compiler will create directory out/ii_files/ for
12836 # template instantiation
12837 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12838 $RM out/* && rmdir out
12839 cd ..
12840 $RM -r conftest
12841 $RM conftest*
12842
12843 fi
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12845 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12846
12847
12848
12849
12850 hard_links="nottested"
12851 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12852 # do not overwrite the value of need_locks provided by the user
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12854 $as_echo_n "checking if we can lock with hard links... " >&6; }
12855 hard_links=yes
12856 $RM conftest*
12857 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12858 touch conftest.a
12859 ln conftest.a conftest.b 2>&5 || hard_links=no
12860 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12862 $as_echo "$hard_links" >&6; }
12863 if test "$hard_links" = no; then
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12865 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12866 need_locks=warn
12867 fi
12868 else
12869 need_locks=no
12870 fi
12871
12872
12873
12874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12875 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12876
12877 runpath_var=
12878 allow_undefined_flag_FC=
12879 always_export_symbols_FC=no
12880 archive_cmds_FC=
12881 archive_expsym_cmds_FC=
12882 compiler_needs_object_FC=no
12883 enable_shared_with_static_runtimes_FC=no
12884 export_dynamic_flag_spec_FC=
12885 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12886 hardcode_automatic_FC=no
12887 hardcode_direct_FC=no
12888 hardcode_direct_absolute_FC=no
12889 hardcode_libdir_flag_spec_FC=
12890 hardcode_libdir_flag_spec_ld_FC=
12891 hardcode_libdir_separator_FC=
12892 hardcode_minus_L_FC=no
12893 hardcode_shlibpath_var_FC=unsupported
12894 inherit_rpath_FC=no
12895 link_all_deplibs_FC=unknown
12896 module_cmds_FC=
12897 module_expsym_cmds_FC=
12898 old_archive_from_new_cmds_FC=
12899 old_archive_from_expsyms_cmds_FC=
12900 thread_safe_flag_spec_FC=
12901 whole_archive_flag_spec_FC=
12902 # include_expsyms should be a list of space-separated symbols to be *always*
12903 # included in the symbol list
12904 include_expsyms_FC=
12905 # exclude_expsyms can be an extended regexp of symbols to exclude
12906 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12907 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12908 # as well as any symbol that contains `d'.
12909 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12910 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12911 # platforms (ab)use it in PIC code, but their linkers get confused if
12912 # the symbol is explicitly referenced. Since portable code cannot
12913 # rely on this symbol name, it's probably fine to never include it in
12914 # preloaded symbol tables.
12915 # Exclude shared library initialization/finalization symbols.
12916 extract_expsyms_cmds=
12917
12918 case $host_os in
12919 cygwin* | mingw* | pw32* | cegcc*)
12920 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12921 # When not using gcc, we currently assume that we are using
12922 # Microsoft Visual C++.
12923 if test "$GCC" != yes; then
12924 with_gnu_ld=no
12925 fi
12926 ;;
12927 interix*)
12928 # we just hope/assume this is gcc and not c89 (= MSVC++)
12929 with_gnu_ld=yes
12930 ;;
12931 openbsd*)
12932 with_gnu_ld=no
12933 ;;
12934 esac
12935
12936 ld_shlibs_FC=yes
12937
12938 # On some targets, GNU ld is compatible enough with the native linker
12939 # that we're better off using the native interface for both.
12940 lt_use_gnu_ld_interface=no
12941 if test "$with_gnu_ld" = yes; then
12942 case $host_os in
12943 aix*)
12944 # The AIX port of GNU ld has always aspired to compatibility
12945 # with the native linker. However, as the warning in the GNU ld
12946 # block says, versions before 2.19.5* couldn't really create working
12947 # shared libraries, regardless of the interface used.
12948 case `$LD -v 2>&1` in
12949 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12950 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12951 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12952 *)
12953 lt_use_gnu_ld_interface=yes
12954 ;;
12955 esac
12956 ;;
12957 *)
12958 lt_use_gnu_ld_interface=yes
12959 ;;
12960 esac
12961 fi
12962
12963 if test "$lt_use_gnu_ld_interface" = yes; then
12964 # If archive_cmds runs LD, not CC, wlarc should be empty
12965 wlarc='${wl}'
12966
12967 # Set some defaults for GNU ld with shared library support. These
12968 # are reset later if shared libraries are not supported. Putting them
12969 # here allows them to be overridden if necessary.
12970 runpath_var=LD_RUN_PATH
12971 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12972 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12973 # ancient GNU ld didn't support --whole-archive et. al.
12974 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12975 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12976 else
12977 whole_archive_flag_spec_FC=
12978 fi
12979 supports_anon_versioning=no
12980 case `$LD -v 2>&1` in
12981 *GNU\ gold*) supports_anon_versioning=yes ;;
12982 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12983 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12984 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12985 *\ 2.11.*) ;; # other 2.11 versions
12986 *) supports_anon_versioning=yes ;;
12987 esac
12988
12989 # See if GNU ld supports shared libraries.
12990 case $host_os in
12991 aix[3-9]*)
12992 # On AIX/PPC, the GNU linker is very broken
12993 if test "$host_cpu" != ia64; then
12994 ld_shlibs_FC=no
12995 cat <<_LT_EOF 1>&2
12996
12997 *** Warning: the GNU linker, at least up to release 2.19, is reported
12998 *** to be unable to reliably create shared libraries on AIX.
12999 *** Therefore, libtool is disabling shared libraries support. If you
13000 *** really care for shared libraries, you may want to install binutils
13001 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13002 *** You will then need to restart the configuration process.
13003
13004 _LT_EOF
13005 fi
13006 ;;
13007
13008 amigaos*)
13009 case $host_cpu in
13010 powerpc)
13011 # see comment about AmigaOS4 .so support
13012 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13013 archive_expsym_cmds_FC=''
13014 ;;
13015 m68k)
13016 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)'
13017 hardcode_libdir_flag_spec_FC='-L$libdir'
13018 hardcode_minus_L_FC=yes
13019 ;;
13020 esac
13021 ;;
13022
13023 beos*)
13024 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13025 allow_undefined_flag_FC=unsupported
13026 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13027 # support --undefined. This deserves some investigation. FIXME
13028 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13029 else
13030 ld_shlibs_FC=no
13031 fi
13032 ;;
13033
13034 cygwin* | mingw* | pw32* | cegcc*)
13035 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13036 # as there is no search path for DLLs.
13037 hardcode_libdir_flag_spec_FC='-L$libdir'
13038 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13039 allow_undefined_flag_FC=unsupported
13040 always_export_symbols_FC=no
13041 enable_shared_with_static_runtimes_FC=yes
13042 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13043
13044 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13045 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13046 # If the export-symbols file already is a .def file (1st line
13047 # is EXPORTS), use it as is; otherwise, prepend...
13048 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13049 cp $export_symbols $output_objdir/$soname.def;
13050 else
13051 echo EXPORTS > $output_objdir/$soname.def;
13052 cat $export_symbols >> $output_objdir/$soname.def;
13053 fi~
13054 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13055 else
13056 ld_shlibs_FC=no
13057 fi
13058 ;;
13059
13060 haiku*)
13061 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13062 link_all_deplibs_FC=yes
13063 ;;
13064
13065 interix[3-9]*)
13066 hardcode_direct_FC=no
13067 hardcode_shlibpath_var_FC=no
13068 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13069 export_dynamic_flag_spec_FC='${wl}-E'
13070 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13071 # Instead, shared libraries are loaded at an image base (0x10000000 by
13072 # default) and relocated if they conflict, which is a slow very memory
13073 # consuming and fragmenting process. To avoid this, we pick a random,
13074 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13075 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13076 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'
13077 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'
13078 ;;
13079
13080 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
13081 tmp_diet=no
13082 if test "$host_os" = linux-dietlibc; then
13083 case $cc_basename in
13084 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13085 esac
13086 fi
13087 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13088 && test "$tmp_diet" = no
13089 then
13090 tmp_addflag=' $pic_flag'
13091 tmp_sharedflag='-shared'
13092 case $cc_basename,$host_cpu in
13093 pgcc*) # Portland Group C compiler
13094 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'
13095 tmp_addflag=' $pic_flag'
13096 ;;
13097 pgf77* | pgf90* | pgf95* | pgfortran*)
13098 # Portland Group f77 and f90 compilers
13099 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'
13100 tmp_addflag=' $pic_flag -Mnomain' ;;
13101 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13102 tmp_addflag=' -i_dynamic' ;;
13103 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13104 tmp_addflag=' -i_dynamic -nofor_main' ;;
13105 ifc* | ifort*) # Intel Fortran compiler
13106 tmp_addflag=' -nofor_main' ;;
13107 lf95*) # Lahey Fortran 8.1
13108 whole_archive_flag_spec_FC=
13109 tmp_sharedflag='--shared' ;;
13110 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13111 tmp_sharedflag='-qmkshrobj'
13112 tmp_addflag= ;;
13113 nvcc*) # Cuda Compiler Driver 2.2
13114 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'
13115 compiler_needs_object_FC=yes
13116 ;;
13117 esac
13118 case `$CC -V 2>&1 | sed 5q` in
13119 *Sun\ C*) # Sun C 5.9
13120 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'
13121 compiler_needs_object_FC=yes
13122 tmp_sharedflag='-G' ;;
13123 *Sun\ F*) # Sun Fortran 8.3
13124 tmp_sharedflag='-G' ;;
13125 esac
13126 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13127
13128 if test "x$supports_anon_versioning" = xyes; then
13129 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13130 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13131 echo "local: *; };" >> $output_objdir/$libname.ver~
13132 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13133 fi
13134
13135 case $cc_basename in
13136 xlf* | bgf* | bgxlf* | mpixlf*)
13137 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13138 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13139 hardcode_libdir_flag_spec_FC=
13140 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13141 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13142 if test "x$supports_anon_versioning" = xyes; then
13143 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13144 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13145 echo "local: *; };" >> $output_objdir/$libname.ver~
13146 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13147 fi
13148 ;;
13149 esac
13150 else
13151 ld_shlibs_FC=no
13152 fi
13153 ;;
13154
13155 netbsd*)
13156 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13157 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13158 wlarc=
13159 else
13160 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13161 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13162 fi
13163 ;;
13164
13165 solaris*)
13166 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13167 ld_shlibs_FC=no
13168 cat <<_LT_EOF 1>&2
13169
13170 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13171 *** create shared libraries on Solaris systems. Therefore, libtool
13172 *** is disabling shared libraries support. We urge you to upgrade GNU
13173 *** binutils to release 2.9.1 or newer. Another option is to modify
13174 *** your PATH or compiler configuration so that the native linker is
13175 *** used, and then restart.
13176
13177 _LT_EOF
13178 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13179 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13180 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13181 else
13182 ld_shlibs_FC=no
13183 fi
13184 ;;
13185
13186 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13187 case `$LD -v 2>&1` in
13188 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13189 ld_shlibs_FC=no
13190 cat <<_LT_EOF 1>&2
13191
13192 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13193 *** reliably create shared libraries on SCO systems. Therefore, libtool
13194 *** is disabling shared libraries support. We urge you to upgrade GNU
13195 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13196 *** your PATH or compiler configuration so that the native linker is
13197 *** used, and then restart.
13198
13199 _LT_EOF
13200 ;;
13201 *)
13202 # For security reasons, it is highly recommended that you always
13203 # use absolute paths for naming shared libraries, and exclude the
13204 # DT_RUNPATH tag from executables and libraries. But doing so
13205 # requires that you compile everything twice, which is a pain.
13206 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13207 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13208 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13209 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13210 else
13211 ld_shlibs_FC=no
13212 fi
13213 ;;
13214 esac
13215 ;;
13216
13217 sunos4*)
13218 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13219 wlarc=
13220 hardcode_direct_FC=yes
13221 hardcode_shlibpath_var_FC=no
13222 ;;
13223
13224 *)
13225 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13226 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13227 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13228 else
13229 ld_shlibs_FC=no
13230 fi
13231 ;;
13232 esac
13233
13234 if test "$ld_shlibs_FC" = no; then
13235 runpath_var=
13236 hardcode_libdir_flag_spec_FC=
13237 export_dynamic_flag_spec_FC=
13238 whole_archive_flag_spec_FC=
13239 fi
13240 else
13241 # PORTME fill in a description of your system's linker (not GNU ld)
13242 case $host_os in
13243 aix3*)
13244 allow_undefined_flag_FC=unsupported
13245 always_export_symbols_FC=yes
13246 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'
13247 # Note: this linker hardcodes the directories in LIBPATH if there
13248 # are no directories specified by -L.
13249 hardcode_minus_L_FC=yes
13250 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13251 # Neither direct hardcoding nor static linking is supported with a
13252 # broken collect2.
13253 hardcode_direct_FC=unsupported
13254 fi
13255 ;;
13256
13257 aix[4-9]*)
13258 if test "$host_cpu" = ia64; then
13259 # On IA64, the linker does run time linking by default, so we don't
13260 # have to do anything special.
13261 aix_use_runtimelinking=no
13262 exp_sym_flag='-Bexport'
13263 no_entry_flag=""
13264 else
13265 # If we're using GNU nm, then we don't want the "-C" option.
13266 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13267 # Also, AIX nm treats weak defined symbols like other global
13268 # defined symbols, whereas GNU nm marks them as "W".
13269 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13270 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'
13271 else
13272 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'
13273 fi
13274 aix_use_runtimelinking=no
13275
13276 # Test if we are trying to use run time linking or normal
13277 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13278 # need to do runtime linking.
13279 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13280 for ld_flag in $LDFLAGS; do
13281 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13282 aix_use_runtimelinking=yes
13283 break
13284 fi
13285 done
13286 ;;
13287 esac
13288
13289 exp_sym_flag='-bexport'
13290 no_entry_flag='-bnoentry'
13291 fi
13292
13293 # When large executables or shared objects are built, AIX ld can
13294 # have problems creating the table of contents. If linking a library
13295 # or program results in "error TOC overflow" add -mminimal-toc to
13296 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13297 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13298
13299 archive_cmds_FC=''
13300 hardcode_direct_FC=yes
13301 hardcode_direct_absolute_FC=yes
13302 hardcode_libdir_separator_FC=':'
13303 link_all_deplibs_FC=yes
13304 file_list_spec_FC='${wl}-f,'
13305
13306 if test "$GCC" = yes; then
13307 case $host_os in aix4.[012]|aix4.[012].*)
13308 # We only want to do this on AIX 4.2 and lower, the check
13309 # below for broken collect2 doesn't work under 4.3+
13310 collect2name=`${CC} -print-prog-name=collect2`
13311 if test -f "$collect2name" &&
13312 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13313 then
13314 # We have reworked collect2
13315 :
13316 else
13317 # We have old collect2
13318 hardcode_direct_FC=unsupported
13319 # It fails to find uninstalled libraries when the uninstalled
13320 # path is not listed in the libpath. Setting hardcode_minus_L
13321 # to unsupported forces relinking
13322 hardcode_minus_L_FC=yes
13323 hardcode_libdir_flag_spec_FC='-L$libdir'
13324 hardcode_libdir_separator_FC=
13325 fi
13326 ;;
13327 esac
13328 shared_flag='-shared'
13329 if test "$aix_use_runtimelinking" = yes; then
13330 shared_flag="$shared_flag "'${wl}-G'
13331 fi
13332 else
13333 # not using gcc
13334 if test "$host_cpu" = ia64; then
13335 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13336 # chokes on -Wl,-G. The following line is correct:
13337 shared_flag='-G'
13338 else
13339 if test "$aix_use_runtimelinking" = yes; then
13340 shared_flag='${wl}-G'
13341 else
13342 shared_flag='${wl}-bM:SRE'
13343 fi
13344 fi
13345 fi
13346
13347 export_dynamic_flag_spec_FC='${wl}-bexpall'
13348 # It seems that -bexpall does not export symbols beginning with
13349 # underscore (_), so it is better to generate a list of symbols to export.
13350 always_export_symbols_FC=yes
13351 if test "$aix_use_runtimelinking" = yes; then
13352 # Warning - without using the other runtime loading flags (-brtl),
13353 # -berok will link without error, but may produce a broken library.
13354 allow_undefined_flag_FC='-berok'
13355 # Determine the default libpath from the value encoded in an
13356 # empty executable.
13357 cat > conftest.$ac_ext <<_ACEOF
13358 program main
13359
13360 end
13361 _ACEOF
13362 if ac_fn_fc_try_link "$LINENO"; then :
13363
13364 lt_aix_libpath_sed='
13365 /Import File Strings/,/^$/ {
13366 /^0/ {
13367 s/^0 *\(.*\)$/\1/
13368 p
13369 }
13370 }'
13371 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13372 # Check for a 64-bit object if we didn't find anything.
13373 if test -z "$aix_libpath"; then
13374 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13375 fi
13376 fi
13377 rm -f core conftest.err conftest.$ac_objext \
13378 conftest$ac_exeext conftest.$ac_ext
13379 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13380
13381 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13382 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"
13383 else
13384 if test "$host_cpu" = ia64; then
13385 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13386 allow_undefined_flag_FC="-z nodefs"
13387 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"
13388 else
13389 # Determine the default libpath from the value encoded in an
13390 # empty executable.
13391 cat > conftest.$ac_ext <<_ACEOF
13392 program main
13393
13394 end
13395 _ACEOF
13396 if ac_fn_fc_try_link "$LINENO"; then :
13397
13398 lt_aix_libpath_sed='
13399 /Import File Strings/,/^$/ {
13400 /^0/ {
13401 s/^0 *\(.*\)$/\1/
13402 p
13403 }
13404 }'
13405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13406 # Check for a 64-bit object if we didn't find anything.
13407 if test -z "$aix_libpath"; then
13408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409 fi
13410 fi
13411 rm -f core conftest.err conftest.$ac_objext \
13412 conftest$ac_exeext conftest.$ac_ext
13413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13414
13415 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13416 # Warning - without using the other run time loading flags,
13417 # -berok will link without error, but may produce a broken library.
13418 no_undefined_flag_FC=' ${wl}-bernotok'
13419 allow_undefined_flag_FC=' ${wl}-berok'
13420 if test "$with_gnu_ld" = yes; then
13421 # We only use this code for GNU lds that support --whole-archive.
13422 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13423 else
13424 # Exported symbols can be pulled into shared objects from archives
13425 whole_archive_flag_spec_FC='$convenience'
13426 fi
13427 archive_cmds_need_lc_FC=yes
13428 # This is similar to how AIX traditionally builds its shared libraries.
13429 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'
13430 fi
13431 fi
13432 ;;
13433
13434 amigaos*)
13435 case $host_cpu in
13436 powerpc)
13437 # see comment about AmigaOS4 .so support
13438 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13439 archive_expsym_cmds_FC=''
13440 ;;
13441 m68k)
13442 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)'
13443 hardcode_libdir_flag_spec_FC='-L$libdir'
13444 hardcode_minus_L_FC=yes
13445 ;;
13446 esac
13447 ;;
13448
13449 bsdi[45]*)
13450 export_dynamic_flag_spec_FC=-rdynamic
13451 ;;
13452
13453 cygwin* | mingw* | pw32* | cegcc*)
13454 # When not using gcc, we currently assume that we are using
13455 # Microsoft Visual C++.
13456 # hardcode_libdir_flag_spec is actually meaningless, as there is
13457 # no search path for DLLs.
13458 hardcode_libdir_flag_spec_FC=' '
13459 allow_undefined_flag_FC=unsupported
13460 # Tell ltmain to make .lib files, not .a files.
13461 libext=lib
13462 # Tell ltmain to make .dll files, not .so files.
13463 shrext_cmds=".dll"
13464 # FIXME: Setting linknames here is a bad hack.
13465 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13466 # The linker will automatically build a .lib file if we build a DLL.
13467 old_archive_from_new_cmds_FC='true'
13468 # FIXME: Should let the user specify the lib program.
13469 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13470 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13471 enable_shared_with_static_runtimes_FC=yes
13472 ;;
13473
13474 darwin* | rhapsody*)
13475
13476
13477 archive_cmds_need_lc_FC=no
13478 hardcode_direct_FC=no
13479 hardcode_automatic_FC=yes
13480 hardcode_shlibpath_var_FC=unsupported
13481 if test "$lt_cv_ld_force_load" = "yes"; then
13482 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\"`'
13483 else
13484 whole_archive_flag_spec_FC=''
13485 fi
13486 link_all_deplibs_FC=yes
13487 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13488 case $cc_basename in
13489 ifort*) _lt_dar_can_shared=yes ;;
13490 *) _lt_dar_can_shared=$GCC ;;
13491 esac
13492 if test "$_lt_dar_can_shared" = "yes"; then
13493 output_verbose_link_cmd=func_echo_all
13494 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}"
13495 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13496 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}"
13497 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}"
13498
13499 else
13500 ld_shlibs_FC=no
13501 fi
13502
13503 ;;
13504
13505 dgux*)
13506 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13507 hardcode_libdir_flag_spec_FC='-L$libdir'
13508 hardcode_shlibpath_var_FC=no
13509 ;;
13510
13511 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13512 # support. Future versions do this automatically, but an explicit c++rt0.o
13513 # does not break anything, and helps significantly (at the cost of a little
13514 # extra space).
13515 freebsd2.2*)
13516 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13517 hardcode_libdir_flag_spec_FC='-R$libdir'
13518 hardcode_direct_FC=yes
13519 hardcode_shlibpath_var_FC=no
13520 ;;
13521
13522 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13523 freebsd2.*)
13524 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13525 hardcode_direct_FC=yes
13526 hardcode_minus_L_FC=yes
13527 hardcode_shlibpath_var_FC=no
13528 ;;
13529
13530 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13531 freebsd* | dragonfly*)
13532 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13533 hardcode_libdir_flag_spec_FC='-R$libdir'
13534 hardcode_direct_FC=yes
13535 hardcode_shlibpath_var_FC=no
13536 ;;
13537
13538 hpux9*)
13539 if test "$GCC" = yes; then
13540 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'
13541 else
13542 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'
13543 fi
13544 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13545 hardcode_libdir_separator_FC=:
13546 hardcode_direct_FC=yes
13547
13548 # hardcode_minus_L: Not really in the search PATH,
13549 # but as the default location of the library.
13550 hardcode_minus_L_FC=yes
13551 export_dynamic_flag_spec_FC='${wl}-E'
13552 ;;
13553
13554 hpux10*)
13555 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13556 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13557 else
13558 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13559 fi
13560 if test "$with_gnu_ld" = no; then
13561 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13562 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13563 hardcode_libdir_separator_FC=:
13564 hardcode_direct_FC=yes
13565 hardcode_direct_absolute_FC=yes
13566 export_dynamic_flag_spec_FC='${wl}-E'
13567 # hardcode_minus_L: Not really in the search PATH,
13568 # but as the default location of the library.
13569 hardcode_minus_L_FC=yes
13570 fi
13571 ;;
13572
13573 hpux11*)
13574 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13575 case $host_cpu in
13576 hppa*64*)
13577 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13578 ;;
13579 ia64*)
13580 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13581 ;;
13582 *)
13583 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13584 ;;
13585 esac
13586 else
13587 case $host_cpu in
13588 hppa*64*)
13589 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13590 ;;
13591 ia64*)
13592 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13593 ;;
13594 *)
13595 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13596 ;;
13597 esac
13598 fi
13599 if test "$with_gnu_ld" = no; then
13600 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13601 hardcode_libdir_separator_FC=:
13602
13603 case $host_cpu in
13604 hppa*64*|ia64*)
13605 hardcode_direct_FC=no
13606 hardcode_shlibpath_var_FC=no
13607 ;;
13608 *)
13609 hardcode_direct_FC=yes
13610 hardcode_direct_absolute_FC=yes
13611 export_dynamic_flag_spec_FC='${wl}-E'
13612
13613 # hardcode_minus_L: Not really in the search PATH,
13614 # but as the default location of the library.
13615 hardcode_minus_L_FC=yes
13616 ;;
13617 esac
13618 fi
13619 ;;
13620
13621 irix5* | irix6* | nonstopux*)
13622 if test "$GCC" = yes; then
13623 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'
13624 # Try to use the -exported_symbol ld option, if it does not
13625 # work, assume that -exports_file does not work either and
13626 # implicitly export all symbols.
13627 save_LDFLAGS="$LDFLAGS"
13628 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13629 cat > conftest.$ac_ext <<_ACEOF
13630 int foo(void) {}
13631 _ACEOF
13632 if ac_fn_fc_try_link "$LINENO"; then :
13633 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'
13634
13635 fi
13636 rm -f core conftest.err conftest.$ac_objext \
13637 conftest$ac_exeext conftest.$ac_ext
13638 LDFLAGS="$save_LDFLAGS"
13639 else
13640 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'
13641 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'
13642 fi
13643 archive_cmds_need_lc_FC='no'
13644 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13645 hardcode_libdir_separator_FC=:
13646 inherit_rpath_FC=yes
13647 link_all_deplibs_FC=yes
13648 ;;
13649
13650 netbsd*)
13651 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13652 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13653 else
13654 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13655 fi
13656 hardcode_libdir_flag_spec_FC='-R$libdir'
13657 hardcode_direct_FC=yes
13658 hardcode_shlibpath_var_FC=no
13659 ;;
13660
13661 newsos6)
13662 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13663 hardcode_direct_FC=yes
13664 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13665 hardcode_libdir_separator_FC=:
13666 hardcode_shlibpath_var_FC=no
13667 ;;
13668
13669 *nto* | *qnx*)
13670 ;;
13671
13672 openbsd*)
13673 if test -f /usr/libexec/ld.so; then
13674 hardcode_direct_FC=yes
13675 hardcode_shlibpath_var_FC=no
13676 hardcode_direct_absolute_FC=yes
13677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13678 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13679 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13680 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13681 export_dynamic_flag_spec_FC='${wl}-E'
13682 else
13683 case $host_os in
13684 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13685 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13686 hardcode_libdir_flag_spec_FC='-R$libdir'
13687 ;;
13688 *)
13689 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13690 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13691 ;;
13692 esac
13693 fi
13694 else
13695 ld_shlibs_FC=no
13696 fi
13697 ;;
13698
13699 os2*)
13700 hardcode_libdir_flag_spec_FC='-L$libdir'
13701 hardcode_minus_L_FC=yes
13702 allow_undefined_flag_FC=unsupported
13703 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'
13704 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13705 ;;
13706
13707 osf3*)
13708 if test "$GCC" = yes; then
13709 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13710 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'
13711 else
13712 allow_undefined_flag_FC=' -expect_unresolved \*'
13713 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'
13714 fi
13715 archive_cmds_need_lc_FC='no'
13716 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13717 hardcode_libdir_separator_FC=:
13718 ;;
13719
13720 osf4* | osf5*) # as osf3* with the addition of -msym flag
13721 if test "$GCC" = yes; then
13722 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13723 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'
13724 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13725 else
13726 allow_undefined_flag_FC=' -expect_unresolved \*'
13727 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'
13728 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~
13729 $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'
13730
13731 # Both c and cxx compiler support -rpath directly
13732 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13733 fi
13734 archive_cmds_need_lc_FC='no'
13735 hardcode_libdir_separator_FC=:
13736 ;;
13737
13738 solaris*)
13739 no_undefined_flag_FC=' -z defs'
13740 if test "$GCC" = yes; then
13741 wlarc='${wl}'
13742 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13743 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13744 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13745 else
13746 case `$CC -V 2>&1` in
13747 *"Compilers 5.0"*)
13748 wlarc=''
13749 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13750 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13752 ;;
13753 *)
13754 wlarc='${wl}'
13755 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13756 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13757 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13758 ;;
13759 esac
13760 fi
13761 hardcode_libdir_flag_spec_FC='-R$libdir'
13762 hardcode_shlibpath_var_FC=no
13763 case $host_os in
13764 solaris2.[0-5] | solaris2.[0-5].*) ;;
13765 *)
13766 # The compiler driver will combine and reorder linker options,
13767 # but understands `-z linker_flag'. GCC discards it without `$wl',
13768 # but is careful enough not to reorder.
13769 # Supported since Solaris 2.6 (maybe 2.5.1?)
13770 if test "$GCC" = yes; then
13771 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13772 else
13773 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13774 fi
13775 ;;
13776 esac
13777 link_all_deplibs_FC=yes
13778 ;;
13779
13780 sunos4*)
13781 if test "x$host_vendor" = xsequent; then
13782 # Use $CC to link under sequent, because it throws in some extra .o
13783 # files that make .init and .fini sections work.
13784 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13785 else
13786 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13787 fi
13788 hardcode_libdir_flag_spec_FC='-L$libdir'
13789 hardcode_direct_FC=yes
13790 hardcode_minus_L_FC=yes
13791 hardcode_shlibpath_var_FC=no
13792 ;;
13793
13794 sysv4)
13795 case $host_vendor in
13796 sni)
13797 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13798 hardcode_direct_FC=yes # is this really true???
13799 ;;
13800 siemens)
13801 ## LD is ld it makes a PLAMLIB
13802 ## CC just makes a GrossModule.
13803 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13804 reload_cmds_FC='$CC -r -o $output$reload_objs'
13805 hardcode_direct_FC=no
13806 ;;
13807 motorola)
13808 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13809 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13810 ;;
13811 esac
13812 runpath_var='LD_RUN_PATH'
13813 hardcode_shlibpath_var_FC=no
13814 ;;
13815
13816 sysv4.3*)
13817 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13818 hardcode_shlibpath_var_FC=no
13819 export_dynamic_flag_spec_FC='-Bexport'
13820 ;;
13821
13822 sysv4*MP*)
13823 if test -d /usr/nec; then
13824 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13825 hardcode_shlibpath_var_FC=no
13826 runpath_var=LD_RUN_PATH
13827 hardcode_runpath_var=yes
13828 ld_shlibs_FC=yes
13829 fi
13830 ;;
13831
13832 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13833 no_undefined_flag_FC='${wl}-z,text'
13834 archive_cmds_need_lc_FC=no
13835 hardcode_shlibpath_var_FC=no
13836 runpath_var='LD_RUN_PATH'
13837
13838 if test "$GCC" = yes; then
13839 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13840 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13841 else
13842 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13843 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13844 fi
13845 ;;
13846
13847 sysv5* | sco3.2v5* | sco5v6*)
13848 # Note: We can NOT use -z defs as we might desire, because we do not
13849 # link with -lc, and that would cause any symbols used from libc to
13850 # always be unresolved, which means just about no library would
13851 # ever link correctly. If we're not using GNU ld we use -z text
13852 # though, which does catch some bad symbols but isn't as heavy-handed
13853 # as -z defs.
13854 no_undefined_flag_FC='${wl}-z,text'
13855 allow_undefined_flag_FC='${wl}-z,nodefs'
13856 archive_cmds_need_lc_FC=no
13857 hardcode_shlibpath_var_FC=no
13858 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13859 hardcode_libdir_separator_FC=':'
13860 link_all_deplibs_FC=yes
13861 export_dynamic_flag_spec_FC='${wl}-Bexport'
13862 runpath_var='LD_RUN_PATH'
13863
13864 if test "$GCC" = yes; then
13865 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13866 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13867 else
13868 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13869 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13870 fi
13871 ;;
13872
13873 uts4*)
13874 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13875 hardcode_libdir_flag_spec_FC='-L$libdir'
13876 hardcode_shlibpath_var_FC=no
13877 ;;
13878
13879 *)
13880 ld_shlibs_FC=no
13881 ;;
13882 esac
13883
13884 if test x$host_vendor = xsni; then
13885 case $host in
13886 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13887 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13888 ;;
13889 esac
13890 fi
13891 fi
13892
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13894 $as_echo "$ld_shlibs_FC" >&6; }
13895 test "$ld_shlibs_FC" = no && can_build_shared=no
13896
13897 with_gnu_ld_FC=$with_gnu_ld
13898
13899
13900
13901
13902
13903
13904 #
13905 # Do we need to explicitly link libc?
13906 #
13907 case "x$archive_cmds_need_lc_FC" in
13908 x|xyes)
13909 # Assume -lc should be added
13910 archive_cmds_need_lc_FC=yes
13911
13912 if test "$enable_shared" = yes && test "$GCC" = yes; then
13913 case $archive_cmds_FC in
13914 *'~'*)
13915 # FIXME: we may have to deal with multi-command sequences.
13916 ;;
13917 '$CC '*)
13918 # Test whether the compiler implicitly links with -lc since on some
13919 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13920 # to ld, don't add -lc before -lgcc.
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13922 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13923 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13924 $as_echo_n "(cached) " >&6
13925 else
13926 $RM conftest*
13927 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13928
13929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13930 (eval $ac_compile) 2>&5
13931 ac_status=$?
13932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13933 test $ac_status = 0; } 2>conftest.err; then
13934 soname=conftest
13935 lib=conftest
13936 libobjs=conftest.$ac_objext
13937 deplibs=
13938 wl=$lt_prog_compiler_wl_FC
13939 pic_flag=$lt_prog_compiler_pic_FC
13940 compiler_flags=-v
13941 linker_flags=-v
13942 verstring=
13943 output_objdir=.
13944 libname=conftest
13945 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13946 allow_undefined_flag_FC=
13947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13948 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13949 ac_status=$?
13950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13951 test $ac_status = 0; }
13952 then
13953 lt_cv_archive_cmds_need_lc_FC=no
13954 else
13955 lt_cv_archive_cmds_need_lc_FC=yes
13956 fi
13957 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13958 else
13959 cat conftest.err 1>&5
13960 fi
13961 $RM conftest*
13962
13963 fi
13964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13965 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13966 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13967 ;;
13968 esac
13969 fi
13970 ;;
13971 esac
13972
13973
13974
13975
13976
13977
13978
13979
13980
13981
13982
13983
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998
13999
14000
14001
14002
14003
14004
14005
14006
14007
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14037 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14038
14039 library_names_spec=
14040 libname_spec='lib$name'
14041 soname_spec=
14042 shrext_cmds=".so"
14043 postinstall_cmds=
14044 postuninstall_cmds=
14045 finish_cmds=
14046 finish_eval=
14047 shlibpath_var=
14048 shlibpath_overrides_runpath=unknown
14049 version_type=none
14050 dynamic_linker="$host_os ld.so"
14051 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14052 need_lib_prefix=unknown
14053 hardcode_into_libs=no
14054
14055 # when you set need_version to no, make sure it does not cause -set_version
14056 # flags to be left without arguments
14057 need_version=unknown
14058
14059 case $host_os in
14060 aix3*)
14061 version_type=linux
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14063 shlibpath_var=LIBPATH
14064
14065 # AIX 3 has no versioning support, so we append a major version to the name.
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 ;;
14068
14069 aix[4-9]*)
14070 version_type=linux
14071 need_lib_prefix=no
14072 need_version=no
14073 hardcode_into_libs=yes
14074 if test "$host_cpu" = ia64; then
14075 # AIX 5 supports IA64
14076 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14077 shlibpath_var=LD_LIBRARY_PATH
14078 else
14079 # With GCC up to 2.95.x, collect2 would create an import file
14080 # for dependence libraries. The import file would start with
14081 # the line `#! .'. This would cause the generated library to
14082 # depend on `.', always an invalid library. This was fixed in
14083 # development snapshots of GCC prior to 3.0.
14084 case $host_os in
14085 aix4 | aix4.[01] | aix4.[01].*)
14086 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14087 echo ' yes '
14088 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14089 :
14090 else
14091 can_build_shared=no
14092 fi
14093 ;;
14094 esac
14095 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14096 # soname into executable. Probably we can add versioning support to
14097 # collect2, so additional links can be useful in future.
14098 if test "$aix_use_runtimelinking" = yes; then
14099 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14100 # instead of lib<name>.a to let people know that these are not
14101 # typical AIX shared libraries.
14102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14103 else
14104 # We preserve .a as extension for shared libraries through AIX4.2
14105 # and later when we are not doing run time linking.
14106 library_names_spec='${libname}${release}.a $libname.a'
14107 soname_spec='${libname}${release}${shared_ext}$major'
14108 fi
14109 shlibpath_var=LIBPATH
14110 fi
14111 ;;
14112
14113 amigaos*)
14114 case $host_cpu in
14115 powerpc)
14116 # Since July 2007 AmigaOS4 officially supports .so libraries.
14117 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14119 ;;
14120 m68k)
14121 library_names_spec='$libname.ixlibrary $libname.a'
14122 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14123 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'
14124 ;;
14125 esac
14126 ;;
14127
14128 beos*)
14129 library_names_spec='${libname}${shared_ext}'
14130 dynamic_linker="$host_os ld.so"
14131 shlibpath_var=LIBRARY_PATH
14132 ;;
14133
14134 bsdi[45]*)
14135 version_type=linux
14136 need_version=no
14137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14138 soname_spec='${libname}${release}${shared_ext}$major'
14139 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14140 shlibpath_var=LD_LIBRARY_PATH
14141 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14142 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14143 # the default ld.so.conf also contains /usr/contrib/lib and
14144 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14145 # libtool to hard-code these into programs
14146 ;;
14147
14148 cygwin* | mingw* | pw32* | cegcc*)
14149 version_type=windows
14150 shrext_cmds=".dll"
14151 need_version=no
14152 need_lib_prefix=no
14153
14154 case $GCC,$host_os in
14155 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14156 library_names_spec='$libname.dll.a'
14157 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14158 postinstall_cmds='base_file=`basename \${file}`~
14159 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14160 dldir=$destdir/`dirname \$dlpath`~
14161 test -d \$dldir || mkdir -p \$dldir~
14162 $install_prog $dir/$dlname \$dldir/$dlname~
14163 chmod a+x \$dldir/$dlname~
14164 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14165 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14166 fi'
14167 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14168 dlpath=$dir/\$dldll~
14169 $RM \$dlpath'
14170 shlibpath_overrides_runpath=yes
14171
14172 case $host_os in
14173 cygwin*)
14174 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14175 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14176
14177 ;;
14178 mingw* | cegcc*)
14179 # MinGW DLLs use traditional 'lib' prefix
14180 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14181 ;;
14182 pw32*)
14183 # pw32 DLLs use 'pw' prefix rather than 'lib'
14184 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14185 ;;
14186 esac
14187 ;;
14188
14189 *)
14190 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14191 ;;
14192 esac
14193 dynamic_linker='Win32 ld.exe'
14194 # FIXME: first we should search . and the directory the executable is in
14195 shlibpath_var=PATH
14196 ;;
14197
14198 darwin* | rhapsody*)
14199 dynamic_linker="$host_os dyld"
14200 version_type=darwin
14201 need_lib_prefix=no
14202 need_version=no
14203 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14204 soname_spec='${libname}${release}${major}$shared_ext'
14205 shlibpath_overrides_runpath=yes
14206 shlibpath_var=DYLD_LIBRARY_PATH
14207 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14208
14209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14210 ;;
14211
14212 dgux*)
14213 version_type=linux
14214 need_lib_prefix=no
14215 need_version=no
14216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14217 soname_spec='${libname}${release}${shared_ext}$major'
14218 shlibpath_var=LD_LIBRARY_PATH
14219 ;;
14220
14221 freebsd* | dragonfly*)
14222 # DragonFly does not have aout. When/if they implement a new
14223 # versioning mechanism, adjust this.
14224 if test -x /usr/bin/objformat; then
14225 objformat=`/usr/bin/objformat`
14226 else
14227 case $host_os in
14228 freebsd[23].*) objformat=aout ;;
14229 *) objformat=elf ;;
14230 esac
14231 fi
14232 version_type=freebsd-$objformat
14233 case $version_type in
14234 freebsd-elf*)
14235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14236 need_version=no
14237 need_lib_prefix=no
14238 ;;
14239 freebsd-*)
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14241 need_version=yes
14242 ;;
14243 esac
14244 shlibpath_var=LD_LIBRARY_PATH
14245 case $host_os in
14246 freebsd2.*)
14247 shlibpath_overrides_runpath=yes
14248 ;;
14249 freebsd3.[01]* | freebsdelf3.[01]*)
14250 shlibpath_overrides_runpath=yes
14251 hardcode_into_libs=yes
14252 ;;
14253 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14254 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14255 shlibpath_overrides_runpath=no
14256 hardcode_into_libs=yes
14257 ;;
14258 *) # from 4.6 on, and DragonFly
14259 shlibpath_overrides_runpath=yes
14260 hardcode_into_libs=yes
14261 ;;
14262 esac
14263 ;;
14264
14265 gnu*)
14266 version_type=linux
14267 need_lib_prefix=no
14268 need_version=no
14269 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14270 soname_spec='${libname}${release}${shared_ext}$major'
14271 shlibpath_var=LD_LIBRARY_PATH
14272 hardcode_into_libs=yes
14273 ;;
14274
14275 haiku*)
14276 version_type=linux
14277 need_lib_prefix=no
14278 need_version=no
14279 dynamic_linker="$host_os runtime_loader"
14280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14281 soname_spec='${libname}${release}${shared_ext}$major'
14282 shlibpath_var=LIBRARY_PATH
14283 shlibpath_overrides_runpath=yes
14284 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14285 hardcode_into_libs=yes
14286 ;;
14287
14288 hpux9* | hpux10* | hpux11*)
14289 # Give a soname corresponding to the major version so that dld.sl refuses to
14290 # link against other versions.
14291 version_type=sunos
14292 need_lib_prefix=no
14293 need_version=no
14294 case $host_cpu in
14295 ia64*)
14296 shrext_cmds='.so'
14297 hardcode_into_libs=yes
14298 dynamic_linker="$host_os dld.so"
14299 shlibpath_var=LD_LIBRARY_PATH
14300 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14302 soname_spec='${libname}${release}${shared_ext}$major'
14303 if test "X$HPUX_IA64_MODE" = X32; then
14304 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14305 else
14306 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14307 fi
14308 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14309 ;;
14310 hppa*64*)
14311 shrext_cmds='.sl'
14312 hardcode_into_libs=yes
14313 dynamic_linker="$host_os dld.sl"
14314 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14317 soname_spec='${libname}${release}${shared_ext}$major'
14318 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14319 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14320 ;;
14321 *)
14322 shrext_cmds='.sl'
14323 dynamic_linker="$host_os dld.sl"
14324 shlibpath_var=SHLIB_PATH
14325 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14327 soname_spec='${libname}${release}${shared_ext}$major'
14328 ;;
14329 esac
14330 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14331 postinstall_cmds='chmod 555 $lib'
14332 # or fails outright, so override atomically:
14333 install_override_mode=555
14334 ;;
14335
14336 interix[3-9]*)
14337 version_type=linux
14338 need_lib_prefix=no
14339 need_version=no
14340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14341 soname_spec='${libname}${release}${shared_ext}$major'
14342 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14343 shlibpath_var=LD_LIBRARY_PATH
14344 shlibpath_overrides_runpath=no
14345 hardcode_into_libs=yes
14346 ;;
14347
14348 irix5* | irix6* | nonstopux*)
14349 case $host_os in
14350 nonstopux*) version_type=nonstopux ;;
14351 *)
14352 if test "$lt_cv_prog_gnu_ld" = yes; then
14353 version_type=linux
14354 else
14355 version_type=irix
14356 fi ;;
14357 esac
14358 need_lib_prefix=no
14359 need_version=no
14360 soname_spec='${libname}${release}${shared_ext}$major'
14361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14362 case $host_os in
14363 irix5* | nonstopux*)
14364 libsuff= shlibsuff=
14365 ;;
14366 *)
14367 case $LD in # libtool.m4 will add one of these switches to LD
14368 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14369 libsuff= shlibsuff= libmagic=32-bit;;
14370 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14371 libsuff=32 shlibsuff=N32 libmagic=N32;;
14372 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14373 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14374 *) libsuff= shlibsuff= libmagic=never-match;;
14375 esac
14376 ;;
14377 esac
14378 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14379 shlibpath_overrides_runpath=no
14380 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14381 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14382 hardcode_into_libs=yes
14383 ;;
14384
14385 # No shared lib support for Linux oldld, aout, or coff.
14386 linux*oldld* | linux*aout* | linux*coff*)
14387 dynamic_linker=no
14388 ;;
14389
14390 # This must be Linux ELF.
14391
14392 # uclinux* changes (here and below) have been submitted to the libtool
14393 # project, but have not yet been accepted: they are GCC-local changes
14394 # for the time being. (See
14395 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
14396 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
14397 version_type=linux
14398 need_lib_prefix=no
14399 need_version=no
14400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14401 soname_spec='${libname}${release}${shared_ext}$major'
14402 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14403 shlibpath_var=LD_LIBRARY_PATH
14404 shlibpath_overrides_runpath=no
14405
14406 # Some binutils ld are patched to set DT_RUNPATH
14407 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14408 $as_echo_n "(cached) " >&6
14409 else
14410 lt_cv_shlibpath_overrides_runpath=no
14411 save_LDFLAGS=$LDFLAGS
14412 save_libdir=$libdir
14413 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14414 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14415 cat > conftest.$ac_ext <<_ACEOF
14416 program main
14417
14418 end
14419 _ACEOF
14420 if ac_fn_fc_try_link "$LINENO"; then :
14421 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14422 lt_cv_shlibpath_overrides_runpath=yes
14423 fi
14424 fi
14425 rm -f core conftest.err conftest.$ac_objext \
14426 conftest$ac_exeext conftest.$ac_ext
14427 LDFLAGS=$save_LDFLAGS
14428 libdir=$save_libdir
14429
14430 fi
14431
14432 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14433
14434 # This implies no fast_install, which is unacceptable.
14435 # Some rework will be needed to allow for fast_install
14436 # before this can be enabled.
14437 hardcode_into_libs=yes
14438
14439 # Append ld.so.conf contents to the search path
14440 if test -f /etc/ld.so.conf; then
14441 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' ' '`
14442 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14443 fi
14444
14445 # We used to test for /lib/ld.so.1 and disable shared libraries on
14446 # powerpc, because MkLinux only supported shared libraries with the
14447 # GNU dynamic linker. Since this was broken with cross compilers,
14448 # most powerpc-linux boxes support dynamic linking these days and
14449 # people can always --disable-shared, the test was removed, and we
14450 # assume the GNU/Linux dynamic linker is in use.
14451 dynamic_linker='GNU/Linux ld.so'
14452 ;;
14453
14454 netbsd*)
14455 version_type=sunos
14456 need_lib_prefix=no
14457 need_version=no
14458 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14460 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14461 dynamic_linker='NetBSD (a.out) ld.so'
14462 else
14463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14464 soname_spec='${libname}${release}${shared_ext}$major'
14465 dynamic_linker='NetBSD ld.elf_so'
14466 fi
14467 shlibpath_var=LD_LIBRARY_PATH
14468 shlibpath_overrides_runpath=yes
14469 hardcode_into_libs=yes
14470 ;;
14471
14472 newsos6)
14473 version_type=linux
14474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14475 shlibpath_var=LD_LIBRARY_PATH
14476 shlibpath_overrides_runpath=yes
14477 ;;
14478
14479 *nto* | *qnx*)
14480 version_type=qnx
14481 need_lib_prefix=no
14482 need_version=no
14483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14484 soname_spec='${libname}${release}${shared_ext}$major'
14485 shlibpath_var=LD_LIBRARY_PATH
14486 shlibpath_overrides_runpath=no
14487 hardcode_into_libs=yes
14488 dynamic_linker='ldqnx.so'
14489 ;;
14490
14491 openbsd*)
14492 version_type=sunos
14493 sys_lib_dlsearch_path_spec="/usr/lib"
14494 need_lib_prefix=no
14495 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14496 case $host_os in
14497 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14498 *) need_version=no ;;
14499 esac
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14501 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14504 case $host_os in
14505 openbsd2.[89] | openbsd2.[89].*)
14506 shlibpath_overrides_runpath=no
14507 ;;
14508 *)
14509 shlibpath_overrides_runpath=yes
14510 ;;
14511 esac
14512 else
14513 shlibpath_overrides_runpath=yes
14514 fi
14515 ;;
14516
14517 os2*)
14518 libname_spec='$name'
14519 shrext_cmds=".dll"
14520 need_lib_prefix=no
14521 library_names_spec='$libname${shared_ext} $libname.a'
14522 dynamic_linker='OS/2 ld.exe'
14523 shlibpath_var=LIBPATH
14524 ;;
14525
14526 osf3* | osf4* | osf5*)
14527 version_type=osf
14528 need_lib_prefix=no
14529 need_version=no
14530 soname_spec='${libname}${release}${shared_ext}$major'
14531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14532 shlibpath_var=LD_LIBRARY_PATH
14533 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14534 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14535 ;;
14536
14537 rdos*)
14538 dynamic_linker=no
14539 ;;
14540
14541 solaris*)
14542 version_type=linux
14543 need_lib_prefix=no
14544 need_version=no
14545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14546 soname_spec='${libname}${release}${shared_ext}$major'
14547 shlibpath_var=LD_LIBRARY_PATH
14548 shlibpath_overrides_runpath=yes
14549 hardcode_into_libs=yes
14550 # ldd complains unless libraries are executable
14551 postinstall_cmds='chmod +x $lib'
14552 ;;
14553
14554 sunos4*)
14555 version_type=sunos
14556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14557 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14558 shlibpath_var=LD_LIBRARY_PATH
14559 shlibpath_overrides_runpath=yes
14560 if test "$with_gnu_ld" = yes; then
14561 need_lib_prefix=no
14562 fi
14563 need_version=yes
14564 ;;
14565
14566 sysv4 | sysv4.3*)
14567 version_type=linux
14568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14569 soname_spec='${libname}${release}${shared_ext}$major'
14570 shlibpath_var=LD_LIBRARY_PATH
14571 case $host_vendor in
14572 sni)
14573 shlibpath_overrides_runpath=no
14574 need_lib_prefix=no
14575 runpath_var=LD_RUN_PATH
14576 ;;
14577 siemens)
14578 need_lib_prefix=no
14579 ;;
14580 motorola)
14581 need_lib_prefix=no
14582 need_version=no
14583 shlibpath_overrides_runpath=no
14584 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14585 ;;
14586 esac
14587 ;;
14588
14589 sysv4*MP*)
14590 if test -d /usr/nec ;then
14591 version_type=linux
14592 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14593 soname_spec='$libname${shared_ext}.$major'
14594 shlibpath_var=LD_LIBRARY_PATH
14595 fi
14596 ;;
14597
14598 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14599 version_type=freebsd-elf
14600 need_lib_prefix=no
14601 need_version=no
14602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14603 soname_spec='${libname}${release}${shared_ext}$major'
14604 shlibpath_var=LD_LIBRARY_PATH
14605 shlibpath_overrides_runpath=yes
14606 hardcode_into_libs=yes
14607 if test "$with_gnu_ld" = yes; then
14608 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14609 else
14610 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14611 case $host_os in
14612 sco3.2v5*)
14613 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14614 ;;
14615 esac
14616 fi
14617 sys_lib_dlsearch_path_spec='/usr/lib'
14618 ;;
14619
14620 tpf*)
14621 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14622 version_type=linux
14623 need_lib_prefix=no
14624 need_version=no
14625 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14626 shlibpath_var=LD_LIBRARY_PATH
14627 shlibpath_overrides_runpath=no
14628 hardcode_into_libs=yes
14629 ;;
14630
14631 uts4*)
14632 version_type=linux
14633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14634 soname_spec='${libname}${release}${shared_ext}$major'
14635 shlibpath_var=LD_LIBRARY_PATH
14636 ;;
14637
14638 *)
14639 dynamic_linker=no
14640 ;;
14641 esac
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14643 $as_echo "$dynamic_linker" >&6; }
14644 test "$dynamic_linker" = no && can_build_shared=no
14645
14646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14647 if test "$GCC" = yes; then
14648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14649 fi
14650
14651 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14652 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14653 fi
14654 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14655 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14656 fi
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682
14683
14684
14685
14686
14687
14688
14689
14690
14691
14692
14693
14694
14695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14696 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14697 hardcode_action_FC=
14698 if test -n "$hardcode_libdir_flag_spec_FC" ||
14699 test -n "$runpath_var_FC" ||
14700 test "X$hardcode_automatic_FC" = "Xyes" ; then
14701
14702 # We can hardcode non-existent directories.
14703 if test "$hardcode_direct_FC" != no &&
14704 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14705 # have to relink, otherwise we might link with an installed library
14706 # when we should be linking with a yet-to-be-installed one
14707 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14708 test "$hardcode_minus_L_FC" != no; then
14709 # Linking always hardcodes the temporary library directory.
14710 hardcode_action_FC=relink
14711 else
14712 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14713 hardcode_action_FC=immediate
14714 fi
14715 else
14716 # We cannot hardcode anything, or else we can only hardcode existing
14717 # directories.
14718 hardcode_action_FC=unsupported
14719 fi
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14721 $as_echo "$hardcode_action_FC" >&6; }
14722
14723 if test "$hardcode_action_FC" = relink ||
14724 test "$inherit_rpath_FC" = yes; then
14725 # Fast installation is not supported
14726 enable_fast_install=no
14727 elif test "$shlibpath_overrides_runpath" = yes ||
14728 test "$enable_shared" = no; then
14729 # Fast installation is not necessary
14730 enable_fast_install=needless
14731 fi
14732
14733
14734
14735
14736
14737
14738
14739 fi # test -n "$compiler"
14740
14741 GCC=$lt_save_GCC
14742 CC="$lt_save_CC"
14743 fi # test "$_lt_disable_FC" != yes
14744
14745 ac_ext=c
14746 ac_cpp='$CPP $CPPFLAGS'
14747 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14748 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14749 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14750
14751
14752 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14753
14754 # For libtool versioning info, format is CURRENT:REVISION:AGE
14755 libtool_VERSION=1:0:0
14756
14757
14758 # Check header files.
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14760 $as_echo_n "checking for ANSI C header files... " >&6; }
14761 if ${ac_cv_header_stdc+:} false; then :
14762 $as_echo_n "(cached) " >&6
14763 else
14764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14765 /* end confdefs.h. */
14766 #include <stdlib.h>
14767 #include <stdarg.h>
14768 #include <string.h>
14769 #include <float.h>
14770
14771 int
14772 main ()
14773 {
14774
14775 ;
14776 return 0;
14777 }
14778 _ACEOF
14779 if ac_fn_c_try_compile "$LINENO"; then :
14780 ac_cv_header_stdc=yes
14781 else
14782 ac_cv_header_stdc=no
14783 fi
14784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14785
14786 if test $ac_cv_header_stdc = yes; then
14787 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14789 /* end confdefs.h. */
14790 #include <string.h>
14791
14792 _ACEOF
14793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14794 $EGREP "memchr" >/dev/null 2>&1; then :
14795
14796 else
14797 ac_cv_header_stdc=no
14798 fi
14799 rm -f conftest*
14800
14801 fi
14802
14803 if test $ac_cv_header_stdc = yes; then
14804 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14806 /* end confdefs.h. */
14807 #include <stdlib.h>
14808
14809 _ACEOF
14810 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14811 $EGREP "free" >/dev/null 2>&1; then :
14812
14813 else
14814 ac_cv_header_stdc=no
14815 fi
14816 rm -f conftest*
14817
14818 fi
14819
14820 if test $ac_cv_header_stdc = yes; then
14821 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14822 if test "$cross_compiling" = yes; then :
14823 :
14824 else
14825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14826 /* end confdefs.h. */
14827 #include <ctype.h>
14828 #include <stdlib.h>
14829 #if ((' ' & 0x0FF) == 0x020)
14830 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14831 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14832 #else
14833 # define ISLOWER(c) \
14834 (('a' <= (c) && (c) <= 'i') \
14835 || ('j' <= (c) && (c) <= 'r') \
14836 || ('s' <= (c) && (c) <= 'z'))
14837 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14838 #endif
14839
14840 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14841 int
14842 main ()
14843 {
14844 int i;
14845 for (i = 0; i < 256; i++)
14846 if (XOR (islower (i), ISLOWER (i))
14847 || toupper (i) != TOUPPER (i))
14848 return 2;
14849 return 0;
14850 }
14851 _ACEOF
14852 if ac_fn_c_try_run "$LINENO"; then :
14853
14854 else
14855 ac_cv_header_stdc=no
14856 fi
14857 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14858 conftest.$ac_objext conftest.beam conftest.$ac_ext
14859 fi
14860
14861 fi
14862 fi
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14864 $as_echo "$ac_cv_header_stdc" >&6; }
14865 if test $ac_cv_header_stdc = yes; then
14866
14867 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14868
14869 fi
14870
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14872 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14873 if ${ac_cv_header_time+:} false; then :
14874 $as_echo_n "(cached) " >&6
14875 else
14876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14877 /* end confdefs.h. */
14878 #include <sys/types.h>
14879 #include <sys/time.h>
14880 #include <time.h>
14881
14882 int
14883 main ()
14884 {
14885 if ((struct tm *) 0)
14886 return 0;
14887 ;
14888 return 0;
14889 }
14890 _ACEOF
14891 if ac_fn_c_try_compile "$LINENO"; then :
14892 ac_cv_header_time=yes
14893 else
14894 ac_cv_header_time=no
14895 fi
14896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14897 fi
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14899 $as_echo "$ac_cv_header_time" >&6; }
14900 if test $ac_cv_header_time = yes; then
14901
14902 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14903
14904 fi
14905
14906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14907 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14908 if ${gcc_cv_header_string+:} false; then :
14909 $as_echo_n "(cached) " >&6
14910 else
14911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14912 /* end confdefs.h. */
14913 #include <string.h>
14914 #include <strings.h>
14915 int
14916 main ()
14917 {
14918
14919 ;
14920 return 0;
14921 }
14922 _ACEOF
14923 if ac_fn_c_try_compile "$LINENO"; then :
14924 gcc_cv_header_string=yes
14925 else
14926 gcc_cv_header_string=no
14927 fi
14928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14929 fi
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14931 $as_echo "$gcc_cv_header_string" >&6; }
14932 if test $gcc_cv_header_string = yes; then
14933
14934 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14935
14936 fi
14937
14938 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14939 do :
14940 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14941 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14942 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14943 cat >>confdefs.h <<_ACEOF
14944 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14945 _ACEOF
14946
14947 fi
14948
14949 done
14950
14951
14952 XPCFLAGS=""
14953 case "$host" in
14954 *-*-rtems*)
14955 # RTEMS supports Pthreads, but the library is not available at GCC build time.
14956 ;;
14957 nvptx*-*-* | amdgcn*-*-*)
14958 # NVPTX does not support Pthreads, has its own code replacement.
14959 libgomp_use_pthreads=no
14960 # NVPTX is an accelerator-only target
14961 libgomp_offloaded_only=yes
14962 ;;
14963 *)
14964 # Check to see if -pthread or -lpthread is needed. Prefer the former.
14965 # In case the pthread.h system header is not found, this test will fail.
14966 CFLAGS="$CFLAGS -pthread"
14967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14968 /* end confdefs.h. */
14969 #include <pthread.h>
14970 void *g(void *d) { return NULL; }
14971 int
14972 main ()
14973 {
14974 pthread_t t; pthread_create(&t,NULL,g,NULL);
14975 ;
14976 return 0;
14977 }
14978 _ACEOF
14979 if ac_fn_c_try_link "$LINENO"; then :
14980 XPCFLAGS=" -Wc,-pthread"
14981 else
14982 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
14983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14984 /* end confdefs.h. */
14985 #include <pthread.h>
14986 void *g(void *d) { return NULL; }
14987 int
14988 main ()
14989 {
14990 pthread_t t; pthread_create(&t,NULL,g,NULL);
14991 ;
14992 return 0;
14993 }
14994 _ACEOF
14995 if ac_fn_c_try_link "$LINENO"; then :
14996
14997 else
14998 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
14999 fi
15000 rm -f core conftest.err conftest.$ac_objext \
15001 conftest$ac_exeext conftest.$ac_ext
15002 fi
15003 rm -f core conftest.err conftest.$ac_objext \
15004 conftest$ac_exeext conftest.$ac_ext
15005 esac
15006
15007 if test x$libgomp_use_pthreads != xno; then
15008
15009 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15010
15011 fi
15012
15013 if test x$libgomp_offloaded_only = xyes; then
15014
15015 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15016
15017 fi
15018
15019 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15020 #
15021 # Copyright (C) 2014-2020 Free Software Foundation, Inc.
15022 #
15023 # Contributed by Mentor Embedded.
15024 #
15025 # This file is part of the GNU Offloading and Multi Processing Library
15026 # (libgomp).
15027 #
15028 # Libgomp is free software; you can redistribute it and/or modify it
15029 # under the terms of the GNU General Public License as published by
15030 # the Free Software Foundation; either version 3, or (at your option)
15031 # any later version.
15032 #
15033 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15034 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15035 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15036 # more details.
15037 #
15038 # Under Section 7 of GPL version 3, you are granted additional
15039 # permissions described in the GCC Runtime Library Exception, version
15040 # 3.1, as published by the Free Software Foundation.
15041 #
15042 # You should have received a copy of the GNU General Public License and
15043 # a copy of the GCC Runtime Library Exception along with this program;
15044 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15045 # <http://www.gnu.org/licenses/>.
15046
15047 plugin_support=yes
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15049 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15050 if ${ac_cv_lib_dl_dlsym+:} false; then :
15051 $as_echo_n "(cached) " >&6
15052 else
15053 ac_check_lib_save_LIBS=$LIBS
15054 LIBS="-ldl $LIBS"
15055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15056 /* end confdefs.h. */
15057
15058 /* Override any GCC internal prototype to avoid an error.
15059 Use char because int might match the return type of a GCC
15060 builtin and then its argument prototype would still apply. */
15061 #ifdef __cplusplus
15062 extern "C"
15063 #endif
15064 char dlsym ();
15065 int
15066 main ()
15067 {
15068 return dlsym ();
15069 ;
15070 return 0;
15071 }
15072 _ACEOF
15073 if ac_fn_c_try_link "$LINENO"; then :
15074 ac_cv_lib_dl_dlsym=yes
15075 else
15076 ac_cv_lib_dl_dlsym=no
15077 fi
15078 rm -f core conftest.err conftest.$ac_objext \
15079 conftest$ac_exeext conftest.$ac_ext
15080 LIBS=$ac_check_lib_save_LIBS
15081 fi
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15083 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15084 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15085 cat >>confdefs.h <<_ACEOF
15086 #define HAVE_LIBDL 1
15087 _ACEOF
15088
15089 LIBS="-ldl $LIBS"
15090
15091 else
15092 plugin_support=no
15093 fi
15094
15095 if test x"$plugin_support" = xyes; then
15096
15097 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15098
15099 elif test "x${enable_offload_targets-no}" != xno; then
15100 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15101 fi
15102
15103
15104
15105 for ac_header in $ac_header_list
15106 do :
15107 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15108 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15109 "
15110 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15111 cat >>confdefs.h <<_ACEOF
15112 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15113 _ACEOF
15114
15115 fi
15116
15117 done
15118
15119
15120
15121
15122
15123
15124
15125 for ac_func in $ac_func_list
15126 do :
15127 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15128 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15129 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15130 cat >>confdefs.h <<_ACEOF
15131 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15132 _ACEOF
15133
15134 fi
15135 done
15136
15137
15138
15139
15140
15141
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151
15152 # Look for the CUDA driver package.
15153 CUDA_DRIVER_INCLUDE=
15154 CUDA_DRIVER_LIB=
15155
15156
15157 CUDA_DRIVER_CPPFLAGS=
15158 CUDA_DRIVER_LDFLAGS=
15159
15160 # Check whether --with-cuda-driver was given.
15161 if test "${with_cuda_driver+set}" = set; then :
15162 withval=$with_cuda_driver;
15163 fi
15164
15165
15166 # Check whether --with-cuda-driver-include was given.
15167 if test "${with_cuda_driver_include+set}" = set; then :
15168 withval=$with_cuda_driver_include;
15169 fi
15170
15171
15172 # Check whether --with-cuda-driver-lib was given.
15173 if test "${with_cuda_driver_lib+set}" = set; then :
15174 withval=$with_cuda_driver_lib;
15175 fi
15176
15177 case "x$with_cuda_driver" in
15178 x) ;;
15179 xno)
15180 CUDA_DRIVER_INCLUDE=no
15181 CUDA_DRIVER_LIB=no
15182 ;;
15183 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15184 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15185 ;;
15186 esac
15187 if test "x$with_cuda_driver_include" != x; then
15188 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15189 fi
15190 if test "x$with_cuda_driver_lib" != x; then
15191 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15192 fi
15193 if test "x$CUDA_DRIVER_INCLUDE" != x \
15194 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15195 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15196 fi
15197 if test "x$CUDA_DRIVER_LIB" != x \
15198 && test "x$CUDA_DRIVER_LIB" != xno; then
15199 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15200 fi
15201
15202 PLUGIN_NVPTX=0
15203 PLUGIN_NVPTX_CPPFLAGS=
15204 PLUGIN_NVPTX_LDFLAGS=
15205 PLUGIN_NVPTX_LIBS=
15206 PLUGIN_NVPTX_DYNAMIC=0
15207
15208
15209
15210
15211
15212 # Look for HSA run-time, its includes and libraries
15213
15214 HSA_RUNTIME_INCLUDE=
15215 HSA_RUNTIME_LIB=
15216
15217
15218 HSA_RUNTIME_CPPFLAGS=
15219 HSA_RUNTIME_LDFLAGS=
15220
15221
15222 # Check whether --with-hsa-runtime was given.
15223 if test "${with_hsa_runtime+set}" = set; then :
15224 withval=$with_hsa_runtime;
15225 fi
15226
15227
15228 # Check whether --with-hsa-runtime-include was given.
15229 if test "${with_hsa_runtime_include+set}" = set; then :
15230 withval=$with_hsa_runtime_include;
15231 fi
15232
15233
15234 # Check whether --with-hsa-runtime-lib was given.
15235 if test "${with_hsa_runtime_lib+set}" = set; then :
15236 withval=$with_hsa_runtime_lib;
15237 fi
15238
15239 if test "x$with_hsa_runtime" != x; then
15240 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15241 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15242 fi
15243 if test "x$with_hsa_runtime_include" != x; then
15244 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15245 fi
15246 if test "x$with_hsa_runtime_lib" != x; then
15247 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15248 fi
15249 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15250 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15251 fi
15252 if test "x$HSA_RUNTIME_LIB" != x; then
15253 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15254 fi
15255
15256 PLUGIN_HSA=0
15257 PLUGIN_HSA_CPPFLAGS=
15258 PLUGIN_HSA_LDFLAGS=
15259 PLUGIN_HSA_LIBS=
15260
15261
15262
15263
15264
15265 PLUGIN_GCN=0
15266 PLUGIN_GCN_CPPFLAGS=
15267 PLUGIN_GCN_LDFLAGS=
15268 PLUGIN_GCN_LIBS=
15269
15270
15271
15272
15273
15274 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15275 # plugins, and configure to find the corresponding offload compilers.
15276 # 'offload_plugins' and 'offload_targets' will be populated in the same order.
15277 offload_plugins=
15278 offload_targets=
15279
15280
15281 offload_additional_options=
15282 offload_additional_lib_paths=
15283
15284
15285 if test x"$enable_offload_targets" != x; then
15286 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15287 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15288 tgt=`echo $tgt | sed 's/=.*//'`
15289 tgt_plugin=
15290 case $tgt in
15291 *-intelmic-* | *-intelmicemul-*)
15292 tgt_plugin=intelmic
15293 ;;
15294 nvptx*)
15295 tgt_plugin=nvptx
15296 PLUGIN_NVPTX=$tgt
15297 if test "x$CUDA_DRIVER_LIB" != xno \
15298 && test "x$CUDA_DRIVER_LIB" != xno; then
15299 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15300 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15301 PLUGIN_NVPTX_LIBS='-lcuda'
15302
15303 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15304 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15305 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15306 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15307 PLUGIN_NVPTX_save_LIBS=$LIBS
15308 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15310 /* end confdefs.h. */
15311 #include "cuda.h"
15312 int
15313 main ()
15314 {
15315 CUresult r = cuCtxPushCurrent (NULL);
15316 ;
15317 return 0;
15318 }
15319 _ACEOF
15320 if ac_fn_c_try_link "$LINENO"; then :
15321 PLUGIN_NVPTX=1
15322 fi
15323 rm -f core conftest.err conftest.$ac_objext \
15324 conftest$ac_exeext conftest.$ac_ext
15325 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15326 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15327 LIBS=$PLUGIN_NVPTX_save_LIBS
15328 fi
15329 case $PLUGIN_NVPTX in
15330 nvptx*)
15331 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15332 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15333 && (test "x$CUDA_DRIVER_LIB" = x \
15334 || test "x$CUDA_DRIVER_LIB" = xno); then
15335 PLUGIN_NVPTX=1
15336 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15337 PLUGIN_NVPTX_LIBS='-ldl'
15338 PLUGIN_NVPTX_DYNAMIC=1
15339 else
15340 PLUGIN_NVPTX=0
15341 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15342 fi
15343 ;;
15344 esac
15345 ;;
15346 hsa*)
15347 case "${target}" in
15348 x86_64-*-*)
15349 case " ${CC} ${CFLAGS} " in
15350 *" -m32 "*|*" -mx32 "*)
15351 PLUGIN_HSA=0
15352 ;;
15353 *)
15354 tgt_plugin=hsa
15355 PLUGIN_HSA=$tgt
15356 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15357 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15358 PLUGIN_HSA_LIBS="-ldl"
15359
15360 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15361 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15362 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15363 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15364 PLUGIN_HSA_save_LIBS=$LIBS
15365 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15366
15367 PLUGIN_HSA=1
15368 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15369 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15370 LIBS=$PLUGIN_HSA_save_LIBS
15371 case $PLUGIN_HSA in
15372 hsa*)
15373 HSA_PLUGIN=0
15374 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15375 ;;
15376 esac
15377 ;;
15378 esac
15379 ;;
15380 *-*-*)
15381 PLUGIN_HSA=0
15382 ;;
15383 esac
15384 ;;
15385
15386 amdgcn*)
15387 case "${target}" in
15388 x86_64-*-*)
15389 case " ${CC} ${CFLAGS} " in
15390 *" -m32 "*|*" -mx32 "*)
15391 PLUGIN_GCN=0
15392 ;;
15393 *)
15394 tgt_plugin=gcn
15395 PLUGIN_GCN=$tgt
15396 PLUGIN_GCN_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15397 PLUGIN_GCN_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15398 PLUGIN_GCN_LIBS="-ldl"
15399 PLUGIN_GCN=1
15400 ;;
15401 esac
15402 ;;
15403 *-*-*)
15404 PLUGIN_GCN=0
15405 ;;
15406 esac
15407 ;;
15408 *)
15409 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15410 ;;
15411 esac
15412 if test x"$tgt_plugin" = x; then
15413 # Not configuring libgomp for this offload target if we're not building
15414 # the corresponding offload plugin.
15415 continue
15416 elif test x"$offload_plugins" = x; then
15417 offload_plugins=$tgt_plugin
15418 offload_targets=$tgt
15419 else
15420 offload_plugins=$offload_plugins,$tgt_plugin
15421 offload_targets=$offload_targets,$tgt
15422 fi
15423 # Configure additional search paths.
15424 if test "$tgt_plugin" = hsa; then
15425 # Offloading compilation is all handled by the target compiler.
15426 :
15427 elif test x"$tgt_dir" != x; then
15428 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15429 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15430 else
15431 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15432 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15433 fi
15434 done
15435 fi
15436
15437 cat >>confdefs.h <<_ACEOF
15438 #define OFFLOAD_PLUGINS "$offload_plugins"
15439 _ACEOF
15440
15441 if test $PLUGIN_NVPTX = 1; then
15442 PLUGIN_NVPTX_TRUE=
15443 PLUGIN_NVPTX_FALSE='#'
15444 else
15445 PLUGIN_NVPTX_TRUE='#'
15446 PLUGIN_NVPTX_FALSE=
15447 fi
15448
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15452 _ACEOF
15453
15454
15455 cat >>confdefs.h <<_ACEOF
15456 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15457 _ACEOF
15458
15459 if test $PLUGIN_HSA = 1; then
15460 PLUGIN_HSA_TRUE=
15461 PLUGIN_HSA_FALSE='#'
15462 else
15463 PLUGIN_HSA_TRUE='#'
15464 PLUGIN_HSA_FALSE=
15465 fi
15466
15467
15468 cat >>confdefs.h <<_ACEOF
15469 #define PLUGIN_HSA $PLUGIN_HSA
15470 _ACEOF
15471
15472 if test $PLUGIN_GCN = 1; then
15473 PLUGIN_GCN_TRUE=
15474 PLUGIN_GCN_FALSE='#'
15475 else
15476 PLUGIN_GCN_TRUE='#'
15477 PLUGIN_GCN_FALSE=
15478 fi
15479
15480
15481 cat >>confdefs.h <<_ACEOF
15482 #define PLUGIN_GCN $PLUGIN_GCN
15483 _ACEOF
15484
15485
15486 if test "$HSA_RUNTIME_LIB" != ""; then
15487 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15488 fi
15489
15490
15491 cat >>confdefs.h <<_ACEOF
15492 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15493 _ACEOF
15494
15495
15496
15497 # Check for functions needed.
15498 for ac_func in getloadavg clock_gettime strtoull
15499 do :
15500 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15501 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15502 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15503 cat >>confdefs.h <<_ACEOF
15504 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15505 _ACEOF
15506
15507 fi
15508 done
15509
15510 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15511 do :
15512 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15513 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15514 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15515 cat >>confdefs.h <<_ACEOF
15516 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15517 _ACEOF
15518
15519 fi
15520 done
15521
15522
15523 # Check for broken semaphore implementation on darwin.
15524 # sem_init returns: sem_init error: Function not implemented.
15525 case "$host" in
15526 *-darwin*)
15527
15528 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15529
15530 ;;
15531 esac
15532
15533 # RTEMS specific checks
15534 case "$host" in
15535 *-*-rtems*)
15536 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15537 "
15538 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15539
15540 cat >>confdefs.h <<_ACEOF
15541 #define HAVE_STRUCT__MUTEX_CONTROL 1
15542 _ACEOF
15543
15544
15545 fi
15546
15547 ;;
15548 esac
15549
15550 # Check whether --enable-linux-futex was given.
15551 if test "${enable_linux_futex+set}" = set; then :
15552 enableval=$enable_linux_futex;
15553 case "$enableval" in
15554 yes|no|default) ;;
15555 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15556 esac
15557
15558 else
15559 enable_linux_futex=default
15560 fi
15561
15562
15563 case "$target" in
15564 *-linux* | *-uclinux*)
15565 case "$enable_linux_futex" in
15566 default)
15567 # If headers don't have gettid/futex syscalls definition, then
15568 # default to no, otherwise there will be compile time failures.
15569 # Otherwise, default to yes. If we don't detect we are
15570 # compiled/linked against NPTL and not cross-compiling, check
15571 # if programs are run by default against NPTL and if not, issue
15572 # a warning.
15573 enable_linux_futex=no
15574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15575 /* end confdefs.h. */
15576 #include <sys/syscall.h>
15577 #include <unistd.h>
15578 int lk;
15579 int
15580 main ()
15581 {
15582 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15583 ;
15584 return 0;
15585 }
15586 _ACEOF
15587 if ac_fn_c_try_link "$LINENO"; then :
15588 save_LIBS="$LIBS"
15589 LIBS="-lpthread $LIBS"
15590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15591 /* end confdefs.h. */
15592 #ifndef _GNU_SOURCE
15593 #define _GNU_SOURCE 1
15594 #endif
15595 #include <pthread.h>
15596 pthread_t th; void *status;
15597 int
15598 main ()
15599 {
15600 pthread_tryjoin_np (th, &status);
15601 ;
15602 return 0;
15603 }
15604 _ACEOF
15605 if ac_fn_c_try_link "$LINENO"; then :
15606 enable_linux_futex=yes
15607 else
15608 if test x$cross_compiling = xno; then
15609 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15610 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15612 If so, please configure with --disable-linux-futex" >&5
15613 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15614 If so, please configure with --disable-linux-futex" >&2;}
15615 fi
15616 fi
15617 enable_linux_futex=yes
15618 fi
15619 rm -f core conftest.err conftest.$ac_objext \
15620 conftest$ac_exeext conftest.$ac_ext
15621 LIBS="$save_LIBS"
15622 fi
15623 rm -f core conftest.err conftest.$ac_objext \
15624 conftest$ac_exeext conftest.$ac_ext
15625 ;;
15626 yes)
15627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15628 /* end confdefs.h. */
15629 #include <sys/syscall.h>
15630 #include <unistd.h>
15631 int lk;
15632 int
15633 main ()
15634 {
15635 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15636 ;
15637 return 0;
15638 }
15639 _ACEOF
15640 if ac_fn_c_try_link "$LINENO"; then :
15641
15642 else
15643 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15644 fi
15645 rm -f core conftest.err conftest.$ac_objext \
15646 conftest$ac_exeext conftest.$ac_ext
15647 ;;
15648 esac
15649 ;;
15650 *)
15651 enable_linux_futex=no
15652 ;;
15653 esac
15654 if test x$enable_linux_futex = xyes; then
15655 :
15656 fi
15657
15658
15659 # Check for pthread_{,attr_}[sg]etaffinity_np.
15660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15661 /* end confdefs.h. */
15662 #define _GNU_SOURCE
15663 #include <pthread.h>
15664 int
15665 main ()
15666 {
15667 cpu_set_t cpuset;
15668 pthread_attr_t attr;
15669 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15670 if (CPU_ISSET (0, &cpuset))
15671 CPU_SET (1, &cpuset);
15672 else
15673 CPU_ZERO (&cpuset);
15674 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15675 pthread_attr_init (&attr);
15676 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15677 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15678 ;
15679 return 0;
15680 }
15681 _ACEOF
15682 if ac_fn_c_try_link "$LINENO"; then :
15683
15684 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15685
15686 fi
15687 rm -f core conftest.err conftest.$ac_objext \
15688 conftest$ac_exeext conftest.$ac_ext
15689
15690 # At least for glibc, clock_gettime is in librt. But don't pull that
15691 # in if it still doesn't give us the function we want.
15692 if test $ac_cv_func_clock_gettime = no; then
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
15694 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
15695 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
15696 $as_echo_n "(cached) " >&6
15697 else
15698 ac_check_lib_save_LIBS=$LIBS
15699 LIBS="-lrt $LIBS"
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15702
15703 /* Override any GCC internal prototype to avoid an error.
15704 Use char because int might match the return type of a GCC
15705 builtin and then its argument prototype would still apply. */
15706 #ifdef __cplusplus
15707 extern "C"
15708 #endif
15709 char clock_gettime ();
15710 int
15711 main ()
15712 {
15713 return clock_gettime ();
15714 ;
15715 return 0;
15716 }
15717 _ACEOF
15718 if ac_fn_c_try_link "$LINENO"; then :
15719 ac_cv_lib_rt_clock_gettime=yes
15720 else
15721 ac_cv_lib_rt_clock_gettime=no
15722 fi
15723 rm -f core conftest.err conftest.$ac_objext \
15724 conftest$ac_exeext conftest.$ac_ext
15725 LIBS=$ac_check_lib_save_LIBS
15726 fi
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
15728 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
15729 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
15730 LIBS="-lrt $LIBS"
15731
15732 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
15733
15734 fi
15735
15736 fi
15737
15738 # Check for uname.
15739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15740 /* end confdefs.h. */
15741 #include <string.h>
15742 #include <stdlib.h>
15743 #include <sys/utsname.h>
15744 int
15745 main ()
15746 {
15747 struct utsname buf;
15748 volatile size_t len = 0;
15749 if (!uname (buf))
15750 len = strlen (buf.nodename);
15751 ;
15752 return 0;
15753 }
15754 _ACEOF
15755 if ac_fn_c_try_compile "$LINENO"; then :
15756
15757 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
15758
15759 fi
15760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15761
15762 # Check for gethostname.
15763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15764 /* end confdefs.h. */
15765 #include <unistd.h>
15766 int
15767 main ()
15768 {
15769
15770 char buf[256];
15771 if (gethostname (buf, sizeof (buf) - 1) == 0)
15772 buf[255] = '\0';
15773
15774 ;
15775 return 0;
15776 }
15777 _ACEOF
15778 if ac_fn_c_try_compile "$LINENO"; then :
15779
15780 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
15781
15782 fi
15783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15784
15785 # Check for getpid.
15786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15787 /* end confdefs.h. */
15788 #include <unistd.h>
15789 int
15790 main ()
15791 {
15792 int pid = getpid ();
15793 ;
15794 return 0;
15795 }
15796 _ACEOF
15797 if ac_fn_c_try_compile "$LINENO"; then :
15798
15799 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
15800
15801 fi
15802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15803
15804 # See if we support thread-local storage.
15805
15806
15807 # Check whether --enable-tls was given.
15808 if test "${enable_tls+set}" = set; then :
15809 enableval=$enable_tls;
15810 case "$enableval" in
15811 yes|no) ;;
15812 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
15813 esac
15814
15815 else
15816 enable_tls=yes
15817 fi
15818
15819
15820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
15821 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
15822 if ${gcc_cv_have_tls+:} false; then :
15823 $as_echo_n "(cached) " >&6
15824 else
15825
15826 if test "$cross_compiling" = yes; then :
15827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15828 /* end confdefs.h. */
15829 __thread int a; int b; int main() { return a = b; }
15830 _ACEOF
15831 if ac_fn_c_try_link "$LINENO"; then :
15832 chktls_save_LDFLAGS="$LDFLAGS"
15833 case $host in
15834 *-*-linux* | -*-uclinuxfdpic*)
15835 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
15836 ;;
15837 esac
15838 chktls_save_CFLAGS="$CFLAGS"
15839 CFLAGS="-fPIC $CFLAGS"
15840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15841 /* end confdefs.h. */
15842 int f() { return 0; }
15843 _ACEOF
15844 if ac_fn_c_try_link "$LINENO"; then :
15845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15846 /* end confdefs.h. */
15847 __thread int a; int b; int f() { return a = b; }
15848 _ACEOF
15849 if ac_fn_c_try_link "$LINENO"; then :
15850 gcc_cv_have_tls=yes
15851 else
15852 gcc_cv_have_tls=no
15853 fi
15854 rm -f core conftest.err conftest.$ac_objext \
15855 conftest$ac_exeext conftest.$ac_ext
15856 else
15857 gcc_cv_have_tls=yes
15858 fi
15859 rm -f core conftest.err conftest.$ac_objext \
15860 conftest$ac_exeext conftest.$ac_ext
15861 CFLAGS="$chktls_save_CFLAGS"
15862 LDFLAGS="$chktls_save_LDFLAGS"
15863 else
15864 gcc_cv_have_tls=no
15865 fi
15866 rm -f core conftest.err conftest.$ac_objext \
15867 conftest$ac_exeext conftest.$ac_ext
15868
15869
15870 else
15871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15872 /* end confdefs.h. */
15873 __thread int a; int b; int main() { return a = b; }
15874 _ACEOF
15875 if ac_fn_c_try_run "$LINENO"; then :
15876 chktls_save_LDFLAGS="$LDFLAGS"
15877 LDFLAGS="-static $LDFLAGS"
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 int main() { return 0; }
15881 _ACEOF
15882 if ac_fn_c_try_link "$LINENO"; then :
15883 if test "$cross_compiling" = yes; then :
15884 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15885 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15886 as_fn_error $? "cannot run test program while cross compiling
15887 See \`config.log' for more details" "$LINENO" 5; }
15888 else
15889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15890 /* end confdefs.h. */
15891 __thread int a; int b; int main() { return a = b; }
15892 _ACEOF
15893 if ac_fn_c_try_run "$LINENO"; then :
15894 gcc_cv_have_tls=yes
15895 else
15896 gcc_cv_have_tls=no
15897 fi
15898 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15899 conftest.$ac_objext conftest.beam conftest.$ac_ext
15900 fi
15901
15902 else
15903 gcc_cv_have_tls=yes
15904 fi
15905 rm -f core conftest.err conftest.$ac_objext \
15906 conftest$ac_exeext conftest.$ac_ext
15907 LDFLAGS="$chktls_save_LDFLAGS"
15908 if test $gcc_cv_have_tls = yes; then
15909 chktls_save_CFLAGS="$CFLAGS"
15910 thread_CFLAGS=failed
15911 for flag in '' '-pthread' '-lpthread'; do
15912 CFLAGS="$flag $chktls_save_CFLAGS"
15913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15914 /* end confdefs.h. */
15915 #include <pthread.h>
15916 void *g(void *d) { return NULL; }
15917 int
15918 main ()
15919 {
15920 pthread_t t; pthread_create(&t,NULL,g,NULL);
15921 ;
15922 return 0;
15923 }
15924 _ACEOF
15925 if ac_fn_c_try_link "$LINENO"; then :
15926 thread_CFLAGS="$flag"
15927 fi
15928 rm -f core conftest.err conftest.$ac_objext \
15929 conftest$ac_exeext conftest.$ac_ext
15930 if test "X$thread_CFLAGS" != Xfailed; then
15931 break
15932 fi
15933 done
15934 CFLAGS="$chktls_save_CFLAGS"
15935 if test "X$thread_CFLAGS" != Xfailed; then
15936 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
15937 if test "$cross_compiling" = yes; then :
15938 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15939 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15940 as_fn_error $? "cannot run test program while cross compiling
15941 See \`config.log' for more details" "$LINENO" 5; }
15942 else
15943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15944 /* end confdefs.h. */
15945 #include <pthread.h>
15946 __thread int a;
15947 static int *volatile a_in_other_thread;
15948 static void *
15949 thread_func (void *arg)
15950 {
15951 a_in_other_thread = &a;
15952 return (void *)0;
15953 }
15954 int
15955 main ()
15956 {
15957 pthread_t thread;
15958 void *thread_retval;
15959 int *volatile a_in_main_thread;
15960 a_in_main_thread = &a;
15961 if (pthread_create (&thread, (pthread_attr_t *)0,
15962 thread_func, (void *)0))
15963 return 0;
15964 if (pthread_join (thread, &thread_retval))
15965 return 0;
15966 return (a_in_other_thread == a_in_main_thread);
15967 ;
15968 return 0;
15969 }
15970 _ACEOF
15971 if ac_fn_c_try_run "$LINENO"; then :
15972 gcc_cv_have_tls=yes
15973 else
15974 gcc_cv_have_tls=no
15975 fi
15976 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15977 conftest.$ac_objext conftest.beam conftest.$ac_ext
15978 fi
15979
15980 CFLAGS="$chktls_save_CFLAGS"
15981 fi
15982 fi
15983 else
15984 gcc_cv_have_tls=no
15985 fi
15986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15987 conftest.$ac_objext conftest.beam conftest.$ac_ext
15988 fi
15989
15990 fi
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
15992 $as_echo "$gcc_cv_have_tls" >&6; }
15993 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
15994
15995 $as_echo "#define HAVE_TLS 1" >>confdefs.h
15996
15997 fi
15998
15999 # See if we have emulated thread-local storage.
16000
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16002 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16003 if ${gcc_cv_use_emutls+:} false; then :
16004 $as_echo_n "(cached) " >&6
16005 else
16006
16007 gcc_cv_use_emutls=no
16008 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16009 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16010 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16011 (eval $ac_try) 2>&5
16012 ac_status=$?
16013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16014 test $ac_status = 0; }; }; then
16015 if grep __emutls_get_address conftest.s > /dev/null; then
16016 gcc_cv_use_emutls=yes
16017 fi
16018 fi
16019 rm -f conftest.*
16020
16021 fi
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16023 $as_echo "$gcc_cv_use_emutls" >&6; }
16024 if test "$gcc_cv_use_emutls" = "yes" ; then
16025
16026 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16027
16028 fi
16029
16030 # See what sort of export controls are available.
16031
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16033 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16034 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16035 $as_echo_n "(cached) " >&6
16036 else
16037
16038 save_CFLAGS="$CFLAGS"
16039 CFLAGS="$CFLAGS -Werror"
16040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16041 /* end confdefs.h. */
16042 void __attribute__((visibility("hidden"))) foo(void) { }
16043 int
16044 main ()
16045 {
16046
16047 ;
16048 return 0;
16049 }
16050 _ACEOF
16051 if ac_fn_c_try_compile "$LINENO"; then :
16052 libgomp_cv_have_attribute_visibility=yes
16053 else
16054 libgomp_cv_have_attribute_visibility=no
16055 fi
16056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16057 CFLAGS="$save_CFLAGS"
16058 fi
16059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16060 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16061 if test $libgomp_cv_have_attribute_visibility = yes; then
16062
16063 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16064
16065 fi
16066
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16068 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16069 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16070 $as_echo_n "(cached) " >&6
16071 else
16072
16073 save_CFLAGS="$CFLAGS"
16074 CFLAGS="$CFLAGS -Werror"
16075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16076 /* end confdefs.h. */
16077 void __attribute__((dllexport)) foo(void) { }
16078 int
16079 main ()
16080 {
16081
16082 ;
16083 return 0;
16084 }
16085 _ACEOF
16086 if ac_fn_c_try_compile "$LINENO"; then :
16087 libgomp_cv_have_attribute_dllexport=yes
16088 else
16089 libgomp_cv_have_attribute_dllexport=no
16090 fi
16091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16092 CFLAGS="$save_CFLAGS"
16093 fi
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16095 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16096 if test $libgomp_cv_have_attribute_dllexport = yes; then
16097
16098 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16099
16100 fi
16101
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16103 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16104 if ${libgomp_cv_have_attribute_alias+:} false; then :
16105 $as_echo_n "(cached) " >&6
16106 else
16107
16108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16109 /* end confdefs.h. */
16110
16111 void foo(void) { }
16112 extern void bar(void) __attribute__((alias("foo")));
16113 int
16114 main ()
16115 {
16116 bar();
16117 ;
16118 return 0;
16119 }
16120 _ACEOF
16121 if ac_fn_c_try_link "$LINENO"; then :
16122 libgomp_cv_have_attribute_alias=yes
16123 else
16124 libgomp_cv_have_attribute_alias=no
16125 fi
16126 rm -f core conftest.err conftest.$ac_objext \
16127 conftest$ac_exeext conftest.$ac_ext
16128 fi
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16130 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16131 if test $libgomp_cv_have_attribute_alias = yes; then
16132
16133 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16134
16135 fi
16136
16137
16138 # Check whether --with-gnu-ld was given.
16139 if test "${with_gnu_ld+set}" = set; then :
16140 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16141 else
16142 with_gnu_ld=no
16143 fi
16144
16145 ac_prog=ld
16146 if test "$GCC" = yes; then
16147 # Check if gcc -print-prog-name=ld gives a path.
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16149 $as_echo_n "checking for ld used by $CC... " >&6; }
16150 case $host in
16151 *-*-mingw*)
16152 # gcc leaves a trailing carriage return which upsets mingw
16153 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16154 *)
16155 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16156 esac
16157 case $ac_prog in
16158 # Accept absolute paths.
16159 [\\/]* | ?:[\\/]*)
16160 re_direlt='/[^/][^/]*/\.\./'
16161 # Canonicalize the pathname of ld
16162 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16163 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16164 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16165 done
16166 test -z "$LD" && LD="$ac_prog"
16167 ;;
16168 "")
16169 # If it fails, then pretend we aren't using GCC.
16170 ac_prog=ld
16171 ;;
16172 *)
16173 # If it is relative, then search for the first ld in PATH.
16174 with_gnu_ld=unknown
16175 ;;
16176 esac
16177 elif test "$with_gnu_ld" = yes; then
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16179 $as_echo_n "checking for GNU ld... " >&6; }
16180 else
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16182 $as_echo_n "checking for non-GNU ld... " >&6; }
16183 fi
16184 if ${lt_cv_path_LD+:} false; then :
16185 $as_echo_n "(cached) " >&6
16186 else
16187 if test -z "$LD"; then
16188 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16189 for ac_dir in $PATH; do
16190 IFS="$lt_save_ifs"
16191 test -z "$ac_dir" && ac_dir=.
16192 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16193 lt_cv_path_LD="$ac_dir/$ac_prog"
16194 # Check to see if the program is GNU ld. I'd rather use --version,
16195 # but apparently some variants of GNU ld only accept -v.
16196 # Break only if it was the GNU/non-GNU ld that we prefer.
16197 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16198 *GNU* | *'with BFD'*)
16199 test "$with_gnu_ld" != no && break
16200 ;;
16201 *)
16202 test "$with_gnu_ld" != yes && break
16203 ;;
16204 esac
16205 fi
16206 done
16207 IFS="$lt_save_ifs"
16208 else
16209 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16210 fi
16211 fi
16212
16213 LD="$lt_cv_path_LD"
16214 if test -n "$LD"; then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16216 $as_echo "$LD" >&6; }
16217 else
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16219 $as_echo "no" >&6; }
16220 fi
16221 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16223 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16224 if ${lt_cv_prog_gnu_ld+:} false; then :
16225 $as_echo_n "(cached) " >&6
16226 else
16227 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16228 case `$LD -v 2>&1 </dev/null` in
16229 *GNU* | *'with BFD'*)
16230 lt_cv_prog_gnu_ld=yes
16231 ;;
16232 *)
16233 lt_cv_prog_gnu_ld=no
16234 ;;
16235 esac
16236 fi
16237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16238 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16239 with_gnu_ld=$lt_cv_prog_gnu_ld
16240
16241
16242
16243
16244
16245
16246
16247 # If we're not using GNU ld, then there's no point in even trying these
16248 # tests. Check for that first. We should have already tested for gld
16249 # by now (in libtool), but require it now just to be safe...
16250 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16251 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16252
16253
16254
16255 # The name set by libtool depends on the version of libtool. Shame on us
16256 # for depending on an impl detail, but c'est la vie. Older versions used
16257 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16258 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16259 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16260 # set (hence we're using an older libtool), then set it.
16261 if test x${with_gnu_ld+set} != xset; then
16262 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16263 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16264 with_gnu_ld=no
16265 else
16266 with_gnu_ld=$ac_cv_prog_gnu_ld
16267 fi
16268 fi
16269
16270 # Start by getting the version number. I think the libtool test already
16271 # does some of this, but throws away the result.
16272 libgomp_ld_is_gold=no
16273 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16274 libgomp_ld_is_gold=yes
16275 fi
16276
16277 ldver=`$LD --version 2>/dev/null |
16278 sed -e 's/[. ][0-9]\{8\}$//;s/.* \([^ ]\{1,\}\)$/\1/; q'`
16279
16280 libgomp_gnu_ld_version=`echo $ldver | \
16281 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16282
16283 # Set --gc-sections.
16284 if test "$with_gnu_ld" = "notbroken"; then
16285 # GNU ld it is! Joy and bunny rabbits!
16286
16287 # All these tests are for C++; save the language and the compiler flags.
16288 # Need to do this so that g++ won't try to link in libstdc++
16289 ac_test_CFLAGS="${CFLAGS+set}"
16290 ac_save_CFLAGS="$CFLAGS"
16291 CFLAGS='-x c++ -Wl,--gc-sections'
16292
16293 # Check for -Wl,--gc-sections
16294 # XXX This test is broken at the moment, as symbols required for linking
16295 # are now in libsupc++ (not built yet). In addition, this test has
16296 # cored on solaris in the past. In addition, --gc-sections doesn't
16297 # really work at the moment (keeps on discarding used sections, first
16298 # .eh_frame and now some of the glibc sections for iconv).
16299 # Bzzzzt. Thanks for playing, maybe next time.
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16301 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16302 if test "$cross_compiling" = yes; then :
16303 ac_sectionLDflags=yes
16304 else
16305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16306 /* end confdefs.h. */
16307
16308 int main(void)
16309 {
16310 try { throw 1; }
16311 catch (...) { };
16312 return 0;
16313 }
16314
16315 _ACEOF
16316 if ac_fn_c_try_run "$LINENO"; then :
16317 ac_sectionLDflags=yes
16318 else
16319 ac_sectionLDflags=no
16320 fi
16321 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16322 conftest.$ac_objext conftest.beam conftest.$ac_ext
16323 fi
16324
16325 if test "$ac_test_CFLAGS" = set; then
16326 CFLAGS="$ac_save_CFLAGS"
16327 else
16328 # this is the suspicious part
16329 CFLAGS=''
16330 fi
16331 if test "$ac_sectionLDflags" = "yes"; then
16332 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16333 fi
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16335 $as_echo "$ac_sectionLDflags" >&6; }
16336 fi
16337
16338 # Set linker optimization flags.
16339 if test x"$with_gnu_ld" = x"yes"; then
16340 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16341 fi
16342
16343
16344
16345
16346
16347
16348 # Check whether --enable-symvers was given.
16349 if test "${enable_symvers+set}" = set; then :
16350 enableval=$enable_symvers;
16351 case "$enableval" in
16352 yes|no|gnu*|sun) ;;
16353 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16354 esac
16355
16356 else
16357 enable_symvers=yes
16358 fi
16359
16360
16361
16362 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16363 # don't know enough about $LD to do tricks...
16364
16365
16366 # Turn a 'yes' into a suitable default.
16367 if test x$enable_symvers = xyes ; then
16368 # FIXME The following test is too strict, in theory.
16369 if test $enable_shared = no || test "x$LD" = x; then
16370 enable_symvers=no
16371 else
16372 if test $with_gnu_ld = yes ; then
16373 enable_symvers=gnu
16374 else
16375 case ${target_os} in
16376 # Sun symbol versioning exists since Solaris 2.5.
16377 solaris2.[5-9]* | solaris2.1[0-9]*)
16378 enable_symvers=sun ;;
16379 *)
16380 enable_symvers=no ;;
16381 esac
16382 fi
16383 fi
16384 fi
16385
16386 # Check if 'sun' was requested on non-Solaris 2 platforms.
16387 if test x$enable_symvers = xsun ; then
16388 case ${target_os} in
16389 solaris2*)
16390 # All fine.
16391 ;;
16392 *)
16393 # Unlikely to work.
16394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16395 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16397 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16399 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16400 enable_symvers=no
16401 ;;
16402 esac
16403 fi
16404
16405 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16406 if test $enable_symvers != no; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16408 $as_echo_n "checking for shared libgcc... " >&6; }
16409 ac_save_CFLAGS="$CFLAGS"
16410 CFLAGS=' -lgcc_s'
16411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16412 /* end confdefs.h. */
16413
16414 int
16415 main ()
16416 {
16417 return 0;
16418 ;
16419 return 0;
16420 }
16421 _ACEOF
16422 if ac_fn_c_try_link "$LINENO"; then :
16423 libgomp_shared_libgcc=yes
16424 else
16425 libgomp_shared_libgcc=no
16426 fi
16427 rm -f core conftest.err conftest.$ac_objext \
16428 conftest$ac_exeext conftest.$ac_ext
16429 CFLAGS="$ac_save_CFLAGS"
16430 if test $libgomp_shared_libgcc = no; then
16431 cat > conftest.c <<EOF
16432 int main (void) { return 0; }
16433 EOF
16434 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16435 -shared -shared-libgcc -o conftest.so \
16436 conftest.c -v 2>&1 >/dev/null \
16437 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16438 rm -f conftest.c conftest.so
16439 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16440 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16442 /* end confdefs.h. */
16443
16444 int
16445 main ()
16446 {
16447 return 0;
16448 ;
16449 return 0;
16450 }
16451 _ACEOF
16452 if ac_fn_c_try_link "$LINENO"; then :
16453 libgomp_shared_libgcc=yes
16454 fi
16455 rm -f core conftest.err conftest.$ac_objext \
16456 conftest$ac_exeext conftest.$ac_ext
16457 CFLAGS="$ac_save_CFLAGS"
16458 fi
16459 fi
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16461 $as_echo "$libgomp_shared_libgcc" >&6; }
16462 fi
16463
16464 # For GNU ld, we need at least this version. The format is described in
16465 # LIBGOMP_CHECK_LINKER_FEATURES above.
16466 libgomp_min_gnu_ld_version=21400
16467 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16468
16469 # Check to see if unspecified "yes" value can win, given results above.
16470 # Change "yes" into either "no" or a style name.
16471 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16472 if test $with_gnu_ld = yes; then
16473 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16474 enable_symvers=gnu
16475 elif test $libgomp_ld_is_gold = yes ; then
16476 enable_symvers=gnu
16477 else
16478 # The right tools, the right setup, but too old. Fallbacks?
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16480 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16482 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16484 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16486 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16487 if test $libgomp_gnu_ld_version -ge 21200 ; then
16488 # Globbing fix is present, proper block support is not.
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16490 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16491 enable_symvers=no
16492 else
16493 # 2.11 or older.
16494 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16495 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16496 enable_symvers=no
16497 fi
16498 fi
16499 elif test $enable_symvers = sun; then
16500 : All interesting versions of Sun ld support sun style symbol versioning.
16501 else
16502 # just fail for now
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16504 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16506 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16508 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16510 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16511 enable_symvers=no
16512 fi
16513 fi
16514
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16516 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16517 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16518 $as_echo_n "(cached) " >&6
16519 else
16520
16521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16522 /* end confdefs.h. */
16523 void foo (void); __asm (".symver foo, bar@SYMVER");
16524 int
16525 main ()
16526 {
16527
16528 ;
16529 return 0;
16530 }
16531 _ACEOF
16532 if ac_fn_c_try_compile "$LINENO"; then :
16533 libgomp_cv_have_as_symver_directive=yes
16534 else
16535 libgomp_cv_have_as_symver_directive=no
16536 fi
16537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16538 fi
16539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16540 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16541 if test $libgomp_cv_have_as_symver_directive = yes; then
16542
16543 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16544
16545 fi
16546
16547 if test $enable_symvers != no; then
16548 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16549 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16550 else
16551 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16552 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16553 fi
16554
16555 if test $enable_symvers = gnu; then
16556 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16557 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16558 else
16559 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16560 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16561 fi
16562
16563 if test $enable_symvers = sun; then
16564 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16565 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16566 else
16567 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16568 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16569 fi
16570
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16572 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16573
16574 if test $enable_symvers != no ; then
16575 case ${target_os} in
16576 # The Solaris 2 runtime linker doesn't support the GNU extension of
16577 # binding the same symbol to different versions
16578 solaris2*)
16579 ;;
16580 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16581 *)
16582
16583 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16584
16585 ;;
16586 esac
16587 fi
16588
16589
16590 if test $enable_symvers = gnu; then
16591
16592 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16593
16594 fi
16595
16596 # Determine cpu count to limit testsuite parallelism.
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the number of available CPUs" >&5
16598 $as_echo_n "checking the number of available CPUs... " >&6; }
16599 CPU_COUNT="0"
16600
16601 # Try generic methods
16602
16603 # 'getconf' is POSIX utility, but '_NPROCESSORS_ONLN' and
16604 # 'NPROCESSORS_ONLN' are platform-specific
16605 command -v getconf >/dev/null 2>&1 && \
16606 CPU_COUNT=`getconf _NPROCESSORS_ONLN 2>/dev/null || getconf NPROCESSORS_ONLN 2>/dev/null` || CPU_COUNT="0"
16607 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v nproc >/dev/null 2>&1; then :
16608 : # empty
16609 else
16610 # 'nproc' is part of GNU Coreutils and is widely available
16611 CPU_COUNT=`OMP_NUM_THREADS='' nproc 2>/dev/null` || CPU_COUNT=`nproc 2>/dev/null` || CPU_COUNT="0"
16612
16613 fi
16614 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16615 : # empty
16616 else
16617 # Try platform-specific preferred methods
16618 case $host_os in #(
16619 *linux*) :
16620 CPU_COUNT=`lscpu -p 2>/dev/null | $EGREP -e '^[0-9]+,' -c` || CPU_COUNT="0" ;; #(
16621 *darwin*) :
16622 CPU_COUNT=`sysctl -n hw.logicalcpu 2>/dev/null` || CPU_COUNT="0" ;; #(
16623 freebsd*) :
16624 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n kern.smp.cpus 2>/dev/null` || CPU_COUNT="0" ;; #(
16625 netbsd*) :
16626 command -v sysctl >/dev/null 2>&1 && CPU_COUNT=`sysctl -n hw.ncpuonline 2>/dev/null` || CPU_COUNT="0" ;; #(
16627 solaris*) :
16628 command -v psrinfo >/dev/null 2>&1 && CPU_COUNT=`psrinfo 2>/dev/null | $EGREP -e '^[0-9].*on-line' -c 2>/dev/null` || CPU_COUNT="0" ;; #(
16629 mingw*) :
16630 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16631 msys*) :
16632 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16633 cygwin*) :
16634 CPU_COUNT=`ls -qpU1 /proc/registry/HKEY_LOCAL_MACHINE/HARDWARE/DESCRIPTION/System/CentralProcessor/ 2>/dev/null | $EGREP -e '^[0-9]+/' -c` || CPU_COUNT="0" ;; #(
16635 *) :
16636 ;;
16637 esac
16638 fi
16639 if test "$CPU_COUNT" -gt "0" 2>/dev/null || ! command -v sysctl >/dev/null 2>&1; then :
16640 : # empty
16641 else
16642 # Try less preferred generic method
16643 # 'hw.ncpu' exist on many platforms, but not on GNU/Linux
16644 CPU_COUNT=`sysctl -n hw.ncpu 2>/dev/null` || CPU_COUNT="0"
16645
16646 fi
16647 if test "$CPU_COUNT" -gt "0" 2>/dev/null; then :
16648 : # empty
16649 else
16650 # Try platform-specific fallback methods
16651 # They can be less accurate and slower then preferred methods
16652 case $host_os in #(
16653 *linux*) :
16654 CPU_COUNT=`$EGREP -e '^processor' -c /proc/cpuinfo 2>/dev/null` || CPU_COUNT="0" ;; #(
16655 *darwin*) :
16656 CPU_COUNT=`system_profiler SPHardwareDataType 2>/dev/null | $EGREP -i -e 'number of cores:'|cut -d : -f 2 -s|tr -d ' '` || CPU_COUNT="0" ;; #(
16657 freebsd*) :
16658 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+: '|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16659 netbsd*) :
16660 CPU_COUNT=`command -v cpuctl >/dev/null 2>&1 && cpuctl list 2>/dev/null| $EGREP -e '^[0-9]+ .* online ' -c` || \
16661 CPU_COUNT=`dmesg 2>/dev/null| $EGREP -e '^cpu[0-9]+ at'|sort -u|$EGREP -e '^' -c` || CPU_COUNT="0" ;; #(
16662 solaris*) :
16663 command -v kstat >/dev/null 2>&1 && CPU_COUNT=`kstat -m cpu_info -s state -p 2>/dev/null | $EGREP -c -e 'on-line'` || \
16664 CPU_COUNT=`kstat -m cpu_info 2>/dev/null | $EGREP -c -e 'module: cpu_info'` || CPU_COUNT="0" ;; #(
16665 mingw*) :
16666 if CPU_COUNT=`reg query 'HKLM\\Hardware\\Description\\System\\CentralProcessor' 2>/dev/null | $EGREP -e '\\\\[0-9]+$' -c`; then :
16667 : # empty
16668 else
16669 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS"
16670 fi ;; #(
16671 msys*) :
16672 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16673 cygwin*) :
16674 test "$NUMBER_OF_PROCESSORS" -gt "0" 2>/dev/null && CPU_COUNT="$NUMBER_OF_PROCESSORS" ;; #(
16675 *) :
16676 ;;
16677 esac
16678 fi
16679 if test "x$CPU_COUNT" != "x0" && test "$CPU_COUNT" -gt 0 2>/dev/null; then :
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPU_COUNT" >&5
16681 $as_echo "$CPU_COUNT" >&6; }
16682
16683 else
16684 CPU_COUNT="1"
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unable to detect (assuming 1)" >&5
16686 $as_echo "unable to detect (assuming 1)" >&6; }
16687
16688 fi
16689
16690
16691 # Get target configury.
16692 . ${srcdir}/configure.tgt
16693 CFLAGS="$save_CFLAGS $XCFLAGS"
16694
16695 # Check for __sync_val_compare_and_swap, but only after the target has
16696 # had a chance to set XCFLAGS.
16697
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16699 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16700 if ${libgomp_cv_have_sync_builtins+:} false; then :
16701 $as_echo_n "(cached) " >&6
16702 else
16703
16704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16705 /* end confdefs.h. */
16706
16707 int
16708 main ()
16709 {
16710 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16711 ;
16712 return 0;
16713 }
16714 _ACEOF
16715 if ac_fn_c_try_link "$LINENO"; then :
16716 libgomp_cv_have_sync_builtins=yes
16717 else
16718 libgomp_cv_have_sync_builtins=no
16719 fi
16720 rm -f core conftest.err conftest.$ac_objext \
16721 conftest$ac_exeext conftest.$ac_ext
16722 fi
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16724 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16725 if test $libgomp_cv_have_sync_builtins = yes; then
16726
16727 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16728
16729 fi
16730
16731 XCFLAGS="$XCFLAGS$XPCFLAGS"
16732
16733 # Add CET specific flags if CET is enabled
16734 # Check whether --enable-cet was given.
16735 if test "${enable_cet+set}" = set; then :
16736 enableval=$enable_cet;
16737 case "$enableval" in
16738 yes|no|auto) ;;
16739 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16740 esac
16741
16742 else
16743 enable_cet=no
16744 fi
16745
16746
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16748 $as_echo_n "checking for CET support... " >&6; }
16749
16750 case "$host" in
16751 i[34567]86-*-linux* | x86_64-*-linux*)
16752 case "$enable_cet" in
16753 auto)
16754 # Check if target supports multi-byte NOPs
16755 # and if assembler supports CET insn.
16756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16757 /* end confdefs.h. */
16758
16759 int
16760 main ()
16761 {
16762
16763 #if !defined(__SSE2__)
16764 #error target does not support multi-byte NOPs
16765 #else
16766 asm ("setssbsy");
16767 #endif
16768
16769 ;
16770 return 0;
16771 }
16772 _ACEOF
16773 if ac_fn_c_try_compile "$LINENO"; then :
16774 enable_cet=yes
16775 else
16776 enable_cet=no
16777 fi
16778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16779 ;;
16780 yes)
16781 # Check if assembler supports CET.
16782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16783 /* end confdefs.h. */
16784
16785 int
16786 main ()
16787 {
16788 asm ("setssbsy");
16789 ;
16790 return 0;
16791 }
16792 _ACEOF
16793 if ac_fn_c_try_compile "$LINENO"; then :
16794
16795 else
16796 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
16797 fi
16798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16799 ;;
16800 esac
16801 ;;
16802 *)
16803 enable_cet=no
16804 ;;
16805 esac
16806 if test x$enable_cet = xyes; then
16807 CET_FLAGS="-fcf-protection -mshstk"
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16809 $as_echo "yes" >&6; }
16810 else
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16812 $as_echo "no" >&6; }
16813 fi
16814
16815 XCFLAGS="$XCFLAGS $CET_FLAGS"
16816 FCFLAGS="$FCFLAGS $CET_FLAGS"
16817
16818
16819
16820
16821
16822 # Cleanup and exit.
16823 CFLAGS="$save_CFLAGS"
16824 cat >confcache <<\_ACEOF
16825 # This file is a shell script that caches the results of configure
16826 # tests run on this system so they can be shared between configure
16827 # scripts and configure runs, see configure's option --config-cache.
16828 # It is not useful on other systems. If it contains results you don't
16829 # want to keep, you may remove or edit it.
16830 #
16831 # config.status only pays attention to the cache file if you give it
16832 # the --recheck option to rerun configure.
16833 #
16834 # `ac_cv_env_foo' variables (set or unset) will be overridden when
16835 # loading this file, other *unset* `ac_cv_foo' will be assigned the
16836 # following values.
16837
16838 _ACEOF
16839
16840 # The following way of writing the cache mishandles newlines in values,
16841 # but we know of no workaround that is simple, portable, and efficient.
16842 # So, we kill variables containing newlines.
16843 # Ultrix sh set writes to stderr and can't be redirected directly,
16844 # and sets the high bit in the cache file unless we assign to the vars.
16845 (
16846 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
16847 eval ac_val=\$$ac_var
16848 case $ac_val in #(
16849 *${as_nl}*)
16850 case $ac_var in #(
16851 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
16852 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
16853 esac
16854 case $ac_var in #(
16855 _ | IFS | as_nl) ;; #(
16856 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
16857 *) { eval $ac_var=; unset $ac_var;} ;;
16858 esac ;;
16859 esac
16860 done
16861
16862 (set) 2>&1 |
16863 case $as_nl`(ac_space=' '; set) 2>&1` in #(
16864 *${as_nl}ac_space=\ *)
16865 # `set' does not quote correctly, so add quotes: double-quote
16866 # substitution turns \\\\ into \\, and sed turns \\ into \.
16867 sed -n \
16868 "s/'/'\\\\''/g;
16869 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
16870 ;; #(
16871 *)
16872 # `set' quotes correctly as required by POSIX, so do not add quotes.
16873 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
16874 ;;
16875 esac |
16876 sort
16877 ) |
16878 sed '
16879 /^ac_cv_env_/b end
16880 t clear
16881 :clear
16882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
16883 t end
16884 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
16885 :end' >>confcache
16886 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
16887 if test -w "$cache_file"; then
16888 if test "x$cache_file" != "x/dev/null"; then
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
16890 $as_echo "$as_me: updating cache $cache_file" >&6;}
16891 if test ! -f "$cache_file" || test -h "$cache_file"; then
16892 cat confcache >"$cache_file"
16893 else
16894 case $cache_file in #(
16895 */* | ?:*)
16896 mv -f confcache "$cache_file"$$ &&
16897 mv -f "$cache_file"$$ "$cache_file" ;; #(
16898 *)
16899 mv -f confcache "$cache_file" ;;
16900 esac
16901 fi
16902 fi
16903 else
16904 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
16905 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
16906 fi
16907 fi
16908 rm -f confcache
16909
16910 if test ${multilib} = yes; then
16911 multilib_arg="--enable-multilib"
16912 else
16913 multilib_arg=
16914 fi
16915
16916 # Set up the set of libraries that we need to link against for libgomp.
16917 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
16918 # which will force linkage against -lpthread (or equivalent for the system).
16919 # That's not 100% ideal, but about the best we can do easily.
16920 if test $enable_shared = yes; then
16921 link_gomp="-lgomp %{static: $LIBS}"
16922 else
16923 link_gomp="-lgomp $LIBS"
16924 fi
16925
16926
16927 if test "$ac_cv_fc_compiler_gnu" = yes; then
16928 USE_FORTRAN_TRUE=
16929 USE_FORTRAN_FALSE='#'
16930 else
16931 USE_FORTRAN_TRUE='#'
16932 USE_FORTRAN_FALSE=
16933 fi
16934
16935
16936 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
16937 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
16938 # the underscore here and update the PREREQ. If it doesn't, then we'll
16939 # need to copy this macro to our acinclude.m4.
16940 save_CFLAGS="$CFLAGS"
16941 for i in $config_path; do
16942 if test -f $srcdir/config/$i/omp-lock.h; then
16943 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
16944 break
16945 fi
16946 done
16947
16948 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
16949
16950 else
16951 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
16952 fi
16953
16954
16955 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
16956
16957 fi
16958
16959
16960 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
16961
16962 fi
16963
16964
16965 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
16966
16967 fi
16968
16969
16970 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
16971
16972 else
16973 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
16974 fi
16975
16976
16977 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
16978
16979 fi
16980
16981
16982 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
16983
16984 fi
16985
16986
16987 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
16988
16989 fi
16990
16991
16992
16993 # If the lock fits in an integer, then arrange for Fortran to use that
16994 # integer. If it doesn't, then arrange for Fortran to use a pointer.
16995 # Except that we don't have a way at present to multi-lib the installed
16996 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
16997 # actual target.
16998 OMP_LOCK_KIND=$OMP_LOCK_SIZE
16999 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17000 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17001 OMP_LOCK_KIND=8
17002 fi
17003 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17004 OMP_NEST_LOCK_KIND=8
17005 fi
17006 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17007 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17008 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17009 OMP_LOCK_25_KIND=8
17010 fi
17011 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17012 OMP_NEST_LOCK_25_KIND=8
17013 fi
17014
17015
17016
17017
17018
17019
17020
17021
17022
17023
17024
17025
17026
17027 CFLAGS="$save_CFLAGS"
17028
17029 # Determine what GCC version number to use in filesystem paths.
17030
17031 get_gcc_base_ver="cat"
17032
17033 # Check whether --with-gcc-major-version-only was given.
17034 if test "${with_gcc_major_version_only+set}" = set; then :
17035 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17036 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17037 fi
17038
17039 fi
17040
17041
17042
17043
17044 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17045
17046 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17047
17048 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17049
17050 ac_config_files="$ac_config_files testsuite/libgomp-site-extra.exp"
17051
17052 cat >confcache <<\_ACEOF
17053 # This file is a shell script that caches the results of configure
17054 # tests run on this system so they can be shared between configure
17055 # scripts and configure runs, see configure's option --config-cache.
17056 # It is not useful on other systems. If it contains results you don't
17057 # want to keep, you may remove or edit it.
17058 #
17059 # config.status only pays attention to the cache file if you give it
17060 # the --recheck option to rerun configure.
17061 #
17062 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17063 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17064 # following values.
17065
17066 _ACEOF
17067
17068 # The following way of writing the cache mishandles newlines in values,
17069 # but we know of no workaround that is simple, portable, and efficient.
17070 # So, we kill variables containing newlines.
17071 # Ultrix sh set writes to stderr and can't be redirected directly,
17072 # and sets the high bit in the cache file unless we assign to the vars.
17073 (
17074 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17075 eval ac_val=\$$ac_var
17076 case $ac_val in #(
17077 *${as_nl}*)
17078 case $ac_var in #(
17079 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17080 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17081 esac
17082 case $ac_var in #(
17083 _ | IFS | as_nl) ;; #(
17084 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17085 *) { eval $ac_var=; unset $ac_var;} ;;
17086 esac ;;
17087 esac
17088 done
17089
17090 (set) 2>&1 |
17091 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17092 *${as_nl}ac_space=\ *)
17093 # `set' does not quote correctly, so add quotes: double-quote
17094 # substitution turns \\\\ into \\, and sed turns \\ into \.
17095 sed -n \
17096 "s/'/'\\\\''/g;
17097 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17098 ;; #(
17099 *)
17100 # `set' quotes correctly as required by POSIX, so do not add quotes.
17101 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17102 ;;
17103 esac |
17104 sort
17105 ) |
17106 sed '
17107 /^ac_cv_env_/b end
17108 t clear
17109 :clear
17110 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17111 t end
17112 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17113 :end' >>confcache
17114 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17115 if test -w "$cache_file"; then
17116 if test "x$cache_file" != "x/dev/null"; then
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17118 $as_echo "$as_me: updating cache $cache_file" >&6;}
17119 if test ! -f "$cache_file" || test -h "$cache_file"; then
17120 cat confcache >"$cache_file"
17121 else
17122 case $cache_file in #(
17123 */* | ?:*)
17124 mv -f confcache "$cache_file"$$ &&
17125 mv -f "$cache_file"$$ "$cache_file" ;; #(
17126 *)
17127 mv -f confcache "$cache_file" ;;
17128 esac
17129 fi
17130 fi
17131 else
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17133 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17134 fi
17135 fi
17136 rm -f confcache
17137
17138 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17139 # Let make expand exec_prefix.
17140 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17141
17142 DEFS=-DHAVE_CONFIG_H
17143
17144 ac_libobjs=
17145 ac_ltlibobjs=
17146 U=
17147 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17148 # 1. Remove the extension, and $U if already installed.
17149 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17150 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17151 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17152 # will be set to the directory where LIBOBJS objects are built.
17153 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17154 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17155 done
17156 LIBOBJS=$ac_libobjs
17157
17158 LTLIBOBJS=$ac_ltlibobjs
17159
17160
17161 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17162 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17163 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17164 fi
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17166 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17167 if test -n "$am_sleep_pid"; then
17168 # Hide warnings about reused PIDs.
17169 wait $am_sleep_pid 2>/dev/null
17170 fi
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17172 $as_echo "done" >&6; }
17173 if test -n "$EXEEXT"; then
17174 am__EXEEXT_TRUE=
17175 am__EXEEXT_FALSE='#'
17176 else
17177 am__EXEEXT_TRUE='#'
17178 am__EXEEXT_FALSE=
17179 fi
17180
17181 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17182 as_fn_error $? "conditional \"AMDEP\" was never defined.
17183 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17184 fi
17185 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17186 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17187 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17188 fi
17189 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17190 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17191 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17192 fi
17193 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17194 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17195 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17196 fi
17197 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17198 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17199 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17200 fi
17201 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17202 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17203 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17204 fi
17205 if test -z "${PLUGIN_GCN_TRUE}" && test -z "${PLUGIN_GCN_FALSE}"; then
17206 as_fn_error $? "conditional \"PLUGIN_GCN\" was never defined.
17207 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17208 fi
17209 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17210 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17211 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17212 fi
17213 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17214 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17215 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17216 fi
17217 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17218 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17219 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17220 fi
17221 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17222 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17223 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17224 fi
17225
17226 : "${CONFIG_STATUS=./config.status}"
17227 ac_write_fail=0
17228 ac_clean_files_save=$ac_clean_files
17229 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17231 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17232 as_write_fail=0
17233 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17234 #! $SHELL
17235 # Generated by $as_me.
17236 # Run this file to recreate the current configuration.
17237 # Compiler output produced by configure, useful for debugging
17238 # configure, is in config.log if it exists.
17239
17240 debug=false
17241 ac_cs_recheck=false
17242 ac_cs_silent=false
17243
17244 SHELL=\${CONFIG_SHELL-$SHELL}
17245 export SHELL
17246 _ASEOF
17247 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17248 ## -------------------- ##
17249 ## M4sh Initialization. ##
17250 ## -------------------- ##
17251
17252 # Be more Bourne compatible
17253 DUALCASE=1; export DUALCASE # for MKS sh
17254 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17255 emulate sh
17256 NULLCMD=:
17257 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17258 # is contrary to our usage. Disable this feature.
17259 alias -g '${1+"$@"}'='"$@"'
17260 setopt NO_GLOB_SUBST
17261 else
17262 case `(set -o) 2>/dev/null` in #(
17263 *posix*) :
17264 set -o posix ;; #(
17265 *) :
17266 ;;
17267 esac
17268 fi
17269
17270
17271 as_nl='
17272 '
17273 export as_nl
17274 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17275 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17276 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17277 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17278 # Prefer a ksh shell builtin over an external printf program on Solaris,
17279 # but without wasting forks for bash or zsh.
17280 if test -z "$BASH_VERSION$ZSH_VERSION" \
17281 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17282 as_echo='print -r --'
17283 as_echo_n='print -rn --'
17284 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17285 as_echo='printf %s\n'
17286 as_echo_n='printf %s'
17287 else
17288 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17289 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17290 as_echo_n='/usr/ucb/echo -n'
17291 else
17292 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17293 as_echo_n_body='eval
17294 arg=$1;
17295 case $arg in #(
17296 *"$as_nl"*)
17297 expr "X$arg" : "X\\(.*\\)$as_nl";
17298 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17299 esac;
17300 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17301 '
17302 export as_echo_n_body
17303 as_echo_n='sh -c $as_echo_n_body as_echo'
17304 fi
17305 export as_echo_body
17306 as_echo='sh -c $as_echo_body as_echo'
17307 fi
17308
17309 # The user is always right.
17310 if test "${PATH_SEPARATOR+set}" != set; then
17311 PATH_SEPARATOR=:
17312 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17313 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17314 PATH_SEPARATOR=';'
17315 }
17316 fi
17317
17318
17319 # IFS
17320 # We need space, tab and new line, in precisely that order. Quoting is
17321 # there to prevent editors from complaining about space-tab.
17322 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17323 # splitting by setting IFS to empty value.)
17324 IFS=" "" $as_nl"
17325
17326 # Find who we are. Look in the path if we contain no directory separator.
17327 as_myself=
17328 case $0 in #((
17329 *[\\/]* ) as_myself=$0 ;;
17330 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17331 for as_dir in $PATH
17332 do
17333 IFS=$as_save_IFS
17334 test -z "$as_dir" && as_dir=.
17335 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17336 done
17337 IFS=$as_save_IFS
17338
17339 ;;
17340 esac
17341 # We did not find ourselves, most probably we were run as `sh COMMAND'
17342 # in which case we are not to be found in the path.
17343 if test "x$as_myself" = x; then
17344 as_myself=$0
17345 fi
17346 if test ! -f "$as_myself"; then
17347 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17348 exit 1
17349 fi
17350
17351 # Unset variables that we do not need and which cause bugs (e.g. in
17352 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17353 # suppresses any "Segmentation fault" message there. '((' could
17354 # trigger a bug in pdksh 5.2.14.
17355 for as_var in BASH_ENV ENV MAIL MAILPATH
17356 do eval test x\${$as_var+set} = xset \
17357 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17358 done
17359 PS1='$ '
17360 PS2='> '
17361 PS4='+ '
17362
17363 # NLS nuisances.
17364 LC_ALL=C
17365 export LC_ALL
17366 LANGUAGE=C
17367 export LANGUAGE
17368
17369 # CDPATH.
17370 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17371
17372
17373 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17374 # ----------------------------------------
17375 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17376 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17377 # script with STATUS, using 1 if that was 0.
17378 as_fn_error ()
17379 {
17380 as_status=$1; test $as_status -eq 0 && as_status=1
17381 if test "$4"; then
17382 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17383 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17384 fi
17385 $as_echo "$as_me: error: $2" >&2
17386 as_fn_exit $as_status
17387 } # as_fn_error
17388
17389
17390 # as_fn_set_status STATUS
17391 # -----------------------
17392 # Set $? to STATUS, without forking.
17393 as_fn_set_status ()
17394 {
17395 return $1
17396 } # as_fn_set_status
17397
17398 # as_fn_exit STATUS
17399 # -----------------
17400 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17401 as_fn_exit ()
17402 {
17403 set +e
17404 as_fn_set_status $1
17405 exit $1
17406 } # as_fn_exit
17407
17408 # as_fn_unset VAR
17409 # ---------------
17410 # Portably unset VAR.
17411 as_fn_unset ()
17412 {
17413 { eval $1=; unset $1;}
17414 }
17415 as_unset=as_fn_unset
17416 # as_fn_append VAR VALUE
17417 # ----------------------
17418 # Append the text in VALUE to the end of the definition contained in VAR. Take
17419 # advantage of any shell optimizations that allow amortized linear growth over
17420 # repeated appends, instead of the typical quadratic growth present in naive
17421 # implementations.
17422 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17423 eval 'as_fn_append ()
17424 {
17425 eval $1+=\$2
17426 }'
17427 else
17428 as_fn_append ()
17429 {
17430 eval $1=\$$1\$2
17431 }
17432 fi # as_fn_append
17433
17434 # as_fn_arith ARG...
17435 # ------------------
17436 # Perform arithmetic evaluation on the ARGs, and store the result in the
17437 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17438 # must be portable across $(()) and expr.
17439 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17440 eval 'as_fn_arith ()
17441 {
17442 as_val=$(( $* ))
17443 }'
17444 else
17445 as_fn_arith ()
17446 {
17447 as_val=`expr "$@" || test $? -eq 1`
17448 }
17449 fi # as_fn_arith
17450
17451
17452 if expr a : '\(a\)' >/dev/null 2>&1 &&
17453 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17454 as_expr=expr
17455 else
17456 as_expr=false
17457 fi
17458
17459 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17460 as_basename=basename
17461 else
17462 as_basename=false
17463 fi
17464
17465 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17466 as_dirname=dirname
17467 else
17468 as_dirname=false
17469 fi
17470
17471 as_me=`$as_basename -- "$0" ||
17472 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17473 X"$0" : 'X\(//\)$' \| \
17474 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17475 $as_echo X/"$0" |
17476 sed '/^.*\/\([^/][^/]*\)\/*$/{
17477 s//\1/
17478 q
17479 }
17480 /^X\/\(\/\/\)$/{
17481 s//\1/
17482 q
17483 }
17484 /^X\/\(\/\).*/{
17485 s//\1/
17486 q
17487 }
17488 s/.*/./; q'`
17489
17490 # Avoid depending upon Character Ranges.
17491 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17492 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17493 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17494 as_cr_digits='0123456789'
17495 as_cr_alnum=$as_cr_Letters$as_cr_digits
17496
17497 ECHO_C= ECHO_N= ECHO_T=
17498 case `echo -n x` in #(((((
17499 -n*)
17500 case `echo 'xy\c'` in
17501 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17502 xy) ECHO_C='\c';;
17503 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17504 ECHO_T=' ';;
17505 esac;;
17506 *)
17507 ECHO_N='-n';;
17508 esac
17509
17510 rm -f conf$$ conf$$.exe conf$$.file
17511 if test -d conf$$.dir; then
17512 rm -f conf$$.dir/conf$$.file
17513 else
17514 rm -f conf$$.dir
17515 mkdir conf$$.dir 2>/dev/null
17516 fi
17517 if (echo >conf$$.file) 2>/dev/null; then
17518 if ln -s conf$$.file conf$$ 2>/dev/null; then
17519 as_ln_s='ln -s'
17520 # ... but there are two gotchas:
17521 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17522 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17523 # In both cases, we have to default to `cp -pR'.
17524 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17525 as_ln_s='cp -pR'
17526 elif ln conf$$.file conf$$ 2>/dev/null; then
17527 as_ln_s=ln
17528 else
17529 as_ln_s='cp -pR'
17530 fi
17531 else
17532 as_ln_s='cp -pR'
17533 fi
17534 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17535 rmdir conf$$.dir 2>/dev/null
17536
17537
17538 # as_fn_mkdir_p
17539 # -------------
17540 # Create "$as_dir" as a directory, including parents if necessary.
17541 as_fn_mkdir_p ()
17542 {
17543
17544 case $as_dir in #(
17545 -*) as_dir=./$as_dir;;
17546 esac
17547 test -d "$as_dir" || eval $as_mkdir_p || {
17548 as_dirs=
17549 while :; do
17550 case $as_dir in #(
17551 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17552 *) as_qdir=$as_dir;;
17553 esac
17554 as_dirs="'$as_qdir' $as_dirs"
17555 as_dir=`$as_dirname -- "$as_dir" ||
17556 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17557 X"$as_dir" : 'X\(//\)[^/]' \| \
17558 X"$as_dir" : 'X\(//\)$' \| \
17559 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17560 $as_echo X"$as_dir" |
17561 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17562 s//\1/
17563 q
17564 }
17565 /^X\(\/\/\)[^/].*/{
17566 s//\1/
17567 q
17568 }
17569 /^X\(\/\/\)$/{
17570 s//\1/
17571 q
17572 }
17573 /^X\(\/\).*/{
17574 s//\1/
17575 q
17576 }
17577 s/.*/./; q'`
17578 test -d "$as_dir" && break
17579 done
17580 test -z "$as_dirs" || eval "mkdir $as_dirs"
17581 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17582
17583
17584 } # as_fn_mkdir_p
17585 if mkdir -p . 2>/dev/null; then
17586 as_mkdir_p='mkdir -p "$as_dir"'
17587 else
17588 test -d ./-p && rmdir ./-p
17589 as_mkdir_p=false
17590 fi
17591
17592
17593 # as_fn_executable_p FILE
17594 # -----------------------
17595 # Test if FILE is an executable regular file.
17596 as_fn_executable_p ()
17597 {
17598 test -f "$1" && test -x "$1"
17599 } # as_fn_executable_p
17600 as_test_x='test -x'
17601 as_executable_p=as_fn_executable_p
17602
17603 # Sed expression to map a string onto a valid CPP name.
17604 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17605
17606 # Sed expression to map a string onto a valid variable name.
17607 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17608
17609
17610 exec 6>&1
17611 ## ----------------------------------- ##
17612 ## Main body of $CONFIG_STATUS script. ##
17613 ## ----------------------------------- ##
17614 _ASEOF
17615 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17616
17617 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17618 # Save the log message, to keep $0 and so on meaningful, and to
17619 # report actual input values of CONFIG_FILES etc. instead of their
17620 # values after options handling.
17621 ac_log="
17622 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17623 generated by GNU Autoconf 2.69. Invocation command line was
17624
17625 CONFIG_FILES = $CONFIG_FILES
17626 CONFIG_HEADERS = $CONFIG_HEADERS
17627 CONFIG_LINKS = $CONFIG_LINKS
17628 CONFIG_COMMANDS = $CONFIG_COMMANDS
17629 $ $0 $@
17630
17631 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17632 "
17633
17634 _ACEOF
17635
17636 case $ac_config_files in *"
17637 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17638 esac
17639
17640 case $ac_config_headers in *"
17641 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17642 esac
17643
17644
17645 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17646 # Files that config.status was made for.
17647 config_files="$ac_config_files"
17648 config_headers="$ac_config_headers"
17649 config_commands="$ac_config_commands"
17650
17651 _ACEOF
17652
17653 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17654 ac_cs_usage="\
17655 \`$as_me' instantiates files and other configuration actions
17656 from templates according to the current configuration. Unless the files
17657 and actions are specified as TAGs, all are instantiated by default.
17658
17659 Usage: $0 [OPTION]... [TAG]...
17660
17661 -h, --help print this help, then exit
17662 -V, --version print version number and configuration settings, then exit
17663 --config print configuration, then exit
17664 -q, --quiet, --silent
17665 do not print progress messages
17666 -d, --debug don't remove temporary files
17667 --recheck update $as_me by reconfiguring in the same conditions
17668 --file=FILE[:TEMPLATE]
17669 instantiate the configuration file FILE
17670 --header=FILE[:TEMPLATE]
17671 instantiate the configuration header FILE
17672
17673 Configuration files:
17674 $config_files
17675
17676 Configuration headers:
17677 $config_headers
17678
17679 Configuration commands:
17680 $config_commands
17681
17682 Report bugs to the package provider.
17683 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17684 General help using GNU software: <http://www.gnu.org/gethelp/>."
17685
17686 _ACEOF
17687 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17688 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17689 ac_cs_version="\\
17690 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17691 configured by $0, generated by GNU Autoconf 2.69,
17692 with options \\"\$ac_cs_config\\"
17693
17694 Copyright (C) 2012 Free Software Foundation, Inc.
17695 This config.status script is free software; the Free Software Foundation
17696 gives unlimited permission to copy, distribute and modify it."
17697
17698 ac_pwd='$ac_pwd'
17699 srcdir='$srcdir'
17700 INSTALL='$INSTALL'
17701 MKDIR_P='$MKDIR_P'
17702 AWK='$AWK'
17703 test -n "\$AWK" || AWK=awk
17704 _ACEOF
17705
17706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17707 # The default lists apply if the user does not specify any file.
17708 ac_need_defaults=:
17709 while test $# != 0
17710 do
17711 case $1 in
17712 --*=?*)
17713 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17714 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17715 ac_shift=:
17716 ;;
17717 --*=)
17718 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17719 ac_optarg=
17720 ac_shift=:
17721 ;;
17722 *)
17723 ac_option=$1
17724 ac_optarg=$2
17725 ac_shift=shift
17726 ;;
17727 esac
17728
17729 case $ac_option in
17730 # Handling of the options.
17731 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17732 ac_cs_recheck=: ;;
17733 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17734 $as_echo "$ac_cs_version"; exit ;;
17735 --config | --confi | --conf | --con | --co | --c )
17736 $as_echo "$ac_cs_config"; exit ;;
17737 --debug | --debu | --deb | --de | --d | -d )
17738 debug=: ;;
17739 --file | --fil | --fi | --f )
17740 $ac_shift
17741 case $ac_optarg in
17742 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17743 '') as_fn_error $? "missing file argument" ;;
17744 esac
17745 as_fn_append CONFIG_FILES " '$ac_optarg'"
17746 ac_need_defaults=false;;
17747 --header | --heade | --head | --hea )
17748 $ac_shift
17749 case $ac_optarg in
17750 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17751 esac
17752 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17753 ac_need_defaults=false;;
17754 --he | --h)
17755 # Conflict between --help and --header
17756 as_fn_error $? "ambiguous option: \`$1'
17757 Try \`$0 --help' for more information.";;
17758 --help | --hel | -h )
17759 $as_echo "$ac_cs_usage"; exit ;;
17760 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17761 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17762 ac_cs_silent=: ;;
17763
17764 # This is an error.
17765 -*) as_fn_error $? "unrecognized option: \`$1'
17766 Try \`$0 --help' for more information." ;;
17767
17768 *) as_fn_append ac_config_targets " $1"
17769 ac_need_defaults=false ;;
17770
17771 esac
17772 shift
17773 done
17774
17775 ac_configure_extra_args=
17776
17777 if $ac_cs_silent; then
17778 exec 6>/dev/null
17779 ac_configure_extra_args="$ac_configure_extra_args --silent"
17780 fi
17781
17782 _ACEOF
17783 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17784 if \$ac_cs_recheck; then
17785 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17786 shift
17787 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17788 CONFIG_SHELL='$SHELL'
17789 export CONFIG_SHELL
17790 exec "\$@"
17791 fi
17792
17793 _ACEOF
17794 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17795 exec 5>>config.log
17796 {
17797 echo
17798 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
17799 ## Running $as_me. ##
17800 _ASBOX
17801 $as_echo "$ac_log"
17802 } >&5
17803
17804 _ACEOF
17805 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17806 #
17807 # INIT-COMMANDS
17808 #
17809
17810 srcdir="$srcdir"
17811 host="$host"
17812 target="$target"
17813 with_multisubdir="$with_multisubdir"
17814 with_multisrctop="$with_multisrctop"
17815 with_target_subdir="$with_target_subdir"
17816 ac_configure_args="${multilib_arg} ${ac_configure_args}"
17817 multi_basedir="$multi_basedir"
17818 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
17819 CC="$CC"
17820 CXX="$CXX"
17821 GFORTRAN="$GFORTRAN"
17822 GDC="$GDC"
17823 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
17824
17825
17826 # The HP-UX ksh and POSIX shell print the target directory to stdout
17827 # if CDPATH is set.
17828 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17829
17830 sed_quote_subst='$sed_quote_subst'
17831 double_quote_subst='$double_quote_subst'
17832 delay_variable_subst='$delay_variable_subst'
17833 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
17834 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
17835 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
17836 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
17837 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
17838 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
17839 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
17840 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
17841 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
17842 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
17843 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
17844 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
17845 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
17846 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
17847 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
17848 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
17849 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
17850 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
17851 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
17852 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
17853 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
17854 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
17855 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
17856 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
17857 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
17858 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
17859 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
17860 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
17861 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
17862 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
17863 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
17864 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
17865 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
17866 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
17867 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
17868 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
17869 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
17870 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17871 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17872 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
17873 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
17874 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
17875 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
17876 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
17877 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
17878 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
17879 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
17880 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
17881 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"`'
17882 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
17883 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
17884 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
17885 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
17886 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
17887 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
17888 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
17889 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
17890 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
17891 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
17892 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
17893 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
17894 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
17895 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
17896 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
17897 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17898 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
17899 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
17900 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
17901 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
17902 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
17903 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
17904 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
17905 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
17906 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17907 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
17908 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
17909 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
17910 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
17911 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
17912 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
17913 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
17914 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
17915 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
17916 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
17917 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
17918 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
17919 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
17920 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
17921 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
17922 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
17923 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
17924 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
17925 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
17926 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
17927 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
17928 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
17929 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
17930 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
17931 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
17932 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
17933 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
17934 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
17935 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
17936 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
17937 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
17938 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
17939 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
17940 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
17941 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
17942 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
17943 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
17944 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
17945 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
17946 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
17947 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
17948 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
17949 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
17950 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
17951 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
17952 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
17953 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
17954 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
17955 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
17956 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
17957 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
17958 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
17959 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
17960 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
17961 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
17962 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17963 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
17964 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
17965 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
17966 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
17967 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
17968 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
17969 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
17970 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
17971 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
17972 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17973 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17974 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
17975 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
17976 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
17977 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
17978 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17979 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
17980 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
17981 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
17982 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17983 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
17984 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
17985 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
17986 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
17987 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
17988 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
17989 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
17990 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
17991 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
17992 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
17993 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
17994 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
17995 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
17996 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
17997 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17998 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
17999 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18000 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18001 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18002 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18003 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18004 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18005 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18006 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18007 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18008
18009 LTCC='$LTCC'
18010 LTCFLAGS='$LTCFLAGS'
18011 compiler='$compiler_DEFAULT'
18012
18013 # A function that is used when there is no print builtin or printf.
18014 func_fallback_echo ()
18015 {
18016 eval 'cat <<_LTECHO_EOF
18017 \$1
18018 _LTECHO_EOF'
18019 }
18020
18021 # Quote evaled strings.
18022 for var in SHELL \
18023 ECHO \
18024 SED \
18025 GREP \
18026 EGREP \
18027 FGREP \
18028 LD \
18029 NM \
18030 LN_S \
18031 lt_SP2NL \
18032 lt_NL2SP \
18033 reload_flag \
18034 OBJDUMP \
18035 deplibs_check_method \
18036 file_magic_cmd \
18037 AR \
18038 AR_FLAGS \
18039 STRIP \
18040 RANLIB \
18041 CC \
18042 CFLAGS \
18043 compiler \
18044 lt_cv_sys_global_symbol_pipe \
18045 lt_cv_sys_global_symbol_to_cdecl \
18046 lt_cv_sys_global_symbol_to_c_name_address \
18047 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18048 lt_prog_compiler_no_builtin_flag \
18049 lt_prog_compiler_wl \
18050 lt_prog_compiler_pic \
18051 lt_prog_compiler_static \
18052 lt_cv_prog_compiler_c_o \
18053 need_locks \
18054 DSYMUTIL \
18055 NMEDIT \
18056 LIPO \
18057 OTOOL \
18058 OTOOL64 \
18059 shrext_cmds \
18060 export_dynamic_flag_spec \
18061 whole_archive_flag_spec \
18062 compiler_needs_object \
18063 with_gnu_ld \
18064 allow_undefined_flag \
18065 no_undefined_flag \
18066 hardcode_libdir_flag_spec \
18067 hardcode_libdir_flag_spec_ld \
18068 hardcode_libdir_separator \
18069 fix_srcfile_path \
18070 exclude_expsyms \
18071 include_expsyms \
18072 file_list_spec \
18073 variables_saved_for_relink \
18074 libname_spec \
18075 library_names_spec \
18076 soname_spec \
18077 install_override_mode \
18078 finish_eval \
18079 old_striplib \
18080 striplib \
18081 compiler_lib_search_dirs \
18082 predep_objects \
18083 postdep_objects \
18084 predeps \
18085 postdeps \
18086 compiler_lib_search_path \
18087 LD_FC \
18088 reload_flag_FC \
18089 compiler_FC \
18090 lt_prog_compiler_no_builtin_flag_FC \
18091 lt_prog_compiler_wl_FC \
18092 lt_prog_compiler_pic_FC \
18093 lt_prog_compiler_static_FC \
18094 lt_cv_prog_compiler_c_o_FC \
18095 export_dynamic_flag_spec_FC \
18096 whole_archive_flag_spec_FC \
18097 compiler_needs_object_FC \
18098 with_gnu_ld_FC \
18099 allow_undefined_flag_FC \
18100 no_undefined_flag_FC \
18101 hardcode_libdir_flag_spec_FC \
18102 hardcode_libdir_flag_spec_ld_FC \
18103 hardcode_libdir_separator_FC \
18104 fix_srcfile_path_FC \
18105 exclude_expsyms_FC \
18106 include_expsyms_FC \
18107 file_list_spec_FC \
18108 compiler_lib_search_dirs_FC \
18109 predep_objects_FC \
18110 postdep_objects_FC \
18111 predeps_FC \
18112 postdeps_FC \
18113 compiler_lib_search_path_FC; do
18114 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18115 *[\\\\\\\`\\"\\\$]*)
18116 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18117 ;;
18118 *)
18119 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18120 ;;
18121 esac
18122 done
18123
18124 # Double-quote double-evaled strings.
18125 for var in reload_cmds \
18126 old_postinstall_cmds \
18127 old_postuninstall_cmds \
18128 old_archive_cmds \
18129 extract_expsyms_cmds \
18130 old_archive_from_new_cmds \
18131 old_archive_from_expsyms_cmds \
18132 archive_cmds \
18133 archive_expsym_cmds \
18134 module_cmds \
18135 module_expsym_cmds \
18136 export_symbols_cmds \
18137 prelink_cmds \
18138 postinstall_cmds \
18139 postuninstall_cmds \
18140 finish_cmds \
18141 sys_lib_search_path_spec \
18142 sys_lib_dlsearch_path_spec \
18143 reload_cmds_FC \
18144 old_archive_cmds_FC \
18145 old_archive_from_new_cmds_FC \
18146 old_archive_from_expsyms_cmds_FC \
18147 archive_cmds_FC \
18148 archive_expsym_cmds_FC \
18149 module_cmds_FC \
18150 module_expsym_cmds_FC \
18151 export_symbols_cmds_FC \
18152 prelink_cmds_FC; do
18153 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18154 *[\\\\\\\`\\"\\\$]*)
18155 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18156 ;;
18157 *)
18158 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18159 ;;
18160 esac
18161 done
18162
18163 ac_aux_dir='$ac_aux_dir'
18164 xsi_shell='$xsi_shell'
18165 lt_shell_append='$lt_shell_append'
18166
18167 # See if we are running on zsh, and set the options which allow our
18168 # commands through without removal of \ escapes INIT.
18169 if test -n "\${ZSH_VERSION+set}" ; then
18170 setopt NO_GLOB_SUBST
18171 fi
18172
18173
18174 PACKAGE='$PACKAGE'
18175 VERSION='$VERSION'
18176 TIMESTAMP='$TIMESTAMP'
18177 RM='$RM'
18178 ofile='$ofile'
18179
18180
18181
18182
18183
18184
18185 _ACEOF
18186
18187 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18188
18189 # Handling of arguments.
18190 for ac_config_target in $ac_config_targets
18191 do
18192 case $ac_config_target in
18193 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18194 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18195 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18196 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18197 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18198 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18199 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18200 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18201 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18202 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18203 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18204 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18205 "testsuite/libgomp-site-extra.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-site-extra.exp" ;;
18206
18207 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18208 esac
18209 done
18210
18211
18212 # If the user did not use the arguments to specify the items to instantiate,
18213 # then the envvar interface is used. Set only those that are not.
18214 # We use the long form for the default assignment because of an extremely
18215 # bizarre bug on SunOS 4.1.3.
18216 if $ac_need_defaults; then
18217 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18218 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18219 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18220 fi
18221
18222 # Have a temporary directory for convenience. Make it in the build tree
18223 # simply because there is no reason against having it here, and in addition,
18224 # creating and moving files from /tmp can sometimes cause problems.
18225 # Hook for its removal unless debugging.
18226 # Note that there is a small window in which the directory will not be cleaned:
18227 # after its creation but before its name has been assigned to `$tmp'.
18228 $debug ||
18229 {
18230 tmp= ac_tmp=
18231 trap 'exit_status=$?
18232 : "${ac_tmp:=$tmp}"
18233 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18234 ' 0
18235 trap 'as_fn_exit 1' 1 2 13 15
18236 }
18237 # Create a (secure) tmp directory for tmp files.
18238
18239 {
18240 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18241 test -d "$tmp"
18242 } ||
18243 {
18244 tmp=./conf$$-$RANDOM
18245 (umask 077 && mkdir "$tmp")
18246 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18247 ac_tmp=$tmp
18248
18249 # Set up the scripts for CONFIG_FILES section.
18250 # No need to generate them if there are no CONFIG_FILES.
18251 # This happens for instance with `./config.status config.h'.
18252 if test -n "$CONFIG_FILES"; then
18253
18254
18255 ac_cr=`echo X | tr X '\015'`
18256 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18257 # But we know of no other shell where ac_cr would be empty at this
18258 # point, so we can use a bashism as a fallback.
18259 if test "x$ac_cr" = x; then
18260 eval ac_cr=\$\'\\r\'
18261 fi
18262 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18263 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18264 ac_cs_awk_cr='\\r'
18265 else
18266 ac_cs_awk_cr=$ac_cr
18267 fi
18268
18269 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18270 _ACEOF
18271
18272
18273 {
18274 echo "cat >conf$$subs.awk <<_ACEOF" &&
18275 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18276 echo "_ACEOF"
18277 } >conf$$subs.sh ||
18278 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18279 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18280 ac_delim='%!_!# '
18281 for ac_last_try in false false false false false :; do
18282 . ./conf$$subs.sh ||
18283 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18284
18285 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18286 if test $ac_delim_n = $ac_delim_num; then
18287 break
18288 elif $ac_last_try; then
18289 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18290 else
18291 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18292 fi
18293 done
18294 rm -f conf$$subs.sh
18295
18296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18297 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18298 _ACEOF
18299 sed -n '
18300 h
18301 s/^/S["/; s/!.*/"]=/
18302 p
18303 g
18304 s/^[^!]*!//
18305 :repl
18306 t repl
18307 s/'"$ac_delim"'$//
18308 t delim
18309 :nl
18310 h
18311 s/\(.\{148\}\)..*/\1/
18312 t more1
18313 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18314 p
18315 n
18316 b repl
18317 :more1
18318 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18319 p
18320 g
18321 s/.\{148\}//
18322 t nl
18323 :delim
18324 h
18325 s/\(.\{148\}\)..*/\1/
18326 t more2
18327 s/["\\]/\\&/g; s/^/"/; s/$/"/
18328 p
18329 b
18330 :more2
18331 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18332 p
18333 g
18334 s/.\{148\}//
18335 t delim
18336 ' <conf$$subs.awk | sed '
18337 /^[^""]/{
18338 N
18339 s/\n//
18340 }
18341 ' >>$CONFIG_STATUS || ac_write_fail=1
18342 rm -f conf$$subs.awk
18343 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18344 _ACAWK
18345 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18346 for (key in S) S_is_set[key] = 1
18347 FS = "\a"
18348
18349 }
18350 {
18351 line = $ 0
18352 nfields = split(line, field, "@")
18353 substed = 0
18354 len = length(field[1])
18355 for (i = 2; i < nfields; i++) {
18356 key = field[i]
18357 keylen = length(key)
18358 if (S_is_set[key]) {
18359 value = S[key]
18360 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18361 len += length(value) + length(field[++i])
18362 substed = 1
18363 } else
18364 len += 1 + keylen
18365 }
18366
18367 print line
18368 }
18369
18370 _ACAWK
18371 _ACEOF
18372 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18373 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18374 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18375 else
18376 cat
18377 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18378 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18379 _ACEOF
18380
18381 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18382 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18383 # trailing colons and then remove the whole line if VPATH becomes empty
18384 # (actually we leave an empty line to preserve line numbers).
18385 if test "x$srcdir" = x.; then
18386 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18387 h
18388 s///
18389 s/^/:/
18390 s/[ ]*$/:/
18391 s/:\$(srcdir):/:/g
18392 s/:\${srcdir}:/:/g
18393 s/:@srcdir@:/:/g
18394 s/^:*//
18395 s/:*$//
18396 x
18397 s/\(=[ ]*\).*/\1/
18398 G
18399 s/\n//
18400 s/^[^=]*=[ ]*$//
18401 }'
18402 fi
18403
18404 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18405 fi # test -n "$CONFIG_FILES"
18406
18407 # Set up the scripts for CONFIG_HEADERS section.
18408 # No need to generate them if there are no CONFIG_HEADERS.
18409 # This happens for instance with `./config.status Makefile'.
18410 if test -n "$CONFIG_HEADERS"; then
18411 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18412 BEGIN {
18413 _ACEOF
18414
18415 # Transform confdefs.h into an awk script `defines.awk', embedded as
18416 # here-document in config.status, that substitutes the proper values into
18417 # config.h.in to produce config.h.
18418
18419 # Create a delimiter string that does not exist in confdefs.h, to ease
18420 # handling of long lines.
18421 ac_delim='%!_!# '
18422 for ac_last_try in false false :; do
18423 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18424 if test -z "$ac_tt"; then
18425 break
18426 elif $ac_last_try; then
18427 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18428 else
18429 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18430 fi
18431 done
18432
18433 # For the awk script, D is an array of macro values keyed by name,
18434 # likewise P contains macro parameters if any. Preserve backslash
18435 # newline sequences.
18436
18437 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18438 sed -n '
18439 s/.\{148\}/&'"$ac_delim"'/g
18440 t rset
18441 :rset
18442 s/^[ ]*#[ ]*define[ ][ ]*/ /
18443 t def
18444 d
18445 :def
18446 s/\\$//
18447 t bsnl
18448 s/["\\]/\\&/g
18449 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18450 D["\1"]=" \3"/p
18451 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18452 d
18453 :bsnl
18454 s/["\\]/\\&/g
18455 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18456 D["\1"]=" \3\\\\\\n"\\/p
18457 t cont
18458 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18459 t cont
18460 d
18461 :cont
18462 n
18463 s/.\{148\}/&'"$ac_delim"'/g
18464 t clear
18465 :clear
18466 s/\\$//
18467 t bsnlc
18468 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18469 d
18470 :bsnlc
18471 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18472 b cont
18473 ' <confdefs.h | sed '
18474 s/'"$ac_delim"'/"\\\
18475 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18476
18477 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18478 for (key in D) D_is_set[key] = 1
18479 FS = "\a"
18480 }
18481 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18482 line = \$ 0
18483 split(line, arg, " ")
18484 if (arg[1] == "#") {
18485 defundef = arg[2]
18486 mac1 = arg[3]
18487 } else {
18488 defundef = substr(arg[1], 2)
18489 mac1 = arg[2]
18490 }
18491 split(mac1, mac2, "(") #)
18492 macro = mac2[1]
18493 prefix = substr(line, 1, index(line, defundef) - 1)
18494 if (D_is_set[macro]) {
18495 # Preserve the white space surrounding the "#".
18496 print prefix "define", macro P[macro] D[macro]
18497 next
18498 } else {
18499 # Replace #undef with comments. This is necessary, for example,
18500 # in the case of _POSIX_SOURCE, which is predefined and required
18501 # on some systems where configure will not decide to define it.
18502 if (defundef == "undef") {
18503 print "/*", prefix defundef, macro, "*/"
18504 next
18505 }
18506 }
18507 }
18508 { print }
18509 _ACAWK
18510 _ACEOF
18511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18512 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18513 fi # test -n "$CONFIG_HEADERS"
18514
18515
18516 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18517 shift
18518 for ac_tag
18519 do
18520 case $ac_tag in
18521 :[FHLC]) ac_mode=$ac_tag; continue;;
18522 esac
18523 case $ac_mode$ac_tag in
18524 :[FHL]*:*);;
18525 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18526 :[FH]-) ac_tag=-:-;;
18527 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18528 esac
18529 ac_save_IFS=$IFS
18530 IFS=:
18531 set x $ac_tag
18532 IFS=$ac_save_IFS
18533 shift
18534 ac_file=$1
18535 shift
18536
18537 case $ac_mode in
18538 :L) ac_source=$1;;
18539 :[FH])
18540 ac_file_inputs=
18541 for ac_f
18542 do
18543 case $ac_f in
18544 -) ac_f="$ac_tmp/stdin";;
18545 *) # Look for the file first in the build tree, then in the source tree
18546 # (if the path is not absolute). The absolute path cannot be DOS-style,
18547 # because $ac_f cannot contain `:'.
18548 test -f "$ac_f" ||
18549 case $ac_f in
18550 [\\/$]*) false;;
18551 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18552 esac ||
18553 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18554 esac
18555 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18556 as_fn_append ac_file_inputs " '$ac_f'"
18557 done
18558
18559 # Let's still pretend it is `configure' which instantiates (i.e., don't
18560 # use $as_me), people would be surprised to read:
18561 # /* config.h. Generated by config.status. */
18562 configure_input='Generated from '`
18563 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18564 `' by configure.'
18565 if test x"$ac_file" != x-; then
18566 configure_input="$ac_file. $configure_input"
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18568 $as_echo "$as_me: creating $ac_file" >&6;}
18569 fi
18570 # Neutralize special characters interpreted by sed in replacement strings.
18571 case $configure_input in #(
18572 *\&* | *\|* | *\\* )
18573 ac_sed_conf_input=`$as_echo "$configure_input" |
18574 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18575 *) ac_sed_conf_input=$configure_input;;
18576 esac
18577
18578 case $ac_tag in
18579 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18580 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18581 esac
18582 ;;
18583 esac
18584
18585 ac_dir=`$as_dirname -- "$ac_file" ||
18586 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18587 X"$ac_file" : 'X\(//\)[^/]' \| \
18588 X"$ac_file" : 'X\(//\)$' \| \
18589 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18590 $as_echo X"$ac_file" |
18591 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18592 s//\1/
18593 q
18594 }
18595 /^X\(\/\/\)[^/].*/{
18596 s//\1/
18597 q
18598 }
18599 /^X\(\/\/\)$/{
18600 s//\1/
18601 q
18602 }
18603 /^X\(\/\).*/{
18604 s//\1/
18605 q
18606 }
18607 s/.*/./; q'`
18608 as_dir="$ac_dir"; as_fn_mkdir_p
18609 ac_builddir=.
18610
18611 case "$ac_dir" in
18612 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18613 *)
18614 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18615 # A ".." for each directory in $ac_dir_suffix.
18616 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18617 case $ac_top_builddir_sub in
18618 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18619 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18620 esac ;;
18621 esac
18622 ac_abs_top_builddir=$ac_pwd
18623 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18624 # for backward compatibility:
18625 ac_top_builddir=$ac_top_build_prefix
18626
18627 case $srcdir in
18628 .) # We are building in place.
18629 ac_srcdir=.
18630 ac_top_srcdir=$ac_top_builddir_sub
18631 ac_abs_top_srcdir=$ac_pwd ;;
18632 [\\/]* | ?:[\\/]* ) # Absolute name.
18633 ac_srcdir=$srcdir$ac_dir_suffix;
18634 ac_top_srcdir=$srcdir
18635 ac_abs_top_srcdir=$srcdir ;;
18636 *) # Relative name.
18637 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18638 ac_top_srcdir=$ac_top_build_prefix$srcdir
18639 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18640 esac
18641 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18642
18643
18644 case $ac_mode in
18645 :F)
18646 #
18647 # CONFIG_FILE
18648 #
18649
18650 case $INSTALL in
18651 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18652 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18653 esac
18654 ac_MKDIR_P=$MKDIR_P
18655 case $MKDIR_P in
18656 [\\/$]* | ?:[\\/]* ) ;;
18657 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18658 esac
18659 _ACEOF
18660
18661 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18662 # If the template does not know about datarootdir, expand it.
18663 # FIXME: This hack should be removed a few years after 2.60.
18664 ac_datarootdir_hack=; ac_datarootdir_seen=
18665 ac_sed_dataroot='
18666 /datarootdir/ {
18667 p
18668 q
18669 }
18670 /@datadir@/p
18671 /@docdir@/p
18672 /@infodir@/p
18673 /@localedir@/p
18674 /@mandir@/p'
18675 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18676 *datarootdir*) ac_datarootdir_seen=yes;;
18677 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18678 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18679 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18680 _ACEOF
18681 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18682 ac_datarootdir_hack='
18683 s&@datadir@&$datadir&g
18684 s&@docdir@&$docdir&g
18685 s&@infodir@&$infodir&g
18686 s&@localedir@&$localedir&g
18687 s&@mandir@&$mandir&g
18688 s&\\\${datarootdir}&$datarootdir&g' ;;
18689 esac
18690 _ACEOF
18691
18692 # Neutralize VPATH when `$srcdir' = `.'.
18693 # Shell code in configure.ac might set extrasub.
18694 # FIXME: do we really want to maintain this feature?
18695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18696 ac_sed_extra="$ac_vpsub
18697 $extrasub
18698 _ACEOF
18699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18700 :t
18701 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18702 s|@configure_input@|$ac_sed_conf_input|;t t
18703 s&@top_builddir@&$ac_top_builddir_sub&;t t
18704 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18705 s&@srcdir@&$ac_srcdir&;t t
18706 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18707 s&@top_srcdir@&$ac_top_srcdir&;t t
18708 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18709 s&@builddir@&$ac_builddir&;t t
18710 s&@abs_builddir@&$ac_abs_builddir&;t t
18711 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18712 s&@INSTALL@&$ac_INSTALL&;t t
18713 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18714 $ac_datarootdir_hack
18715 "
18716 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18717 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18718
18719 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18720 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18721 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18722 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18723 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18724 which seems to be undefined. Please make sure it is defined" >&5
18725 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18726 which seems to be undefined. Please make sure it is defined" >&2;}
18727
18728 rm -f "$ac_tmp/stdin"
18729 case $ac_file in
18730 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18731 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18732 esac \
18733 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18734 ;;
18735 :H)
18736 #
18737 # CONFIG_HEADER
18738 #
18739 if test x"$ac_file" != x-; then
18740 {
18741 $as_echo "/* $configure_input */" \
18742 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18743 } >"$ac_tmp/config.h" \
18744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18745 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18747 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18748 else
18749 rm -f "$ac_file"
18750 mv "$ac_tmp/config.h" "$ac_file" \
18751 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18752 fi
18753 else
18754 $as_echo "/* $configure_input */" \
18755 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18756 || as_fn_error $? "could not create -" "$LINENO" 5
18757 fi
18758 # Compute "$ac_file"'s index in $config_headers.
18759 _am_arg="$ac_file"
18760 _am_stamp_count=1
18761 for _am_header in $config_headers :; do
18762 case $_am_header in
18763 $_am_arg | $_am_arg:* )
18764 break ;;
18765 * )
18766 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18767 esac
18768 done
18769 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18770 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18771 X"$_am_arg" : 'X\(//\)[^/]' \| \
18772 X"$_am_arg" : 'X\(//\)$' \| \
18773 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18774 $as_echo X"$_am_arg" |
18775 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18776 s//\1/
18777 q
18778 }
18779 /^X\(\/\/\)[^/].*/{
18780 s//\1/
18781 q
18782 }
18783 /^X\(\/\/\)$/{
18784 s//\1/
18785 q
18786 }
18787 /^X\(\/\).*/{
18788 s//\1/
18789 q
18790 }
18791 s/.*/./; q'`/stamp-h$_am_stamp_count
18792 ;;
18793
18794 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
18795 $as_echo "$as_me: executing $ac_file commands" >&6;}
18796 ;;
18797 esac
18798
18799
18800 case $ac_file$ac_mode in
18801 "default-1":C)
18802 # Only add multilib support code if we just rebuilt the top-level
18803 # Makefile.
18804 case " $CONFIG_FILES " in
18805 *" Makefile "*)
18806 ac_file=Makefile . ${multi_basedir}/config-ml.in
18807 ;;
18808 esac ;;
18809 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
18810 # Older Autoconf quotes --file arguments for eval, but not when files
18811 # are listed without --file. Let's play safe and only enable the eval
18812 # if we detect the quoting.
18813 case $CONFIG_FILES in
18814 *\'*) eval set x "$CONFIG_FILES" ;;
18815 *) set x $CONFIG_FILES ;;
18816 esac
18817 shift
18818 for mf
18819 do
18820 # Strip MF so we end up with the name of the file.
18821 mf=`echo "$mf" | sed -e 's/:.*$//'`
18822 # Check whether this is an Automake generated Makefile or not.
18823 # We used to match only the files named 'Makefile.in', but
18824 # some people rename them; so instead we look at the file content.
18825 # Grep'ing the first line is not enough: some people post-process
18826 # each Makefile.in and add a new line on top of each file to say so.
18827 # Grep'ing the whole file is not good either: AIX grep has a line
18828 # limit of 2048, but all sed's we know have understand at least 4000.
18829 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
18830 dirpart=`$as_dirname -- "$mf" ||
18831 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18832 X"$mf" : 'X\(//\)[^/]' \| \
18833 X"$mf" : 'X\(//\)$' \| \
18834 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
18835 $as_echo X"$mf" |
18836 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18837 s//\1/
18838 q
18839 }
18840 /^X\(\/\/\)[^/].*/{
18841 s//\1/
18842 q
18843 }
18844 /^X\(\/\/\)$/{
18845 s//\1/
18846 q
18847 }
18848 /^X\(\/\).*/{
18849 s//\1/
18850 q
18851 }
18852 s/.*/./; q'`
18853 else
18854 continue
18855 fi
18856 # Extract the definition of DEPDIR, am__include, and am__quote
18857 # from the Makefile without running 'make'.
18858 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
18859 test -z "$DEPDIR" && continue
18860 am__include=`sed -n 's/^am__include = //p' < "$mf"`
18861 test -z "$am__include" && continue
18862 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
18863 # Find all dependency output files, they are included files with
18864 # $(DEPDIR) in their names. We invoke sed twice because it is the
18865 # simplest approach to changing $(DEPDIR) to its actual value in the
18866 # expansion.
18867 for file in `sed -n "
18868 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
18869 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
18870 # Make sure the directory exists.
18871 test -f "$dirpart/$file" && continue
18872 fdir=`$as_dirname -- "$file" ||
18873 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18874 X"$file" : 'X\(//\)[^/]' \| \
18875 X"$file" : 'X\(//\)$' \| \
18876 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
18877 $as_echo X"$file" |
18878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18879 s//\1/
18880 q
18881 }
18882 /^X\(\/\/\)[^/].*/{
18883 s//\1/
18884 q
18885 }
18886 /^X\(\/\/\)$/{
18887 s//\1/
18888 q
18889 }
18890 /^X\(\/\).*/{
18891 s//\1/
18892 q
18893 }
18894 s/.*/./; q'`
18895 as_dir=$dirpart/$fdir; as_fn_mkdir_p
18896 # echo "creating $dirpart/$file"
18897 echo '# dummy' > "$dirpart/$file"
18898 done
18899 done
18900 }
18901 ;;
18902 "libtool":C)
18903
18904 # See if we are running on zsh, and set the options which allow our
18905 # commands through without removal of \ escapes.
18906 if test -n "${ZSH_VERSION+set}" ; then
18907 setopt NO_GLOB_SUBST
18908 fi
18909
18910 cfgfile="${ofile}T"
18911 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
18912 $RM "$cfgfile"
18913
18914 cat <<_LT_EOF >> "$cfgfile"
18915 #! $SHELL
18916
18917 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
18918 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
18919 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18920 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
18921 #
18922 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
18923 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
18924 # Written by Gordon Matzigkeit, 1996
18925 #
18926 # This file is part of GNU Libtool.
18927 #
18928 # GNU Libtool is free software; you can redistribute it and/or
18929 # modify it under the terms of the GNU General Public License as
18930 # published by the Free Software Foundation; either version 2 of
18931 # the License, or (at your option) any later version.
18932 #
18933 # As a special exception to the GNU General Public License,
18934 # if you distribute this file as part of a program or library that
18935 # is built using GNU Libtool, you may include this file under the
18936 # same distribution terms that you use for the rest of that program.
18937 #
18938 # GNU Libtool is distributed in the hope that it will be useful,
18939 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18940 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18941 # GNU General Public License for more details.
18942 #
18943 # You should have received a copy of the GNU General Public License
18944 # along with GNU Libtool; see the file COPYING. If not, a copy
18945 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
18946 # obtained by writing to the Free Software Foundation, Inc.,
18947 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
18948
18949
18950 # The names of the tagged configurations supported by this script.
18951 available_tags="FC "
18952
18953 # ### BEGIN LIBTOOL CONFIG
18954
18955 # Which release of libtool.m4 was used?
18956 macro_version=$macro_version
18957 macro_revision=$macro_revision
18958
18959 # Whether or not to build shared libraries.
18960 build_libtool_libs=$enable_shared
18961
18962 # Whether or not to build static libraries.
18963 build_old_libs=$enable_static
18964
18965 # What type of objects to build.
18966 pic_mode=$pic_mode
18967
18968 # Whether or not to optimize for fast installation.
18969 fast_install=$enable_fast_install
18970
18971 # Shell to use when invoking shell scripts.
18972 SHELL=$lt_SHELL
18973
18974 # An echo program that protects backslashes.
18975 ECHO=$lt_ECHO
18976
18977 # The host system.
18978 host_alias=$host_alias
18979 host=$host
18980 host_os=$host_os
18981
18982 # The build system.
18983 build_alias=$build_alias
18984 build=$build
18985 build_os=$build_os
18986
18987 # A sed program that does not truncate output.
18988 SED=$lt_SED
18989
18990 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
18991 Xsed="\$SED -e 1s/^X//"
18992
18993 # A grep program that handles long lines.
18994 GREP=$lt_GREP
18995
18996 # An ERE matcher.
18997 EGREP=$lt_EGREP
18998
18999 # A literal string matcher.
19000 FGREP=$lt_FGREP
19001
19002 # A BSD- or MS-compatible name lister.
19003 NM=$lt_NM
19004
19005 # Whether we need soft or hard links.
19006 LN_S=$lt_LN_S
19007
19008 # What is the maximum length of a command?
19009 max_cmd_len=$max_cmd_len
19010
19011 # Object file suffix (normally "o").
19012 objext=$ac_objext
19013
19014 # Executable file suffix (normally "").
19015 exeext=$exeext
19016
19017 # whether the shell understands "unset".
19018 lt_unset=$lt_unset
19019
19020 # turn spaces into newlines.
19021 SP2NL=$lt_lt_SP2NL
19022
19023 # turn newlines into spaces.
19024 NL2SP=$lt_lt_NL2SP
19025
19026 # An object symbol dumper.
19027 OBJDUMP=$lt_OBJDUMP
19028
19029 # Method to check whether dependent libraries are shared objects.
19030 deplibs_check_method=$lt_deplibs_check_method
19031
19032 # Command to use when deplibs_check_method == "file_magic".
19033 file_magic_cmd=$lt_file_magic_cmd
19034
19035 # The archiver.
19036 AR=$lt_AR
19037 AR_FLAGS=$lt_AR_FLAGS
19038
19039 # A symbol stripping program.
19040 STRIP=$lt_STRIP
19041
19042 # Commands used to install an old-style archive.
19043 RANLIB=$lt_RANLIB
19044 old_postinstall_cmds=$lt_old_postinstall_cmds
19045 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19046
19047 # Whether to use a lock for old archive extraction.
19048 lock_old_archive_extraction=$lock_old_archive_extraction
19049
19050 # A C compiler.
19051 LTCC=$lt_CC
19052
19053 # LTCC compiler flags.
19054 LTCFLAGS=$lt_CFLAGS
19055
19056 # Take the output of nm and produce a listing of raw symbols and C names.
19057 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19058
19059 # Transform the output of nm in a proper C declaration.
19060 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19061
19062 # Transform the output of nm in a C name address pair.
19063 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19064
19065 # Transform the output of nm in a C name address pair when lib prefix is needed.
19066 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19067
19068 # The name of the directory that contains temporary libtool files.
19069 objdir=$objdir
19070
19071 # Used to examine libraries when file_magic_cmd begins with "file".
19072 MAGIC_CMD=$MAGIC_CMD
19073
19074 # Must we lock files when doing compilation?
19075 need_locks=$lt_need_locks
19076
19077 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19078 DSYMUTIL=$lt_DSYMUTIL
19079
19080 # Tool to change global to local symbols on Mac OS X.
19081 NMEDIT=$lt_NMEDIT
19082
19083 # Tool to manipulate fat objects and archives on Mac OS X.
19084 LIPO=$lt_LIPO
19085
19086 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19087 OTOOL=$lt_OTOOL
19088
19089 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19090 OTOOL64=$lt_OTOOL64
19091
19092 # Old archive suffix (normally "a").
19093 libext=$libext
19094
19095 # Shared library suffix (normally ".so").
19096 shrext_cmds=$lt_shrext_cmds
19097
19098 # The commands to extract the exported symbol list from a shared archive.
19099 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19100
19101 # Variables whose values should be saved in libtool wrapper scripts and
19102 # restored at link time.
19103 variables_saved_for_relink=$lt_variables_saved_for_relink
19104
19105 # Do we need the "lib" prefix for modules?
19106 need_lib_prefix=$need_lib_prefix
19107
19108 # Do we need a version for libraries?
19109 need_version=$need_version
19110
19111 # Library versioning type.
19112 version_type=$version_type
19113
19114 # Shared library runtime path variable.
19115 runpath_var=$runpath_var
19116
19117 # Shared library path variable.
19118 shlibpath_var=$shlibpath_var
19119
19120 # Is shlibpath searched before the hard-coded library search path?
19121 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19122
19123 # Format of library name prefix.
19124 libname_spec=$lt_libname_spec
19125
19126 # List of archive names. First name is the real one, the rest are links.
19127 # The last name is the one that the linker finds with -lNAME
19128 library_names_spec=$lt_library_names_spec
19129
19130 # The coded name of the library, if different from the real name.
19131 soname_spec=$lt_soname_spec
19132
19133 # Permission mode override for installation of shared libraries.
19134 install_override_mode=$lt_install_override_mode
19135
19136 # Command to use after installation of a shared archive.
19137 postinstall_cmds=$lt_postinstall_cmds
19138
19139 # Command to use after uninstallation of a shared archive.
19140 postuninstall_cmds=$lt_postuninstall_cmds
19141
19142 # Commands used to finish a libtool library installation in a directory.
19143 finish_cmds=$lt_finish_cmds
19144
19145 # As "finish_cmds", except a single script fragment to be evaled but
19146 # not shown.
19147 finish_eval=$lt_finish_eval
19148
19149 # Whether we should hardcode library paths into libraries.
19150 hardcode_into_libs=$hardcode_into_libs
19151
19152 # Compile-time system search path for libraries.
19153 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19154
19155 # Run-time system search path for libraries.
19156 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19157
19158 # Whether dlopen is supported.
19159 dlopen_support=$enable_dlopen
19160
19161 # Whether dlopen of programs is supported.
19162 dlopen_self=$enable_dlopen_self
19163
19164 # Whether dlopen of statically linked programs is supported.
19165 dlopen_self_static=$enable_dlopen_self_static
19166
19167 # Commands to strip libraries.
19168 old_striplib=$lt_old_striplib
19169 striplib=$lt_striplib
19170
19171
19172 # The linker used to build libraries.
19173 LD=$lt_LD
19174
19175 # How to create reloadable object files.
19176 reload_flag=$lt_reload_flag
19177 reload_cmds=$lt_reload_cmds
19178
19179 # Commands used to build an old-style archive.
19180 old_archive_cmds=$lt_old_archive_cmds
19181
19182 # A language specific compiler.
19183 CC=$lt_compiler
19184
19185 # Is the compiler the GNU compiler?
19186 with_gcc=$GCC
19187
19188 # Compiler flag to turn off builtin functions.
19189 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19190
19191 # How to pass a linker flag through the compiler.
19192 wl=$lt_lt_prog_compiler_wl
19193
19194 # Additional compiler flags for building library objects.
19195 pic_flag=$lt_lt_prog_compiler_pic
19196
19197 # Compiler flag to prevent dynamic linking.
19198 link_static_flag=$lt_lt_prog_compiler_static
19199
19200 # Does compiler simultaneously support -c and -o options?
19201 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19202
19203 # Whether or not to add -lc for building shared libraries.
19204 build_libtool_need_lc=$archive_cmds_need_lc
19205
19206 # Whether or not to disallow shared libs when runtime libs are static.
19207 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19208
19209 # Compiler flag to allow reflexive dlopens.
19210 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19211
19212 # Compiler flag to generate shared objects directly from archives.
19213 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19214
19215 # Whether the compiler copes with passing no objects directly.
19216 compiler_needs_object=$lt_compiler_needs_object
19217
19218 # Create an old-style archive from a shared archive.
19219 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19220
19221 # Create a temporary old-style archive to link instead of a shared archive.
19222 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19223
19224 # Commands used to build a shared archive.
19225 archive_cmds=$lt_archive_cmds
19226 archive_expsym_cmds=$lt_archive_expsym_cmds
19227
19228 # Commands used to build a loadable module if different from building
19229 # a shared archive.
19230 module_cmds=$lt_module_cmds
19231 module_expsym_cmds=$lt_module_expsym_cmds
19232
19233 # Whether we are building with GNU ld or not.
19234 with_gnu_ld=$lt_with_gnu_ld
19235
19236 # Flag that allows shared libraries with undefined symbols to be built.
19237 allow_undefined_flag=$lt_allow_undefined_flag
19238
19239 # Flag that enforces no undefined symbols.
19240 no_undefined_flag=$lt_no_undefined_flag
19241
19242 # Flag to hardcode \$libdir into a binary during linking.
19243 # This must work even if \$libdir does not exist
19244 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19245
19246 # If ld is used when linking, flag to hardcode \$libdir into a binary
19247 # during linking. This must work even if \$libdir does not exist.
19248 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19249
19250 # Whether we need a single "-rpath" flag with a separated argument.
19251 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19252
19253 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19254 # DIR into the resulting binary.
19255 hardcode_direct=$hardcode_direct
19256
19257 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19258 # DIR into the resulting binary and the resulting library dependency is
19259 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19260 # library is relocated.
19261 hardcode_direct_absolute=$hardcode_direct_absolute
19262
19263 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19264 # into the resulting binary.
19265 hardcode_minus_L=$hardcode_minus_L
19266
19267 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19268 # into the resulting binary.
19269 hardcode_shlibpath_var=$hardcode_shlibpath_var
19270
19271 # Set to "yes" if building a shared library automatically hardcodes DIR
19272 # into the library and all subsequent libraries and executables linked
19273 # against it.
19274 hardcode_automatic=$hardcode_automatic
19275
19276 # Set to yes if linker adds runtime paths of dependent libraries
19277 # to runtime path list.
19278 inherit_rpath=$inherit_rpath
19279
19280 # Whether libtool must link a program against all its dependency libraries.
19281 link_all_deplibs=$link_all_deplibs
19282
19283 # Fix the shell variable \$srcfile for the compiler.
19284 fix_srcfile_path=$lt_fix_srcfile_path
19285
19286 # Set to "yes" if exported symbols are required.
19287 always_export_symbols=$always_export_symbols
19288
19289 # The commands to list exported symbols.
19290 export_symbols_cmds=$lt_export_symbols_cmds
19291
19292 # Symbols that should not be listed in the preloaded symbols.
19293 exclude_expsyms=$lt_exclude_expsyms
19294
19295 # Symbols that must always be exported.
19296 include_expsyms=$lt_include_expsyms
19297
19298 # Commands necessary for linking programs (against libraries) with templates.
19299 prelink_cmds=$lt_prelink_cmds
19300
19301 # Specify filename containing input files.
19302 file_list_spec=$lt_file_list_spec
19303
19304 # How to hardcode a shared library path into an executable.
19305 hardcode_action=$hardcode_action
19306
19307 # The directories searched by this compiler when creating a shared library.
19308 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19309
19310 # Dependencies to place before and after the objects being linked to
19311 # create a shared library.
19312 predep_objects=$lt_predep_objects
19313 postdep_objects=$lt_postdep_objects
19314 predeps=$lt_predeps
19315 postdeps=$lt_postdeps
19316
19317 # The library search path used internally by the compiler when linking
19318 # a shared library.
19319 compiler_lib_search_path=$lt_compiler_lib_search_path
19320
19321 # ### END LIBTOOL CONFIG
19322
19323 _LT_EOF
19324
19325 case $host_os in
19326 aix3*)
19327 cat <<\_LT_EOF >> "$cfgfile"
19328 # AIX sometimes has problems with the GCC collect2 program. For some
19329 # reason, if we set the COLLECT_NAMES environment variable, the problems
19330 # vanish in a puff of smoke.
19331 if test "X${COLLECT_NAMES+set}" != Xset; then
19332 COLLECT_NAMES=
19333 export COLLECT_NAMES
19334 fi
19335 _LT_EOF
19336 ;;
19337 esac
19338
19339
19340 ltmain="$ac_aux_dir/ltmain.sh"
19341
19342
19343 # We use sed instead of cat because bash on DJGPP gets confused if
19344 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19345 # text mode, it properly converts lines to CR/LF. This bash problem
19346 # is reportedly fixed, but why not run on old versions too?
19347 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19348 || (rm -f "$cfgfile"; exit 1)
19349
19350 case $xsi_shell in
19351 yes)
19352 cat << \_LT_EOF >> "$cfgfile"
19353
19354 # func_dirname file append nondir_replacement
19355 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19356 # otherwise set result to NONDIR_REPLACEMENT.
19357 func_dirname ()
19358 {
19359 case ${1} in
19360 */*) func_dirname_result="${1%/*}${2}" ;;
19361 * ) func_dirname_result="${3}" ;;
19362 esac
19363 }
19364
19365 # func_basename file
19366 func_basename ()
19367 {
19368 func_basename_result="${1##*/}"
19369 }
19370
19371 # func_dirname_and_basename file append nondir_replacement
19372 # perform func_basename and func_dirname in a single function
19373 # call:
19374 # dirname: Compute the dirname of FILE. If nonempty,
19375 # add APPEND to the result, otherwise set result
19376 # to NONDIR_REPLACEMENT.
19377 # value returned in "$func_dirname_result"
19378 # basename: Compute filename of FILE.
19379 # value retuned in "$func_basename_result"
19380 # Implementation must be kept synchronized with func_dirname
19381 # and func_basename. For efficiency, we do not delegate to
19382 # those functions but instead duplicate the functionality here.
19383 func_dirname_and_basename ()
19384 {
19385 case ${1} in
19386 */*) func_dirname_result="${1%/*}${2}" ;;
19387 * ) func_dirname_result="${3}" ;;
19388 esac
19389 func_basename_result="${1##*/}"
19390 }
19391
19392 # func_stripname prefix suffix name
19393 # strip PREFIX and SUFFIX off of NAME.
19394 # PREFIX and SUFFIX must not contain globbing or regex special
19395 # characters, hashes, percent signs, but SUFFIX may contain a leading
19396 # dot (in which case that matches only a dot).
19397 func_stripname ()
19398 {
19399 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19400 # positional parameters, so assign one to ordinary parameter first.
19401 func_stripname_result=${3}
19402 func_stripname_result=${func_stripname_result#"${1}"}
19403 func_stripname_result=${func_stripname_result%"${2}"}
19404 }
19405
19406 # func_opt_split
19407 func_opt_split ()
19408 {
19409 func_opt_split_opt=${1%%=*}
19410 func_opt_split_arg=${1#*=}
19411 }
19412
19413 # func_lo2o object
19414 func_lo2o ()
19415 {
19416 case ${1} in
19417 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19418 *) func_lo2o_result=${1} ;;
19419 esac
19420 }
19421
19422 # func_xform libobj-or-source
19423 func_xform ()
19424 {
19425 func_xform_result=${1%.*}.lo
19426 }
19427
19428 # func_arith arithmetic-term...
19429 func_arith ()
19430 {
19431 func_arith_result=$(( $* ))
19432 }
19433
19434 # func_len string
19435 # STRING may not start with a hyphen.
19436 func_len ()
19437 {
19438 func_len_result=${#1}
19439 }
19440
19441 _LT_EOF
19442 ;;
19443 *) # Bourne compatible functions.
19444 cat << \_LT_EOF >> "$cfgfile"
19445
19446 # func_dirname file append nondir_replacement
19447 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19448 # otherwise set result to NONDIR_REPLACEMENT.
19449 func_dirname ()
19450 {
19451 # Extract subdirectory from the argument.
19452 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19453 if test "X$func_dirname_result" = "X${1}"; then
19454 func_dirname_result="${3}"
19455 else
19456 func_dirname_result="$func_dirname_result${2}"
19457 fi
19458 }
19459
19460 # func_basename file
19461 func_basename ()
19462 {
19463 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19464 }
19465
19466
19467 # func_stripname prefix suffix name
19468 # strip PREFIX and SUFFIX off of NAME.
19469 # PREFIX and SUFFIX must not contain globbing or regex special
19470 # characters, hashes, percent signs, but SUFFIX may contain a leading
19471 # dot (in which case that matches only a dot).
19472 # func_strip_suffix prefix name
19473 func_stripname ()
19474 {
19475 case ${2} in
19476 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19477 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19478 esac
19479 }
19480
19481 # sed scripts:
19482 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19483 my_sed_long_arg='1s/^-[^=]*=//'
19484
19485 # func_opt_split
19486 func_opt_split ()
19487 {
19488 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19489 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19490 }
19491
19492 # func_lo2o object
19493 func_lo2o ()
19494 {
19495 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19496 }
19497
19498 # func_xform libobj-or-source
19499 func_xform ()
19500 {
19501 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19502 }
19503
19504 # func_arith arithmetic-term...
19505 func_arith ()
19506 {
19507 func_arith_result=`expr "$@"`
19508 }
19509
19510 # func_len string
19511 # STRING may not start with a hyphen.
19512 func_len ()
19513 {
19514 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19515 }
19516
19517 _LT_EOF
19518 esac
19519
19520 case $lt_shell_append in
19521 yes)
19522 cat << \_LT_EOF >> "$cfgfile"
19523
19524 # func_append var value
19525 # Append VALUE to the end of shell variable VAR.
19526 func_append ()
19527 {
19528 eval "$1+=\$2"
19529 }
19530 _LT_EOF
19531 ;;
19532 *)
19533 cat << \_LT_EOF >> "$cfgfile"
19534
19535 # func_append var value
19536 # Append VALUE to the end of shell variable VAR.
19537 func_append ()
19538 {
19539 eval "$1=\$$1\$2"
19540 }
19541
19542 _LT_EOF
19543 ;;
19544 esac
19545
19546
19547 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19548 || (rm -f "$cfgfile"; exit 1)
19549
19550 mv -f "$cfgfile" "$ofile" ||
19551 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19552 chmod +x "$ofile"
19553
19554
19555 cat <<_LT_EOF >> "$ofile"
19556
19557 # ### BEGIN LIBTOOL TAG CONFIG: FC
19558
19559 # The linker used to build libraries.
19560 LD=$lt_LD_FC
19561
19562 # How to create reloadable object files.
19563 reload_flag=$lt_reload_flag_FC
19564 reload_cmds=$lt_reload_cmds_FC
19565
19566 # Commands used to build an old-style archive.
19567 old_archive_cmds=$lt_old_archive_cmds_FC
19568
19569 # A language specific compiler.
19570 CC=$lt_compiler_FC
19571
19572 # Is the compiler the GNU compiler?
19573 with_gcc=$GCC_FC
19574
19575 # Compiler flag to turn off builtin functions.
19576 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19577
19578 # How to pass a linker flag through the compiler.
19579 wl=$lt_lt_prog_compiler_wl_FC
19580
19581 # Additional compiler flags for building library objects.
19582 pic_flag=$lt_lt_prog_compiler_pic_FC
19583
19584 # Compiler flag to prevent dynamic linking.
19585 link_static_flag=$lt_lt_prog_compiler_static_FC
19586
19587 # Does compiler simultaneously support -c and -o options?
19588 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19589
19590 # Whether or not to add -lc for building shared libraries.
19591 build_libtool_need_lc=$archive_cmds_need_lc_FC
19592
19593 # Whether or not to disallow shared libs when runtime libs are static.
19594 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19595
19596 # Compiler flag to allow reflexive dlopens.
19597 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19598
19599 # Compiler flag to generate shared objects directly from archives.
19600 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19601
19602 # Whether the compiler copes with passing no objects directly.
19603 compiler_needs_object=$lt_compiler_needs_object_FC
19604
19605 # Create an old-style archive from a shared archive.
19606 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19607
19608 # Create a temporary old-style archive to link instead of a shared archive.
19609 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19610
19611 # Commands used to build a shared archive.
19612 archive_cmds=$lt_archive_cmds_FC
19613 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19614
19615 # Commands used to build a loadable module if different from building
19616 # a shared archive.
19617 module_cmds=$lt_module_cmds_FC
19618 module_expsym_cmds=$lt_module_expsym_cmds_FC
19619
19620 # Whether we are building with GNU ld or not.
19621 with_gnu_ld=$lt_with_gnu_ld_FC
19622
19623 # Flag that allows shared libraries with undefined symbols to be built.
19624 allow_undefined_flag=$lt_allow_undefined_flag_FC
19625
19626 # Flag that enforces no undefined symbols.
19627 no_undefined_flag=$lt_no_undefined_flag_FC
19628
19629 # Flag to hardcode \$libdir into a binary during linking.
19630 # This must work even if \$libdir does not exist
19631 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19632
19633 # If ld is used when linking, flag to hardcode \$libdir into a binary
19634 # during linking. This must work even if \$libdir does not exist.
19635 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19636
19637 # Whether we need a single "-rpath" flag with a separated argument.
19638 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19639
19640 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19641 # DIR into the resulting binary.
19642 hardcode_direct=$hardcode_direct_FC
19643
19644 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19645 # DIR into the resulting binary and the resulting library dependency is
19646 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19647 # library is relocated.
19648 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19649
19650 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19651 # into the resulting binary.
19652 hardcode_minus_L=$hardcode_minus_L_FC
19653
19654 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19655 # into the resulting binary.
19656 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19657
19658 # Set to "yes" if building a shared library automatically hardcodes DIR
19659 # into the library and all subsequent libraries and executables linked
19660 # against it.
19661 hardcode_automatic=$hardcode_automatic_FC
19662
19663 # Set to yes if linker adds runtime paths of dependent libraries
19664 # to runtime path list.
19665 inherit_rpath=$inherit_rpath_FC
19666
19667 # Whether libtool must link a program against all its dependency libraries.
19668 link_all_deplibs=$link_all_deplibs_FC
19669
19670 # Fix the shell variable \$srcfile for the compiler.
19671 fix_srcfile_path=$lt_fix_srcfile_path_FC
19672
19673 # Set to "yes" if exported symbols are required.
19674 always_export_symbols=$always_export_symbols_FC
19675
19676 # The commands to list exported symbols.
19677 export_symbols_cmds=$lt_export_symbols_cmds_FC
19678
19679 # Symbols that should not be listed in the preloaded symbols.
19680 exclude_expsyms=$lt_exclude_expsyms_FC
19681
19682 # Symbols that must always be exported.
19683 include_expsyms=$lt_include_expsyms_FC
19684
19685 # Commands necessary for linking programs (against libraries) with templates.
19686 prelink_cmds=$lt_prelink_cmds_FC
19687
19688 # Specify filename containing input files.
19689 file_list_spec=$lt_file_list_spec_FC
19690
19691 # How to hardcode a shared library path into an executable.
19692 hardcode_action=$hardcode_action_FC
19693
19694 # The directories searched by this compiler when creating a shared library.
19695 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19696
19697 # Dependencies to place before and after the objects being linked to
19698 # create a shared library.
19699 predep_objects=$lt_predep_objects_FC
19700 postdep_objects=$lt_postdep_objects_FC
19701 predeps=$lt_predeps_FC
19702 postdeps=$lt_postdeps_FC
19703
19704 # The library search path used internally by the compiler when linking
19705 # a shared library.
19706 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19707
19708 # ### END LIBTOOL TAG CONFIG: FC
19709 _LT_EOF
19710
19711 ;;
19712
19713 esac
19714 done # for ac_tag
19715
19716
19717 as_fn_exit 0
19718 _ACEOF
19719 ac_clean_files=$ac_clean_files_save
19720
19721 test $ac_write_fail = 0 ||
19722 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19723
19724
19725 # configure is writing to config.log, and then calls config.status.
19726 # config.status does its own redirection, appending to config.log.
19727 # Unfortunately, on DOS this fails, as config.log is still kept open
19728 # by configure, so config.status won't be able to write to it; its
19729 # output is simply discarded. So we exec the FD to /dev/null,
19730 # effectively closing config.log, so it can be properly (re)opened and
19731 # appended to by config.status. When coming back to configure, we
19732 # need to make the FD available again.
19733 if test "$no_create" != yes; then
19734 ac_cs_success=:
19735 ac_config_status_args=
19736 test "$silent" = yes &&
19737 ac_config_status_args="$ac_config_status_args --quiet"
19738 exec 5>/dev/null
19739 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19740 exec 5>>config.log
19741 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19742 # would make configure fail if this is the last instruction.
19743 $ac_cs_success || as_fn_exit 1
19744 fi
19745 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19747 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
19748 fi
19749