]> git.ipfire.org Git - thirdparty/gcc.git/blob - libgomp/configure
[libgomp] Clarify difference between offload target, offload plugin, and OpenACC...
[thirdparty/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 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE
657 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE
658 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE
659 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE
660 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE
661 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE
662 OPT_LDFLAGS
663 SECTION_LDFLAGS
664 PLUGIN_HSA_FALSE
665 PLUGIN_HSA_TRUE
666 PLUGIN_NVPTX_FALSE
667 PLUGIN_NVPTX_TRUE
668 offload_additional_lib_paths
669 offload_additional_options
670 offload_plugins
671 PLUGIN_HSA_LIBS
672 PLUGIN_HSA_LDFLAGS
673 PLUGIN_HSA_CPPFLAGS
674 PLUGIN_HSA
675 HSA_RUNTIME_LIB
676 HSA_RUNTIME_INCLUDE
677 PLUGIN_NVPTX_LIBS
678 PLUGIN_NVPTX_LDFLAGS
679 PLUGIN_NVPTX_CPPFLAGS
680 PLUGIN_NVPTX
681 CUDA_DRIVER_LIB
682 CUDA_DRIVER_INCLUDE
683 libtool_VERSION
684 ac_ct_FC
685 FCFLAGS
686 FC
687 MAINT
688 MAINTAINER_MODE_FALSE
689 MAINTAINER_MODE_TRUE
690 enable_static
691 enable_shared
692 lt_host_flags
693 CPP
694 OTOOL64
695 OTOOL
696 LIPO
697 NMEDIT
698 DSYMUTIL
699 OBJDUMP
700 LN_S
701 NM
702 ac_ct_DUMPBIN
703 DUMPBIN
704 LD
705 FGREP
706 EGREP
707 GREP
708 SED
709 LIBTOOL
710 BUILD_INFO_FALSE
711 BUILD_INFO_TRUE
712 PERL
713 RANLIB
714 AR
715 am__fastdepCC_FALSE
716 am__fastdepCC_TRUE
717 CCDEPMODE
718 am__nodep
719 AMDEPBACKSLASH
720 AMDEP_FALSE
721 AMDEP_TRUE
722 am__quote
723 am__include
724 DEPDIR
725 OBJEXT
726 EXEEXT
727 ac_ct_CC
728 CPPFLAGS
729 LDFLAGS
730 CFLAGS
731 CC
732 toolexeclibdir
733 toolexecdir
734 multi_basedir
735 AM_BACKSLASH
736 AM_DEFAULT_VERBOSITY
737 AM_DEFAULT_V
738 AM_V
739 am__untar
740 am__tar
741 AMTAR
742 am__leading_dot
743 SET_MAKE
744 AWK
745 mkdir_p
746 MKDIR_P
747 INSTALL_STRIP_PROGRAM
748 STRIP
749 install_sh
750 MAKEINFO
751 AUTOHEADER
752 AUTOMAKE
753 AUTOCONF
754 ACLOCAL
755 VERSION
756 PACKAGE
757 CYGPATH_W
758 am__isrc
759 INSTALL_DATA
760 INSTALL_SCRIPT
761 INSTALL_PROGRAM
762 target_os
763 target_vendor
764 target_cpu
765 target
766 host_os
767 host_vendor
768 host_cpu
769 host
770 build_os
771 build_vendor
772 build_cpu
773 build
774 GENINSRC_FALSE
775 GENINSRC_TRUE
776 target_alias
777 host_alias
778 build_alias
779 LIBS
780 ECHO_T
781 ECHO_N
782 ECHO_C
783 DEFS
784 mandir
785 localedir
786 libdir
787 psdir
788 pdfdir
789 dvidir
790 htmldir
791 infodir
792 docdir
793 oldincludedir
794 includedir
795 localstatedir
796 sharedstatedir
797 sysconfdir
798 datadir
799 datarootdir
800 libexecdir
801 sbindir
802 bindir
803 program_transform_name
804 prefix
805 exec_prefix
806 PACKAGE_URL
807 PACKAGE_BUGREPORT
808 PACKAGE_STRING
809 PACKAGE_VERSION
810 PACKAGE_TARNAME
811 PACKAGE_NAME
812 PATH_SEPARATOR
813 SHELL'
814 ac_subst_files=''
815 ac_user_opts='
816 enable_option_checking
817 enable_version_specific_runtime_libs
818 enable_generated_files_in_srcdir
819 enable_silent_rules
820 enable_multilib
821 enable_dependency_tracking
822 enable_shared
823 enable_static
824 with_pic
825 enable_fast_install
826 with_gnu_ld
827 enable_libtool_lock
828 enable_maintainer_mode
829 with_cuda_driver
830 with_cuda_driver_include
831 with_cuda_driver_lib
832 with_hsa_runtime
833 with_hsa_runtime_include
834 with_hsa_runtime_lib
835 enable_linux_futex
836 enable_tls
837 enable_symvers
838 enable_cet
839 with_gcc_major_version_only
840 '
841 ac_precious_vars='build_alias
842 host_alias
843 target_alias
844 CPP
845 CPPFLAGS
846 FC
847 FCFLAGS
848 LDFLAGS
849 LIBS'
850
851
852 # Initialize some variables set by options.
853 ac_init_help=
854 ac_init_version=false
855 ac_unrecognized_opts=
856 ac_unrecognized_sep=
857 # The variables have the same names as the options, with
858 # dashes changed to underlines.
859 cache_file=/dev/null
860 exec_prefix=NONE
861 no_create=
862 no_recursion=
863 prefix=NONE
864 program_prefix=NONE
865 program_suffix=NONE
866 program_transform_name=s,x,x,
867 silent=
868 site=
869 srcdir=
870 verbose=
871 x_includes=NONE
872 x_libraries=NONE
873
874 # Installation directory options.
875 # These are left unexpanded so users can "make install exec_prefix=/foo"
876 # and all the variables that are supposed to be based on exec_prefix
877 # by default will actually change.
878 # Use braces instead of parens because sh, perl, etc. also accept them.
879 # (The list follows the same order as the GNU Coding Standards.)
880 bindir='${exec_prefix}/bin'
881 sbindir='${exec_prefix}/sbin'
882 libexecdir='${exec_prefix}/libexec'
883 datarootdir='${prefix}/share'
884 datadir='${datarootdir}'
885 sysconfdir='${prefix}/etc'
886 sharedstatedir='${prefix}/com'
887 localstatedir='${prefix}/var'
888 includedir='${prefix}/include'
889 oldincludedir='/usr/include'
890 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
891 infodir='${datarootdir}/info'
892 htmldir='${docdir}'
893 dvidir='${docdir}'
894 pdfdir='${docdir}'
895 psdir='${docdir}'
896 libdir='${exec_prefix}/lib'
897 localedir='${datarootdir}/locale'
898 mandir='${datarootdir}/man'
899
900 ac_prev=
901 ac_dashdash=
902 for ac_option
903 do
904 # If the previous option needs an argument, assign it.
905 if test -n "$ac_prev"; then
906 eval $ac_prev=\$ac_option
907 ac_prev=
908 continue
909 fi
910
911 case $ac_option in
912 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
913 *=) ac_optarg= ;;
914 *) ac_optarg=yes ;;
915 esac
916
917 # Accept the important Cygnus configure options, so we can diagnose typos.
918
919 case $ac_dashdash$ac_option in
920 --)
921 ac_dashdash=yes ;;
922
923 -bindir | --bindir | --bindi | --bind | --bin | --bi)
924 ac_prev=bindir ;;
925 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
926 bindir=$ac_optarg ;;
927
928 -build | --build | --buil | --bui | --bu)
929 ac_prev=build_alias ;;
930 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
931 build_alias=$ac_optarg ;;
932
933 -cache-file | --cache-file | --cache-fil | --cache-fi \
934 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
935 ac_prev=cache_file ;;
936 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
937 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
938 cache_file=$ac_optarg ;;
939
940 --config-cache | -C)
941 cache_file=config.cache ;;
942
943 -datadir | --datadir | --datadi | --datad)
944 ac_prev=datadir ;;
945 -datadir=* | --datadir=* | --datadi=* | --datad=*)
946 datadir=$ac_optarg ;;
947
948 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
949 | --dataroo | --dataro | --datar)
950 ac_prev=datarootdir ;;
951 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
952 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
953 datarootdir=$ac_optarg ;;
954
955 -disable-* | --disable-*)
956 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
957 # Reject names that are not valid shell variable names.
958 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
959 as_fn_error $? "invalid feature name: $ac_useropt"
960 ac_useropt_orig=$ac_useropt
961 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
962 case $ac_user_opts in
963 *"
964 "enable_$ac_useropt"
965 "*) ;;
966 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
967 ac_unrecognized_sep=', ';;
968 esac
969 eval enable_$ac_useropt=no ;;
970
971 -docdir | --docdir | --docdi | --doc | --do)
972 ac_prev=docdir ;;
973 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
974 docdir=$ac_optarg ;;
975
976 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
977 ac_prev=dvidir ;;
978 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
979 dvidir=$ac_optarg ;;
980
981 -enable-* | --enable-*)
982 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
983 # Reject names that are not valid shell variable names.
984 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
985 as_fn_error $? "invalid feature name: $ac_useropt"
986 ac_useropt_orig=$ac_useropt
987 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
988 case $ac_user_opts in
989 *"
990 "enable_$ac_useropt"
991 "*) ;;
992 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
993 ac_unrecognized_sep=', ';;
994 esac
995 eval enable_$ac_useropt=\$ac_optarg ;;
996
997 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
998 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
999 | --exec | --exe | --ex)
1000 ac_prev=exec_prefix ;;
1001 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1002 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1003 | --exec=* | --exe=* | --ex=*)
1004 exec_prefix=$ac_optarg ;;
1005
1006 -gas | --gas | --ga | --g)
1007 # Obsolete; use --with-gas.
1008 with_gas=yes ;;
1009
1010 -help | --help | --hel | --he | -h)
1011 ac_init_help=long ;;
1012 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1013 ac_init_help=recursive ;;
1014 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1015 ac_init_help=short ;;
1016
1017 -host | --host | --hos | --ho)
1018 ac_prev=host_alias ;;
1019 -host=* | --host=* | --hos=* | --ho=*)
1020 host_alias=$ac_optarg ;;
1021
1022 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1023 ac_prev=htmldir ;;
1024 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1025 | --ht=*)
1026 htmldir=$ac_optarg ;;
1027
1028 -includedir | --includedir | --includedi | --included | --include \
1029 | --includ | --inclu | --incl | --inc)
1030 ac_prev=includedir ;;
1031 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1032 | --includ=* | --inclu=* | --incl=* | --inc=*)
1033 includedir=$ac_optarg ;;
1034
1035 -infodir | --infodir | --infodi | --infod | --info | --inf)
1036 ac_prev=infodir ;;
1037 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1038 infodir=$ac_optarg ;;
1039
1040 -libdir | --libdir | --libdi | --libd)
1041 ac_prev=libdir ;;
1042 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1043 libdir=$ac_optarg ;;
1044
1045 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1046 | --libexe | --libex | --libe)
1047 ac_prev=libexecdir ;;
1048 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1049 | --libexe=* | --libex=* | --libe=*)
1050 libexecdir=$ac_optarg ;;
1051
1052 -localedir | --localedir | --localedi | --localed | --locale)
1053 ac_prev=localedir ;;
1054 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1055 localedir=$ac_optarg ;;
1056
1057 -localstatedir | --localstatedir | --localstatedi | --localstated \
1058 | --localstate | --localstat | --localsta | --localst | --locals)
1059 ac_prev=localstatedir ;;
1060 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1061 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1062 localstatedir=$ac_optarg ;;
1063
1064 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1065 ac_prev=mandir ;;
1066 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1067 mandir=$ac_optarg ;;
1068
1069 -nfp | --nfp | --nf)
1070 # Obsolete; use --without-fp.
1071 with_fp=no ;;
1072
1073 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1074 | --no-cr | --no-c | -n)
1075 no_create=yes ;;
1076
1077 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1078 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1079 no_recursion=yes ;;
1080
1081 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1082 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1083 | --oldin | --oldi | --old | --ol | --o)
1084 ac_prev=oldincludedir ;;
1085 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1086 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1087 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1088 oldincludedir=$ac_optarg ;;
1089
1090 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1091 ac_prev=prefix ;;
1092 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1093 prefix=$ac_optarg ;;
1094
1095 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1096 | --program-pre | --program-pr | --program-p)
1097 ac_prev=program_prefix ;;
1098 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1099 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1100 program_prefix=$ac_optarg ;;
1101
1102 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1103 | --program-suf | --program-su | --program-s)
1104 ac_prev=program_suffix ;;
1105 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1106 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1107 program_suffix=$ac_optarg ;;
1108
1109 -program-transform-name | --program-transform-name \
1110 | --program-transform-nam | --program-transform-na \
1111 | --program-transform-n | --program-transform- \
1112 | --program-transform | --program-transfor \
1113 | --program-transfo | --program-transf \
1114 | --program-trans | --program-tran \
1115 | --progr-tra | --program-tr | --program-t)
1116 ac_prev=program_transform_name ;;
1117 -program-transform-name=* | --program-transform-name=* \
1118 | --program-transform-nam=* | --program-transform-na=* \
1119 | --program-transform-n=* | --program-transform-=* \
1120 | --program-transform=* | --program-transfor=* \
1121 | --program-transfo=* | --program-transf=* \
1122 | --program-trans=* | --program-tran=* \
1123 | --progr-tra=* | --program-tr=* | --program-t=*)
1124 program_transform_name=$ac_optarg ;;
1125
1126 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1127 ac_prev=pdfdir ;;
1128 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1129 pdfdir=$ac_optarg ;;
1130
1131 -psdir | --psdir | --psdi | --psd | --ps)
1132 ac_prev=psdir ;;
1133 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1134 psdir=$ac_optarg ;;
1135
1136 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1137 | -silent | --silent | --silen | --sile | --sil)
1138 silent=yes ;;
1139
1140 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1141 ac_prev=sbindir ;;
1142 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1143 | --sbi=* | --sb=*)
1144 sbindir=$ac_optarg ;;
1145
1146 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1147 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1148 | --sharedst | --shareds | --shared | --share | --shar \
1149 | --sha | --sh)
1150 ac_prev=sharedstatedir ;;
1151 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1152 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1153 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1154 | --sha=* | --sh=*)
1155 sharedstatedir=$ac_optarg ;;
1156
1157 -site | --site | --sit)
1158 ac_prev=site ;;
1159 -site=* | --site=* | --sit=*)
1160 site=$ac_optarg ;;
1161
1162 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1163 ac_prev=srcdir ;;
1164 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1165 srcdir=$ac_optarg ;;
1166
1167 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1168 | --syscon | --sysco | --sysc | --sys | --sy)
1169 ac_prev=sysconfdir ;;
1170 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1171 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1172 sysconfdir=$ac_optarg ;;
1173
1174 -target | --target | --targe | --targ | --tar | --ta | --t)
1175 ac_prev=target_alias ;;
1176 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1177 target_alias=$ac_optarg ;;
1178
1179 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1180 verbose=yes ;;
1181
1182 -version | --version | --versio | --versi | --vers | -V)
1183 ac_init_version=: ;;
1184
1185 -with-* | --with-*)
1186 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1187 # Reject names that are not valid shell variable names.
1188 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1189 as_fn_error $? "invalid package name: $ac_useropt"
1190 ac_useropt_orig=$ac_useropt
1191 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1192 case $ac_user_opts in
1193 *"
1194 "with_$ac_useropt"
1195 "*) ;;
1196 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1197 ac_unrecognized_sep=', ';;
1198 esac
1199 eval with_$ac_useropt=\$ac_optarg ;;
1200
1201 -without-* | --without-*)
1202 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1203 # Reject names that are not valid shell variable names.
1204 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1205 as_fn_error $? "invalid package name: $ac_useropt"
1206 ac_useropt_orig=$ac_useropt
1207 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1208 case $ac_user_opts in
1209 *"
1210 "with_$ac_useropt"
1211 "*) ;;
1212 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1213 ac_unrecognized_sep=', ';;
1214 esac
1215 eval with_$ac_useropt=no ;;
1216
1217 --x)
1218 # Obsolete; use --with-x.
1219 with_x=yes ;;
1220
1221 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1222 | --x-incl | --x-inc | --x-in | --x-i)
1223 ac_prev=x_includes ;;
1224 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1225 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1226 x_includes=$ac_optarg ;;
1227
1228 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1229 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1230 ac_prev=x_libraries ;;
1231 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1232 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1233 x_libraries=$ac_optarg ;;
1234
1235 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1236 Try \`$0 --help' for more information"
1237 ;;
1238
1239 *=*)
1240 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1241 # Reject names that are not valid shell variable names.
1242 case $ac_envvar in #(
1243 '' | [0-9]* | *[!_$as_cr_alnum]* )
1244 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1245 esac
1246 eval $ac_envvar=\$ac_optarg
1247 export $ac_envvar ;;
1248
1249 *)
1250 # FIXME: should be removed in autoconf 3.0.
1251 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1252 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1253 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1254 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1255 ;;
1256
1257 esac
1258 done
1259
1260 if test -n "$ac_prev"; then
1261 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1262 as_fn_error $? "missing argument to $ac_option"
1263 fi
1264
1265 if test -n "$ac_unrecognized_opts"; then
1266 case $enable_option_checking in
1267 no) ;;
1268 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1269 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1270 esac
1271 fi
1272
1273 # Check all directory arguments for consistency.
1274 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1275 datadir sysconfdir sharedstatedir localstatedir includedir \
1276 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1277 libdir localedir mandir
1278 do
1279 eval ac_val=\$$ac_var
1280 # Remove trailing slashes.
1281 case $ac_val in
1282 */ )
1283 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1284 eval $ac_var=\$ac_val;;
1285 esac
1286 # Be sure to have absolute directory names.
1287 case $ac_val in
1288 [\\/$]* | ?:[\\/]* ) continue;;
1289 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1290 esac
1291 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1292 done
1293
1294 # There might be people who depend on the old broken behavior: `$host'
1295 # used to hold the argument of --host etc.
1296 # FIXME: To remove some day.
1297 build=$build_alias
1298 host=$host_alias
1299 target=$target_alias
1300
1301 # FIXME: To remove some day.
1302 if test "x$host_alias" != x; then
1303 if test "x$build_alias" = x; then
1304 cross_compiling=maybe
1305 elif test "x$build_alias" != "x$host_alias"; then
1306 cross_compiling=yes
1307 fi
1308 fi
1309
1310 ac_tool_prefix=
1311 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1312
1313 test "$silent" = yes && exec 6>/dev/null
1314
1315
1316 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1317 ac_ls_di=`ls -di .` &&
1318 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1319 as_fn_error $? "working directory cannot be determined"
1320 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1321 as_fn_error $? "pwd does not report name of working directory"
1322
1323
1324 # Find the source files, if location was not specified.
1325 if test -z "$srcdir"; then
1326 ac_srcdir_defaulted=yes
1327 # Try the directory containing this script, then the parent directory.
1328 ac_confdir=`$as_dirname -- "$as_myself" ||
1329 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1330 X"$as_myself" : 'X\(//\)[^/]' \| \
1331 X"$as_myself" : 'X\(//\)$' \| \
1332 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1333 $as_echo X"$as_myself" |
1334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1335 s//\1/
1336 q
1337 }
1338 /^X\(\/\/\)[^/].*/{
1339 s//\1/
1340 q
1341 }
1342 /^X\(\/\/\)$/{
1343 s//\1/
1344 q
1345 }
1346 /^X\(\/\).*/{
1347 s//\1/
1348 q
1349 }
1350 s/.*/./; q'`
1351 srcdir=$ac_confdir
1352 if test ! -r "$srcdir/$ac_unique_file"; then
1353 srcdir=..
1354 fi
1355 else
1356 ac_srcdir_defaulted=no
1357 fi
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1360 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1361 fi
1362 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1363 ac_abs_confdir=`(
1364 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1365 pwd)`
1366 # When building in place, set srcdir=.
1367 if test "$ac_abs_confdir" = "$ac_pwd"; then
1368 srcdir=.
1369 fi
1370 # Remove unnecessary trailing slashes from srcdir.
1371 # Double slashes in file names in object file debugging info
1372 # mess up M-x gdb in Emacs.
1373 case $srcdir in
1374 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1375 esac
1376 for ac_var in $ac_precious_vars; do
1377 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1378 eval ac_env_${ac_var}_value=\$${ac_var}
1379 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1380 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1381 done
1382
1383 #
1384 # Report the --help message.
1385 #
1386 if test "$ac_init_help" = "long"; then
1387 # Omit some internal or obsolete options to make the list less imposing.
1388 # This message is too long to be a string in the A/UX 3.1 sh.
1389 cat <<_ACEOF
1390 \`configure' configures GNU Offloading and Multi Processing Runtime Library 1.0 to adapt to many kinds of systems.
1391
1392 Usage: $0 [OPTION]... [VAR=VALUE]...
1393
1394 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1395 VAR=VALUE. See below for descriptions of some of the useful variables.
1396
1397 Defaults for the options are specified in brackets.
1398
1399 Configuration:
1400 -h, --help display this help and exit
1401 --help=short display options specific to this package
1402 --help=recursive display the short help of all the included packages
1403 -V, --version display version information and exit
1404 -q, --quiet, --silent do not print \`checking ...' messages
1405 --cache-file=FILE cache test results in FILE [disabled]
1406 -C, --config-cache alias for \`--cache-file=config.cache'
1407 -n, --no-create do not create output files
1408 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1409
1410 Installation directories:
1411 --prefix=PREFIX install architecture-independent files in PREFIX
1412 [$ac_default_prefix]
1413 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1414 [PREFIX]
1415
1416 By default, \`make install' will install all the files in
1417 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1418 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1419 for instance \`--prefix=\$HOME'.
1420
1421 For better control, use the options below.
1422
1423 Fine tuning of the installation directories:
1424 --bindir=DIR user executables [EPREFIX/bin]
1425 --sbindir=DIR system admin executables [EPREFIX/sbin]
1426 --libexecdir=DIR program executables [EPREFIX/libexec]
1427 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1428 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1429 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1430 --libdir=DIR object code libraries [EPREFIX/lib]
1431 --includedir=DIR C header files [PREFIX/include]
1432 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1433 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1434 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1435 --infodir=DIR info documentation [DATAROOTDIR/info]
1436 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1437 --mandir=DIR man documentation [DATAROOTDIR/man]
1438 --docdir=DIR documentation root [DATAROOTDIR/doc/libgomp]
1439 --htmldir=DIR html documentation [DOCDIR]
1440 --dvidir=DIR dvi documentation [DOCDIR]
1441 --pdfdir=DIR pdf documentation [DOCDIR]
1442 --psdir=DIR ps documentation [DOCDIR]
1443 _ACEOF
1444
1445 cat <<\_ACEOF
1446
1447 Program names:
1448 --program-prefix=PREFIX prepend PREFIX to installed program names
1449 --program-suffix=SUFFIX append SUFFIX to installed program names
1450 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1451
1452 System types:
1453 --build=BUILD configure for building on BUILD [guessed]
1454 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1455 --target=TARGET configure for building compilers for TARGET [HOST]
1456 _ACEOF
1457 fi
1458
1459 if test -n "$ac_init_help"; then
1460 case $ac_init_help in
1461 short | recursive ) echo "Configuration of GNU Offloading and Multi Processing Runtime Library 1.0:";;
1462 esac
1463 cat <<\_ACEOF
1464
1465 Optional Features:
1466 --disable-option-checking ignore unrecognized --enable/--with options
1467 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1468 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1469 --enable-version-specific-runtime-libs
1470 Specify that runtime libraries should be installed
1471 in a compiler-specific directory [default=no]
1472 --enable-generated-files-in-srcdir
1473 put copies of generated files in source dir intended
1474 for creating source tarballs for users without
1475 texinfo bison or flex. [default=no]
1476 --enable-silent-rules less verbose build output (undo: "make V=1")
1477 --disable-silent-rules verbose build output (undo: "make V=0")
1478 --enable-multilib build many library versions (default)
1479 --enable-dependency-tracking
1480 do not reject slow dependency extractors
1481 --disable-dependency-tracking
1482 speeds up one-time build
1483 --enable-shared[=PKGS] build shared libraries [default=yes]
1484 --enable-static[=PKGS] build static libraries [default=yes]
1485 --enable-fast-install[=PKGS]
1486 optimize for fast installation [default=yes]
1487 --disable-libtool-lock avoid locking (might break parallel builds)
1488 --enable-maintainer-mode
1489 enable make rules and dependencies not useful (and
1490 sometimes confusing) to the casual installer
1491 --enable-linux-futex use the Linux futex system call [default=default]
1492 --enable-tls Use thread-local storage [default=yes]
1493 --enable-symvers=STYLE enables symbol versioning of the shared library
1494 [default=yes]
1495 --enable-cet enable Intel CET in target libraries [default=no]
1496
1497 Optional Packages:
1498 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1499 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1500 --with-pic try to use only PIC/non-PIC objects [default=use
1501 both]
1502 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1503 --with-cuda-driver=PATH specify prefix directory for installed CUDA driver
1504 package. Equivalent to
1505 --with-cuda-driver-include=PATH/include plus
1506 --with-cuda-driver-lib=PATH/lib
1507 --with-cuda-driver-include=PATH
1508 specify directory for installed CUDA driver include
1509 files
1510 --with-cuda-driver-lib=PATH
1511 specify directory for the installed CUDA driver
1512 library
1513 --with-hsa-runtime=PATH specify prefix directory for installed HSA run-time
1514 package. Equivalent to
1515 --with-hsa-runtime-include=PATH/include plus
1516 --with-hsa-runtime-lib=PATH/lib
1517 --with-hsa-runtime-include=PATH
1518 specify directory for installed HSA run-time include
1519 files
1520 --with-hsa-runtime-lib=PATH
1521 specify directory for the installed HSA run-time
1522 library
1523 --with-gcc-major-version-only
1524 use only GCC major number in filesystem paths
1525
1526 Some influential environment variables:
1527 CC C compiler command
1528 CFLAGS C compiler flags
1529 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1530 nonstandard directory <lib dir>
1531 LIBS libraries to pass to the linker, e.g. -l<library>
1532 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1533 you have headers in a nonstandard directory <include dir>
1534 CPP C preprocessor
1535 FC Fortran compiler command
1536 FCFLAGS Fortran compiler flags
1537
1538 Use these variables to override the choices made by `configure' or to help
1539 it to find libraries and programs with nonstandard names/locations.
1540
1541 Report bugs to the package provider.
1542 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
1543 General help using GNU software: <http://www.gnu.org/gethelp/>.
1544 _ACEOF
1545 ac_status=$?
1546 fi
1547
1548 if test "$ac_init_help" = "recursive"; then
1549 # If there are subdirs, report their specific --help.
1550 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1551 test -d "$ac_dir" ||
1552 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1553 continue
1554 ac_builddir=.
1555
1556 case "$ac_dir" in
1557 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1558 *)
1559 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1560 # A ".." for each directory in $ac_dir_suffix.
1561 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1562 case $ac_top_builddir_sub in
1563 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1564 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1565 esac ;;
1566 esac
1567 ac_abs_top_builddir=$ac_pwd
1568 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1569 # for backward compatibility:
1570 ac_top_builddir=$ac_top_build_prefix
1571
1572 case $srcdir in
1573 .) # We are building in place.
1574 ac_srcdir=.
1575 ac_top_srcdir=$ac_top_builddir_sub
1576 ac_abs_top_srcdir=$ac_pwd ;;
1577 [\\/]* | ?:[\\/]* ) # Absolute name.
1578 ac_srcdir=$srcdir$ac_dir_suffix;
1579 ac_top_srcdir=$srcdir
1580 ac_abs_top_srcdir=$srcdir ;;
1581 *) # Relative name.
1582 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1583 ac_top_srcdir=$ac_top_build_prefix$srcdir
1584 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1585 esac
1586 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1587
1588 cd "$ac_dir" || { ac_status=$?; continue; }
1589 # Check for guested configure.
1590 if test -f "$ac_srcdir/configure.gnu"; then
1591 echo &&
1592 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1593 elif test -f "$ac_srcdir/configure"; then
1594 echo &&
1595 $SHELL "$ac_srcdir/configure" --help=recursive
1596 else
1597 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1598 fi || ac_status=$?
1599 cd "$ac_pwd" || { ac_status=$?; break; }
1600 done
1601 fi
1602
1603 test -n "$ac_init_help" && exit $ac_status
1604 if $ac_init_version; then
1605 cat <<\_ACEOF
1606 GNU Offloading and Multi Processing Runtime Library configure 1.0
1607 generated by GNU Autoconf 2.69
1608
1609 Copyright (C) 2012 Free Software Foundation, Inc.
1610 This configure script is free software; the Free Software Foundation
1611 gives unlimited permission to copy, distribute and modify it.
1612 _ACEOF
1613 exit
1614 fi
1615
1616 ## ------------------------ ##
1617 ## Autoconf initialization. ##
1618 ## ------------------------ ##
1619
1620 # ac_fn_c_try_compile LINENO
1621 # --------------------------
1622 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1623 ac_fn_c_try_compile ()
1624 {
1625 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1626 rm -f conftest.$ac_objext
1627 if { { ac_try="$ac_compile"
1628 case "(($ac_try" in
1629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1630 *) ac_try_echo=$ac_try;;
1631 esac
1632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1633 $as_echo "$ac_try_echo"; } >&5
1634 (eval "$ac_compile") 2>conftest.err
1635 ac_status=$?
1636 if test -s conftest.err; then
1637 grep -v '^ *+' conftest.err >conftest.er1
1638 cat conftest.er1 >&5
1639 mv -f conftest.er1 conftest.err
1640 fi
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; } && {
1643 test -z "$ac_c_werror_flag" ||
1644 test ! -s conftest.err
1645 } && test -s conftest.$ac_objext; then :
1646 ac_retval=0
1647 else
1648 $as_echo "$as_me: failed program was:" >&5
1649 sed 's/^/| /' conftest.$ac_ext >&5
1650
1651 ac_retval=1
1652 fi
1653 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1654 as_fn_set_status $ac_retval
1655
1656 } # ac_fn_c_try_compile
1657
1658 # ac_fn_c_try_link LINENO
1659 # -----------------------
1660 # Try to link conftest.$ac_ext, and return whether this succeeded.
1661 ac_fn_c_try_link ()
1662 {
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 rm -f conftest.$ac_objext conftest$ac_exeext
1665 if { { ac_try="$ac_link"
1666 case "(($ac_try" in
1667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1668 *) ac_try_echo=$ac_try;;
1669 esac
1670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1671 $as_echo "$ac_try_echo"; } >&5
1672 (eval "$ac_link") 2>conftest.err
1673 ac_status=$?
1674 if test -s conftest.err; then
1675 grep -v '^ *+' conftest.err >conftest.er1
1676 cat conftest.er1 >&5
1677 mv -f conftest.er1 conftest.err
1678 fi
1679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1680 test $ac_status = 0; } && {
1681 test -z "$ac_c_werror_flag" ||
1682 test ! -s conftest.err
1683 } && test -s conftest$ac_exeext && {
1684 test "$cross_compiling" = yes ||
1685 test -x conftest$ac_exeext
1686 }; then :
1687 ac_retval=0
1688 else
1689 $as_echo "$as_me: failed program was:" >&5
1690 sed 's/^/| /' conftest.$ac_ext >&5
1691
1692 ac_retval=1
1693 fi
1694 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1695 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1696 # interfere with the next link command; also delete a directory that is
1697 # left behind by Apple's compiler. We do this before executing the actions.
1698 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1699 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 as_fn_set_status $ac_retval
1701
1702 } # ac_fn_c_try_link
1703
1704 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1705 # -------------------------------------------------------
1706 # Tests whether HEADER exists and can be compiled using the include files in
1707 # INCLUDES, setting the cache variable VAR accordingly.
1708 ac_fn_c_check_header_compile ()
1709 {
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1712 $as_echo_n "checking for $2... " >&6; }
1713 if eval \${$3+:} false; then :
1714 $as_echo_n "(cached) " >&6
1715 else
1716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1717 /* end confdefs.h. */
1718 $4
1719 #include <$2>
1720 _ACEOF
1721 if ac_fn_c_try_compile "$LINENO"; then :
1722 eval "$3=yes"
1723 else
1724 eval "$3=no"
1725 fi
1726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1727 fi
1728 eval ac_res=\$$3
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1730 $as_echo "$ac_res" >&6; }
1731 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732
1733 } # ac_fn_c_check_header_compile
1734
1735 # ac_fn_c_try_cpp LINENO
1736 # ----------------------
1737 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1738 ac_fn_c_try_cpp ()
1739 {
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 ac_status=$?
1750 if test -s conftest.err; then
1751 grep -v '^ *+' conftest.err >conftest.er1
1752 cat conftest.er1 >&5
1753 mv -f conftest.er1 conftest.err
1754 fi
1755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1756 test $ac_status = 0; } > conftest.i && {
1757 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1758 test ! -s conftest.err
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1768 as_fn_set_status $ac_retval
1769
1770 } # ac_fn_c_try_cpp
1771
1772 # ac_fn_c_try_run LINENO
1773 # ----------------------
1774 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1775 # that executables *can* be run.
1776 ac_fn_c_try_run ()
1777 {
1778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1779 if { { ac_try="$ac_link"
1780 case "(($ac_try" in
1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1782 *) ac_try_echo=$ac_try;;
1783 esac
1784 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1785 $as_echo "$ac_try_echo"; } >&5
1786 (eval "$ac_link") 2>&5
1787 ac_status=$?
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1790 { { case "(($ac_try" in
1791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1792 *) ac_try_echo=$ac_try;;
1793 esac
1794 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1795 $as_echo "$ac_try_echo"; } >&5
1796 (eval "$ac_try") 2>&5
1797 ac_status=$?
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; }; }; then :
1800 ac_retval=0
1801 else
1802 $as_echo "$as_me: program exited with status $ac_status" >&5
1803 $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806 ac_retval=$ac_status
1807 fi
1808 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_run
1813
1814 # ac_fn_c_check_func LINENO FUNC VAR
1815 # ----------------------------------
1816 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1817 ac_fn_c_check_func ()
1818 {
1819 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1821 $as_echo_n "checking for $2... " >&6; }
1822 if eval \${$3+:} false; then :
1823 $as_echo_n "(cached) " >&6
1824 else
1825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1826 /* end confdefs.h. */
1827 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1828 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1829 #define $2 innocuous_$2
1830
1831 /* System header to define __stub macros and hopefully few prototypes,
1832 which can conflict with char $2 (); below.
1833 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1834 <limits.h> exists even on freestanding compilers. */
1835
1836 #ifdef __STDC__
1837 # include <limits.h>
1838 #else
1839 # include <assert.h>
1840 #endif
1841
1842 #undef $2
1843
1844 /* Override any GCC internal prototype to avoid an error.
1845 Use char because int might match the return type of a GCC
1846 builtin and then its argument prototype would still apply. */
1847 #ifdef __cplusplus
1848 extern "C"
1849 #endif
1850 char $2 ();
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined __stub_$2 || defined __stub___$2
1855 choke me
1856 #endif
1857
1858 int
1859 main ()
1860 {
1861 return $2 ();
1862 ;
1863 return 0;
1864 }
1865 _ACEOF
1866 if ac_fn_c_try_link "$LINENO"; then :
1867 eval "$3=yes"
1868 else
1869 eval "$3=no"
1870 fi
1871 rm -f core conftest.err conftest.$ac_objext \
1872 conftest$ac_exeext conftest.$ac_ext
1873 fi
1874 eval ac_res=\$$3
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1876 $as_echo "$ac_res" >&6; }
1877 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1878
1879 } # ac_fn_c_check_func
1880
1881 # ac_fn_fc_try_compile LINENO
1882 # ---------------------------
1883 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_fc_try_compile ()
1885 {
1886 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1887 rm -f conftest.$ac_objext
1888 if { { ac_try="$ac_compile"
1889 case "(($ac_try" in
1890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1892 esac
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_compile") 2>conftest.err
1896 ac_status=$?
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1901 fi
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_fc_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest.$ac_objext; then :
1907 ac_retval=0
1908 else
1909 $as_echo "$as_me: failed program was:" >&5
1910 sed 's/^/| /' conftest.$ac_ext >&5
1911
1912 ac_retval=1
1913 fi
1914 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1915 as_fn_set_status $ac_retval
1916
1917 } # ac_fn_fc_try_compile
1918
1919 # ac_fn_fc_try_link LINENO
1920 # ------------------------
1921 # Try to link conftest.$ac_ext, and return whether this succeeded.
1922 ac_fn_fc_try_link ()
1923 {
1924 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1925 rm -f conftest.$ac_objext conftest$ac_exeext
1926 if { { ac_try="$ac_link"
1927 case "(($ac_try" in
1928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1929 *) ac_try_echo=$ac_try;;
1930 esac
1931 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1932 $as_echo "$ac_try_echo"; } >&5
1933 (eval "$ac_link") 2>conftest.err
1934 ac_status=$?
1935 if test -s conftest.err; then
1936 grep -v '^ *+' conftest.err >conftest.er1
1937 cat conftest.er1 >&5
1938 mv -f conftest.er1 conftest.err
1939 fi
1940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1941 test $ac_status = 0; } && {
1942 test -z "$ac_fc_werror_flag" ||
1943 test ! -s conftest.err
1944 } && test -s conftest$ac_exeext && {
1945 test "$cross_compiling" = yes ||
1946 test -x conftest$ac_exeext
1947 }; then :
1948 ac_retval=0
1949 else
1950 $as_echo "$as_me: failed program was:" >&5
1951 sed 's/^/| /' conftest.$ac_ext >&5
1952
1953 ac_retval=1
1954 fi
1955 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1956 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1957 # interfere with the next link command; also delete a directory that is
1958 # left behind by Apple's compiler. We do this before executing the actions.
1959 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1960 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961 as_fn_set_status $ac_retval
1962
1963 } # ac_fn_fc_try_link
1964
1965 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1966 # -------------------------------------------------------
1967 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1968 # the include files in INCLUDES and setting the cache variable VAR
1969 # accordingly.
1970 ac_fn_c_check_header_mongrel ()
1971 {
1972 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1973 if eval \${$3+:} false; then :
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if eval \${$3+:} false; then :
1977 $as_echo_n "(cached) " >&6
1978 fi
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 else
1983 # Is the header compilable?
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1985 $as_echo_n "checking $2 usability... " >&6; }
1986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1987 /* end confdefs.h. */
1988 $4
1989 #include <$2>
1990 _ACEOF
1991 if ac_fn_c_try_compile "$LINENO"; then :
1992 ac_header_compiler=yes
1993 else
1994 ac_header_compiler=no
1995 fi
1996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1998 $as_echo "$ac_header_compiler" >&6; }
1999
2000 # Is the header present?
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2002 $as_echo_n "checking $2 presence... " >&6; }
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2005 #include <$2>
2006 _ACEOF
2007 if ac_fn_c_try_cpp "$LINENO"; then :
2008 ac_header_preproc=yes
2009 else
2010 ac_header_preproc=no
2011 fi
2012 rm -f conftest.err conftest.i conftest.$ac_ext
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2014 $as_echo "$ac_header_preproc" >&6; }
2015
2016 # So? What about this header?
2017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2018 yes:no: )
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2020 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023 ;;
2024 no:yes:* )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2026 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2028 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2030 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2032 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&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 esac
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2038 $as_echo_n "checking for $2... " >&6; }
2039 if eval \${$3+:} false; then :
2040 $as_echo_n "(cached) " >&6
2041 else
2042 eval "$3=\$ac_header_compiler"
2043 fi
2044 eval ac_res=\$$3
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2046 $as_echo "$ac_res" >&6; }
2047 fi
2048 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2049
2050 } # ac_fn_c_check_header_mongrel
2051
2052 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2053 # -------------------------------------------
2054 # Tests whether TYPE exists after having included INCLUDES, setting cache
2055 # variable VAR accordingly.
2056 ac_fn_c_check_type ()
2057 {
2058 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=no"
2065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2066 /* end confdefs.h. */
2067 $4
2068 int
2069 main ()
2070 {
2071 if (sizeof ($2))
2072 return 0;
2073 ;
2074 return 0;
2075 }
2076 _ACEOF
2077 if ac_fn_c_try_compile "$LINENO"; then :
2078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2079 /* end confdefs.h. */
2080 $4
2081 int
2082 main ()
2083 {
2084 if (sizeof (($2)))
2085 return 0;
2086 ;
2087 return 0;
2088 }
2089 _ACEOF
2090 if ac_fn_c_try_compile "$LINENO"; then :
2091
2092 else
2093 eval "$3=yes"
2094 fi
2095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2096 fi
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2098 fi
2099 eval ac_res=\$$3
2100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2101 $as_echo "$ac_res" >&6; }
2102 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2103
2104 } # ac_fn_c_check_type
2105
2106 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2107 # --------------------------------------------
2108 # Tries to find the compile-time value of EXPR in a program that includes
2109 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2110 # computed
2111 ac_fn_c_compute_int ()
2112 {
2113 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2114 if test "$cross_compiling" = yes; then
2115 # Depending upon the size, compute the lo and hi bounds.
2116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2118 $4
2119 int
2120 main ()
2121 {
2122 static int test_array [1 - 2 * !(($2) >= 0)];
2123 test_array [0] = 0;
2124 return test_array [0];
2125
2126 ;
2127 return 0;
2128 }
2129 _ACEOF
2130 if ac_fn_c_try_compile "$LINENO"; then :
2131 ac_lo=0 ac_mid=0
2132 while :; do
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2135 $4
2136 int
2137 main ()
2138 {
2139 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2140 test_array [0] = 0;
2141 return test_array [0];
2142
2143 ;
2144 return 0;
2145 }
2146 _ACEOF
2147 if ac_fn_c_try_compile "$LINENO"; then :
2148 ac_hi=$ac_mid; break
2149 else
2150 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2151 if test $ac_lo -le $ac_mid; then
2152 ac_lo= ac_hi=
2153 break
2154 fi
2155 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2156 fi
2157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2158 done
2159 else
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2162 $4
2163 int
2164 main ()
2165 {
2166 static int test_array [1 - 2 * !(($2) < 0)];
2167 test_array [0] = 0;
2168 return test_array [0];
2169
2170 ;
2171 return 0;
2172 }
2173 _ACEOF
2174 if ac_fn_c_try_compile "$LINENO"; then :
2175 ac_hi=-1 ac_mid=-1
2176 while :; do
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2179 $4
2180 int
2181 main ()
2182 {
2183 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2184 test_array [0] = 0;
2185 return test_array [0];
2186
2187 ;
2188 return 0;
2189 }
2190 _ACEOF
2191 if ac_fn_c_try_compile "$LINENO"; then :
2192 ac_lo=$ac_mid; break
2193 else
2194 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2195 if test $ac_mid -le $ac_hi; then
2196 ac_lo= ac_hi=
2197 break
2198 fi
2199 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2200 fi
2201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2202 done
2203 else
2204 ac_lo= ac_hi=
2205 fi
2206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2207 fi
2208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2209 # Binary search between lo and hi bounds.
2210 while test "x$ac_lo" != "x$ac_hi"; do
2211 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 $4
2215 int
2216 main ()
2217 {
2218 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2219 test_array [0] = 0;
2220 return test_array [0];
2221
2222 ;
2223 return 0;
2224 }
2225 _ACEOF
2226 if ac_fn_c_try_compile "$LINENO"; then :
2227 ac_hi=$ac_mid
2228 else
2229 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2230 fi
2231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2232 done
2233 case $ac_lo in #((
2234 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2235 '') ac_retval=1 ;;
2236 esac
2237 else
2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2239 /* end confdefs.h. */
2240 $4
2241 static long int longval () { return $2; }
2242 static unsigned long int ulongval () { return $2; }
2243 #include <stdio.h>
2244 #include <stdlib.h>
2245 int
2246 main ()
2247 {
2248
2249 FILE *f = fopen ("conftest.val", "w");
2250 if (! f)
2251 return 1;
2252 if (($2) < 0)
2253 {
2254 long int i = longval ();
2255 if (i != ($2))
2256 return 1;
2257 fprintf (f, "%ld", i);
2258 }
2259 else
2260 {
2261 unsigned long int i = ulongval ();
2262 if (i != ($2))
2263 return 1;
2264 fprintf (f, "%lu", i);
2265 }
2266 /* Do not output a trailing newline, as this causes \r\n confusion
2267 on some platforms. */
2268 return ferror (f) || fclose (f) != 0;
2269
2270 ;
2271 return 0;
2272 }
2273 _ACEOF
2274 if ac_fn_c_try_run "$LINENO"; then :
2275 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2276 else
2277 ac_retval=1
2278 fi
2279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2280 conftest.$ac_objext conftest.beam conftest.$ac_ext
2281 rm -f conftest.val
2282
2283 fi
2284 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2285 as_fn_set_status $ac_retval
2286
2287 } # ac_fn_c_compute_int
2288 cat >config.log <<_ACEOF
2289 This file contains any messages produced by compilers while
2290 running configure, to aid debugging if configure makes a mistake.
2291
2292 It was created by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
2293 generated by GNU Autoconf 2.69. Invocation command line was
2294
2295 $ $0 $@
2296
2297 _ACEOF
2298 exec 5>>config.log
2299 {
2300 cat <<_ASUNAME
2301 ## --------- ##
2302 ## Platform. ##
2303 ## --------- ##
2304
2305 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2306 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2307 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2308 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2309 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2310
2311 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2312 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2313
2314 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2315 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2316 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2317 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2318 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2319 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2320 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2321
2322 _ASUNAME
2323
2324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2325 for as_dir in $PATH
2326 do
2327 IFS=$as_save_IFS
2328 test -z "$as_dir" && as_dir=.
2329 $as_echo "PATH: $as_dir"
2330 done
2331 IFS=$as_save_IFS
2332
2333 } >&5
2334
2335 cat >&5 <<_ACEOF
2336
2337
2338 ## ----------- ##
2339 ## Core tests. ##
2340 ## ----------- ##
2341
2342 _ACEOF
2343
2344
2345 # Keep a trace of the command line.
2346 # Strip out --no-create and --no-recursion so they do not pile up.
2347 # Strip out --silent because we don't want to record it for future runs.
2348 # Also quote any args containing shell meta-characters.
2349 # Make two passes to allow for proper duplicate-argument suppression.
2350 ac_configure_args=
2351 ac_configure_args0=
2352 ac_configure_args1=
2353 ac_must_keep_next=false
2354 for ac_pass in 1 2
2355 do
2356 for ac_arg
2357 do
2358 case $ac_arg in
2359 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2360 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2361 | -silent | --silent | --silen | --sile | --sil)
2362 continue ;;
2363 *\'*)
2364 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2365 esac
2366 case $ac_pass in
2367 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2368 2)
2369 as_fn_append ac_configure_args1 " '$ac_arg'"
2370 if test $ac_must_keep_next = true; then
2371 ac_must_keep_next=false # Got value, back to normal.
2372 else
2373 case $ac_arg in
2374 *=* | --config-cache | -C | -disable-* | --disable-* \
2375 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2376 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2377 | -with-* | --with-* | -without-* | --without-* | --x)
2378 case "$ac_configure_args0 " in
2379 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2380 esac
2381 ;;
2382 -* ) ac_must_keep_next=true ;;
2383 esac
2384 fi
2385 as_fn_append ac_configure_args " '$ac_arg'"
2386 ;;
2387 esac
2388 done
2389 done
2390 { ac_configure_args0=; unset ac_configure_args0;}
2391 { ac_configure_args1=; unset ac_configure_args1;}
2392
2393 # When interrupted or exit'd, cleanup temporary files, and complete
2394 # config.log. We remove comments because anyway the quotes in there
2395 # would cause problems or look ugly.
2396 # WARNING: Use '\'' to represent an apostrophe within the trap.
2397 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2398 trap 'exit_status=$?
2399 # Save into config.log some information that might help in debugging.
2400 {
2401 echo
2402
2403 $as_echo "## ---------------- ##
2404 ## Cache variables. ##
2405 ## ---------------- ##"
2406 echo
2407 # The following way of writing the cache mishandles newlines in values,
2408 (
2409 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2410 eval ac_val=\$$ac_var
2411 case $ac_val in #(
2412 *${as_nl}*)
2413 case $ac_var in #(
2414 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2415 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2416 esac
2417 case $ac_var in #(
2418 _ | IFS | as_nl) ;; #(
2419 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2420 *) { eval $ac_var=; unset $ac_var;} ;;
2421 esac ;;
2422 esac
2423 done
2424 (set) 2>&1 |
2425 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2426 *${as_nl}ac_space=\ *)
2427 sed -n \
2428 "s/'\''/'\''\\\\'\'''\''/g;
2429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2430 ;; #(
2431 *)
2432 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2433 ;;
2434 esac |
2435 sort
2436 )
2437 echo
2438
2439 $as_echo "## ----------------- ##
2440 ## Output variables. ##
2441 ## ----------------- ##"
2442 echo
2443 for ac_var in $ac_subst_vars
2444 do
2445 eval ac_val=\$$ac_var
2446 case $ac_val in
2447 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2448 esac
2449 $as_echo "$ac_var='\''$ac_val'\''"
2450 done | sort
2451 echo
2452
2453 if test -n "$ac_subst_files"; then
2454 $as_echo "## ------------------- ##
2455 ## File substitutions. ##
2456 ## ------------------- ##"
2457 echo
2458 for ac_var in $ac_subst_files
2459 do
2460 eval ac_val=\$$ac_var
2461 case $ac_val in
2462 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2463 esac
2464 $as_echo "$ac_var='\''$ac_val'\''"
2465 done | sort
2466 echo
2467 fi
2468
2469 if test -s confdefs.h; then
2470 $as_echo "## ----------- ##
2471 ## confdefs.h. ##
2472 ## ----------- ##"
2473 echo
2474 cat confdefs.h
2475 echo
2476 fi
2477 test "$ac_signal" != 0 &&
2478 $as_echo "$as_me: caught signal $ac_signal"
2479 $as_echo "$as_me: exit $exit_status"
2480 } >&5
2481 rm -f core *.core core.conftest.* &&
2482 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2483 exit $exit_status
2484 ' 0
2485 for ac_signal in 1 2 13 15; do
2486 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2487 done
2488 ac_signal=0
2489
2490 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2491 rm -f -r conftest* confdefs.h
2492
2493 $as_echo "/* confdefs.h */" > confdefs.h
2494
2495 # Predefined preprocessor variables.
2496
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_NAME "$PACKAGE_NAME"
2499 _ACEOF
2500
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2503 _ACEOF
2504
2505 cat >>confdefs.h <<_ACEOF
2506 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2507 _ACEOF
2508
2509 cat >>confdefs.h <<_ACEOF
2510 #define PACKAGE_STRING "$PACKAGE_STRING"
2511 _ACEOF
2512
2513 cat >>confdefs.h <<_ACEOF
2514 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2515 _ACEOF
2516
2517 cat >>confdefs.h <<_ACEOF
2518 #define PACKAGE_URL "$PACKAGE_URL"
2519 _ACEOF
2520
2521
2522 # Let the site file select an alternate cache file if it wants to.
2523 # Prefer an explicitly selected file to automatically selected ones.
2524 ac_site_file1=NONE
2525 ac_site_file2=NONE
2526 if test -n "$CONFIG_SITE"; then
2527 # We do not want a PATH search for config.site.
2528 case $CONFIG_SITE in #((
2529 -*) ac_site_file1=./$CONFIG_SITE;;
2530 */*) ac_site_file1=$CONFIG_SITE;;
2531 *) ac_site_file1=./$CONFIG_SITE;;
2532 esac
2533 elif test "x$prefix" != xNONE; then
2534 ac_site_file1=$prefix/share/config.site
2535 ac_site_file2=$prefix/etc/config.site
2536 else
2537 ac_site_file1=$ac_default_prefix/share/config.site
2538 ac_site_file2=$ac_default_prefix/etc/config.site
2539 fi
2540 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2541 do
2542 test "x$ac_site_file" = xNONE && continue
2543 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2545 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2546 sed 's/^/| /' "$ac_site_file" >&5
2547 . "$ac_site_file" \
2548 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2550 as_fn_error $? "failed to load site script $ac_site_file
2551 See \`config.log' for more details" "$LINENO" 5; }
2552 fi
2553 done
2554
2555 if test -r "$cache_file"; then
2556 # Some versions of bash will fail to source /dev/null (special files
2557 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2558 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2560 $as_echo "$as_me: loading cache $cache_file" >&6;}
2561 case $cache_file in
2562 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2563 *) . "./$cache_file";;
2564 esac
2565 fi
2566 else
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2568 $as_echo "$as_me: creating cache $cache_file" >&6;}
2569 >$cache_file
2570 fi
2571
2572 as_fn_append ac_header_list " unistd.h"
2573 as_fn_append ac_func_list " secure_getenv"
2574 as_fn_append ac_func_list " __secure_getenv"
2575 as_fn_append ac_func_list " getuid"
2576 as_fn_append ac_func_list " geteuid"
2577 as_fn_append ac_func_list " getgid"
2578 as_fn_append ac_func_list " getegid"
2579 # Check that the precious variables saved in the cache have kept the same
2580 # value.
2581 ac_cache_corrupted=false
2582 for ac_var in $ac_precious_vars; do
2583 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2584 eval ac_new_set=\$ac_env_${ac_var}_set
2585 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2586 eval ac_new_val=\$ac_env_${ac_var}_value
2587 case $ac_old_set,$ac_new_set in
2588 set,)
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2590 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2591 ac_cache_corrupted=: ;;
2592 ,set)
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2594 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2595 ac_cache_corrupted=: ;;
2596 ,);;
2597 *)
2598 if test "x$ac_old_val" != "x$ac_new_val"; then
2599 # differences in whitespace do not lead to failure.
2600 ac_old_val_w=`echo x $ac_old_val`
2601 ac_new_val_w=`echo x $ac_new_val`
2602 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2604 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2605 ac_cache_corrupted=:
2606 else
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2608 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2609 eval $ac_var=\$ac_old_val
2610 fi
2611 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2612 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2614 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2615 fi;;
2616 esac
2617 # Pass precious variables to config.status.
2618 if test "$ac_new_set" = set; then
2619 case $ac_new_val in
2620 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2621 *) ac_arg=$ac_var=$ac_new_val ;;
2622 esac
2623 case " $ac_configure_args " in
2624 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2625 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2626 esac
2627 fi
2628 done
2629 if $ac_cache_corrupted; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2633 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2634 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2635 fi
2636 ## -------------------- ##
2637 ## Main body of script. ##
2638 ## -------------------- ##
2639
2640 ac_ext=c
2641 ac_cpp='$CPP $CPPFLAGS'
2642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2645
2646
2647
2648
2649
2650 ac_config_headers="$ac_config_headers config.h"
2651
2652
2653 # -------
2654 # Options
2655 # -------
2656
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2658 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2659 # Check whether --enable-version-specific-runtime-libs was given.
2660 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2661 enableval=$enable_version_specific_runtime_libs;
2662 case "$enableval" in
2663 yes|no) ;;
2664 *) as_fn_error $? "Unknown argument to enable/disable version-specific-runtime-libs" "$LINENO" 5 ;;
2665 esac
2666
2667 else
2668 enable_version_specific_runtime_libs=no
2669 fi
2670
2671
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_version_specific_runtime_libs" >&5
2673 $as_echo "$enable_version_specific_runtime_libs" >&6; }
2674
2675 # We would like our source tree to be readonly. However when releases or
2676 # pre-releases are generated, the flex/bison generated files as well as the
2677 # various formats of manuals need to be included along with the rest of the
2678 # sources. Therefore we have --enable-generated-files-in-srcdir to do
2679 # just that.
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-generated-files-in-srcdir" >&5
2681 $as_echo_n "checking for --enable-generated-files-in-srcdir... " >&6; }
2682 # Check whether --enable-generated-files-in-srcdir was given.
2683 if test "${enable_generated_files_in_srcdir+set}" = set; then :
2684 enableval=$enable_generated_files_in_srcdir;
2685 case "$enableval" in
2686 yes|no) ;;
2687 *) as_fn_error $? "Unknown argument to enable/disable generated-files-in-srcdir" "$LINENO" 5 ;;
2688 esac
2689
2690 else
2691 enable_generated_files_in_srcdir=no
2692 fi
2693
2694
2695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_generated_files_in_srcdir" >&5
2696 $as_echo "$enable_generated_files_in_srcdir" >&6; }
2697 if test "$enable_generated_files_in_srcdir" = yes; then
2698 GENINSRC_TRUE=
2699 GENINSRC_FALSE='#'
2700 else
2701 GENINSRC_TRUE='#'
2702 GENINSRC_FALSE=
2703 fi
2704
2705
2706
2707 # -------
2708 # -------
2709
2710 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2711 #
2712 # You will slowly go insane if you do not grok the following fact: when
2713 # building this library, the top-level /target/ becomes the library's /host/.
2714 #
2715 # configure then causes --target to default to --host, exactly like any
2716 # other package using autoconf. Therefore, 'target' and 'host' will
2717 # always be the same. This makes sense both for native and cross compilers
2718 # just think about it for a little while. :-)
2719 #
2720 # Also, if this library is being configured as part of a cross compiler, the
2721 # top-level configure script will pass the "real" host as $with_cross_host.
2722 #
2723 # Do not delete or change the following two lines. For why, see
2724 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2725 ac_aux_dir=
2726 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2727 if test -f "$ac_dir/install-sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install-sh -c"
2730 break
2731 elif test -f "$ac_dir/install.sh"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/install.sh -c"
2734 break
2735 elif test -f "$ac_dir/shtool"; then
2736 ac_aux_dir=$ac_dir
2737 ac_install_sh="$ac_aux_dir/shtool install -c"
2738 break
2739 fi
2740 done
2741 if test -z "$ac_aux_dir"; then
2742 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2743 fi
2744
2745 # These three variables are undocumented and unsupported,
2746 # and are intended to be withdrawn in a future Autoconf release.
2747 # They can cause serious problems if a builder's source tree is in a directory
2748 # whose full name contains unusual characters.
2749 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2750 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2751 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2752
2753
2754 # Make sure we can run config.sub.
2755 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2756 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2757
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2759 $as_echo_n "checking build system type... " >&6; }
2760 if ${ac_cv_build+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 ac_build_alias=$build_alias
2764 test "x$ac_build_alias" = x &&
2765 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2766 test "x$ac_build_alias" = x &&
2767 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2768 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2769 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2770
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2773 $as_echo "$ac_cv_build" >&6; }
2774 case $ac_cv_build in
2775 *-*-*) ;;
2776 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2777 esac
2778 build=$ac_cv_build
2779 ac_save_IFS=$IFS; IFS='-'
2780 set x $ac_cv_build
2781 shift
2782 build_cpu=$1
2783 build_vendor=$2
2784 shift; shift
2785 # Remember, the first character of IFS is used to create $*,
2786 # except with old shells:
2787 build_os=$*
2788 IFS=$ac_save_IFS
2789 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2790
2791
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2793 $as_echo_n "checking host system type... " >&6; }
2794 if ${ac_cv_host+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796 else
2797 if test "x$host_alias" = x; then
2798 ac_cv_host=$ac_cv_build
2799 else
2800 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2801 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2802 fi
2803
2804 fi
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2806 $as_echo "$ac_cv_host" >&6; }
2807 case $ac_cv_host in
2808 *-*-*) ;;
2809 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2810 esac
2811 host=$ac_cv_host
2812 ac_save_IFS=$IFS; IFS='-'
2813 set x $ac_cv_host
2814 shift
2815 host_cpu=$1
2816 host_vendor=$2
2817 shift; shift
2818 # Remember, the first character of IFS is used to create $*,
2819 # except with old shells:
2820 host_os=$*
2821 IFS=$ac_save_IFS
2822 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2823
2824
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2826 $as_echo_n "checking target system type... " >&6; }
2827 if ${ac_cv_target+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 if test "x$target_alias" = x; then
2831 ac_cv_target=$ac_cv_host
2832 else
2833 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2834 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2835 fi
2836
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2839 $as_echo "$ac_cv_target" >&6; }
2840 case $ac_cv_target in
2841 *-*-*) ;;
2842 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2843 esac
2844 target=$ac_cv_target
2845 ac_save_IFS=$IFS; IFS='-'
2846 set x $ac_cv_target
2847 shift
2848 target_cpu=$1
2849 target_vendor=$2
2850 shift; shift
2851 # Remember, the first character of IFS is used to create $*,
2852 # except with old shells:
2853 target_os=$*
2854 IFS=$ac_save_IFS
2855 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2856
2857
2858 # The aliases save the names the user supplied, while $host etc.
2859 # will get canonicalized.
2860 test -n "$target_alias" &&
2861 test "$program_prefix$program_suffix$program_transform_name" = \
2862 NONENONEs,x,x, &&
2863 program_prefix=${target_alias}-
2864
2865 target_alias=${target_alias-$host_alias}
2866
2867 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2868 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2869 # 1.9.0: minimum required version
2870 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2871 # of other PACKAGE_* variables will, however, and there's nothing
2872 # we can do about that; they come from AC_INIT).
2873 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2874 # file in the top srcdir, etc, etc), so stop complaining.
2875 # no-dist: we don't want 'dist' and related rules.
2876 # -Wall: turns on all automake warnings...
2877 # -Wno-portability: ...except this one, since GNU make is required.
2878 # -Wno-override: ... and this one, since we do want this in testsuite.
2879 am__api_version='1.15'
2880
2881 # Find a good install program. We prefer a C program (faster),
2882 # so one script is as good as another. But avoid the broken or
2883 # incompatible versions:
2884 # SysV /etc/install, /usr/sbin/install
2885 # SunOS /usr/etc/install
2886 # IRIX /sbin/install
2887 # AIX /bin/install
2888 # AmigaOS /C/install, which installs bootblocks on floppy discs
2889 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2890 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2891 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2892 # OS/2's system install, which has a completely different semantic
2893 # ./install, which can be erroneously created by make from ./install.sh.
2894 # Reject install programs that cannot install multiple files.
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2896 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2897 if test -z "$INSTALL"; then
2898 if ${ac_cv_path_install+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2902 for as_dir in $PATH
2903 do
2904 IFS=$as_save_IFS
2905 test -z "$as_dir" && as_dir=.
2906 # Account for people who put trailing slashes in PATH elements.
2907 case $as_dir/ in #((
2908 ./ | .// | /[cC]/* | \
2909 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2910 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2911 /usr/ucb/* ) ;;
2912 *)
2913 # OSF1 and SCO ODT 3.0 have their own names for install.
2914 # Don't use installbsd from OSF since it installs stuff as root
2915 # by default.
2916 for ac_prog in ginstall scoinst install; do
2917 for ac_exec_ext in '' $ac_executable_extensions; do
2918 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2919 if test $ac_prog = install &&
2920 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2921 # AIX install. It has an incompatible calling convention.
2922 :
2923 elif test $ac_prog = install &&
2924 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2925 # program-specific install script used by HP pwplus--don't use.
2926 :
2927 else
2928 rm -rf conftest.one conftest.two conftest.dir
2929 echo one > conftest.one
2930 echo two > conftest.two
2931 mkdir conftest.dir
2932 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2933 test -s conftest.one && test -s conftest.two &&
2934 test -s conftest.dir/conftest.one &&
2935 test -s conftest.dir/conftest.two
2936 then
2937 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2938 break 3
2939 fi
2940 fi
2941 fi
2942 done
2943 done
2944 ;;
2945 esac
2946
2947 done
2948 IFS=$as_save_IFS
2949
2950 rm -rf conftest.one conftest.two conftest.dir
2951
2952 fi
2953 if test "${ac_cv_path_install+set}" = set; then
2954 INSTALL=$ac_cv_path_install
2955 else
2956 # As a last resort, use the slow shell script. Don't cache a
2957 # value for INSTALL within a source directory, because that will
2958 # break other packages using the cache if that directory is
2959 # removed, or if the value is a relative name.
2960 INSTALL=$ac_install_sh
2961 fi
2962 fi
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2964 $as_echo "$INSTALL" >&6; }
2965
2966 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2967 # It thinks the first close brace ends the variable substitution.
2968 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2969
2970 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2971
2972 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2973
2974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2975 $as_echo_n "checking whether build environment is sane... " >&6; }
2976 # Reject unsafe characters in $srcdir or the absolute working directory
2977 # name. Accept space and tab only in the latter.
2978 am_lf='
2979 '
2980 case `pwd` in
2981 *[\\\"\#\$\&\'\`$am_lf]*)
2982 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2983 esac
2984 case $srcdir in
2985 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2986 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2987 esac
2988
2989 # Do 'set' in a subshell so we don't clobber the current shell's
2990 # arguments. Must try -L first in case configure is actually a
2991 # symlink; some systems play weird games with the mod time of symlinks
2992 # (eg FreeBSD returns the mod time of the symlink's containing
2993 # directory).
2994 if (
2995 am_has_slept=no
2996 for am_try in 1 2; do
2997 echo "timestamp, slept: $am_has_slept" > conftest.file
2998 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2999 if test "$*" = "X"; then
3000 # -L didn't work.
3001 set X `ls -t "$srcdir/configure" conftest.file`
3002 fi
3003 if test "$*" != "X $srcdir/configure conftest.file" \
3004 && test "$*" != "X conftest.file $srcdir/configure"; then
3005
3006 # If neither matched, then we have a broken ls. This can happen
3007 # if, for instance, CONFIG_SHELL is bash and it inherits a
3008 # broken ls alias from the environment. This has actually
3009 # happened. Such a system could not be considered "sane".
3010 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3011 alias in your environment" "$LINENO" 5
3012 fi
3013 if test "$2" = conftest.file || test $am_try -eq 2; then
3014 break
3015 fi
3016 # Just in case.
3017 sleep 1
3018 am_has_slept=yes
3019 done
3020 test "$2" = conftest.file
3021 )
3022 then
3023 # Ok.
3024 :
3025 else
3026 as_fn_error $? "newly created file is older than distributed files!
3027 Check your system clock" "$LINENO" 5
3028 fi
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3030 $as_echo "yes" >&6; }
3031 # If we didn't sleep, we still need to ensure time stamps of config.status and
3032 # generated files are strictly newer.
3033 am_sleep_pid=
3034 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3035 ( sleep 1 ) &
3036 am_sleep_pid=$!
3037 fi
3038
3039 rm -f conftest.file
3040
3041 test "$program_prefix" != NONE &&
3042 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3043 # Use a double $ so make ignores it.
3044 test "$program_suffix" != NONE &&
3045 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3046 # Double any \ or $.
3047 # By default was `s,x,x', remove it if useless.
3048 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3049 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3050
3051 # Expand $ac_aux_dir to an absolute path.
3052 am_aux_dir=`cd "$ac_aux_dir" && pwd`
3053
3054 if test x"${MISSING+set}" != xset; then
3055 case $am_aux_dir in
3056 *\ * | *\ *)
3057 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3058 *)
3059 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3060 esac
3061 fi
3062 # Use eval to expand $SHELL
3063 if eval "$MISSING --is-lightweight"; then
3064 am_missing_run="$MISSING "
3065 else
3066 am_missing_run=
3067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3068 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3069 fi
3070
3071 if test x"${install_sh+set}" != xset; then
3072 case $am_aux_dir in
3073 *\ * | *\ *)
3074 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3075 *)
3076 install_sh="\${SHELL} $am_aux_dir/install-sh"
3077 esac
3078 fi
3079
3080 # Installed binaries are usually stripped using 'strip' when the user
3081 # run "make install-strip". However 'strip' might not be the right
3082 # tool to use in cross-compilation environments, therefore Automake
3083 # will honor the 'STRIP' environment variable to overrule this program.
3084 if test "$cross_compiling" != no; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}strip; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_STRIP+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$STRIP"; then
3094 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 STRIP=$ac_cv_prog_STRIP
3114 if test -n "$STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3116 $as_echo "$STRIP" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 if test -z "$ac_cv_prog_STRIP"; then
3125 ac_ct_STRIP=$STRIP
3126 # Extract the first word of "strip", so it can be a program name with args.
3127 set dummy strip; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$ac_ct_STRIP"; then
3134 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3135 else
3136 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3137 for as_dir in $PATH
3138 do
3139 IFS=$as_save_IFS
3140 test -z "$as_dir" && as_dir=.
3141 for ac_exec_ext in '' $ac_executable_extensions; do
3142 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3143 ac_cv_prog_ac_ct_STRIP="strip"
3144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3145 break 2
3146 fi
3147 done
3148 done
3149 IFS=$as_save_IFS
3150
3151 fi
3152 fi
3153 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3154 if test -n "$ac_ct_STRIP"; then
3155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3156 $as_echo "$ac_ct_STRIP" >&6; }
3157 else
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3159 $as_echo "no" >&6; }
3160 fi
3161
3162 if test "x$ac_ct_STRIP" = x; then
3163 STRIP=":"
3164 else
3165 case $cross_compiling:$ac_tool_warned in
3166 yes:)
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3168 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3169 ac_tool_warned=yes ;;
3170 esac
3171 STRIP=$ac_ct_STRIP
3172 fi
3173 else
3174 STRIP="$ac_cv_prog_STRIP"
3175 fi
3176
3177 fi
3178 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3179
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3181 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3182 if test -z "$MKDIR_P"; then
3183 if ${ac_cv_path_mkdir+:} false; then :
3184 $as_echo_n "(cached) " >&6
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3188 do
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_prog in mkdir gmkdir; do
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3194 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3195 'mkdir (GNU coreutils) '* | \
3196 'mkdir (coreutils) '* | \
3197 'mkdir (fileutils) '4.1*)
3198 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3199 break 3;;
3200 esac
3201 done
3202 done
3203 done
3204 IFS=$as_save_IFS
3205
3206 fi
3207
3208 test -d ./--version && rmdir ./--version
3209 if test "${ac_cv_path_mkdir+set}" = set; then
3210 MKDIR_P="$ac_cv_path_mkdir -p"
3211 else
3212 # As a last resort, use the slow shell script. Don't cache a
3213 # value for MKDIR_P within a source directory, because that will
3214 # break other packages using the cache if that directory is
3215 # removed, or if the value is a relative name.
3216 MKDIR_P="$ac_install_sh -d"
3217 fi
3218 fi
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3220 $as_echo "$MKDIR_P" >&6; }
3221
3222 for ac_prog in gawk mawk nawk awk
3223 do
3224 # Extract the first word of "$ac_prog", so it can be a program name with args.
3225 set dummy $ac_prog; ac_word=$2
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3227 $as_echo_n "checking for $ac_word... " >&6; }
3228 if ${ac_cv_prog_AWK+:} false; then :
3229 $as_echo_n "(cached) " >&6
3230 else
3231 if test -n "$AWK"; then
3232 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3233 else
3234 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3235 for as_dir in $PATH
3236 do
3237 IFS=$as_save_IFS
3238 test -z "$as_dir" && as_dir=.
3239 for ac_exec_ext in '' $ac_executable_extensions; do
3240 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3241 ac_cv_prog_AWK="$ac_prog"
3242 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3243 break 2
3244 fi
3245 done
3246 done
3247 IFS=$as_save_IFS
3248
3249 fi
3250 fi
3251 AWK=$ac_cv_prog_AWK
3252 if test -n "$AWK"; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3254 $as_echo "$AWK" >&6; }
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 fi
3259
3260
3261 test -n "$AWK" && break
3262 done
3263
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3265 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3266 set x ${MAKE-make}
3267 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3268 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3269 $as_echo_n "(cached) " >&6
3270 else
3271 cat >conftest.make <<\_ACEOF
3272 SHELL = /bin/sh
3273 all:
3274 @echo '@@@%%%=$(MAKE)=@@@%%%'
3275 _ACEOF
3276 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3277 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3278 *@@@%%%=?*=@@@%%%*)
3279 eval ac_cv_prog_make_${ac_make}_set=yes;;
3280 *)
3281 eval ac_cv_prog_make_${ac_make}_set=no;;
3282 esac
3283 rm -f conftest.make
3284 fi
3285 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3287 $as_echo "yes" >&6; }
3288 SET_MAKE=
3289 else
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3291 $as_echo "no" >&6; }
3292 SET_MAKE="MAKE=${MAKE-make}"
3293 fi
3294
3295 rm -rf .tst 2>/dev/null
3296 mkdir .tst 2>/dev/null
3297 if test -d .tst; then
3298 am__leading_dot=.
3299 else
3300 am__leading_dot=_
3301 fi
3302 rmdir .tst 2>/dev/null
3303
3304 # Check whether --enable-silent-rules was given.
3305 if test "${enable_silent_rules+set}" = set; then :
3306 enableval=$enable_silent_rules;
3307 fi
3308
3309 case $enable_silent_rules in # (((
3310 yes) AM_DEFAULT_VERBOSITY=0;;
3311 no) AM_DEFAULT_VERBOSITY=1;;
3312 *) AM_DEFAULT_VERBOSITY=1;;
3313 esac
3314 am_make=${MAKE-make}
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3316 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3317 if ${am_cv_make_support_nested_variables+:} false; then :
3318 $as_echo_n "(cached) " >&6
3319 else
3320 if $as_echo 'TRUE=$(BAR$(V))
3321 BAR0=false
3322 BAR1=true
3323 V=1
3324 am__doit:
3325 @$(TRUE)
3326 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3327 am_cv_make_support_nested_variables=yes
3328 else
3329 am_cv_make_support_nested_variables=no
3330 fi
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3333 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3334 if test $am_cv_make_support_nested_variables = yes; then
3335 AM_V='$(V)'
3336 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3337 else
3338 AM_V=$AM_DEFAULT_VERBOSITY
3339 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3340 fi
3341 AM_BACKSLASH='\'
3342
3343 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3344 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3345 # is not polluted with repeated "-I."
3346 am__isrc=' -I$(srcdir)'
3347 # test to see if srcdir already configured
3348 if test -f $srcdir/config.status; then
3349 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3350 fi
3351 fi
3352
3353 # test whether we have cygpath
3354 if test -z "$CYGPATH_W"; then
3355 if (cygpath --version) >/dev/null 2>/dev/null; then
3356 CYGPATH_W='cygpath -w'
3357 else
3358 CYGPATH_W=echo
3359 fi
3360 fi
3361
3362
3363 # Define the identity of the package.
3364 PACKAGE='libgomp'
3365 VERSION='1.0'
3366
3367
3368 cat >>confdefs.h <<_ACEOF
3369 #define PACKAGE "$PACKAGE"
3370 _ACEOF
3371
3372
3373 cat >>confdefs.h <<_ACEOF
3374 #define VERSION "$VERSION"
3375 _ACEOF
3376
3377 # Some tools Automake needs.
3378
3379 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3380
3381
3382 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3383
3384
3385 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3386
3387
3388 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3389
3390
3391 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3392
3393 # For better backward compatibility. To be removed once Automake 1.9.x
3394 # dies out for good. For more background, see:
3395 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3396 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3397 mkdir_p='$(MKDIR_P)'
3398
3399 # We need awk for the "check" target (and possibly the TAP driver). The
3400 # system "awk" is bad on some platforms.
3401 # Always define AMTAR for backward compatibility. Yes, it's still used
3402 # in the wild :-( We should find a proper way to deprecate it ...
3403 AMTAR='$${TAR-tar}'
3404
3405
3406 # We'll loop over all known methods to create a tar archive until one works.
3407 _am_tools='gnutar pax cpio none'
3408
3409 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3410
3411
3412
3413
3414
3415
3416 # POSIX will say in a future version that running "rm -f" with no argument
3417 # is OK; and we want to be able to make that assumption in our Makefile
3418 # recipes. So use an aggressive probe to check that the usage we want is
3419 # actually supported "in the wild" to an acceptable degree.
3420 # See automake bug#10828.
3421 # To make any issue more visible, cause the running configure to be aborted
3422 # by default if the 'rm' program in use doesn't match our expectations; the
3423 # user can still override this though.
3424 if rm -f && rm -fr && rm -rf; then : OK; else
3425 cat >&2 <<'END'
3426 Oops!
3427
3428 Your 'rm' program seems unable to run without file operands specified
3429 on the command line, even when the '-f' option is present. This is contrary
3430 to the behaviour of most rm programs out there, and not conforming with
3431 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3432
3433 Please tell bug-automake@gnu.org about your system, including the value
3434 of your $PATH and any error possibly output before this message. This
3435 can help us improve future automake versions.
3436
3437 END
3438 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3439 echo 'Configuration will proceed anyway, since you have set the' >&2
3440 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3441 echo >&2
3442 else
3443 cat >&2 <<'END'
3444 Aborting the configuration process, to ensure you take notice of the issue.
3445
3446 You can download and install GNU coreutils to get an 'rm' implementation
3447 that behaves properly: <http://www.gnu.org/software/coreutils/>.
3448
3449 If you want to complete the configuration process using your problematic
3450 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3451 to "yes", and re-run configure.
3452
3453 END
3454 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3455 fi
3456 fi
3457
3458 # Default to --enable-multilib
3459 # Check whether --enable-multilib was given.
3460 if test "${enable_multilib+set}" = set; then :
3461 enableval=$enable_multilib; case "$enableval" in
3462 yes) multilib=yes ;;
3463 no) multilib=no ;;
3464 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
3465 esac
3466 else
3467 multilib=yes
3468 fi
3469
3470
3471 # We may get other options which we leave undocumented:
3472 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3473 # See config-ml.in if you want the gory details.
3474
3475 if test "$srcdir" = "."; then
3476 if test "$with_target_subdir" != "."; then
3477 multi_basedir="$srcdir/$with_multisrctop../.."
3478 else
3479 multi_basedir="$srcdir/$with_multisrctop.."
3480 fi
3481 else
3482 multi_basedir="$srcdir/.."
3483 fi
3484
3485
3486 # Even if the default multilib is not a cross compilation,
3487 # it may be that some of the other multilibs are.
3488 if test $cross_compiling = no && test $multilib = yes \
3489 && test "x${with_multisubdir}" != x ; then
3490 cross_compiling=maybe
3491 fi
3492
3493 ac_config_commands="$ac_config_commands default-1"
3494
3495
3496 # Calculate toolexeclibdir
3497 # Also toolexecdir, though it's only used in toolexeclibdir
3498 case ${enable_version_specific_runtime_libs} in
3499 yes)
3500 # Need the gcc compiler version to know where to install libraries
3501 # and header files if --enable-version-specific-runtime-libs option
3502 # is selected.
3503 toolexecdir='$(libdir)/gcc/$(target_alias)'
3504 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
3505 ;;
3506 no)
3507 if test -n "$with_cross_host" &&
3508 test x"$with_cross_host" != x"no"; then
3509 # Install a library built with a cross compiler in tooldir, not libdir.
3510 toolexecdir='$(exec_prefix)/$(target_alias)'
3511 toolexeclibdir='$(toolexecdir)/lib'
3512 else
3513 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
3514 toolexeclibdir='$(libdir)'
3515 fi
3516 multi_os_directory=`$CC -print-multi-os-directory`
3517 case $multi_os_directory in
3518 .) ;; # Avoid trailing /.
3519 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
3520 esac
3521 ;;
3522 esac
3523
3524
3525
3526 # Check the compiler.
3527 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
3528 # We must force CC to /not/ be precious variables; otherwise
3529 # the wrong, non-multilib-adjusted value will be used in multilibs.
3530 # As a side effect, we have to subst CFLAGS ourselves.
3531
3532
3533
3534 ac_ext=c
3535 ac_cpp='$CPP $CPPFLAGS'
3536 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3537 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3538 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3539 if test -n "$ac_tool_prefix"; then
3540 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3541 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3543 $as_echo_n "checking for $ac_word... " >&6; }
3544 if ${ac_cv_prog_CC+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -n "$CC"; then
3548 ac_cv_prog_CC="$CC" # Let the user override the test.
3549 else
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH
3552 do
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_exec_ext in '' $ac_executable_extensions; do
3556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3557 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3559 break 2
3560 fi
3561 done
3562 done
3563 IFS=$as_save_IFS
3564
3565 fi
3566 fi
3567 CC=$ac_cv_prog_CC
3568 if test -n "$CC"; then
3569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3570 $as_echo "$CC" >&6; }
3571 else
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3573 $as_echo "no" >&6; }
3574 fi
3575
3576
3577 fi
3578 if test -z "$ac_cv_prog_CC"; then
3579 ac_ct_CC=$CC
3580 # Extract the first word of "gcc", so it can be a program name with args.
3581 set dummy gcc; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="gcc"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616 if test "x$ac_ct_CC" = x; then
3617 CC=""
3618 else
3619 case $cross_compiling:$ac_tool_warned in
3620 yes:)
3621 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3622 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3623 ac_tool_warned=yes ;;
3624 esac
3625 CC=$ac_ct_CC
3626 fi
3627 else
3628 CC="$ac_cv_prog_CC"
3629 fi
3630
3631 if test -z "$CC"; then
3632 if test -n "$ac_tool_prefix"; then
3633 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3634 set dummy ${ac_tool_prefix}cc; ac_word=$2
3635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3636 $as_echo_n "checking for $ac_word... " >&6; }
3637 if ${ac_cv_prog_CC+:} false; then :
3638 $as_echo_n "(cached) " >&6
3639 else
3640 if test -n "$CC"; then
3641 ac_cv_prog_CC="$CC" # Let the user override the test.
3642 else
3643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3644 for as_dir in $PATH
3645 do
3646 IFS=$as_save_IFS
3647 test -z "$as_dir" && as_dir=.
3648 for ac_exec_ext in '' $ac_executable_extensions; do
3649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3650 ac_cv_prog_CC="${ac_tool_prefix}cc"
3651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3652 break 2
3653 fi
3654 done
3655 done
3656 IFS=$as_save_IFS
3657
3658 fi
3659 fi
3660 CC=$ac_cv_prog_CC
3661 if test -n "$CC"; then
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3663 $as_echo "$CC" >&6; }
3664 else
3665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3666 $as_echo "no" >&6; }
3667 fi
3668
3669
3670 fi
3671 fi
3672 if test -z "$CC"; then
3673 # Extract the first word of "cc", so it can be a program name with args.
3674 set dummy cc; ac_word=$2
3675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3676 $as_echo_n "checking for $ac_word... " >&6; }
3677 if ${ac_cv_prog_CC+:} false; then :
3678 $as_echo_n "(cached) " >&6
3679 else
3680 if test -n "$CC"; then
3681 ac_cv_prog_CC="$CC" # Let the user override the test.
3682 else
3683 ac_prog_rejected=no
3684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3685 for as_dir in $PATH
3686 do
3687 IFS=$as_save_IFS
3688 test -z "$as_dir" && as_dir=.
3689 for ac_exec_ext in '' $ac_executable_extensions; do
3690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3691 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3692 ac_prog_rejected=yes
3693 continue
3694 fi
3695 ac_cv_prog_CC="cc"
3696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3697 break 2
3698 fi
3699 done
3700 done
3701 IFS=$as_save_IFS
3702
3703 if test $ac_prog_rejected = yes; then
3704 # We found a bogon in the path, so make sure we never use it.
3705 set dummy $ac_cv_prog_CC
3706 shift
3707 if test $# != 0; then
3708 # We chose a different compiler from the bogus one.
3709 # However, it has the same basename, so the bogon will be chosen
3710 # first if we set CC to just the basename; use the full file name.
3711 shift
3712 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3713 fi
3714 fi
3715 fi
3716 fi
3717 CC=$ac_cv_prog_CC
3718 if test -n "$CC"; then
3719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3720 $as_echo "$CC" >&6; }
3721 else
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3723 $as_echo "no" >&6; }
3724 fi
3725
3726
3727 fi
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 for ac_prog in cl.exe
3731 do
3732 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3733 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3735 $as_echo_n "checking for $ac_word... " >&6; }
3736 if ${ac_cv_prog_CC+:} false; then :
3737 $as_echo_n "(cached) " >&6
3738 else
3739 if test -n "$CC"; then
3740 ac_cv_prog_CC="$CC" # Let the user override the test.
3741 else
3742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3743 for as_dir in $PATH
3744 do
3745 IFS=$as_save_IFS
3746 test -z "$as_dir" && as_dir=.
3747 for ac_exec_ext in '' $ac_executable_extensions; do
3748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3749 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 break 2
3752 fi
3753 done
3754 done
3755 IFS=$as_save_IFS
3756
3757 fi
3758 fi
3759 CC=$ac_cv_prog_CC
3760 if test -n "$CC"; then
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3762 $as_echo "$CC" >&6; }
3763 else
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3765 $as_echo "no" >&6; }
3766 fi
3767
3768
3769 test -n "$CC" && break
3770 done
3771 fi
3772 if test -z "$CC"; then
3773 ac_ct_CC=$CC
3774 for ac_prog in cl.exe
3775 do
3776 # Extract the first word of "$ac_prog", so it can be a program name with args.
3777 set dummy $ac_prog; ac_word=$2
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3779 $as_echo_n "checking for $ac_word... " >&6; }
3780 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -n "$ac_ct_CC"; then
3784 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3785 else
3786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3787 for as_dir in $PATH
3788 do
3789 IFS=$as_save_IFS
3790 test -z "$as_dir" && as_dir=.
3791 for ac_exec_ext in '' $ac_executable_extensions; do
3792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3793 ac_cv_prog_ac_ct_CC="$ac_prog"
3794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3795 break 2
3796 fi
3797 done
3798 done
3799 IFS=$as_save_IFS
3800
3801 fi
3802 fi
3803 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3804 if test -n "$ac_ct_CC"; then
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3806 $as_echo "$ac_ct_CC" >&6; }
3807 else
3808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3809 $as_echo "no" >&6; }
3810 fi
3811
3812
3813 test -n "$ac_ct_CC" && break
3814 done
3815
3816 if test "x$ac_ct_CC" = x; then
3817 CC=""
3818 else
3819 case $cross_compiling:$ac_tool_warned in
3820 yes:)
3821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3823 ac_tool_warned=yes ;;
3824 esac
3825 CC=$ac_ct_CC
3826 fi
3827 fi
3828
3829 fi
3830
3831
3832 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3833 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3834 as_fn_error $? "no acceptable C compiler found in \$PATH
3835 See \`config.log' for more details" "$LINENO" 5; }
3836
3837 # Provide some information about the compiler.
3838 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3839 set X $ac_compile
3840 ac_compiler=$2
3841 for ac_option in --version -v -V -qversion; do
3842 { { ac_try="$ac_compiler $ac_option >&5"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3848 $as_echo "$ac_try_echo"; } >&5
3849 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3850 ac_status=$?
3851 if test -s conftest.err; then
3852 sed '10a\
3853 ... rest of stderr output deleted ...
3854 10q' conftest.err >conftest.er1
3855 cat conftest.er1 >&5
3856 fi
3857 rm -f conftest.er1 conftest.err
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }
3860 done
3861
3862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3863 /* end confdefs.h. */
3864
3865 int
3866 main ()
3867 {
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 ac_clean_files_save=$ac_clean_files
3874 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3875 # Try to create an executable without -o first, disregard a.out.
3876 # It will help us diagnose broken compilers, and finding out an intuition
3877 # of exeext.
3878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3879 $as_echo_n "checking whether the C compiler works... " >&6; }
3880 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3881
3882 # The possible output files:
3883 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3884
3885 ac_rmfiles=
3886 for ac_file in $ac_files
3887 do
3888 case $ac_file in
3889 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3890 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3891 esac
3892 done
3893 rm -f $ac_rmfiles
3894
3895 if { { ac_try="$ac_link_default"
3896 case "(($ac_try" in
3897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3898 *) ac_try_echo=$ac_try;;
3899 esac
3900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3901 $as_echo "$ac_try_echo"; } >&5
3902 (eval "$ac_link_default") 2>&5
3903 ac_status=$?
3904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3905 test $ac_status = 0; }; then :
3906 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3907 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3908 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3909 # so that the user can short-circuit this test for compilers unknown to
3910 # Autoconf.
3911 for ac_file in $ac_files ''
3912 do
3913 test -f "$ac_file" || continue
3914 case $ac_file in
3915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3916 ;;
3917 [ab].out )
3918 # We found the default executable, but exeext='' is most
3919 # certainly right.
3920 break;;
3921 *.* )
3922 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3923 then :; else
3924 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3925 fi
3926 # We set ac_cv_exeext here because the later test for it is not
3927 # safe: cross compilers may not add the suffix if given an `-o'
3928 # argument, so we may need to know it at that point already.
3929 # Even if this section looks crufty: it has the advantage of
3930 # actually working.
3931 break;;
3932 * )
3933 break;;
3934 esac
3935 done
3936 test "$ac_cv_exeext" = no && ac_cv_exeext=
3937
3938 else
3939 ac_file=''
3940 fi
3941 if test -z "$ac_file"; then :
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3943 $as_echo "no" >&6; }
3944 $as_echo "$as_me: failed program was:" >&5
3945 sed 's/^/| /' conftest.$ac_ext >&5
3946
3947 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3949 as_fn_error 77 "C compiler cannot create executables
3950 See \`config.log' for more details" "$LINENO" 5; }
3951 else
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3953 $as_echo "yes" >&6; }
3954 fi
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3956 $as_echo_n "checking for C compiler default output file name... " >&6; }
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3958 $as_echo "$ac_file" >&6; }
3959 ac_exeext=$ac_cv_exeext
3960
3961 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3962 ac_clean_files=$ac_clean_files_save
3963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3964 $as_echo_n "checking for suffix of executables... " >&6; }
3965 if { { ac_try="$ac_link"
3966 case "(($ac_try" in
3967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3968 *) ac_try_echo=$ac_try;;
3969 esac
3970 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3971 $as_echo "$ac_try_echo"; } >&5
3972 (eval "$ac_link") 2>&5
3973 ac_status=$?
3974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3975 test $ac_status = 0; }; then :
3976 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3977 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3978 # work properly (i.e., refer to `conftest.exe'), while it won't with
3979 # `rm'.
3980 for ac_file in conftest.exe conftest conftest.*; do
3981 test -f "$ac_file" || continue
3982 case $ac_file in
3983 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3984 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3985 break;;
3986 * ) break;;
3987 esac
3988 done
3989 else
3990 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3991 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3992 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3993 See \`config.log' for more details" "$LINENO" 5; }
3994 fi
3995 rm -f conftest conftest$ac_cv_exeext
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3997 $as_echo "$ac_cv_exeext" >&6; }
3998
3999 rm -f conftest.$ac_ext
4000 EXEEXT=$ac_cv_exeext
4001 ac_exeext=$EXEEXT
4002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4003 /* end confdefs.h. */
4004 #include <stdio.h>
4005 int
4006 main ()
4007 {
4008 FILE *f = fopen ("conftest.out", "w");
4009 return ferror (f) || fclose (f) != 0;
4010
4011 ;
4012 return 0;
4013 }
4014 _ACEOF
4015 ac_clean_files="$ac_clean_files conftest.out"
4016 # Check that the compiler produces executables we can run. If not, either
4017 # the compiler is broken, or we cross compile.
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4019 $as_echo_n "checking whether we are cross compiling... " >&6; }
4020 if test "$cross_compiling" != yes; then
4021 { { ac_try="$ac_link"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4027 $as_echo "$ac_try_echo"; } >&5
4028 (eval "$ac_link") 2>&5
4029 ac_status=$?
4030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4031 test $ac_status = 0; }
4032 if { ac_try='./conftest$ac_cv_exeext'
4033 { { case "(($ac_try" in
4034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035 *) ac_try_echo=$ac_try;;
4036 esac
4037 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4038 $as_echo "$ac_try_echo"; } >&5
4039 (eval "$ac_try") 2>&5
4040 ac_status=$?
4041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4042 test $ac_status = 0; }; }; then
4043 cross_compiling=no
4044 else
4045 if test "$cross_compiling" = maybe; then
4046 cross_compiling=yes
4047 else
4048 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4049 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4050 as_fn_error $? "cannot run C compiled programs.
4051 If you meant to cross compile, use \`--host'.
4052 See \`config.log' for more details" "$LINENO" 5; }
4053 fi
4054 fi
4055 fi
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4057 $as_echo "$cross_compiling" >&6; }
4058
4059 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4060 ac_clean_files=$ac_clean_files_save
4061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4062 $as_echo_n "checking for suffix of object files... " >&6; }
4063 if ${ac_cv_objext+:} false; then :
4064 $as_echo_n "(cached) " >&6
4065 else
4066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4067 /* end confdefs.h. */
4068
4069 int
4070 main ()
4071 {
4072
4073 ;
4074 return 0;
4075 }
4076 _ACEOF
4077 rm -f conftest.o conftest.obj
4078 if { { ac_try="$ac_compile"
4079 case "(($ac_try" in
4080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4081 *) ac_try_echo=$ac_try;;
4082 esac
4083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4084 $as_echo "$ac_try_echo"; } >&5
4085 (eval "$ac_compile") 2>&5
4086 ac_status=$?
4087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4088 test $ac_status = 0; }; then :
4089 for ac_file in conftest.o conftest.obj conftest.*; do
4090 test -f "$ac_file" || continue;
4091 case $ac_file in
4092 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4093 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4094 break;;
4095 esac
4096 done
4097 else
4098 $as_echo "$as_me: failed program was:" >&5
4099 sed 's/^/| /' conftest.$ac_ext >&5
4100
4101 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4102 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4103 as_fn_error $? "cannot compute suffix of object files: cannot compile
4104 See \`config.log' for more details" "$LINENO" 5; }
4105 fi
4106 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4109 $as_echo "$ac_cv_objext" >&6; }
4110 OBJEXT=$ac_cv_objext
4111 ac_objext=$OBJEXT
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4113 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4114 if ${ac_cv_c_compiler_gnu+:} false; then :
4115 $as_echo_n "(cached) " >&6
4116 else
4117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4118 /* end confdefs.h. */
4119
4120 int
4121 main ()
4122 {
4123 #ifndef __GNUC__
4124 choke me
4125 #endif
4126
4127 ;
4128 return 0;
4129 }
4130 _ACEOF
4131 if ac_fn_c_try_compile "$LINENO"; then :
4132 ac_compiler_gnu=yes
4133 else
4134 ac_compiler_gnu=no
4135 fi
4136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4138
4139 fi
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4141 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4142 if test $ac_compiler_gnu = yes; then
4143 GCC=yes
4144 else
4145 GCC=
4146 fi
4147 ac_test_CFLAGS=${CFLAGS+set}
4148 ac_save_CFLAGS=$CFLAGS
4149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4150 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4151 if ${ac_cv_prog_cc_g+:} false; then :
4152 $as_echo_n "(cached) " >&6
4153 else
4154 ac_save_c_werror_flag=$ac_c_werror_flag
4155 ac_c_werror_flag=yes
4156 ac_cv_prog_cc_g=no
4157 CFLAGS="-g"
4158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4159 /* end confdefs.h. */
4160
4161 int
4162 main ()
4163 {
4164
4165 ;
4166 return 0;
4167 }
4168 _ACEOF
4169 if ac_fn_c_try_compile "$LINENO"; then :
4170 ac_cv_prog_cc_g=yes
4171 else
4172 CFLAGS=""
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4175
4176 int
4177 main ()
4178 {
4179
4180 ;
4181 return 0;
4182 }
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185
4186 else
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 CFLAGS="-g"
4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4190 /* end confdefs.h. */
4191
4192 int
4193 main ()
4194 {
4195
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 if ac_fn_c_try_compile "$LINENO"; then :
4201 ac_cv_prog_cc_g=yes
4202 fi
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 fi
4205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4206 fi
4207 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209 fi
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4211 $as_echo "$ac_cv_prog_cc_g" >&6; }
4212 if test "$ac_test_CFLAGS" = set; then
4213 CFLAGS=$ac_save_CFLAGS
4214 elif test $ac_cv_prog_cc_g = yes; then
4215 if test "$GCC" = yes; then
4216 CFLAGS="-g -O2"
4217 else
4218 CFLAGS="-g"
4219 fi
4220 else
4221 if test "$GCC" = yes; then
4222 CFLAGS="-O2"
4223 else
4224 CFLAGS=
4225 fi
4226 fi
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4228 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4229 if ${ac_cv_prog_cc_c89+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 ac_cv_prog_cc_c89=no
4233 ac_save_CC=$CC
4234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4235 /* end confdefs.h. */
4236 #include <stdarg.h>
4237 #include <stdio.h>
4238 struct stat;
4239 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4240 struct buf { int x; };
4241 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4242 static char *e (p, i)
4243 char **p;
4244 int i;
4245 {
4246 return p[i];
4247 }
4248 static char *f (char * (*g) (char **, int), char **p, ...)
4249 {
4250 char *s;
4251 va_list v;
4252 va_start (v,p);
4253 s = g (p, va_arg (v,int));
4254 va_end (v);
4255 return s;
4256 }
4257
4258 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4259 function prototypes and stuff, but not '\xHH' hex character constants.
4260 These don't provoke an error unfortunately, instead are silently treated
4261 as 'x'. The following induces an error, until -std is added to get
4262 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4263 array size at least. It's necessary to write '\x00'==0 to get something
4264 that's true only with -std. */
4265 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4266
4267 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4268 inside strings and character constants. */
4269 #define FOO(x) 'x'
4270 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4271
4272 int test (int i, double x);
4273 struct s1 {int (*f) (int a);};
4274 struct s2 {int (*f) (double a);};
4275 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4276 int argc;
4277 char **argv;
4278 int
4279 main ()
4280 {
4281 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4282 ;
4283 return 0;
4284 }
4285 _ACEOF
4286 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4287 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4288 do
4289 CC="$ac_save_CC $ac_arg"
4290 if ac_fn_c_try_compile "$LINENO"; then :
4291 ac_cv_prog_cc_c89=$ac_arg
4292 fi
4293 rm -f core conftest.err conftest.$ac_objext
4294 test "x$ac_cv_prog_cc_c89" != "xno" && break
4295 done
4296 rm -f conftest.$ac_ext
4297 CC=$ac_save_CC
4298
4299 fi
4300 # AC_CACHE_VAL
4301 case "x$ac_cv_prog_cc_c89" in
4302 x)
4303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4304 $as_echo "none needed" >&6; } ;;
4305 xno)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4307 $as_echo "unsupported" >&6; } ;;
4308 *)
4309 CC="$CC $ac_cv_prog_cc_c89"
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4311 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4312 esac
4313 if test "x$ac_cv_prog_cc_c89" != xno; then :
4314
4315 fi
4316
4317 ac_ext=c
4318 ac_cpp='$CPP $CPPFLAGS'
4319 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4320 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4321 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4322
4323 ac_ext=c
4324 ac_cpp='$CPP $CPPFLAGS'
4325 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4326 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4327 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4329 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4330 if ${am_cv_prog_cc_c_o+:} false; then :
4331 $as_echo_n "(cached) " >&6
4332 else
4333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4334 /* end confdefs.h. */
4335
4336 int
4337 main ()
4338 {
4339
4340 ;
4341 return 0;
4342 }
4343 _ACEOF
4344 # Make sure it works both with $CC and with simple cc.
4345 # Following AC_PROG_CC_C_O, we do the test twice because some
4346 # compilers refuse to overwrite an existing .o file with -o,
4347 # though they will create one.
4348 am_cv_prog_cc_c_o=yes
4349 for am_i in 1 2; do
4350 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4351 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4352 ac_status=$?
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } \
4355 && test -f conftest2.$ac_objext; then
4356 : OK
4357 else
4358 am_cv_prog_cc_c_o=no
4359 break
4360 fi
4361 done
4362 rm -f core conftest*
4363 unset am_i
4364 fi
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4366 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4367 if test "$am_cv_prog_cc_c_o" != yes; then
4368 # Losing compiler, so override with the script.
4369 # FIXME: It is wrong to rewrite CC.
4370 # But if we don't then we get into trouble of one sort or another.
4371 # A longer-term fix would be to have automake use am__CC in this case,
4372 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4373 CC="$am_aux_dir/compile $CC"
4374 fi
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380
4381 DEPDIR="${am__leading_dot}deps"
4382
4383 ac_config_commands="$ac_config_commands depfiles"
4384
4385
4386 am_make=${MAKE-make}
4387 cat > confinc << 'END'
4388 am__doit:
4389 @echo this is the am__doit target
4390 .PHONY: am__doit
4391 END
4392 # If we don't find an include directive, just comment out the code.
4393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4394 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4395 am__include="#"
4396 am__quote=
4397 _am_result=none
4398 # First try GNU make style include.
4399 echo "include confinc" > confmf
4400 # Ignore all kinds of additional output from 'make'.
4401 case `$am_make -s -f confmf 2> /dev/null` in #(
4402 *the\ am__doit\ target*)
4403 am__include=include
4404 am__quote=
4405 _am_result=GNU
4406 ;;
4407 esac
4408 # Now try BSD make style include.
4409 if test "$am__include" = "#"; then
4410 echo '.include "confinc"' > confmf
4411 case `$am_make -s -f confmf 2> /dev/null` in #(
4412 *the\ am__doit\ target*)
4413 am__include=.include
4414 am__quote="\""
4415 _am_result=BSD
4416 ;;
4417 esac
4418 fi
4419
4420
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4422 $as_echo "$_am_result" >&6; }
4423 rm -f confinc confmf
4424
4425 # Check whether --enable-dependency-tracking was given.
4426 if test "${enable_dependency_tracking+set}" = set; then :
4427 enableval=$enable_dependency_tracking;
4428 fi
4429
4430 if test "x$enable_dependency_tracking" != xno; then
4431 am_depcomp="$ac_aux_dir/depcomp"
4432 AMDEPBACKSLASH='\'
4433 am__nodep='_no'
4434 fi
4435 if test "x$enable_dependency_tracking" != xno; then
4436 AMDEP_TRUE=
4437 AMDEP_FALSE='#'
4438 else
4439 AMDEP_TRUE='#'
4440 AMDEP_FALSE=
4441 fi
4442
4443
4444
4445 depcc="$CC" am_compiler_list=
4446
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4448 $as_echo_n "checking dependency style of $depcc... " >&6; }
4449 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4453 # We make a subdir and do the tests there. Otherwise we can end up
4454 # making bogus files that we don't know about and never remove. For
4455 # instance it was reported that on HP-UX the gcc test will end up
4456 # making a dummy file named 'D' -- because '-MD' means "put the output
4457 # in D".
4458 rm -rf conftest.dir
4459 mkdir conftest.dir
4460 # Copy depcomp to subdir because otherwise we won't find it if we're
4461 # using a relative directory.
4462 cp "$am_depcomp" conftest.dir
4463 cd conftest.dir
4464 # We will build objects and dependencies in a subdirectory because
4465 # it helps to detect inapplicable dependency modes. For instance
4466 # both Tru64's cc and ICC support -MD to output dependencies as a
4467 # side effect of compilation, but ICC will put the dependencies in
4468 # the current directory while Tru64 will put them in the object
4469 # directory.
4470 mkdir sub
4471
4472 am_cv_CC_dependencies_compiler_type=none
4473 if test "$am_compiler_list" = ""; then
4474 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4475 fi
4476 am__universal=false
4477 case " $depcc " in #(
4478 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4479 esac
4480
4481 for depmode in $am_compiler_list; do
4482 # Setup a source with many dependencies, because some compilers
4483 # like to wrap large dependency lists on column 80 (with \), and
4484 # we should not choose a depcomp mode which is confused by this.
4485 #
4486 # We need to recreate these files for each test, as the compiler may
4487 # overwrite some of them when testing with obscure command lines.
4488 # This happens at least with the AIX C compiler.
4489 : > sub/conftest.c
4490 for i in 1 2 3 4 5 6; do
4491 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4492 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4493 # Solaris 10 /bin/sh.
4494 echo '/* dummy */' > sub/conftst$i.h
4495 done
4496 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4497
4498 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4499 # mode. It turns out that the SunPro C++ compiler does not properly
4500 # handle '-M -o', and we need to detect this. Also, some Intel
4501 # versions had trouble with output in subdirs.
4502 am__obj=sub/conftest.${OBJEXT-o}
4503 am__minus_obj="-o $am__obj"
4504 case $depmode in
4505 gcc)
4506 # This depmode causes a compiler race in universal mode.
4507 test "$am__universal" = false || continue
4508 ;;
4509 nosideeffect)
4510 # After this tag, mechanisms are not by side-effect, so they'll
4511 # only be used when explicitly requested.
4512 if test "x$enable_dependency_tracking" = xyes; then
4513 continue
4514 else
4515 break
4516 fi
4517 ;;
4518 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4519 # This compiler won't grok '-c -o', but also, the minuso test has
4520 # not run yet. These depmodes are late enough in the game, and
4521 # so weak that their functioning should not be impacted.
4522 am__obj=conftest.${OBJEXT-o}
4523 am__minus_obj=
4524 ;;
4525 none) break ;;
4526 esac
4527 if depmode=$depmode \
4528 source=sub/conftest.c object=$am__obj \
4529 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4530 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4531 >/dev/null 2>conftest.err &&
4532 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4533 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4534 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4535 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4536 # icc doesn't choke on unknown options, it will just issue warnings
4537 # or remarks (even with -Werror). So we grep stderr for any message
4538 # that says an option was ignored or not supported.
4539 # When given -MP, icc 7.0 and 7.1 complain thusly:
4540 # icc: Command line warning: ignoring option '-M'; no argument required
4541 # The diagnosis changed in icc 8.0:
4542 # icc: Command line remark: option '-MP' not supported
4543 if (grep 'ignoring option' conftest.err ||
4544 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4545 am_cv_CC_dependencies_compiler_type=$depmode
4546 break
4547 fi
4548 fi
4549 done
4550
4551 cd ..
4552 rm -rf conftest.dir
4553 else
4554 am_cv_CC_dependencies_compiler_type=none
4555 fi
4556
4557 fi
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4559 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4560 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4561
4562 if
4563 test "x$enable_dependency_tracking" != xno \
4564 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4565 am__fastdepCC_TRUE=
4566 am__fastdepCC_FALSE='#'
4567 else
4568 am__fastdepCC_TRUE='#'
4569 am__fastdepCC_FALSE=
4570 fi
4571
4572
4573
4574
4575
4576
4577 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
4578 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
4579 # in both places for now and restore CFLAGS at the end of config.
4580 save_CFLAGS="$CFLAGS"
4581
4582 # Add -Wall -Werror if we are using GCC.
4583 if test "x$GCC" = "xyes"; then
4584 XCFLAGS="$XCFLAGS -Wall -Werror"
4585 fi
4586
4587 # Find other programs we need.
4588 if test -n "$ac_tool_prefix"; then
4589 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4590 set dummy ${ac_tool_prefix}ar; ac_word=$2
4591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4592 $as_echo_n "checking for $ac_word... " >&6; }
4593 if ${ac_cv_prog_AR+:} false; then :
4594 $as_echo_n "(cached) " >&6
4595 else
4596 if test -n "$AR"; then
4597 ac_cv_prog_AR="$AR" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602 IFS=$as_save_IFS
4603 test -z "$as_dir" && as_dir=.
4604 for ac_exec_ext in '' $ac_executable_extensions; do
4605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4606 ac_cv_prog_AR="${ac_tool_prefix}ar"
4607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4608 break 2
4609 fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 AR=$ac_cv_prog_AR
4617 if test -n "$AR"; then
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4619 $as_echo "$AR" >&6; }
4620 else
4621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4622 $as_echo "no" >&6; }
4623 fi
4624
4625
4626 fi
4627 if test -z "$ac_cv_prog_AR"; then
4628 ac_ct_AR=$AR
4629 # Extract the first word of "ar", so it can be a program name with args.
4630 set dummy ar; ac_word=$2
4631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4632 $as_echo_n "checking for $ac_word... " >&6; }
4633 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4634 $as_echo_n "(cached) " >&6
4635 else
4636 if test -n "$ac_ct_AR"; then
4637 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4638 else
4639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640 for as_dir in $PATH
4641 do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
4644 for ac_exec_ext in '' $ac_executable_extensions; do
4645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4646 ac_cv_prog_ac_ct_AR="ar"
4647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4648 break 2
4649 fi
4650 done
4651 done
4652 IFS=$as_save_IFS
4653
4654 fi
4655 fi
4656 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4657 if test -n "$ac_ct_AR"; then
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4659 $as_echo "$ac_ct_AR" >&6; }
4660 else
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4662 $as_echo "no" >&6; }
4663 fi
4664
4665 if test "x$ac_ct_AR" = x; then
4666 AR=""
4667 else
4668 case $cross_compiling:$ac_tool_warned in
4669 yes:)
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4672 ac_tool_warned=yes ;;
4673 esac
4674 AR=$ac_ct_AR
4675 fi
4676 else
4677 AR="$ac_cv_prog_AR"
4678 fi
4679
4680 if test -n "$ac_tool_prefix"; then
4681 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4682 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4684 $as_echo_n "checking for $ac_word... " >&6; }
4685 if ${ac_cv_prog_RANLIB+:} false; then :
4686 $as_echo_n "(cached) " >&6
4687 else
4688 if test -n "$RANLIB"; then
4689 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4690 else
4691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4692 for as_dir in $PATH
4693 do
4694 IFS=$as_save_IFS
4695 test -z "$as_dir" && as_dir=.
4696 for ac_exec_ext in '' $ac_executable_extensions; do
4697 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4698 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4700 break 2
4701 fi
4702 done
4703 done
4704 IFS=$as_save_IFS
4705
4706 fi
4707 fi
4708 RANLIB=$ac_cv_prog_RANLIB
4709 if test -n "$RANLIB"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4711 $as_echo "$RANLIB" >&6; }
4712 else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714 $as_echo "no" >&6; }
4715 fi
4716
4717
4718 fi
4719 if test -z "$ac_cv_prog_RANLIB"; then
4720 ac_ct_RANLIB=$RANLIB
4721 # Extract the first word of "ranlib", so it can be a program name with args.
4722 set dummy ranlib; ac_word=$2
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724 $as_echo_n "checking for $ac_word... " >&6; }
4725 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727 else
4728 if test -n "$ac_ct_RANLIB"; then
4729 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4730 else
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4733 do
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_prog_ac_ct_RANLIB="ranlib"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4741 fi
4742 done
4743 done
4744 IFS=$as_save_IFS
4745
4746 fi
4747 fi
4748 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4749 if test -n "$ac_ct_RANLIB"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4751 $as_echo "$ac_ct_RANLIB" >&6; }
4752 else
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4754 $as_echo "no" >&6; }
4755 fi
4756
4757 if test "x$ac_ct_RANLIB" = x; then
4758 RANLIB="ranlib-not-found-in-path-error"
4759 else
4760 case $cross_compiling:$ac_tool_warned in
4761 yes:)
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4763 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4764 ac_tool_warned=yes ;;
4765 esac
4766 RANLIB=$ac_ct_RANLIB
4767 fi
4768 else
4769 RANLIB="$ac_cv_prog_RANLIB"
4770 fi
4771
4772 # Extract the first word of "perl", so it can be a program name with args.
4773 set dummy perl; ac_word=$2
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4775 $as_echo_n "checking for $ac_word... " >&6; }
4776 if ${ac_cv_path_PERL+:} false; then :
4777 $as_echo_n "(cached) " >&6
4778 else
4779 case $PERL in
4780 [\\/]* | ?:[\\/]*)
4781 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
4782 ;;
4783 *)
4784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4785 for as_dir in $PATH
4786 do
4787 IFS=$as_save_IFS
4788 test -z "$as_dir" && as_dir=.
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4791 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
4792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4793 break 2
4794 fi
4795 done
4796 done
4797 IFS=$as_save_IFS
4798
4799 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error"
4800 ;;
4801 esac
4802 fi
4803 PERL=$ac_cv_path_PERL
4804 if test -n "$PERL"; then
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
4806 $as_echo "$PERL" >&6; }
4807 else
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809 $as_echo "no" >&6; }
4810 fi
4811
4812
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4814 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4815 set x ${MAKE-make}
4816 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4817 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4818 $as_echo_n "(cached) " >&6
4819 else
4820 cat >conftest.make <<\_ACEOF
4821 SHELL = /bin/sh
4822 all:
4823 @echo '@@@%%%=$(MAKE)=@@@%%%'
4824 _ACEOF
4825 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4826 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4827 *@@@%%%=?*=@@@%%%*)
4828 eval ac_cv_prog_make_${ac_make}_set=yes;;
4829 *)
4830 eval ac_cv_prog_make_${ac_make}_set=no;;
4831 esac
4832 rm -f conftest.make
4833 fi
4834 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4836 $as_echo "yes" >&6; }
4837 SET_MAKE=
4838 else
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840 $as_echo "no" >&6; }
4841 SET_MAKE="MAKE=${MAKE-make}"
4842 fi
4843
4844
4845
4846 # See if makeinfo has been installed and is modern enough
4847 # that we can use it.
4848
4849 # Extract the first word of "makeinfo", so it can be a program name with args.
4850 set dummy makeinfo; ac_word=$2
4851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4852 $as_echo_n "checking for $ac_word... " >&6; }
4853 if ${ac_cv_prog_MAKEINFO+:} false; then :
4854 $as_echo_n "(cached) " >&6
4855 else
4856 if test -n "$MAKEINFO"; then
4857 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
4858 else
4859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4860 for as_dir in $PATH
4861 do
4862 IFS=$as_save_IFS
4863 test -z "$as_dir" && as_dir=.
4864 for ac_exec_ext in '' $ac_executable_extensions; do
4865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4866 ac_cv_prog_MAKEINFO="makeinfo"
4867 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4868 break 2
4869 fi
4870 done
4871 done
4872 IFS=$as_save_IFS
4873
4874 fi
4875 fi
4876 MAKEINFO=$ac_cv_prog_MAKEINFO
4877 if test -n "$MAKEINFO"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
4879 $as_echo "$MAKEINFO" >&6; }
4880 else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882 $as_echo "no" >&6; }
4883 fi
4884
4885
4886 if test -n "$MAKEINFO"; then
4887 # Found it, now check the version.
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modern makeinfo" >&5
4889 $as_echo_n "checking for modern makeinfo... " >&6; }
4890 if ${gcc_cv_prog_makeinfo_modern+:} false; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 ac_prog_version=`eval $MAKEINFO --version 2>&1 |
4894 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'`
4895
4896 case $ac_prog_version in
4897 '') gcc_cv_prog_makeinfo_modern=no;;
4898 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;;
4899 *) gcc_cv_prog_makeinfo_modern=no;;
4900 esac
4901
4902 fi
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_makeinfo_modern" >&5
4904 $as_echo "$gcc_cv_prog_makeinfo_modern" >&6; }
4905 else
4906 gcc_cv_prog_makeinfo_modern=no
4907 fi
4908 if test $gcc_cv_prog_makeinfo_modern = no; then
4909 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo"
4910 fi
4911
4912 if test $gcc_cv_prog_makeinfo_modern = "yes"; then
4913 BUILD_INFO_TRUE=
4914 BUILD_INFO_FALSE='#'
4915 else
4916 BUILD_INFO_TRUE='#'
4917 BUILD_INFO_FALSE=
4918 fi
4919
4920
4921
4922 # Configure libtool
4923 case `pwd` in
4924 *\ * | *\ *)
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4926 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4927 esac
4928
4929
4930
4931 macro_version='2.2.7a'
4932 macro_revision='1.3134'
4933
4934
4935
4936
4937
4938
4939
4940
4941
4942
4943
4944
4945
4946 ltmain="$ac_aux_dir/ltmain.sh"
4947
4948 # Backslashify metacharacters that are still active within
4949 # double-quoted strings.
4950 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4951
4952 # Same as above, but do not quote variable references.
4953 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4954
4955 # Sed substitution to delay expansion of an escaped shell variable in a
4956 # double_quote_subst'ed string.
4957 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4958
4959 # Sed substitution to delay expansion of an escaped single quote.
4960 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4961
4962 # Sed substitution to avoid accidental globbing in evaled expressions
4963 no_glob_subst='s/\*/\\\*/g'
4964
4965 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4966 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4967 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4968
4969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4970 $as_echo_n "checking how to print strings... " >&6; }
4971 # Test print first, because it will be a builtin if present.
4972 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
4973 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4974 ECHO='print -r --'
4975 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4976 ECHO='printf %s\n'
4977 else
4978 # Use this function as a fallback that always works.
4979 func_fallback_echo ()
4980 {
4981 eval 'cat <<_LTECHO_EOF
4982 $1
4983 _LTECHO_EOF'
4984 }
4985 ECHO='func_fallback_echo'
4986 fi
4987
4988 # func_echo_all arg...
4989 # Invoke $ECHO with all args, space-separated.
4990 func_echo_all ()
4991 {
4992 $ECHO ""
4993 }
4994
4995 case "$ECHO" in
4996 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4997 $as_echo "printf" >&6; } ;;
4998 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4999 $as_echo "print -r" >&6; } ;;
5000 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5001 $as_echo "cat" >&6; } ;;
5002 esac
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015
5016
5017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5018 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5019 if ${ac_cv_path_SED+:} false; then :
5020 $as_echo_n "(cached) " >&6
5021 else
5022 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5023 for ac_i in 1 2 3 4 5 6 7; do
5024 ac_script="$ac_script$as_nl$ac_script"
5025 done
5026 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5027 { ac_script=; unset ac_script;}
5028 if test -z "$SED"; then
5029 ac_path_SED_found=false
5030 # Loop through the user's path and test for each of PROGNAME-LIST
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5033 do
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_prog in sed gsed; do
5037 for ac_exec_ext in '' $ac_executable_extensions; do
5038 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5039 as_fn_executable_p "$ac_path_SED" || continue
5040 # Check for GNU ac_path_SED and select it if it is found.
5041 # Check for GNU $ac_path_SED
5042 case `"$ac_path_SED" --version 2>&1` in
5043 *GNU*)
5044 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5045 *)
5046 ac_count=0
5047 $as_echo_n 0123456789 >"conftest.in"
5048 while :
5049 do
5050 cat "conftest.in" "conftest.in" >"conftest.tmp"
5051 mv "conftest.tmp" "conftest.in"
5052 cp "conftest.in" "conftest.nl"
5053 $as_echo '' >> "conftest.nl"
5054 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5055 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5056 as_fn_arith $ac_count + 1 && ac_count=$as_val
5057 if test $ac_count -gt ${ac_path_SED_max-0}; then
5058 # Best one so far, save it but keep looking for a better one
5059 ac_cv_path_SED="$ac_path_SED"
5060 ac_path_SED_max=$ac_count
5061 fi
5062 # 10*(2^10) chars as input seems more than enough
5063 test $ac_count -gt 10 && break
5064 done
5065 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5066 esac
5067
5068 $ac_path_SED_found && break 3
5069 done
5070 done
5071 done
5072 IFS=$as_save_IFS
5073 if test -z "$ac_cv_path_SED"; then
5074 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5075 fi
5076 else
5077 ac_cv_path_SED=$SED
5078 fi
5079
5080 fi
5081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5082 $as_echo "$ac_cv_path_SED" >&6; }
5083 SED="$ac_cv_path_SED"
5084 rm -f conftest.sed
5085
5086 test -z "$SED" && SED=sed
5087 Xsed="$SED -e 1s/^X//"
5088
5089
5090
5091
5092
5093
5094
5095
5096
5097
5098
5099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5100 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5101 if ${ac_cv_path_GREP+:} false; then :
5102 $as_echo_n "(cached) " >&6
5103 else
5104 if test -z "$GREP"; then
5105 ac_path_GREP_found=false
5106 # Loop through the user's path and test for each of PROGNAME-LIST
5107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5108 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5109 do
5110 IFS=$as_save_IFS
5111 test -z "$as_dir" && as_dir=.
5112 for ac_prog in grep ggrep; do
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5115 as_fn_executable_p "$ac_path_GREP" || continue
5116 # Check for GNU ac_path_GREP and select it if it is found.
5117 # Check for GNU $ac_path_GREP
5118 case `"$ac_path_GREP" --version 2>&1` in
5119 *GNU*)
5120 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5121 *)
5122 ac_count=0
5123 $as_echo_n 0123456789 >"conftest.in"
5124 while :
5125 do
5126 cat "conftest.in" "conftest.in" >"conftest.tmp"
5127 mv "conftest.tmp" "conftest.in"
5128 cp "conftest.in" "conftest.nl"
5129 $as_echo 'GREP' >> "conftest.nl"
5130 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5131 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5132 as_fn_arith $ac_count + 1 && ac_count=$as_val
5133 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5134 # Best one so far, save it but keep looking for a better one
5135 ac_cv_path_GREP="$ac_path_GREP"
5136 ac_path_GREP_max=$ac_count
5137 fi
5138 # 10*(2^10) chars as input seems more than enough
5139 test $ac_count -gt 10 && break
5140 done
5141 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5142 esac
5143
5144 $ac_path_GREP_found && break 3
5145 done
5146 done
5147 done
5148 IFS=$as_save_IFS
5149 if test -z "$ac_cv_path_GREP"; then
5150 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5151 fi
5152 else
5153 ac_cv_path_GREP=$GREP
5154 fi
5155
5156 fi
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5158 $as_echo "$ac_cv_path_GREP" >&6; }
5159 GREP="$ac_cv_path_GREP"
5160
5161
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5163 $as_echo_n "checking for egrep... " >&6; }
5164 if ${ac_cv_path_EGREP+:} false; then :
5165 $as_echo_n "(cached) " >&6
5166 else
5167 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5168 then ac_cv_path_EGREP="$GREP -E"
5169 else
5170 if test -z "$EGREP"; then
5171 ac_path_EGREP_found=false
5172 # Loop through the user's path and test for each of PROGNAME-LIST
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5175 do
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_prog in egrep; do
5179 for ac_exec_ext in '' $ac_executable_extensions; do
5180 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5181 as_fn_executable_p "$ac_path_EGREP" || continue
5182 # Check for GNU ac_path_EGREP and select it if it is found.
5183 # Check for GNU $ac_path_EGREP
5184 case `"$ac_path_EGREP" --version 2>&1` in
5185 *GNU*)
5186 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5187 *)
5188 ac_count=0
5189 $as_echo_n 0123456789 >"conftest.in"
5190 while :
5191 do
5192 cat "conftest.in" "conftest.in" >"conftest.tmp"
5193 mv "conftest.tmp" "conftest.in"
5194 cp "conftest.in" "conftest.nl"
5195 $as_echo 'EGREP' >> "conftest.nl"
5196 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5197 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5198 as_fn_arith $ac_count + 1 && ac_count=$as_val
5199 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5200 # Best one so far, save it but keep looking for a better one
5201 ac_cv_path_EGREP="$ac_path_EGREP"
5202 ac_path_EGREP_max=$ac_count
5203 fi
5204 # 10*(2^10) chars as input seems more than enough
5205 test $ac_count -gt 10 && break
5206 done
5207 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5208 esac
5209
5210 $ac_path_EGREP_found && break 3
5211 done
5212 done
5213 done
5214 IFS=$as_save_IFS
5215 if test -z "$ac_cv_path_EGREP"; then
5216 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5217 fi
5218 else
5219 ac_cv_path_EGREP=$EGREP
5220 fi
5221
5222 fi
5223 fi
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5225 $as_echo "$ac_cv_path_EGREP" >&6; }
5226 EGREP="$ac_cv_path_EGREP"
5227
5228
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5230 $as_echo_n "checking for fgrep... " >&6; }
5231 if ${ac_cv_path_FGREP+:} false; then :
5232 $as_echo_n "(cached) " >&6
5233 else
5234 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5235 then ac_cv_path_FGREP="$GREP -F"
5236 else
5237 if test -z "$FGREP"; then
5238 ac_path_FGREP_found=false
5239 # Loop through the user's path and test for each of PROGNAME-LIST
5240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5241 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5242 do
5243 IFS=$as_save_IFS
5244 test -z "$as_dir" && as_dir=.
5245 for ac_prog in fgrep; do
5246 for ac_exec_ext in '' $ac_executable_extensions; do
5247 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5248 as_fn_executable_p "$ac_path_FGREP" || continue
5249 # Check for GNU ac_path_FGREP and select it if it is found.
5250 # Check for GNU $ac_path_FGREP
5251 case `"$ac_path_FGREP" --version 2>&1` in
5252 *GNU*)
5253 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5254 *)
5255 ac_count=0
5256 $as_echo_n 0123456789 >"conftest.in"
5257 while :
5258 do
5259 cat "conftest.in" "conftest.in" >"conftest.tmp"
5260 mv "conftest.tmp" "conftest.in"
5261 cp "conftest.in" "conftest.nl"
5262 $as_echo 'FGREP' >> "conftest.nl"
5263 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5264 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5265 as_fn_arith $ac_count + 1 && ac_count=$as_val
5266 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5267 # Best one so far, save it but keep looking for a better one
5268 ac_cv_path_FGREP="$ac_path_FGREP"
5269 ac_path_FGREP_max=$ac_count
5270 fi
5271 # 10*(2^10) chars as input seems more than enough
5272 test $ac_count -gt 10 && break
5273 done
5274 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5275 esac
5276
5277 $ac_path_FGREP_found && break 3
5278 done
5279 done
5280 done
5281 IFS=$as_save_IFS
5282 if test -z "$ac_cv_path_FGREP"; then
5283 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5284 fi
5285 else
5286 ac_cv_path_FGREP=$FGREP
5287 fi
5288
5289 fi
5290 fi
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5292 $as_echo "$ac_cv_path_FGREP" >&6; }
5293 FGREP="$ac_cv_path_FGREP"
5294
5295
5296 test -z "$GREP" && GREP=grep
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309
5310
5311
5312
5313
5314
5315
5316 # Check whether --with-gnu-ld was given.
5317 if test "${with_gnu_ld+set}" = set; then :
5318 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5319 else
5320 with_gnu_ld=no
5321 fi
5322
5323 ac_prog=ld
5324 if test "$GCC" = yes; then
5325 # Check if gcc -print-prog-name=ld gives a path.
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5327 $as_echo_n "checking for ld used by $CC... " >&6; }
5328 case $host in
5329 *-*-mingw*)
5330 # gcc leaves a trailing carriage return which upsets mingw
5331 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5332 *)
5333 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5334 esac
5335 case $ac_prog in
5336 # Accept absolute paths.
5337 [\\/]* | ?:[\\/]*)
5338 re_direlt='/[^/][^/]*/\.\./'
5339 # Canonicalize the pathname of ld
5340 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5341 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5342 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5343 done
5344 test -z "$LD" && LD="$ac_prog"
5345 ;;
5346 "")
5347 # If it fails, then pretend we aren't using GCC.
5348 ac_prog=ld
5349 ;;
5350 *)
5351 # If it is relative, then search for the first ld in PATH.
5352 with_gnu_ld=unknown
5353 ;;
5354 esac
5355 elif test "$with_gnu_ld" = yes; then
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5357 $as_echo_n "checking for GNU ld... " >&6; }
5358 else
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5360 $as_echo_n "checking for non-GNU ld... " >&6; }
5361 fi
5362 if ${lt_cv_path_LD+:} false; then :
5363 $as_echo_n "(cached) " >&6
5364 else
5365 if test -z "$LD"; then
5366 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5367 for ac_dir in $PATH; do
5368 IFS="$lt_save_ifs"
5369 test -z "$ac_dir" && ac_dir=.
5370 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5371 lt_cv_path_LD="$ac_dir/$ac_prog"
5372 # Check to see if the program is GNU ld. I'd rather use --version,
5373 # but apparently some variants of GNU ld only accept -v.
5374 # Break only if it was the GNU/non-GNU ld that we prefer.
5375 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5376 *GNU* | *'with BFD'*)
5377 test "$with_gnu_ld" != no && break
5378 ;;
5379 *)
5380 test "$with_gnu_ld" != yes && break
5381 ;;
5382 esac
5383 fi
5384 done
5385 IFS="$lt_save_ifs"
5386 else
5387 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5388 fi
5389 fi
5390
5391 LD="$lt_cv_path_LD"
5392 if test -n "$LD"; then
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5394 $as_echo "$LD" >&6; }
5395 else
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5397 $as_echo "no" >&6; }
5398 fi
5399 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5401 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5402 if ${lt_cv_prog_gnu_ld+:} false; then :
5403 $as_echo_n "(cached) " >&6
5404 else
5405 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5406 case `$LD -v 2>&1 </dev/null` in
5407 *GNU* | *'with BFD'*)
5408 lt_cv_prog_gnu_ld=yes
5409 ;;
5410 *)
5411 lt_cv_prog_gnu_ld=no
5412 ;;
5413 esac
5414 fi
5415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5416 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5417 with_gnu_ld=$lt_cv_prog_gnu_ld
5418
5419
5420
5421
5422
5423
5424
5425
5426
5427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5428 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5429 if ${lt_cv_path_NM+:} false; then :
5430 $as_echo_n "(cached) " >&6
5431 else
5432 if test -n "$NM"; then
5433 # Let the user override the test.
5434 lt_cv_path_NM="$NM"
5435 else
5436 lt_nm_to_check="${ac_tool_prefix}nm"
5437 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5438 lt_nm_to_check="$lt_nm_to_check nm"
5439 fi
5440 for lt_tmp_nm in $lt_nm_to_check; do
5441 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5442 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5443 IFS="$lt_save_ifs"
5444 test -z "$ac_dir" && ac_dir=.
5445 tmp_nm="$ac_dir/$lt_tmp_nm"
5446 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5447 # Check to see if the nm accepts a BSD-compat flag.
5448 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5449 # nm: unknown option "B" ignored
5450 # Tru64's nm complains that /dev/null is an invalid object file
5451 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5452 */dev/null* | *'Invalid file or object type'*)
5453 lt_cv_path_NM="$tmp_nm -B"
5454 break
5455 ;;
5456 *)
5457 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5458 */dev/null*)
5459 lt_cv_path_NM="$tmp_nm -p"
5460 break
5461 ;;
5462 *)
5463 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5464 continue # so that we can try to find one that supports BSD flags
5465 ;;
5466 esac
5467 ;;
5468 esac
5469 fi
5470 done
5471 IFS="$lt_save_ifs"
5472 done
5473 : ${lt_cv_path_NM=no}
5474 fi
5475 fi
5476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5477 $as_echo "$lt_cv_path_NM" >&6; }
5478 if test "$lt_cv_path_NM" != "no"; then
5479 NM="$lt_cv_path_NM"
5480 else
5481 # Didn't find any BSD compatible name lister, look for dumpbin.
5482 if test -n "$DUMPBIN"; then :
5483 # Let the user override the test.
5484 else
5485 if test -n "$ac_tool_prefix"; then
5486 for ac_prog in dumpbin "link -dump"
5487 do
5488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5491 $as_echo_n "checking for $ac_word... " >&6; }
5492 if ${ac_cv_prog_DUMPBIN+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 if test -n "$DUMPBIN"; then
5496 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5497 else
5498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5499 for as_dir in $PATH
5500 do
5501 IFS=$as_save_IFS
5502 test -z "$as_dir" && as_dir=.
5503 for ac_exec_ext in '' $ac_executable_extensions; do
5504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5505 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 break 2
5508 fi
5509 done
5510 done
5511 IFS=$as_save_IFS
5512
5513 fi
5514 fi
5515 DUMPBIN=$ac_cv_prog_DUMPBIN
5516 if test -n "$DUMPBIN"; then
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5518 $as_echo "$DUMPBIN" >&6; }
5519 else
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5521 $as_echo "no" >&6; }
5522 fi
5523
5524
5525 test -n "$DUMPBIN" && break
5526 done
5527 fi
5528 if test -z "$DUMPBIN"; then
5529 ac_ct_DUMPBIN=$DUMPBIN
5530 for ac_prog in dumpbin "link -dump"
5531 do
5532 # Extract the first word of "$ac_prog", so it can be a program name with args.
5533 set dummy $ac_prog; ac_word=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5537 $as_echo_n "(cached) " >&6
5538 else
5539 if test -n "$ac_ct_DUMPBIN"; then
5540 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5541 else
5542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5543 for as_dir in $PATH
5544 do
5545 IFS=$as_save_IFS
5546 test -z "$as_dir" && as_dir=.
5547 for ac_exec_ext in '' $ac_executable_extensions; do
5548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 break 2
5552 fi
5553 done
5554 done
5555 IFS=$as_save_IFS
5556
5557 fi
5558 fi
5559 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5560 if test -n "$ac_ct_DUMPBIN"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5562 $as_echo "$ac_ct_DUMPBIN" >&6; }
5563 else
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5566 fi
5567
5568
5569 test -n "$ac_ct_DUMPBIN" && break
5570 done
5571
5572 if test "x$ac_ct_DUMPBIN" = x; then
5573 DUMPBIN=":"
5574 else
5575 case $cross_compiling:$ac_tool_warned in
5576 yes:)
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5578 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5579 ac_tool_warned=yes ;;
5580 esac
5581 DUMPBIN=$ac_ct_DUMPBIN
5582 fi
5583 fi
5584
5585 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5586 *COFF*)
5587 DUMPBIN="$DUMPBIN -symbols"
5588 ;;
5589 *)
5590 DUMPBIN=:
5591 ;;
5592 esac
5593 fi
5594
5595 if test "$DUMPBIN" != ":"; then
5596 NM="$DUMPBIN"
5597 fi
5598 fi
5599 test -z "$NM" && NM=nm
5600
5601
5602
5603
5604
5605
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5607 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5608 if ${lt_cv_nm_interface+:} false; then :
5609 $as_echo_n "(cached) " >&6
5610 else
5611 lt_cv_nm_interface="BSD nm"
5612 echo "int some_variable = 0;" > conftest.$ac_ext
5613 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5614 (eval "$ac_compile" 2>conftest.err)
5615 cat conftest.err >&5
5616 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5617 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5618 cat conftest.err >&5
5619 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5620 cat conftest.out >&5
5621 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5622 lt_cv_nm_interface="MS dumpbin"
5623 fi
5624 rm -f conftest*
5625 fi
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5627 $as_echo "$lt_cv_nm_interface" >&6; }
5628
5629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5630 $as_echo_n "checking whether ln -s works... " >&6; }
5631 LN_S=$as_ln_s
5632 if test "$LN_S" = "ln -s"; then
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5634 $as_echo "yes" >&6; }
5635 else
5636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5637 $as_echo "no, using $LN_S" >&6; }
5638 fi
5639
5640 # find the maximum length of command line arguments
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5642 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5643 if ${lt_cv_sys_max_cmd_len+:} false; then :
5644 $as_echo_n "(cached) " >&6
5645 else
5646 i=0
5647 teststring="ABCD"
5648
5649 case $build_os in
5650 msdosdjgpp*)
5651 # On DJGPP, this test can blow up pretty badly due to problems in libc
5652 # (any single argument exceeding 2000 bytes causes a buffer overrun
5653 # during glob expansion). Even if it were fixed, the result of this
5654 # check would be larger than it should be.
5655 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5656 ;;
5657
5658 gnu*)
5659 # Under GNU Hurd, this test is not required because there is
5660 # no limit to the length of command line arguments.
5661 # Libtool will interpret -1 as no limit whatsoever
5662 lt_cv_sys_max_cmd_len=-1;
5663 ;;
5664
5665 cygwin* | mingw* | cegcc*)
5666 # On Win9x/ME, this test blows up -- it succeeds, but takes
5667 # about 5 minutes as the teststring grows exponentially.
5668 # Worse, since 9x/ME are not pre-emptively multitasking,
5669 # you end up with a "frozen" computer, even though with patience
5670 # the test eventually succeeds (with a max line length of 256k).
5671 # Instead, let's just punt: use the minimum linelength reported by
5672 # all of the supported platforms: 8192 (on NT/2K/XP).
5673 lt_cv_sys_max_cmd_len=8192;
5674 ;;
5675
5676 mint*)
5677 # On MiNT this can take a long time and run out of memory.
5678 lt_cv_sys_max_cmd_len=8192;
5679 ;;
5680
5681 amigaos*)
5682 # On AmigaOS with pdksh, this test takes hours, literally.
5683 # So we just punt and use a minimum line length of 8192.
5684 lt_cv_sys_max_cmd_len=8192;
5685 ;;
5686
5687 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5688 # This has been around since 386BSD, at least. Likely further.
5689 if test -x /sbin/sysctl; then
5690 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5691 elif test -x /usr/sbin/sysctl; then
5692 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5693 else
5694 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5695 fi
5696 # And add a safety zone
5697 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5698 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5699 ;;
5700
5701 interix*)
5702 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5703 lt_cv_sys_max_cmd_len=196608
5704 ;;
5705
5706 osf*)
5707 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5708 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5709 # nice to cause kernel panics so lets avoid the loop below.
5710 # First set a reasonable default.
5711 lt_cv_sys_max_cmd_len=16384
5712 #
5713 if test -x /sbin/sysconfig; then
5714 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5715 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5716 esac
5717 fi
5718 ;;
5719 sco3.2v5*)
5720 lt_cv_sys_max_cmd_len=102400
5721 ;;
5722 sysv5* | sco5v6* | sysv4.2uw2*)
5723 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5724 if test -n "$kargmax"; then
5725 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5726 else
5727 lt_cv_sys_max_cmd_len=32768
5728 fi
5729 ;;
5730 *)
5731 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5732 if test -n "$lt_cv_sys_max_cmd_len"; then
5733 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5734 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5735 else
5736 # Make teststring a little bigger before we do anything with it.
5737 # a 1K string should be a reasonable start.
5738 for i in 1 2 3 4 5 6 7 8 ; do
5739 teststring=$teststring$teststring
5740 done
5741 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5742 # If test is not a shell built-in, we'll probably end up computing a
5743 # maximum length that is only half of the actual maximum length, but
5744 # we can't tell.
5745 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
5746 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5747 test $i != 17 # 1/2 MB should be enough
5748 do
5749 i=`expr $i + 1`
5750 teststring=$teststring$teststring
5751 done
5752 # Only check the string length outside the loop.
5753 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5754 teststring=
5755 # Add a significant safety factor because C++ compilers can tack on
5756 # massive amounts of additional arguments before passing them to the
5757 # linker. It appears as though 1/2 is a usable value.
5758 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5759 fi
5760 ;;
5761 esac
5762
5763 fi
5764
5765 if test -n $lt_cv_sys_max_cmd_len ; then
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5767 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5768 else
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5770 $as_echo "none" >&6; }
5771 fi
5772 max_cmd_len=$lt_cv_sys_max_cmd_len
5773
5774
5775
5776
5777
5778
5779 : ${CP="cp -f"}
5780 : ${MV="mv -f"}
5781 : ${RM="rm -f"}
5782
5783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5784 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5785 # Try some XSI features
5786 xsi_shell=no
5787 ( _lt_dummy="a/b/c"
5788 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
5789 = c,a/b,, \
5790 && eval 'test $(( 1 + 1 )) -eq 2 \
5791 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5792 && xsi_shell=yes
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5794 $as_echo "$xsi_shell" >&6; }
5795
5796
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5798 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5799 lt_shell_append=no
5800 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5801 >/dev/null 2>&1 \
5802 && lt_shell_append=yes
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5804 $as_echo "$lt_shell_append" >&6; }
5805
5806
5807 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5808 lt_unset=unset
5809 else
5810 lt_unset=false
5811 fi
5812
5813
5814
5815
5816
5817 # test EBCDIC or ASCII
5818 case `echo X|tr X '\101'` in
5819 A) # ASCII based system
5820 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5821 lt_SP2NL='tr \040 \012'
5822 lt_NL2SP='tr \015\012 \040\040'
5823 ;;
5824 *) # EBCDIC based system
5825 lt_SP2NL='tr \100 \n'
5826 lt_NL2SP='tr \r\n \100\100'
5827 ;;
5828 esac
5829
5830
5831
5832
5833
5834
5835
5836
5837
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5839 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5840 if ${lt_cv_ld_reload_flag+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 lt_cv_ld_reload_flag='-r'
5844 fi
5845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5846 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5847 reload_flag=$lt_cv_ld_reload_flag
5848 case $reload_flag in
5849 "" | " "*) ;;
5850 *) reload_flag=" $reload_flag" ;;
5851 esac
5852 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5853 case $host_os in
5854 darwin*)
5855 if test "$GCC" = yes; then
5856 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5857 else
5858 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5859 fi
5860 ;;
5861 esac
5862
5863
5864
5865
5866
5867
5868
5869
5870
5871 if test -n "$ac_tool_prefix"; then
5872 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5873 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5875 $as_echo_n "checking for $ac_word... " >&6; }
5876 if ${ac_cv_prog_OBJDUMP+:} false; then :
5877 $as_echo_n "(cached) " >&6
5878 else
5879 if test -n "$OBJDUMP"; then
5880 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5881 else
5882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5883 for as_dir in $PATH
5884 do
5885 IFS=$as_save_IFS
5886 test -z "$as_dir" && as_dir=.
5887 for ac_exec_ext in '' $ac_executable_extensions; do
5888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5889 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5891 break 2
5892 fi
5893 done
5894 done
5895 IFS=$as_save_IFS
5896
5897 fi
5898 fi
5899 OBJDUMP=$ac_cv_prog_OBJDUMP
5900 if test -n "$OBJDUMP"; then
5901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5902 $as_echo "$OBJDUMP" >&6; }
5903 else
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5905 $as_echo "no" >&6; }
5906 fi
5907
5908
5909 fi
5910 if test -z "$ac_cv_prog_OBJDUMP"; then
5911 ac_ct_OBJDUMP=$OBJDUMP
5912 # Extract the first word of "objdump", so it can be a program name with args.
5913 set dummy objdump; ac_word=$2
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5915 $as_echo_n "checking for $ac_word... " >&6; }
5916 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5917 $as_echo_n "(cached) " >&6
5918 else
5919 if test -n "$ac_ct_OBJDUMP"; then
5920 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5921 else
5922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5923 for as_dir in $PATH
5924 do
5925 IFS=$as_save_IFS
5926 test -z "$as_dir" && as_dir=.
5927 for ac_exec_ext in '' $ac_executable_extensions; do
5928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5929 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5931 break 2
5932 fi
5933 done
5934 done
5935 IFS=$as_save_IFS
5936
5937 fi
5938 fi
5939 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5940 if test -n "$ac_ct_OBJDUMP"; then
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5942 $as_echo "$ac_ct_OBJDUMP" >&6; }
5943 else
5944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5945 $as_echo "no" >&6; }
5946 fi
5947
5948 if test "x$ac_ct_OBJDUMP" = x; then
5949 OBJDUMP="false"
5950 else
5951 case $cross_compiling:$ac_tool_warned in
5952 yes:)
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5954 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5955 ac_tool_warned=yes ;;
5956 esac
5957 OBJDUMP=$ac_ct_OBJDUMP
5958 fi
5959 else
5960 OBJDUMP="$ac_cv_prog_OBJDUMP"
5961 fi
5962
5963 test -z "$OBJDUMP" && OBJDUMP=objdump
5964
5965
5966
5967
5968
5969
5970
5971
5972
5973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5974 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5975 if ${lt_cv_deplibs_check_method+:} false; then :
5976 $as_echo_n "(cached) " >&6
5977 else
5978 lt_cv_file_magic_cmd='$MAGIC_CMD'
5979 lt_cv_file_magic_test_file=
5980 lt_cv_deplibs_check_method='unknown'
5981 # Need to set the preceding variable on all platforms that support
5982 # interlibrary dependencies.
5983 # 'none' -- dependencies not supported.
5984 # `unknown' -- same as none, but documents that we really don't know.
5985 # 'pass_all' -- all dependencies passed with no checks.
5986 # 'test_compile' -- check by making test program.
5987 # 'file_magic [[regex]]' -- check by looking for files in library path
5988 # which responds to the $file_magic_cmd with a given extended regex.
5989 # If you have `file' or equivalent on your system and you're not sure
5990 # whether `pass_all' will *always* work, you probably want this one.
5991
5992 case $host_os in
5993 aix[4-9]*)
5994 lt_cv_deplibs_check_method=pass_all
5995 ;;
5996
5997 beos*)
5998 lt_cv_deplibs_check_method=pass_all
5999 ;;
6000
6001 bsdi[45]*)
6002 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6003 lt_cv_file_magic_cmd='/usr/bin/file -L'
6004 lt_cv_file_magic_test_file=/shlib/libc.so
6005 ;;
6006
6007 cygwin*)
6008 # func_win32_libid is a shell function defined in ltmain.sh
6009 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6010 lt_cv_file_magic_cmd='func_win32_libid'
6011 ;;
6012
6013 mingw* | pw32*)
6014 # Base MSYS/MinGW do not provide the 'file' command needed by
6015 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6016 # unless we find 'file', for example because we are cross-compiling.
6017 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6018 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6019 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6020 lt_cv_file_magic_cmd='func_win32_libid'
6021 else
6022 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6023 lt_cv_file_magic_cmd='$OBJDUMP -f'
6024 fi
6025 ;;
6026
6027 cegcc*)
6028 # use the weaker test based on 'objdump'. See mingw*.
6029 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6030 lt_cv_file_magic_cmd='$OBJDUMP -f'
6031 ;;
6032
6033 darwin* | rhapsody*)
6034 lt_cv_deplibs_check_method=pass_all
6035 ;;
6036
6037 freebsd* | dragonfly*)
6038 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6039 case $host_cpu in
6040 i*86 )
6041 # Not sure whether the presence of OpenBSD here was a mistake.
6042 # Let's accept both of them until this is cleared up.
6043 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6044 lt_cv_file_magic_cmd=/usr/bin/file
6045 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6046 ;;
6047 esac
6048 else
6049 lt_cv_deplibs_check_method=pass_all
6050 fi
6051 ;;
6052
6053 gnu*)
6054 lt_cv_deplibs_check_method=pass_all
6055 ;;
6056
6057 haiku*)
6058 lt_cv_deplibs_check_method=pass_all
6059 ;;
6060
6061 hpux10.20* | hpux11*)
6062 lt_cv_file_magic_cmd=/usr/bin/file
6063 case $host_cpu in
6064 ia64*)
6065 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6066 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6067 ;;
6068 hppa*64*)
6069 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]'
6070 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6071 ;;
6072 *)
6073 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6074 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6075 ;;
6076 esac
6077 ;;
6078
6079 interix[3-9]*)
6080 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6081 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6082 ;;
6083
6084 irix5* | irix6* | nonstopux*)
6085 case $LD in
6086 *-32|*"-32 ") libmagic=32-bit;;
6087 *-n32|*"-n32 ") libmagic=N32;;
6088 *-64|*"-64 ") libmagic=64-bit;;
6089 *) libmagic=never-match;;
6090 esac
6091 lt_cv_deplibs_check_method=pass_all
6092 ;;
6093
6094 # This must be Linux ELF.
6095 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098
6099 netbsd*)
6100 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6101 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6102 else
6103 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6104 fi
6105 ;;
6106
6107 newos6*)
6108 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6109 lt_cv_file_magic_cmd=/usr/bin/file
6110 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6111 ;;
6112
6113 *nto* | *qnx*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116
6117 openbsd*)
6118 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6119 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6120 else
6121 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6122 fi
6123 ;;
6124
6125 osf3* | osf4* | osf5*)
6126 lt_cv_deplibs_check_method=pass_all
6127 ;;
6128
6129 rdos*)
6130 lt_cv_deplibs_check_method=pass_all
6131 ;;
6132
6133 solaris*)
6134 lt_cv_deplibs_check_method=pass_all
6135 ;;
6136
6137 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6138 lt_cv_deplibs_check_method=pass_all
6139 ;;
6140
6141 sysv4 | sysv4.3*)
6142 case $host_vendor in
6143 motorola)
6144 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]'
6145 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6146 ;;
6147 ncr)
6148 lt_cv_deplibs_check_method=pass_all
6149 ;;
6150 sequent)
6151 lt_cv_file_magic_cmd='/bin/file'
6152 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6153 ;;
6154 sni)
6155 lt_cv_file_magic_cmd='/bin/file'
6156 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6157 lt_cv_file_magic_test_file=/lib/libc.so
6158 ;;
6159 siemens)
6160 lt_cv_deplibs_check_method=pass_all
6161 ;;
6162 pc)
6163 lt_cv_deplibs_check_method=pass_all
6164 ;;
6165 esac
6166 ;;
6167
6168 tpf*)
6169 lt_cv_deplibs_check_method=pass_all
6170 ;;
6171 esac
6172
6173 fi
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6175 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6176 file_magic_cmd=$lt_cv_file_magic_cmd
6177 deplibs_check_method=$lt_cv_deplibs_check_method
6178 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6179
6180
6181
6182
6183
6184
6185
6186
6187
6188
6189
6190
6191 if test -n "$ac_tool_prefix"; then
6192 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6193 set dummy ${ac_tool_prefix}ar; ac_word=$2
6194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6195 $as_echo_n "checking for $ac_word... " >&6; }
6196 if ${ac_cv_prog_AR+:} false; then :
6197 $as_echo_n "(cached) " >&6
6198 else
6199 if test -n "$AR"; then
6200 ac_cv_prog_AR="$AR" # Let the user override the test.
6201 else
6202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6203 for as_dir in $PATH
6204 do
6205 IFS=$as_save_IFS
6206 test -z "$as_dir" && as_dir=.
6207 for ac_exec_ext in '' $ac_executable_extensions; do
6208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6209 ac_cv_prog_AR="${ac_tool_prefix}ar"
6210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6211 break 2
6212 fi
6213 done
6214 done
6215 IFS=$as_save_IFS
6216
6217 fi
6218 fi
6219 AR=$ac_cv_prog_AR
6220 if test -n "$AR"; then
6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6222 $as_echo "$AR" >&6; }
6223 else
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6225 $as_echo "no" >&6; }
6226 fi
6227
6228
6229 fi
6230 if test -z "$ac_cv_prog_AR"; then
6231 ac_ct_AR=$AR
6232 # Extract the first word of "ar", so it can be a program name with args.
6233 set dummy ar; ac_word=$2
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6235 $as_echo_n "checking for $ac_word... " >&6; }
6236 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6237 $as_echo_n "(cached) " >&6
6238 else
6239 if test -n "$ac_ct_AR"; then
6240 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6241 else
6242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6243 for as_dir in $PATH
6244 do
6245 IFS=$as_save_IFS
6246 test -z "$as_dir" && as_dir=.
6247 for ac_exec_ext in '' $ac_executable_extensions; do
6248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6249 ac_cv_prog_ac_ct_AR="ar"
6250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6251 break 2
6252 fi
6253 done
6254 done
6255 IFS=$as_save_IFS
6256
6257 fi
6258 fi
6259 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6260 if test -n "$ac_ct_AR"; then
6261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6262 $as_echo "$ac_ct_AR" >&6; }
6263 else
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6265 $as_echo "no" >&6; }
6266 fi
6267
6268 if test "x$ac_ct_AR" = x; then
6269 AR="false"
6270 else
6271 case $cross_compiling:$ac_tool_warned in
6272 yes:)
6273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6275 ac_tool_warned=yes ;;
6276 esac
6277 AR=$ac_ct_AR
6278 fi
6279 else
6280 AR="$ac_cv_prog_AR"
6281 fi
6282
6283 test -z "$AR" && AR=ar
6284 test -z "$AR_FLAGS" && AR_FLAGS=cru
6285
6286
6287
6288
6289
6290
6291
6292
6293
6294
6295
6296 if test -n "$ac_tool_prefix"; then
6297 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6298 set dummy ${ac_tool_prefix}strip; ac_word=$2
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6300 $as_echo_n "checking for $ac_word... " >&6; }
6301 if ${ac_cv_prog_STRIP+:} false; then :
6302 $as_echo_n "(cached) " >&6
6303 else
6304 if test -n "$STRIP"; then
6305 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6306 else
6307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6308 for as_dir in $PATH
6309 do
6310 IFS=$as_save_IFS
6311 test -z "$as_dir" && as_dir=.
6312 for ac_exec_ext in '' $ac_executable_extensions; do
6313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6314 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6316 break 2
6317 fi
6318 done
6319 done
6320 IFS=$as_save_IFS
6321
6322 fi
6323 fi
6324 STRIP=$ac_cv_prog_STRIP
6325 if test -n "$STRIP"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6327 $as_echo "$STRIP" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6330 $as_echo "no" >&6; }
6331 fi
6332
6333
6334 fi
6335 if test -z "$ac_cv_prog_STRIP"; then
6336 ac_ct_STRIP=$STRIP
6337 # Extract the first word of "strip", so it can be a program name with args.
6338 set dummy strip; ac_word=$2
6339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6340 $as_echo_n "checking for $ac_word... " >&6; }
6341 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6342 $as_echo_n "(cached) " >&6
6343 else
6344 if test -n "$ac_ct_STRIP"; then
6345 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6346 else
6347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6348 for as_dir in $PATH
6349 do
6350 IFS=$as_save_IFS
6351 test -z "$as_dir" && as_dir=.
6352 for ac_exec_ext in '' $ac_executable_extensions; do
6353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6354 ac_cv_prog_ac_ct_STRIP="strip"
6355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6356 break 2
6357 fi
6358 done
6359 done
6360 IFS=$as_save_IFS
6361
6362 fi
6363 fi
6364 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6365 if test -n "$ac_ct_STRIP"; then
6366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6367 $as_echo "$ac_ct_STRIP" >&6; }
6368 else
6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6370 $as_echo "no" >&6; }
6371 fi
6372
6373 if test "x$ac_ct_STRIP" = x; then
6374 STRIP=":"
6375 else
6376 case $cross_compiling:$ac_tool_warned in
6377 yes:)
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6379 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6380 ac_tool_warned=yes ;;
6381 esac
6382 STRIP=$ac_ct_STRIP
6383 fi
6384 else
6385 STRIP="$ac_cv_prog_STRIP"
6386 fi
6387
6388 test -z "$STRIP" && STRIP=:
6389
6390
6391
6392
6393
6394
6395 if test -n "$ac_tool_prefix"; then
6396 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6397 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_RANLIB+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$RANLIB"; then
6404 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6408 do
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6416 fi
6417 done
6418 done
6419 IFS=$as_save_IFS
6420
6421 fi
6422 fi
6423 RANLIB=$ac_cv_prog_RANLIB
6424 if test -n "$RANLIB"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6426 $as_echo "$RANLIB" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6430 fi
6431
6432
6433 fi
6434 if test -z "$ac_cv_prog_RANLIB"; then
6435 ac_ct_RANLIB=$RANLIB
6436 # Extract the first word of "ranlib", so it can be a program name with args.
6437 set dummy ranlib; ac_word=$2
6438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6439 $as_echo_n "checking for $ac_word... " >&6; }
6440 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6441 $as_echo_n "(cached) " >&6
6442 else
6443 if test -n "$ac_ct_RANLIB"; then
6444 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6445 else
6446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6447 for as_dir in $PATH
6448 do
6449 IFS=$as_save_IFS
6450 test -z "$as_dir" && as_dir=.
6451 for ac_exec_ext in '' $ac_executable_extensions; do
6452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6453 ac_cv_prog_ac_ct_RANLIB="ranlib"
6454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6455 break 2
6456 fi
6457 done
6458 done
6459 IFS=$as_save_IFS
6460
6461 fi
6462 fi
6463 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6464 if test -n "$ac_ct_RANLIB"; then
6465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6466 $as_echo "$ac_ct_RANLIB" >&6; }
6467 else
6468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6469 $as_echo "no" >&6; }
6470 fi
6471
6472 if test "x$ac_ct_RANLIB" = x; then
6473 RANLIB=":"
6474 else
6475 case $cross_compiling:$ac_tool_warned in
6476 yes:)
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6478 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6479 ac_tool_warned=yes ;;
6480 esac
6481 RANLIB=$ac_ct_RANLIB
6482 fi
6483 else
6484 RANLIB="$ac_cv_prog_RANLIB"
6485 fi
6486
6487 test -z "$RANLIB" && RANLIB=:
6488
6489
6490
6491
6492
6493
6494 # Determine commands to create old-style static archives.
6495 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6496 old_postinstall_cmds='chmod 644 $oldlib'
6497 old_postuninstall_cmds=
6498
6499 if test -n "$RANLIB"; then
6500 case $host_os in
6501 openbsd*)
6502 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6503 ;;
6504 *)
6505 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6506 ;;
6507 esac
6508 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6509 fi
6510
6511 case $host_os in
6512 darwin*)
6513 lock_old_archive_extraction=yes ;;
6514 *)
6515 lock_old_archive_extraction=no ;;
6516 esac
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556 # If no C compiler was specified, use CC.
6557 LTCC=${LTCC-"$CC"}
6558
6559 # If no C compiler flags were specified, use CFLAGS.
6560 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6561
6562 # Allow CC to be a program name with arguments.
6563 compiler=$CC
6564
6565
6566 # Check for command to grab the raw symbol name followed by C symbol from nm.
6567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6568 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6569 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6570 $as_echo_n "(cached) " >&6
6571 else
6572
6573 # These are sane defaults that work on at least a few old systems.
6574 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6575
6576 # Character class describing NM global symbol codes.
6577 symcode='[BCDEGRST]'
6578
6579 # Regexp to match symbols that can be accessed directly from C.
6580 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6581
6582 # Define system-specific variables.
6583 case $host_os in
6584 aix*)
6585 symcode='[BCDT]'
6586 ;;
6587 cygwin* | mingw* | pw32* | cegcc*)
6588 symcode='[ABCDGISTW]'
6589 ;;
6590 hpux*)
6591 if test "$host_cpu" = ia64; then
6592 symcode='[ABCDEGRST]'
6593 fi
6594 ;;
6595 irix* | nonstopux*)
6596 symcode='[BCDEGRST]'
6597 ;;
6598 osf*)
6599 symcode='[BCDEGQRST]'
6600 ;;
6601 solaris*)
6602 symcode='[BDRT]'
6603 ;;
6604 sco3.2v5*)
6605 symcode='[DT]'
6606 ;;
6607 sysv4.2uw2*)
6608 symcode='[DT]'
6609 ;;
6610 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6611 symcode='[ABDT]'
6612 ;;
6613 sysv4)
6614 symcode='[DFNSTU]'
6615 ;;
6616 esac
6617
6618 # If we're using GNU nm, then use its standard symbol codes.
6619 case `$NM -V 2>&1` in
6620 *GNU* | *'with BFD'*)
6621 symcode='[ABCDGIRSTW]' ;;
6622 esac
6623
6624 # Transform an extracted symbol line into a proper C declaration.
6625 # Some systems (esp. on ia64) link data and code symbols differently,
6626 # so use this general approach.
6627 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6628
6629 # Transform an extracted symbol line into symbol name and symbol address
6630 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6631 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'"
6632
6633 # Handle CRLF in mingw tool chain
6634 opt_cr=
6635 case $build_os in
6636 mingw*)
6637 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6638 ;;
6639 esac
6640
6641 # Try without a prefix underscore, then with it.
6642 for ac_symprfx in "" "_"; do
6643
6644 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6645 symxfrm="\\1 $ac_symprfx\\2 \\2"
6646
6647 # Write the raw and C identifiers.
6648 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6649 # Fake it for dumpbin and say T for any non-static function
6650 # and D for any global variable.
6651 # Also find C++ and __fastcall symbols from MSVC++,
6652 # which start with @ or ?.
6653 lt_cv_sys_global_symbol_pipe="$AWK '"\
6654 " {last_section=section; section=\$ 3};"\
6655 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6656 " \$ 0!~/External *\|/{next};"\
6657 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6658 " {if(hide[section]) next};"\
6659 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6660 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6661 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6662 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6663 " ' prfx=^$ac_symprfx"
6664 else
6665 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6666 fi
6667
6668 # Check to see that the pipe works correctly.
6669 pipe_works=no
6670
6671 rm -f conftest*
6672 cat > conftest.$ac_ext <<_LT_EOF
6673 #ifdef __cplusplus
6674 extern "C" {
6675 #endif
6676 char nm_test_var;
6677 void nm_test_func(void);
6678 void nm_test_func(void){}
6679 #ifdef __cplusplus
6680 }
6681 #endif
6682 int main(){nm_test_var='a';nm_test_func();return(0);}
6683 _LT_EOF
6684
6685 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6686 (eval $ac_compile) 2>&5
6687 ac_status=$?
6688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6689 test $ac_status = 0; }; then
6690 # Now try to grab the symbols.
6691 nlist=conftest.nm
6692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6693 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6694 ac_status=$?
6695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6696 test $ac_status = 0; } && test -s "$nlist"; then
6697 # Try sorting and uniquifying the output.
6698 if sort "$nlist" | uniq > "$nlist"T; then
6699 mv -f "$nlist"T "$nlist"
6700 else
6701 rm -f "$nlist"T
6702 fi
6703
6704 # Make sure that we snagged all the symbols we need.
6705 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6706 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6707 cat <<_LT_EOF > conftest.$ac_ext
6708 #ifdef __cplusplus
6709 extern "C" {
6710 #endif
6711
6712 _LT_EOF
6713 # Now generate the symbol file.
6714 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6715
6716 cat <<_LT_EOF >> conftest.$ac_ext
6717
6718 /* The mapping between symbol names and symbols. */
6719 const struct {
6720 const char *name;
6721 void *address;
6722 }
6723 lt__PROGRAM__LTX_preloaded_symbols[] =
6724 {
6725 { "@PROGRAM@", (void *) 0 },
6726 _LT_EOF
6727 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6728 cat <<\_LT_EOF >> conftest.$ac_ext
6729 {0, (void *) 0}
6730 };
6731
6732 /* This works around a problem in FreeBSD linker */
6733 #ifdef FREEBSD_WORKAROUND
6734 static const void *lt_preloaded_setup() {
6735 return lt__PROGRAM__LTX_preloaded_symbols;
6736 }
6737 #endif
6738
6739 #ifdef __cplusplus
6740 }
6741 #endif
6742 _LT_EOF
6743 # Now try linking the two files.
6744 mv conftest.$ac_objext conftstm.$ac_objext
6745 lt_save_LIBS="$LIBS"
6746 lt_save_CFLAGS="$CFLAGS"
6747 LIBS="conftstm.$ac_objext"
6748 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6750 (eval $ac_link) 2>&5
6751 ac_status=$?
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6754 pipe_works=yes
6755 fi
6756 LIBS="$lt_save_LIBS"
6757 CFLAGS="$lt_save_CFLAGS"
6758 else
6759 echo "cannot find nm_test_func in $nlist" >&5
6760 fi
6761 else
6762 echo "cannot find nm_test_var in $nlist" >&5
6763 fi
6764 else
6765 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6766 fi
6767 else
6768 echo "$progname: failed program was:" >&5
6769 cat conftest.$ac_ext >&5
6770 fi
6771 rm -rf conftest* conftst*
6772
6773 # Do not use the global_symbol_pipe unless it works.
6774 if test "$pipe_works" = yes; then
6775 break
6776 else
6777 lt_cv_sys_global_symbol_pipe=
6778 fi
6779 done
6780
6781 fi
6782
6783 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6784 lt_cv_sys_global_symbol_to_cdecl=
6785 fi
6786 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6788 $as_echo "failed" >&6; }
6789 else
6790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6791 $as_echo "ok" >&6; }
6792 fi
6793
6794
6795
6796
6797
6798
6799
6800
6801
6802
6803
6804
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816 # Check whether --enable-libtool-lock was given.
6817 if test "${enable_libtool_lock+set}" = set; then :
6818 enableval=$enable_libtool_lock;
6819 fi
6820
6821 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6822
6823 # Some flags need to be propagated to the compiler or linker for good
6824 # libtool support.
6825 case $host in
6826 ia64-*-hpux*)
6827 # Find out which ABI we are using.
6828 echo 'int i;' > conftest.$ac_ext
6829 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6830 (eval $ac_compile) 2>&5
6831 ac_status=$?
6832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6833 test $ac_status = 0; }; then
6834 case `/usr/bin/file conftest.$ac_objext` in
6835 *ELF-32*)
6836 HPUX_IA64_MODE="32"
6837 ;;
6838 *ELF-64*)
6839 HPUX_IA64_MODE="64"
6840 ;;
6841 esac
6842 fi
6843 rm -rf conftest*
6844 ;;
6845 *-*-irix6*)
6846 # Find out which ABI we are using.
6847 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6848 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6849 (eval $ac_compile) 2>&5
6850 ac_status=$?
6851 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6852 test $ac_status = 0; }; then
6853 if test "$lt_cv_prog_gnu_ld" = yes; then
6854 case `/usr/bin/file conftest.$ac_objext` in
6855 *32-bit*)
6856 LD="${LD-ld} -melf32bsmip"
6857 ;;
6858 *N32*)
6859 LD="${LD-ld} -melf32bmipn32"
6860 ;;
6861 *64-bit*)
6862 LD="${LD-ld} -melf64bmip"
6863 ;;
6864 esac
6865 else
6866 case `/usr/bin/file conftest.$ac_objext` in
6867 *32-bit*)
6868 LD="${LD-ld} -32"
6869 ;;
6870 *N32*)
6871 LD="${LD-ld} -n32"
6872 ;;
6873 *64-bit*)
6874 LD="${LD-ld} -64"
6875 ;;
6876 esac
6877 fi
6878 fi
6879 rm -rf conftest*
6880 ;;
6881
6882 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6883 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6884 # Find out which ABI we are using.
6885 echo 'int i;' > conftest.$ac_ext
6886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6887 (eval $ac_compile) 2>&5
6888 ac_status=$?
6889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6890 test $ac_status = 0; }; then
6891 case `/usr/bin/file conftest.o` in
6892 *32-bit*)
6893 case $host in
6894 x86_64-*kfreebsd*-gnu)
6895 LD="${LD-ld} -m elf_i386_fbsd"
6896 ;;
6897 x86_64-*linux*)
6898 case `/usr/bin/file conftest.o` in
6899 *x86-64*)
6900 LD="${LD-ld} -m elf32_x86_64"
6901 ;;
6902 *)
6903 LD="${LD-ld} -m elf_i386"
6904 ;;
6905 esac
6906 ;;
6907 powerpc64le-*linux*)
6908 LD="${LD-ld} -m elf32lppclinux"
6909 ;;
6910 powerpc64-*linux*)
6911 LD="${LD-ld} -m elf32ppclinux"
6912 ;;
6913 s390x-*linux*)
6914 LD="${LD-ld} -m elf_s390"
6915 ;;
6916 sparc64-*linux*)
6917 LD="${LD-ld} -m elf32_sparc"
6918 ;;
6919 esac
6920 ;;
6921 *64-bit*)
6922 case $host in
6923 x86_64-*kfreebsd*-gnu)
6924 LD="${LD-ld} -m elf_x86_64_fbsd"
6925 ;;
6926 x86_64-*linux*)
6927 LD="${LD-ld} -m elf_x86_64"
6928 ;;
6929 powerpcle-*linux*)
6930 LD="${LD-ld} -m elf64lppc"
6931 ;;
6932 powerpc-*linux*)
6933 LD="${LD-ld} -m elf64ppc"
6934 ;;
6935 s390*-*linux*|s390*-*tpf*)
6936 LD="${LD-ld} -m elf64_s390"
6937 ;;
6938 sparc*-*linux*)
6939 LD="${LD-ld} -m elf64_sparc"
6940 ;;
6941 esac
6942 ;;
6943 esac
6944 fi
6945 rm -rf conftest*
6946 ;;
6947
6948 *-*-sco3.2v5*)
6949 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6950 SAVE_CFLAGS="$CFLAGS"
6951 CFLAGS="$CFLAGS -belf"
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6953 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6954 if ${lt_cv_cc_needs_belf+:} false; then :
6955 $as_echo_n "(cached) " >&6
6956 else
6957 ac_ext=c
6958 ac_cpp='$CPP $CPPFLAGS'
6959 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6960 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6961 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6962
6963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6964 /* end confdefs.h. */
6965
6966 int
6967 main ()
6968 {
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 if ac_fn_c_try_link "$LINENO"; then :
6975 lt_cv_cc_needs_belf=yes
6976 else
6977 lt_cv_cc_needs_belf=no
6978 fi
6979 rm -f core conftest.err conftest.$ac_objext \
6980 conftest$ac_exeext conftest.$ac_ext
6981 ac_ext=c
6982 ac_cpp='$CPP $CPPFLAGS'
6983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6986
6987 fi
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6989 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6990 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6991 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6992 CFLAGS="$SAVE_CFLAGS"
6993 fi
6994 ;;
6995 sparc*-*solaris*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 case `/usr/bin/file conftest.o` in
7004 *64-bit*)
7005 case $lt_cv_prog_gnu_ld in
7006 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7007 *)
7008 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7009 LD="${LD-ld} -64"
7010 fi
7011 ;;
7012 esac
7013 ;;
7014 esac
7015 fi
7016 rm -rf conftest*
7017 ;;
7018 esac
7019
7020 need_locks="$enable_libtool_lock"
7021
7022
7023 case $host_os in
7024 rhapsody* | darwin*)
7025 if test -n "$ac_tool_prefix"; then
7026 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7027 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$DSYMUTIL"; then
7034 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7038 do
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7046 fi
7047 done
7048 done
7049 IFS=$as_save_IFS
7050
7051 fi
7052 fi
7053 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7054 if test -n "$DSYMUTIL"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7056 $as_echo "$DSYMUTIL" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7060 fi
7061
7062
7063 fi
7064 if test -z "$ac_cv_prog_DSYMUTIL"; then
7065 ac_ct_DSYMUTIL=$DSYMUTIL
7066 # Extract the first word of "dsymutil", so it can be a program name with args.
7067 set dummy dsymutil; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$ac_ct_DSYMUTIL"; then
7074 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7078 do
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7083 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7086 fi
7087 done
7088 done
7089 IFS=$as_save_IFS
7090
7091 fi
7092 fi
7093 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7094 if test -n "$ac_ct_DSYMUTIL"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7096 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7100 fi
7101
7102 if test "x$ac_ct_DSYMUTIL" = x; then
7103 DSYMUTIL=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 DSYMUTIL=$ac_ct_DSYMUTIL
7112 fi
7113 else
7114 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7115 fi
7116
7117 if test -n "$ac_tool_prefix"; then
7118 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7119 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7121 $as_echo_n "checking for $ac_word... " >&6; }
7122 if ${ac_cv_prog_NMEDIT+:} false; then :
7123 $as_echo_n "(cached) " >&6
7124 else
7125 if test -n "$NMEDIT"; then
7126 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7127 else
7128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7129 for as_dir in $PATH
7130 do
7131 IFS=$as_save_IFS
7132 test -z "$as_dir" && as_dir=.
7133 for ac_exec_ext in '' $ac_executable_extensions; do
7134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7135 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7137 break 2
7138 fi
7139 done
7140 done
7141 IFS=$as_save_IFS
7142
7143 fi
7144 fi
7145 NMEDIT=$ac_cv_prog_NMEDIT
7146 if test -n "$NMEDIT"; then
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7148 $as_echo "$NMEDIT" >&6; }
7149 else
7150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7151 $as_echo "no" >&6; }
7152 fi
7153
7154
7155 fi
7156 if test -z "$ac_cv_prog_NMEDIT"; then
7157 ac_ct_NMEDIT=$NMEDIT
7158 # Extract the first word of "nmedit", so it can be a program name with args.
7159 set dummy nmedit; ac_word=$2
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7161 $as_echo_n "checking for $ac_word... " >&6; }
7162 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test -n "$ac_ct_NMEDIT"; then
7166 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7167 else
7168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7169 for as_dir in $PATH
7170 do
7171 IFS=$as_save_IFS
7172 test -z "$as_dir" && as_dir=.
7173 for ac_exec_ext in '' $ac_executable_extensions; do
7174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7175 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7177 break 2
7178 fi
7179 done
7180 done
7181 IFS=$as_save_IFS
7182
7183 fi
7184 fi
7185 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7186 if test -n "$ac_ct_NMEDIT"; then
7187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7188 $as_echo "$ac_ct_NMEDIT" >&6; }
7189 else
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7191 $as_echo "no" >&6; }
7192 fi
7193
7194 if test "x$ac_ct_NMEDIT" = x; then
7195 NMEDIT=":"
7196 else
7197 case $cross_compiling:$ac_tool_warned in
7198 yes:)
7199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7200 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7201 ac_tool_warned=yes ;;
7202 esac
7203 NMEDIT=$ac_ct_NMEDIT
7204 fi
7205 else
7206 NMEDIT="$ac_cv_prog_NMEDIT"
7207 fi
7208
7209 if test -n "$ac_tool_prefix"; then
7210 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7211 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213 $as_echo_n "checking for $ac_word... " >&6; }
7214 if ${ac_cv_prog_LIPO+:} false; then :
7215 $as_echo_n "(cached) " >&6
7216 else
7217 if test -n "$LIPO"; then
7218 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7219 else
7220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221 for as_dir in $PATH
7222 do
7223 IFS=$as_save_IFS
7224 test -z "$as_dir" && as_dir=.
7225 for ac_exec_ext in '' $ac_executable_extensions; do
7226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229 break 2
7230 fi
7231 done
7232 done
7233 IFS=$as_save_IFS
7234
7235 fi
7236 fi
7237 LIPO=$ac_cv_prog_LIPO
7238 if test -n "$LIPO"; then
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7240 $as_echo "$LIPO" >&6; }
7241 else
7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243 $as_echo "no" >&6; }
7244 fi
7245
7246
7247 fi
7248 if test -z "$ac_cv_prog_LIPO"; then
7249 ac_ct_LIPO=$LIPO
7250 # Extract the first word of "lipo", so it can be a program name with args.
7251 set dummy lipo; ac_word=$2
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7253 $as_echo_n "checking for $ac_word... " >&6; }
7254 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7255 $as_echo_n "(cached) " >&6
7256 else
7257 if test -n "$ac_ct_LIPO"; then
7258 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7259 else
7260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7261 for as_dir in $PATH
7262 do
7263 IFS=$as_save_IFS
7264 test -z "$as_dir" && as_dir=.
7265 for ac_exec_ext in '' $ac_executable_extensions; do
7266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7267 ac_cv_prog_ac_ct_LIPO="lipo"
7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7269 break 2
7270 fi
7271 done
7272 done
7273 IFS=$as_save_IFS
7274
7275 fi
7276 fi
7277 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7278 if test -n "$ac_ct_LIPO"; then
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7280 $as_echo "$ac_ct_LIPO" >&6; }
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 fi
7285
7286 if test "x$ac_ct_LIPO" = x; then
7287 LIPO=":"
7288 else
7289 case $cross_compiling:$ac_tool_warned in
7290 yes:)
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7293 ac_tool_warned=yes ;;
7294 esac
7295 LIPO=$ac_ct_LIPO
7296 fi
7297 else
7298 LIPO="$ac_cv_prog_LIPO"
7299 fi
7300
7301 if test -n "$ac_tool_prefix"; then
7302 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7303 set dummy ${ac_tool_prefix}otool; ac_word=$2
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7305 $as_echo_n "checking for $ac_word... " >&6; }
7306 if ${ac_cv_prog_OTOOL+:} false; then :
7307 $as_echo_n "(cached) " >&6
7308 else
7309 if test -n "$OTOOL"; then
7310 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7311 else
7312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7313 for as_dir in $PATH
7314 do
7315 IFS=$as_save_IFS
7316 test -z "$as_dir" && as_dir=.
7317 for ac_exec_ext in '' $ac_executable_extensions; do
7318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7319 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7321 break 2
7322 fi
7323 done
7324 done
7325 IFS=$as_save_IFS
7326
7327 fi
7328 fi
7329 OTOOL=$ac_cv_prog_OTOOL
7330 if test -n "$OTOOL"; then
7331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7332 $as_echo "$OTOOL" >&6; }
7333 else
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }
7336 fi
7337
7338
7339 fi
7340 if test -z "$ac_cv_prog_OTOOL"; then
7341 ac_ct_OTOOL=$OTOOL
7342 # Extract the first word of "otool", so it can be a program name with args.
7343 set dummy otool; ac_word=$2
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345 $as_echo_n "checking for $ac_word... " >&6; }
7346 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7347 $as_echo_n "(cached) " >&6
7348 else
7349 if test -n "$ac_ct_OTOOL"; then
7350 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7351 else
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353 for as_dir in $PATH
7354 do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_exec_ext in '' $ac_executable_extensions; do
7358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7359 ac_cv_prog_ac_ct_OTOOL="otool"
7360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361 break 2
7362 fi
7363 done
7364 done
7365 IFS=$as_save_IFS
7366
7367 fi
7368 fi
7369 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7370 if test -n "$ac_ct_OTOOL"; then
7371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7372 $as_echo "$ac_ct_OTOOL" >&6; }
7373 else
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375 $as_echo "no" >&6; }
7376 fi
7377
7378 if test "x$ac_ct_OTOOL" = x; then
7379 OTOOL=":"
7380 else
7381 case $cross_compiling:$ac_tool_warned in
7382 yes:)
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7385 ac_tool_warned=yes ;;
7386 esac
7387 OTOOL=$ac_ct_OTOOL
7388 fi
7389 else
7390 OTOOL="$ac_cv_prog_OTOOL"
7391 fi
7392
7393 if test -n "$ac_tool_prefix"; then
7394 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7395 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7397 $as_echo_n "checking for $ac_word... " >&6; }
7398 if ${ac_cv_prog_OTOOL64+:} false; then :
7399 $as_echo_n "(cached) " >&6
7400 else
7401 if test -n "$OTOOL64"; then
7402 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7403 else
7404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7405 for as_dir in $PATH
7406 do
7407 IFS=$as_save_IFS
7408 test -z "$as_dir" && as_dir=.
7409 for ac_exec_ext in '' $ac_executable_extensions; do
7410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7411 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7413 break 2
7414 fi
7415 done
7416 done
7417 IFS=$as_save_IFS
7418
7419 fi
7420 fi
7421 OTOOL64=$ac_cv_prog_OTOOL64
7422 if test -n "$OTOOL64"; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7424 $as_echo "$OTOOL64" >&6; }
7425 else
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7427 $as_echo "no" >&6; }
7428 fi
7429
7430
7431 fi
7432 if test -z "$ac_cv_prog_OTOOL64"; then
7433 ac_ct_OTOOL64=$OTOOL64
7434 # Extract the first word of "otool64", so it can be a program name with args.
7435 set dummy otool64; ac_word=$2
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437 $as_echo_n "checking for $ac_word... " >&6; }
7438 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7439 $as_echo_n "(cached) " >&6
7440 else
7441 if test -n "$ac_ct_OTOOL64"; then
7442 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7443 else
7444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445 for as_dir in $PATH
7446 do
7447 IFS=$as_save_IFS
7448 test -z "$as_dir" && as_dir=.
7449 for ac_exec_ext in '' $ac_executable_extensions; do
7450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7451 ac_cv_prog_ac_ct_OTOOL64="otool64"
7452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453 break 2
7454 fi
7455 done
7456 done
7457 IFS=$as_save_IFS
7458
7459 fi
7460 fi
7461 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7462 if test -n "$ac_ct_OTOOL64"; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7464 $as_echo "$ac_ct_OTOOL64" >&6; }
7465 else
7466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467 $as_echo "no" >&6; }
7468 fi
7469
7470 if test "x$ac_ct_OTOOL64" = x; then
7471 OTOOL64=":"
7472 else
7473 case $cross_compiling:$ac_tool_warned in
7474 yes:)
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7477 ac_tool_warned=yes ;;
7478 esac
7479 OTOOL64=$ac_ct_OTOOL64
7480 fi
7481 else
7482 OTOOL64="$ac_cv_prog_OTOOL64"
7483 fi
7484
7485
7486
7487
7488
7489
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7512 $as_echo_n "checking for -single_module linker flag... " >&6; }
7513 if ${lt_cv_apple_cc_single_mod+:} false; then :
7514 $as_echo_n "(cached) " >&6
7515 else
7516 lt_cv_apple_cc_single_mod=no
7517 if test -z "${LT_MULTI_MODULE}"; then
7518 # By default we will add the -single_module flag. You can override
7519 # by either setting the environment variable LT_MULTI_MODULE
7520 # non-empty at configure time, or by adding -multi_module to the
7521 # link flags.
7522 rm -rf libconftest.dylib*
7523 echo "int foo(void){return 1;}" > conftest.c
7524 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7525 -dynamiclib -Wl,-single_module conftest.c" >&5
7526 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7527 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7528 _lt_result=$?
7529 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7530 lt_cv_apple_cc_single_mod=yes
7531 else
7532 cat conftest.err >&5
7533 fi
7534 rm -rf libconftest.dylib*
7535 rm -f conftest.*
7536 fi
7537 fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7539 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7541 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7542 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7543 $as_echo_n "(cached) " >&6
7544 else
7545 lt_cv_ld_exported_symbols_list=no
7546 save_LDFLAGS=$LDFLAGS
7547 echo "_main" > conftest.sym
7548 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7550 /* end confdefs.h. */
7551
7552 int
7553 main ()
7554 {
7555
7556 ;
7557 return 0;
7558 }
7559 _ACEOF
7560 if ac_fn_c_try_link "$LINENO"; then :
7561 lt_cv_ld_exported_symbols_list=yes
7562 else
7563 lt_cv_ld_exported_symbols_list=no
7564 fi
7565 rm -f core conftest.err conftest.$ac_objext \
7566 conftest$ac_exeext conftest.$ac_ext
7567 LDFLAGS="$save_LDFLAGS"
7568
7569 fi
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7571 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7573 $as_echo_n "checking for -force_load linker flag... " >&6; }
7574 if ${lt_cv_ld_force_load+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 lt_cv_ld_force_load=no
7578 cat > conftest.c << _LT_EOF
7579 int forced_loaded() { return 2;}
7580 _LT_EOF
7581 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7582 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7583 echo "$AR cru libconftest.a conftest.o" >&5
7584 $AR cru libconftest.a conftest.o 2>&5
7585 cat > conftest.c << _LT_EOF
7586 int main() { return 0;}
7587 _LT_EOF
7588 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7589 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7590 _lt_result=$?
7591 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7592 lt_cv_ld_force_load=yes
7593 else
7594 cat conftest.err >&5
7595 fi
7596 rm -f conftest.err libconftest.a conftest conftest.c
7597 rm -rf conftest.dSYM
7598
7599 fi
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7601 $as_echo "$lt_cv_ld_force_load" >&6; }
7602 case $host_os in
7603 rhapsody* | darwin1.[012])
7604 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7605 darwin1.*)
7606 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7607 darwin*) # darwin 5.x on
7608 # if running on 10.5 or later, the deployment target defaults
7609 # to the OS version, if on x86, and 10.4, the deployment
7610 # target defaults to 10.4. Don't you love it?
7611 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7612 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7613 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7614 10.[012][,.]*)
7615 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7616 10.*)
7617 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7618 esac
7619 ;;
7620 esac
7621 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7622 _lt_dar_single_mod='$single_module'
7623 fi
7624 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7625 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7626 else
7627 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7628 fi
7629 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7630 _lt_dsymutil='~$DSYMUTIL $lib || :'
7631 else
7632 _lt_dsymutil=
7633 fi
7634 ;;
7635 esac
7636
7637 ac_ext=c
7638 ac_cpp='$CPP $CPPFLAGS'
7639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7643 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7644 # On Suns, sometimes $CPP names a directory.
7645 if test -n "$CPP" && test -d "$CPP"; then
7646 CPP=
7647 fi
7648 if test -z "$CPP"; then
7649 if ${ac_cv_prog_CPP+:} false; then :
7650 $as_echo_n "(cached) " >&6
7651 else
7652 # Double quotes because CPP needs to be expanded
7653 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7654 do
7655 ac_preproc_ok=false
7656 for ac_c_preproc_warn_flag in '' yes
7657 do
7658 # Use a header file that comes with gcc, so configuring glibc
7659 # with a fresh cross-compiler works.
7660 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7661 # <limits.h> exists even on freestanding compilers.
7662 # On the NeXT, cc -E runs the code through the compiler's parser,
7663 # not just through cpp. "Syntax error" is here to catch this case.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #ifdef __STDC__
7667 # include <limits.h>
7668 #else
7669 # include <assert.h>
7670 #endif
7671 Syntax error
7672 _ACEOF
7673 if ac_fn_c_try_cpp "$LINENO"; then :
7674
7675 else
7676 # Broken: fails on valid input.
7677 continue
7678 fi
7679 rm -f conftest.err conftest.i conftest.$ac_ext
7680
7681 # OK, works on sane cases. Now check whether nonexistent headers
7682 # can be detected and how.
7683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7684 /* end confdefs.h. */
7685 #include <ac_nonexistent.h>
7686 _ACEOF
7687 if ac_fn_c_try_cpp "$LINENO"; then :
7688 # Broken: success on invalid input.
7689 continue
7690 else
7691 # Passes both tests.
7692 ac_preproc_ok=:
7693 break
7694 fi
7695 rm -f conftest.err conftest.i conftest.$ac_ext
7696
7697 done
7698 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7699 rm -f conftest.i conftest.err conftest.$ac_ext
7700 if $ac_preproc_ok; then :
7701 break
7702 fi
7703
7704 done
7705 ac_cv_prog_CPP=$CPP
7706
7707 fi
7708 CPP=$ac_cv_prog_CPP
7709 else
7710 ac_cv_prog_CPP=$CPP
7711 fi
7712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7713 $as_echo "$CPP" >&6; }
7714 ac_preproc_ok=false
7715 for ac_c_preproc_warn_flag in '' yes
7716 do
7717 # Use a header file that comes with gcc, so configuring glibc
7718 # with a fresh cross-compiler works.
7719 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7720 # <limits.h> exists even on freestanding compilers.
7721 # On the NeXT, cc -E runs the code through the compiler's parser,
7722 # not just through cpp. "Syntax error" is here to catch this case.
7723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7724 /* end confdefs.h. */
7725 #ifdef __STDC__
7726 # include <limits.h>
7727 #else
7728 # include <assert.h>
7729 #endif
7730 Syntax error
7731 _ACEOF
7732 if ac_fn_c_try_cpp "$LINENO"; then :
7733
7734 else
7735 # Broken: fails on valid input.
7736 continue
7737 fi
7738 rm -f conftest.err conftest.i conftest.$ac_ext
7739
7740 # OK, works on sane cases. Now check whether nonexistent headers
7741 # can be detected and how.
7742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7743 /* end confdefs.h. */
7744 #include <ac_nonexistent.h>
7745 _ACEOF
7746 if ac_fn_c_try_cpp "$LINENO"; then :
7747 # Broken: success on invalid input.
7748 continue
7749 else
7750 # Passes both tests.
7751 ac_preproc_ok=:
7752 break
7753 fi
7754 rm -f conftest.err conftest.i conftest.$ac_ext
7755
7756 done
7757 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7758 rm -f conftest.i conftest.err conftest.$ac_ext
7759 if $ac_preproc_ok; then :
7760
7761 else
7762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7764 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7765 See \`config.log' for more details" "$LINENO" 5; }
7766 fi
7767
7768 ac_ext=c
7769 ac_cpp='$CPP $CPPFLAGS'
7770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7773
7774
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7776 $as_echo_n "checking for ANSI C header files... " >&6; }
7777 if ${ac_cv_header_stdc+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7781 /* end confdefs.h. */
7782 #include <stdlib.h>
7783 #include <stdarg.h>
7784 #include <string.h>
7785 #include <float.h>
7786
7787 int
7788 main ()
7789 {
7790
7791 ;
7792 return 0;
7793 }
7794 _ACEOF
7795 if ac_fn_c_try_compile "$LINENO"; then :
7796 ac_cv_header_stdc=yes
7797 else
7798 ac_cv_header_stdc=no
7799 fi
7800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7801
7802 if test $ac_cv_header_stdc = yes; then
7803 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7805 /* end confdefs.h. */
7806 #include <string.h>
7807
7808 _ACEOF
7809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7810 $EGREP "memchr" >/dev/null 2>&1; then :
7811
7812 else
7813 ac_cv_header_stdc=no
7814 fi
7815 rm -f conftest*
7816
7817 fi
7818
7819 if test $ac_cv_header_stdc = yes; then
7820 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7822 /* end confdefs.h. */
7823 #include <stdlib.h>
7824
7825 _ACEOF
7826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7827 $EGREP "free" >/dev/null 2>&1; then :
7828
7829 else
7830 ac_cv_header_stdc=no
7831 fi
7832 rm -f conftest*
7833
7834 fi
7835
7836 if test $ac_cv_header_stdc = yes; then
7837 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7838 if test "$cross_compiling" = yes; then :
7839 :
7840 else
7841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7842 /* end confdefs.h. */
7843 #include <ctype.h>
7844 #include <stdlib.h>
7845 #if ((' ' & 0x0FF) == 0x020)
7846 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7847 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7848 #else
7849 # define ISLOWER(c) \
7850 (('a' <= (c) && (c) <= 'i') \
7851 || ('j' <= (c) && (c) <= 'r') \
7852 || ('s' <= (c) && (c) <= 'z'))
7853 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7854 #endif
7855
7856 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7857 int
7858 main ()
7859 {
7860 int i;
7861 for (i = 0; i < 256; i++)
7862 if (XOR (islower (i), ISLOWER (i))
7863 || toupper (i) != TOUPPER (i))
7864 return 2;
7865 return 0;
7866 }
7867 _ACEOF
7868 if ac_fn_c_try_run "$LINENO"; then :
7869
7870 else
7871 ac_cv_header_stdc=no
7872 fi
7873 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7874 conftest.$ac_objext conftest.beam conftest.$ac_ext
7875 fi
7876
7877 fi
7878 fi
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7880 $as_echo "$ac_cv_header_stdc" >&6; }
7881 if test $ac_cv_header_stdc = yes; then
7882
7883 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7884
7885 fi
7886
7887 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7888 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7889 inttypes.h stdint.h unistd.h
7890 do :
7891 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7892 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7893 "
7894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7895 cat >>confdefs.h <<_ACEOF
7896 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7897 _ACEOF
7898
7899 fi
7900
7901 done
7902
7903
7904 for ac_header in dlfcn.h
7905 do :
7906 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7907 "
7908 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DLFCN_H 1
7911 _ACEOF
7912
7913 fi
7914
7915 done
7916
7917
7918
7919
7920
7921 # Set options
7922
7923
7924
7925 enable_dlopen=no
7926
7927
7928 enable_win32_dll=no
7929
7930
7931 # Check whether --enable-shared was given.
7932 if test "${enable_shared+set}" = set; then :
7933 enableval=$enable_shared; p=${PACKAGE-default}
7934 case $enableval in
7935 yes) enable_shared=yes ;;
7936 no) enable_shared=no ;;
7937 *)
7938 enable_shared=no
7939 # Look at the argument we got. We use all the common list separators.
7940 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7941 for pkg in $enableval; do
7942 IFS="$lt_save_ifs"
7943 if test "X$pkg" = "X$p"; then
7944 enable_shared=yes
7945 fi
7946 done
7947 IFS="$lt_save_ifs"
7948 ;;
7949 esac
7950 else
7951 enable_shared=yes
7952 fi
7953
7954
7955
7956
7957
7958
7959
7960
7961
7962 # Check whether --enable-static was given.
7963 if test "${enable_static+set}" = set; then :
7964 enableval=$enable_static; p=${PACKAGE-default}
7965 case $enableval in
7966 yes) enable_static=yes ;;
7967 no) enable_static=no ;;
7968 *)
7969 enable_static=no
7970 # Look at the argument we got. We use all the common list separators.
7971 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7972 for pkg in $enableval; do
7973 IFS="$lt_save_ifs"
7974 if test "X$pkg" = "X$p"; then
7975 enable_static=yes
7976 fi
7977 done
7978 IFS="$lt_save_ifs"
7979 ;;
7980 esac
7981 else
7982 enable_static=yes
7983 fi
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994 # Check whether --with-pic was given.
7995 if test "${with_pic+set}" = set; then :
7996 withval=$with_pic; pic_mode="$withval"
7997 else
7998 pic_mode=default
7999 fi
8000
8001
8002 test -z "$pic_mode" && pic_mode=default
8003
8004
8005
8006
8007
8008
8009
8010 # Check whether --enable-fast-install was given.
8011 if test "${enable_fast_install+set}" = set; then :
8012 enableval=$enable_fast_install; p=${PACKAGE-default}
8013 case $enableval in
8014 yes) enable_fast_install=yes ;;
8015 no) enable_fast_install=no ;;
8016 *)
8017 enable_fast_install=no
8018 # Look at the argument we got. We use all the common list separators.
8019 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8020 for pkg in $enableval; do
8021 IFS="$lt_save_ifs"
8022 if test "X$pkg" = "X$p"; then
8023 enable_fast_install=yes
8024 fi
8025 done
8026 IFS="$lt_save_ifs"
8027 ;;
8028 esac
8029 else
8030 enable_fast_install=yes
8031 fi
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043 # This can be used to rebuild libtool when needed
8044 LIBTOOL_DEPS="$ltmain"
8045
8046 # Always use our own libtool.
8047 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8048
8049
8050
8051
8052
8053
8054
8055
8056
8057
8058
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070
8071
8072
8073
8074 test -z "$LN_S" && LN_S="ln -s"
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089 if test -n "${ZSH_VERSION+set}" ; then
8090 setopt NO_GLOB_SUBST
8091 fi
8092
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8094 $as_echo_n "checking for objdir... " >&6; }
8095 if ${lt_cv_objdir+:} false; then :
8096 $as_echo_n "(cached) " >&6
8097 else
8098 rm -f .libs 2>/dev/null
8099 mkdir .libs 2>/dev/null
8100 if test -d .libs; then
8101 lt_cv_objdir=.libs
8102 else
8103 # MS-DOS does not allow filenames that begin with a dot.
8104 lt_cv_objdir=_libs
8105 fi
8106 rmdir .libs 2>/dev/null
8107 fi
8108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8109 $as_echo "$lt_cv_objdir" >&6; }
8110 objdir=$lt_cv_objdir
8111
8112
8113
8114
8115
8116 cat >>confdefs.h <<_ACEOF
8117 #define LT_OBJDIR "$lt_cv_objdir/"
8118 _ACEOF
8119
8120
8121
8122
8123 case $host_os in
8124 aix3*)
8125 # AIX sometimes has problems with the GCC collect2 program. For some
8126 # reason, if we set the COLLECT_NAMES environment variable, the problems
8127 # vanish in a puff of smoke.
8128 if test "X${COLLECT_NAMES+set}" != Xset; then
8129 COLLECT_NAMES=
8130 export COLLECT_NAMES
8131 fi
8132 ;;
8133 esac
8134
8135 # Global variables:
8136 ofile=libtool
8137 can_build_shared=yes
8138
8139 # All known linkers require a `.a' archive for static linking (except MSVC,
8140 # which needs '.lib').
8141 libext=a
8142
8143 with_gnu_ld="$lt_cv_prog_gnu_ld"
8144
8145 old_CC="$CC"
8146 old_CFLAGS="$CFLAGS"
8147
8148 # Set sane defaults for various variables
8149 test -z "$CC" && CC=cc
8150 test -z "$LTCC" && LTCC=$CC
8151 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8152 test -z "$LD" && LD=ld
8153 test -z "$ac_objext" && ac_objext=o
8154
8155 for cc_temp in $compiler""; do
8156 case $cc_temp in
8157 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8158 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8159 \-*) ;;
8160 *) break;;
8161 esac
8162 done
8163 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8164
8165
8166 # Only perform the check for file, if the check method requires it
8167 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8168 case $deplibs_check_method in
8169 file_magic*)
8170 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8172 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8173 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 case $MAGIC_CMD in
8177 [\\/*] | ?:[\\/]*)
8178 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8179 ;;
8180 *)
8181 lt_save_MAGIC_CMD="$MAGIC_CMD"
8182 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8183 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8184 for ac_dir in $ac_dummy; do
8185 IFS="$lt_save_ifs"
8186 test -z "$ac_dir" && ac_dir=.
8187 if test -f $ac_dir/${ac_tool_prefix}file; then
8188 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8189 if test -n "$file_magic_test_file"; then
8190 case $deplibs_check_method in
8191 "file_magic "*)
8192 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8193 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8194 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8195 $EGREP "$file_magic_regex" > /dev/null; then
8196 :
8197 else
8198 cat <<_LT_EOF 1>&2
8199
8200 *** Warning: the command libtool uses to detect shared libraries,
8201 *** $file_magic_cmd, produces output that libtool cannot recognize.
8202 *** The result is that libtool may fail to recognize shared libraries
8203 *** as such. This will affect the creation of libtool libraries that
8204 *** depend on shared libraries, but programs linked with such libtool
8205 *** libraries will work regardless of this problem. Nevertheless, you
8206 *** may want to report the problem to your system manager and/or to
8207 *** bug-libtool@gnu.org
8208
8209 _LT_EOF
8210 fi ;;
8211 esac
8212 fi
8213 break
8214 fi
8215 done
8216 IFS="$lt_save_ifs"
8217 MAGIC_CMD="$lt_save_MAGIC_CMD"
8218 ;;
8219 esac
8220 fi
8221
8222 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8223 if test -n "$MAGIC_CMD"; then
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8225 $as_echo "$MAGIC_CMD" >&6; }
8226 else
8227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8228 $as_echo "no" >&6; }
8229 fi
8230
8231
8232
8233
8234
8235 if test -z "$lt_cv_path_MAGIC_CMD"; then
8236 if test -n "$ac_tool_prefix"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8238 $as_echo_n "checking for file... " >&6; }
8239 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8240 $as_echo_n "(cached) " >&6
8241 else
8242 case $MAGIC_CMD in
8243 [\\/*] | ?:[\\/]*)
8244 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8245 ;;
8246 *)
8247 lt_save_MAGIC_CMD="$MAGIC_CMD"
8248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8249 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8250 for ac_dir in $ac_dummy; do
8251 IFS="$lt_save_ifs"
8252 test -z "$ac_dir" && ac_dir=.
8253 if test -f $ac_dir/file; then
8254 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8255 if test -n "$file_magic_test_file"; then
8256 case $deplibs_check_method in
8257 "file_magic "*)
8258 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8259 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8260 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8261 $EGREP "$file_magic_regex" > /dev/null; then
8262 :
8263 else
8264 cat <<_LT_EOF 1>&2
8265
8266 *** Warning: the command libtool uses to detect shared libraries,
8267 *** $file_magic_cmd, produces output that libtool cannot recognize.
8268 *** The result is that libtool may fail to recognize shared libraries
8269 *** as such. This will affect the creation of libtool libraries that
8270 *** depend on shared libraries, but programs linked with such libtool
8271 *** libraries will work regardless of this problem. Nevertheless, you
8272 *** may want to report the problem to your system manager and/or to
8273 *** bug-libtool@gnu.org
8274
8275 _LT_EOF
8276 fi ;;
8277 esac
8278 fi
8279 break
8280 fi
8281 done
8282 IFS="$lt_save_ifs"
8283 MAGIC_CMD="$lt_save_MAGIC_CMD"
8284 ;;
8285 esac
8286 fi
8287
8288 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8289 if test -n "$MAGIC_CMD"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8291 $as_echo "$MAGIC_CMD" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8295 fi
8296
8297
8298 else
8299 MAGIC_CMD=:
8300 fi
8301 fi
8302
8303 fi
8304 ;;
8305 esac
8306
8307 # Use C for the default configuration in the libtool script
8308
8309 lt_save_CC="$CC"
8310 ac_ext=c
8311 ac_cpp='$CPP $CPPFLAGS'
8312 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8313 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8314 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8315
8316
8317 # Source file extension for C test sources.
8318 ac_ext=c
8319
8320 # Object file extension for compiled C test sources.
8321 objext=o
8322 objext=$objext
8323
8324 # Code to be used in simple compile tests
8325 lt_simple_compile_test_code="int some_variable = 0;"
8326
8327 # Code to be used in simple link tests
8328 lt_simple_link_test_code='int main(){return(0);}'
8329
8330
8331
8332
8333
8334
8335
8336 # If no C compiler was specified, use CC.
8337 LTCC=${LTCC-"$CC"}
8338
8339 # If no C compiler flags were specified, use CFLAGS.
8340 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8341
8342 # Allow CC to be a program name with arguments.
8343 compiler=$CC
8344
8345 # Save the default compiler, since it gets overwritten when the other
8346 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8347 compiler_DEFAULT=$CC
8348
8349 # save warnings/boilerplate of simple test code
8350 ac_outfile=conftest.$ac_objext
8351 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8352 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8353 _lt_compiler_boilerplate=`cat conftest.err`
8354 $RM conftest*
8355
8356 ac_outfile=conftest.$ac_objext
8357 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8358 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8359 _lt_linker_boilerplate=`cat conftest.err`
8360 $RM -r conftest*
8361
8362
8363 ## CAVEAT EMPTOR:
8364 ## There is no encapsulation within the following macros, do not change
8365 ## the running order or otherwise move them around unless you know exactly
8366 ## what you are doing...
8367 if test -n "$compiler"; then
8368
8369 lt_prog_compiler_no_builtin_flag=
8370
8371 if test "$GCC" = yes; then
8372 case $cc_basename in
8373 nvcc*)
8374 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8375 *)
8376 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8377 esac
8378
8379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8380 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8381 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8382 $as_echo_n "(cached) " >&6
8383 else
8384 lt_cv_prog_compiler_rtti_exceptions=no
8385 ac_outfile=conftest.$ac_objext
8386 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8387 lt_compiler_flag="-fno-rtti -fno-exceptions"
8388 # Insert the option either (1) after the last *FLAGS variable, or
8389 # (2) before a word containing "conftest.", or (3) at the end.
8390 # Note that $ac_compile itself does not contain backslashes and begins
8391 # with a dollar sign (not a hyphen), so the echo should work correctly.
8392 # The option is referenced via a variable to avoid confusing sed.
8393 lt_compile=`echo "$ac_compile" | $SED \
8394 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8395 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8396 -e 's:$: $lt_compiler_flag:'`
8397 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8398 (eval "$lt_compile" 2>conftest.err)
8399 ac_status=$?
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 if (exit $ac_status) && test -s "$ac_outfile"; then
8403 # The compiler can only warn and ignore the option if not recognized
8404 # So say no if there are warnings other than the usual output.
8405 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8406 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8407 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8408 lt_cv_prog_compiler_rtti_exceptions=yes
8409 fi
8410 fi
8411 $RM conftest*
8412
8413 fi
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8415 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8416
8417 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8418 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8419 else
8420 :
8421 fi
8422
8423 fi
8424
8425
8426
8427
8428
8429
8430 lt_prog_compiler_wl=
8431 lt_prog_compiler_pic=
8432 lt_prog_compiler_static=
8433
8434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8435 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8436
8437 if test "$GCC" = yes; then
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_static='-static'
8440
8441 case $host_os in
8442 aix*)
8443 # All AIX code is PIC.
8444 if test "$host_cpu" = ia64; then
8445 # AIX 5 now supports IA64 processor
8446 lt_prog_compiler_static='-Bstatic'
8447 fi
8448 lt_prog_compiler_pic='-fPIC'
8449 ;;
8450
8451 amigaos*)
8452 case $host_cpu in
8453 powerpc)
8454 # see comment about AmigaOS4 .so support
8455 lt_prog_compiler_pic='-fPIC'
8456 ;;
8457 m68k)
8458 # FIXME: we need at least 68020 code to build shared libraries, but
8459 # adding the `-m68020' flag to GCC prevents building anything better,
8460 # like `-m68040'.
8461 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8462 ;;
8463 esac
8464 ;;
8465
8466 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8467 # PIC is the default for these OSes.
8468 ;;
8469
8470 mingw* | cygwin* | pw32* | os2* | cegcc*)
8471 # This hack is so that the source file can tell whether it is being
8472 # built for inclusion in a dll (and should export symbols for example).
8473 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8474 # (--disable-auto-import) libraries
8475 lt_prog_compiler_pic='-DDLL_EXPORT'
8476 ;;
8477
8478 darwin* | rhapsody*)
8479 # PIC is the default on this platform
8480 # Common symbols not allowed in MH_DYLIB files
8481 lt_prog_compiler_pic='-fno-common'
8482 ;;
8483
8484 haiku*)
8485 # PIC is the default for Haiku.
8486 # The "-static" flag exists, but is broken.
8487 lt_prog_compiler_static=
8488 ;;
8489
8490 hpux*)
8491 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8492 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8493 # sets the default TLS model and affects inlining.
8494 case $host_cpu in
8495 hppa*64*)
8496 # +Z the default
8497 ;;
8498 *)
8499 lt_prog_compiler_pic='-fPIC'
8500 ;;
8501 esac
8502 ;;
8503
8504 interix[3-9]*)
8505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8506 # Instead, we relocate shared libraries at runtime.
8507 ;;
8508
8509 msdosdjgpp*)
8510 # Just because we use GCC doesn't mean we suddenly get shared libraries
8511 # on systems that don't support them.
8512 lt_prog_compiler_can_build_shared=no
8513 enable_shared=no
8514 ;;
8515
8516 *nto* | *qnx*)
8517 # QNX uses GNU C++, but need to define -shared option too, otherwise
8518 # it will coredump.
8519 lt_prog_compiler_pic='-fPIC -shared'
8520 ;;
8521
8522 sysv4*MP*)
8523 if test -d /usr/nec; then
8524 lt_prog_compiler_pic=-Kconform_pic
8525 fi
8526 ;;
8527
8528 *)
8529 lt_prog_compiler_pic='-fPIC'
8530 ;;
8531 esac
8532
8533 case $cc_basename in
8534 nvcc*) # Cuda Compiler Driver 2.2
8535 lt_prog_compiler_wl='-Xlinker '
8536 lt_prog_compiler_pic='-Xcompiler -fPIC'
8537 ;;
8538 esac
8539 else
8540 # PORTME Check for flag to pass linker flags through the system compiler.
8541 case $host_os in
8542 aix*)
8543 lt_prog_compiler_wl='-Wl,'
8544 if test "$host_cpu" = ia64; then
8545 # AIX 5 now supports IA64 processor
8546 lt_prog_compiler_static='-Bstatic'
8547 else
8548 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8549 fi
8550 ;;
8551
8552 mingw* | cygwin* | pw32* | os2* | cegcc*)
8553 # This hack is so that the source file can tell whether it is being
8554 # built for inclusion in a dll (and should export symbols for example).
8555 lt_prog_compiler_pic='-DDLL_EXPORT'
8556 ;;
8557
8558 hpux9* | hpux10* | hpux11*)
8559 lt_prog_compiler_wl='-Wl,'
8560 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8561 # not for PA HP-UX.
8562 case $host_cpu in
8563 hppa*64*|ia64*)
8564 # +Z the default
8565 ;;
8566 *)
8567 lt_prog_compiler_pic='+Z'
8568 ;;
8569 esac
8570 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8571 lt_prog_compiler_static='${wl}-a ${wl}archive'
8572 ;;
8573
8574 irix5* | irix6* | nonstopux*)
8575 lt_prog_compiler_wl='-Wl,'
8576 # PIC (with -KPIC) is the default.
8577 lt_prog_compiler_static='-non_shared'
8578 ;;
8579
8580 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8581 case $cc_basename in
8582 # old Intel for x86_64 which still supported -KPIC.
8583 ecc*)
8584 lt_prog_compiler_wl='-Wl,'
8585 lt_prog_compiler_pic='-KPIC'
8586 lt_prog_compiler_static='-static'
8587 ;;
8588 # icc used to be incompatible with GCC.
8589 # ICC 10 doesn't accept -KPIC any more.
8590 icc* | ifort*)
8591 lt_prog_compiler_wl='-Wl,'
8592 lt_prog_compiler_pic='-fPIC'
8593 lt_prog_compiler_static='-static'
8594 ;;
8595 # Lahey Fortran 8.1.
8596 lf95*)
8597 lt_prog_compiler_wl='-Wl,'
8598 lt_prog_compiler_pic='--shared'
8599 lt_prog_compiler_static='--static'
8600 ;;
8601 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8602 # Portland Group compilers (*not* the Pentium gcc compiler,
8603 # which looks to be a dead project)
8604 lt_prog_compiler_wl='-Wl,'
8605 lt_prog_compiler_pic='-fpic'
8606 lt_prog_compiler_static='-Bstatic'
8607 ;;
8608 ccc*)
8609 lt_prog_compiler_wl='-Wl,'
8610 # All Alpha code is PIC.
8611 lt_prog_compiler_static='-non_shared'
8612 ;;
8613 xl* | bgxl* | bgf* | mpixl*)
8614 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8615 lt_prog_compiler_wl='-Wl,'
8616 lt_prog_compiler_pic='-qpic'
8617 lt_prog_compiler_static='-qstaticlink'
8618 ;;
8619 *)
8620 case `$CC -V 2>&1 | sed 5q` in
8621 *Sun\ F* | *Sun*Fortran*)
8622 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8623 lt_prog_compiler_pic='-KPIC'
8624 lt_prog_compiler_static='-Bstatic'
8625 lt_prog_compiler_wl=''
8626 ;;
8627 *Sun\ C*)
8628 # Sun C 5.9
8629 lt_prog_compiler_pic='-KPIC'
8630 lt_prog_compiler_static='-Bstatic'
8631 lt_prog_compiler_wl='-Wl,'
8632 ;;
8633 esac
8634 ;;
8635 esac
8636 ;;
8637
8638 newsos6)
8639 lt_prog_compiler_pic='-KPIC'
8640 lt_prog_compiler_static='-Bstatic'
8641 ;;
8642
8643 *nto* | *qnx*)
8644 # QNX uses GNU C++, but need to define -shared option too, otherwise
8645 # it will coredump.
8646 lt_prog_compiler_pic='-fPIC -shared'
8647 ;;
8648
8649 osf3* | osf4* | osf5*)
8650 lt_prog_compiler_wl='-Wl,'
8651 # All OSF/1 code is PIC.
8652 lt_prog_compiler_static='-non_shared'
8653 ;;
8654
8655 rdos*)
8656 lt_prog_compiler_static='-non_shared'
8657 ;;
8658
8659 solaris*)
8660 lt_prog_compiler_pic='-KPIC'
8661 lt_prog_compiler_static='-Bstatic'
8662 case $cc_basename in
8663 f77* | f90* | f95*)
8664 lt_prog_compiler_wl='-Qoption ld ';;
8665 *)
8666 lt_prog_compiler_wl='-Wl,';;
8667 esac
8668 ;;
8669
8670 sunos4*)
8671 lt_prog_compiler_wl='-Qoption ld '
8672 lt_prog_compiler_pic='-PIC'
8673 lt_prog_compiler_static='-Bstatic'
8674 ;;
8675
8676 sysv4 | sysv4.2uw2* | sysv4.3*)
8677 lt_prog_compiler_wl='-Wl,'
8678 lt_prog_compiler_pic='-KPIC'
8679 lt_prog_compiler_static='-Bstatic'
8680 ;;
8681
8682 sysv4*MP*)
8683 if test -d /usr/nec ;then
8684 lt_prog_compiler_pic='-Kconform_pic'
8685 lt_prog_compiler_static='-Bstatic'
8686 fi
8687 ;;
8688
8689 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8690 lt_prog_compiler_wl='-Wl,'
8691 lt_prog_compiler_pic='-KPIC'
8692 lt_prog_compiler_static='-Bstatic'
8693 ;;
8694
8695 unicos*)
8696 lt_prog_compiler_wl='-Wl,'
8697 lt_prog_compiler_can_build_shared=no
8698 ;;
8699
8700 uts4*)
8701 lt_prog_compiler_pic='-pic'
8702 lt_prog_compiler_static='-Bstatic'
8703 ;;
8704
8705 *)
8706 lt_prog_compiler_can_build_shared=no
8707 ;;
8708 esac
8709 fi
8710
8711 case $host_os in
8712 # For platforms which do not support PIC, -DPIC is meaningless:
8713 *djgpp*)
8714 lt_prog_compiler_pic=
8715 ;;
8716 *)
8717 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8718 ;;
8719 esac
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8721 $as_echo "$lt_prog_compiler_pic" >&6; }
8722
8723
8724
8725
8726
8727
8728 #
8729 # Check to make sure the PIC flag actually works.
8730 #
8731 if test -n "$lt_prog_compiler_pic"; then
8732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8733 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8734 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8735 $as_echo_n "(cached) " >&6
8736 else
8737 lt_cv_prog_compiler_pic_works=no
8738 ac_outfile=conftest.$ac_objext
8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8740 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8741 # Insert the option either (1) after the last *FLAGS variable, or
8742 # (2) before a word containing "conftest.", or (3) at the end.
8743 # Note that $ac_compile itself does not contain backslashes and begins
8744 # with a dollar sign (not a hyphen), so the echo should work correctly.
8745 # The option is referenced via a variable to avoid confusing sed.
8746 lt_compile=`echo "$ac_compile" | $SED \
8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8749 -e 's:$: $lt_compiler_flag:'`
8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8751 (eval "$lt_compile" 2>conftest.err)
8752 ac_status=$?
8753 cat conftest.err >&5
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 if (exit $ac_status) && test -s "$ac_outfile"; then
8756 # The compiler can only warn and ignore the option if not recognized
8757 # So say no if there are warnings other than the usual output.
8758 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8759 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8760 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8761 lt_cv_prog_compiler_pic_works=yes
8762 fi
8763 fi
8764 $RM conftest*
8765
8766 fi
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8768 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8769
8770 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8771 case $lt_prog_compiler_pic in
8772 "" | " "*) ;;
8773 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8774 esac
8775 else
8776 lt_prog_compiler_pic=
8777 lt_prog_compiler_can_build_shared=no
8778 fi
8779
8780 fi
8781
8782
8783
8784
8785
8786
8787 #
8788 # Check to make sure the static flag actually works.
8789 #
8790 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8792 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8793 if ${lt_cv_prog_compiler_static_works+:} false; then :
8794 $as_echo_n "(cached) " >&6
8795 else
8796 lt_cv_prog_compiler_static_works=no
8797 save_LDFLAGS="$LDFLAGS"
8798 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8799 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8800 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8801 # The linker can only warn and ignore the option if not recognized
8802 # So say no if there are warnings
8803 if test -s conftest.err; then
8804 # Append any errors to the config.log.
8805 cat conftest.err 1>&5
8806 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8807 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808 if diff conftest.exp conftest.er2 >/dev/null; then
8809 lt_cv_prog_compiler_static_works=yes
8810 fi
8811 else
8812 lt_cv_prog_compiler_static_works=yes
8813 fi
8814 fi
8815 $RM -r conftest*
8816 LDFLAGS="$save_LDFLAGS"
8817
8818 fi
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8820 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8821
8822 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8823 :
8824 else
8825 lt_prog_compiler_static=
8826 fi
8827
8828
8829
8830
8831
8832
8833
8834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8835 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8836 if ${lt_cv_prog_compiler_c_o+:} false; then :
8837 $as_echo_n "(cached) " >&6
8838 else
8839 lt_cv_prog_compiler_c_o=no
8840 $RM -r conftest 2>/dev/null
8841 mkdir conftest
8842 cd conftest
8843 mkdir out
8844 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8845
8846 lt_compiler_flag="-o out/conftest2.$ac_objext"
8847 # Insert the option either (1) after the last *FLAGS variable, or
8848 # (2) before a word containing "conftest.", or (3) at the end.
8849 # Note that $ac_compile itself does not contain backslashes and begins
8850 # with a dollar sign (not a hyphen), so the echo should work correctly.
8851 lt_compile=`echo "$ac_compile" | $SED \
8852 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8853 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8854 -e 's:$: $lt_compiler_flag:'`
8855 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8856 (eval "$lt_compile" 2>out/conftest.err)
8857 ac_status=$?
8858 cat out/conftest.err >&5
8859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8860 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8861 then
8862 # The compiler can only warn and ignore the option if not recognized
8863 # So say no if there are warnings
8864 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8865 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8866 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8867 lt_cv_prog_compiler_c_o=yes
8868 fi
8869 fi
8870 chmod u+w . 2>&5
8871 $RM conftest*
8872 # SGI C++ compiler will create directory out/ii_files/ for
8873 # template instantiation
8874 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8875 $RM out/* && rmdir out
8876 cd ..
8877 $RM -r conftest
8878 $RM conftest*
8879
8880 fi
8881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8882 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8883
8884
8885
8886
8887
8888
8889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8890 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8891 if ${lt_cv_prog_compiler_c_o+:} false; then :
8892 $as_echo_n "(cached) " >&6
8893 else
8894 lt_cv_prog_compiler_c_o=no
8895 $RM -r conftest 2>/dev/null
8896 mkdir conftest
8897 cd conftest
8898 mkdir out
8899 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8900
8901 lt_compiler_flag="-o out/conftest2.$ac_objext"
8902 # Insert the option either (1) after the last *FLAGS variable, or
8903 # (2) before a word containing "conftest.", or (3) at the end.
8904 # Note that $ac_compile itself does not contain backslashes and begins
8905 # with a dollar sign (not a hyphen), so the echo should work correctly.
8906 lt_compile=`echo "$ac_compile" | $SED \
8907 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8908 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8909 -e 's:$: $lt_compiler_flag:'`
8910 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8911 (eval "$lt_compile" 2>out/conftest.err)
8912 ac_status=$?
8913 cat out/conftest.err >&5
8914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8915 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8916 then
8917 # The compiler can only warn and ignore the option if not recognized
8918 # So say no if there are warnings
8919 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8920 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8921 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8922 lt_cv_prog_compiler_c_o=yes
8923 fi
8924 fi
8925 chmod u+w . 2>&5
8926 $RM conftest*
8927 # SGI C++ compiler will create directory out/ii_files/ for
8928 # template instantiation
8929 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8930 $RM out/* && rmdir out
8931 cd ..
8932 $RM -r conftest
8933 $RM conftest*
8934
8935 fi
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8937 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8938
8939
8940
8941
8942 hard_links="nottested"
8943 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8944 # do not overwrite the value of need_locks provided by the user
8945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8946 $as_echo_n "checking if we can lock with hard links... " >&6; }
8947 hard_links=yes
8948 $RM conftest*
8949 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8950 touch conftest.a
8951 ln conftest.a conftest.b 2>&5 || hard_links=no
8952 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8954 $as_echo "$hard_links" >&6; }
8955 if test "$hard_links" = no; then
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8957 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8958 need_locks=warn
8959 fi
8960 else
8961 need_locks=no
8962 fi
8963
8964
8965
8966
8967
8968
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8970 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8971
8972 runpath_var=
8973 allow_undefined_flag=
8974 always_export_symbols=no
8975 archive_cmds=
8976 archive_expsym_cmds=
8977 compiler_needs_object=no
8978 enable_shared_with_static_runtimes=no
8979 export_dynamic_flag_spec=
8980 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8981 hardcode_automatic=no
8982 hardcode_direct=no
8983 hardcode_direct_absolute=no
8984 hardcode_libdir_flag_spec=
8985 hardcode_libdir_flag_spec_ld=
8986 hardcode_libdir_separator=
8987 hardcode_minus_L=no
8988 hardcode_shlibpath_var=unsupported
8989 inherit_rpath=no
8990 link_all_deplibs=unknown
8991 module_cmds=
8992 module_expsym_cmds=
8993 old_archive_from_new_cmds=
8994 old_archive_from_expsyms_cmds=
8995 thread_safe_flag_spec=
8996 whole_archive_flag_spec=
8997 # include_expsyms should be a list of space-separated symbols to be *always*
8998 # included in the symbol list
8999 include_expsyms=
9000 # exclude_expsyms can be an extended regexp of symbols to exclude
9001 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9002 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9003 # as well as any symbol that contains `d'.
9004 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9005 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9006 # platforms (ab)use it in PIC code, but their linkers get confused if
9007 # the symbol is explicitly referenced. Since portable code cannot
9008 # rely on this symbol name, it's probably fine to never include it in
9009 # preloaded symbol tables.
9010 # Exclude shared library initialization/finalization symbols.
9011 extract_expsyms_cmds=
9012
9013 case $host_os in
9014 cygwin* | mingw* | pw32* | cegcc*)
9015 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9016 # When not using gcc, we currently assume that we are using
9017 # Microsoft Visual C++.
9018 if test "$GCC" != yes; then
9019 with_gnu_ld=no
9020 fi
9021 ;;
9022 interix*)
9023 # we just hope/assume this is gcc and not c89 (= MSVC++)
9024 with_gnu_ld=yes
9025 ;;
9026 openbsd*)
9027 with_gnu_ld=no
9028 ;;
9029 esac
9030
9031 ld_shlibs=yes
9032
9033 # On some targets, GNU ld is compatible enough with the native linker
9034 # that we're better off using the native interface for both.
9035 lt_use_gnu_ld_interface=no
9036 if test "$with_gnu_ld" = yes; then
9037 case $host_os in
9038 aix*)
9039 # The AIX port of GNU ld has always aspired to compatibility
9040 # with the native linker. However, as the warning in the GNU ld
9041 # block says, versions before 2.19.5* couldn't really create working
9042 # shared libraries, regardless of the interface used.
9043 case `$LD -v 2>&1` in
9044 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9045 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9046 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9047 *)
9048 lt_use_gnu_ld_interface=yes
9049 ;;
9050 esac
9051 ;;
9052 *)
9053 lt_use_gnu_ld_interface=yes
9054 ;;
9055 esac
9056 fi
9057
9058 if test "$lt_use_gnu_ld_interface" = yes; then
9059 # If archive_cmds runs LD, not CC, wlarc should be empty
9060 wlarc='${wl}'
9061
9062 # Set some defaults for GNU ld with shared library support. These
9063 # are reset later if shared libraries are not supported. Putting them
9064 # here allows them to be overridden if necessary.
9065 runpath_var=LD_RUN_PATH
9066 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9067 export_dynamic_flag_spec='${wl}--export-dynamic'
9068 # ancient GNU ld didn't support --whole-archive et. al.
9069 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9070 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9071 else
9072 whole_archive_flag_spec=
9073 fi
9074 supports_anon_versioning=no
9075 case `$LD -v 2>&1` in
9076 *GNU\ gold*) supports_anon_versioning=yes ;;
9077 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9078 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9079 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9080 *\ 2.11.*) ;; # other 2.11 versions
9081 *) supports_anon_versioning=yes ;;
9082 esac
9083
9084 # See if GNU ld supports shared libraries.
9085 case $host_os in
9086 aix[3-9]*)
9087 # On AIX/PPC, the GNU linker is very broken
9088 if test "$host_cpu" != ia64; then
9089 ld_shlibs=no
9090 cat <<_LT_EOF 1>&2
9091
9092 *** Warning: the GNU linker, at least up to release 2.19, is reported
9093 *** to be unable to reliably create shared libraries on AIX.
9094 *** Therefore, libtool is disabling shared libraries support. If you
9095 *** really care for shared libraries, you may want to install binutils
9096 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9097 *** You will then need to restart the configuration process.
9098
9099 _LT_EOF
9100 fi
9101 ;;
9102
9103 amigaos*)
9104 case $host_cpu in
9105 powerpc)
9106 # see comment about AmigaOS4 .so support
9107 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9108 archive_expsym_cmds=''
9109 ;;
9110 m68k)
9111 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)'
9112 hardcode_libdir_flag_spec='-L$libdir'
9113 hardcode_minus_L=yes
9114 ;;
9115 esac
9116 ;;
9117
9118 beos*)
9119 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9120 allow_undefined_flag=unsupported
9121 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9122 # support --undefined. This deserves some investigation. FIXME
9123 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9124 else
9125 ld_shlibs=no
9126 fi
9127 ;;
9128
9129 cygwin* | mingw* | pw32* | cegcc*)
9130 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9131 # as there is no search path for DLLs.
9132 hardcode_libdir_flag_spec='-L$libdir'
9133 export_dynamic_flag_spec='${wl}--export-all-symbols'
9134 allow_undefined_flag=unsupported
9135 always_export_symbols=no
9136 enable_shared_with_static_runtimes=yes
9137 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9138
9139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9140 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9141 # If the export-symbols file already is a .def file (1st line
9142 # is EXPORTS), use it as is; otherwise, prepend...
9143 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9144 cp $export_symbols $output_objdir/$soname.def;
9145 else
9146 echo EXPORTS > $output_objdir/$soname.def;
9147 cat $export_symbols >> $output_objdir/$soname.def;
9148 fi~
9149 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9150 else
9151 ld_shlibs=no
9152 fi
9153 ;;
9154
9155 haiku*)
9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9157 link_all_deplibs=yes
9158 ;;
9159
9160 interix[3-9]*)
9161 hardcode_direct=no
9162 hardcode_shlibpath_var=no
9163 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9164 export_dynamic_flag_spec='${wl}-E'
9165 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9166 # Instead, shared libraries are loaded at an image base (0x10000000 by
9167 # default) and relocated if they conflict, which is a slow very memory
9168 # consuming and fragmenting process. To avoid this, we pick a random,
9169 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9170 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9171 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9172 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'
9173 ;;
9174
9175 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9176 tmp_diet=no
9177 if test "$host_os" = linux-dietlibc; then
9178 case $cc_basename in
9179 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9180 esac
9181 fi
9182 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9183 && test "$tmp_diet" = no
9184 then
9185 tmp_addflag=' $pic_flag'
9186 tmp_sharedflag='-shared'
9187 case $cc_basename,$host_cpu in
9188 pgcc*) # Portland Group C compiler
9189 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'
9190 tmp_addflag=' $pic_flag'
9191 ;;
9192 pgf77* | pgf90* | pgf95* | pgfortran*)
9193 # Portland Group f77 and f90 compilers
9194 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'
9195 tmp_addflag=' $pic_flag -Mnomain' ;;
9196 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9197 tmp_addflag=' -i_dynamic' ;;
9198 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9199 tmp_addflag=' -i_dynamic -nofor_main' ;;
9200 ifc* | ifort*) # Intel Fortran compiler
9201 tmp_addflag=' -nofor_main' ;;
9202 lf95*) # Lahey Fortran 8.1
9203 whole_archive_flag_spec=
9204 tmp_sharedflag='--shared' ;;
9205 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9206 tmp_sharedflag='-qmkshrobj'
9207 tmp_addflag= ;;
9208 nvcc*) # Cuda Compiler Driver 2.2
9209 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'
9210 compiler_needs_object=yes
9211 ;;
9212 esac
9213 case `$CC -V 2>&1 | sed 5q` in
9214 *Sun\ C*) # Sun C 5.9
9215 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'
9216 compiler_needs_object=yes
9217 tmp_sharedflag='-G' ;;
9218 *Sun\ F*) # Sun Fortran 8.3
9219 tmp_sharedflag='-G' ;;
9220 esac
9221 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9222
9223 if test "x$supports_anon_versioning" = xyes; then
9224 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9225 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9226 echo "local: *; };" >> $output_objdir/$libname.ver~
9227 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9228 fi
9229
9230 case $cc_basename in
9231 xlf* | bgf* | bgxlf* | mpixlf*)
9232 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9233 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9234 hardcode_libdir_flag_spec=
9235 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9236 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9237 if test "x$supports_anon_versioning" = xyes; then
9238 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9239 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9240 echo "local: *; };" >> $output_objdir/$libname.ver~
9241 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9242 fi
9243 ;;
9244 esac
9245 else
9246 ld_shlibs=no
9247 fi
9248 ;;
9249
9250 netbsd*)
9251 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9252 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9253 wlarc=
9254 else
9255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9257 fi
9258 ;;
9259
9260 solaris*)
9261 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9262 ld_shlibs=no
9263 cat <<_LT_EOF 1>&2
9264
9265 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9266 *** create shared libraries on Solaris systems. Therefore, libtool
9267 *** is disabling shared libraries support. We urge you to upgrade GNU
9268 *** binutils to release 2.9.1 or newer. Another option is to modify
9269 *** your PATH or compiler configuration so that the native linker is
9270 *** used, and then restart.
9271
9272 _LT_EOF
9273 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9274 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9275 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9276 else
9277 ld_shlibs=no
9278 fi
9279 ;;
9280
9281 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9282 case `$LD -v 2>&1` in
9283 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9284 ld_shlibs=no
9285 cat <<_LT_EOF 1>&2
9286
9287 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9288 *** reliably create shared libraries on SCO systems. Therefore, libtool
9289 *** is disabling shared libraries support. We urge you to upgrade GNU
9290 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9291 *** your PATH or compiler configuration so that the native linker is
9292 *** used, and then restart.
9293
9294 _LT_EOF
9295 ;;
9296 *)
9297 # For security reasons, it is highly recommended that you always
9298 # use absolute paths for naming shared libraries, and exclude the
9299 # DT_RUNPATH tag from executables and libraries. But doing so
9300 # requires that you compile everything twice, which is a pain.
9301 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9302 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9303 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9304 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9305 else
9306 ld_shlibs=no
9307 fi
9308 ;;
9309 esac
9310 ;;
9311
9312 sunos4*)
9313 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9314 wlarc=
9315 hardcode_direct=yes
9316 hardcode_shlibpath_var=no
9317 ;;
9318
9319 *)
9320 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9323 else
9324 ld_shlibs=no
9325 fi
9326 ;;
9327 esac
9328
9329 if test "$ld_shlibs" = no; then
9330 runpath_var=
9331 hardcode_libdir_flag_spec=
9332 export_dynamic_flag_spec=
9333 whole_archive_flag_spec=
9334 fi
9335 else
9336 # PORTME fill in a description of your system's linker (not GNU ld)
9337 case $host_os in
9338 aix3*)
9339 allow_undefined_flag=unsupported
9340 always_export_symbols=yes
9341 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'
9342 # Note: this linker hardcodes the directories in LIBPATH if there
9343 # are no directories specified by -L.
9344 hardcode_minus_L=yes
9345 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9346 # Neither direct hardcoding nor static linking is supported with a
9347 # broken collect2.
9348 hardcode_direct=unsupported
9349 fi
9350 ;;
9351
9352 aix[4-9]*)
9353 if test "$host_cpu" = ia64; then
9354 # On IA64, the linker does run time linking by default, so we don't
9355 # have to do anything special.
9356 aix_use_runtimelinking=no
9357 exp_sym_flag='-Bexport'
9358 no_entry_flag=""
9359 else
9360 # If we're using GNU nm, then we don't want the "-C" option.
9361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9362 # Also, AIX nm treats weak defined symbols like other global
9363 # defined symbols, whereas GNU nm marks them as "W".
9364 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9365 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'
9366 else
9367 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'
9368 fi
9369 aix_use_runtimelinking=no
9370
9371 # Test if we are trying to use run time linking or normal
9372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9373 # need to do runtime linking.
9374 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9375 for ld_flag in $LDFLAGS; do
9376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9377 aix_use_runtimelinking=yes
9378 break
9379 fi
9380 done
9381 ;;
9382 esac
9383
9384 exp_sym_flag='-bexport'
9385 no_entry_flag='-bnoentry'
9386 fi
9387
9388 # When large executables or shared objects are built, AIX ld can
9389 # have problems creating the table of contents. If linking a library
9390 # or program results in "error TOC overflow" add -mminimal-toc to
9391 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9392 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9393
9394 archive_cmds=''
9395 hardcode_direct=yes
9396 hardcode_direct_absolute=yes
9397 hardcode_libdir_separator=':'
9398 link_all_deplibs=yes
9399 file_list_spec='${wl}-f,'
9400
9401 if test "$GCC" = yes; then
9402 case $host_os in aix4.[012]|aix4.[012].*)
9403 # We only want to do this on AIX 4.2 and lower, the check
9404 # below for broken collect2 doesn't work under 4.3+
9405 collect2name=`${CC} -print-prog-name=collect2`
9406 if test -f "$collect2name" &&
9407 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9408 then
9409 # We have reworked collect2
9410 :
9411 else
9412 # We have old collect2
9413 hardcode_direct=unsupported
9414 # It fails to find uninstalled libraries when the uninstalled
9415 # path is not listed in the libpath. Setting hardcode_minus_L
9416 # to unsupported forces relinking
9417 hardcode_minus_L=yes
9418 hardcode_libdir_flag_spec='-L$libdir'
9419 hardcode_libdir_separator=
9420 fi
9421 ;;
9422 esac
9423 shared_flag='-shared'
9424 if test "$aix_use_runtimelinking" = yes; then
9425 shared_flag="$shared_flag "'${wl}-G'
9426 fi
9427 else
9428 # not using gcc
9429 if test "$host_cpu" = ia64; then
9430 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9431 # chokes on -Wl,-G. The following line is correct:
9432 shared_flag='-G'
9433 else
9434 if test "$aix_use_runtimelinking" = yes; then
9435 shared_flag='${wl}-G'
9436 else
9437 shared_flag='${wl}-bM:SRE'
9438 fi
9439 fi
9440 fi
9441
9442 export_dynamic_flag_spec='${wl}-bexpall'
9443 # It seems that -bexpall does not export symbols beginning with
9444 # underscore (_), so it is better to generate a list of symbols to export.
9445 always_export_symbols=yes
9446 if test "$aix_use_runtimelinking" = yes; then
9447 # Warning - without using the other runtime loading flags (-brtl),
9448 # -berok will link without error, but may produce a broken library.
9449 allow_undefined_flag='-berok'
9450 # Determine the default libpath from the value encoded in an
9451 # empty executable.
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9454
9455 int
9456 main ()
9457 {
9458
9459 ;
9460 return 0;
9461 }
9462 _ACEOF
9463 if ac_fn_c_try_link "$LINENO"; then :
9464
9465 lt_aix_libpath_sed='
9466 /Import File Strings/,/^$/ {
9467 /^0/ {
9468 s/^0 *\(.*\)$/\1/
9469 p
9470 }
9471 }'
9472 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9473 # Check for a 64-bit object if we didn't find anything.
9474 if test -z "$aix_libpath"; then
9475 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9476 fi
9477 fi
9478 rm -f core conftest.err conftest.$ac_objext \
9479 conftest$ac_exeext conftest.$ac_ext
9480 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9481
9482 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9483 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"
9484 else
9485 if test "$host_cpu" = ia64; then
9486 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9487 allow_undefined_flag="-z nodefs"
9488 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"
9489 else
9490 # Determine the default libpath from the value encoded in an
9491 # empty executable.
9492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9493 /* end confdefs.h. */
9494
9495 int
9496 main ()
9497 {
9498
9499 ;
9500 return 0;
9501 }
9502 _ACEOF
9503 if ac_fn_c_try_link "$LINENO"; then :
9504
9505 lt_aix_libpath_sed='
9506 /Import File Strings/,/^$/ {
9507 /^0/ {
9508 s/^0 *\(.*\)$/\1/
9509 p
9510 }
9511 }'
9512 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9513 # Check for a 64-bit object if we didn't find anything.
9514 if test -z "$aix_libpath"; then
9515 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9516 fi
9517 fi
9518 rm -f core conftest.err conftest.$ac_objext \
9519 conftest$ac_exeext conftest.$ac_ext
9520 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9521
9522 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9523 # Warning - without using the other run time loading flags,
9524 # -berok will link without error, but may produce a broken library.
9525 no_undefined_flag=' ${wl}-bernotok'
9526 allow_undefined_flag=' ${wl}-berok'
9527 if test "$with_gnu_ld" = yes; then
9528 # We only use this code for GNU lds that support --whole-archive.
9529 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9530 else
9531 # Exported symbols can be pulled into shared objects from archives
9532 whole_archive_flag_spec='$convenience'
9533 fi
9534 archive_cmds_need_lc=yes
9535 # This is similar to how AIX traditionally builds its shared libraries.
9536 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'
9537 fi
9538 fi
9539 ;;
9540
9541 amigaos*)
9542 case $host_cpu in
9543 powerpc)
9544 # see comment about AmigaOS4 .so support
9545 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9546 archive_expsym_cmds=''
9547 ;;
9548 m68k)
9549 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)'
9550 hardcode_libdir_flag_spec='-L$libdir'
9551 hardcode_minus_L=yes
9552 ;;
9553 esac
9554 ;;
9555
9556 bsdi[45]*)
9557 export_dynamic_flag_spec=-rdynamic
9558 ;;
9559
9560 cygwin* | mingw* | pw32* | cegcc*)
9561 # When not using gcc, we currently assume that we are using
9562 # Microsoft Visual C++.
9563 # hardcode_libdir_flag_spec is actually meaningless, as there is
9564 # no search path for DLLs.
9565 hardcode_libdir_flag_spec=' '
9566 allow_undefined_flag=unsupported
9567 # Tell ltmain to make .lib files, not .a files.
9568 libext=lib
9569 # Tell ltmain to make .dll files, not .so files.
9570 shrext_cmds=".dll"
9571 # FIXME: Setting linknames here is a bad hack.
9572 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9573 # The linker will automatically build a .lib file if we build a DLL.
9574 old_archive_from_new_cmds='true'
9575 # FIXME: Should let the user specify the lib program.
9576 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9577 fix_srcfile_path='`cygpath -w "$srcfile"`'
9578 enable_shared_with_static_runtimes=yes
9579 ;;
9580
9581 darwin* | rhapsody*)
9582
9583
9584 archive_cmds_need_lc=no
9585 hardcode_direct=no
9586 hardcode_automatic=yes
9587 hardcode_shlibpath_var=unsupported
9588 if test "$lt_cv_ld_force_load" = "yes"; then
9589 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\"`'
9590 else
9591 whole_archive_flag_spec=''
9592 fi
9593 link_all_deplibs=yes
9594 allow_undefined_flag="$_lt_dar_allow_undefined"
9595 case $cc_basename in
9596 ifort*) _lt_dar_can_shared=yes ;;
9597 *) _lt_dar_can_shared=$GCC ;;
9598 esac
9599 if test "$_lt_dar_can_shared" = "yes"; then
9600 output_verbose_link_cmd=func_echo_all
9601 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9602 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9603 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}"
9604 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}"
9605
9606 else
9607 ld_shlibs=no
9608 fi
9609
9610 ;;
9611
9612 dgux*)
9613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9614 hardcode_libdir_flag_spec='-L$libdir'
9615 hardcode_shlibpath_var=no
9616 ;;
9617
9618 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9619 # support. Future versions do this automatically, but an explicit c++rt0.o
9620 # does not break anything, and helps significantly (at the cost of a little
9621 # extra space).
9622 freebsd2.2*)
9623 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9624 hardcode_libdir_flag_spec='-R$libdir'
9625 hardcode_direct=yes
9626 hardcode_shlibpath_var=no
9627 ;;
9628
9629 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9630 freebsd2.*)
9631 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9632 hardcode_direct=yes
9633 hardcode_minus_L=yes
9634 hardcode_shlibpath_var=no
9635 ;;
9636
9637 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9638 freebsd* | dragonfly*)
9639 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9640 hardcode_libdir_flag_spec='-R$libdir'
9641 hardcode_direct=yes
9642 hardcode_shlibpath_var=no
9643 ;;
9644
9645 hpux9*)
9646 if test "$GCC" = yes; then
9647 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'
9648 else
9649 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'
9650 fi
9651 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9652 hardcode_libdir_separator=:
9653 hardcode_direct=yes
9654
9655 # hardcode_minus_L: Not really in the search PATH,
9656 # but as the default location of the library.
9657 hardcode_minus_L=yes
9658 export_dynamic_flag_spec='${wl}-E'
9659 ;;
9660
9661 hpux10*)
9662 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9663 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9664 else
9665 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9666 fi
9667 if test "$with_gnu_ld" = no; then
9668 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9669 hardcode_libdir_flag_spec_ld='+b $libdir'
9670 hardcode_libdir_separator=:
9671 hardcode_direct=yes
9672 hardcode_direct_absolute=yes
9673 export_dynamic_flag_spec='${wl}-E'
9674 # hardcode_minus_L: Not really in the search PATH,
9675 # but as the default location of the library.
9676 hardcode_minus_L=yes
9677 fi
9678 ;;
9679
9680 hpux11*)
9681 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9682 case $host_cpu in
9683 hppa*64*)
9684 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9685 ;;
9686 ia64*)
9687 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9688 ;;
9689 *)
9690 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9691 ;;
9692 esac
9693 else
9694 case $host_cpu in
9695 hppa*64*)
9696 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 ia64*)
9699 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 *)
9702
9703 # Older versions of the 11.00 compiler do not understand -b yet
9704 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9706 $as_echo_n "checking if $CC understands -b... " >&6; }
9707 if ${lt_cv_prog_compiler__b+:} false; then :
9708 $as_echo_n "(cached) " >&6
9709 else
9710 lt_cv_prog_compiler__b=no
9711 save_LDFLAGS="$LDFLAGS"
9712 LDFLAGS="$LDFLAGS -b"
9713 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9714 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9715 # The linker can only warn and ignore the option if not recognized
9716 # So say no if there are warnings
9717 if test -s conftest.err; then
9718 # Append any errors to the config.log.
9719 cat conftest.err 1>&5
9720 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9721 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9722 if diff conftest.exp conftest.er2 >/dev/null; then
9723 lt_cv_prog_compiler__b=yes
9724 fi
9725 else
9726 lt_cv_prog_compiler__b=yes
9727 fi
9728 fi
9729 $RM -r conftest*
9730 LDFLAGS="$save_LDFLAGS"
9731
9732 fi
9733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9734 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9735
9736 if test x"$lt_cv_prog_compiler__b" = xyes; then
9737 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9738 else
9739 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9740 fi
9741
9742 ;;
9743 esac
9744 fi
9745 if test "$with_gnu_ld" = no; then
9746 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9747 hardcode_libdir_separator=:
9748
9749 case $host_cpu in
9750 hppa*64*|ia64*)
9751 hardcode_direct=no
9752 hardcode_shlibpath_var=no
9753 ;;
9754 *)
9755 hardcode_direct=yes
9756 hardcode_direct_absolute=yes
9757 export_dynamic_flag_spec='${wl}-E'
9758
9759 # hardcode_minus_L: Not really in the search PATH,
9760 # but as the default location of the library.
9761 hardcode_minus_L=yes
9762 ;;
9763 esac
9764 fi
9765 ;;
9766
9767 irix5* | irix6* | nonstopux*)
9768 if test "$GCC" = yes; then
9769 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'
9770 # Try to use the -exported_symbol ld option, if it does not
9771 # work, assume that -exports_file does not work either and
9772 # implicitly export all symbols.
9773 save_LDFLAGS="$LDFLAGS"
9774 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9776 /* end confdefs.h. */
9777 int foo(void) {}
9778 _ACEOF
9779 if ac_fn_c_try_link "$LINENO"; then :
9780 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'
9781
9782 fi
9783 rm -f core conftest.err conftest.$ac_objext \
9784 conftest$ac_exeext conftest.$ac_ext
9785 LDFLAGS="$save_LDFLAGS"
9786 else
9787 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'
9788 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'
9789 fi
9790 archive_cmds_need_lc='no'
9791 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 inherit_rpath=yes
9794 link_all_deplibs=yes
9795 ;;
9796
9797 netbsd*)
9798 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9800 else
9801 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9802 fi
9803 hardcode_libdir_flag_spec='-R$libdir'
9804 hardcode_direct=yes
9805 hardcode_shlibpath_var=no
9806 ;;
9807
9808 newsos6)
9809 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9810 hardcode_direct=yes
9811 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9812 hardcode_libdir_separator=:
9813 hardcode_shlibpath_var=no
9814 ;;
9815
9816 *nto* | *qnx*)
9817 ;;
9818
9819 openbsd*)
9820 if test -f /usr/libexec/ld.so; then
9821 hardcode_direct=yes
9822 hardcode_shlibpath_var=no
9823 hardcode_direct_absolute=yes
9824 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9825 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9826 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9827 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9828 export_dynamic_flag_spec='${wl}-E'
9829 else
9830 case $host_os in
9831 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9832 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9833 hardcode_libdir_flag_spec='-R$libdir'
9834 ;;
9835 *)
9836 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9837 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9838 ;;
9839 esac
9840 fi
9841 else
9842 ld_shlibs=no
9843 fi
9844 ;;
9845
9846 os2*)
9847 hardcode_libdir_flag_spec='-L$libdir'
9848 hardcode_minus_L=yes
9849 allow_undefined_flag=unsupported
9850 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'
9851 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9852 ;;
9853
9854 osf3*)
9855 if test "$GCC" = yes; then
9856 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9857 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'
9858 else
9859 allow_undefined_flag=' -expect_unresolved \*'
9860 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'
9861 fi
9862 archive_cmds_need_lc='no'
9863 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9864 hardcode_libdir_separator=:
9865 ;;
9866
9867 osf4* | osf5*) # as osf3* with the addition of -msym flag
9868 if test "$GCC" = yes; then
9869 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9870 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'
9871 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9872 else
9873 allow_undefined_flag=' -expect_unresolved \*'
9874 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'
9875 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~
9876 $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'
9877
9878 # Both c and cxx compiler support -rpath directly
9879 hardcode_libdir_flag_spec='-rpath $libdir'
9880 fi
9881 archive_cmds_need_lc='no'
9882 hardcode_libdir_separator=:
9883 ;;
9884
9885 solaris*)
9886 no_undefined_flag=' -z defs'
9887 if test "$GCC" = yes; then
9888 wlarc='${wl}'
9889 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9890 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9891 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9892 else
9893 case `$CC -V 2>&1` in
9894 *"Compilers 5.0"*)
9895 wlarc=''
9896 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9897 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9898 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9899 ;;
9900 *)
9901 wlarc='${wl}'
9902 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9903 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9904 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9905 ;;
9906 esac
9907 fi
9908 hardcode_libdir_flag_spec='-R$libdir'
9909 hardcode_shlibpath_var=no
9910 case $host_os in
9911 solaris2.[0-5] | solaris2.[0-5].*) ;;
9912 *)
9913 # The compiler driver will combine and reorder linker options,
9914 # but understands `-z linker_flag'. GCC discards it without `$wl',
9915 # but is careful enough not to reorder.
9916 # Supported since Solaris 2.6 (maybe 2.5.1?)
9917 if test "$GCC" = yes; then
9918 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9919 else
9920 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9921 fi
9922 ;;
9923 esac
9924 link_all_deplibs=yes
9925 ;;
9926
9927 sunos4*)
9928 if test "x$host_vendor" = xsequent; then
9929 # Use $CC to link under sequent, because it throws in some extra .o
9930 # files that make .init and .fini sections work.
9931 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9932 else
9933 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9934 fi
9935 hardcode_libdir_flag_spec='-L$libdir'
9936 hardcode_direct=yes
9937 hardcode_minus_L=yes
9938 hardcode_shlibpath_var=no
9939 ;;
9940
9941 sysv4)
9942 case $host_vendor in
9943 sni)
9944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9945 hardcode_direct=yes # is this really true???
9946 ;;
9947 siemens)
9948 ## LD is ld it makes a PLAMLIB
9949 ## CC just makes a GrossModule.
9950 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9951 reload_cmds='$CC -r -o $output$reload_objs'
9952 hardcode_direct=no
9953 ;;
9954 motorola)
9955 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9956 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9957 ;;
9958 esac
9959 runpath_var='LD_RUN_PATH'
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 sysv4.3*)
9964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9965 hardcode_shlibpath_var=no
9966 export_dynamic_flag_spec='-Bexport'
9967 ;;
9968
9969 sysv4*MP*)
9970 if test -d /usr/nec; then
9971 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9972 hardcode_shlibpath_var=no
9973 runpath_var=LD_RUN_PATH
9974 hardcode_runpath_var=yes
9975 ld_shlibs=yes
9976 fi
9977 ;;
9978
9979 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
9980 no_undefined_flag='${wl}-z,text'
9981 archive_cmds_need_lc=no
9982 hardcode_shlibpath_var=no
9983 runpath_var='LD_RUN_PATH'
9984
9985 if test "$GCC" = yes; then
9986 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9987 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9988 else
9989 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9990 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
9991 fi
9992 ;;
9993
9994 sysv5* | sco3.2v5* | sco5v6*)
9995 # Note: We can NOT use -z defs as we might desire, because we do not
9996 # link with -lc, and that would cause any symbols used from libc to
9997 # always be unresolved, which means just about no library would
9998 # ever link correctly. If we're not using GNU ld we use -z text
9999 # though, which does catch some bad symbols but isn't as heavy-handed
10000 # as -z defs.
10001 no_undefined_flag='${wl}-z,text'
10002 allow_undefined_flag='${wl}-z,nodefs'
10003 archive_cmds_need_lc=no
10004 hardcode_shlibpath_var=no
10005 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10006 hardcode_libdir_separator=':'
10007 link_all_deplibs=yes
10008 export_dynamic_flag_spec='${wl}-Bexport'
10009 runpath_var='LD_RUN_PATH'
10010
10011 if test "$GCC" = yes; then
10012 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10014 else
10015 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10016 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10017 fi
10018 ;;
10019
10020 uts4*)
10021 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10022 hardcode_libdir_flag_spec='-L$libdir'
10023 hardcode_shlibpath_var=no
10024 ;;
10025
10026 *)
10027 ld_shlibs=no
10028 ;;
10029 esac
10030
10031 if test x$host_vendor = xsni; then
10032 case $host in
10033 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10034 export_dynamic_flag_spec='${wl}-Blargedynsym'
10035 ;;
10036 esac
10037 fi
10038 fi
10039
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10041 $as_echo "$ld_shlibs" >&6; }
10042 test "$ld_shlibs" = no && can_build_shared=no
10043
10044 with_gnu_ld=$with_gnu_ld
10045
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056
10057
10058
10059
10060 #
10061 # Do we need to explicitly link libc?
10062 #
10063 case "x$archive_cmds_need_lc" in
10064 x|xyes)
10065 # Assume -lc should be added
10066 archive_cmds_need_lc=yes
10067
10068 if test "$enable_shared" = yes && test "$GCC" = yes; then
10069 case $archive_cmds in
10070 *'~'*)
10071 # FIXME: we may have to deal with multi-command sequences.
10072 ;;
10073 '$CC '*)
10074 # Test whether the compiler implicitly links with -lc since on some
10075 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10076 # to ld, don't add -lc before -lgcc.
10077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10078 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10079 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10080 $as_echo_n "(cached) " >&6
10081 else
10082 $RM conftest*
10083 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10084
10085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10086 (eval $ac_compile) 2>&5
10087 ac_status=$?
10088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10089 test $ac_status = 0; } 2>conftest.err; then
10090 soname=conftest
10091 lib=conftest
10092 libobjs=conftest.$ac_objext
10093 deplibs=
10094 wl=$lt_prog_compiler_wl
10095 pic_flag=$lt_prog_compiler_pic
10096 compiler_flags=-v
10097 linker_flags=-v
10098 verstring=
10099 output_objdir=.
10100 libname=conftest
10101 lt_save_allow_undefined_flag=$allow_undefined_flag
10102 allow_undefined_flag=
10103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10104 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10105 ac_status=$?
10106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10107 test $ac_status = 0; }
10108 then
10109 lt_cv_archive_cmds_need_lc=no
10110 else
10111 lt_cv_archive_cmds_need_lc=yes
10112 fi
10113 allow_undefined_flag=$lt_save_allow_undefined_flag
10114 else
10115 cat conftest.err 1>&5
10116 fi
10117 $RM conftest*
10118
10119 fi
10120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10121 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10122 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10123 ;;
10124 esac
10125 fi
10126 ;;
10127 esac
10128
10129
10130
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10286 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10287
10288 if test "$GCC" = yes; then
10289 case $host_os in
10290 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10291 *) lt_awk_arg="/^libraries:/" ;;
10292 esac
10293 case $host_os in
10294 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10295 *) lt_sed_strip_eq="s,=/,/,g" ;;
10296 esac
10297 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10298 case $lt_search_path_spec in
10299 *\;*)
10300 # if the path contains ";" then we assume it to be the separator
10301 # otherwise default to the standard path separator (i.e. ":") - it is
10302 # assumed that no part of a normal pathname contains ";" but that should
10303 # okay in the real world where ";" in dirpaths is itself problematic.
10304 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10305 ;;
10306 *)
10307 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10308 ;;
10309 esac
10310 # Ok, now we have the path, separated by spaces, we can step through it
10311 # and add multilib dir if necessary.
10312 lt_tmp_lt_search_path_spec=
10313 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10314 for lt_sys_path in $lt_search_path_spec; do
10315 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10316 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10317 else
10318 test -d "$lt_sys_path" && \
10319 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10320 fi
10321 done
10322 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10323 BEGIN {RS=" "; FS="/|\n";} {
10324 lt_foo="";
10325 lt_count=0;
10326 for (lt_i = NF; lt_i > 0; lt_i--) {
10327 if ($lt_i != "" && $lt_i != ".") {
10328 if ($lt_i == "..") {
10329 lt_count++;
10330 } else {
10331 if (lt_count == 0) {
10332 lt_foo="/" $lt_i lt_foo;
10333 } else {
10334 lt_count--;
10335 }
10336 }
10337 }
10338 }
10339 if (lt_foo != "") { lt_freq[lt_foo]++; }
10340 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10341 }'`
10342 # AWK program above erroneously prepends '/' to C:/dos/paths
10343 # for these hosts.
10344 case $host_os in
10345 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10346 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10347 esac
10348 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10349 else
10350 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10351 fi
10352 library_names_spec=
10353 libname_spec='lib$name'
10354 soname_spec=
10355 shrext_cmds=".so"
10356 postinstall_cmds=
10357 postuninstall_cmds=
10358 finish_cmds=
10359 finish_eval=
10360 shlibpath_var=
10361 shlibpath_overrides_runpath=unknown
10362 version_type=none
10363 dynamic_linker="$host_os ld.so"
10364 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10365 need_lib_prefix=unknown
10366 hardcode_into_libs=no
10367
10368 # when you set need_version to no, make sure it does not cause -set_version
10369 # flags to be left without arguments
10370 need_version=unknown
10371
10372 case $host_os in
10373 aix3*)
10374 version_type=linux
10375 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10376 shlibpath_var=LIBPATH
10377
10378 # AIX 3 has no versioning support, so we append a major version to the name.
10379 soname_spec='${libname}${release}${shared_ext}$major'
10380 ;;
10381
10382 aix[4-9]*)
10383 version_type=linux
10384 need_lib_prefix=no
10385 need_version=no
10386 hardcode_into_libs=yes
10387 if test "$host_cpu" = ia64; then
10388 # AIX 5 supports IA64
10389 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10390 shlibpath_var=LD_LIBRARY_PATH
10391 else
10392 # With GCC up to 2.95.x, collect2 would create an import file
10393 # for dependence libraries. The import file would start with
10394 # the line `#! .'. This would cause the generated library to
10395 # depend on `.', always an invalid library. This was fixed in
10396 # development snapshots of GCC prior to 3.0.
10397 case $host_os in
10398 aix4 | aix4.[01] | aix4.[01].*)
10399 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10400 echo ' yes '
10401 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10402 :
10403 else
10404 can_build_shared=no
10405 fi
10406 ;;
10407 esac
10408 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10409 # soname into executable. Probably we can add versioning support to
10410 # collect2, so additional links can be useful in future.
10411 if test "$aix_use_runtimelinking" = yes; then
10412 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10413 # instead of lib<name>.a to let people know that these are not
10414 # typical AIX shared libraries.
10415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10416 else
10417 # We preserve .a as extension for shared libraries through AIX4.2
10418 # and later when we are not doing run time linking.
10419 library_names_spec='${libname}${release}.a $libname.a'
10420 soname_spec='${libname}${release}${shared_ext}$major'
10421 fi
10422 shlibpath_var=LIBPATH
10423 fi
10424 ;;
10425
10426 amigaos*)
10427 case $host_cpu in
10428 powerpc)
10429 # Since July 2007 AmigaOS4 officially supports .so libraries.
10430 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10432 ;;
10433 m68k)
10434 library_names_spec='$libname.ixlibrary $libname.a'
10435 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10436 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'
10437 ;;
10438 esac
10439 ;;
10440
10441 beos*)
10442 library_names_spec='${libname}${shared_ext}'
10443 dynamic_linker="$host_os ld.so"
10444 shlibpath_var=LIBRARY_PATH
10445 ;;
10446
10447 bsdi[45]*)
10448 version_type=linux
10449 need_version=no
10450 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10451 soname_spec='${libname}${release}${shared_ext}$major'
10452 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10453 shlibpath_var=LD_LIBRARY_PATH
10454 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10455 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10456 # the default ld.so.conf also contains /usr/contrib/lib and
10457 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10458 # libtool to hard-code these into programs
10459 ;;
10460
10461 cygwin* | mingw* | pw32* | cegcc*)
10462 version_type=windows
10463 shrext_cmds=".dll"
10464 need_version=no
10465 need_lib_prefix=no
10466
10467 case $GCC,$host_os in
10468 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10469 library_names_spec='$libname.dll.a'
10470 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10471 postinstall_cmds='base_file=`basename \${file}`~
10472 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10473 dldir=$destdir/`dirname \$dlpath`~
10474 test -d \$dldir || mkdir -p \$dldir~
10475 $install_prog $dir/$dlname \$dldir/$dlname~
10476 chmod a+x \$dldir/$dlname~
10477 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10478 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10479 fi'
10480 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10481 dlpath=$dir/\$dldll~
10482 $RM \$dlpath'
10483 shlibpath_overrides_runpath=yes
10484
10485 case $host_os in
10486 cygwin*)
10487 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10488 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10489
10490 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10491 ;;
10492 mingw* | cegcc*)
10493 # MinGW DLLs use traditional 'lib' prefix
10494 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10495 ;;
10496 pw32*)
10497 # pw32 DLLs use 'pw' prefix rather than 'lib'
10498 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10499 ;;
10500 esac
10501 ;;
10502
10503 *)
10504 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10505 ;;
10506 esac
10507 dynamic_linker='Win32 ld.exe'
10508 # FIXME: first we should search . and the directory the executable is in
10509 shlibpath_var=PATH
10510 ;;
10511
10512 darwin* | rhapsody*)
10513 dynamic_linker="$host_os dyld"
10514 version_type=darwin
10515 need_lib_prefix=no
10516 need_version=no
10517 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10518 soname_spec='${libname}${release}${major}$shared_ext'
10519 shlibpath_overrides_runpath=yes
10520 shlibpath_var=DYLD_LIBRARY_PATH
10521 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10522
10523 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10524 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10525 ;;
10526
10527 dgux*)
10528 version_type=linux
10529 need_lib_prefix=no
10530 need_version=no
10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10532 soname_spec='${libname}${release}${shared_ext}$major'
10533 shlibpath_var=LD_LIBRARY_PATH
10534 ;;
10535
10536 freebsd* | dragonfly*)
10537 # DragonFly does not have aout. When/if they implement a new
10538 # versioning mechanism, adjust this.
10539 if test -x /usr/bin/objformat; then
10540 objformat=`/usr/bin/objformat`
10541 else
10542 case $host_os in
10543 freebsd[23].*) objformat=aout ;;
10544 *) objformat=elf ;;
10545 esac
10546 fi
10547 version_type=freebsd-$objformat
10548 case $version_type in
10549 freebsd-elf*)
10550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10551 need_version=no
10552 need_lib_prefix=no
10553 ;;
10554 freebsd-*)
10555 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10556 need_version=yes
10557 ;;
10558 esac
10559 shlibpath_var=LD_LIBRARY_PATH
10560 case $host_os in
10561 freebsd2.*)
10562 shlibpath_overrides_runpath=yes
10563 ;;
10564 freebsd3.[01]* | freebsdelf3.[01]*)
10565 shlibpath_overrides_runpath=yes
10566 hardcode_into_libs=yes
10567 ;;
10568 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10569 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10570 shlibpath_overrides_runpath=no
10571 hardcode_into_libs=yes
10572 ;;
10573 *) # from 4.6 on, and DragonFly
10574 shlibpath_overrides_runpath=yes
10575 hardcode_into_libs=yes
10576 ;;
10577 esac
10578 ;;
10579
10580 gnu*)
10581 version_type=linux
10582 need_lib_prefix=no
10583 need_version=no
10584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10585 soname_spec='${libname}${release}${shared_ext}$major'
10586 shlibpath_var=LD_LIBRARY_PATH
10587 hardcode_into_libs=yes
10588 ;;
10589
10590 haiku*)
10591 version_type=linux
10592 need_lib_prefix=no
10593 need_version=no
10594 dynamic_linker="$host_os runtime_loader"
10595 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10596 soname_spec='${libname}${release}${shared_ext}$major'
10597 shlibpath_var=LIBRARY_PATH
10598 shlibpath_overrides_runpath=yes
10599 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
10600 hardcode_into_libs=yes
10601 ;;
10602
10603 hpux9* | hpux10* | hpux11*)
10604 # Give a soname corresponding to the major version so that dld.sl refuses to
10605 # link against other versions.
10606 version_type=sunos
10607 need_lib_prefix=no
10608 need_version=no
10609 case $host_cpu in
10610 ia64*)
10611 shrext_cmds='.so'
10612 hardcode_into_libs=yes
10613 dynamic_linker="$host_os dld.so"
10614 shlibpath_var=LD_LIBRARY_PATH
10615 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10617 soname_spec='${libname}${release}${shared_ext}$major'
10618 if test "X$HPUX_IA64_MODE" = X32; then
10619 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10620 else
10621 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10622 fi
10623 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10624 ;;
10625 hppa*64*)
10626 shrext_cmds='.sl'
10627 hardcode_into_libs=yes
10628 dynamic_linker="$host_os dld.sl"
10629 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10630 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10632 soname_spec='${libname}${release}${shared_ext}$major'
10633 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10634 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10635 ;;
10636 *)
10637 shrext_cmds='.sl'
10638 dynamic_linker="$host_os dld.sl"
10639 shlibpath_var=SHLIB_PATH
10640 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10642 soname_spec='${libname}${release}${shared_ext}$major'
10643 ;;
10644 esac
10645 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10646 postinstall_cmds='chmod 555 $lib'
10647 # or fails outright, so override atomically:
10648 install_override_mode=555
10649 ;;
10650
10651 interix[3-9]*)
10652 version_type=linux
10653 need_lib_prefix=no
10654 need_version=no
10655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10656 soname_spec='${libname}${release}${shared_ext}$major'
10657 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10658 shlibpath_var=LD_LIBRARY_PATH
10659 shlibpath_overrides_runpath=no
10660 hardcode_into_libs=yes
10661 ;;
10662
10663 irix5* | irix6* | nonstopux*)
10664 case $host_os in
10665 nonstopux*) version_type=nonstopux ;;
10666 *)
10667 if test "$lt_cv_prog_gnu_ld" = yes; then
10668 version_type=linux
10669 else
10670 version_type=irix
10671 fi ;;
10672 esac
10673 need_lib_prefix=no
10674 need_version=no
10675 soname_spec='${libname}${release}${shared_ext}$major'
10676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10677 case $host_os in
10678 irix5* | nonstopux*)
10679 libsuff= shlibsuff=
10680 ;;
10681 *)
10682 case $LD in # libtool.m4 will add one of these switches to LD
10683 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10684 libsuff= shlibsuff= libmagic=32-bit;;
10685 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10686 libsuff=32 shlibsuff=N32 libmagic=N32;;
10687 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10688 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10689 *) libsuff= shlibsuff= libmagic=never-match;;
10690 esac
10691 ;;
10692 esac
10693 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10694 shlibpath_overrides_runpath=no
10695 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10696 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10697 hardcode_into_libs=yes
10698 ;;
10699
10700 # No shared lib support for Linux oldld, aout, or coff.
10701 linux*oldld* | linux*aout* | linux*coff*)
10702 dynamic_linker=no
10703 ;;
10704
10705 # This must be Linux ELF.
10706 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10707 version_type=linux
10708 need_lib_prefix=no
10709 need_version=no
10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10711 soname_spec='${libname}${release}${shared_ext}$major'
10712 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10713 shlibpath_var=LD_LIBRARY_PATH
10714 shlibpath_overrides_runpath=no
10715
10716 # Some binutils ld are patched to set DT_RUNPATH
10717 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10718 $as_echo_n "(cached) " >&6
10719 else
10720 lt_cv_shlibpath_overrides_runpath=no
10721 save_LDFLAGS=$LDFLAGS
10722 save_libdir=$libdir
10723 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10724 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10726 /* end confdefs.h. */
10727
10728 int
10729 main ()
10730 {
10731
10732 ;
10733 return 0;
10734 }
10735 _ACEOF
10736 if ac_fn_c_try_link "$LINENO"; then :
10737 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10738 lt_cv_shlibpath_overrides_runpath=yes
10739 fi
10740 fi
10741 rm -f core conftest.err conftest.$ac_objext \
10742 conftest$ac_exeext conftest.$ac_ext
10743 LDFLAGS=$save_LDFLAGS
10744 libdir=$save_libdir
10745
10746 fi
10747
10748 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10749
10750 # This implies no fast_install, which is unacceptable.
10751 # Some rework will be needed to allow for fast_install
10752 # before this can be enabled.
10753 hardcode_into_libs=yes
10754
10755 # Append ld.so.conf contents to the search path
10756 if test -f /etc/ld.so.conf; then
10757 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' ' '`
10758 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10759 fi
10760
10761 # We used to test for /lib/ld.so.1 and disable shared libraries on
10762 # powerpc, because MkLinux only supported shared libraries with the
10763 # GNU dynamic linker. Since this was broken with cross compilers,
10764 # most powerpc-linux boxes support dynamic linking these days and
10765 # people can always --disable-shared, the test was removed, and we
10766 # assume the GNU/Linux dynamic linker is in use.
10767 dynamic_linker='GNU/Linux ld.so'
10768 ;;
10769
10770 netbsd*)
10771 version_type=sunos
10772 need_lib_prefix=no
10773 need_version=no
10774 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10776 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10777 dynamic_linker='NetBSD (a.out) ld.so'
10778 else
10779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10780 soname_spec='${libname}${release}${shared_ext}$major'
10781 dynamic_linker='NetBSD ld.elf_so'
10782 fi
10783 shlibpath_var=LD_LIBRARY_PATH
10784 shlibpath_overrides_runpath=yes
10785 hardcode_into_libs=yes
10786 ;;
10787
10788 newsos6)
10789 version_type=linux
10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10791 shlibpath_var=LD_LIBRARY_PATH
10792 shlibpath_overrides_runpath=yes
10793 ;;
10794
10795 *nto* | *qnx*)
10796 version_type=qnx
10797 need_lib_prefix=no
10798 need_version=no
10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10800 soname_spec='${libname}${release}${shared_ext}$major'
10801 shlibpath_var=LD_LIBRARY_PATH
10802 shlibpath_overrides_runpath=no
10803 hardcode_into_libs=yes
10804 dynamic_linker='ldqnx.so'
10805 ;;
10806
10807 openbsd*)
10808 version_type=sunos
10809 sys_lib_dlsearch_path_spec="/usr/lib"
10810 need_lib_prefix=no
10811 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10812 case $host_os in
10813 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10814 *) need_version=no ;;
10815 esac
10816 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10817 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10818 shlibpath_var=LD_LIBRARY_PATH
10819 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10820 case $host_os in
10821 openbsd2.[89] | openbsd2.[89].*)
10822 shlibpath_overrides_runpath=no
10823 ;;
10824 *)
10825 shlibpath_overrides_runpath=yes
10826 ;;
10827 esac
10828 else
10829 shlibpath_overrides_runpath=yes
10830 fi
10831 ;;
10832
10833 os2*)
10834 libname_spec='$name'
10835 shrext_cmds=".dll"
10836 need_lib_prefix=no
10837 library_names_spec='$libname${shared_ext} $libname.a'
10838 dynamic_linker='OS/2 ld.exe'
10839 shlibpath_var=LIBPATH
10840 ;;
10841
10842 osf3* | osf4* | osf5*)
10843 version_type=osf
10844 need_lib_prefix=no
10845 need_version=no
10846 soname_spec='${libname}${release}${shared_ext}$major'
10847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10848 shlibpath_var=LD_LIBRARY_PATH
10849 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10850 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10851 ;;
10852
10853 rdos*)
10854 dynamic_linker=no
10855 ;;
10856
10857 solaris*)
10858 version_type=linux
10859 need_lib_prefix=no
10860 need_version=no
10861 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862 soname_spec='${libname}${release}${shared_ext}$major'
10863 shlibpath_var=LD_LIBRARY_PATH
10864 shlibpath_overrides_runpath=yes
10865 hardcode_into_libs=yes
10866 # ldd complains unless libraries are executable
10867 postinstall_cmds='chmod +x $lib'
10868 ;;
10869
10870 sunos4*)
10871 version_type=sunos
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10873 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10874 shlibpath_var=LD_LIBRARY_PATH
10875 shlibpath_overrides_runpath=yes
10876 if test "$with_gnu_ld" = yes; then
10877 need_lib_prefix=no
10878 fi
10879 need_version=yes
10880 ;;
10881
10882 sysv4 | sysv4.3*)
10883 version_type=linux
10884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10885 soname_spec='${libname}${release}${shared_ext}$major'
10886 shlibpath_var=LD_LIBRARY_PATH
10887 case $host_vendor in
10888 sni)
10889 shlibpath_overrides_runpath=no
10890 need_lib_prefix=no
10891 runpath_var=LD_RUN_PATH
10892 ;;
10893 siemens)
10894 need_lib_prefix=no
10895 ;;
10896 motorola)
10897 need_lib_prefix=no
10898 need_version=no
10899 shlibpath_overrides_runpath=no
10900 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10901 ;;
10902 esac
10903 ;;
10904
10905 sysv4*MP*)
10906 if test -d /usr/nec ;then
10907 version_type=linux
10908 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10909 soname_spec='$libname${shared_ext}.$major'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 fi
10912 ;;
10913
10914 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10915 version_type=freebsd-elf
10916 need_lib_prefix=no
10917 need_version=no
10918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10919 soname_spec='${libname}${release}${shared_ext}$major'
10920 shlibpath_var=LD_LIBRARY_PATH
10921 shlibpath_overrides_runpath=yes
10922 hardcode_into_libs=yes
10923 if test "$with_gnu_ld" = yes; then
10924 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10925 else
10926 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10927 case $host_os in
10928 sco3.2v5*)
10929 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10930 ;;
10931 esac
10932 fi
10933 sys_lib_dlsearch_path_spec='/usr/lib'
10934 ;;
10935
10936 tpf*)
10937 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
10938 version_type=linux
10939 need_lib_prefix=no
10940 need_version=no
10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10942 shlibpath_var=LD_LIBRARY_PATH
10943 shlibpath_overrides_runpath=no
10944 hardcode_into_libs=yes
10945 ;;
10946
10947 uts4*)
10948 version_type=linux
10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10950 soname_spec='${libname}${release}${shared_ext}$major'
10951 shlibpath_var=LD_LIBRARY_PATH
10952 ;;
10953
10954 *)
10955 dynamic_linker=no
10956 ;;
10957 esac
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
10959 $as_echo "$dynamic_linker" >&6; }
10960 test "$dynamic_linker" = no && can_build_shared=no
10961
10962 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10963 if test "$GCC" = yes; then
10964 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10965 fi
10966
10967 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
10968 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
10969 fi
10970 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
10971 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
10972 fi
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983
10984
10985
10986
10987
10988
10989
10990
10991
10992
10993
10994
10995
10996
10997
10998
10999
11000
11001
11002
11003
11004
11005
11006
11007
11008
11009
11010
11011
11012
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11066 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11067 hardcode_action=
11068 if test -n "$hardcode_libdir_flag_spec" ||
11069 test -n "$runpath_var" ||
11070 test "X$hardcode_automatic" = "Xyes" ; then
11071
11072 # We can hardcode non-existent directories.
11073 if test "$hardcode_direct" != no &&
11074 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11075 # have to relink, otherwise we might link with an installed library
11076 # when we should be linking with a yet-to-be-installed one
11077 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11078 test "$hardcode_minus_L" != no; then
11079 # Linking always hardcodes the temporary library directory.
11080 hardcode_action=relink
11081 else
11082 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11083 hardcode_action=immediate
11084 fi
11085 else
11086 # We cannot hardcode anything, or else we can only hardcode existing
11087 # directories.
11088 hardcode_action=unsupported
11089 fi
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11091 $as_echo "$hardcode_action" >&6; }
11092
11093 if test "$hardcode_action" = relink ||
11094 test "$inherit_rpath" = yes; then
11095 # Fast installation is not supported
11096 enable_fast_install=no
11097 elif test "$shlibpath_overrides_runpath" = yes ||
11098 test "$enable_shared" = no; then
11099 # Fast installation is not necessary
11100 enable_fast_install=needless
11101 fi
11102
11103
11104
11105
11106
11107
11108 if test "x$enable_dlopen" != xyes; then
11109 enable_dlopen=unknown
11110 enable_dlopen_self=unknown
11111 enable_dlopen_self_static=unknown
11112 else
11113 lt_cv_dlopen=no
11114 lt_cv_dlopen_libs=
11115
11116 case $host_os in
11117 beos*)
11118 lt_cv_dlopen="load_add_on"
11119 lt_cv_dlopen_libs=
11120 lt_cv_dlopen_self=yes
11121 ;;
11122
11123 mingw* | pw32* | cegcc*)
11124 lt_cv_dlopen="LoadLibrary"
11125 lt_cv_dlopen_libs=
11126 ;;
11127
11128 cygwin*)
11129 lt_cv_dlopen="dlopen"
11130 lt_cv_dlopen_libs=
11131 ;;
11132
11133 darwin*)
11134 # if libdl is installed we need to link against it
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11136 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11137 if ${ac_cv_lib_dl_dlopen+:} false; then :
11138 $as_echo_n "(cached) " >&6
11139 else
11140 ac_check_lib_save_LIBS=$LIBS
11141 LIBS="-ldl $LIBS"
11142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11143 /* end confdefs.h. */
11144
11145 /* Override any GCC internal prototype to avoid an error.
11146 Use char because int might match the return type of a GCC
11147 builtin and then its argument prototype would still apply. */
11148 #ifdef __cplusplus
11149 extern "C"
11150 #endif
11151 char dlopen ();
11152 int
11153 main ()
11154 {
11155 return dlopen ();
11156 ;
11157 return 0;
11158 }
11159 _ACEOF
11160 if ac_fn_c_try_link "$LINENO"; then :
11161 ac_cv_lib_dl_dlopen=yes
11162 else
11163 ac_cv_lib_dl_dlopen=no
11164 fi
11165 rm -f core conftest.err conftest.$ac_objext \
11166 conftest$ac_exeext conftest.$ac_ext
11167 LIBS=$ac_check_lib_save_LIBS
11168 fi
11169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11170 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11171 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11172 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11173 else
11174
11175 lt_cv_dlopen="dyld"
11176 lt_cv_dlopen_libs=
11177 lt_cv_dlopen_self=yes
11178
11179 fi
11180
11181 ;;
11182
11183 *)
11184 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11185 if test "x$ac_cv_func_shl_load" = xyes; then :
11186 lt_cv_dlopen="shl_load"
11187 else
11188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11189 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11190 if ${ac_cv_lib_dld_shl_load+:} false; then :
11191 $as_echo_n "(cached) " >&6
11192 else
11193 ac_check_lib_save_LIBS=$LIBS
11194 LIBS="-ldld $LIBS"
11195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11196 /* end confdefs.h. */
11197
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char shl_load ();
11205 int
11206 main ()
11207 {
11208 return shl_load ();
11209 ;
11210 return 0;
11211 }
11212 _ACEOF
11213 if ac_fn_c_try_link "$LINENO"; then :
11214 ac_cv_lib_dld_shl_load=yes
11215 else
11216 ac_cv_lib_dld_shl_load=no
11217 fi
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11221 fi
11222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11223 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11224 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11225 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11226 else
11227 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11228 if test "x$ac_cv_func_dlopen" = xyes; then :
11229 lt_cv_dlopen="dlopen"
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11232 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11233 if ${ac_cv_lib_dl_dlopen+:} false; then :
11234 $as_echo_n "(cached) " >&6
11235 else
11236 ac_check_lib_save_LIBS=$LIBS
11237 LIBS="-ldl $LIBS"
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11240
11241 /* Override any GCC internal prototype to avoid an error.
11242 Use char because int might match the return type of a GCC
11243 builtin and then its argument prototype would still apply. */
11244 #ifdef __cplusplus
11245 extern "C"
11246 #endif
11247 char dlopen ();
11248 int
11249 main ()
11250 {
11251 return dlopen ();
11252 ;
11253 return 0;
11254 }
11255 _ACEOF
11256 if ac_fn_c_try_link "$LINENO"; then :
11257 ac_cv_lib_dl_dlopen=yes
11258 else
11259 ac_cv_lib_dl_dlopen=no
11260 fi
11261 rm -f core conftest.err conftest.$ac_objext \
11262 conftest$ac_exeext conftest.$ac_ext
11263 LIBS=$ac_check_lib_save_LIBS
11264 fi
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11266 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11267 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11268 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11269 else
11270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11271 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11272 if ${ac_cv_lib_svld_dlopen+:} false; then :
11273 $as_echo_n "(cached) " >&6
11274 else
11275 ac_check_lib_save_LIBS=$LIBS
11276 LIBS="-lsvld $LIBS"
11277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11278 /* end confdefs.h. */
11279
11280 /* Override any GCC internal prototype to avoid an error.
11281 Use char because int might match the return type of a GCC
11282 builtin and then its argument prototype would still apply. */
11283 #ifdef __cplusplus
11284 extern "C"
11285 #endif
11286 char dlopen ();
11287 int
11288 main ()
11289 {
11290 return dlopen ();
11291 ;
11292 return 0;
11293 }
11294 _ACEOF
11295 if ac_fn_c_try_link "$LINENO"; then :
11296 ac_cv_lib_svld_dlopen=yes
11297 else
11298 ac_cv_lib_svld_dlopen=no
11299 fi
11300 rm -f core conftest.err conftest.$ac_objext \
11301 conftest$ac_exeext conftest.$ac_ext
11302 LIBS=$ac_check_lib_save_LIBS
11303 fi
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11305 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11306 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11307 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11308 else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11310 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11311 if ${ac_cv_lib_dld_dld_link+:} false; then :
11312 $as_echo_n "(cached) " >&6
11313 else
11314 ac_check_lib_save_LIBS=$LIBS
11315 LIBS="-ldld $LIBS"
11316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11317 /* end confdefs.h. */
11318
11319 /* Override any GCC internal prototype to avoid an error.
11320 Use char because int might match the return type of a GCC
11321 builtin and then its argument prototype would still apply. */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char dld_link ();
11326 int
11327 main ()
11328 {
11329 return dld_link ();
11330 ;
11331 return 0;
11332 }
11333 _ACEOF
11334 if ac_fn_c_try_link "$LINENO"; then :
11335 ac_cv_lib_dld_dld_link=yes
11336 else
11337 ac_cv_lib_dld_dld_link=no
11338 fi
11339 rm -f core conftest.err conftest.$ac_objext \
11340 conftest$ac_exeext conftest.$ac_ext
11341 LIBS=$ac_check_lib_save_LIBS
11342 fi
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11344 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11345 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11346 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11347 fi
11348
11349
11350 fi
11351
11352
11353 fi
11354
11355
11356 fi
11357
11358
11359 fi
11360
11361
11362 fi
11363
11364 ;;
11365 esac
11366
11367 if test "x$lt_cv_dlopen" != xno; then
11368 enable_dlopen=yes
11369 else
11370 enable_dlopen=no
11371 fi
11372
11373 case $lt_cv_dlopen in
11374 dlopen)
11375 save_CPPFLAGS="$CPPFLAGS"
11376 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11377
11378 save_LDFLAGS="$LDFLAGS"
11379 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11380
11381 save_LIBS="$LIBS"
11382 LIBS="$lt_cv_dlopen_libs $LIBS"
11383
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11385 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11386 if ${lt_cv_dlopen_self+:} false; then :
11387 $as_echo_n "(cached) " >&6
11388 else
11389 if test "$cross_compiling" = yes; then :
11390 lt_cv_dlopen_self=cross
11391 else
11392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11393 lt_status=$lt_dlunknown
11394 cat > conftest.$ac_ext <<_LT_EOF
11395 #line 11395 "configure"
11396 #include "confdefs.h"
11397
11398 #if HAVE_DLFCN_H
11399 #include <dlfcn.h>
11400 #endif
11401
11402 #include <stdio.h>
11403
11404 #ifdef RTLD_GLOBAL
11405 # define LT_DLGLOBAL RTLD_GLOBAL
11406 #else
11407 # ifdef DL_GLOBAL
11408 # define LT_DLGLOBAL DL_GLOBAL
11409 # else
11410 # define LT_DLGLOBAL 0
11411 # endif
11412 #endif
11413
11414 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11415 find out it does not work in some platform. */
11416 #ifndef LT_DLLAZY_OR_NOW
11417 # ifdef RTLD_LAZY
11418 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11419 # else
11420 # ifdef DL_LAZY
11421 # define LT_DLLAZY_OR_NOW DL_LAZY
11422 # else
11423 # ifdef RTLD_NOW
11424 # define LT_DLLAZY_OR_NOW RTLD_NOW
11425 # else
11426 # ifdef DL_NOW
11427 # define LT_DLLAZY_OR_NOW DL_NOW
11428 # else
11429 # define LT_DLLAZY_OR_NOW 0
11430 # endif
11431 # endif
11432 # endif
11433 # endif
11434 #endif
11435
11436 /* When -fvisbility=hidden is used, assume the code has been annotated
11437 correspondingly for the symbols needed. */
11438 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11439 void fnord () __attribute__((visibility("default")));
11440 #endif
11441
11442 void fnord () { int i=42; }
11443 int main ()
11444 {
11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11446 int status = $lt_dlunknown;
11447
11448 if (self)
11449 {
11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11451 else
11452 {
11453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11454 else puts (dlerror ());
11455 }
11456 /* dlclose (self); */
11457 }
11458 else
11459 puts (dlerror ());
11460
11461 return status;
11462 }
11463 _LT_EOF
11464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11465 (eval $ac_link) 2>&5
11466 ac_status=$?
11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11469 (./conftest; exit; ) >&5 2>/dev/null
11470 lt_status=$?
11471 case x$lt_status in
11472 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11473 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11474 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11475 esac
11476 else :
11477 # compilation failed
11478 lt_cv_dlopen_self=no
11479 fi
11480 fi
11481 rm -fr conftest*
11482
11483
11484 fi
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11486 $as_echo "$lt_cv_dlopen_self" >&6; }
11487
11488 if test "x$lt_cv_dlopen_self" = xyes; then
11489 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11491 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11492 if ${lt_cv_dlopen_self_static+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 if test "$cross_compiling" = yes; then :
11496 lt_cv_dlopen_self_static=cross
11497 else
11498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11499 lt_status=$lt_dlunknown
11500 cat > conftest.$ac_ext <<_LT_EOF
11501 #line 11501 "configure"
11502 #include "confdefs.h"
11503
11504 #if HAVE_DLFCN_H
11505 #include <dlfcn.h>
11506 #endif
11507
11508 #include <stdio.h>
11509
11510 #ifdef RTLD_GLOBAL
11511 # define LT_DLGLOBAL RTLD_GLOBAL
11512 #else
11513 # ifdef DL_GLOBAL
11514 # define LT_DLGLOBAL DL_GLOBAL
11515 # else
11516 # define LT_DLGLOBAL 0
11517 # endif
11518 #endif
11519
11520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11521 find out it does not work in some platform. */
11522 #ifndef LT_DLLAZY_OR_NOW
11523 # ifdef RTLD_LAZY
11524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11525 # else
11526 # ifdef DL_LAZY
11527 # define LT_DLLAZY_OR_NOW DL_LAZY
11528 # else
11529 # ifdef RTLD_NOW
11530 # define LT_DLLAZY_OR_NOW RTLD_NOW
11531 # else
11532 # ifdef DL_NOW
11533 # define LT_DLLAZY_OR_NOW DL_NOW
11534 # else
11535 # define LT_DLLAZY_OR_NOW 0
11536 # endif
11537 # endif
11538 # endif
11539 # endif
11540 #endif
11541
11542 /* When -fvisbility=hidden is used, assume the code has been annotated
11543 correspondingly for the symbols needed. */
11544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11545 void fnord () __attribute__((visibility("default")));
11546 #endif
11547
11548 void fnord () { int i=42; }
11549 int main ()
11550 {
11551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11552 int status = $lt_dlunknown;
11553
11554 if (self)
11555 {
11556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11557 else
11558 {
11559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11560 else puts (dlerror ());
11561 }
11562 /* dlclose (self); */
11563 }
11564 else
11565 puts (dlerror ());
11566
11567 return status;
11568 }
11569 _LT_EOF
11570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11571 (eval $ac_link) 2>&5
11572 ac_status=$?
11573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11575 (./conftest; exit; ) >&5 2>/dev/null
11576 lt_status=$?
11577 case x$lt_status in
11578 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11579 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11580 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11581 esac
11582 else :
11583 # compilation failed
11584 lt_cv_dlopen_self_static=no
11585 fi
11586 fi
11587 rm -fr conftest*
11588
11589
11590 fi
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11592 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11593 fi
11594
11595 CPPFLAGS="$save_CPPFLAGS"
11596 LDFLAGS="$save_LDFLAGS"
11597 LIBS="$save_LIBS"
11598 ;;
11599 esac
11600
11601 case $lt_cv_dlopen_self in
11602 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11603 *) enable_dlopen_self=unknown ;;
11604 esac
11605
11606 case $lt_cv_dlopen_self_static in
11607 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11608 *) enable_dlopen_self_static=unknown ;;
11609 esac
11610 fi
11611
11612
11613
11614
11615
11616
11617
11618
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628 striplib=
11629 old_striplib=
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11631 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11632 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11633 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11634 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11636 $as_echo "yes" >&6; }
11637 else
11638 # FIXME - insert some real tests, host_os isn't really good enough
11639 case $host_os in
11640 darwin*)
11641 if test -n "$STRIP" ; then
11642 striplib="$STRIP -x"
11643 old_striplib="$STRIP -S"
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645 $as_echo "yes" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11649 fi
11650 ;;
11651 *)
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11653 $as_echo "no" >&6; }
11654 ;;
11655 esac
11656 fi
11657
11658
11659
11660
11661
11662
11663
11664
11665
11666
11667
11668
11669 # Report which library types will actually be built
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11671 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11673 $as_echo "$can_build_shared" >&6; }
11674
11675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11676 $as_echo_n "checking whether to build shared libraries... " >&6; }
11677 test "$can_build_shared" = "no" && enable_shared=no
11678
11679 # On AIX, shared libraries and static libraries use the same namespace, and
11680 # are all built from PIC.
11681 case $host_os in
11682 aix3*)
11683 test "$enable_shared" = yes && enable_static=no
11684 if test -n "$RANLIB"; then
11685 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11686 postinstall_cmds='$RANLIB $lib'
11687 fi
11688 ;;
11689
11690 aix[4-9]*)
11691 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11692 test "$enable_shared" = yes && enable_static=no
11693 fi
11694 ;;
11695 esac
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11697 $as_echo "$enable_shared" >&6; }
11698
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11700 $as_echo_n "checking whether to build static libraries... " >&6; }
11701 # Make sure either enable_shared or enable_static is yes.
11702 test "$enable_shared" = yes || enable_static=yes
11703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11704 $as_echo "$enable_static" >&6; }
11705
11706
11707
11708
11709 fi
11710 ac_ext=c
11711 ac_cpp='$CPP $CPPFLAGS'
11712 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11713 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11714 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11715
11716 CC="$lt_save_CC"
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730 ac_config_commands="$ac_config_commands libtool"
11731
11732
11733
11734
11735 # Only expand once:
11736
11737
11738
11739
11740
11741 case $host in
11742 *-cygwin* | *-mingw*)
11743 # 'host' will be top-level target in the case of a target lib,
11744 # we must compare to with_cross_host to decide if this is a native
11745 # or cross-compiler and select where to install dlls appropriately.
11746 if test -n "$with_cross_host" &&
11747 test x"$with_cross_host" != x"no"; then
11748 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
11749 else
11750 lt_host_flags='-no-undefined -bindir "$(bindir)"';
11751 fi
11752 ;;
11753 *)
11754 lt_host_flags=
11755 ;;
11756 esac
11757
11758
11759
11760
11761
11762
11763
11764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
11765 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
11766 # Check whether --enable-maintainer-mode was given.
11767 if test "${enable_maintainer_mode+set}" = set; then :
11768 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
11769 else
11770 USE_MAINTAINER_MODE=no
11771 fi
11772
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
11774 $as_echo "$USE_MAINTAINER_MODE" >&6; }
11775 if test $USE_MAINTAINER_MODE = yes; then
11776 MAINTAINER_MODE_TRUE=
11777 MAINTAINER_MODE_FALSE='#'
11778 else
11779 MAINTAINER_MODE_TRUE='#'
11780 MAINTAINER_MODE_FALSE=
11781 fi
11782
11783 MAINT=$MAINTAINER_MODE_TRUE
11784
11785
11786
11787 # Create a spec file, so that compile/link tests don't fail
11788 test -f libgfortran.spec || touch libgfortran.spec
11789 FCFLAGS="$FCFLAGS -L."
11790
11791 # We need gfortran to compile parts of the library
11792 # We can't use AC_PROG_FC because it expects a fully working gfortran.
11793 #AC_PROG_FC(gfortran)
11794 case `echo $GFORTRAN` in
11795 -* | no* )
11796 FC=no ;;
11797 *)
11798 set dummy $GFORTRAN; ac_word=$2
11799 if test -x "$ac_word"; then
11800 FC="$GFORTRAN"
11801 else
11802 FC=no
11803 fi ;;
11804 esac
11805 ac_ext=${ac_fc_srcext-f}
11806 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
11807 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
11808 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
11809 if test -n "$ac_tool_prefix"; then
11810 for ac_prog in gfortran
11811 do
11812 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11813 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11815 $as_echo_n "checking for $ac_word... " >&6; }
11816 if ${ac_cv_prog_FC+:} false; then :
11817 $as_echo_n "(cached) " >&6
11818 else
11819 if test -n "$FC"; then
11820 ac_cv_prog_FC="$FC" # Let the user override the test.
11821 else
11822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11823 for as_dir in $PATH
11824 do
11825 IFS=$as_save_IFS
11826 test -z "$as_dir" && as_dir=.
11827 for ac_exec_ext in '' $ac_executable_extensions; do
11828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11829 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
11830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11831 break 2
11832 fi
11833 done
11834 done
11835 IFS=$as_save_IFS
11836
11837 fi
11838 fi
11839 FC=$ac_cv_prog_FC
11840 if test -n "$FC"; then
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
11842 $as_echo "$FC" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847
11848
11849 test -n "$FC" && break
11850 done
11851 fi
11852 if test -z "$FC"; then
11853 ac_ct_FC=$FC
11854 for ac_prog in gfortran
11855 do
11856 # Extract the first word of "$ac_prog", so it can be a program name with args.
11857 set dummy $ac_prog; ac_word=$2
11858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11859 $as_echo_n "checking for $ac_word... " >&6; }
11860 if ${ac_cv_prog_ac_ct_FC+:} false; then :
11861 $as_echo_n "(cached) " >&6
11862 else
11863 if test -n "$ac_ct_FC"; then
11864 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
11865 else
11866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11867 for as_dir in $PATH
11868 do
11869 IFS=$as_save_IFS
11870 test -z "$as_dir" && as_dir=.
11871 for ac_exec_ext in '' $ac_executable_extensions; do
11872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11873 ac_cv_prog_ac_ct_FC="$ac_prog"
11874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11875 break 2
11876 fi
11877 done
11878 done
11879 IFS=$as_save_IFS
11880
11881 fi
11882 fi
11883 ac_ct_FC=$ac_cv_prog_ac_ct_FC
11884 if test -n "$ac_ct_FC"; then
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
11886 $as_echo "$ac_ct_FC" >&6; }
11887 else
11888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11889 $as_echo "no" >&6; }
11890 fi
11891
11892
11893 test -n "$ac_ct_FC" && break
11894 done
11895
11896 if test "x$ac_ct_FC" = x; then
11897 FC=""
11898 else
11899 case $cross_compiling:$ac_tool_warned in
11900 yes:)
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11902 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11903 ac_tool_warned=yes ;;
11904 esac
11905 FC=$ac_ct_FC
11906 fi
11907 fi
11908
11909
11910 # Provide some information about the compiler.
11911 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
11912 set X $ac_compile
11913 ac_compiler=$2
11914 for ac_option in --version -v -V -qversion; do
11915 { { ac_try="$ac_compiler $ac_option >&5"
11916 case "(($ac_try" in
11917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11918 *) ac_try_echo=$ac_try;;
11919 esac
11920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11921 $as_echo "$ac_try_echo"; } >&5
11922 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11923 ac_status=$?
11924 if test -s conftest.err; then
11925 sed '10a\
11926 ... rest of stderr output deleted ...
11927 10q' conftest.err >conftest.er1
11928 cat conftest.er1 >&5
11929 fi
11930 rm -f conftest.er1 conftest.err
11931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11932 test $ac_status = 0; }
11933 done
11934 rm -f a.out
11935
11936 # If we don't use `.F' as extension, the preprocessor is not run on the
11937 # input file. (Note that this only needs to work for GNU compilers.)
11938 ac_save_ext=$ac_ext
11939 ac_ext=F
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
11941 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
11942 if ${ac_cv_fc_compiler_gnu+:} false; then :
11943 $as_echo_n "(cached) " >&6
11944 else
11945 cat > conftest.$ac_ext <<_ACEOF
11946 program main
11947 #ifndef __GNUC__
11948 choke me
11949 #endif
11950
11951 end
11952 _ACEOF
11953 if ac_fn_fc_try_compile "$LINENO"; then :
11954 ac_compiler_gnu=yes
11955 else
11956 ac_compiler_gnu=no
11957 fi
11958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11959 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
11960
11961 fi
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
11963 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
11964 ac_ext=$ac_save_ext
11965 ac_test_FCFLAGS=${FCFLAGS+set}
11966 ac_save_FCFLAGS=$FCFLAGS
11967 FCFLAGS=
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
11969 $as_echo_n "checking whether $FC accepts -g... " >&6; }
11970 if ${ac_cv_prog_fc_g+:} false; then :
11971 $as_echo_n "(cached) " >&6
11972 else
11973 FCFLAGS=-g
11974 cat > conftest.$ac_ext <<_ACEOF
11975 program main
11976
11977 end
11978 _ACEOF
11979 if ac_fn_fc_try_compile "$LINENO"; then :
11980 ac_cv_prog_fc_g=yes
11981 else
11982 ac_cv_prog_fc_g=no
11983 fi
11984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11985
11986 fi
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
11988 $as_echo "$ac_cv_prog_fc_g" >&6; }
11989 if test "$ac_test_FCFLAGS" = set; then
11990 FCFLAGS=$ac_save_FCFLAGS
11991 elif test $ac_cv_prog_fc_g = yes; then
11992 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11993 FCFLAGS="-g -O2"
11994 else
11995 FCFLAGS="-g"
11996 fi
11997 else
11998 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
11999 FCFLAGS="-O2"
12000 else
12001 FCFLAGS=
12002 fi
12003 fi
12004
12005 if test $ac_compiler_gnu = yes; then
12006 GFC=yes
12007 else
12008 GFC=
12009 fi
12010 ac_ext=c
12011 ac_cpp='$CPP $CPPFLAGS'
12012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12015
12016 ac_ext=${ac_fc_srcext-f}
12017 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12018 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12019 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12020
12021
12022 if test -z "$FC" || test "X$FC" = "Xno"; then
12023 _lt_disable_FC=yes
12024 fi
12025
12026 archive_cmds_need_lc_FC=no
12027 allow_undefined_flag_FC=
12028 always_export_symbols_FC=no
12029 archive_expsym_cmds_FC=
12030 export_dynamic_flag_spec_FC=
12031 hardcode_direct_FC=no
12032 hardcode_direct_absolute_FC=no
12033 hardcode_libdir_flag_spec_FC=
12034 hardcode_libdir_flag_spec_ld_FC=
12035 hardcode_libdir_separator_FC=
12036 hardcode_minus_L_FC=no
12037 hardcode_automatic_FC=no
12038 inherit_rpath_FC=no
12039 module_cmds_FC=
12040 module_expsym_cmds_FC=
12041 link_all_deplibs_FC=unknown
12042 old_archive_cmds_FC=$old_archive_cmds
12043 reload_flag_FC=$reload_flag
12044 reload_cmds_FC=$reload_cmds
12045 no_undefined_flag_FC=
12046 whole_archive_flag_spec_FC=
12047 enable_shared_with_static_runtimes_FC=no
12048
12049 # Source file extension for fc test sources.
12050 ac_ext=${ac_fc_srcext-f}
12051
12052 # Object file extension for compiled fc test sources.
12053 objext=o
12054 objext_FC=$objext
12055
12056 # No sense in running all these tests if we already determined that
12057 # the FC compiler isn't working. Some variables (like enable_shared)
12058 # are currently assumed to apply to all compilers on this platform,
12059 # and will be corrupted by setting them based on a non-working compiler.
12060 if test "$_lt_disable_FC" != yes; then
12061 # Code to be used in simple compile tests
12062 lt_simple_compile_test_code="\
12063 subroutine t
12064 return
12065 end
12066 "
12067
12068 # Code to be used in simple link tests
12069 lt_simple_link_test_code="\
12070 program t
12071 end
12072 "
12073
12074 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12075
12076
12077
12078
12079
12080
12081 # If no C compiler was specified, use CC.
12082 LTCC=${LTCC-"$CC"}
12083
12084 # If no C compiler flags were specified, use CFLAGS.
12085 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12086
12087 # Allow CC to be a program name with arguments.
12088 compiler=$CC
12089
12090
12091 # save warnings/boilerplate of simple test code
12092 ac_outfile=conftest.$ac_objext
12093 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12094 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12095 _lt_compiler_boilerplate=`cat conftest.err`
12096 $RM conftest*
12097
12098 ac_outfile=conftest.$ac_objext
12099 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12100 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12101 _lt_linker_boilerplate=`cat conftest.err`
12102 $RM -r conftest*
12103
12104
12105 # Allow CC to be a program name with arguments.
12106 lt_save_CC="$CC"
12107 lt_save_GCC=$GCC
12108 CC=${FC-"f95"}
12109 compiler=$CC
12110 GCC=$ac_cv_fc_compiler_gnu
12111
12112 compiler_FC=$CC
12113 for cc_temp in $compiler""; do
12114 case $cc_temp in
12115 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12116 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12117 \-*) ;;
12118 *) break;;
12119 esac
12120 done
12121 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12122
12123
12124 if test -n "$compiler"; then
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12126 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12128 $as_echo "$can_build_shared" >&6; }
12129
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12131 $as_echo_n "checking whether to build shared libraries... " >&6; }
12132 test "$can_build_shared" = "no" && enable_shared=no
12133
12134 # On AIX, shared libraries and static libraries use the same namespace, and
12135 # are all built from PIC.
12136 case $host_os in
12137 aix3*)
12138 test "$enable_shared" = yes && enable_static=no
12139 if test -n "$RANLIB"; then
12140 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12141 postinstall_cmds='$RANLIB $lib'
12142 fi
12143 ;;
12144 aix[4-9]*)
12145 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12146 test "$enable_shared" = yes && enable_static=no
12147 fi
12148 ;;
12149 esac
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12151 $as_echo "$enable_shared" >&6; }
12152
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12154 $as_echo_n "checking whether to build static libraries... " >&6; }
12155 # Make sure either enable_shared or enable_static is yes.
12156 test "$enable_shared" = yes || enable_static=yes
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12158 $as_echo "$enable_static" >&6; }
12159
12160 GCC_FC="$ac_cv_fc_compiler_gnu"
12161 LD_FC="$LD"
12162
12163 ## CAVEAT EMPTOR:
12164 ## There is no encapsulation within the following macros, do not change
12165 ## the running order or otherwise move them around unless you know exactly
12166 ## what you are doing...
12167 # Dependencies to place before and after the object being linked:
12168 predep_objects_FC=
12169 postdep_objects_FC=
12170 predeps_FC=
12171 postdeps_FC=
12172 compiler_lib_search_path_FC=
12173
12174 cat > conftest.$ac_ext <<_LT_EOF
12175 subroutine foo
12176 implicit none
12177 integer a
12178 a=0
12179 return
12180 end
12181 _LT_EOF
12182
12183 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12184 (eval $ac_compile) 2>&5
12185 ac_status=$?
12186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12187 test $ac_status = 0; }; then
12188 # Parse the compiler output and extract the necessary
12189 # objects, libraries and library flags.
12190
12191 # Sentinel used to keep track of whether or not we are before
12192 # the conftest object file.
12193 pre_test_object_deps_done=no
12194
12195 for p in `eval "$output_verbose_link_cmd"`; do
12196 case $p in
12197
12198 -L* | -R* | -l*)
12199 # Some compilers place space between "-{L,R}" and the path.
12200 # Remove the space.
12201 if test $p = "-L" ||
12202 test $p = "-R"; then
12203 prev=$p
12204 continue
12205 else
12206 prev=
12207 fi
12208
12209 if test "$pre_test_object_deps_done" = no; then
12210 case $p in
12211 -L* | -R*)
12212 # Internal compiler library paths should come after those
12213 # provided the user. The postdeps already come after the
12214 # user supplied libs so there is no need to process them.
12215 if test -z "$compiler_lib_search_path_FC"; then
12216 compiler_lib_search_path_FC="${prev}${p}"
12217 else
12218 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12219 fi
12220 ;;
12221 # The "-l" case would never come before the object being
12222 # linked, so don't bother handling this case.
12223 esac
12224 else
12225 if test -z "$postdeps_FC"; then
12226 postdeps_FC="${prev}${p}"
12227 else
12228 postdeps_FC="${postdeps_FC} ${prev}${p}"
12229 fi
12230 fi
12231 ;;
12232
12233 *.$objext)
12234 # This assumes that the test object file only shows up
12235 # once in the compiler output.
12236 if test "$p" = "conftest.$objext"; then
12237 pre_test_object_deps_done=yes
12238 continue
12239 fi
12240
12241 if test "$pre_test_object_deps_done" = no; then
12242 if test -z "$predep_objects_FC"; then
12243 predep_objects_FC="$p"
12244 else
12245 predep_objects_FC="$predep_objects_FC $p"
12246 fi
12247 else
12248 if test -z "$postdep_objects_FC"; then
12249 postdep_objects_FC="$p"
12250 else
12251 postdep_objects_FC="$postdep_objects_FC $p"
12252 fi
12253 fi
12254 ;;
12255
12256 *) ;; # Ignore the rest.
12257
12258 esac
12259 done
12260
12261 # Clean up.
12262 rm -f a.out a.exe
12263 else
12264 echo "libtool.m4: error: problem compiling FC test program"
12265 fi
12266
12267 $RM -f confest.$objext
12268
12269 # PORTME: override above test on systems where it is broken
12270
12271
12272 case " $postdeps_FC " in
12273 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12274 esac
12275 compiler_lib_search_dirs_FC=
12276 if test -n "${compiler_lib_search_path_FC}"; then
12277 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12278 fi
12279
12280
12281
12282
12283
12284
12285
12286
12287
12288
12289
12290
12291
12292
12293
12294
12295
12296
12297
12298
12299
12300
12301
12302
12303
12304
12305
12306
12307
12308
12309
12310 lt_prog_compiler_wl_FC=
12311 lt_prog_compiler_pic_FC=
12312 lt_prog_compiler_static_FC=
12313
12314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12315 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12316
12317 if test "$GCC" = yes; then
12318 lt_prog_compiler_wl_FC='-Wl,'
12319 lt_prog_compiler_static_FC='-static'
12320
12321 case $host_os in
12322 aix*)
12323 # All AIX code is PIC.
12324 if test "$host_cpu" = ia64; then
12325 # AIX 5 now supports IA64 processor
12326 lt_prog_compiler_static_FC='-Bstatic'
12327 fi
12328 lt_prog_compiler_pic_FC='-fPIC'
12329 ;;
12330
12331 amigaos*)
12332 case $host_cpu in
12333 powerpc)
12334 # see comment about AmigaOS4 .so support
12335 lt_prog_compiler_pic_FC='-fPIC'
12336 ;;
12337 m68k)
12338 # FIXME: we need at least 68020 code to build shared libraries, but
12339 # adding the `-m68020' flag to GCC prevents building anything better,
12340 # like `-m68040'.
12341 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
12342 ;;
12343 esac
12344 ;;
12345
12346 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12347 # PIC is the default for these OSes.
12348 ;;
12349
12350 mingw* | cygwin* | pw32* | os2* | cegcc*)
12351 # This hack is so that the source file can tell whether it is being
12352 # built for inclusion in a dll (and should export symbols for example).
12353 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12354 # (--disable-auto-import) libraries
12355 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12356 ;;
12357
12358 darwin* | rhapsody*)
12359 # PIC is the default on this platform
12360 # Common symbols not allowed in MH_DYLIB files
12361 lt_prog_compiler_pic_FC='-fno-common'
12362 ;;
12363
12364 haiku*)
12365 # PIC is the default for Haiku.
12366 # The "-static" flag exists, but is broken.
12367 lt_prog_compiler_static_FC=
12368 ;;
12369
12370 hpux*)
12371 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
12372 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
12373 # sets the default TLS model and affects inlining.
12374 case $host_cpu in
12375 hppa*64*)
12376 # +Z the default
12377 ;;
12378 *)
12379 lt_prog_compiler_pic_FC='-fPIC'
12380 ;;
12381 esac
12382 ;;
12383
12384 interix[3-9]*)
12385 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12386 # Instead, we relocate shared libraries at runtime.
12387 ;;
12388
12389 msdosdjgpp*)
12390 # Just because we use GCC doesn't mean we suddenly get shared libraries
12391 # on systems that don't support them.
12392 lt_prog_compiler_can_build_shared_FC=no
12393 enable_shared=no
12394 ;;
12395
12396 *nto* | *qnx*)
12397 # QNX uses GNU C++, but need to define -shared option too, otherwise
12398 # it will coredump.
12399 lt_prog_compiler_pic_FC='-fPIC -shared'
12400 ;;
12401
12402 sysv4*MP*)
12403 if test -d /usr/nec; then
12404 lt_prog_compiler_pic_FC=-Kconform_pic
12405 fi
12406 ;;
12407
12408 *)
12409 lt_prog_compiler_pic_FC='-fPIC'
12410 ;;
12411 esac
12412
12413 case $cc_basename in
12414 nvcc*) # Cuda Compiler Driver 2.2
12415 lt_prog_compiler_wl_FC='-Xlinker '
12416 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
12417 ;;
12418 esac
12419 else
12420 # PORTME Check for flag to pass linker flags through the system compiler.
12421 case $host_os in
12422 aix*)
12423 lt_prog_compiler_wl_FC='-Wl,'
12424 if test "$host_cpu" = ia64; then
12425 # AIX 5 now supports IA64 processor
12426 lt_prog_compiler_static_FC='-Bstatic'
12427 else
12428 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
12429 fi
12430 ;;
12431
12432 mingw* | cygwin* | pw32* | os2* | cegcc*)
12433 # This hack is so that the source file can tell whether it is being
12434 # built for inclusion in a dll (and should export symbols for example).
12435 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
12436 ;;
12437
12438 hpux9* | hpux10* | hpux11*)
12439 lt_prog_compiler_wl_FC='-Wl,'
12440 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12441 # not for PA HP-UX.
12442 case $host_cpu in
12443 hppa*64*|ia64*)
12444 # +Z the default
12445 ;;
12446 *)
12447 lt_prog_compiler_pic_FC='+Z'
12448 ;;
12449 esac
12450 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12451 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
12452 ;;
12453
12454 irix5* | irix6* | nonstopux*)
12455 lt_prog_compiler_wl_FC='-Wl,'
12456 # PIC (with -KPIC) is the default.
12457 lt_prog_compiler_static_FC='-non_shared'
12458 ;;
12459
12460 linux* | k*bsd*-gnu | kopensolaris*-gnu)
12461 case $cc_basename in
12462 # old Intel for x86_64 which still supported -KPIC.
12463 ecc*)
12464 lt_prog_compiler_wl_FC='-Wl,'
12465 lt_prog_compiler_pic_FC='-KPIC'
12466 lt_prog_compiler_static_FC='-static'
12467 ;;
12468 # icc used to be incompatible with GCC.
12469 # ICC 10 doesn't accept -KPIC any more.
12470 icc* | ifort*)
12471 lt_prog_compiler_wl_FC='-Wl,'
12472 lt_prog_compiler_pic_FC='-fPIC'
12473 lt_prog_compiler_static_FC='-static'
12474 ;;
12475 # Lahey Fortran 8.1.
12476 lf95*)
12477 lt_prog_compiler_wl_FC='-Wl,'
12478 lt_prog_compiler_pic_FC='--shared'
12479 lt_prog_compiler_static_FC='--static'
12480 ;;
12481 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
12482 # Portland Group compilers (*not* the Pentium gcc compiler,
12483 # which looks to be a dead project)
12484 lt_prog_compiler_wl_FC='-Wl,'
12485 lt_prog_compiler_pic_FC='-fpic'
12486 lt_prog_compiler_static_FC='-Bstatic'
12487 ;;
12488 ccc*)
12489 lt_prog_compiler_wl_FC='-Wl,'
12490 # All Alpha code is PIC.
12491 lt_prog_compiler_static_FC='-non_shared'
12492 ;;
12493 xl* | bgxl* | bgf* | mpixl*)
12494 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
12495 lt_prog_compiler_wl_FC='-Wl,'
12496 lt_prog_compiler_pic_FC='-qpic'
12497 lt_prog_compiler_static_FC='-qstaticlink'
12498 ;;
12499 *)
12500 case `$CC -V 2>&1 | sed 5q` in
12501 *Sun\ F* | *Sun*Fortran*)
12502 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12503 lt_prog_compiler_pic_FC='-KPIC'
12504 lt_prog_compiler_static_FC='-Bstatic'
12505 lt_prog_compiler_wl_FC=''
12506 ;;
12507 *Sun\ C*)
12508 # Sun C 5.9
12509 lt_prog_compiler_pic_FC='-KPIC'
12510 lt_prog_compiler_static_FC='-Bstatic'
12511 lt_prog_compiler_wl_FC='-Wl,'
12512 ;;
12513 esac
12514 ;;
12515 esac
12516 ;;
12517
12518 newsos6)
12519 lt_prog_compiler_pic_FC='-KPIC'
12520 lt_prog_compiler_static_FC='-Bstatic'
12521 ;;
12522
12523 *nto* | *qnx*)
12524 # QNX uses GNU C++, but need to define -shared option too, otherwise
12525 # it will coredump.
12526 lt_prog_compiler_pic_FC='-fPIC -shared'
12527 ;;
12528
12529 osf3* | osf4* | osf5*)
12530 lt_prog_compiler_wl_FC='-Wl,'
12531 # All OSF/1 code is PIC.
12532 lt_prog_compiler_static_FC='-non_shared'
12533 ;;
12534
12535 rdos*)
12536 lt_prog_compiler_static_FC='-non_shared'
12537 ;;
12538
12539 solaris*)
12540 lt_prog_compiler_pic_FC='-KPIC'
12541 lt_prog_compiler_static_FC='-Bstatic'
12542 case $cc_basename in
12543 f77* | f90* | f95*)
12544 lt_prog_compiler_wl_FC='-Qoption ld ';;
12545 *)
12546 lt_prog_compiler_wl_FC='-Wl,';;
12547 esac
12548 ;;
12549
12550 sunos4*)
12551 lt_prog_compiler_wl_FC='-Qoption ld '
12552 lt_prog_compiler_pic_FC='-PIC'
12553 lt_prog_compiler_static_FC='-Bstatic'
12554 ;;
12555
12556 sysv4 | sysv4.2uw2* | sysv4.3*)
12557 lt_prog_compiler_wl_FC='-Wl,'
12558 lt_prog_compiler_pic_FC='-KPIC'
12559 lt_prog_compiler_static_FC='-Bstatic'
12560 ;;
12561
12562 sysv4*MP*)
12563 if test -d /usr/nec ;then
12564 lt_prog_compiler_pic_FC='-Kconform_pic'
12565 lt_prog_compiler_static_FC='-Bstatic'
12566 fi
12567 ;;
12568
12569 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12570 lt_prog_compiler_wl_FC='-Wl,'
12571 lt_prog_compiler_pic_FC='-KPIC'
12572 lt_prog_compiler_static_FC='-Bstatic'
12573 ;;
12574
12575 unicos*)
12576 lt_prog_compiler_wl_FC='-Wl,'
12577 lt_prog_compiler_can_build_shared_FC=no
12578 ;;
12579
12580 uts4*)
12581 lt_prog_compiler_pic_FC='-pic'
12582 lt_prog_compiler_static_FC='-Bstatic'
12583 ;;
12584
12585 *)
12586 lt_prog_compiler_can_build_shared_FC=no
12587 ;;
12588 esac
12589 fi
12590
12591 case $host_os in
12592 # For platforms which do not support PIC, -DPIC is meaningless:
12593 *djgpp*)
12594 lt_prog_compiler_pic_FC=
12595 ;;
12596 *)
12597 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
12598 ;;
12599 esac
12600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
12601 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
12602
12603
12604
12605 #
12606 # Check to make sure the PIC flag actually works.
12607 #
12608 if test -n "$lt_prog_compiler_pic_FC"; then
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
12610 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
12611 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
12612 $as_echo_n "(cached) " >&6
12613 else
12614 lt_cv_prog_compiler_pic_works_FC=no
12615 ac_outfile=conftest.$ac_objext
12616 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12617 lt_compiler_flag="$lt_prog_compiler_pic_FC"
12618 # Insert the option either (1) after the last *FLAGS variable, or
12619 # (2) before a word containing "conftest.", or (3) at the end.
12620 # Note that $ac_compile itself does not contain backslashes and begins
12621 # with a dollar sign (not a hyphen), so the echo should work correctly.
12622 # The option is referenced via a variable to avoid confusing sed.
12623 lt_compile=`echo "$ac_compile" | $SED \
12624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12626 -e 's:$: $lt_compiler_flag:'`
12627 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12628 (eval "$lt_compile" 2>conftest.err)
12629 ac_status=$?
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 if (exit $ac_status) && test -s "$ac_outfile"; then
12633 # The compiler can only warn and ignore the option if not recognized
12634 # So say no if there are warnings other than the usual output.
12635 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12638 lt_cv_prog_compiler_pic_works_FC=yes
12639 fi
12640 fi
12641 $RM conftest*
12642
12643 fi
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
12645 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
12646
12647 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
12648 case $lt_prog_compiler_pic_FC in
12649 "" | " "*) ;;
12650 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
12651 esac
12652 else
12653 lt_prog_compiler_pic_FC=
12654 lt_prog_compiler_can_build_shared_FC=no
12655 fi
12656
12657 fi
12658
12659
12660
12661 #
12662 # Check to make sure the static flag actually works.
12663 #
12664 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12666 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12667 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 lt_cv_prog_compiler_static_works_FC=no
12671 save_LDFLAGS="$LDFLAGS"
12672 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12673 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12674 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12675 # The linker can only warn and ignore the option if not recognized
12676 # So say no if there are warnings
12677 if test -s conftest.err; then
12678 # Append any errors to the config.log.
12679 cat conftest.err 1>&5
12680 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12681 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12682 if diff conftest.exp conftest.er2 >/dev/null; then
12683 lt_cv_prog_compiler_static_works_FC=yes
12684 fi
12685 else
12686 lt_cv_prog_compiler_static_works_FC=yes
12687 fi
12688 fi
12689 $RM -r conftest*
12690 LDFLAGS="$save_LDFLAGS"
12691
12692 fi
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
12694 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
12695
12696 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
12697 :
12698 else
12699 lt_prog_compiler_static_FC=
12700 fi
12701
12702
12703
12704
12705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12706 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12707 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12708 $as_echo_n "(cached) " >&6
12709 else
12710 lt_cv_prog_compiler_c_o_FC=no
12711 $RM -r conftest 2>/dev/null
12712 mkdir conftest
12713 cd conftest
12714 mkdir out
12715 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12716
12717 lt_compiler_flag="-o out/conftest2.$ac_objext"
12718 # Insert the option either (1) after the last *FLAGS variable, or
12719 # (2) before a word containing "conftest.", or (3) at the end.
12720 # Note that $ac_compile itself does not contain backslashes and begins
12721 # with a dollar sign (not a hyphen), so the echo should work correctly.
12722 lt_compile=`echo "$ac_compile" | $SED \
12723 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12724 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12725 -e 's:$: $lt_compiler_flag:'`
12726 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12727 (eval "$lt_compile" 2>out/conftest.err)
12728 ac_status=$?
12729 cat out/conftest.err >&5
12730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12731 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12732 then
12733 # The compiler can only warn and ignore the option if not recognized
12734 # So say no if there are warnings
12735 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12736 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12737 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12738 lt_cv_prog_compiler_c_o_FC=yes
12739 fi
12740 fi
12741 chmod u+w . 2>&5
12742 $RM conftest*
12743 # SGI C++ compiler will create directory out/ii_files/ for
12744 # template instantiation
12745 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12746 $RM out/* && rmdir out
12747 cd ..
12748 $RM -r conftest
12749 $RM conftest*
12750
12751 fi
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12753 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12754
12755
12756
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12758 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12759 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
12760 $as_echo_n "(cached) " >&6
12761 else
12762 lt_cv_prog_compiler_c_o_FC=no
12763 $RM -r conftest 2>/dev/null
12764 mkdir conftest
12765 cd conftest
12766 mkdir out
12767 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12768
12769 lt_compiler_flag="-o out/conftest2.$ac_objext"
12770 # Insert the option either (1) after the last *FLAGS variable, or
12771 # (2) before a word containing "conftest.", or (3) at the end.
12772 # Note that $ac_compile itself does not contain backslashes and begins
12773 # with a dollar sign (not a hyphen), so the echo should work correctly.
12774 lt_compile=`echo "$ac_compile" | $SED \
12775 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12776 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12777 -e 's:$: $lt_compiler_flag:'`
12778 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12779 (eval "$lt_compile" 2>out/conftest.err)
12780 ac_status=$?
12781 cat out/conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12784 then
12785 # The compiler can only warn and ignore the option if not recognized
12786 # So say no if there are warnings
12787 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12788 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12789 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12790 lt_cv_prog_compiler_c_o_FC=yes
12791 fi
12792 fi
12793 chmod u+w . 2>&5
12794 $RM conftest*
12795 # SGI C++ compiler will create directory out/ii_files/ for
12796 # template instantiation
12797 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12798 $RM out/* && rmdir out
12799 cd ..
12800 $RM -r conftest
12801 $RM conftest*
12802
12803 fi
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
12805 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
12806
12807
12808
12809
12810 hard_links="nottested"
12811 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
12812 # do not overwrite the value of need_locks provided by the user
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12814 $as_echo_n "checking if we can lock with hard links... " >&6; }
12815 hard_links=yes
12816 $RM conftest*
12817 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12818 touch conftest.a
12819 ln conftest.a conftest.b 2>&5 || hard_links=no
12820 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12822 $as_echo "$hard_links" >&6; }
12823 if test "$hard_links" = no; then
12824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12825 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12826 need_locks=warn
12827 fi
12828 else
12829 need_locks=no
12830 fi
12831
12832
12833
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12835 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12836
12837 runpath_var=
12838 allow_undefined_flag_FC=
12839 always_export_symbols_FC=no
12840 archive_cmds_FC=
12841 archive_expsym_cmds_FC=
12842 compiler_needs_object_FC=no
12843 enable_shared_with_static_runtimes_FC=no
12844 export_dynamic_flag_spec_FC=
12845 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12846 hardcode_automatic_FC=no
12847 hardcode_direct_FC=no
12848 hardcode_direct_absolute_FC=no
12849 hardcode_libdir_flag_spec_FC=
12850 hardcode_libdir_flag_spec_ld_FC=
12851 hardcode_libdir_separator_FC=
12852 hardcode_minus_L_FC=no
12853 hardcode_shlibpath_var_FC=unsupported
12854 inherit_rpath_FC=no
12855 link_all_deplibs_FC=unknown
12856 module_cmds_FC=
12857 module_expsym_cmds_FC=
12858 old_archive_from_new_cmds_FC=
12859 old_archive_from_expsyms_cmds_FC=
12860 thread_safe_flag_spec_FC=
12861 whole_archive_flag_spec_FC=
12862 # include_expsyms should be a list of space-separated symbols to be *always*
12863 # included in the symbol list
12864 include_expsyms_FC=
12865 # exclude_expsyms can be an extended regexp of symbols to exclude
12866 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12867 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12868 # as well as any symbol that contains `d'.
12869 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12870 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12871 # platforms (ab)use it in PIC code, but their linkers get confused if
12872 # the symbol is explicitly referenced. Since portable code cannot
12873 # rely on this symbol name, it's probably fine to never include it in
12874 # preloaded symbol tables.
12875 # Exclude shared library initialization/finalization symbols.
12876 extract_expsyms_cmds=
12877
12878 case $host_os in
12879 cygwin* | mingw* | pw32* | cegcc*)
12880 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12881 # When not using gcc, we currently assume that we are using
12882 # Microsoft Visual C++.
12883 if test "$GCC" != yes; then
12884 with_gnu_ld=no
12885 fi
12886 ;;
12887 interix*)
12888 # we just hope/assume this is gcc and not c89 (= MSVC++)
12889 with_gnu_ld=yes
12890 ;;
12891 openbsd*)
12892 with_gnu_ld=no
12893 ;;
12894 esac
12895
12896 ld_shlibs_FC=yes
12897
12898 # On some targets, GNU ld is compatible enough with the native linker
12899 # that we're better off using the native interface for both.
12900 lt_use_gnu_ld_interface=no
12901 if test "$with_gnu_ld" = yes; then
12902 case $host_os in
12903 aix*)
12904 # The AIX port of GNU ld has always aspired to compatibility
12905 # with the native linker. However, as the warning in the GNU ld
12906 # block says, versions before 2.19.5* couldn't really create working
12907 # shared libraries, regardless of the interface used.
12908 case `$LD -v 2>&1` in
12909 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12910 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12911 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12912 *)
12913 lt_use_gnu_ld_interface=yes
12914 ;;
12915 esac
12916 ;;
12917 *)
12918 lt_use_gnu_ld_interface=yes
12919 ;;
12920 esac
12921 fi
12922
12923 if test "$lt_use_gnu_ld_interface" = yes; then
12924 # If archive_cmds runs LD, not CC, wlarc should be empty
12925 wlarc='${wl}'
12926
12927 # Set some defaults for GNU ld with shared library support. These
12928 # are reset later if shared libraries are not supported. Putting them
12929 # here allows them to be overridden if necessary.
12930 runpath_var=LD_RUN_PATH
12931 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
12932 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
12933 # ancient GNU ld didn't support --whole-archive et. al.
12934 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12935 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12936 else
12937 whole_archive_flag_spec_FC=
12938 fi
12939 supports_anon_versioning=no
12940 case `$LD -v 2>&1` in
12941 *GNU\ gold*) supports_anon_versioning=yes ;;
12942 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12943 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12944 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12945 *\ 2.11.*) ;; # other 2.11 versions
12946 *) supports_anon_versioning=yes ;;
12947 esac
12948
12949 # See if GNU ld supports shared libraries.
12950 case $host_os in
12951 aix[3-9]*)
12952 # On AIX/PPC, the GNU linker is very broken
12953 if test "$host_cpu" != ia64; then
12954 ld_shlibs_FC=no
12955 cat <<_LT_EOF 1>&2
12956
12957 *** Warning: the GNU linker, at least up to release 2.19, is reported
12958 *** to be unable to reliably create shared libraries on AIX.
12959 *** Therefore, libtool is disabling shared libraries support. If you
12960 *** really care for shared libraries, you may want to install binutils
12961 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12962 *** You will then need to restart the configuration process.
12963
12964 _LT_EOF
12965 fi
12966 ;;
12967
12968 amigaos*)
12969 case $host_cpu in
12970 powerpc)
12971 # see comment about AmigaOS4 .so support
12972 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12973 archive_expsym_cmds_FC=''
12974 ;;
12975 m68k)
12976 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)'
12977 hardcode_libdir_flag_spec_FC='-L$libdir'
12978 hardcode_minus_L_FC=yes
12979 ;;
12980 esac
12981 ;;
12982
12983 beos*)
12984 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12985 allow_undefined_flag_FC=unsupported
12986 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12987 # support --undefined. This deserves some investigation. FIXME
12988 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12989 else
12990 ld_shlibs_FC=no
12991 fi
12992 ;;
12993
12994 cygwin* | mingw* | pw32* | cegcc*)
12995 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
12996 # as there is no search path for DLLs.
12997 hardcode_libdir_flag_spec_FC='-L$libdir'
12998 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
12999 allow_undefined_flag_FC=unsupported
13000 always_export_symbols_FC=no
13001 enable_shared_with_static_runtimes_FC=yes
13002 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13003
13004 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13005 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13006 # If the export-symbols file already is a .def file (1st line
13007 # is EXPORTS), use it as is; otherwise, prepend...
13008 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13009 cp $export_symbols $output_objdir/$soname.def;
13010 else
13011 echo EXPORTS > $output_objdir/$soname.def;
13012 cat $export_symbols >> $output_objdir/$soname.def;
13013 fi~
13014 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13015 else
13016 ld_shlibs_FC=no
13017 fi
13018 ;;
13019
13020 haiku*)
13021 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13022 link_all_deplibs_FC=yes
13023 ;;
13024
13025 interix[3-9]*)
13026 hardcode_direct_FC=no
13027 hardcode_shlibpath_var_FC=no
13028 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13029 export_dynamic_flag_spec_FC='${wl}-E'
13030 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13031 # Instead, shared libraries are loaded at an image base (0x10000000 by
13032 # default) and relocated if they conflict, which is a slow very memory
13033 # consuming and fragmenting process. To avoid this, we pick a random,
13034 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13035 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13036 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'
13037 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'
13038 ;;
13039
13040 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13041 tmp_diet=no
13042 if test "$host_os" = linux-dietlibc; then
13043 case $cc_basename in
13044 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13045 esac
13046 fi
13047 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13048 && test "$tmp_diet" = no
13049 then
13050 tmp_addflag=' $pic_flag'
13051 tmp_sharedflag='-shared'
13052 case $cc_basename,$host_cpu in
13053 pgcc*) # Portland Group C compiler
13054 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'
13055 tmp_addflag=' $pic_flag'
13056 ;;
13057 pgf77* | pgf90* | pgf95* | pgfortran*)
13058 # Portland Group f77 and f90 compilers
13059 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'
13060 tmp_addflag=' $pic_flag -Mnomain' ;;
13061 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13062 tmp_addflag=' -i_dynamic' ;;
13063 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13064 tmp_addflag=' -i_dynamic -nofor_main' ;;
13065 ifc* | ifort*) # Intel Fortran compiler
13066 tmp_addflag=' -nofor_main' ;;
13067 lf95*) # Lahey Fortran 8.1
13068 whole_archive_flag_spec_FC=
13069 tmp_sharedflag='--shared' ;;
13070 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13071 tmp_sharedflag='-qmkshrobj'
13072 tmp_addflag= ;;
13073 nvcc*) # Cuda Compiler Driver 2.2
13074 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'
13075 compiler_needs_object_FC=yes
13076 ;;
13077 esac
13078 case `$CC -V 2>&1 | sed 5q` in
13079 *Sun\ C*) # Sun C 5.9
13080 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'
13081 compiler_needs_object_FC=yes
13082 tmp_sharedflag='-G' ;;
13083 *Sun\ F*) # Sun Fortran 8.3
13084 tmp_sharedflag='-G' ;;
13085 esac
13086 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13087
13088 if test "x$supports_anon_versioning" = xyes; then
13089 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13090 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13091 echo "local: *; };" >> $output_objdir/$libname.ver~
13092 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13093 fi
13094
13095 case $cc_basename in
13096 xlf* | bgf* | bgxlf* | mpixlf*)
13097 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13098 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13099 hardcode_libdir_flag_spec_FC=
13100 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13101 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13102 if test "x$supports_anon_versioning" = xyes; then
13103 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13104 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13105 echo "local: *; };" >> $output_objdir/$libname.ver~
13106 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13107 fi
13108 ;;
13109 esac
13110 else
13111 ld_shlibs_FC=no
13112 fi
13113 ;;
13114
13115 netbsd*)
13116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13117 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13118 wlarc=
13119 else
13120 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13121 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13122 fi
13123 ;;
13124
13125 solaris*)
13126 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13127 ld_shlibs_FC=no
13128 cat <<_LT_EOF 1>&2
13129
13130 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13131 *** create shared libraries on Solaris systems. Therefore, libtool
13132 *** is disabling shared libraries support. We urge you to upgrade GNU
13133 *** binutils to release 2.9.1 or newer. Another option is to modify
13134 *** your PATH or compiler configuration so that the native linker is
13135 *** used, and then restart.
13136
13137 _LT_EOF
13138 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13139 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13140 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13141 else
13142 ld_shlibs_FC=no
13143 fi
13144 ;;
13145
13146 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13147 case `$LD -v 2>&1` in
13148 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13149 ld_shlibs_FC=no
13150 cat <<_LT_EOF 1>&2
13151
13152 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13153 *** reliably create shared libraries on SCO systems. Therefore, libtool
13154 *** is disabling shared libraries support. We urge you to upgrade GNU
13155 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13156 *** your PATH or compiler configuration so that the native linker is
13157 *** used, and then restart.
13158
13159 _LT_EOF
13160 ;;
13161 *)
13162 # For security reasons, it is highly recommended that you always
13163 # use absolute paths for naming shared libraries, and exclude the
13164 # DT_RUNPATH tag from executables and libraries. But doing so
13165 # requires that you compile everything twice, which is a pain.
13166 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13167 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13168 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13169 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13170 else
13171 ld_shlibs_FC=no
13172 fi
13173 ;;
13174 esac
13175 ;;
13176
13177 sunos4*)
13178 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13179 wlarc=
13180 hardcode_direct_FC=yes
13181 hardcode_shlibpath_var_FC=no
13182 ;;
13183
13184 *)
13185 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13186 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13187 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13188 else
13189 ld_shlibs_FC=no
13190 fi
13191 ;;
13192 esac
13193
13194 if test "$ld_shlibs_FC" = no; then
13195 runpath_var=
13196 hardcode_libdir_flag_spec_FC=
13197 export_dynamic_flag_spec_FC=
13198 whole_archive_flag_spec_FC=
13199 fi
13200 else
13201 # PORTME fill in a description of your system's linker (not GNU ld)
13202 case $host_os in
13203 aix3*)
13204 allow_undefined_flag_FC=unsupported
13205 always_export_symbols_FC=yes
13206 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'
13207 # Note: this linker hardcodes the directories in LIBPATH if there
13208 # are no directories specified by -L.
13209 hardcode_minus_L_FC=yes
13210 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13211 # Neither direct hardcoding nor static linking is supported with a
13212 # broken collect2.
13213 hardcode_direct_FC=unsupported
13214 fi
13215 ;;
13216
13217 aix[4-9]*)
13218 if test "$host_cpu" = ia64; then
13219 # On IA64, the linker does run time linking by default, so we don't
13220 # have to do anything special.
13221 aix_use_runtimelinking=no
13222 exp_sym_flag='-Bexport'
13223 no_entry_flag=""
13224 else
13225 # If we're using GNU nm, then we don't want the "-C" option.
13226 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13227 # Also, AIX nm treats weak defined symbols like other global
13228 # defined symbols, whereas GNU nm marks them as "W".
13229 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13230 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'
13231 else
13232 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'
13233 fi
13234 aix_use_runtimelinking=no
13235
13236 # Test if we are trying to use run time linking or normal
13237 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13238 # need to do runtime linking.
13239 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13240 for ld_flag in $LDFLAGS; do
13241 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13242 aix_use_runtimelinking=yes
13243 break
13244 fi
13245 done
13246 ;;
13247 esac
13248
13249 exp_sym_flag='-bexport'
13250 no_entry_flag='-bnoentry'
13251 fi
13252
13253 # When large executables or shared objects are built, AIX ld can
13254 # have problems creating the table of contents. If linking a library
13255 # or program results in "error TOC overflow" add -mminimal-toc to
13256 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13257 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13258
13259 archive_cmds_FC=''
13260 hardcode_direct_FC=yes
13261 hardcode_direct_absolute_FC=yes
13262 hardcode_libdir_separator_FC=':'
13263 link_all_deplibs_FC=yes
13264 file_list_spec_FC='${wl}-f,'
13265
13266 if test "$GCC" = yes; then
13267 case $host_os in aix4.[012]|aix4.[012].*)
13268 # We only want to do this on AIX 4.2 and lower, the check
13269 # below for broken collect2 doesn't work under 4.3+
13270 collect2name=`${CC} -print-prog-name=collect2`
13271 if test -f "$collect2name" &&
13272 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13273 then
13274 # We have reworked collect2
13275 :
13276 else
13277 # We have old collect2
13278 hardcode_direct_FC=unsupported
13279 # It fails to find uninstalled libraries when the uninstalled
13280 # path is not listed in the libpath. Setting hardcode_minus_L
13281 # to unsupported forces relinking
13282 hardcode_minus_L_FC=yes
13283 hardcode_libdir_flag_spec_FC='-L$libdir'
13284 hardcode_libdir_separator_FC=
13285 fi
13286 ;;
13287 esac
13288 shared_flag='-shared'
13289 if test "$aix_use_runtimelinking" = yes; then
13290 shared_flag="$shared_flag "'${wl}-G'
13291 fi
13292 else
13293 # not using gcc
13294 if test "$host_cpu" = ia64; then
13295 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13296 # chokes on -Wl,-G. The following line is correct:
13297 shared_flag='-G'
13298 else
13299 if test "$aix_use_runtimelinking" = yes; then
13300 shared_flag='${wl}-G'
13301 else
13302 shared_flag='${wl}-bM:SRE'
13303 fi
13304 fi
13305 fi
13306
13307 export_dynamic_flag_spec_FC='${wl}-bexpall'
13308 # It seems that -bexpall does not export symbols beginning with
13309 # underscore (_), so it is better to generate a list of symbols to export.
13310 always_export_symbols_FC=yes
13311 if test "$aix_use_runtimelinking" = yes; then
13312 # Warning - without using the other runtime loading flags (-brtl),
13313 # -berok will link without error, but may produce a broken library.
13314 allow_undefined_flag_FC='-berok'
13315 # Determine the default libpath from the value encoded in an
13316 # empty executable.
13317 cat > conftest.$ac_ext <<_ACEOF
13318 program main
13319
13320 end
13321 _ACEOF
13322 if ac_fn_fc_try_link "$LINENO"; then :
13323
13324 lt_aix_libpath_sed='
13325 /Import File Strings/,/^$/ {
13326 /^0/ {
13327 s/^0 *\(.*\)$/\1/
13328 p
13329 }
13330 }'
13331 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13332 # Check for a 64-bit object if we didn't find anything.
13333 if test -z "$aix_libpath"; then
13334 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13335 fi
13336 fi
13337 rm -f core conftest.err conftest.$ac_objext \
13338 conftest$ac_exeext conftest.$ac_ext
13339 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13340
13341 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13342 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"
13343 else
13344 if test "$host_cpu" = ia64; then
13345 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
13346 allow_undefined_flag_FC="-z nodefs"
13347 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"
13348 else
13349 # Determine the default libpath from the value encoded in an
13350 # empty executable.
13351 cat > conftest.$ac_ext <<_ACEOF
13352 program main
13353
13354 end
13355 _ACEOF
13356 if ac_fn_fc_try_link "$LINENO"; then :
13357
13358 lt_aix_libpath_sed='
13359 /Import File Strings/,/^$/ {
13360 /^0/ {
13361 s/^0 *\(.*\)$/\1/
13362 p
13363 }
13364 }'
13365 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13366 # Check for a 64-bit object if we didn't find anything.
13367 if test -z "$aix_libpath"; then
13368 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13369 fi
13370 fi
13371 rm -f core conftest.err conftest.$ac_objext \
13372 conftest$ac_exeext conftest.$ac_ext
13373 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13374
13375 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
13376 # Warning - without using the other run time loading flags,
13377 # -berok will link without error, but may produce a broken library.
13378 no_undefined_flag_FC=' ${wl}-bernotok'
13379 allow_undefined_flag_FC=' ${wl}-berok'
13380 if test "$with_gnu_ld" = yes; then
13381 # We only use this code for GNU lds that support --whole-archive.
13382 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13383 else
13384 # Exported symbols can be pulled into shared objects from archives
13385 whole_archive_flag_spec_FC='$convenience'
13386 fi
13387 archive_cmds_need_lc_FC=yes
13388 # This is similar to how AIX traditionally builds its shared libraries.
13389 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'
13390 fi
13391 fi
13392 ;;
13393
13394 amigaos*)
13395 case $host_cpu in
13396 powerpc)
13397 # see comment about AmigaOS4 .so support
13398 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13399 archive_expsym_cmds_FC=''
13400 ;;
13401 m68k)
13402 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)'
13403 hardcode_libdir_flag_spec_FC='-L$libdir'
13404 hardcode_minus_L_FC=yes
13405 ;;
13406 esac
13407 ;;
13408
13409 bsdi[45]*)
13410 export_dynamic_flag_spec_FC=-rdynamic
13411 ;;
13412
13413 cygwin* | mingw* | pw32* | cegcc*)
13414 # When not using gcc, we currently assume that we are using
13415 # Microsoft Visual C++.
13416 # hardcode_libdir_flag_spec is actually meaningless, as there is
13417 # no search path for DLLs.
13418 hardcode_libdir_flag_spec_FC=' '
13419 allow_undefined_flag_FC=unsupported
13420 # Tell ltmain to make .lib files, not .a files.
13421 libext=lib
13422 # Tell ltmain to make .dll files, not .so files.
13423 shrext_cmds=".dll"
13424 # FIXME: Setting linknames here is a bad hack.
13425 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
13426 # The linker will automatically build a .lib file if we build a DLL.
13427 old_archive_from_new_cmds_FC='true'
13428 # FIXME: Should let the user specify the lib program.
13429 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
13430 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
13431 enable_shared_with_static_runtimes_FC=yes
13432 ;;
13433
13434 darwin* | rhapsody*)
13435
13436
13437 archive_cmds_need_lc_FC=no
13438 hardcode_direct_FC=no
13439 hardcode_automatic_FC=yes
13440 hardcode_shlibpath_var_FC=unsupported
13441 if test "$lt_cv_ld_force_load" = "yes"; then
13442 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\"`'
13443 else
13444 whole_archive_flag_spec_FC=''
13445 fi
13446 link_all_deplibs_FC=yes
13447 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
13448 case $cc_basename in
13449 ifort*) _lt_dar_can_shared=yes ;;
13450 *) _lt_dar_can_shared=$GCC ;;
13451 esac
13452 if test "$_lt_dar_can_shared" = "yes"; then
13453 output_verbose_link_cmd=func_echo_all
13454 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}"
13455 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13456 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}"
13457 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}"
13458
13459 else
13460 ld_shlibs_FC=no
13461 fi
13462
13463 ;;
13464
13465 dgux*)
13466 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13467 hardcode_libdir_flag_spec_FC='-L$libdir'
13468 hardcode_shlibpath_var_FC=no
13469 ;;
13470
13471 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13472 # support. Future versions do this automatically, but an explicit c++rt0.o
13473 # does not break anything, and helps significantly (at the cost of a little
13474 # extra space).
13475 freebsd2.2*)
13476 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13477 hardcode_libdir_flag_spec_FC='-R$libdir'
13478 hardcode_direct_FC=yes
13479 hardcode_shlibpath_var_FC=no
13480 ;;
13481
13482 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13483 freebsd2.*)
13484 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13485 hardcode_direct_FC=yes
13486 hardcode_minus_L_FC=yes
13487 hardcode_shlibpath_var_FC=no
13488 ;;
13489
13490 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13491 freebsd* | dragonfly*)
13492 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13493 hardcode_libdir_flag_spec_FC='-R$libdir'
13494 hardcode_direct_FC=yes
13495 hardcode_shlibpath_var_FC=no
13496 ;;
13497
13498 hpux9*)
13499 if test "$GCC" = yes; then
13500 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'
13501 else
13502 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'
13503 fi
13504 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13505 hardcode_libdir_separator_FC=:
13506 hardcode_direct_FC=yes
13507
13508 # hardcode_minus_L: Not really in the search PATH,
13509 # but as the default location of the library.
13510 hardcode_minus_L_FC=yes
13511 export_dynamic_flag_spec_FC='${wl}-E'
13512 ;;
13513
13514 hpux10*)
13515 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13516 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13517 else
13518 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13519 fi
13520 if test "$with_gnu_ld" = no; then
13521 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13522 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
13523 hardcode_libdir_separator_FC=:
13524 hardcode_direct_FC=yes
13525 hardcode_direct_absolute_FC=yes
13526 export_dynamic_flag_spec_FC='${wl}-E'
13527 # hardcode_minus_L: Not really in the search PATH,
13528 # but as the default location of the library.
13529 hardcode_minus_L_FC=yes
13530 fi
13531 ;;
13532
13533 hpux11*)
13534 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
13535 case $host_cpu in
13536 hppa*64*)
13537 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13538 ;;
13539 ia64*)
13540 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13541 ;;
13542 *)
13543 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13544 ;;
13545 esac
13546 else
13547 case $host_cpu in
13548 hppa*64*)
13549 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13550 ;;
13551 ia64*)
13552 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13553 ;;
13554 *)
13555 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13556 ;;
13557 esac
13558 fi
13559 if test "$with_gnu_ld" = no; then
13560 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
13561 hardcode_libdir_separator_FC=:
13562
13563 case $host_cpu in
13564 hppa*64*|ia64*)
13565 hardcode_direct_FC=no
13566 hardcode_shlibpath_var_FC=no
13567 ;;
13568 *)
13569 hardcode_direct_FC=yes
13570 hardcode_direct_absolute_FC=yes
13571 export_dynamic_flag_spec_FC='${wl}-E'
13572
13573 # hardcode_minus_L: Not really in the search PATH,
13574 # but as the default location of the library.
13575 hardcode_minus_L_FC=yes
13576 ;;
13577 esac
13578 fi
13579 ;;
13580
13581 irix5* | irix6* | nonstopux*)
13582 if test "$GCC" = yes; then
13583 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'
13584 # Try to use the -exported_symbol ld option, if it does not
13585 # work, assume that -exports_file does not work either and
13586 # implicitly export all symbols.
13587 save_LDFLAGS="$LDFLAGS"
13588 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
13589 cat > conftest.$ac_ext <<_ACEOF
13590 int foo(void) {}
13591 _ACEOF
13592 if ac_fn_fc_try_link "$LINENO"; then :
13593 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'
13594
13595 fi
13596 rm -f core conftest.err conftest.$ac_objext \
13597 conftest$ac_exeext conftest.$ac_ext
13598 LDFLAGS="$save_LDFLAGS"
13599 else
13600 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'
13601 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'
13602 fi
13603 archive_cmds_need_lc_FC='no'
13604 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13605 hardcode_libdir_separator_FC=:
13606 inherit_rpath_FC=yes
13607 link_all_deplibs_FC=yes
13608 ;;
13609
13610 netbsd*)
13611 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13612 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13613 else
13614 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13615 fi
13616 hardcode_libdir_flag_spec_FC='-R$libdir'
13617 hardcode_direct_FC=yes
13618 hardcode_shlibpath_var_FC=no
13619 ;;
13620
13621 newsos6)
13622 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13623 hardcode_direct_FC=yes
13624 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13625 hardcode_libdir_separator_FC=:
13626 hardcode_shlibpath_var_FC=no
13627 ;;
13628
13629 *nto* | *qnx*)
13630 ;;
13631
13632 openbsd*)
13633 if test -f /usr/libexec/ld.so; then
13634 hardcode_direct_FC=yes
13635 hardcode_shlibpath_var_FC=no
13636 hardcode_direct_absolute_FC=yes
13637 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13638 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13639 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13640 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13641 export_dynamic_flag_spec_FC='${wl}-E'
13642 else
13643 case $host_os in
13644 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
13645 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13646 hardcode_libdir_flag_spec_FC='-R$libdir'
13647 ;;
13648 *)
13649 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13650 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13651 ;;
13652 esac
13653 fi
13654 else
13655 ld_shlibs_FC=no
13656 fi
13657 ;;
13658
13659 os2*)
13660 hardcode_libdir_flag_spec_FC='-L$libdir'
13661 hardcode_minus_L_FC=yes
13662 allow_undefined_flag_FC=unsupported
13663 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'
13664 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13665 ;;
13666
13667 osf3*)
13668 if test "$GCC" = yes; then
13669 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13670 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'
13671 else
13672 allow_undefined_flag_FC=' -expect_unresolved \*'
13673 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'
13674 fi
13675 archive_cmds_need_lc_FC='no'
13676 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13677 hardcode_libdir_separator_FC=:
13678 ;;
13679
13680 osf4* | osf5*) # as osf3* with the addition of -msym flag
13681 if test "$GCC" = yes; then
13682 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
13683 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'
13684 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13685 else
13686 allow_undefined_flag_FC=' -expect_unresolved \*'
13687 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'
13688 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~
13689 $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'
13690
13691 # Both c and cxx compiler support -rpath directly
13692 hardcode_libdir_flag_spec_FC='-rpath $libdir'
13693 fi
13694 archive_cmds_need_lc_FC='no'
13695 hardcode_libdir_separator_FC=:
13696 ;;
13697
13698 solaris*)
13699 no_undefined_flag_FC=' -z defs'
13700 if test "$GCC" = yes; then
13701 wlarc='${wl}'
13702 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13703 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13704 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13705 else
13706 case `$CC -V 2>&1` in
13707 *"Compilers 5.0"*)
13708 wlarc=''
13709 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13710 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13711 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13712 ;;
13713 *)
13714 wlarc='${wl}'
13715 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13716 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13717 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13718 ;;
13719 esac
13720 fi
13721 hardcode_libdir_flag_spec_FC='-R$libdir'
13722 hardcode_shlibpath_var_FC=no
13723 case $host_os in
13724 solaris2.[0-5] | solaris2.[0-5].*) ;;
13725 *)
13726 # The compiler driver will combine and reorder linker options,
13727 # but understands `-z linker_flag'. GCC discards it without `$wl',
13728 # but is careful enough not to reorder.
13729 # Supported since Solaris 2.6 (maybe 2.5.1?)
13730 if test "$GCC" = yes; then
13731 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13732 else
13733 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
13734 fi
13735 ;;
13736 esac
13737 link_all_deplibs_FC=yes
13738 ;;
13739
13740 sunos4*)
13741 if test "x$host_vendor" = xsequent; then
13742 # Use $CC to link under sequent, because it throws in some extra .o
13743 # files that make .init and .fini sections work.
13744 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13745 else
13746 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13747 fi
13748 hardcode_libdir_flag_spec_FC='-L$libdir'
13749 hardcode_direct_FC=yes
13750 hardcode_minus_L_FC=yes
13751 hardcode_shlibpath_var_FC=no
13752 ;;
13753
13754 sysv4)
13755 case $host_vendor in
13756 sni)
13757 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13758 hardcode_direct_FC=yes # is this really true???
13759 ;;
13760 siemens)
13761 ## LD is ld it makes a PLAMLIB
13762 ## CC just makes a GrossModule.
13763 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13764 reload_cmds_FC='$CC -r -o $output$reload_objs'
13765 hardcode_direct_FC=no
13766 ;;
13767 motorola)
13768 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13769 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
13770 ;;
13771 esac
13772 runpath_var='LD_RUN_PATH'
13773 hardcode_shlibpath_var_FC=no
13774 ;;
13775
13776 sysv4.3*)
13777 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13778 hardcode_shlibpath_var_FC=no
13779 export_dynamic_flag_spec_FC='-Bexport'
13780 ;;
13781
13782 sysv4*MP*)
13783 if test -d /usr/nec; then
13784 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13785 hardcode_shlibpath_var_FC=no
13786 runpath_var=LD_RUN_PATH
13787 hardcode_runpath_var=yes
13788 ld_shlibs_FC=yes
13789 fi
13790 ;;
13791
13792 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13793 no_undefined_flag_FC='${wl}-z,text'
13794 archive_cmds_need_lc_FC=no
13795 hardcode_shlibpath_var_FC=no
13796 runpath_var='LD_RUN_PATH'
13797
13798 if test "$GCC" = yes; then
13799 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13800 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13801 else
13802 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13803 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13804 fi
13805 ;;
13806
13807 sysv5* | sco3.2v5* | sco5v6*)
13808 # Note: We can NOT use -z defs as we might desire, because we do not
13809 # link with -lc, and that would cause any symbols used from libc to
13810 # always be unresolved, which means just about no library would
13811 # ever link correctly. If we're not using GNU ld we use -z text
13812 # though, which does catch some bad symbols but isn't as heavy-handed
13813 # as -z defs.
13814 no_undefined_flag_FC='${wl}-z,text'
13815 allow_undefined_flag_FC='${wl}-z,nodefs'
13816 archive_cmds_need_lc_FC=no
13817 hardcode_shlibpath_var_FC=no
13818 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
13819 hardcode_libdir_separator_FC=':'
13820 link_all_deplibs_FC=yes
13821 export_dynamic_flag_spec_FC='${wl}-Bexport'
13822 runpath_var='LD_RUN_PATH'
13823
13824 if test "$GCC" = yes; then
13825 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13826 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13827 else
13828 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13829 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13830 fi
13831 ;;
13832
13833 uts4*)
13834 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13835 hardcode_libdir_flag_spec_FC='-L$libdir'
13836 hardcode_shlibpath_var_FC=no
13837 ;;
13838
13839 *)
13840 ld_shlibs_FC=no
13841 ;;
13842 esac
13843
13844 if test x$host_vendor = xsni; then
13845 case $host in
13846 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13847 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
13848 ;;
13849 esac
13850 fi
13851 fi
13852
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
13854 $as_echo "$ld_shlibs_FC" >&6; }
13855 test "$ld_shlibs_FC" = no && can_build_shared=no
13856
13857 with_gnu_ld_FC=$with_gnu_ld
13858
13859
13860
13861
13862
13863
13864 #
13865 # Do we need to explicitly link libc?
13866 #
13867 case "x$archive_cmds_need_lc_FC" in
13868 x|xyes)
13869 # Assume -lc should be added
13870 archive_cmds_need_lc_FC=yes
13871
13872 if test "$enable_shared" = yes && test "$GCC" = yes; then
13873 case $archive_cmds_FC in
13874 *'~'*)
13875 # FIXME: we may have to deal with multi-command sequences.
13876 ;;
13877 '$CC '*)
13878 # Test whether the compiler implicitly links with -lc since on some
13879 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13880 # to ld, don't add -lc before -lgcc.
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13882 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13883 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
13884 $as_echo_n "(cached) " >&6
13885 else
13886 $RM conftest*
13887 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13888
13889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13890 (eval $ac_compile) 2>&5
13891 ac_status=$?
13892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13893 test $ac_status = 0; } 2>conftest.err; then
13894 soname=conftest
13895 lib=conftest
13896 libobjs=conftest.$ac_objext
13897 deplibs=
13898 wl=$lt_prog_compiler_wl_FC
13899 pic_flag=$lt_prog_compiler_pic_FC
13900 compiler_flags=-v
13901 linker_flags=-v
13902 verstring=
13903 output_objdir=.
13904 libname=conftest
13905 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
13906 allow_undefined_flag_FC=
13907 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13908 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13909 ac_status=$?
13910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13911 test $ac_status = 0; }
13912 then
13913 lt_cv_archive_cmds_need_lc_FC=no
13914 else
13915 lt_cv_archive_cmds_need_lc_FC=yes
13916 fi
13917 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
13918 else
13919 cat conftest.err 1>&5
13920 fi
13921 $RM conftest*
13922
13923 fi
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
13925 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
13926 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
13927 ;;
13928 esac
13929 fi
13930 ;;
13931 esac
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949
13950
13951
13952
13953
13954
13955
13956
13957
13958
13959
13960
13961
13962
13963
13964
13965
13966
13967
13968
13969
13970
13971
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13997 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13998
13999 library_names_spec=
14000 libname_spec='lib$name'
14001 soname_spec=
14002 shrext_cmds=".so"
14003 postinstall_cmds=
14004 postuninstall_cmds=
14005 finish_cmds=
14006 finish_eval=
14007 shlibpath_var=
14008 shlibpath_overrides_runpath=unknown
14009 version_type=none
14010 dynamic_linker="$host_os ld.so"
14011 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14012 need_lib_prefix=unknown
14013 hardcode_into_libs=no
14014
14015 # when you set need_version to no, make sure it does not cause -set_version
14016 # flags to be left without arguments
14017 need_version=unknown
14018
14019 case $host_os in
14020 aix3*)
14021 version_type=linux
14022 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14023 shlibpath_var=LIBPATH
14024
14025 # AIX 3 has no versioning support, so we append a major version to the name.
14026 soname_spec='${libname}${release}${shared_ext}$major'
14027 ;;
14028
14029 aix[4-9]*)
14030 version_type=linux
14031 need_lib_prefix=no
14032 need_version=no
14033 hardcode_into_libs=yes
14034 if test "$host_cpu" = ia64; then
14035 # AIX 5 supports IA64
14036 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14037 shlibpath_var=LD_LIBRARY_PATH
14038 else
14039 # With GCC up to 2.95.x, collect2 would create an import file
14040 # for dependence libraries. The import file would start with
14041 # the line `#! .'. This would cause the generated library to
14042 # depend on `.', always an invalid library. This was fixed in
14043 # development snapshots of GCC prior to 3.0.
14044 case $host_os in
14045 aix4 | aix4.[01] | aix4.[01].*)
14046 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14047 echo ' yes '
14048 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14049 :
14050 else
14051 can_build_shared=no
14052 fi
14053 ;;
14054 esac
14055 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14056 # soname into executable. Probably we can add versioning support to
14057 # collect2, so additional links can be useful in future.
14058 if test "$aix_use_runtimelinking" = yes; then
14059 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14060 # instead of lib<name>.a to let people know that these are not
14061 # typical AIX shared libraries.
14062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14063 else
14064 # We preserve .a as extension for shared libraries through AIX4.2
14065 # and later when we are not doing run time linking.
14066 library_names_spec='${libname}${release}.a $libname.a'
14067 soname_spec='${libname}${release}${shared_ext}$major'
14068 fi
14069 shlibpath_var=LIBPATH
14070 fi
14071 ;;
14072
14073 amigaos*)
14074 case $host_cpu in
14075 powerpc)
14076 # Since July 2007 AmigaOS4 officially supports .so libraries.
14077 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14078 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 ;;
14080 m68k)
14081 library_names_spec='$libname.ixlibrary $libname.a'
14082 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14083 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'
14084 ;;
14085 esac
14086 ;;
14087
14088 beos*)
14089 library_names_spec='${libname}${shared_ext}'
14090 dynamic_linker="$host_os ld.so"
14091 shlibpath_var=LIBRARY_PATH
14092 ;;
14093
14094 bsdi[45]*)
14095 version_type=linux
14096 need_version=no
14097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14098 soname_spec='${libname}${release}${shared_ext}$major'
14099 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14100 shlibpath_var=LD_LIBRARY_PATH
14101 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14102 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14103 # the default ld.so.conf also contains /usr/contrib/lib and
14104 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14105 # libtool to hard-code these into programs
14106 ;;
14107
14108 cygwin* | mingw* | pw32* | cegcc*)
14109 version_type=windows
14110 shrext_cmds=".dll"
14111 need_version=no
14112 need_lib_prefix=no
14113
14114 case $GCC,$host_os in
14115 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14116 library_names_spec='$libname.dll.a'
14117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14118 postinstall_cmds='base_file=`basename \${file}`~
14119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14120 dldir=$destdir/`dirname \$dlpath`~
14121 test -d \$dldir || mkdir -p \$dldir~
14122 $install_prog $dir/$dlname \$dldir/$dlname~
14123 chmod a+x \$dldir/$dlname~
14124 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14125 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14126 fi'
14127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14128 dlpath=$dir/\$dldll~
14129 $RM \$dlpath'
14130 shlibpath_overrides_runpath=yes
14131
14132 case $host_os in
14133 cygwin*)
14134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14136
14137 ;;
14138 mingw* | cegcc*)
14139 # MinGW DLLs use traditional 'lib' prefix
14140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14141 ;;
14142 pw32*)
14143 # pw32 DLLs use 'pw' prefix rather than 'lib'
14144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14145 ;;
14146 esac
14147 ;;
14148
14149 *)
14150 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14151 ;;
14152 esac
14153 dynamic_linker='Win32 ld.exe'
14154 # FIXME: first we should search . and the directory the executable is in
14155 shlibpath_var=PATH
14156 ;;
14157
14158 darwin* | rhapsody*)
14159 dynamic_linker="$host_os dyld"
14160 version_type=darwin
14161 need_lib_prefix=no
14162 need_version=no
14163 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14164 soname_spec='${libname}${release}${major}$shared_ext'
14165 shlibpath_overrides_runpath=yes
14166 shlibpath_var=DYLD_LIBRARY_PATH
14167 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14168
14169 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14170 ;;
14171
14172 dgux*)
14173 version_type=linux
14174 need_lib_prefix=no
14175 need_version=no
14176 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14177 soname_spec='${libname}${release}${shared_ext}$major'
14178 shlibpath_var=LD_LIBRARY_PATH
14179 ;;
14180
14181 freebsd* | dragonfly*)
14182 # DragonFly does not have aout. When/if they implement a new
14183 # versioning mechanism, adjust this.
14184 if test -x /usr/bin/objformat; then
14185 objformat=`/usr/bin/objformat`
14186 else
14187 case $host_os in
14188 freebsd[23].*) objformat=aout ;;
14189 *) objformat=elf ;;
14190 esac
14191 fi
14192 version_type=freebsd-$objformat
14193 case $version_type in
14194 freebsd-elf*)
14195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14196 need_version=no
14197 need_lib_prefix=no
14198 ;;
14199 freebsd-*)
14200 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14201 need_version=yes
14202 ;;
14203 esac
14204 shlibpath_var=LD_LIBRARY_PATH
14205 case $host_os in
14206 freebsd2.*)
14207 shlibpath_overrides_runpath=yes
14208 ;;
14209 freebsd3.[01]* | freebsdelf3.[01]*)
14210 shlibpath_overrides_runpath=yes
14211 hardcode_into_libs=yes
14212 ;;
14213 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14214 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14215 shlibpath_overrides_runpath=no
14216 hardcode_into_libs=yes
14217 ;;
14218 *) # from 4.6 on, and DragonFly
14219 shlibpath_overrides_runpath=yes
14220 hardcode_into_libs=yes
14221 ;;
14222 esac
14223 ;;
14224
14225 gnu*)
14226 version_type=linux
14227 need_lib_prefix=no
14228 need_version=no
14229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14230 soname_spec='${libname}${release}${shared_ext}$major'
14231 shlibpath_var=LD_LIBRARY_PATH
14232 hardcode_into_libs=yes
14233 ;;
14234
14235 haiku*)
14236 version_type=linux
14237 need_lib_prefix=no
14238 need_version=no
14239 dynamic_linker="$host_os runtime_loader"
14240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14241 soname_spec='${libname}${release}${shared_ext}$major'
14242 shlibpath_var=LIBRARY_PATH
14243 shlibpath_overrides_runpath=yes
14244 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14245 hardcode_into_libs=yes
14246 ;;
14247
14248 hpux9* | hpux10* | hpux11*)
14249 # Give a soname corresponding to the major version so that dld.sl refuses to
14250 # link against other versions.
14251 version_type=sunos
14252 need_lib_prefix=no
14253 need_version=no
14254 case $host_cpu in
14255 ia64*)
14256 shrext_cmds='.so'
14257 hardcode_into_libs=yes
14258 dynamic_linker="$host_os dld.so"
14259 shlibpath_var=LD_LIBRARY_PATH
14260 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14262 soname_spec='${libname}${release}${shared_ext}$major'
14263 if test "X$HPUX_IA64_MODE" = X32; then
14264 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14265 else
14266 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14267 fi
14268 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14269 ;;
14270 hppa*64*)
14271 shrext_cmds='.sl'
14272 hardcode_into_libs=yes
14273 dynamic_linker="$host_os dld.sl"
14274 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14275 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14277 soname_spec='${libname}${release}${shared_ext}$major'
14278 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14279 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14280 ;;
14281 *)
14282 shrext_cmds='.sl'
14283 dynamic_linker="$host_os dld.sl"
14284 shlibpath_var=SHLIB_PATH
14285 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14286 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14287 soname_spec='${libname}${release}${shared_ext}$major'
14288 ;;
14289 esac
14290 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14291 postinstall_cmds='chmod 555 $lib'
14292 # or fails outright, so override atomically:
14293 install_override_mode=555
14294 ;;
14295
14296 interix[3-9]*)
14297 version_type=linux
14298 need_lib_prefix=no
14299 need_version=no
14300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14301 soname_spec='${libname}${release}${shared_ext}$major'
14302 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14303 shlibpath_var=LD_LIBRARY_PATH
14304 shlibpath_overrides_runpath=no
14305 hardcode_into_libs=yes
14306 ;;
14307
14308 irix5* | irix6* | nonstopux*)
14309 case $host_os in
14310 nonstopux*) version_type=nonstopux ;;
14311 *)
14312 if test "$lt_cv_prog_gnu_ld" = yes; then
14313 version_type=linux
14314 else
14315 version_type=irix
14316 fi ;;
14317 esac
14318 need_lib_prefix=no
14319 need_version=no
14320 soname_spec='${libname}${release}${shared_ext}$major'
14321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14322 case $host_os in
14323 irix5* | nonstopux*)
14324 libsuff= shlibsuff=
14325 ;;
14326 *)
14327 case $LD in # libtool.m4 will add one of these switches to LD
14328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14329 libsuff= shlibsuff= libmagic=32-bit;;
14330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14331 libsuff=32 shlibsuff=N32 libmagic=N32;;
14332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14334 *) libsuff= shlibsuff= libmagic=never-match;;
14335 esac
14336 ;;
14337 esac
14338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14339 shlibpath_overrides_runpath=no
14340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14342 hardcode_into_libs=yes
14343 ;;
14344
14345 # No shared lib support for Linux oldld, aout, or coff.
14346 linux*oldld* | linux*aout* | linux*coff*)
14347 dynamic_linker=no
14348 ;;
14349
14350 # This must be Linux ELF.
14351 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14352 version_type=linux
14353 need_lib_prefix=no
14354 need_version=no
14355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14356 soname_spec='${libname}${release}${shared_ext}$major'
14357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14358 shlibpath_var=LD_LIBRARY_PATH
14359 shlibpath_overrides_runpath=no
14360
14361 # Some binutils ld are patched to set DT_RUNPATH
14362 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14363 $as_echo_n "(cached) " >&6
14364 else
14365 lt_cv_shlibpath_overrides_runpath=no
14366 save_LDFLAGS=$LDFLAGS
14367 save_libdir=$libdir
14368 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
14369 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
14370 cat > conftest.$ac_ext <<_ACEOF
14371 program main
14372
14373 end
14374 _ACEOF
14375 if ac_fn_fc_try_link "$LINENO"; then :
14376 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14377 lt_cv_shlibpath_overrides_runpath=yes
14378 fi
14379 fi
14380 rm -f core conftest.err conftest.$ac_objext \
14381 conftest$ac_exeext conftest.$ac_ext
14382 LDFLAGS=$save_LDFLAGS
14383 libdir=$save_libdir
14384
14385 fi
14386
14387 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14388
14389 # This implies no fast_install, which is unacceptable.
14390 # Some rework will be needed to allow for fast_install
14391 # before this can be enabled.
14392 hardcode_into_libs=yes
14393
14394 # Append ld.so.conf contents to the search path
14395 if test -f /etc/ld.so.conf; then
14396 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' ' '`
14397 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14398 fi
14399
14400 # We used to test for /lib/ld.so.1 and disable shared libraries on
14401 # powerpc, because MkLinux only supported shared libraries with the
14402 # GNU dynamic linker. Since this was broken with cross compilers,
14403 # most powerpc-linux boxes support dynamic linking these days and
14404 # people can always --disable-shared, the test was removed, and we
14405 # assume the GNU/Linux dynamic linker is in use.
14406 dynamic_linker='GNU/Linux ld.so'
14407 ;;
14408
14409 netbsd*)
14410 version_type=sunos
14411 need_lib_prefix=no
14412 need_version=no
14413 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14414 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14416 dynamic_linker='NetBSD (a.out) ld.so'
14417 else
14418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14419 soname_spec='${libname}${release}${shared_ext}$major'
14420 dynamic_linker='NetBSD ld.elf_so'
14421 fi
14422 shlibpath_var=LD_LIBRARY_PATH
14423 shlibpath_overrides_runpath=yes
14424 hardcode_into_libs=yes
14425 ;;
14426
14427 newsos6)
14428 version_type=linux
14429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14430 shlibpath_var=LD_LIBRARY_PATH
14431 shlibpath_overrides_runpath=yes
14432 ;;
14433
14434 *nto* | *qnx*)
14435 version_type=qnx
14436 need_lib_prefix=no
14437 need_version=no
14438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14439 soname_spec='${libname}${release}${shared_ext}$major'
14440 shlibpath_var=LD_LIBRARY_PATH
14441 shlibpath_overrides_runpath=no
14442 hardcode_into_libs=yes
14443 dynamic_linker='ldqnx.so'
14444 ;;
14445
14446 openbsd*)
14447 version_type=sunos
14448 sys_lib_dlsearch_path_spec="/usr/lib"
14449 need_lib_prefix=no
14450 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14451 case $host_os in
14452 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14453 *) need_version=no ;;
14454 esac
14455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14457 shlibpath_var=LD_LIBRARY_PATH
14458 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14459 case $host_os in
14460 openbsd2.[89] | openbsd2.[89].*)
14461 shlibpath_overrides_runpath=no
14462 ;;
14463 *)
14464 shlibpath_overrides_runpath=yes
14465 ;;
14466 esac
14467 else
14468 shlibpath_overrides_runpath=yes
14469 fi
14470 ;;
14471
14472 os2*)
14473 libname_spec='$name'
14474 shrext_cmds=".dll"
14475 need_lib_prefix=no
14476 library_names_spec='$libname${shared_ext} $libname.a'
14477 dynamic_linker='OS/2 ld.exe'
14478 shlibpath_var=LIBPATH
14479 ;;
14480
14481 osf3* | osf4* | osf5*)
14482 version_type=osf
14483 need_lib_prefix=no
14484 need_version=no
14485 soname_spec='${libname}${release}${shared_ext}$major'
14486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14487 shlibpath_var=LD_LIBRARY_PATH
14488 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14489 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14490 ;;
14491
14492 rdos*)
14493 dynamic_linker=no
14494 ;;
14495
14496 solaris*)
14497 version_type=linux
14498 need_lib_prefix=no
14499 need_version=no
14500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14501 soname_spec='${libname}${release}${shared_ext}$major'
14502 shlibpath_var=LD_LIBRARY_PATH
14503 shlibpath_overrides_runpath=yes
14504 hardcode_into_libs=yes
14505 # ldd complains unless libraries are executable
14506 postinstall_cmds='chmod +x $lib'
14507 ;;
14508
14509 sunos4*)
14510 version_type=sunos
14511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14512 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14513 shlibpath_var=LD_LIBRARY_PATH
14514 shlibpath_overrides_runpath=yes
14515 if test "$with_gnu_ld" = yes; then
14516 need_lib_prefix=no
14517 fi
14518 need_version=yes
14519 ;;
14520
14521 sysv4 | sysv4.3*)
14522 version_type=linux
14523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14524 soname_spec='${libname}${release}${shared_ext}$major'
14525 shlibpath_var=LD_LIBRARY_PATH
14526 case $host_vendor in
14527 sni)
14528 shlibpath_overrides_runpath=no
14529 need_lib_prefix=no
14530 runpath_var=LD_RUN_PATH
14531 ;;
14532 siemens)
14533 need_lib_prefix=no
14534 ;;
14535 motorola)
14536 need_lib_prefix=no
14537 need_version=no
14538 shlibpath_overrides_runpath=no
14539 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14540 ;;
14541 esac
14542 ;;
14543
14544 sysv4*MP*)
14545 if test -d /usr/nec ;then
14546 version_type=linux
14547 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14548 soname_spec='$libname${shared_ext}.$major'
14549 shlibpath_var=LD_LIBRARY_PATH
14550 fi
14551 ;;
14552
14553 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14554 version_type=freebsd-elf
14555 need_lib_prefix=no
14556 need_version=no
14557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14558 soname_spec='${libname}${release}${shared_ext}$major'
14559 shlibpath_var=LD_LIBRARY_PATH
14560 shlibpath_overrides_runpath=yes
14561 hardcode_into_libs=yes
14562 if test "$with_gnu_ld" = yes; then
14563 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14564 else
14565 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14566 case $host_os in
14567 sco3.2v5*)
14568 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14569 ;;
14570 esac
14571 fi
14572 sys_lib_dlsearch_path_spec='/usr/lib'
14573 ;;
14574
14575 tpf*)
14576 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14577 version_type=linux
14578 need_lib_prefix=no
14579 need_version=no
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 shlibpath_var=LD_LIBRARY_PATH
14582 shlibpath_overrides_runpath=no
14583 hardcode_into_libs=yes
14584 ;;
14585
14586 uts4*)
14587 version_type=linux
14588 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14589 soname_spec='${libname}${release}${shared_ext}$major'
14590 shlibpath_var=LD_LIBRARY_PATH
14591 ;;
14592
14593 *)
14594 dynamic_linker=no
14595 ;;
14596 esac
14597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14598 $as_echo "$dynamic_linker" >&6; }
14599 test "$dynamic_linker" = no && can_build_shared=no
14600
14601 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14602 if test "$GCC" = yes; then
14603 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14604 fi
14605
14606 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14607 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14608 fi
14609 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14610 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14611 fi
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14651 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14652 hardcode_action_FC=
14653 if test -n "$hardcode_libdir_flag_spec_FC" ||
14654 test -n "$runpath_var_FC" ||
14655 test "X$hardcode_automatic_FC" = "Xyes" ; then
14656
14657 # We can hardcode non-existent directories.
14658 if test "$hardcode_direct_FC" != no &&
14659 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14660 # have to relink, otherwise we might link with an installed library
14661 # when we should be linking with a yet-to-be-installed one
14662 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
14663 test "$hardcode_minus_L_FC" != no; then
14664 # Linking always hardcodes the temporary library directory.
14665 hardcode_action_FC=relink
14666 else
14667 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14668 hardcode_action_FC=immediate
14669 fi
14670 else
14671 # We cannot hardcode anything, or else we can only hardcode existing
14672 # directories.
14673 hardcode_action_FC=unsupported
14674 fi
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
14676 $as_echo "$hardcode_action_FC" >&6; }
14677
14678 if test "$hardcode_action_FC" = relink ||
14679 test "$inherit_rpath_FC" = yes; then
14680 # Fast installation is not supported
14681 enable_fast_install=no
14682 elif test "$shlibpath_overrides_runpath" = yes ||
14683 test "$enable_shared" = no; then
14684 # Fast installation is not necessary
14685 enable_fast_install=needless
14686 fi
14687
14688
14689
14690
14691
14692
14693
14694 fi # test -n "$compiler"
14695
14696 GCC=$lt_save_GCC
14697 CC="$lt_save_CC"
14698 fi # test "$_lt_disable_FC" != yes
14699
14700 ac_ext=c
14701 ac_cpp='$CPP $CPPFLAGS'
14702 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14703 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14704 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14705
14706
14707 FCFLAGS="$FCFLAGS -Wall -L../libgfortran"
14708
14709 # For libtool versioning info, format is CURRENT:REVISION:AGE
14710 libtool_VERSION=1:0:0
14711
14712
14713 # Check header files.
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
14715 $as_echo_n "checking for ANSI C header files... " >&6; }
14716 if ${ac_cv_header_stdc+:} false; then :
14717 $as_echo_n "(cached) " >&6
14718 else
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14721 #include <stdlib.h>
14722 #include <stdarg.h>
14723 #include <string.h>
14724 #include <float.h>
14725
14726 int
14727 main ()
14728 {
14729
14730 ;
14731 return 0;
14732 }
14733 _ACEOF
14734 if ac_fn_c_try_compile "$LINENO"; then :
14735 ac_cv_header_stdc=yes
14736 else
14737 ac_cv_header_stdc=no
14738 fi
14739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14740
14741 if test $ac_cv_header_stdc = yes; then
14742 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
14743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14744 /* end confdefs.h. */
14745 #include <string.h>
14746
14747 _ACEOF
14748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14749 $EGREP "memchr" >/dev/null 2>&1; then :
14750
14751 else
14752 ac_cv_header_stdc=no
14753 fi
14754 rm -f conftest*
14755
14756 fi
14757
14758 if test $ac_cv_header_stdc = yes; then
14759 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
14760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14761 /* end confdefs.h. */
14762 #include <stdlib.h>
14763
14764 _ACEOF
14765 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14766 $EGREP "free" >/dev/null 2>&1; then :
14767
14768 else
14769 ac_cv_header_stdc=no
14770 fi
14771 rm -f conftest*
14772
14773 fi
14774
14775 if test $ac_cv_header_stdc = yes; then
14776 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
14777 if test "$cross_compiling" = yes; then :
14778 :
14779 else
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14782 #include <ctype.h>
14783 #include <stdlib.h>
14784 #if ((' ' & 0x0FF) == 0x020)
14785 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
14786 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
14787 #else
14788 # define ISLOWER(c) \
14789 (('a' <= (c) && (c) <= 'i') \
14790 || ('j' <= (c) && (c) <= 'r') \
14791 || ('s' <= (c) && (c) <= 'z'))
14792 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
14793 #endif
14794
14795 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
14796 int
14797 main ()
14798 {
14799 int i;
14800 for (i = 0; i < 256; i++)
14801 if (XOR (islower (i), ISLOWER (i))
14802 || toupper (i) != TOUPPER (i))
14803 return 2;
14804 return 0;
14805 }
14806 _ACEOF
14807 if ac_fn_c_try_run "$LINENO"; then :
14808
14809 else
14810 ac_cv_header_stdc=no
14811 fi
14812 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14813 conftest.$ac_objext conftest.beam conftest.$ac_ext
14814 fi
14815
14816 fi
14817 fi
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
14819 $as_echo "$ac_cv_header_stdc" >&6; }
14820 if test $ac_cv_header_stdc = yes; then
14821
14822 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
14823
14824 fi
14825
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
14827 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
14828 if ${ac_cv_header_time+:} false; then :
14829 $as_echo_n "(cached) " >&6
14830 else
14831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14832 /* end confdefs.h. */
14833 #include <sys/types.h>
14834 #include <sys/time.h>
14835 #include <time.h>
14836
14837 int
14838 main ()
14839 {
14840 if ((struct tm *) 0)
14841 return 0;
14842 ;
14843 return 0;
14844 }
14845 _ACEOF
14846 if ac_fn_c_try_compile "$LINENO"; then :
14847 ac_cv_header_time=yes
14848 else
14849 ac_cv_header_time=no
14850 fi
14851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14852 fi
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
14854 $as_echo "$ac_cv_header_time" >&6; }
14855 if test $ac_cv_header_time = yes; then
14856
14857 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
14858
14859 fi
14860
14861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether string.h and strings.h may both be included" >&5
14862 $as_echo_n "checking whether string.h and strings.h may both be included... " >&6; }
14863 if ${gcc_cv_header_string+:} false; then :
14864 $as_echo_n "(cached) " >&6
14865 else
14866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14867 /* end confdefs.h. */
14868 #include <string.h>
14869 #include <strings.h>
14870 int
14871 main ()
14872 {
14873
14874 ;
14875 return 0;
14876 }
14877 _ACEOF
14878 if ac_fn_c_try_compile "$LINENO"; then :
14879 gcc_cv_header_string=yes
14880 else
14881 gcc_cv_header_string=no
14882 fi
14883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14884 fi
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_header_string" >&5
14886 $as_echo "$gcc_cv_header_string" >&6; }
14887 if test $gcc_cv_header_string = yes; then
14888
14889 $as_echo "#define STRING_WITH_STRINGS 1" >>confdefs.h
14890
14891 fi
14892
14893 for ac_header in pthread.h unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h
14894 do :
14895 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
14896 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
14897 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
14898 cat >>confdefs.h <<_ACEOF
14899 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
14900 _ACEOF
14901
14902 fi
14903
14904 done
14905
14906
14907
14908
14909 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
14910
14911 acx_cv_header_stdint=stddef.h
14912 acx_cv_header_stdint_kind="(already complete)"
14913 for i in stdint.h $inttype_headers; do
14914 unset ac_cv_type_uintptr_t
14915 unset ac_cv_type_uintmax_t
14916 unset ac_cv_type_int_least32_t
14917 unset ac_cv_type_int_fast32_t
14918 unset ac_cv_type_uint64_t
14919 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
14920 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
14921 #include <$i>
14922 "
14923 if test "x$ac_cv_type_uintmax_t" = xyes; then :
14924 acx_cv_header_stdint=$i
14925 else
14926 continue
14927 fi
14928
14929 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14930 #include <$i>
14931 "
14932 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14933
14934 else
14935 acx_cv_header_stdint_kind="(mostly complete)"
14936 fi
14937
14938 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
14939 #include <$i>
14940 "
14941 if test "x$ac_cv_type_int_least32_t" = xyes; then :
14942
14943 else
14944 acx_cv_header_stdint_kind="(mostly complete)"
14945 fi
14946
14947 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
14948 #include <$i>
14949 "
14950 if test "x$ac_cv_type_int_fast32_t" = xyes; then :
14951
14952 else
14953 acx_cv_header_stdint_kind="(mostly complete)"
14954 fi
14955
14956 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14957 #include <$i>
14958 "
14959 if test "x$ac_cv_type_uint64_t" = xyes; then :
14960
14961 else
14962 acx_cv_header_stdint_kind="(lacks uint64_t)"
14963 fi
14964
14965 break
14966 done
14967 if test "$acx_cv_header_stdint" = stddef.h; then
14968 acx_cv_header_stdint_kind="(lacks uintmax_t)"
14969 for i in stdint.h $inttype_headers; do
14970 unset ac_cv_type_uintptr_t
14971 unset ac_cv_type_uint32_t
14972 unset ac_cv_type_uint64_t
14973 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
14974 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
14975 #include <$i>
14976 "
14977 if test "x$ac_cv_type_uint32_t" = xyes; then :
14978 acx_cv_header_stdint=$i
14979 else
14980 continue
14981 fi
14982
14983 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
14984 #include <$i>
14985 "
14986 if test "x$ac_cv_type_uint64_t" = xyes; then :
14987
14988 fi
14989
14990 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
14991 #include <$i>
14992 "
14993 if test "x$ac_cv_type_uintptr_t" = xyes; then :
14994
14995 fi
14996
14997 break
14998 done
14999 fi
15000 if test "$acx_cv_header_stdint" = stddef.h; then
15001 acx_cv_header_stdint_kind="(u_intXX_t style)"
15002 for i in sys/types.h $inttype_headers; do
15003 unset ac_cv_type_u_int32_t
15004 unset ac_cv_type_u_int64_t
15005 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15006 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15007 #include <$i>
15008 "
15009 if test "x$ac_cv_type_u_int32_t" = xyes; then :
15010 acx_cv_header_stdint=$i
15011 else
15012 continue
15013 fi
15014
15015 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15016 #include <$i>
15017 "
15018 if test "x$ac_cv_type_u_int64_t" = xyes; then :
15019
15020 fi
15021
15022 break
15023 done
15024 fi
15025 if test "$acx_cv_header_stdint" = stddef.h; then
15026 acx_cv_header_stdint_kind="(using manual detection)"
15027 fi
15028
15029 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15030 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
15031 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
15032 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
15033 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
15034
15035 # ----------------- Summarize what we found so far
15036
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
15038 $as_echo_n "checking what to include in gstdint.h... " >&6; }
15039
15040 case `$as_basename -- gstdint.h ||
15041 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
15042 Xgstdint.h : 'X\(//\)$' \| \
15043 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
15044 $as_echo X/gstdint.h |
15045 sed '/^.*\/\([^/][^/]*\)\/*$/{
15046 s//\1/
15047 q
15048 }
15049 /^X\/\(\/\/\)$/{
15050 s//\1/
15051 q
15052 }
15053 /^X\/\(\/\).*/{
15054 s//\1/
15055 q
15056 }
15057 s/.*/./; q'` in
15058 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15059 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15060 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
15061 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
15062 *) ;;
15063 esac
15064
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
15066 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
15067
15068 # ----------------- done included file, check C basic types --------
15069
15070 # Lacking an uintptr_t? Test size of void *
15071 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
15072 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
15073 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15074 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15075 # This bug is HP SR number 8606223364.
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
15077 $as_echo_n "checking size of void *... " >&6; }
15078 if ${ac_cv_sizeof_void_p+:} false; then :
15079 $as_echo_n "(cached) " >&6
15080 else
15081 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
15082
15083 else
15084 if test "$ac_cv_type_void_p" = yes; then
15085 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15086 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15087 as_fn_error 77 "cannot compute sizeof (void *)
15088 See \`config.log' for more details" "$LINENO" 5; }
15089 else
15090 ac_cv_sizeof_void_p=0
15091 fi
15092 fi
15093
15094 fi
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
15096 $as_echo "$ac_cv_sizeof_void_p" >&6; }
15097
15098
15099
15100 cat >>confdefs.h <<_ACEOF
15101 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
15102 _ACEOF
15103
15104 ;;
15105 esac
15106
15107 # Lacking an uint64_t? Test size of long
15108 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
15109 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
15110 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15111 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15112 # This bug is HP SR number 8606223364.
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
15114 $as_echo_n "checking size of long... " >&6; }
15115 if ${ac_cv_sizeof_long+:} false; then :
15116 $as_echo_n "(cached) " >&6
15117 else
15118 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
15119
15120 else
15121 if test "$ac_cv_type_long" = yes; then
15122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15124 as_fn_error 77 "cannot compute sizeof (long)
15125 See \`config.log' for more details" "$LINENO" 5; }
15126 else
15127 ac_cv_sizeof_long=0
15128 fi
15129 fi
15130
15131 fi
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
15133 $as_echo "$ac_cv_sizeof_long" >&6; }
15134
15135
15136
15137 cat >>confdefs.h <<_ACEOF
15138 #define SIZEOF_LONG $ac_cv_sizeof_long
15139 _ACEOF
15140
15141 ;;
15142 esac
15143
15144 if test $acx_cv_header_stdint = stddef.h; then
15145 # Lacking a good header? Test size of everything and deduce all types.
15146 # The cast to long int works around a bug in the HP C Compiler
15147 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15148 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15149 # This bug is HP SR number 8606223364.
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
15151 $as_echo_n "checking size of int... " >&6; }
15152 if ${ac_cv_sizeof_int+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
15156
15157 else
15158 if test "$ac_cv_type_int" = yes; then
15159 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15160 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15161 as_fn_error 77 "cannot compute sizeof (int)
15162 See \`config.log' for more details" "$LINENO" 5; }
15163 else
15164 ac_cv_sizeof_int=0
15165 fi
15166 fi
15167
15168 fi
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
15170 $as_echo "$ac_cv_sizeof_int" >&6; }
15171
15172
15173
15174 cat >>confdefs.h <<_ACEOF
15175 #define SIZEOF_INT $ac_cv_sizeof_int
15176 _ACEOF
15177
15178
15179 # The cast to long int works around a bug in the HP C Compiler
15180 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15181 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15182 # This bug is HP SR number 8606223364.
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
15184 $as_echo_n "checking size of short... " >&6; }
15185 if ${ac_cv_sizeof_short+:} false; then :
15186 $as_echo_n "(cached) " >&6
15187 else
15188 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
15189
15190 else
15191 if test "$ac_cv_type_short" = yes; then
15192 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15193 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15194 as_fn_error 77 "cannot compute sizeof (short)
15195 See \`config.log' for more details" "$LINENO" 5; }
15196 else
15197 ac_cv_sizeof_short=0
15198 fi
15199 fi
15200
15201 fi
15202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
15203 $as_echo "$ac_cv_sizeof_short" >&6; }
15204
15205
15206
15207 cat >>confdefs.h <<_ACEOF
15208 #define SIZEOF_SHORT $ac_cv_sizeof_short
15209 _ACEOF
15210
15211
15212 # The cast to long int works around a bug in the HP C Compiler
15213 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
15214 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
15215 # This bug is HP SR number 8606223364.
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
15217 $as_echo_n "checking size of char... " >&6; }
15218 if ${ac_cv_sizeof_char+:} false; then :
15219 $as_echo_n "(cached) " >&6
15220 else
15221 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
15222
15223 else
15224 if test "$ac_cv_type_char" = yes; then
15225 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15226 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15227 as_fn_error 77 "cannot compute sizeof (char)
15228 See \`config.log' for more details" "$LINENO" 5; }
15229 else
15230 ac_cv_sizeof_char=0
15231 fi
15232 fi
15233
15234 fi
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
15236 $as_echo "$ac_cv_sizeof_char" >&6; }
15237
15238
15239
15240 cat >>confdefs.h <<_ACEOF
15241 #define SIZEOF_CHAR $ac_cv_sizeof_char
15242 _ACEOF
15243
15244
15245
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
15247 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
15248 case "$ac_cv_sizeof_char" in
15249 1) acx_cv_type_int8_t=char ;;
15250 *) as_fn_error $? "no 8-bit type, please report a bug" "$LINENO" 5
15251 esac
15252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
15253 $as_echo "$acx_cv_type_int8_t" >&6; }
15254
15255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
15256 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
15257 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
15258 2:*) acx_cv_type_int16_t=int ;;
15259 *:2) acx_cv_type_int16_t=short ;;
15260 *) as_fn_error $? "no 16-bit type, please report a bug" "$LINENO" 5
15261 esac
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
15263 $as_echo "$acx_cv_type_int16_t" >&6; }
15264
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
15266 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
15267 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
15268 4:*) acx_cv_type_int32_t=int ;;
15269 *:4) acx_cv_type_int32_t=long ;;
15270 *) as_fn_error $? "no 32-bit type, please report a bug" "$LINENO" 5
15271 esac
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
15273 $as_echo "$acx_cv_type_int32_t" >&6; }
15274 fi
15275
15276 # These tests are here to make the output prettier
15277
15278 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
15279 case "$ac_cv_sizeof_long" in
15280 8) acx_cv_type_int64_t=long ;;
15281 esac
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
15283 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
15285 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
15286 fi
15287
15288 # Now we can use the above types
15289
15290 if test "$ac_cv_type_uintptr_t" != yes; then
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
15292 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
15293 case $ac_cv_sizeof_void_p in
15294 2) acx_cv_type_intptr_t=int16_t ;;
15295 4) acx_cv_type_intptr_t=int32_t ;;
15296 8) acx_cv_type_intptr_t=int64_t ;;
15297 *) as_fn_error $? "no equivalent for intptr_t, please report a bug" "$LINENO" 5
15298 esac
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
15300 $as_echo "$acx_cv_type_intptr_t" >&6; }
15301 fi
15302
15303 # ----------------- done all checks, emit header -------------
15304 ac_config_commands="$ac_config_commands gstdint.h"
15305
15306
15307
15308
15309 XPCFLAGS=""
15310 case "$host" in
15311 *-*-rtems*)
15312 # RTEMS supports Pthreads, but the library is not available at GCC build time.
15313 ;;
15314 nvptx*-*-*)
15315 # NVPTX does not support Pthreads, has its own code replacement.
15316 libgomp_use_pthreads=no
15317 # NVPTX is an accelerator-only target
15318 libgomp_offloaded_only=yes
15319 ;;
15320 *)
15321 # Check to see if -pthread or -lpthread is needed. Prefer the former.
15322 # In case the pthread.h system header is not found, this test will fail.
15323 CFLAGS="$CFLAGS -pthread"
15324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15325 /* end confdefs.h. */
15326 #include <pthread.h>
15327 void *g(void *d) { return NULL; }
15328 int
15329 main ()
15330 {
15331 pthread_t t; pthread_create(&t,NULL,g,NULL);
15332 ;
15333 return 0;
15334 }
15335 _ACEOF
15336 if ac_fn_c_try_link "$LINENO"; then :
15337 XPCFLAGS=" -Wc,-pthread"
15338 else
15339 CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS"
15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15341 /* end confdefs.h. */
15342 #include <pthread.h>
15343 void *g(void *d) { return NULL; }
15344 int
15345 main ()
15346 {
15347 pthread_t t; pthread_create(&t,NULL,g,NULL);
15348 ;
15349 return 0;
15350 }
15351 _ACEOF
15352 if ac_fn_c_try_link "$LINENO"; then :
15353
15354 else
15355 as_fn_error $? "Pthreads are required to build libgomp" "$LINENO" 5
15356 fi
15357 rm -f core conftest.err conftest.$ac_objext \
15358 conftest$ac_exeext conftest.$ac_ext
15359 fi
15360 rm -f core conftest.err conftest.$ac_objext \
15361 conftest$ac_exeext conftest.$ac_ext
15362 esac
15363
15364 if test x$libgomp_use_pthreads != xno; then
15365
15366 $as_echo "#define LIBGOMP_USE_PTHREADS 1" >>confdefs.h
15367
15368 fi
15369
15370 if test x$libgomp_offloaded_only = xyes; then
15371
15372 $as_echo "#define LIBGOMP_OFFLOADED_ONLY 1" >>confdefs.h
15373
15374 fi
15375
15376 # Plugins for offload execution, configure.ac fragment. -*- mode: autoconf -*-
15377 #
15378 # Copyright (C) 2014-2018 Free Software Foundation, Inc.
15379 #
15380 # Contributed by Mentor Embedded.
15381 #
15382 # This file is part of the GNU Offloading and Multi Processing Library
15383 # (libgomp).
15384 #
15385 # Libgomp is free software; you can redistribute it and/or modify it
15386 # under the terms of the GNU General Public License as published by
15387 # the Free Software Foundation; either version 3, or (at your option)
15388 # any later version.
15389 #
15390 # Libgomp is distributed in the hope that it will be useful, but WITHOUT ANY
15391 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15392 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for
15393 # more details.
15394 #
15395 # Under Section 7 of GPL version 3, you are granted additional
15396 # permissions described in the GCC Runtime Library Exception, version
15397 # 3.1, as published by the Free Software Foundation.
15398 #
15399 # You should have received a copy of the GNU General Public License and
15400 # a copy of the GCC Runtime Library Exception along with this program;
15401 # see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
15402 # <http://www.gnu.org/licenses/>.
15403
15404 plugin_support=yes
15405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5
15406 $as_echo_n "checking for dlsym in -ldl... " >&6; }
15407 if ${ac_cv_lib_dl_dlsym+:} false; then :
15408 $as_echo_n "(cached) " >&6
15409 else
15410 ac_check_lib_save_LIBS=$LIBS
15411 LIBS="-ldl $LIBS"
15412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15413 /* end confdefs.h. */
15414
15415 /* Override any GCC internal prototype to avoid an error.
15416 Use char because int might match the return type of a GCC
15417 builtin and then its argument prototype would still apply. */
15418 #ifdef __cplusplus
15419 extern "C"
15420 #endif
15421 char dlsym ();
15422 int
15423 main ()
15424 {
15425 return dlsym ();
15426 ;
15427 return 0;
15428 }
15429 _ACEOF
15430 if ac_fn_c_try_link "$LINENO"; then :
15431 ac_cv_lib_dl_dlsym=yes
15432 else
15433 ac_cv_lib_dl_dlsym=no
15434 fi
15435 rm -f core conftest.err conftest.$ac_objext \
15436 conftest$ac_exeext conftest.$ac_ext
15437 LIBS=$ac_check_lib_save_LIBS
15438 fi
15439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5
15440 $as_echo "$ac_cv_lib_dl_dlsym" >&6; }
15441 if test "x$ac_cv_lib_dl_dlsym" = xyes; then :
15442 cat >>confdefs.h <<_ACEOF
15443 #define HAVE_LIBDL 1
15444 _ACEOF
15445
15446 LIBS="-ldl $LIBS"
15447
15448 else
15449 plugin_support=no
15450 fi
15451
15452 if test x"$plugin_support" = xyes; then
15453
15454 $as_echo "#define PLUGIN_SUPPORT 1" >>confdefs.h
15455
15456 elif test "x${enable_offload_targets-no}" != xno; then
15457 as_fn_error $? "Can't support offloading without support for plugins" "$LINENO" 5
15458 fi
15459
15460
15461
15462 for ac_header in $ac_header_list
15463 do :
15464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15465 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15466 "
15467 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15468 cat >>confdefs.h <<_ACEOF
15469 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 _ACEOF
15471
15472 fi
15473
15474 done
15475
15476
15477
15478
15479
15480
15481
15482 for ac_func in $ac_func_list
15483 do :
15484 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15485 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15486 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15487 cat >>confdefs.h <<_ACEOF
15488 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15489 _ACEOF
15490
15491 fi
15492 done
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509 # Look for the CUDA driver package.
15510 CUDA_DRIVER_INCLUDE=
15511 CUDA_DRIVER_LIB=
15512
15513
15514 CUDA_DRIVER_CPPFLAGS=
15515 CUDA_DRIVER_LDFLAGS=
15516
15517 # Check whether --with-cuda-driver was given.
15518 if test "${with_cuda_driver+set}" = set; then :
15519 withval=$with_cuda_driver;
15520 fi
15521
15522
15523 # Check whether --with-cuda-driver-include was given.
15524 if test "${with_cuda_driver_include+set}" = set; then :
15525 withval=$with_cuda_driver_include;
15526 fi
15527
15528
15529 # Check whether --with-cuda-driver-lib was given.
15530 if test "${with_cuda_driver_lib+set}" = set; then :
15531 withval=$with_cuda_driver_lib;
15532 fi
15533
15534 case "x$with_cuda_driver" in
15535 x) ;;
15536 xno)
15537 CUDA_DRIVER_INCLUDE=no
15538 CUDA_DRIVER_LIB=no
15539 ;;
15540 *) CUDA_DRIVER_INCLUDE=$with_cuda_driver/include
15541 CUDA_DRIVER_LIB=$with_cuda_driver/lib
15542 ;;
15543 esac
15544 if test "x$with_cuda_driver_include" != x; then
15545 CUDA_DRIVER_INCLUDE=$with_cuda_driver_include
15546 fi
15547 if test "x$with_cuda_driver_lib" != x; then
15548 CUDA_DRIVER_LIB=$with_cuda_driver_lib
15549 fi
15550 if test "x$CUDA_DRIVER_INCLUDE" != x \
15551 && test "x$CUDA_DRIVER_INCLUDE" != xno; then
15552 CUDA_DRIVER_CPPFLAGS=-I$CUDA_DRIVER_INCLUDE
15553 fi
15554 if test "x$CUDA_DRIVER_LIB" != x \
15555 && test "x$CUDA_DRIVER_LIB" != xno; then
15556 CUDA_DRIVER_LDFLAGS=-L$CUDA_DRIVER_LIB
15557 fi
15558
15559 PLUGIN_NVPTX=0
15560 PLUGIN_NVPTX_CPPFLAGS=
15561 PLUGIN_NVPTX_LDFLAGS=
15562 PLUGIN_NVPTX_LIBS=
15563 PLUGIN_NVPTX_DYNAMIC=0
15564
15565
15566
15567
15568
15569 # Look for HSA run-time, its includes and libraries
15570
15571 HSA_RUNTIME_INCLUDE=
15572 HSA_RUNTIME_LIB=
15573
15574
15575 HSA_RUNTIME_CPPFLAGS=
15576 HSA_RUNTIME_LDFLAGS=
15577
15578
15579 # Check whether --with-hsa-runtime was given.
15580 if test "${with_hsa_runtime+set}" = set; then :
15581 withval=$with_hsa_runtime;
15582 fi
15583
15584
15585 # Check whether --with-hsa-runtime-include was given.
15586 if test "${with_hsa_runtime_include+set}" = set; then :
15587 withval=$with_hsa_runtime_include;
15588 fi
15589
15590
15591 # Check whether --with-hsa-runtime-lib was given.
15592 if test "${with_hsa_runtime_lib+set}" = set; then :
15593 withval=$with_hsa_runtime_lib;
15594 fi
15595
15596 if test "x$with_hsa_runtime" != x; then
15597 HSA_RUNTIME_INCLUDE=$with_hsa_runtime/include
15598 HSA_RUNTIME_LIB=$with_hsa_runtime/lib
15599 fi
15600 if test "x$with_hsa_runtime_include" != x; then
15601 HSA_RUNTIME_INCLUDE=$with_hsa_runtime_include
15602 fi
15603 if test "x$with_hsa_runtime_lib" != x; then
15604 HSA_RUNTIME_LIB=$with_hsa_runtime_lib
15605 fi
15606 if test "x$HSA_RUNTIME_INCLUDE" != x; then
15607 HSA_RUNTIME_CPPFLAGS=-I$HSA_RUNTIME_INCLUDE
15608 fi
15609 if test "x$HSA_RUNTIME_LIB" != x; then
15610 HSA_RUNTIME_LDFLAGS=-L$HSA_RUNTIME_LIB
15611 fi
15612
15613 PLUGIN_HSA=0
15614 PLUGIN_HSA_CPPFLAGS=
15615 PLUGIN_HSA_LDFLAGS=
15616 PLUGIN_HSA_LIBS=
15617
15618
15619
15620
15621
15622 # Parse '--enable-offload-targets', figure out the corresponding libgomp
15623 # plugins, and configure to find the corresponding offload compilers.
15624 offload_plugins=
15625
15626 offload_additional_options=
15627 offload_additional_lib_paths=
15628
15629
15630 if test x"$enable_offload_targets" != x; then
15631 for tgt in `echo $enable_offload_targets | sed -e 's#,# #g'`; do
15632 tgt_dir=`echo $tgt | grep '=' | sed 's/.*=//'`
15633 tgt=`echo $tgt | sed 's/=.*//'`
15634 tgt_plugin=
15635 case $tgt in
15636 *-intelmic-* | *-intelmicemul-*)
15637 tgt_plugin=intelmic
15638 ;;
15639 nvptx*)
15640 tgt_plugin=nvptx
15641 PLUGIN_NVPTX=$tgt
15642 if test "x$CUDA_DRIVER_LIB" != xno \
15643 && test "x$CUDA_DRIVER_LIB" != xno; then
15644 PLUGIN_NVPTX_CPPFLAGS=$CUDA_DRIVER_CPPFLAGS
15645 PLUGIN_NVPTX_LDFLAGS=$CUDA_DRIVER_LDFLAGS
15646 PLUGIN_NVPTX_LIBS='-lcuda'
15647
15648 PLUGIN_NVPTX_save_CPPFLAGS=$CPPFLAGS
15649 CPPFLAGS="$PLUGIN_NVPTX_CPPFLAGS $CPPFLAGS"
15650 PLUGIN_NVPTX_save_LDFLAGS=$LDFLAGS
15651 LDFLAGS="$PLUGIN_NVPTX_LDFLAGS $LDFLAGS"
15652 PLUGIN_NVPTX_save_LIBS=$LIBS
15653 LIBS="$PLUGIN_NVPTX_LIBS $LIBS"
15654 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15655 /* end confdefs.h. */
15656 #include "cuda.h"
15657 int
15658 main ()
15659 {
15660 CUresult r = cuCtxPushCurrent (NULL);
15661 ;
15662 return 0;
15663 }
15664 _ACEOF
15665 if ac_fn_c_try_link "$LINENO"; then :
15666 PLUGIN_NVPTX=1
15667 fi
15668 rm -f core conftest.err conftest.$ac_objext \
15669 conftest$ac_exeext conftest.$ac_ext
15670 CPPFLAGS=$PLUGIN_NVPTX_save_CPPFLAGS
15671 LDFLAGS=$PLUGIN_NVPTX_save_LDFLAGS
15672 LIBS=$PLUGIN_NVPTX_save_LIBS
15673 fi
15674 case $PLUGIN_NVPTX in
15675 nvptx*)
15676 if (test "x$CUDA_DRIVER_INCLUDE" = x \
15677 || test "x$CUDA_DRIVER_INCLUDE" = xno) \
15678 && (test "x$CUDA_DRIVER_LIB" = x \
15679 || test "x$CUDA_DRIVER_LIB" = xno); then
15680 PLUGIN_NVPTX=1
15681 PLUGIN_NVPTX_CPPFLAGS='-I$(srcdir)/plugin/cuda'
15682 PLUGIN_NVPTX_LIBS='-ldl'
15683 PLUGIN_NVPTX_DYNAMIC=1
15684 else
15685 PLUGIN_NVPTX=0
15686 as_fn_error $? "CUDA driver package required for nvptx support" "$LINENO" 5
15687 fi
15688 ;;
15689 esac
15690 ;;
15691 hsa*)
15692 case "${target}" in
15693 x86_64-*-*)
15694 case " ${CC} ${CFLAGS} " in
15695 *" -m32 "*)
15696 PLUGIN_HSA=0
15697 ;;
15698 *)
15699 tgt_plugin=hsa
15700 PLUGIN_HSA=$tgt
15701 PLUGIN_HSA_CPPFLAGS=$HSA_RUNTIME_CPPFLAGS
15702 PLUGIN_HSA_LDFLAGS="$HSA_RUNTIME_LDFLAGS"
15703 PLUGIN_HSA_LIBS="-ldl"
15704
15705 PLUGIN_HSA_save_CPPFLAGS=$CPPFLAGS
15706 CPPFLAGS="$PLUGIN_HSA_CPPFLAGS $CPPFLAGS"
15707 PLUGIN_HSA_save_LDFLAGS=$LDFLAGS
15708 LDFLAGS="$PLUGIN_HSA_LDFLAGS $LDFLAGS"
15709 PLUGIN_HSA_save_LIBS=$LIBS
15710 LIBS="$PLUGIN_HSA_LIBS $LIBS"
15711
15712 PLUGIN_HSA=1
15713 CPPFLAGS=$PLUGIN_HSA_save_CPPFLAGS
15714 LDFLAGS=$PLUGIN_HSA_save_LDFLAGS
15715 LIBS=$PLUGIN_HSA_save_LIBS
15716 case $PLUGIN_HSA in
15717 hsa*)
15718 HSA_PLUGIN=0
15719 as_fn_error $? "HSA run-time package required for HSA support" "$LINENO" 5
15720 ;;
15721 esac
15722 ;;
15723 esac
15724 ;;
15725 *-*-*)
15726 PLUGIN_HSA=0
15727 ;;
15728 esac
15729 ;;
15730 *)
15731 as_fn_error $? "unknown offload target specified" "$LINENO" 5
15732 ;;
15733 esac
15734 if test x"$tgt_plugin" = x; then
15735 # Not configuring libgomp for this offload target if we're not building
15736 # the corresponding offload plugin.
15737 continue
15738 elif test x"$offload_plugins" = x; then
15739 offload_plugins=$tgt_plugin
15740 else
15741 offload_plugins=$offload_plugins,$tgt_plugin
15742 fi
15743 # Configure additional search paths.
15744 if test "$tgt_plugin" = hsa; then
15745 # Offloading compilation is all handled by the target compiler.
15746 :
15747 elif test x"$tgt_dir" != x; then
15748 offload_additional_options="$offload_additional_options -B$tgt_dir/libexec/gcc/\$(target_alias)/\$(gcc_version) -B$tgt_dir/bin"
15749 offload_additional_lib_paths="$offload_additional_lib_paths:$tgt_dir/lib64:$tgt_dir/lib:$tgt_dir/lib32"
15750 else
15751 offload_additional_options="$offload_additional_options -B\$(libexecdir)/gcc/\$(target_alias)/\$(gcc_version) -B\$(bindir)"
15752 offload_additional_lib_paths="$offload_additional_lib_paths:$toolexeclibdir"
15753 fi
15754 done
15755 fi
15756
15757 cat >>confdefs.h <<_ACEOF
15758 #define OFFLOAD_PLUGINS "$offload_plugins"
15759 _ACEOF
15760
15761 if test $PLUGIN_NVPTX = 1; then
15762 PLUGIN_NVPTX_TRUE=
15763 PLUGIN_NVPTX_FALSE='#'
15764 else
15765 PLUGIN_NVPTX_TRUE='#'
15766 PLUGIN_NVPTX_FALSE=
15767 fi
15768
15769
15770 cat >>confdefs.h <<_ACEOF
15771 #define PLUGIN_NVPTX $PLUGIN_NVPTX
15772 _ACEOF
15773
15774
15775 cat >>confdefs.h <<_ACEOF
15776 #define PLUGIN_NVPTX_DYNAMIC $PLUGIN_NVPTX_DYNAMIC
15777 _ACEOF
15778
15779 if test $PLUGIN_HSA = 1; then
15780 PLUGIN_HSA_TRUE=
15781 PLUGIN_HSA_FALSE='#'
15782 else
15783 PLUGIN_HSA_TRUE='#'
15784 PLUGIN_HSA_FALSE=
15785 fi
15786
15787
15788 cat >>confdefs.h <<_ACEOF
15789 #define PLUGIN_HSA $PLUGIN_HSA
15790 _ACEOF
15791
15792
15793 if test "$HSA_RUNTIME_LIB" != ""; then
15794 HSA_RUNTIME_LIB="$HSA_RUNTIME_LIB/"
15795 fi
15796
15797
15798 cat >>confdefs.h <<_ACEOF
15799 #define HSA_RUNTIME_LIB "$HSA_RUNTIME_LIB"
15800 _ACEOF
15801
15802
15803
15804 # Check for functions needed.
15805 for ac_func in getloadavg clock_gettime strtoull
15806 do :
15807 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15808 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15809 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
15810 cat >>confdefs.h <<_ACEOF
15811 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15812 _ACEOF
15813
15814 fi
15815 done
15816
15817 for ac_func in aligned_alloc posix_memalign memalign _aligned_malloc
15818 do :
15819 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
15820 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
15821 eval as_val=\$$as_ac_var
15822 if test "x$as_val" = x""yes; then :
15823 cat >>confdefs.h <<_ACEOF
15824 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
15825 _ACEOF
15826
15827 fi
15828 done
15829
15830
15831 # Check for broken semaphore implementation on darwin.
15832 # sem_init returns: sem_init error: Function not implemented.
15833 case "$host" in
15834 *-darwin*)
15835
15836 $as_echo "#define HAVE_BROKEN_POSIX_SEMAPHORES 1" >>confdefs.h
15837
15838 ;;
15839 esac
15840
15841 # RTEMS specific checks
15842 case "$host" in
15843 *-*-rtems*)
15844 ac_fn_c_check_type "$LINENO" "struct _Mutex_Control" "ac_cv_type_struct__Mutex_Control" "#include <sys/lock.h>
15845 "
15846 if test "x$ac_cv_type_struct__Mutex_Control" = xyes; then :
15847
15848 cat >>confdefs.h <<_ACEOF
15849 #define HAVE_STRUCT__MUTEX_CONTROL 1
15850 _ACEOF
15851
15852
15853 fi
15854
15855 ;;
15856 esac
15857
15858 # Check whether --enable-linux-futex was given.
15859 if test "${enable_linux_futex+set}" = set; then :
15860 enableval=$enable_linux_futex;
15861 case "$enableval" in
15862 yes|no|default) ;;
15863 *) as_fn_error $? "Unknown argument to enable/disable linux-futex" "$LINENO" 5 ;;
15864 esac
15865
15866 else
15867 enable_linux_futex=default
15868 fi
15869
15870
15871 case "$target" in
15872 *-linux*)
15873 case "$enable_linux_futex" in
15874 default)
15875 # If headers don't have gettid/futex syscalls definition, then
15876 # default to no, otherwise there will be compile time failures.
15877 # Otherwise, default to yes. If we don't detect we are
15878 # compiled/linked against NPTL and not cross-compiling, check
15879 # if programs are run by default against NPTL and if not, issue
15880 # a warning.
15881 enable_linux_futex=no
15882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15883 /* end confdefs.h. */
15884 #include <sys/syscall.h>
15885 int lk;
15886 int
15887 main ()
15888 {
15889 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15890 ;
15891 return 0;
15892 }
15893 _ACEOF
15894 if ac_fn_c_try_link "$LINENO"; then :
15895 save_LIBS="$LIBS"
15896 LIBS="-lpthread $LIBS"
15897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15898 /* end confdefs.h. */
15899 #ifndef _GNU_SOURCE
15900 #define _GNU_SOURCE 1
15901 #endif
15902 #include <pthread.h>
15903 pthread_t th; void *status;
15904 int
15905 main ()
15906 {
15907 pthread_tryjoin_np (th, &status);
15908 ;
15909 return 0;
15910 }
15911 _ACEOF
15912 if ac_fn_c_try_link "$LINENO"; then :
15913 enable_linux_futex=yes
15914 else
15915 if test x$cross_compiling = xno; then
15916 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \
15917 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The kernel might not support futex or gettid syscalls.
15919 If so, please configure with --disable-linux-futex" >&5
15920 $as_echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls.
15921 If so, please configure with --disable-linux-futex" >&2;}
15922 fi
15923 fi
15924 enable_linux_futex=yes
15925 fi
15926 rm -f core conftest.err conftest.$ac_objext \
15927 conftest$ac_exeext conftest.$ac_ext
15928 LIBS="$save_LIBS"
15929 fi
15930 rm -f core conftest.err conftest.$ac_objext \
15931 conftest$ac_exeext conftest.$ac_ext
15932 ;;
15933 yes)
15934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15935 /* end confdefs.h. */
15936 #include <sys/syscall.h>
15937 int lk;
15938 int
15939 main ()
15940 {
15941 syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0);
15942 ;
15943 return 0;
15944 }
15945 _ACEOF
15946 if ac_fn_c_try_link "$LINENO"; then :
15947
15948 else
15949 as_fn_error $? "SYS_gettid and SYS_futex required for --enable-linux-futex" "$LINENO" 5
15950 fi
15951 rm -f core conftest.err conftest.$ac_objext \
15952 conftest$ac_exeext conftest.$ac_ext
15953 ;;
15954 esac
15955 ;;
15956 *)
15957 enable_linux_futex=no
15958 ;;
15959 esac
15960 if test x$enable_linux_futex = xyes; then
15961 :
15962 fi
15963
15964
15965 # Check for pthread_{,attr_}[sg]etaffinity_np.
15966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15967 /* end confdefs.h. */
15968 #define _GNU_SOURCE
15969 #include <pthread.h>
15970 int
15971 main ()
15972 {
15973 cpu_set_t cpuset;
15974 pthread_attr_t attr;
15975 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15976 if (CPU_ISSET (0, &cpuset))
15977 CPU_SET (1, &cpuset);
15978 else
15979 CPU_ZERO (&cpuset);
15980 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset);
15981 pthread_attr_init (&attr);
15982 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15983 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset);
15984 ;
15985 return 0;
15986 }
15987 _ACEOF
15988 if ac_fn_c_try_link "$LINENO"; then :
15989
15990 $as_echo "#define HAVE_PTHREAD_AFFINITY_NP 1" >>confdefs.h
15991
15992 fi
15993 rm -f core conftest.err conftest.$ac_objext \
15994 conftest$ac_exeext conftest.$ac_ext
15995
15996 # At least for glibc, clock_gettime is in librt. But don't pull that
15997 # in if it still doesn't give us the function we want.
15998 if test $ac_cv_func_clock_gettime = no; then
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
16000 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
16001 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
16002 $as_echo_n "(cached) " >&6
16003 else
16004 ac_check_lib_save_LIBS=$LIBS
16005 LIBS="-lrt $LIBS"
16006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16007 /* end confdefs.h. */
16008
16009 /* Override any GCC internal prototype to avoid an error.
16010 Use char because int might match the return type of a GCC
16011 builtin and then its argument prototype would still apply. */
16012 #ifdef __cplusplus
16013 extern "C"
16014 #endif
16015 char clock_gettime ();
16016 int
16017 main ()
16018 {
16019 return clock_gettime ();
16020 ;
16021 return 0;
16022 }
16023 _ACEOF
16024 if ac_fn_c_try_link "$LINENO"; then :
16025 ac_cv_lib_rt_clock_gettime=yes
16026 else
16027 ac_cv_lib_rt_clock_gettime=no
16028 fi
16029 rm -f core conftest.err conftest.$ac_objext \
16030 conftest$ac_exeext conftest.$ac_ext
16031 LIBS=$ac_check_lib_save_LIBS
16032 fi
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
16034 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
16035 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
16036 LIBS="-lrt $LIBS"
16037
16038 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
16039
16040 fi
16041
16042 fi
16043
16044 # Check for uname.
16045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16046 /* end confdefs.h. */
16047 #include <string.h>
16048 #include <stdlib.h>
16049 #include <sys/utsname.h>
16050 int
16051 main ()
16052 {
16053 struct utsname buf;
16054 volatile size_t len = 0;
16055 if (!uname (buf))
16056 len = strlen (buf.nodename);
16057 ;
16058 return 0;
16059 }
16060 _ACEOF
16061 if ac_fn_c_try_compile "$LINENO"; then :
16062
16063 $as_echo "#define HAVE_UNAME 1" >>confdefs.h
16064
16065 fi
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067
16068 # Check for gethostname.
16069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16070 /* end confdefs.h. */
16071 #include <unistd.h>
16072 int
16073 main ()
16074 {
16075
16076 char buf[256];
16077 if (gethostname (buf, sizeof (buf) - 1) == 0)
16078 buf[255] = '\0';
16079
16080 ;
16081 return 0;
16082 }
16083 _ACEOF
16084 if ac_fn_c_try_compile "$LINENO"; then :
16085
16086 $as_echo "#define HAVE_GETHOSTNAME 1" >>confdefs.h
16087
16088 fi
16089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16090
16091 # Check for getpid.
16092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16093 /* end confdefs.h. */
16094 #include <unistd.h>
16095 int
16096 main ()
16097 {
16098 int pid = getpid ();
16099 ;
16100 return 0;
16101 }
16102 _ACEOF
16103 if ac_fn_c_try_compile "$LINENO"; then :
16104
16105 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16106
16107 fi
16108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16109
16110 # See if we support thread-local storage.
16111
16112
16113 # Check whether --enable-tls was given.
16114 if test "${enable_tls+set}" = set; then :
16115 enableval=$enable_tls;
16116 case "$enableval" in
16117 yes|no) ;;
16118 *) as_fn_error $? "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
16119 esac
16120
16121 else
16122 enable_tls=yes
16123 fi
16124
16125
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
16127 $as_echo_n "checking whether the target supports thread-local storage... " >&6; }
16128 if ${gcc_cv_have_tls+:} false; then :
16129 $as_echo_n "(cached) " >&6
16130 else
16131
16132 if test "$cross_compiling" = yes; then :
16133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16134 /* end confdefs.h. */
16135 __thread int a; int b; int main() { return a = b; }
16136 _ACEOF
16137 if ac_fn_c_try_link "$LINENO"; then :
16138 chktls_save_LDFLAGS="$LDFLAGS"
16139 case $host in
16140 *-*-linux*)
16141 LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
16142 ;;
16143 esac
16144 chktls_save_CFLAGS="$CFLAGS"
16145 CFLAGS="-fPIC $CFLAGS"
16146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16147 /* end confdefs.h. */
16148 int f() { return 0; }
16149 _ACEOF
16150 if ac_fn_c_try_link "$LINENO"; then :
16151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16152 /* end confdefs.h. */
16153 __thread int a; int b; int f() { return a = b; }
16154 _ACEOF
16155 if ac_fn_c_try_link "$LINENO"; then :
16156 gcc_cv_have_tls=yes
16157 else
16158 gcc_cv_have_tls=no
16159 fi
16160 rm -f core conftest.err conftest.$ac_objext \
16161 conftest$ac_exeext conftest.$ac_ext
16162 else
16163 gcc_cv_have_tls=yes
16164 fi
16165 rm -f core conftest.err conftest.$ac_objext \
16166 conftest$ac_exeext conftest.$ac_ext
16167 CFLAGS="$chktls_save_CFLAGS"
16168 LDFLAGS="$chktls_save_LDFLAGS"
16169 else
16170 gcc_cv_have_tls=no
16171 fi
16172 rm -f core conftest.err conftest.$ac_objext \
16173 conftest$ac_exeext conftest.$ac_ext
16174
16175
16176 else
16177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16178 /* end confdefs.h. */
16179 __thread int a; int b; int main() { return a = b; }
16180 _ACEOF
16181 if ac_fn_c_try_run "$LINENO"; then :
16182 chktls_save_LDFLAGS="$LDFLAGS"
16183 LDFLAGS="-static $LDFLAGS"
16184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16185 /* end confdefs.h. */
16186 int main() { return 0; }
16187 _ACEOF
16188 if ac_fn_c_try_link "$LINENO"; then :
16189 if test "$cross_compiling" = yes; then :
16190 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16191 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16192 as_fn_error $? "cannot run test program while cross compiling
16193 See \`config.log' for more details" "$LINENO" 5; }
16194 else
16195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16196 /* end confdefs.h. */
16197 __thread int a; int b; int main() { return a = b; }
16198 _ACEOF
16199 if ac_fn_c_try_run "$LINENO"; then :
16200 gcc_cv_have_tls=yes
16201 else
16202 gcc_cv_have_tls=no
16203 fi
16204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16205 conftest.$ac_objext conftest.beam conftest.$ac_ext
16206 fi
16207
16208 else
16209 gcc_cv_have_tls=yes
16210 fi
16211 rm -f core conftest.err conftest.$ac_objext \
16212 conftest$ac_exeext conftest.$ac_ext
16213 LDFLAGS="$chktls_save_LDFLAGS"
16214 if test $gcc_cv_have_tls = yes; then
16215 chktls_save_CFLAGS="$CFLAGS"
16216 thread_CFLAGS=failed
16217 for flag in '' '-pthread' '-lpthread'; do
16218 CFLAGS="$flag $chktls_save_CFLAGS"
16219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16220 /* end confdefs.h. */
16221 #include <pthread.h>
16222 void *g(void *d) { return NULL; }
16223 int
16224 main ()
16225 {
16226 pthread_t t; pthread_create(&t,NULL,g,NULL);
16227 ;
16228 return 0;
16229 }
16230 _ACEOF
16231 if ac_fn_c_try_link "$LINENO"; then :
16232 thread_CFLAGS="$flag"
16233 fi
16234 rm -f core conftest.err conftest.$ac_objext \
16235 conftest$ac_exeext conftest.$ac_ext
16236 if test "X$thread_CFLAGS" != Xfailed; then
16237 break
16238 fi
16239 done
16240 CFLAGS="$chktls_save_CFLAGS"
16241 if test "X$thread_CFLAGS" != Xfailed; then
16242 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
16243 if test "$cross_compiling" = yes; then :
16244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16246 as_fn_error $? "cannot run test program while cross compiling
16247 See \`config.log' for more details" "$LINENO" 5; }
16248 else
16249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16250 /* end confdefs.h. */
16251 #include <pthread.h>
16252 __thread int a;
16253 static int *volatile a_in_other_thread;
16254 static void *
16255 thread_func (void *arg)
16256 {
16257 a_in_other_thread = &a;
16258 return (void *)0;
16259 }
16260 int
16261 main ()
16262 {
16263 pthread_t thread;
16264 void *thread_retval;
16265 int *volatile a_in_main_thread;
16266 a_in_main_thread = &a;
16267 if (pthread_create (&thread, (pthread_attr_t *)0,
16268 thread_func, (void *)0))
16269 return 0;
16270 if (pthread_join (thread, &thread_retval))
16271 return 0;
16272 return (a_in_other_thread == a_in_main_thread);
16273 ;
16274 return 0;
16275 }
16276 _ACEOF
16277 if ac_fn_c_try_run "$LINENO"; then :
16278 gcc_cv_have_tls=yes
16279 else
16280 gcc_cv_have_tls=no
16281 fi
16282 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16283 conftest.$ac_objext conftest.beam conftest.$ac_ext
16284 fi
16285
16286 CFLAGS="$chktls_save_CFLAGS"
16287 fi
16288 fi
16289 else
16290 gcc_cv_have_tls=no
16291 fi
16292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16293 conftest.$ac_objext conftest.beam conftest.$ac_ext
16294 fi
16295
16296 fi
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
16298 $as_echo "$gcc_cv_have_tls" >&6; }
16299 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
16300
16301 $as_echo "#define HAVE_TLS 1" >>confdefs.h
16302
16303 fi
16304
16305 # See if we have emulated thread-local storage.
16306
16307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the thread-local storage support is from emutls" >&5
16308 $as_echo_n "checking whether the thread-local storage support is from emutls... " >&6; }
16309 if ${gcc_cv_use_emutls+:} false; then :
16310 $as_echo_n "(cached) " >&6
16311 else
16312
16313 gcc_cv_use_emutls=no
16314 echo '__thread int a; int b; int main() { return a = b; }' > conftest.c
16315 if { ac_try='${CC-cc} -Werror -S -o conftest.s conftest.c 1>&5'
16316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
16317 (eval $ac_try) 2>&5
16318 ac_status=$?
16319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16320 test $ac_status = 0; }; }; then
16321 if grep __emutls_get_address conftest.s > /dev/null; then
16322 gcc_cv_use_emutls=yes
16323 fi
16324 fi
16325 rm -f conftest.*
16326
16327 fi
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_use_emutls" >&5
16329 $as_echo "$gcc_cv_use_emutls" >&6; }
16330 if test "$gcc_cv_use_emutls" = "yes" ; then
16331
16332 $as_echo "#define USE_EMUTLS 1" >>confdefs.h
16333
16334 fi
16335
16336 # See what sort of export controls are available.
16337
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
16339 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
16340 if ${libgomp_cv_have_attribute_visibility+:} false; then :
16341 $as_echo_n "(cached) " >&6
16342 else
16343
16344 save_CFLAGS="$CFLAGS"
16345 CFLAGS="$CFLAGS -Werror"
16346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16347 /* end confdefs.h. */
16348 void __attribute__((visibility("hidden"))) foo(void) { }
16349 int
16350 main ()
16351 {
16352
16353 ;
16354 return 0;
16355 }
16356 _ACEOF
16357 if ac_fn_c_try_compile "$LINENO"; then :
16358 libgomp_cv_have_attribute_visibility=yes
16359 else
16360 libgomp_cv_have_attribute_visibility=no
16361 fi
16362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16363 CFLAGS="$save_CFLAGS"
16364 fi
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_visibility" >&5
16366 $as_echo "$libgomp_cv_have_attribute_visibility" >&6; }
16367 if test $libgomp_cv_have_attribute_visibility = yes; then
16368
16369 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
16370
16371 fi
16372
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
16374 $as_echo_n "checking whether the target supports dllexport... " >&6; }
16375 if ${libgomp_cv_have_attribute_dllexport+:} false; then :
16376 $as_echo_n "(cached) " >&6
16377 else
16378
16379 save_CFLAGS="$CFLAGS"
16380 CFLAGS="$CFLAGS -Werror"
16381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16382 /* end confdefs.h. */
16383 void __attribute__((dllexport)) foo(void) { }
16384 int
16385 main ()
16386 {
16387
16388 ;
16389 return 0;
16390 }
16391 _ACEOF
16392 if ac_fn_c_try_compile "$LINENO"; then :
16393 libgomp_cv_have_attribute_dllexport=yes
16394 else
16395 libgomp_cv_have_attribute_dllexport=no
16396 fi
16397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16398 CFLAGS="$save_CFLAGS"
16399 fi
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_dllexport" >&5
16401 $as_echo "$libgomp_cv_have_attribute_dllexport" >&6; }
16402 if test $libgomp_cv_have_attribute_dllexport = yes; then
16403
16404 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
16405
16406 fi
16407
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
16409 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
16410 if ${libgomp_cv_have_attribute_alias+:} false; then :
16411 $as_echo_n "(cached) " >&6
16412 else
16413
16414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16415 /* end confdefs.h. */
16416
16417 void foo(void) { }
16418 extern void bar(void) __attribute__((alias("foo")));
16419 int
16420 main ()
16421 {
16422 bar();
16423 ;
16424 return 0;
16425 }
16426 _ACEOF
16427 if ac_fn_c_try_link "$LINENO"; then :
16428 libgomp_cv_have_attribute_alias=yes
16429 else
16430 libgomp_cv_have_attribute_alias=no
16431 fi
16432 rm -f core conftest.err conftest.$ac_objext \
16433 conftest$ac_exeext conftest.$ac_ext
16434 fi
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_attribute_alias" >&5
16436 $as_echo "$libgomp_cv_have_attribute_alias" >&6; }
16437 if test $libgomp_cv_have_attribute_alias = yes; then
16438
16439 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
16440
16441 fi
16442
16443
16444 # Check whether --with-gnu-ld was given.
16445 if test "${with_gnu_ld+set}" = set; then :
16446 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
16447 else
16448 with_gnu_ld=no
16449 fi
16450
16451 ac_prog=ld
16452 if test "$GCC" = yes; then
16453 # Check if gcc -print-prog-name=ld gives a path.
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
16455 $as_echo_n "checking for ld used by $CC... " >&6; }
16456 case $host in
16457 *-*-mingw*)
16458 # gcc leaves a trailing carriage return which upsets mingw
16459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
16460 *)
16461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
16462 esac
16463 case $ac_prog in
16464 # Accept absolute paths.
16465 [\\/]* | ?:[\\/]*)
16466 re_direlt='/[^/][^/]*/\.\./'
16467 # Canonicalize the pathname of ld
16468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
16469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
16470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
16471 done
16472 test -z "$LD" && LD="$ac_prog"
16473 ;;
16474 "")
16475 # If it fails, then pretend we aren't using GCC.
16476 ac_prog=ld
16477 ;;
16478 *)
16479 # If it is relative, then search for the first ld in PATH.
16480 with_gnu_ld=unknown
16481 ;;
16482 esac
16483 elif test "$with_gnu_ld" = yes; then
16484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
16485 $as_echo_n "checking for GNU ld... " >&6; }
16486 else
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
16488 $as_echo_n "checking for non-GNU ld... " >&6; }
16489 fi
16490 if ${lt_cv_path_LD+:} false; then :
16491 $as_echo_n "(cached) " >&6
16492 else
16493 if test -z "$LD"; then
16494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
16495 for ac_dir in $PATH; do
16496 IFS="$lt_save_ifs"
16497 test -z "$ac_dir" && ac_dir=.
16498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
16499 lt_cv_path_LD="$ac_dir/$ac_prog"
16500 # Check to see if the program is GNU ld. I'd rather use --version,
16501 # but apparently some variants of GNU ld only accept -v.
16502 # Break only if it was the GNU/non-GNU ld that we prefer.
16503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
16504 *GNU* | *'with BFD'*)
16505 test "$with_gnu_ld" != no && break
16506 ;;
16507 *)
16508 test "$with_gnu_ld" != yes && break
16509 ;;
16510 esac
16511 fi
16512 done
16513 IFS="$lt_save_ifs"
16514 else
16515 lt_cv_path_LD="$LD" # Let the user override the test with a path.
16516 fi
16517 fi
16518
16519 LD="$lt_cv_path_LD"
16520 if test -n "$LD"; then
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
16522 $as_echo "$LD" >&6; }
16523 else
16524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16525 $as_echo "no" >&6; }
16526 fi
16527 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
16529 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
16530 if ${lt_cv_prog_gnu_ld+:} false; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 # I'd rather use --version here, but apparently some GNU lds only accept -v.
16534 case `$LD -v 2>&1 </dev/null` in
16535 *GNU* | *'with BFD'*)
16536 lt_cv_prog_gnu_ld=yes
16537 ;;
16538 *)
16539 lt_cv_prog_gnu_ld=no
16540 ;;
16541 esac
16542 fi
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
16544 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
16545 with_gnu_ld=$lt_cv_prog_gnu_ld
16546
16547
16548
16549
16550
16551
16552
16553 # If we're not using GNU ld, then there's no point in even trying these
16554 # tests. Check for that first. We should have already tested for gld
16555 # by now (in libtool), but require it now just to be safe...
16556 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS=''
16557 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS=''
16558
16559
16560
16561 # The name set by libtool depends on the version of libtool. Shame on us
16562 # for depending on an impl detail, but c'est la vie. Older versions used
16563 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on
16564 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually
16565 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't
16566 # set (hence we're using an older libtool), then set it.
16567 if test x${with_gnu_ld+set} != xset; then
16568 if test x${ac_cv_prog_gnu_ld+set} != xset; then
16569 # We got through "ac_require(ac_prog_ld)" and still not set? Huh?
16570 with_gnu_ld=no
16571 else
16572 with_gnu_ld=$ac_cv_prog_gnu_ld
16573 fi
16574 fi
16575
16576 # Start by getting the version number. I think the libtool test already
16577 # does some of this, but throws away the result.
16578 libgomp_ld_is_gold=no
16579 if $LD --version 2>/dev/null | grep 'GNU gold'> /dev/null 2>&1; then
16580 libgomp_ld_is_gold=yes
16581 fi
16582
16583 ldver=`$LD --version 2>/dev/null |
16584 sed -e 's/GNU gold /GNU ld /;s/GNU ld version /GNU ld /;s/GNU ld ([^)]*) /GNU ld /;s/GNU ld \([0-9.][0-9.]*\).*/\1/; q'`
16585
16586 libgomp_gnu_ld_version=`echo $ldver | \
16587 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'`
16588
16589 # Set --gc-sections.
16590 if test "$with_gnu_ld" = "notbroken"; then
16591 # GNU ld it is! Joy and bunny rabbits!
16592
16593 # All these tests are for C++; save the language and the compiler flags.
16594 # Need to do this so that g++ won't try to link in libstdc++
16595 ac_test_CFLAGS="${CFLAGS+set}"
16596 ac_save_CFLAGS="$CFLAGS"
16597 CFLAGS='-x c++ -Wl,--gc-sections'
16598
16599 # Check for -Wl,--gc-sections
16600 # XXX This test is broken at the moment, as symbols required for linking
16601 # are now in libsupc++ (not built yet). In addition, this test has
16602 # cored on solaris in the past. In addition, --gc-sections doesn't
16603 # really work at the moment (keeps on discarding used sections, first
16604 # .eh_frame and now some of the glibc sections for iconv).
16605 # Bzzzzt. Thanks for playing, maybe next time.
16606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld that supports -Wl,--gc-sections" >&5
16607 $as_echo_n "checking for ld that supports -Wl,--gc-sections... " >&6; }
16608 if test "$cross_compiling" = yes; then :
16609 ac_sectionLDflags=yes
16610 else
16611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16612 /* end confdefs.h. */
16613
16614 int main(void)
16615 {
16616 try { throw 1; }
16617 catch (...) { };
16618 return 0;
16619 }
16620
16621 _ACEOF
16622 if ac_fn_c_try_run "$LINENO"; then :
16623 ac_sectionLDflags=yes
16624 else
16625 ac_sectionLDflags=no
16626 fi
16627 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16628 conftest.$ac_objext conftest.beam conftest.$ac_ext
16629 fi
16630
16631 if test "$ac_test_CFLAGS" = set; then
16632 CFLAGS="$ac_save_CFLAGS"
16633 else
16634 # this is the suspicious part
16635 CFLAGS=''
16636 fi
16637 if test "$ac_sectionLDflags" = "yes"; then
16638 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
16639 fi
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_sectionLDflags" >&5
16641 $as_echo "$ac_sectionLDflags" >&6; }
16642 fi
16643
16644 # Set linker optimization flags.
16645 if test x"$with_gnu_ld" = x"yes"; then
16646 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS"
16647 fi
16648
16649
16650
16651
16652
16653
16654 # Check whether --enable-symvers was given.
16655 if test "${enable_symvers+set}" = set; then :
16656 enableval=$enable_symvers;
16657 case "$enableval" in
16658 yes|no|gnu*|sun) ;;
16659 *) as_fn_error $? "Unknown argument to enable/disable symvers" "$LINENO" 5 ;;
16660 esac
16661
16662 else
16663 enable_symvers=yes
16664 fi
16665
16666
16667
16668 # If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we
16669 # don't know enough about $LD to do tricks...
16670
16671
16672 # Turn a 'yes' into a suitable default.
16673 if test x$enable_symvers = xyes ; then
16674 # FIXME The following test is too strict, in theory.
16675 if test $enable_shared = no || test "x$LD" = x; then
16676 enable_symvers=no
16677 else
16678 if test $with_gnu_ld = yes ; then
16679 enable_symvers=gnu
16680 else
16681 case ${target_os} in
16682 # Sun symbol versioning exists since Solaris 2.5.
16683 solaris2.[5-9]* | solaris2.1[0-9]*)
16684 enable_symvers=sun ;;
16685 *)
16686 enable_symvers=no ;;
16687 esac
16688 fi
16689 fi
16690 fi
16691
16692 # Check if 'sun' was requested on non-Solaris 2 platforms.
16693 if test x$enable_symvers = xsun ; then
16694 case ${target_os} in
16695 solaris2*)
16696 # All fine.
16697 ;;
16698 *)
16699 # Unlikely to work.
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested Sun symbol versioning, but" >&5
16701 $as_echo "$as_me: WARNING: === You have requested Sun symbol versioning, but" >&2;}
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === you are not targetting Solaris 2." >&5
16703 $as_echo "$as_me: WARNING: === you are not targetting Solaris 2." >&2;}
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16705 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16706 enable_symvers=no
16707 ;;
16708 esac
16709 fi
16710
16711 # Check to see if libgcc_s exists, indicating that shared libgcc is possible.
16712 if test $enable_symvers != no; then
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared libgcc" >&5
16714 $as_echo_n "checking for shared libgcc... " >&6; }
16715 ac_save_CFLAGS="$CFLAGS"
16716 CFLAGS=' -lgcc_s'
16717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16718 /* end confdefs.h. */
16719
16720 int
16721 main ()
16722 {
16723 return 0;
16724 ;
16725 return 0;
16726 }
16727 _ACEOF
16728 if ac_fn_c_try_link "$LINENO"; then :
16729 libgomp_shared_libgcc=yes
16730 else
16731 libgomp_shared_libgcc=no
16732 fi
16733 rm -f core conftest.err conftest.$ac_objext \
16734 conftest$ac_exeext conftest.$ac_ext
16735 CFLAGS="$ac_save_CFLAGS"
16736 if test $libgomp_shared_libgcc = no; then
16737 cat > conftest.c <<EOF
16738 int main (void) { return 0; }
16739 EOF
16740 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \
16741 -shared -shared-libgcc -o conftest.so \
16742 conftest.c -v 2>&1 >/dev/null \
16743 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'`
16744 rm -f conftest.c conftest.so
16745 if test x${libgomp_libgcc_s_suffix+set} = xset; then
16746 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix"
16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16748 /* end confdefs.h. */
16749
16750 int
16751 main ()
16752 {
16753 return 0;
16754 ;
16755 return 0;
16756 }
16757 _ACEOF
16758 if ac_fn_c_try_link "$LINENO"; then :
16759 libgomp_shared_libgcc=yes
16760 fi
16761 rm -f core conftest.err conftest.$ac_objext \
16762 conftest$ac_exeext conftest.$ac_ext
16763 CFLAGS="$ac_save_CFLAGS"
16764 fi
16765 fi
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_shared_libgcc" >&5
16767 $as_echo "$libgomp_shared_libgcc" >&6; }
16768 fi
16769
16770 # For GNU ld, we need at least this version. The format is described in
16771 # LIBGOMP_CHECK_LINKER_FEATURES above.
16772 libgomp_min_gnu_ld_version=21400
16773 # XXXXXXXXXXX libgomp_gnu_ld_version=21390
16774
16775 # Check to see if unspecified "yes" value can win, given results above.
16776 # Change "yes" into either "no" or a style name.
16777 if test $enable_symvers != no && test $libgomp_shared_libgcc = yes; then
16778 if test $with_gnu_ld = yes; then
16779 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then
16780 enable_symvers=gnu
16781 elif test $libgomp_ld_is_gold = yes ; then
16782 enable_symvers=gnu
16783 else
16784 # The right tools, the right setup, but too old. Fallbacks?
16785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5
16786 $as_echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;}
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === full symbol versioning support in this release of GCC." >&5
16788 $as_echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;}
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You would need to upgrade your binutils to version" >&5
16790 $as_echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;}
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5
16792 $as_echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;}
16793 if test $libgomp_gnu_ld_version -ge 21200 ; then
16794 # Globbing fix is present, proper block support is not.
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16796 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16797 enable_symvers=no
16798 else
16799 # 2.11 or older.
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16801 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16802 enable_symvers=no
16803 fi
16804 fi
16805 elif test $enable_symvers = sun; then
16806 : All interesting versions of Sun ld support sun style symbol versioning.
16807 else
16808 # just fail for now
16809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === You have requested some kind of symbol versioning, but" >&5
16810 $as_echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;}
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === either you are not using a supported linker, or you are" >&5
16812 $as_echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;}
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === not building a shared libgcc_s (which is required)." >&5
16814 $as_echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;}
16815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: === Symbol versioning will be disabled." >&5
16816 $as_echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;}
16817 enable_symvers=no
16818 fi
16819 fi
16820
16821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports .symver directive" >&5
16822 $as_echo_n "checking whether the target supports .symver directive... " >&6; }
16823 if ${libgomp_cv_have_as_symver_directive+:} false; then :
16824 $as_echo_n "(cached) " >&6
16825 else
16826
16827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16828 /* end confdefs.h. */
16829 void foo (void); __asm (".symver foo, bar@SYMVER");
16830 int
16831 main ()
16832 {
16833
16834 ;
16835 return 0;
16836 }
16837 _ACEOF
16838 if ac_fn_c_try_compile "$LINENO"; then :
16839 libgomp_cv_have_as_symver_directive=yes
16840 else
16841 libgomp_cv_have_as_symver_directive=no
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844 fi
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_as_symver_directive" >&5
16846 $as_echo "$libgomp_cv_have_as_symver_directive" >&6; }
16847 if test $libgomp_cv_have_as_symver_directive = yes; then
16848
16849 $as_echo "#define HAVE_AS_SYMVER_DIRECTIVE 1" >>confdefs.h
16850
16851 fi
16852
16853 if test $enable_symvers != no; then
16854 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE=
16855 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#'
16856 else
16857 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#'
16858 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE=
16859 fi
16860
16861 if test $enable_symvers = gnu; then
16862 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE=
16863 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE='#'
16864 else
16865 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE='#'
16866 LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE=
16867 fi
16868
16869 if test $enable_symvers = sun; then
16870 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE=
16871 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE='#'
16872 else
16873 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE='#'
16874 LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE=
16875 fi
16876
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: versioning on shared library symbols is $enable_symvers" >&5
16878 $as_echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;}
16879
16880 if test $enable_symvers != no ; then
16881 case ${target_os} in
16882 # The Solaris 2 runtime linker doesn't support the GNU extension of
16883 # binding the same symbol to different versions
16884 solaris2*)
16885 ;;
16886 # Other platforms with GNU symbol versioning (GNU/Linux, more?) do.
16887 *)
16888
16889 $as_echo "#define HAVE_SYMVER_SYMBOL_RENAMING_RUNTIME_SUPPORT 1" >>confdefs.h
16890
16891 ;;
16892 esac
16893 fi
16894
16895
16896 if test $enable_symvers = gnu; then
16897
16898 $as_echo "#define LIBGOMP_GNU_SYMBOL_VERSIONING 1" >>confdefs.h
16899
16900 fi
16901
16902 # Get target configury.
16903 . ${srcdir}/configure.tgt
16904 CFLAGS="$save_CFLAGS $XCFLAGS"
16905
16906 # Check for __sync_val_compare_and_swap, but only after the target has
16907 # had a chance to set XCFLAGS.
16908
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_*_compare_and_swap" >&5
16910 $as_echo_n "checking whether the target supports __sync_*_compare_and_swap... " >&6; }
16911 if ${libgomp_cv_have_sync_builtins+:} false; then :
16912 $as_echo_n "(cached) " >&6
16913 else
16914
16915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16916 /* end confdefs.h. */
16917
16918 int
16919 main ()
16920 {
16921 int foo; __sync_val_compare_and_swap(&foo, 0, 1);
16922 ;
16923 return 0;
16924 }
16925 _ACEOF
16926 if ac_fn_c_try_link "$LINENO"; then :
16927 libgomp_cv_have_sync_builtins=yes
16928 else
16929 libgomp_cv_have_sync_builtins=no
16930 fi
16931 rm -f core conftest.err conftest.$ac_objext \
16932 conftest$ac_exeext conftest.$ac_ext
16933 fi
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgomp_cv_have_sync_builtins" >&5
16935 $as_echo "$libgomp_cv_have_sync_builtins" >&6; }
16936 if test $libgomp_cv_have_sync_builtins = yes; then
16937
16938 $as_echo "#define HAVE_SYNC_BUILTINS 1" >>confdefs.h
16939
16940 fi
16941
16942 XCFLAGS="$XCFLAGS$XPCFLAGS"
16943
16944 # Add CET specific flags if CET is enabled
16945 # Check whether --enable-cet was given.
16946 if test "${enable_cet+set}" = set; then :
16947 enableval=$enable_cet;
16948 case "$enableval" in
16949 yes|no|auto) ;;
16950 *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
16951 esac
16952
16953 else
16954 enable_cet=no
16955 fi
16956
16957
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
16959 $as_echo_n "checking for CET support... " >&6; }
16960
16961 case "$host" in
16962 i[34567]86-*-linux* | x86_64-*-linux*)
16963 case "$enable_cet" in
16964 auto)
16965 # Check if target supports multi-byte NOPs
16966 # and if assembler supports CET insn.
16967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16968 /* end confdefs.h. */
16969
16970 int
16971 main ()
16972 {
16973
16974 #if !defined(__SSE2__)
16975 #error target does not support multi-byte NOPs
16976 #else
16977 asm ("setssbsy");
16978 #endif
16979
16980 ;
16981 return 0;
16982 }
16983 _ACEOF
16984 if ac_fn_c_try_compile "$LINENO"; then :
16985 enable_cet=yes
16986 else
16987 enable_cet=no
16988 fi
16989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16990 ;;
16991 yes)
16992 # Check if assembler supports CET.
16993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16994 /* end confdefs.h. */
16995
16996 int
16997 main ()
16998 {
16999 asm ("setssbsy");
17000 ;
17001 return 0;
17002 }
17003 _ACEOF
17004 if ac_fn_c_try_compile "$LINENO"; then :
17005
17006 else
17007 as_fn_error $? "assembler with CET support is required for --enable-cet" "$LINENO" 5
17008 fi
17009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17010 ;;
17011 esac
17012 ;;
17013 *)
17014 enable_cet=no
17015 ;;
17016 esac
17017 if test x$enable_cet = xyes; then
17018 CET_FLAGS="-fcf-protection -mshstk"
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17020 $as_echo "yes" >&6; }
17021 else
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17023 $as_echo "no" >&6; }
17024 fi
17025
17026 XCFLAGS="$XCFLAGS $CET_FLAGS"
17027 FCFLAGS="$FCFLAGS $CET_FLAGS"
17028
17029
17030
17031
17032
17033 # Cleanup and exit.
17034 CFLAGS="$save_CFLAGS"
17035 cat >confcache <<\_ACEOF
17036 # This file is a shell script that caches the results of configure
17037 # tests run on this system so they can be shared between configure
17038 # scripts and configure runs, see configure's option --config-cache.
17039 # It is not useful on other systems. If it contains results you don't
17040 # want to keep, you may remove or edit it.
17041 #
17042 # config.status only pays attention to the cache file if you give it
17043 # the --recheck option to rerun configure.
17044 #
17045 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17046 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17047 # following values.
17048
17049 _ACEOF
17050
17051 # The following way of writing the cache mishandles newlines in values,
17052 # but we know of no workaround that is simple, portable, and efficient.
17053 # So, we kill variables containing newlines.
17054 # Ultrix sh set writes to stderr and can't be redirected directly,
17055 # and sets the high bit in the cache file unless we assign to the vars.
17056 (
17057 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17058 eval ac_val=\$$ac_var
17059 case $ac_val in #(
17060 *${as_nl}*)
17061 case $ac_var in #(
17062 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17063 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17064 esac
17065 case $ac_var in #(
17066 _ | IFS | as_nl) ;; #(
17067 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17068 *) { eval $ac_var=; unset $ac_var;} ;;
17069 esac ;;
17070 esac
17071 done
17072
17073 (set) 2>&1 |
17074 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17075 *${as_nl}ac_space=\ *)
17076 # `set' does not quote correctly, so add quotes: double-quote
17077 # substitution turns \\\\ into \\, and sed turns \\ into \.
17078 sed -n \
17079 "s/'/'\\\\''/g;
17080 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17081 ;; #(
17082 *)
17083 # `set' quotes correctly as required by POSIX, so do not add quotes.
17084 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17085 ;;
17086 esac |
17087 sort
17088 ) |
17089 sed '
17090 /^ac_cv_env_/b end
17091 t clear
17092 :clear
17093 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17094 t end
17095 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17096 :end' >>confcache
17097 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17098 if test -w "$cache_file"; then
17099 if test "x$cache_file" != "x/dev/null"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17101 $as_echo "$as_me: updating cache $cache_file" >&6;}
17102 if test ! -f "$cache_file" || test -h "$cache_file"; then
17103 cat confcache >"$cache_file"
17104 else
17105 case $cache_file in #(
17106 */* | ?:*)
17107 mv -f confcache "$cache_file"$$ &&
17108 mv -f "$cache_file"$$ "$cache_file" ;; #(
17109 *)
17110 mv -f confcache "$cache_file" ;;
17111 esac
17112 fi
17113 fi
17114 else
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17116 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17117 fi
17118 fi
17119 rm -f confcache
17120
17121 if test ${multilib} = yes; then
17122 multilib_arg="--enable-multilib"
17123 else
17124 multilib_arg=
17125 fi
17126
17127 # Set up the set of libraries that we need to link against for libgomp.
17128 # Note that the GOMP_SELF_SPEC in gcc.c may force -pthread,
17129 # which will force linkage against -lpthread (or equivalent for the system).
17130 # That's not 100% ideal, but about the best we can do easily.
17131 if test $enable_shared = yes; then
17132 link_gomp="-lgomp %{static: $LIBS}"
17133 else
17134 link_gomp="-lgomp $LIBS"
17135 fi
17136
17137
17138 if test "$ac_cv_fc_compiler_gnu" = yes; then
17139 USE_FORTRAN_TRUE=
17140 USE_FORTRAN_FALSE='#'
17141 else
17142 USE_FORTRAN_TRUE='#'
17143 USE_FORTRAN_FALSE=
17144 fi
17145
17146
17147 # ??? 2006-01-24: Paulo committed to asking autoconf folk to document
17148 # and export AC_COMPUTE_INT. If that happens, then we'll need to remove
17149 # the underscore here and update the PREREQ. If it doesn't, then we'll
17150 # need to copy this macro to our acinclude.m4.
17151 save_CFLAGS="$CFLAGS"
17152 for i in $config_path; do
17153 if test -f $srcdir/config/$i/omp-lock.h; then
17154 CFLAGS="$CFLAGS -include confdefs.h -include $srcdir/config/$i/omp-lock.h"
17155 break
17156 fi
17157 done
17158
17159 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_t)" "OMP_LOCK_SIZE" ""; then :
17160
17161 else
17162 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_t)" "$LINENO" 5
17163 fi
17164
17165
17166 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_t)" "OMP_LOCK_ALIGN" ""; then :
17167
17168 fi
17169
17170
17171 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_t)" "OMP_NEST_LOCK_SIZE" ""; then :
17172
17173 fi
17174
17175
17176 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_t)" "OMP_NEST_LOCK_ALIGN" ""; then :
17177
17178 fi
17179
17180
17181 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_lock_25_t)" "OMP_LOCK_25_SIZE" ""; then :
17182
17183 else
17184 as_fn_error $? "unsupported system, cannot find sizeof (omp_lock_25_t)" "$LINENO" 5
17185 fi
17186
17187
17188 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_lock_25_t)" "OMP_LOCK_25_ALIGN" ""; then :
17189
17190 fi
17191
17192
17193 if ac_fn_c_compute_int "$LINENO" "sizeof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_SIZE" ""; then :
17194
17195 fi
17196
17197
17198 if ac_fn_c_compute_int "$LINENO" "__alignof (omp_nest_lock_25_t)" "OMP_NEST_LOCK_25_ALIGN" ""; then :
17199
17200 fi
17201
17202
17203
17204 # If the lock fits in an integer, then arrange for Fortran to use that
17205 # integer. If it doesn't, then arrange for Fortran to use a pointer.
17206 # Except that we don't have a way at present to multi-lib the installed
17207 # Fortran modules, so we assume 8 bytes for pointers, regardless of the
17208 # actual target.
17209 OMP_LOCK_KIND=$OMP_LOCK_SIZE
17210 OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE
17211 if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then
17212 OMP_LOCK_KIND=8
17213 fi
17214 if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then
17215 OMP_NEST_LOCK_KIND=8
17216 fi
17217 OMP_LOCK_25_KIND=$OMP_LOCK_25_SIZE
17218 OMP_NEST_LOCK_25_KIND=$OMP_NEST_LOCK_25_SIZE
17219 if test $OMP_LOCK_25_SIZE -gt 8 || test $OMP_LOCK_25_ALIGN -gt $OMP_LOCK_25_SIZE; then
17220 OMP_LOCK_25_KIND=8
17221 fi
17222 if test $OMP_NEST_LOCK_25_SIZE -gt 8 || test $OMP_NEST_LOCK_25_ALIGN -gt $OMP_NEST_LOCK_25_SIZE; then
17223 OMP_NEST_LOCK_25_KIND=8
17224 fi
17225
17226
17227
17228
17229
17230
17231
17232
17233
17234
17235
17236
17237
17238 CFLAGS="$save_CFLAGS"
17239
17240 # Determine what GCC version number to use in filesystem paths.
17241
17242 get_gcc_base_ver="cat"
17243
17244 # Check whether --with-gcc-major-version-only was given.
17245 if test "${with_gcc_major_version_only+set}" = set; then :
17246 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
17247 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
17248 fi
17249
17250 fi
17251
17252
17253
17254
17255 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h"
17256
17257 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec"
17258
17259 ac_config_files="$ac_config_files testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in"
17260
17261 cat >confcache <<\_ACEOF
17262 # This file is a shell script that caches the results of configure
17263 # tests run on this system so they can be shared between configure
17264 # scripts and configure runs, see configure's option --config-cache.
17265 # It is not useful on other systems. If it contains results you don't
17266 # want to keep, you may remove or edit it.
17267 #
17268 # config.status only pays attention to the cache file if you give it
17269 # the --recheck option to rerun configure.
17270 #
17271 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17272 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17273 # following values.
17274
17275 _ACEOF
17276
17277 # The following way of writing the cache mishandles newlines in values,
17278 # but we know of no workaround that is simple, portable, and efficient.
17279 # So, we kill variables containing newlines.
17280 # Ultrix sh set writes to stderr and can't be redirected directly,
17281 # and sets the high bit in the cache file unless we assign to the vars.
17282 (
17283 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17284 eval ac_val=\$$ac_var
17285 case $ac_val in #(
17286 *${as_nl}*)
17287 case $ac_var in #(
17288 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
17289 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
17290 esac
17291 case $ac_var in #(
17292 _ | IFS | as_nl) ;; #(
17293 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17294 *) { eval $ac_var=; unset $ac_var;} ;;
17295 esac ;;
17296 esac
17297 done
17298
17299 (set) 2>&1 |
17300 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17301 *${as_nl}ac_space=\ *)
17302 # `set' does not quote correctly, so add quotes: double-quote
17303 # substitution turns \\\\ into \\, and sed turns \\ into \.
17304 sed -n \
17305 "s/'/'\\\\''/g;
17306 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
17307 ;; #(
17308 *)
17309 # `set' quotes correctly as required by POSIX, so do not add quotes.
17310 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
17311 ;;
17312 esac |
17313 sort
17314 ) |
17315 sed '
17316 /^ac_cv_env_/b end
17317 t clear
17318 :clear
17319 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17320 t end
17321 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17322 :end' >>confcache
17323 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17324 if test -w "$cache_file"; then
17325 if test "x$cache_file" != "x/dev/null"; then
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
17327 $as_echo "$as_me: updating cache $cache_file" >&6;}
17328 if test ! -f "$cache_file" || test -h "$cache_file"; then
17329 cat confcache >"$cache_file"
17330 else
17331 case $cache_file in #(
17332 */* | ?:*)
17333 mv -f confcache "$cache_file"$$ &&
17334 mv -f "$cache_file"$$ "$cache_file" ;; #(
17335 *)
17336 mv -f confcache "$cache_file" ;;
17337 esac
17338 fi
17339 fi
17340 else
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
17342 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
17343 fi
17344 fi
17345 rm -f confcache
17346
17347 test "x$prefix" = xNONE && prefix=$ac_default_prefix
17348 # Let make expand exec_prefix.
17349 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
17350
17351 DEFS=-DHAVE_CONFIG_H
17352
17353 ac_libobjs=
17354 ac_ltlibobjs=
17355 U=
17356 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17357 # 1. Remove the extension, and $U if already installed.
17358 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
17359 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17360 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17361 # will be set to the directory where LIBOBJS objects are built.
17362 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17363 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
17364 done
17365 LIBOBJS=$ac_libobjs
17366
17367 LTLIBOBJS=$ac_ltlibobjs
17368
17369
17370 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
17371 as_fn_error $? "conditional \"GENINSRC\" was never defined.
17372 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17373 fi
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
17375 $as_echo_n "checking that generated files are newer than configure... " >&6; }
17376 if test -n "$am_sleep_pid"; then
17377 # Hide warnings about reused PIDs.
17378 wait $am_sleep_pid 2>/dev/null
17379 fi
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
17381 $as_echo "done" >&6; }
17382 if test -n "$EXEEXT"; then
17383 am__EXEEXT_TRUE=
17384 am__EXEEXT_FALSE='#'
17385 else
17386 am__EXEEXT_TRUE='#'
17387 am__EXEEXT_FALSE=
17388 fi
17389
17390 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
17391 as_fn_error $? "conditional \"AMDEP\" was never defined.
17392 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17393 fi
17394 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
17395 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
17396 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17397 fi
17398 if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then
17399 as_fn_error $? "conditional \"BUILD_INFO\" was never defined.
17400 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17401 fi
17402 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
17403 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
17404 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17405 fi
17406 if test -z "${PLUGIN_NVPTX_TRUE}" && test -z "${PLUGIN_NVPTX_FALSE}"; then
17407 as_fn_error $? "conditional \"PLUGIN_NVPTX\" was never defined.
17408 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17409 fi
17410 if test -z "${PLUGIN_HSA_TRUE}" && test -z "${PLUGIN_HSA_FALSE}"; then
17411 as_fn_error $? "conditional \"PLUGIN_HSA\" was never defined.
17412 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17413 fi
17414 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then
17415 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined.
17416 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17417 fi
17418 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_GNU_FALSE}"; then
17419 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_GNU\" was never defined.
17420 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17421 fi
17422 if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_SUN_FALSE}"; then
17423 as_fn_error $? "conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB_SUN\" was never defined.
17424 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17425 fi
17426 if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then
17427 as_fn_error $? "conditional \"USE_FORTRAN\" was never defined.
17428 Usually this means the macro was only invoked conditionally." "$LINENO" 5
17429 fi
17430
17431 : "${CONFIG_STATUS=./config.status}"
17432 ac_write_fail=0
17433 ac_clean_files_save=$ac_clean_files
17434 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17436 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17437 as_write_fail=0
17438 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17439 #! $SHELL
17440 # Generated by $as_me.
17441 # Run this file to recreate the current configuration.
17442 # Compiler output produced by configure, useful for debugging
17443 # configure, is in config.log if it exists.
17444
17445 debug=false
17446 ac_cs_recheck=false
17447 ac_cs_silent=false
17448
17449 SHELL=\${CONFIG_SHELL-$SHELL}
17450 export SHELL
17451 _ASEOF
17452 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17453 ## -------------------- ##
17454 ## M4sh Initialization. ##
17455 ## -------------------- ##
17456
17457 # Be more Bourne compatible
17458 DUALCASE=1; export DUALCASE # for MKS sh
17459 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17460 emulate sh
17461 NULLCMD=:
17462 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17463 # is contrary to our usage. Disable this feature.
17464 alias -g '${1+"$@"}'='"$@"'
17465 setopt NO_GLOB_SUBST
17466 else
17467 case `(set -o) 2>/dev/null` in #(
17468 *posix*) :
17469 set -o posix ;; #(
17470 *) :
17471 ;;
17472 esac
17473 fi
17474
17475
17476 as_nl='
17477 '
17478 export as_nl
17479 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17480 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17481 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
17482 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17483 # Prefer a ksh shell builtin over an external printf program on Solaris,
17484 # but without wasting forks for bash or zsh.
17485 if test -z "$BASH_VERSION$ZSH_VERSION" \
17486 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
17487 as_echo='print -r --'
17488 as_echo_n='print -rn --'
17489 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
17490 as_echo='printf %s\n'
17491 as_echo_n='printf %s'
17492 else
17493 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17494 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
17495 as_echo_n='/usr/ucb/echo -n'
17496 else
17497 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
17498 as_echo_n_body='eval
17499 arg=$1;
17500 case $arg in #(
17501 *"$as_nl"*)
17502 expr "X$arg" : "X\\(.*\\)$as_nl";
17503 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17504 esac;
17505 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17506 '
17507 export as_echo_n_body
17508 as_echo_n='sh -c $as_echo_n_body as_echo'
17509 fi
17510 export as_echo_body
17511 as_echo='sh -c $as_echo_body as_echo'
17512 fi
17513
17514 # The user is always right.
17515 if test "${PATH_SEPARATOR+set}" != set; then
17516 PATH_SEPARATOR=:
17517 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
17518 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
17519 PATH_SEPARATOR=';'
17520 }
17521 fi
17522
17523
17524 # IFS
17525 # We need space, tab and new line, in precisely that order. Quoting is
17526 # there to prevent editors from complaining about space-tab.
17527 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17528 # splitting by setting IFS to empty value.)
17529 IFS=" "" $as_nl"
17530
17531 # Find who we are. Look in the path if we contain no directory separator.
17532 as_myself=
17533 case $0 in #((
17534 *[\\/]* ) as_myself=$0 ;;
17535 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17536 for as_dir in $PATH
17537 do
17538 IFS=$as_save_IFS
17539 test -z "$as_dir" && as_dir=.
17540 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
17541 done
17542 IFS=$as_save_IFS
17543
17544 ;;
17545 esac
17546 # We did not find ourselves, most probably we were run as `sh COMMAND'
17547 # in which case we are not to be found in the path.
17548 if test "x$as_myself" = x; then
17549 as_myself=$0
17550 fi
17551 if test ! -f "$as_myself"; then
17552 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17553 exit 1
17554 fi
17555
17556 # Unset variables that we do not need and which cause bugs (e.g. in
17557 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17558 # suppresses any "Segmentation fault" message there. '((' could
17559 # trigger a bug in pdksh 5.2.14.
17560 for as_var in BASH_ENV ENV MAIL MAILPATH
17561 do eval test x\${$as_var+set} = xset \
17562 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
17563 done
17564 PS1='$ '
17565 PS2='> '
17566 PS4='+ '
17567
17568 # NLS nuisances.
17569 LC_ALL=C
17570 export LC_ALL
17571 LANGUAGE=C
17572 export LANGUAGE
17573
17574 # CDPATH.
17575 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
17576
17577
17578 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17579 # ----------------------------------------
17580 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17581 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17582 # script with STATUS, using 1 if that was 0.
17583 as_fn_error ()
17584 {
17585 as_status=$1; test $as_status -eq 0 && as_status=1
17586 if test "$4"; then
17587 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
17588 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17589 fi
17590 $as_echo "$as_me: error: $2" >&2
17591 as_fn_exit $as_status
17592 } # as_fn_error
17593
17594
17595 # as_fn_set_status STATUS
17596 # -----------------------
17597 # Set $? to STATUS, without forking.
17598 as_fn_set_status ()
17599 {
17600 return $1
17601 } # as_fn_set_status
17602
17603 # as_fn_exit STATUS
17604 # -----------------
17605 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
17606 as_fn_exit ()
17607 {
17608 set +e
17609 as_fn_set_status $1
17610 exit $1
17611 } # as_fn_exit
17612
17613 # as_fn_unset VAR
17614 # ---------------
17615 # Portably unset VAR.
17616 as_fn_unset ()
17617 {
17618 { eval $1=; unset $1;}
17619 }
17620 as_unset=as_fn_unset
17621 # as_fn_append VAR VALUE
17622 # ----------------------
17623 # Append the text in VALUE to the end of the definition contained in VAR. Take
17624 # advantage of any shell optimizations that allow amortized linear growth over
17625 # repeated appends, instead of the typical quadratic growth present in naive
17626 # implementations.
17627 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
17628 eval 'as_fn_append ()
17629 {
17630 eval $1+=\$2
17631 }'
17632 else
17633 as_fn_append ()
17634 {
17635 eval $1=\$$1\$2
17636 }
17637 fi # as_fn_append
17638
17639 # as_fn_arith ARG...
17640 # ------------------
17641 # Perform arithmetic evaluation on the ARGs, and store the result in the
17642 # global $as_val. Take advantage of shells that can avoid forks. The arguments
17643 # must be portable across $(()) and expr.
17644 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
17645 eval 'as_fn_arith ()
17646 {
17647 as_val=$(( $* ))
17648 }'
17649 else
17650 as_fn_arith ()
17651 {
17652 as_val=`expr "$@" || test $? -eq 1`
17653 }
17654 fi # as_fn_arith
17655
17656
17657 if expr a : '\(a\)' >/dev/null 2>&1 &&
17658 test "X`expr 00001 : '.*\(...\)'`" = X001; then
17659 as_expr=expr
17660 else
17661 as_expr=false
17662 fi
17663
17664 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
17665 as_basename=basename
17666 else
17667 as_basename=false
17668 fi
17669
17670 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
17671 as_dirname=dirname
17672 else
17673 as_dirname=false
17674 fi
17675
17676 as_me=`$as_basename -- "$0" ||
17677 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
17678 X"$0" : 'X\(//\)$' \| \
17679 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
17680 $as_echo X/"$0" |
17681 sed '/^.*\/\([^/][^/]*\)\/*$/{
17682 s//\1/
17683 q
17684 }
17685 /^X\/\(\/\/\)$/{
17686 s//\1/
17687 q
17688 }
17689 /^X\/\(\/\).*/{
17690 s//\1/
17691 q
17692 }
17693 s/.*/./; q'`
17694
17695 # Avoid depending upon Character Ranges.
17696 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
17697 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
17698 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
17699 as_cr_digits='0123456789'
17700 as_cr_alnum=$as_cr_Letters$as_cr_digits
17701
17702 ECHO_C= ECHO_N= ECHO_T=
17703 case `echo -n x` in #(((((
17704 -n*)
17705 case `echo 'xy\c'` in
17706 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
17707 xy) ECHO_C='\c';;
17708 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
17709 ECHO_T=' ';;
17710 esac;;
17711 *)
17712 ECHO_N='-n';;
17713 esac
17714
17715 rm -f conf$$ conf$$.exe conf$$.file
17716 if test -d conf$$.dir; then
17717 rm -f conf$$.dir/conf$$.file
17718 else
17719 rm -f conf$$.dir
17720 mkdir conf$$.dir 2>/dev/null
17721 fi
17722 if (echo >conf$$.file) 2>/dev/null; then
17723 if ln -s conf$$.file conf$$ 2>/dev/null; then
17724 as_ln_s='ln -s'
17725 # ... but there are two gotchas:
17726 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
17727 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
17728 # In both cases, we have to default to `cp -pR'.
17729 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
17730 as_ln_s='cp -pR'
17731 elif ln conf$$.file conf$$ 2>/dev/null; then
17732 as_ln_s=ln
17733 else
17734 as_ln_s='cp -pR'
17735 fi
17736 else
17737 as_ln_s='cp -pR'
17738 fi
17739 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
17740 rmdir conf$$.dir 2>/dev/null
17741
17742
17743 # as_fn_mkdir_p
17744 # -------------
17745 # Create "$as_dir" as a directory, including parents if necessary.
17746 as_fn_mkdir_p ()
17747 {
17748
17749 case $as_dir in #(
17750 -*) as_dir=./$as_dir;;
17751 esac
17752 test -d "$as_dir" || eval $as_mkdir_p || {
17753 as_dirs=
17754 while :; do
17755 case $as_dir in #(
17756 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
17757 *) as_qdir=$as_dir;;
17758 esac
17759 as_dirs="'$as_qdir' $as_dirs"
17760 as_dir=`$as_dirname -- "$as_dir" ||
17761 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
17762 X"$as_dir" : 'X\(//\)[^/]' \| \
17763 X"$as_dir" : 'X\(//\)$' \| \
17764 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
17765 $as_echo X"$as_dir" |
17766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
17767 s//\1/
17768 q
17769 }
17770 /^X\(\/\/\)[^/].*/{
17771 s//\1/
17772 q
17773 }
17774 /^X\(\/\/\)$/{
17775 s//\1/
17776 q
17777 }
17778 /^X\(\/\).*/{
17779 s//\1/
17780 q
17781 }
17782 s/.*/./; q'`
17783 test -d "$as_dir" && break
17784 done
17785 test -z "$as_dirs" || eval "mkdir $as_dirs"
17786 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
17787
17788
17789 } # as_fn_mkdir_p
17790 if mkdir -p . 2>/dev/null; then
17791 as_mkdir_p='mkdir -p "$as_dir"'
17792 else
17793 test -d ./-p && rmdir ./-p
17794 as_mkdir_p=false
17795 fi
17796
17797
17798 # as_fn_executable_p FILE
17799 # -----------------------
17800 # Test if FILE is an executable regular file.
17801 as_fn_executable_p ()
17802 {
17803 test -f "$1" && test -x "$1"
17804 } # as_fn_executable_p
17805 as_test_x='test -x'
17806 as_executable_p=as_fn_executable_p
17807
17808 # Sed expression to map a string onto a valid CPP name.
17809 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
17810
17811 # Sed expression to map a string onto a valid variable name.
17812 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
17813
17814
17815 exec 6>&1
17816 ## ----------------------------------- ##
17817 ## Main body of $CONFIG_STATUS script. ##
17818 ## ----------------------------------- ##
17819 _ASEOF
17820 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
17821
17822 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17823 # Save the log message, to keep $0 and so on meaningful, and to
17824 # report actual input values of CONFIG_FILES etc. instead of their
17825 # values after options handling.
17826 ac_log="
17827 This file was extended by GNU Offloading and Multi Processing Runtime Library $as_me 1.0, which was
17828 generated by GNU Autoconf 2.69. Invocation command line was
17829
17830 CONFIG_FILES = $CONFIG_FILES
17831 CONFIG_HEADERS = $CONFIG_HEADERS
17832 CONFIG_LINKS = $CONFIG_LINKS
17833 CONFIG_COMMANDS = $CONFIG_COMMANDS
17834 $ $0 $@
17835
17836 on `(hostname || uname -n) 2>/dev/null | sed 1q`
17837 "
17838
17839 _ACEOF
17840
17841 case $ac_config_files in *"
17842 "*) set x $ac_config_files; shift; ac_config_files=$*;;
17843 esac
17844
17845 case $ac_config_headers in *"
17846 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
17847 esac
17848
17849
17850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17851 # Files that config.status was made for.
17852 config_files="$ac_config_files"
17853 config_headers="$ac_config_headers"
17854 config_commands="$ac_config_commands"
17855
17856 _ACEOF
17857
17858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17859 ac_cs_usage="\
17860 \`$as_me' instantiates files and other configuration actions
17861 from templates according to the current configuration. Unless the files
17862 and actions are specified as TAGs, all are instantiated by default.
17863
17864 Usage: $0 [OPTION]... [TAG]...
17865
17866 -h, --help print this help, then exit
17867 -V, --version print version number and configuration settings, then exit
17868 --config print configuration, then exit
17869 -q, --quiet, --silent
17870 do not print progress messages
17871 -d, --debug don't remove temporary files
17872 --recheck update $as_me by reconfiguring in the same conditions
17873 --file=FILE[:TEMPLATE]
17874 instantiate the configuration file FILE
17875 --header=FILE[:TEMPLATE]
17876 instantiate the configuration header FILE
17877
17878 Configuration files:
17879 $config_files
17880
17881 Configuration headers:
17882 $config_headers
17883
17884 Configuration commands:
17885 $config_commands
17886
17887 Report bugs to the package provider.
17888 GNU Offloading and Multi Processing Runtime Library home page: <http://www.gnu.org/software/libgomp/>.
17889 General help using GNU software: <http://www.gnu.org/gethelp/>."
17890
17891 _ACEOF
17892 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17893 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
17894 ac_cs_version="\\
17895 GNU Offloading and Multi Processing Runtime Library config.status 1.0
17896 configured by $0, generated by GNU Autoconf 2.69,
17897 with options \\"\$ac_cs_config\\"
17898
17899 Copyright (C) 2012 Free Software Foundation, Inc.
17900 This config.status script is free software; the Free Software Foundation
17901 gives unlimited permission to copy, distribute and modify it."
17902
17903 ac_pwd='$ac_pwd'
17904 srcdir='$srcdir'
17905 INSTALL='$INSTALL'
17906 MKDIR_P='$MKDIR_P'
17907 AWK='$AWK'
17908 test -n "\$AWK" || AWK=awk
17909 _ACEOF
17910
17911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
17912 # The default lists apply if the user does not specify any file.
17913 ac_need_defaults=:
17914 while test $# != 0
17915 do
17916 case $1 in
17917 --*=?*)
17918 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17919 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
17920 ac_shift=:
17921 ;;
17922 --*=)
17923 ac_option=`expr "X$1" : 'X\([^=]*\)='`
17924 ac_optarg=
17925 ac_shift=:
17926 ;;
17927 *)
17928 ac_option=$1
17929 ac_optarg=$2
17930 ac_shift=shift
17931 ;;
17932 esac
17933
17934 case $ac_option in
17935 # Handling of the options.
17936 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
17937 ac_cs_recheck=: ;;
17938 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
17939 $as_echo "$ac_cs_version"; exit ;;
17940 --config | --confi | --conf | --con | --co | --c )
17941 $as_echo "$ac_cs_config"; exit ;;
17942 --debug | --debu | --deb | --de | --d | -d )
17943 debug=: ;;
17944 --file | --fil | --fi | --f )
17945 $ac_shift
17946 case $ac_optarg in
17947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17948 '') as_fn_error $? "missing file argument" ;;
17949 esac
17950 as_fn_append CONFIG_FILES " '$ac_optarg'"
17951 ac_need_defaults=false;;
17952 --header | --heade | --head | --hea )
17953 $ac_shift
17954 case $ac_optarg in
17955 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
17956 esac
17957 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
17958 ac_need_defaults=false;;
17959 --he | --h)
17960 # Conflict between --help and --header
17961 as_fn_error $? "ambiguous option: \`$1'
17962 Try \`$0 --help' for more information.";;
17963 --help | --hel | -h )
17964 $as_echo "$ac_cs_usage"; exit ;;
17965 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
17966 | -silent | --silent | --silen | --sile | --sil | --si | --s)
17967 ac_cs_silent=: ;;
17968
17969 # This is an error.
17970 -*) as_fn_error $? "unrecognized option: \`$1'
17971 Try \`$0 --help' for more information." ;;
17972
17973 *) as_fn_append ac_config_targets " $1"
17974 ac_need_defaults=false ;;
17975
17976 esac
17977 shift
17978 done
17979
17980 ac_configure_extra_args=
17981
17982 if $ac_cs_silent; then
17983 exec 6>/dev/null
17984 ac_configure_extra_args="$ac_configure_extra_args --silent"
17985 fi
17986
17987 _ACEOF
17988 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
17989 if \$ac_cs_recheck; then
17990 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
17991 shift
17992 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
17993 CONFIG_SHELL='$SHELL'
17994 export CONFIG_SHELL
17995 exec "\$@"
17996 fi
17997
17998 _ACEOF
17999 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18000 exec 5>>config.log
18001 {
18002 echo
18003 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18004 ## Running $as_me. ##
18005 _ASBOX
18006 $as_echo "$ac_log"
18007 } >&5
18008
18009 _ACEOF
18010 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18011 #
18012 # INIT-COMMANDS
18013 #
18014
18015 srcdir="$srcdir"
18016 host="$host"
18017 target="$target"
18018 with_multisubdir="$with_multisubdir"
18019 with_multisrctop="$with_multisrctop"
18020 with_target_subdir="$with_target_subdir"
18021 ac_configure_args="${multilib_arg} ${ac_configure_args}"
18022 multi_basedir="$multi_basedir"
18023 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
18024 CC="$CC"
18025 CXX="$CXX"
18026 GFORTRAN="$GFORTRAN"
18027 GDC="$GDC"
18028 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
18029
18030
18031 # The HP-UX ksh and POSIX shell print the target directory to stdout
18032 # if CDPATH is set.
18033 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18034
18035 sed_quote_subst='$sed_quote_subst'
18036 double_quote_subst='$double_quote_subst'
18037 delay_variable_subst='$delay_variable_subst'
18038 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
18039 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
18040 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
18041 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
18042 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
18043 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
18044 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
18045 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
18046 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
18047 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
18048 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
18049 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
18050 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
18051 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
18052 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
18053 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
18054 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
18055 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
18056 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
18057 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
18058 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
18059 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
18060 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
18061 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
18062 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
18063 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
18064 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
18065 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
18066 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
18067 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
18068 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
18069 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
18070 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
18071 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
18072 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
18073 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
18074 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
18075 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18076 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18077 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
18078 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
18079 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
18080 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
18081 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
18082 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
18083 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
18084 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
18085 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
18086 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"`'
18087 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
18088 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
18089 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
18090 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
18091 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
18092 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
18093 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
18094 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
18095 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
18096 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
18097 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
18098 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
18099 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
18100 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
18101 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
18102 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18103 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
18104 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
18105 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
18106 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
18107 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
18108 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
18109 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
18110 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
18111 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18112 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
18113 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
18114 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
18115 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
18116 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
18117 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
18118 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
18119 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
18120 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
18121 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
18122 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
18123 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
18124 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
18125 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
18126 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
18127 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
18128 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
18129 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
18130 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
18131 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
18132 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
18133 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
18134 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
18135 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
18136 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
18137 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
18138 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
18139 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
18140 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
18141 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
18142 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
18143 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
18144 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
18145 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
18146 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
18147 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
18148 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
18149 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
18150 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
18151 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
18152 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
18153 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
18154 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
18155 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
18156 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
18157 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
18158 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
18159 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
18160 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
18161 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
18162 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
18163 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
18164 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
18165 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
18166 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
18167 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18168 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
18169 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
18170 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
18171 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
18172 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
18173 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
18174 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
18175 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
18176 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
18177 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18178 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18179 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
18180 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
18181 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
18182 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
18183 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18184 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
18185 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
18186 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
18187 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18188 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
18189 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
18190 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
18191 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
18192 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
18193 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
18194 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
18195 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
18196 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
18197 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
18198 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
18199 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
18200 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
18201 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
18202 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18203 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
18204 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
18205 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
18206 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
18207 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
18208 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
18209 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
18210 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
18211 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
18212 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
18213
18214 LTCC='$LTCC'
18215 LTCFLAGS='$LTCFLAGS'
18216 compiler='$compiler_DEFAULT'
18217
18218 # A function that is used when there is no print builtin or printf.
18219 func_fallback_echo ()
18220 {
18221 eval 'cat <<_LTECHO_EOF
18222 \$1
18223 _LTECHO_EOF'
18224 }
18225
18226 # Quote evaled strings.
18227 for var in SHELL \
18228 ECHO \
18229 SED \
18230 GREP \
18231 EGREP \
18232 FGREP \
18233 LD \
18234 NM \
18235 LN_S \
18236 lt_SP2NL \
18237 lt_NL2SP \
18238 reload_flag \
18239 OBJDUMP \
18240 deplibs_check_method \
18241 file_magic_cmd \
18242 AR \
18243 AR_FLAGS \
18244 STRIP \
18245 RANLIB \
18246 CC \
18247 CFLAGS \
18248 compiler \
18249 lt_cv_sys_global_symbol_pipe \
18250 lt_cv_sys_global_symbol_to_cdecl \
18251 lt_cv_sys_global_symbol_to_c_name_address \
18252 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
18253 lt_prog_compiler_no_builtin_flag \
18254 lt_prog_compiler_wl \
18255 lt_prog_compiler_pic \
18256 lt_prog_compiler_static \
18257 lt_cv_prog_compiler_c_o \
18258 need_locks \
18259 DSYMUTIL \
18260 NMEDIT \
18261 LIPO \
18262 OTOOL \
18263 OTOOL64 \
18264 shrext_cmds \
18265 export_dynamic_flag_spec \
18266 whole_archive_flag_spec \
18267 compiler_needs_object \
18268 with_gnu_ld \
18269 allow_undefined_flag \
18270 no_undefined_flag \
18271 hardcode_libdir_flag_spec \
18272 hardcode_libdir_flag_spec_ld \
18273 hardcode_libdir_separator \
18274 fix_srcfile_path \
18275 exclude_expsyms \
18276 include_expsyms \
18277 file_list_spec \
18278 variables_saved_for_relink \
18279 libname_spec \
18280 library_names_spec \
18281 soname_spec \
18282 install_override_mode \
18283 finish_eval \
18284 old_striplib \
18285 striplib \
18286 compiler_lib_search_dirs \
18287 predep_objects \
18288 postdep_objects \
18289 predeps \
18290 postdeps \
18291 compiler_lib_search_path \
18292 LD_FC \
18293 reload_flag_FC \
18294 compiler_FC \
18295 lt_prog_compiler_no_builtin_flag_FC \
18296 lt_prog_compiler_wl_FC \
18297 lt_prog_compiler_pic_FC \
18298 lt_prog_compiler_static_FC \
18299 lt_cv_prog_compiler_c_o_FC \
18300 export_dynamic_flag_spec_FC \
18301 whole_archive_flag_spec_FC \
18302 compiler_needs_object_FC \
18303 with_gnu_ld_FC \
18304 allow_undefined_flag_FC \
18305 no_undefined_flag_FC \
18306 hardcode_libdir_flag_spec_FC \
18307 hardcode_libdir_flag_spec_ld_FC \
18308 hardcode_libdir_separator_FC \
18309 fix_srcfile_path_FC \
18310 exclude_expsyms_FC \
18311 include_expsyms_FC \
18312 file_list_spec_FC \
18313 compiler_lib_search_dirs_FC \
18314 predep_objects_FC \
18315 postdep_objects_FC \
18316 predeps_FC \
18317 postdeps_FC \
18318 compiler_lib_search_path_FC; do
18319 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18320 *[\\\\\\\`\\"\\\$]*)
18321 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
18322 ;;
18323 *)
18324 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18325 ;;
18326 esac
18327 done
18328
18329 # Double-quote double-evaled strings.
18330 for var in reload_cmds \
18331 old_postinstall_cmds \
18332 old_postuninstall_cmds \
18333 old_archive_cmds \
18334 extract_expsyms_cmds \
18335 old_archive_from_new_cmds \
18336 old_archive_from_expsyms_cmds \
18337 archive_cmds \
18338 archive_expsym_cmds \
18339 module_cmds \
18340 module_expsym_cmds \
18341 export_symbols_cmds \
18342 prelink_cmds \
18343 postinstall_cmds \
18344 postuninstall_cmds \
18345 finish_cmds \
18346 sys_lib_search_path_spec \
18347 sys_lib_dlsearch_path_spec \
18348 reload_cmds_FC \
18349 old_archive_cmds_FC \
18350 old_archive_from_new_cmds_FC \
18351 old_archive_from_expsyms_cmds_FC \
18352 archive_cmds_FC \
18353 archive_expsym_cmds_FC \
18354 module_cmds_FC \
18355 module_expsym_cmds_FC \
18356 export_symbols_cmds_FC \
18357 prelink_cmds_FC; do
18358 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
18359 *[\\\\\\\`\\"\\\$]*)
18360 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
18361 ;;
18362 *)
18363 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
18364 ;;
18365 esac
18366 done
18367
18368 ac_aux_dir='$ac_aux_dir'
18369 xsi_shell='$xsi_shell'
18370 lt_shell_append='$lt_shell_append'
18371
18372 # See if we are running on zsh, and set the options which allow our
18373 # commands through without removal of \ escapes INIT.
18374 if test -n "\${ZSH_VERSION+set}" ; then
18375 setopt NO_GLOB_SUBST
18376 fi
18377
18378
18379 PACKAGE='$PACKAGE'
18380 VERSION='$VERSION'
18381 TIMESTAMP='$TIMESTAMP'
18382 RM='$RM'
18383 ofile='$ofile'
18384
18385
18386
18387
18388
18389
18390 GCC="$GCC"
18391 CC="$CC"
18392 acx_cv_header_stdint="$acx_cv_header_stdint"
18393 acx_cv_type_int8_t="$acx_cv_type_int8_t"
18394 acx_cv_type_int16_t="$acx_cv_type_int16_t"
18395 acx_cv_type_int32_t="$acx_cv_type_int32_t"
18396 acx_cv_type_int64_t="$acx_cv_type_int64_t"
18397 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
18398 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
18399 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
18400 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
18401 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
18402 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
18403 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
18404 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
18405 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
18406
18407
18408 _ACEOF
18409
18410 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18411
18412 # Handling of arguments.
18413 for ac_config_target in $ac_config_targets
18414 do
18415 case $ac_config_target in
18416 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
18417 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
18418 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
18419 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
18420 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
18421 "omp.h") CONFIG_FILES="$CONFIG_FILES omp.h" ;;
18422 "omp_lib.h") CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;;
18423 "omp_lib.f90") CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;;
18424 "libgomp_f.h") CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;;
18425 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18426 "testsuite/Makefile") CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;;
18427 "libgomp.spec") CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;;
18428 "testsuite/libgomp-test-support.pt.exp") CONFIG_FILES="$CONFIG_FILES testsuite/libgomp-test-support.pt.exp:testsuite/libgomp-test-support.exp.in" ;;
18429
18430 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18431 esac
18432 done
18433
18434
18435 # If the user did not use the arguments to specify the items to instantiate,
18436 # then the envvar interface is used. Set only those that are not.
18437 # We use the long form for the default assignment because of an extremely
18438 # bizarre bug on SunOS 4.1.3.
18439 if $ac_need_defaults; then
18440 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18441 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
18442 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
18443 fi
18444
18445 # Have a temporary directory for convenience. Make it in the build tree
18446 # simply because there is no reason against having it here, and in addition,
18447 # creating and moving files from /tmp can sometimes cause problems.
18448 # Hook for its removal unless debugging.
18449 # Note that there is a small window in which the directory will not be cleaned:
18450 # after its creation but before its name has been assigned to `$tmp'.
18451 $debug ||
18452 {
18453 tmp= ac_tmp=
18454 trap 'exit_status=$?
18455 : "${ac_tmp:=$tmp}"
18456 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18457 ' 0
18458 trap 'as_fn_exit 1' 1 2 13 15
18459 }
18460 # Create a (secure) tmp directory for tmp files.
18461
18462 {
18463 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18464 test -d "$tmp"
18465 } ||
18466 {
18467 tmp=./conf$$-$RANDOM
18468 (umask 077 && mkdir "$tmp")
18469 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
18470 ac_tmp=$tmp
18471
18472 # Set up the scripts for CONFIG_FILES section.
18473 # No need to generate them if there are no CONFIG_FILES.
18474 # This happens for instance with `./config.status config.h'.
18475 if test -n "$CONFIG_FILES"; then
18476
18477
18478 ac_cr=`echo X | tr X '\015'`
18479 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18480 # But we know of no other shell where ac_cr would be empty at this
18481 # point, so we can use a bashism as a fallback.
18482 if test "x$ac_cr" = x; then
18483 eval ac_cr=\$\'\\r\'
18484 fi
18485 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18486 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18487 ac_cs_awk_cr='\\r'
18488 else
18489 ac_cs_awk_cr=$ac_cr
18490 fi
18491
18492 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18493 _ACEOF
18494
18495
18496 {
18497 echo "cat >conf$$subs.awk <<_ACEOF" &&
18498 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18499 echo "_ACEOF"
18500 } >conf$$subs.sh ||
18501 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18502 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18503 ac_delim='%!_!# '
18504 for ac_last_try in false false false false false :; do
18505 . ./conf$$subs.sh ||
18506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18507
18508 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
18509 if test $ac_delim_n = $ac_delim_num; then
18510 break
18511 elif $ac_last_try; then
18512 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
18513 else
18514 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18515 fi
18516 done
18517 rm -f conf$$subs.sh
18518
18519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18520 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
18521 _ACEOF
18522 sed -n '
18523 h
18524 s/^/S["/; s/!.*/"]=/
18525 p
18526 g
18527 s/^[^!]*!//
18528 :repl
18529 t repl
18530 s/'"$ac_delim"'$//
18531 t delim
18532 :nl
18533 h
18534 s/\(.\{148\}\)..*/\1/
18535 t more1
18536 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
18537 p
18538 n
18539 b repl
18540 :more1
18541 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18542 p
18543 g
18544 s/.\{148\}//
18545 t nl
18546 :delim
18547 h
18548 s/\(.\{148\}\)..*/\1/
18549 t more2
18550 s/["\\]/\\&/g; s/^/"/; s/$/"/
18551 p
18552 b
18553 :more2
18554 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
18555 p
18556 g
18557 s/.\{148\}//
18558 t delim
18559 ' <conf$$subs.awk | sed '
18560 /^[^""]/{
18561 N
18562 s/\n//
18563 }
18564 ' >>$CONFIG_STATUS || ac_write_fail=1
18565 rm -f conf$$subs.awk
18566 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18567 _ACAWK
18568 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
18569 for (key in S) S_is_set[key] = 1
18570 FS = "\a"
18571
18572 }
18573 {
18574 line = $ 0
18575 nfields = split(line, field, "@")
18576 substed = 0
18577 len = length(field[1])
18578 for (i = 2; i < nfields; i++) {
18579 key = field[i]
18580 keylen = length(key)
18581 if (S_is_set[key]) {
18582 value = S[key]
18583 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18584 len += length(value) + length(field[++i])
18585 substed = 1
18586 } else
18587 len += 1 + keylen
18588 }
18589
18590 print line
18591 }
18592
18593 _ACAWK
18594 _ACEOF
18595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18596 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18597 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
18598 else
18599 cat
18600 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
18601 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
18602 _ACEOF
18603
18604 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18605 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
18606 # trailing colons and then remove the whole line if VPATH becomes empty
18607 # (actually we leave an empty line to preserve line numbers).
18608 if test "x$srcdir" = x.; then
18609 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18610 h
18611 s///
18612 s/^/:/
18613 s/[ ]*$/:/
18614 s/:\$(srcdir):/:/g
18615 s/:\${srcdir}:/:/g
18616 s/:@srcdir@:/:/g
18617 s/^:*//
18618 s/:*$//
18619 x
18620 s/\(=[ ]*\).*/\1/
18621 G
18622 s/\n//
18623 s/^[^=]*=[ ]*$//
18624 }'
18625 fi
18626
18627 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18628 fi # test -n "$CONFIG_FILES"
18629
18630 # Set up the scripts for CONFIG_HEADERS section.
18631 # No need to generate them if there are no CONFIG_HEADERS.
18632 # This happens for instance with `./config.status Makefile'.
18633 if test -n "$CONFIG_HEADERS"; then
18634 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
18635 BEGIN {
18636 _ACEOF
18637
18638 # Transform confdefs.h into an awk script `defines.awk', embedded as
18639 # here-document in config.status, that substitutes the proper values into
18640 # config.h.in to produce config.h.
18641
18642 # Create a delimiter string that does not exist in confdefs.h, to ease
18643 # handling of long lines.
18644 ac_delim='%!_!# '
18645 for ac_last_try in false false :; do
18646 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
18647 if test -z "$ac_tt"; then
18648 break
18649 elif $ac_last_try; then
18650 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
18651 else
18652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
18653 fi
18654 done
18655
18656 # For the awk script, D is an array of macro values keyed by name,
18657 # likewise P contains macro parameters if any. Preserve backslash
18658 # newline sequences.
18659
18660 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
18661 sed -n '
18662 s/.\{148\}/&'"$ac_delim"'/g
18663 t rset
18664 :rset
18665 s/^[ ]*#[ ]*define[ ][ ]*/ /
18666 t def
18667 d
18668 :def
18669 s/\\$//
18670 t bsnl
18671 s/["\\]/\\&/g
18672 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18673 D["\1"]=" \3"/p
18674 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
18675 d
18676 :bsnl
18677 s/["\\]/\\&/g
18678 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
18679 D["\1"]=" \3\\\\\\n"\\/p
18680 t cont
18681 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
18682 t cont
18683 d
18684 :cont
18685 n
18686 s/.\{148\}/&'"$ac_delim"'/g
18687 t clear
18688 :clear
18689 s/\\$//
18690 t bsnlc
18691 s/["\\]/\\&/g; s/^/"/; s/$/"/p
18692 d
18693 :bsnlc
18694 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
18695 b cont
18696 ' <confdefs.h | sed '
18697 s/'"$ac_delim"'/"\\\
18698 "/g' >>$CONFIG_STATUS || ac_write_fail=1
18699
18700 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18701 for (key in D) D_is_set[key] = 1
18702 FS = "\a"
18703 }
18704 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
18705 line = \$ 0
18706 split(line, arg, " ")
18707 if (arg[1] == "#") {
18708 defundef = arg[2]
18709 mac1 = arg[3]
18710 } else {
18711 defundef = substr(arg[1], 2)
18712 mac1 = arg[2]
18713 }
18714 split(mac1, mac2, "(") #)
18715 macro = mac2[1]
18716 prefix = substr(line, 1, index(line, defundef) - 1)
18717 if (D_is_set[macro]) {
18718 # Preserve the white space surrounding the "#".
18719 print prefix "define", macro P[macro] D[macro]
18720 next
18721 } else {
18722 # Replace #undef with comments. This is necessary, for example,
18723 # in the case of _POSIX_SOURCE, which is predefined and required
18724 # on some systems where configure will not decide to define it.
18725 if (defundef == "undef") {
18726 print "/*", prefix defundef, macro, "*/"
18727 next
18728 }
18729 }
18730 }
18731 { print }
18732 _ACAWK
18733 _ACEOF
18734 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18735 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
18736 fi # test -n "$CONFIG_HEADERS"
18737
18738
18739 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
18740 shift
18741 for ac_tag
18742 do
18743 case $ac_tag in
18744 :[FHLC]) ac_mode=$ac_tag; continue;;
18745 esac
18746 case $ac_mode$ac_tag in
18747 :[FHL]*:*);;
18748 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
18749 :[FH]-) ac_tag=-:-;;
18750 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18751 esac
18752 ac_save_IFS=$IFS
18753 IFS=:
18754 set x $ac_tag
18755 IFS=$ac_save_IFS
18756 shift
18757 ac_file=$1
18758 shift
18759
18760 case $ac_mode in
18761 :L) ac_source=$1;;
18762 :[FH])
18763 ac_file_inputs=
18764 for ac_f
18765 do
18766 case $ac_f in
18767 -) ac_f="$ac_tmp/stdin";;
18768 *) # Look for the file first in the build tree, then in the source tree
18769 # (if the path is not absolute). The absolute path cannot be DOS-style,
18770 # because $ac_f cannot contain `:'.
18771 test -f "$ac_f" ||
18772 case $ac_f in
18773 [\\/$]*) false;;
18774 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18775 esac ||
18776 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18777 esac
18778 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
18779 as_fn_append ac_file_inputs " '$ac_f'"
18780 done
18781
18782 # Let's still pretend it is `configure' which instantiates (i.e., don't
18783 # use $as_me), people would be surprised to read:
18784 # /* config.h. Generated by config.status. */
18785 configure_input='Generated from '`
18786 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18787 `' by configure.'
18788 if test x"$ac_file" != x-; then
18789 configure_input="$ac_file. $configure_input"
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
18791 $as_echo "$as_me: creating $ac_file" >&6;}
18792 fi
18793 # Neutralize special characters interpreted by sed in replacement strings.
18794 case $configure_input in #(
18795 *\&* | *\|* | *\\* )
18796 ac_sed_conf_input=`$as_echo "$configure_input" |
18797 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18798 *) ac_sed_conf_input=$configure_input;;
18799 esac
18800
18801 case $ac_tag in
18802 *:-:* | *:-) cat >"$ac_tmp/stdin" \
18803 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
18804 esac
18805 ;;
18806 esac
18807
18808 ac_dir=`$as_dirname -- "$ac_file" ||
18809 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18810 X"$ac_file" : 'X\(//\)[^/]' \| \
18811 X"$ac_file" : 'X\(//\)$' \| \
18812 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18813 $as_echo X"$ac_file" |
18814 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18815 s//\1/
18816 q
18817 }
18818 /^X\(\/\/\)[^/].*/{
18819 s//\1/
18820 q
18821 }
18822 /^X\(\/\/\)$/{
18823 s//\1/
18824 q
18825 }
18826 /^X\(\/\).*/{
18827 s//\1/
18828 q
18829 }
18830 s/.*/./; q'`
18831 as_dir="$ac_dir"; as_fn_mkdir_p
18832 ac_builddir=.
18833
18834 case "$ac_dir" in
18835 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18836 *)
18837 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18838 # A ".." for each directory in $ac_dir_suffix.
18839 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18840 case $ac_top_builddir_sub in
18841 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18842 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18843 esac ;;
18844 esac
18845 ac_abs_top_builddir=$ac_pwd
18846 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18847 # for backward compatibility:
18848 ac_top_builddir=$ac_top_build_prefix
18849
18850 case $srcdir in
18851 .) # We are building in place.
18852 ac_srcdir=.
18853 ac_top_srcdir=$ac_top_builddir_sub
18854 ac_abs_top_srcdir=$ac_pwd ;;
18855 [\\/]* | ?:[\\/]* ) # Absolute name.
18856 ac_srcdir=$srcdir$ac_dir_suffix;
18857 ac_top_srcdir=$srcdir
18858 ac_abs_top_srcdir=$srcdir ;;
18859 *) # Relative name.
18860 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18861 ac_top_srcdir=$ac_top_build_prefix$srcdir
18862 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18863 esac
18864 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18865
18866
18867 case $ac_mode in
18868 :F)
18869 #
18870 # CONFIG_FILE
18871 #
18872
18873 case $INSTALL in
18874 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18875 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18876 esac
18877 ac_MKDIR_P=$MKDIR_P
18878 case $MKDIR_P in
18879 [\\/$]* | ?:[\\/]* ) ;;
18880 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
18881 esac
18882 _ACEOF
18883
18884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18885 # If the template does not know about datarootdir, expand it.
18886 # FIXME: This hack should be removed a few years after 2.60.
18887 ac_datarootdir_hack=; ac_datarootdir_seen=
18888 ac_sed_dataroot='
18889 /datarootdir/ {
18890 p
18891 q
18892 }
18893 /@datadir@/p
18894 /@docdir@/p
18895 /@infodir@/p
18896 /@localedir@/p
18897 /@mandir@/p'
18898 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
18899 *datarootdir*) ac_datarootdir_seen=yes;;
18900 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
18902 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
18903 _ACEOF
18904 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18905 ac_datarootdir_hack='
18906 s&@datadir@&$datadir&g
18907 s&@docdir@&$docdir&g
18908 s&@infodir@&$infodir&g
18909 s&@localedir@&$localedir&g
18910 s&@mandir@&$mandir&g
18911 s&\\\${datarootdir}&$datarootdir&g' ;;
18912 esac
18913 _ACEOF
18914
18915 # Neutralize VPATH when `$srcdir' = `.'.
18916 # Shell code in configure.ac might set extrasub.
18917 # FIXME: do we really want to maintain this feature?
18918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18919 ac_sed_extra="$ac_vpsub
18920 $extrasub
18921 _ACEOF
18922 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18923 :t
18924 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
18925 s|@configure_input@|$ac_sed_conf_input|;t t
18926 s&@top_builddir@&$ac_top_builddir_sub&;t t
18927 s&@top_build_prefix@&$ac_top_build_prefix&;t t
18928 s&@srcdir@&$ac_srcdir&;t t
18929 s&@abs_srcdir@&$ac_abs_srcdir&;t t
18930 s&@top_srcdir@&$ac_top_srcdir&;t t
18931 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
18932 s&@builddir@&$ac_builddir&;t t
18933 s&@abs_builddir@&$ac_abs_builddir&;t t
18934 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
18935 s&@INSTALL@&$ac_INSTALL&;t t
18936 s&@MKDIR_P@&$ac_MKDIR_P&;t t
18937 $ac_datarootdir_hack
18938 "
18939 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
18940 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18941
18942 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18943 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
18944 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18945 "$ac_tmp/out"`; test -z "$ac_out"; } &&
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18947 which seems to be undefined. Please make sure it is defined" >&5
18948 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
18949 which seems to be undefined. Please make sure it is defined" >&2;}
18950
18951 rm -f "$ac_tmp/stdin"
18952 case $ac_file in
18953 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18954 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18955 esac \
18956 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18957 ;;
18958 :H)
18959 #
18960 # CONFIG_HEADER
18961 #
18962 if test x"$ac_file" != x-; then
18963 {
18964 $as_echo "/* $configure_input */" \
18965 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
18966 } >"$ac_tmp/config.h" \
18967 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18968 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
18969 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
18970 $as_echo "$as_me: $ac_file is unchanged" >&6;}
18971 else
18972 rm -f "$ac_file"
18973 mv "$ac_tmp/config.h" "$ac_file" \
18974 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18975 fi
18976 else
18977 $as_echo "/* $configure_input */" \
18978 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
18979 || as_fn_error $? "could not create -" "$LINENO" 5
18980 fi
18981 # Compute "$ac_file"'s index in $config_headers.
18982 _am_arg="$ac_file"
18983 _am_stamp_count=1
18984 for _am_header in $config_headers :; do
18985 case $_am_header in
18986 $_am_arg | $_am_arg:* )
18987 break ;;
18988 * )
18989 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
18990 esac
18991 done
18992 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
18993 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18994 X"$_am_arg" : 'X\(//\)[^/]' \| \
18995 X"$_am_arg" : 'X\(//\)$' \| \
18996 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
18997 $as_echo X"$_am_arg" |
18998 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18999 s//\1/
19000 q
19001 }
19002 /^X\(\/\/\)[^/].*/{
19003 s//\1/
19004 q
19005 }
19006 /^X\(\/\/\)$/{
19007 s//\1/
19008 q
19009 }
19010 /^X\(\/\).*/{
19011 s//\1/
19012 q
19013 }
19014 s/.*/./; q'`/stamp-h$_am_stamp_count
19015 ;;
19016
19017 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
19018 $as_echo "$as_me: executing $ac_file commands" >&6;}
19019 ;;
19020 esac
19021
19022
19023 case $ac_file$ac_mode in
19024 "default-1":C)
19025 # Only add multilib support code if we just rebuilt the top-level
19026 # Makefile.
19027 case " $CONFIG_FILES " in
19028 *" Makefile "*)
19029 ac_file=Makefile . ${multi_basedir}/config-ml.in
19030 ;;
19031 esac ;;
19032 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
19033 # Older Autoconf quotes --file arguments for eval, but not when files
19034 # are listed without --file. Let's play safe and only enable the eval
19035 # if we detect the quoting.
19036 case $CONFIG_FILES in
19037 *\'*) eval set x "$CONFIG_FILES" ;;
19038 *) set x $CONFIG_FILES ;;
19039 esac
19040 shift
19041 for mf
19042 do
19043 # Strip MF so we end up with the name of the file.
19044 mf=`echo "$mf" | sed -e 's/:.*$//'`
19045 # Check whether this is an Automake generated Makefile or not.
19046 # We used to match only the files named 'Makefile.in', but
19047 # some people rename them; so instead we look at the file content.
19048 # Grep'ing the first line is not enough: some people post-process
19049 # each Makefile.in and add a new line on top of each file to say so.
19050 # Grep'ing the whole file is not good either: AIX grep has a line
19051 # limit of 2048, but all sed's we know have understand at least 4000.
19052 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
19053 dirpart=`$as_dirname -- "$mf" ||
19054 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19055 X"$mf" : 'X\(//\)[^/]' \| \
19056 X"$mf" : 'X\(//\)$' \| \
19057 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
19058 $as_echo X"$mf" |
19059 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19060 s//\1/
19061 q
19062 }
19063 /^X\(\/\/\)[^/].*/{
19064 s//\1/
19065 q
19066 }
19067 /^X\(\/\/\)$/{
19068 s//\1/
19069 q
19070 }
19071 /^X\(\/\).*/{
19072 s//\1/
19073 q
19074 }
19075 s/.*/./; q'`
19076 else
19077 continue
19078 fi
19079 # Extract the definition of DEPDIR, am__include, and am__quote
19080 # from the Makefile without running 'make'.
19081 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
19082 test -z "$DEPDIR" && continue
19083 am__include=`sed -n 's/^am__include = //p' < "$mf"`
19084 test -z "$am__include" && continue
19085 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
19086 # Find all dependency output files, they are included files with
19087 # $(DEPDIR) in their names. We invoke sed twice because it is the
19088 # simplest approach to changing $(DEPDIR) to its actual value in the
19089 # expansion.
19090 for file in `sed -n "
19091 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
19092 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
19093 # Make sure the directory exists.
19094 test -f "$dirpart/$file" && continue
19095 fdir=`$as_dirname -- "$file" ||
19096 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19097 X"$file" : 'X\(//\)[^/]' \| \
19098 X"$file" : 'X\(//\)$' \| \
19099 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
19100 $as_echo X"$file" |
19101 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19102 s//\1/
19103 q
19104 }
19105 /^X\(\/\/\)[^/].*/{
19106 s//\1/
19107 q
19108 }
19109 /^X\(\/\/\)$/{
19110 s//\1/
19111 q
19112 }
19113 /^X\(\/\).*/{
19114 s//\1/
19115 q
19116 }
19117 s/.*/./; q'`
19118 as_dir=$dirpart/$fdir; as_fn_mkdir_p
19119 # echo "creating $dirpart/$file"
19120 echo '# dummy' > "$dirpart/$file"
19121 done
19122 done
19123 }
19124 ;;
19125 "libtool":C)
19126
19127 # See if we are running on zsh, and set the options which allow our
19128 # commands through without removal of \ escapes.
19129 if test -n "${ZSH_VERSION+set}" ; then
19130 setopt NO_GLOB_SUBST
19131 fi
19132
19133 cfgfile="${ofile}T"
19134 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
19135 $RM "$cfgfile"
19136
19137 cat <<_LT_EOF >> "$cfgfile"
19138 #! $SHELL
19139
19140 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
19141 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
19142 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19143 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
19144 #
19145 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
19146 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
19147 # Written by Gordon Matzigkeit, 1996
19148 #
19149 # This file is part of GNU Libtool.
19150 #
19151 # GNU Libtool is free software; you can redistribute it and/or
19152 # modify it under the terms of the GNU General Public License as
19153 # published by the Free Software Foundation; either version 2 of
19154 # the License, or (at your option) any later version.
19155 #
19156 # As a special exception to the GNU General Public License,
19157 # if you distribute this file as part of a program or library that
19158 # is built using GNU Libtool, you may include this file under the
19159 # same distribution terms that you use for the rest of that program.
19160 #
19161 # GNU Libtool is distributed in the hope that it will be useful,
19162 # but WITHOUT ANY WARRANTY; without even the implied warranty of
19163 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19164 # GNU General Public License for more details.
19165 #
19166 # You should have received a copy of the GNU General Public License
19167 # along with GNU Libtool; see the file COPYING. If not, a copy
19168 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
19169 # obtained by writing to the Free Software Foundation, Inc.,
19170 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19171
19172
19173 # The names of the tagged configurations supported by this script.
19174 available_tags="FC "
19175
19176 # ### BEGIN LIBTOOL CONFIG
19177
19178 # Which release of libtool.m4 was used?
19179 macro_version=$macro_version
19180 macro_revision=$macro_revision
19181
19182 # Whether or not to build shared libraries.
19183 build_libtool_libs=$enable_shared
19184
19185 # Whether or not to build static libraries.
19186 build_old_libs=$enable_static
19187
19188 # What type of objects to build.
19189 pic_mode=$pic_mode
19190
19191 # Whether or not to optimize for fast installation.
19192 fast_install=$enable_fast_install
19193
19194 # Shell to use when invoking shell scripts.
19195 SHELL=$lt_SHELL
19196
19197 # An echo program that protects backslashes.
19198 ECHO=$lt_ECHO
19199
19200 # The host system.
19201 host_alias=$host_alias
19202 host=$host
19203 host_os=$host_os
19204
19205 # The build system.
19206 build_alias=$build_alias
19207 build=$build
19208 build_os=$build_os
19209
19210 # A sed program that does not truncate output.
19211 SED=$lt_SED
19212
19213 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
19214 Xsed="\$SED -e 1s/^X//"
19215
19216 # A grep program that handles long lines.
19217 GREP=$lt_GREP
19218
19219 # An ERE matcher.
19220 EGREP=$lt_EGREP
19221
19222 # A literal string matcher.
19223 FGREP=$lt_FGREP
19224
19225 # A BSD- or MS-compatible name lister.
19226 NM=$lt_NM
19227
19228 # Whether we need soft or hard links.
19229 LN_S=$lt_LN_S
19230
19231 # What is the maximum length of a command?
19232 max_cmd_len=$max_cmd_len
19233
19234 # Object file suffix (normally "o").
19235 objext=$ac_objext
19236
19237 # Executable file suffix (normally "").
19238 exeext=$exeext
19239
19240 # whether the shell understands "unset".
19241 lt_unset=$lt_unset
19242
19243 # turn spaces into newlines.
19244 SP2NL=$lt_lt_SP2NL
19245
19246 # turn newlines into spaces.
19247 NL2SP=$lt_lt_NL2SP
19248
19249 # An object symbol dumper.
19250 OBJDUMP=$lt_OBJDUMP
19251
19252 # Method to check whether dependent libraries are shared objects.
19253 deplibs_check_method=$lt_deplibs_check_method
19254
19255 # Command to use when deplibs_check_method == "file_magic".
19256 file_magic_cmd=$lt_file_magic_cmd
19257
19258 # The archiver.
19259 AR=$lt_AR
19260 AR_FLAGS=$lt_AR_FLAGS
19261
19262 # A symbol stripping program.
19263 STRIP=$lt_STRIP
19264
19265 # Commands used to install an old-style archive.
19266 RANLIB=$lt_RANLIB
19267 old_postinstall_cmds=$lt_old_postinstall_cmds
19268 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19269
19270 # Whether to use a lock for old archive extraction.
19271 lock_old_archive_extraction=$lock_old_archive_extraction
19272
19273 # A C compiler.
19274 LTCC=$lt_CC
19275
19276 # LTCC compiler flags.
19277 LTCFLAGS=$lt_CFLAGS
19278
19279 # Take the output of nm and produce a listing of raw symbols and C names.
19280 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19281
19282 # Transform the output of nm in a proper C declaration.
19283 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19284
19285 # Transform the output of nm in a C name address pair.
19286 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19287
19288 # Transform the output of nm in a C name address pair when lib prefix is needed.
19289 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
19290
19291 # The name of the directory that contains temporary libtool files.
19292 objdir=$objdir
19293
19294 # Used to examine libraries when file_magic_cmd begins with "file".
19295 MAGIC_CMD=$MAGIC_CMD
19296
19297 # Must we lock files when doing compilation?
19298 need_locks=$lt_need_locks
19299
19300 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
19301 DSYMUTIL=$lt_DSYMUTIL
19302
19303 # Tool to change global to local symbols on Mac OS X.
19304 NMEDIT=$lt_NMEDIT
19305
19306 # Tool to manipulate fat objects and archives on Mac OS X.
19307 LIPO=$lt_LIPO
19308
19309 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
19310 OTOOL=$lt_OTOOL
19311
19312 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
19313 OTOOL64=$lt_OTOOL64
19314
19315 # Old archive suffix (normally "a").
19316 libext=$libext
19317
19318 # Shared library suffix (normally ".so").
19319 shrext_cmds=$lt_shrext_cmds
19320
19321 # The commands to extract the exported symbol list from a shared archive.
19322 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19323
19324 # Variables whose values should be saved in libtool wrapper scripts and
19325 # restored at link time.
19326 variables_saved_for_relink=$lt_variables_saved_for_relink
19327
19328 # Do we need the "lib" prefix for modules?
19329 need_lib_prefix=$need_lib_prefix
19330
19331 # Do we need a version for libraries?
19332 need_version=$need_version
19333
19334 # Library versioning type.
19335 version_type=$version_type
19336
19337 # Shared library runtime path variable.
19338 runpath_var=$runpath_var
19339
19340 # Shared library path variable.
19341 shlibpath_var=$shlibpath_var
19342
19343 # Is shlibpath searched before the hard-coded library search path?
19344 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19345
19346 # Format of library name prefix.
19347 libname_spec=$lt_libname_spec
19348
19349 # List of archive names. First name is the real one, the rest are links.
19350 # The last name is the one that the linker finds with -lNAME
19351 library_names_spec=$lt_library_names_spec
19352
19353 # The coded name of the library, if different from the real name.
19354 soname_spec=$lt_soname_spec
19355
19356 # Permission mode override for installation of shared libraries.
19357 install_override_mode=$lt_install_override_mode
19358
19359 # Command to use after installation of a shared archive.
19360 postinstall_cmds=$lt_postinstall_cmds
19361
19362 # Command to use after uninstallation of a shared archive.
19363 postuninstall_cmds=$lt_postuninstall_cmds
19364
19365 # Commands used to finish a libtool library installation in a directory.
19366 finish_cmds=$lt_finish_cmds
19367
19368 # As "finish_cmds", except a single script fragment to be evaled but
19369 # not shown.
19370 finish_eval=$lt_finish_eval
19371
19372 # Whether we should hardcode library paths into libraries.
19373 hardcode_into_libs=$hardcode_into_libs
19374
19375 # Compile-time system search path for libraries.
19376 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19377
19378 # Run-time system search path for libraries.
19379 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19380
19381 # Whether dlopen is supported.
19382 dlopen_support=$enable_dlopen
19383
19384 # Whether dlopen of programs is supported.
19385 dlopen_self=$enable_dlopen_self
19386
19387 # Whether dlopen of statically linked programs is supported.
19388 dlopen_self_static=$enable_dlopen_self_static
19389
19390 # Commands to strip libraries.
19391 old_striplib=$lt_old_striplib
19392 striplib=$lt_striplib
19393
19394
19395 # The linker used to build libraries.
19396 LD=$lt_LD
19397
19398 # How to create reloadable object files.
19399 reload_flag=$lt_reload_flag
19400 reload_cmds=$lt_reload_cmds
19401
19402 # Commands used to build an old-style archive.
19403 old_archive_cmds=$lt_old_archive_cmds
19404
19405 # A language specific compiler.
19406 CC=$lt_compiler
19407
19408 # Is the compiler the GNU compiler?
19409 with_gcc=$GCC
19410
19411 # Compiler flag to turn off builtin functions.
19412 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
19413
19414 # How to pass a linker flag through the compiler.
19415 wl=$lt_lt_prog_compiler_wl
19416
19417 # Additional compiler flags for building library objects.
19418 pic_flag=$lt_lt_prog_compiler_pic
19419
19420 # Compiler flag to prevent dynamic linking.
19421 link_static_flag=$lt_lt_prog_compiler_static
19422
19423 # Does compiler simultaneously support -c and -o options?
19424 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
19425
19426 # Whether or not to add -lc for building shared libraries.
19427 build_libtool_need_lc=$archive_cmds_need_lc
19428
19429 # Whether or not to disallow shared libs when runtime libs are static.
19430 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
19431
19432 # Compiler flag to allow reflexive dlopens.
19433 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
19434
19435 # Compiler flag to generate shared objects directly from archives.
19436 whole_archive_flag_spec=$lt_whole_archive_flag_spec
19437
19438 # Whether the compiler copes with passing no objects directly.
19439 compiler_needs_object=$lt_compiler_needs_object
19440
19441 # Create an old-style archive from a shared archive.
19442 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
19443
19444 # Create a temporary old-style archive to link instead of a shared archive.
19445 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
19446
19447 # Commands used to build a shared archive.
19448 archive_cmds=$lt_archive_cmds
19449 archive_expsym_cmds=$lt_archive_expsym_cmds
19450
19451 # Commands used to build a loadable module if different from building
19452 # a shared archive.
19453 module_cmds=$lt_module_cmds
19454 module_expsym_cmds=$lt_module_expsym_cmds
19455
19456 # Whether we are building with GNU ld or not.
19457 with_gnu_ld=$lt_with_gnu_ld
19458
19459 # Flag that allows shared libraries with undefined symbols to be built.
19460 allow_undefined_flag=$lt_allow_undefined_flag
19461
19462 # Flag that enforces no undefined symbols.
19463 no_undefined_flag=$lt_no_undefined_flag
19464
19465 # Flag to hardcode \$libdir into a binary during linking.
19466 # This must work even if \$libdir does not exist
19467 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
19468
19469 # If ld is used when linking, flag to hardcode \$libdir into a binary
19470 # during linking. This must work even if \$libdir does not exist.
19471 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
19472
19473 # Whether we need a single "-rpath" flag with a separated argument.
19474 hardcode_libdir_separator=$lt_hardcode_libdir_separator
19475
19476 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19477 # DIR into the resulting binary.
19478 hardcode_direct=$hardcode_direct
19479
19480 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19481 # DIR into the resulting binary and the resulting library dependency is
19482 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19483 # library is relocated.
19484 hardcode_direct_absolute=$hardcode_direct_absolute
19485
19486 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19487 # into the resulting binary.
19488 hardcode_minus_L=$hardcode_minus_L
19489
19490 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19491 # into the resulting binary.
19492 hardcode_shlibpath_var=$hardcode_shlibpath_var
19493
19494 # Set to "yes" if building a shared library automatically hardcodes DIR
19495 # into the library and all subsequent libraries and executables linked
19496 # against it.
19497 hardcode_automatic=$hardcode_automatic
19498
19499 # Set to yes if linker adds runtime paths of dependent libraries
19500 # to runtime path list.
19501 inherit_rpath=$inherit_rpath
19502
19503 # Whether libtool must link a program against all its dependency libraries.
19504 link_all_deplibs=$link_all_deplibs
19505
19506 # Fix the shell variable \$srcfile for the compiler.
19507 fix_srcfile_path=$lt_fix_srcfile_path
19508
19509 # Set to "yes" if exported symbols are required.
19510 always_export_symbols=$always_export_symbols
19511
19512 # The commands to list exported symbols.
19513 export_symbols_cmds=$lt_export_symbols_cmds
19514
19515 # Symbols that should not be listed in the preloaded symbols.
19516 exclude_expsyms=$lt_exclude_expsyms
19517
19518 # Symbols that must always be exported.
19519 include_expsyms=$lt_include_expsyms
19520
19521 # Commands necessary for linking programs (against libraries) with templates.
19522 prelink_cmds=$lt_prelink_cmds
19523
19524 # Specify filename containing input files.
19525 file_list_spec=$lt_file_list_spec
19526
19527 # How to hardcode a shared library path into an executable.
19528 hardcode_action=$hardcode_action
19529
19530 # The directories searched by this compiler when creating a shared library.
19531 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
19532
19533 # Dependencies to place before and after the objects being linked to
19534 # create a shared library.
19535 predep_objects=$lt_predep_objects
19536 postdep_objects=$lt_postdep_objects
19537 predeps=$lt_predeps
19538 postdeps=$lt_postdeps
19539
19540 # The library search path used internally by the compiler when linking
19541 # a shared library.
19542 compiler_lib_search_path=$lt_compiler_lib_search_path
19543
19544 # ### END LIBTOOL CONFIG
19545
19546 _LT_EOF
19547
19548 case $host_os in
19549 aix3*)
19550 cat <<\_LT_EOF >> "$cfgfile"
19551 # AIX sometimes has problems with the GCC collect2 program. For some
19552 # reason, if we set the COLLECT_NAMES environment variable, the problems
19553 # vanish in a puff of smoke.
19554 if test "X${COLLECT_NAMES+set}" != Xset; then
19555 COLLECT_NAMES=
19556 export COLLECT_NAMES
19557 fi
19558 _LT_EOF
19559 ;;
19560 esac
19561
19562
19563 ltmain="$ac_aux_dir/ltmain.sh"
19564
19565
19566 # We use sed instead of cat because bash on DJGPP gets confused if
19567 # if finds mixed CR/LF and LF-only lines. Since sed operates in
19568 # text mode, it properly converts lines to CR/LF. This bash problem
19569 # is reportedly fixed, but why not run on old versions too?
19570 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
19571 || (rm -f "$cfgfile"; exit 1)
19572
19573 case $xsi_shell in
19574 yes)
19575 cat << \_LT_EOF >> "$cfgfile"
19576
19577 # func_dirname file append nondir_replacement
19578 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19579 # otherwise set result to NONDIR_REPLACEMENT.
19580 func_dirname ()
19581 {
19582 case ${1} in
19583 */*) func_dirname_result="${1%/*}${2}" ;;
19584 * ) func_dirname_result="${3}" ;;
19585 esac
19586 }
19587
19588 # func_basename file
19589 func_basename ()
19590 {
19591 func_basename_result="${1##*/}"
19592 }
19593
19594 # func_dirname_and_basename file append nondir_replacement
19595 # perform func_basename and func_dirname in a single function
19596 # call:
19597 # dirname: Compute the dirname of FILE. If nonempty,
19598 # add APPEND to the result, otherwise set result
19599 # to NONDIR_REPLACEMENT.
19600 # value returned in "$func_dirname_result"
19601 # basename: Compute filename of FILE.
19602 # value retuned in "$func_basename_result"
19603 # Implementation must be kept synchronized with func_dirname
19604 # and func_basename. For efficiency, we do not delegate to
19605 # those functions but instead duplicate the functionality here.
19606 func_dirname_and_basename ()
19607 {
19608 case ${1} in
19609 */*) func_dirname_result="${1%/*}${2}" ;;
19610 * ) func_dirname_result="${3}" ;;
19611 esac
19612 func_basename_result="${1##*/}"
19613 }
19614
19615 # func_stripname prefix suffix name
19616 # strip PREFIX and SUFFIX off of NAME.
19617 # PREFIX and SUFFIX must not contain globbing or regex special
19618 # characters, hashes, percent signs, but SUFFIX may contain a leading
19619 # dot (in which case that matches only a dot).
19620 func_stripname ()
19621 {
19622 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
19623 # positional parameters, so assign one to ordinary parameter first.
19624 func_stripname_result=${3}
19625 func_stripname_result=${func_stripname_result#"${1}"}
19626 func_stripname_result=${func_stripname_result%"${2}"}
19627 }
19628
19629 # func_opt_split
19630 func_opt_split ()
19631 {
19632 func_opt_split_opt=${1%%=*}
19633 func_opt_split_arg=${1#*=}
19634 }
19635
19636 # func_lo2o object
19637 func_lo2o ()
19638 {
19639 case ${1} in
19640 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
19641 *) func_lo2o_result=${1} ;;
19642 esac
19643 }
19644
19645 # func_xform libobj-or-source
19646 func_xform ()
19647 {
19648 func_xform_result=${1%.*}.lo
19649 }
19650
19651 # func_arith arithmetic-term...
19652 func_arith ()
19653 {
19654 func_arith_result=$(( $* ))
19655 }
19656
19657 # func_len string
19658 # STRING may not start with a hyphen.
19659 func_len ()
19660 {
19661 func_len_result=${#1}
19662 }
19663
19664 _LT_EOF
19665 ;;
19666 *) # Bourne compatible functions.
19667 cat << \_LT_EOF >> "$cfgfile"
19668
19669 # func_dirname file append nondir_replacement
19670 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
19671 # otherwise set result to NONDIR_REPLACEMENT.
19672 func_dirname ()
19673 {
19674 # Extract subdirectory from the argument.
19675 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
19676 if test "X$func_dirname_result" = "X${1}"; then
19677 func_dirname_result="${3}"
19678 else
19679 func_dirname_result="$func_dirname_result${2}"
19680 fi
19681 }
19682
19683 # func_basename file
19684 func_basename ()
19685 {
19686 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
19687 }
19688
19689
19690 # func_stripname prefix suffix name
19691 # strip PREFIX and SUFFIX off of NAME.
19692 # PREFIX and SUFFIX must not contain globbing or regex special
19693 # characters, hashes, percent signs, but SUFFIX may contain a leading
19694 # dot (in which case that matches only a dot).
19695 # func_strip_suffix prefix name
19696 func_stripname ()
19697 {
19698 case ${2} in
19699 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
19700 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
19701 esac
19702 }
19703
19704 # sed scripts:
19705 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
19706 my_sed_long_arg='1s/^-[^=]*=//'
19707
19708 # func_opt_split
19709 func_opt_split ()
19710 {
19711 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
19712 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
19713 }
19714
19715 # func_lo2o object
19716 func_lo2o ()
19717 {
19718 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
19719 }
19720
19721 # func_xform libobj-or-source
19722 func_xform ()
19723 {
19724 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
19725 }
19726
19727 # func_arith arithmetic-term...
19728 func_arith ()
19729 {
19730 func_arith_result=`expr "$@"`
19731 }
19732
19733 # func_len string
19734 # STRING may not start with a hyphen.
19735 func_len ()
19736 {
19737 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
19738 }
19739
19740 _LT_EOF
19741 esac
19742
19743 case $lt_shell_append in
19744 yes)
19745 cat << \_LT_EOF >> "$cfgfile"
19746
19747 # func_append var value
19748 # Append VALUE to the end of shell variable VAR.
19749 func_append ()
19750 {
19751 eval "$1+=\$2"
19752 }
19753 _LT_EOF
19754 ;;
19755 *)
19756 cat << \_LT_EOF >> "$cfgfile"
19757
19758 # func_append var value
19759 # Append VALUE to the end of shell variable VAR.
19760 func_append ()
19761 {
19762 eval "$1=\$$1\$2"
19763 }
19764
19765 _LT_EOF
19766 ;;
19767 esac
19768
19769
19770 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
19771 || (rm -f "$cfgfile"; exit 1)
19772
19773 mv -f "$cfgfile" "$ofile" ||
19774 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
19775 chmod +x "$ofile"
19776
19777
19778 cat <<_LT_EOF >> "$ofile"
19779
19780 # ### BEGIN LIBTOOL TAG CONFIG: FC
19781
19782 # The linker used to build libraries.
19783 LD=$lt_LD_FC
19784
19785 # How to create reloadable object files.
19786 reload_flag=$lt_reload_flag_FC
19787 reload_cmds=$lt_reload_cmds_FC
19788
19789 # Commands used to build an old-style archive.
19790 old_archive_cmds=$lt_old_archive_cmds_FC
19791
19792 # A language specific compiler.
19793 CC=$lt_compiler_FC
19794
19795 # Is the compiler the GNU compiler?
19796 with_gcc=$GCC_FC
19797
19798 # Compiler flag to turn off builtin functions.
19799 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
19800
19801 # How to pass a linker flag through the compiler.
19802 wl=$lt_lt_prog_compiler_wl_FC
19803
19804 # Additional compiler flags for building library objects.
19805 pic_flag=$lt_lt_prog_compiler_pic_FC
19806
19807 # Compiler flag to prevent dynamic linking.
19808 link_static_flag=$lt_lt_prog_compiler_static_FC
19809
19810 # Does compiler simultaneously support -c and -o options?
19811 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
19812
19813 # Whether or not to add -lc for building shared libraries.
19814 build_libtool_need_lc=$archive_cmds_need_lc_FC
19815
19816 # Whether or not to disallow shared libs when runtime libs are static.
19817 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
19818
19819 # Compiler flag to allow reflexive dlopens.
19820 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
19821
19822 # Compiler flag to generate shared objects directly from archives.
19823 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
19824
19825 # Whether the compiler copes with passing no objects directly.
19826 compiler_needs_object=$lt_compiler_needs_object_FC
19827
19828 # Create an old-style archive from a shared archive.
19829 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
19830
19831 # Create a temporary old-style archive to link instead of a shared archive.
19832 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
19833
19834 # Commands used to build a shared archive.
19835 archive_cmds=$lt_archive_cmds_FC
19836 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
19837
19838 # Commands used to build a loadable module if different from building
19839 # a shared archive.
19840 module_cmds=$lt_module_cmds_FC
19841 module_expsym_cmds=$lt_module_expsym_cmds_FC
19842
19843 # Whether we are building with GNU ld or not.
19844 with_gnu_ld=$lt_with_gnu_ld_FC
19845
19846 # Flag that allows shared libraries with undefined symbols to be built.
19847 allow_undefined_flag=$lt_allow_undefined_flag_FC
19848
19849 # Flag that enforces no undefined symbols.
19850 no_undefined_flag=$lt_no_undefined_flag_FC
19851
19852 # Flag to hardcode \$libdir into a binary during linking.
19853 # This must work even if \$libdir does not exist
19854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
19855
19856 # If ld is used when linking, flag to hardcode \$libdir into a binary
19857 # during linking. This must work even if \$libdir does not exist.
19858 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
19859
19860 # Whether we need a single "-rpath" flag with a separated argument.
19861 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
19862
19863 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19864 # DIR into the resulting binary.
19865 hardcode_direct=$hardcode_direct_FC
19866
19867 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
19868 # DIR into the resulting binary and the resulting library dependency is
19869 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
19870 # library is relocated.
19871 hardcode_direct_absolute=$hardcode_direct_absolute_FC
19872
19873 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
19874 # into the resulting binary.
19875 hardcode_minus_L=$hardcode_minus_L_FC
19876
19877 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
19878 # into the resulting binary.
19879 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
19880
19881 # Set to "yes" if building a shared library automatically hardcodes DIR
19882 # into the library and all subsequent libraries and executables linked
19883 # against it.
19884 hardcode_automatic=$hardcode_automatic_FC
19885
19886 # Set to yes if linker adds runtime paths of dependent libraries
19887 # to runtime path list.
19888 inherit_rpath=$inherit_rpath_FC
19889
19890 # Whether libtool must link a program against all its dependency libraries.
19891 link_all_deplibs=$link_all_deplibs_FC
19892
19893 # Fix the shell variable \$srcfile for the compiler.
19894 fix_srcfile_path=$lt_fix_srcfile_path_FC
19895
19896 # Set to "yes" if exported symbols are required.
19897 always_export_symbols=$always_export_symbols_FC
19898
19899 # The commands to list exported symbols.
19900 export_symbols_cmds=$lt_export_symbols_cmds_FC
19901
19902 # Symbols that should not be listed in the preloaded symbols.
19903 exclude_expsyms=$lt_exclude_expsyms_FC
19904
19905 # Symbols that must always be exported.
19906 include_expsyms=$lt_include_expsyms_FC
19907
19908 # Commands necessary for linking programs (against libraries) with templates.
19909 prelink_cmds=$lt_prelink_cmds_FC
19910
19911 # Specify filename containing input files.
19912 file_list_spec=$lt_file_list_spec_FC
19913
19914 # How to hardcode a shared library path into an executable.
19915 hardcode_action=$hardcode_action_FC
19916
19917 # The directories searched by this compiler when creating a shared library.
19918 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
19919
19920 # Dependencies to place before and after the objects being linked to
19921 # create a shared library.
19922 predep_objects=$lt_predep_objects_FC
19923 postdep_objects=$lt_postdep_objects_FC
19924 predeps=$lt_predeps_FC
19925 postdeps=$lt_postdeps_FC
19926
19927 # The library search path used internally by the compiler when linking
19928 # a shared library.
19929 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
19930
19931 # ### END LIBTOOL TAG CONFIG: FC
19932 _LT_EOF
19933
19934 ;;
19935 "gstdint.h":C)
19936 if test "$GCC" = yes; then
19937 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
19938 else
19939 echo "/* generated for $CC */" > tmp-stdint.h
19940 fi
19941
19942 sed 's/^ *//' >> tmp-stdint.h <<EOF
19943
19944 #ifndef GCC_GENERATED_STDINT_H
19945 #define GCC_GENERATED_STDINT_H 1
19946
19947 #include <sys/types.h>
19948 EOF
19949
19950 if test "$acx_cv_header_stdint" != stdint.h; then
19951 echo "#include <stddef.h>" >> tmp-stdint.h
19952 fi
19953 if test "$acx_cv_header_stdint" != stddef.h; then
19954 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
19955 fi
19956
19957 sed 's/^ *//' >> tmp-stdint.h <<EOF
19958 /* glibc uses these symbols as guards to prevent redefinitions. */
19959 #ifdef __int8_t_defined
19960 #define _INT8_T
19961 #define _INT16_T
19962 #define _INT32_T
19963 #endif
19964 #ifdef __uint32_t_defined
19965 #define _UINT32_T
19966 #endif
19967
19968 EOF
19969
19970 # ----------------- done header, emit basic int types -------------
19971 if test "$acx_cv_header_stdint" = stddef.h; then
19972 sed 's/^ *//' >> tmp-stdint.h <<EOF
19973
19974 #ifndef _UINT8_T
19975 #define _UINT8_T
19976 #ifndef __uint8_t_defined
19977 #define __uint8_t_defined
19978 #ifndef uint8_t
19979 typedef unsigned $acx_cv_type_int8_t uint8_t;
19980 #endif
19981 #endif
19982 #endif
19983
19984 #ifndef _UINT16_T
19985 #define _UINT16_T
19986 #ifndef __uint16_t_defined
19987 #define __uint16_t_defined
19988 #ifndef uint16_t
19989 typedef unsigned $acx_cv_type_int16_t uint16_t;
19990 #endif
19991 #endif
19992 #endif
19993
19994 #ifndef _UINT32_T
19995 #define _UINT32_T
19996 #ifndef __uint32_t_defined
19997 #define __uint32_t_defined
19998 #ifndef uint32_t
19999 typedef unsigned $acx_cv_type_int32_t uint32_t;
20000 #endif
20001 #endif
20002 #endif
20003
20004 #ifndef _INT8_T
20005 #define _INT8_T
20006 #ifndef __int8_t_defined
20007 #define __int8_t_defined
20008 #ifndef int8_t
20009 typedef $acx_cv_type_int8_t int8_t;
20010 #endif
20011 #endif
20012 #endif
20013
20014 #ifndef _INT16_T
20015 #define _INT16_T
20016 #ifndef __int16_t_defined
20017 #define __int16_t_defined
20018 #ifndef int16_t
20019 typedef $acx_cv_type_int16_t int16_t;
20020 #endif
20021 #endif
20022 #endif
20023
20024 #ifndef _INT32_T
20025 #define _INT32_T
20026 #ifndef __int32_t_defined
20027 #define __int32_t_defined
20028 #ifndef int32_t
20029 typedef $acx_cv_type_int32_t int32_t;
20030 #endif
20031 #endif
20032 #endif
20033 EOF
20034 elif test "$ac_cv_type_u_int32_t" = yes; then
20035 sed 's/^ *//' >> tmp-stdint.h <<EOF
20036
20037 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
20038 #ifndef _INT8_T
20039 #define _INT8_T
20040 #endif
20041 #ifndef _INT16_T
20042 #define _INT16_T
20043 #endif
20044 #ifndef _INT32_T
20045 #define _INT32_T
20046 #endif
20047
20048 #ifndef _UINT8_T
20049 #define _UINT8_T
20050 #ifndef __uint8_t_defined
20051 #define __uint8_t_defined
20052 #ifndef uint8_t
20053 typedef u_int8_t uint8_t;
20054 #endif
20055 #endif
20056 #endif
20057
20058 #ifndef _UINT16_T
20059 #define _UINT16_T
20060 #ifndef __uint16_t_defined
20061 #define __uint16_t_defined
20062 #ifndef uint16_t
20063 typedef u_int16_t uint16_t;
20064 #endif
20065 #endif
20066 #endif
20067
20068 #ifndef _UINT32_T
20069 #define _UINT32_T
20070 #ifndef __uint32_t_defined
20071 #define __uint32_t_defined
20072 #ifndef uint32_t
20073 typedef u_int32_t uint32_t;
20074 #endif
20075 #endif
20076 #endif
20077 EOF
20078 else
20079 sed 's/^ *//' >> tmp-stdint.h <<EOF
20080
20081 /* Some systems have guard macros to prevent redefinitions, define them. */
20082 #ifndef _INT8_T
20083 #define _INT8_T
20084 #endif
20085 #ifndef _INT16_T
20086 #define _INT16_T
20087 #endif
20088 #ifndef _INT32_T
20089 #define _INT32_T
20090 #endif
20091 #ifndef _UINT8_T
20092 #define _UINT8_T
20093 #endif
20094 #ifndef _UINT16_T
20095 #define _UINT16_T
20096 #endif
20097 #ifndef _UINT32_T
20098 #define _UINT32_T
20099 #endif
20100 EOF
20101 fi
20102
20103 # ------------- done basic int types, emit int64_t types ------------
20104 if test "$ac_cv_type_uint64_t" = yes; then
20105 sed 's/^ *//' >> tmp-stdint.h <<EOF
20106
20107 /* system headers have good uint64_t and int64_t */
20108 #ifndef _INT64_T
20109 #define _INT64_T
20110 #endif
20111 #ifndef _UINT64_T
20112 #define _UINT64_T
20113 #endif
20114 EOF
20115 elif test "$ac_cv_type_u_int64_t" = yes; then
20116 sed 's/^ *//' >> tmp-stdint.h <<EOF
20117
20118 /* system headers have an u_int64_t (and int64_t) */
20119 #ifndef _INT64_T
20120 #define _INT64_T
20121 #endif
20122 #ifndef _UINT64_T
20123 #define _UINT64_T
20124 #ifndef __uint64_t_defined
20125 #define __uint64_t_defined
20126 #ifndef uint64_t
20127 typedef u_int64_t uint64_t;
20128 #endif
20129 #endif
20130 #endif
20131 EOF
20132 elif test -n "$acx_cv_type_int64_t"; then
20133 sed 's/^ *//' >> tmp-stdint.h <<EOF
20134
20135 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
20136 #ifndef _INT64_T
20137 #define _INT64_T
20138 #ifndef int64_t
20139 typedef $acx_cv_type_int64_t int64_t;
20140 #endif
20141 #endif
20142 #ifndef _UINT64_T
20143 #define _UINT64_T
20144 #ifndef __uint64_t_defined
20145 #define __uint64_t_defined
20146 #ifndef uint64_t
20147 typedef unsigned $acx_cv_type_int64_t uint64_t;
20148 #endif
20149 #endif
20150 #endif
20151 EOF
20152 else
20153 sed 's/^ *//' >> tmp-stdint.h <<EOF
20154
20155 /* some common heuristics for int64_t, using compiler-specific tests */
20156 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
20157 #ifndef _INT64_T
20158 #define _INT64_T
20159 #ifndef __int64_t_defined
20160 #ifndef int64_t
20161 typedef long long int64_t;
20162 #endif
20163 #endif
20164 #endif
20165 #ifndef _UINT64_T
20166 #define _UINT64_T
20167 #ifndef uint64_t
20168 typedef unsigned long long uint64_t;
20169 #endif
20170 #endif
20171
20172 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
20173 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
20174 does not implement __extension__. But that compiler doesn't define
20175 __GNUC_MINOR__. */
20176 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
20177 # define __extension__
20178 # endif
20179
20180 # ifndef _INT64_T
20181 # define _INT64_T
20182 # ifndef int64_t
20183 __extension__ typedef long long int64_t;
20184 # endif
20185 # endif
20186 # ifndef _UINT64_T
20187 # define _UINT64_T
20188 # ifndef uint64_t
20189 __extension__ typedef unsigned long long uint64_t;
20190 # endif
20191 # endif
20192
20193 #elif !defined __STRICT_ANSI__
20194 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
20195
20196 # ifndef _INT64_T
20197 # define _INT64_T
20198 # ifndef int64_t
20199 typedef __int64 int64_t;
20200 # endif
20201 # endif
20202 # ifndef _UINT64_T
20203 # define _UINT64_T
20204 # ifndef uint64_t
20205 typedef unsigned __int64 uint64_t;
20206 # endif
20207 # endif
20208 # endif /* compiler */
20209
20210 #endif /* ANSI version */
20211 EOF
20212 fi
20213
20214 # ------------- done int64_t types, emit intptr types ------------
20215 if test "$ac_cv_type_uintptr_t" != yes; then
20216 sed 's/^ *//' >> tmp-stdint.h <<EOF
20217
20218 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
20219 #ifndef __uintptr_t_defined
20220 #ifndef uintptr_t
20221 typedef u$acx_cv_type_intptr_t uintptr_t;
20222 #endif
20223 #endif
20224 #ifndef __intptr_t_defined
20225 #ifndef intptr_t
20226 typedef $acx_cv_type_intptr_t intptr_t;
20227 #endif
20228 #endif
20229 EOF
20230 fi
20231
20232 # ------------- done intptr types, emit int_least types ------------
20233 if test "$ac_cv_type_int_least32_t" != yes; then
20234 sed 's/^ *//' >> tmp-stdint.h <<EOF
20235
20236 /* Define int_least types */
20237 typedef int8_t int_least8_t;
20238 typedef int16_t int_least16_t;
20239 typedef int32_t int_least32_t;
20240 #ifdef _INT64_T
20241 typedef int64_t int_least64_t;
20242 #endif
20243
20244 typedef uint8_t uint_least8_t;
20245 typedef uint16_t uint_least16_t;
20246 typedef uint32_t uint_least32_t;
20247 #ifdef _UINT64_T
20248 typedef uint64_t uint_least64_t;
20249 #endif
20250 EOF
20251 fi
20252
20253 # ------------- done intptr types, emit int_fast types ------------
20254 if test "$ac_cv_type_int_fast32_t" != yes; then
20255 sed 's/^ *//' >> tmp-stdint.h <<EOF
20256
20257 /* Define int_fast types. short is often slow */
20258 typedef int8_t int_fast8_t;
20259 typedef int int_fast16_t;
20260 typedef int32_t int_fast32_t;
20261 #ifdef _INT64_T
20262 typedef int64_t int_fast64_t;
20263 #endif
20264
20265 typedef uint8_t uint_fast8_t;
20266 typedef unsigned int uint_fast16_t;
20267 typedef uint32_t uint_fast32_t;
20268 #ifdef _UINT64_T
20269 typedef uint64_t uint_fast64_t;
20270 #endif
20271 EOF
20272 fi
20273
20274 if test "$ac_cv_type_uintmax_t" != yes; then
20275 sed 's/^ *//' >> tmp-stdint.h <<EOF
20276
20277 /* Define intmax based on what we found */
20278 #ifndef intmax_t
20279 #ifdef _INT64_T
20280 typedef int64_t intmax_t;
20281 #else
20282 typedef long intmax_t;
20283 #endif
20284 #endif
20285 #ifndef uintmax_t
20286 #ifdef _UINT64_T
20287 typedef uint64_t uintmax_t;
20288 #else
20289 typedef unsigned long uintmax_t;
20290 #endif
20291 #endif
20292 EOF
20293 fi
20294
20295 sed 's/^ *//' >> tmp-stdint.h <<EOF
20296
20297 #endif /* GCC_GENERATED_STDINT_H */
20298 EOF
20299
20300 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
20301 rm -f tmp-stdint.h
20302 else
20303 mv -f tmp-stdint.h gstdint.h
20304 fi
20305
20306 ;;
20307
20308 esac
20309 done # for ac_tag
20310
20311
20312 as_fn_exit 0
20313 _ACEOF
20314 ac_clean_files=$ac_clean_files_save
20315
20316 test $ac_write_fail = 0 ||
20317 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20318
20319
20320 # configure is writing to config.log, and then calls config.status.
20321 # config.status does its own redirection, appending to config.log.
20322 # Unfortunately, on DOS this fails, as config.log is still kept open
20323 # by configure, so config.status won't be able to write to it; its
20324 # output is simply discarded. So we exec the FD to /dev/null,
20325 # effectively closing config.log, so it can be properly (re)opened and
20326 # appended to by config.status. When coming back to configure, we
20327 # need to make the FD available again.
20328 if test "$no_create" != yes; then
20329 ac_cs_success=:
20330 ac_config_status_args=
20331 test "$silent" = yes &&
20332 ac_config_status_args="$ac_config_status_args --quiet"
20333 exec 5>/dev/null
20334 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
20335 exec 5>>config.log
20336 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20337 # would make configure fail if this is the last instruction.
20338 $ac_cs_success || as_fn_exit 1
20339 fi
20340 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20342 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
20343 fi
20344