Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for hdf-eos5 2.0.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
241 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244 fi; }
245 IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251 # neutralization value for shells without unset; and this also
252 # works around shells that cannot unset nonexistent variables.
253 # Preserve -v and -x to the replacement shell.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264 # Admittedly, this is quite paranoid, since all the known shells bail
265 # out after a failed `exec'.
266 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267 exit 255
268 fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell [email protected] and [email protected]
278 $0: about your system, including any error possibly output
279 $0: before this message. Then install a modern shell, or
280 $0: manually run the script under such a shell if you do
281 $0: have one."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_fn_set_status ()
309 {
310 return $1
311 } # as_fn_set_status
312
313 # as_fn_exit STATUS
314 # -----------------
315 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316 as_fn_exit ()
317 {
318 set +e
319 as_fn_set_status $1
320 exit $1
321 } # as_fn_exit
322
323 # as_fn_mkdir_p
324 # -------------
325 # Create "$as_dir" as a directory, including parents if necessary.
326 as_fn_mkdir_p ()
327 {
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345 $as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369 } # as_fn_mkdir_p
370
371 # as_fn_executable_p FILE
372 # -----------------------
373 # Test if FILE is an executable regular file.
374 as_fn_executable_p ()
375 {
376 test -f "$1" && test -x "$1"
377 } # as_fn_executable_p
378 # as_fn_append VAR VALUE
379 # ----------------------
380 # Append the text in VALUE to the end of the definition contained in VAR. Take
381 # advantage of any shell optimizations that allow amortized linear growth over
382 # repeated appends, instead of the typical quadratic growth present in naive
383 # implementations.
384 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # as_fn_append
395
396 # as_fn_arith ARG...
397 # ------------------
398 # Perform arithmetic evaluation on the ARGs, and store the result in the
399 # global $as_val. Take advantage of shells that can avoid forks. The arguments
400 # must be portable across $(()) and expr.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # as_fn_arith
412
413
414 # as_fn_error STATUS ERROR [LINENO LOG_FD]
415 # ----------------------------------------
416 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418 # script with STATUS, using 1 if that was 0.
419 as_fn_error ()
420 {
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428 } # as_fn_error
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `echo -n x` in #(((((
513 -n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520 *)
521 ECHO_N='-n';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='hdf-eos5'
592 PACKAGE_TARNAME='hdf-eos5'
593 PACKAGE_VERSION='2.0'
594 PACKAGE_STRING='hdf-eos5 2.0'
595 PACKAGE_BUGREPORT='[email protected]'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 SZIP_ENCODER_CONDITIONAL_FALSE
638 SZIP_ENCODER_CONDITIONAL_TRUE
639 F2CFORTRAN_32PTR_CONDITIONAL_FALSE
640 F2CFORTRAN_32PTR_CONDITIONAL_TRUE
641 F2CFORTRAN_90_CONDITIONAL_FALSE
642 F2CFORTRAN_90_CONDITIONAL_TRUE
643 F2CFORTRAN_CONDITIONAL_FALSE
644 F2CFORTRAN_CONDITIONAL_TRUE
645 LIBOBJS
646 GCTP_INCLUDE_CONDITIONAL_FALSE
647 GCTP_INCLUDE_CONDITIONAL_TRUE
648 HDF5_THREADSAFE_FALSE
649 HDF5_THREADSAFE_TRUE
650 ac_ct_FC
651 FCFLAGS
652 FC
653 ac_ct_F77
654 FFLAGS
655 F77
656 CPP
657 OTOOL64
658 OTOOL
659 LIPO
660 NMEDIT
661 DSYMUTIL
662 MANIFEST_TOOL
663 RANLIB
664 ac_ct_AR
665 AR
666 DLLTOOL
667 OBJDUMP
668 LN_S
669 NM
670 ac_ct_DUMPBIN
671 DUMPBIN
672 LD
673 FGREP
674 EGREP
675 GREP
676 SED
677 am__fastdepCC_FALSE
678 am__fastdepCC_TRUE
679 CCDEPMODE
680 am__nodep
681 AMDEPBACKSLASH
682 AMDEP_FALSE
683 AMDEP_TRUE
684 am__quote
685 am__include
686 DEPDIR
687 OBJEXT
688 EXEEXT
689 ac_ct_CC
690 CPPFLAGS
691 LDFLAGS
692 CFLAGS
693 CC
694 host_os
695 host_vendor
696 host_cpu
697 host
698 build_os
699 build_vendor
700 build_cpu
701 build
702 LIBTOOL
703 MAINT
704 MAINTAINER_MODE_FALSE
705 MAINTAINER_MODE_TRUE
706 AM_BACKSLASH
707 AM_DEFAULT_VERBOSITY
708 AM_DEFAULT_V
709 AM_V
710 am__untar
711 am__tar
712 AMTAR
713 am__leading_dot
714 SET_MAKE
715 AWK
716 mkdir_p
717 MKDIR_P
718 INSTALL_STRIP_PROGRAM
719 STRIP
720 install_sh
721 MAKEINFO
722 AUTOHEADER
723 AUTOMAKE
724 AUTOCONF
725 ACLOCAL
726 VERSION
727 PACKAGE
728 CYGPATH_W
729 am__isrc
730 INSTALL_DATA
731 INSTALL_SCRIPT
732 INSTALL_PROGRAM
733 target_alias
734 host_alias
735 build_alias
736 LIBS
737 ECHO_T
738 ECHO_N
739 ECHO_C
740 DEFS
741 mandir
742 localedir
743 libdir
744 psdir
745 pdfdir
746 dvidir
747 htmldir
748 infodir
749 docdir
750 oldincludedir
751 includedir
752 localstatedir
753 sharedstatedir
754 sysconfdir
755 datadir
756 datarootdir
757 libexecdir
758 sbindir
759 bindir
760 program_transform_name
761 prefix
762 exec_prefix
763 PACKAGE_URL
764 PACKAGE_BUGREPORT
765 PACKAGE_STRING
766 PACKAGE_VERSION
767 PACKAGE_TARNAME
768 PACKAGE_NAME
769 PATH_SEPARATOR
770 SHELL'
771 ac_subst_files=''
772 ac_user_opts='
773 enable_option_checking
774 enable_silent_rules
775 enable_maintainer_mode
776 enable_shared
777 enable_static
778 with_pic
779 enable_fast_install
780 enable_dependency_tracking
781 with_gnu_ld
782 with_sysroot
783 enable_libtool_lock
784 with_zlib
785 enable_fortran
786 with_szlib
787 with_hdf5
788 enable_gctp_include
789 '
790 ac_precious_vars='build_alias
791 host_alias
792 target_alias
793 CC
794 CFLAGS
795 LDFLAGS
796 LIBS
797 CPPFLAGS
798 CPP
799 F77
800 FFLAGS
801 FC
802 FCFLAGS'
803
804
805 # Initialize some variables set by options.
806 ac_init_help=
807 ac_init_version=false
808 ac_unrecognized_opts=
809 ac_unrecognized_sep=
810 # The variables have the same names as the options, with
811 # dashes changed to underlines.
812 cache_file=/dev/null
813 exec_prefix=NONE
814 no_create=
815 no_recursion=
816 prefix=NONE
817 program_prefix=NONE
818 program_suffix=NONE
819 program_transform_name=s,x,x,
820 silent=
821 site=
822 srcdir=
823 verbose=
824 x_includes=NONE
825 x_libraries=NONE
826
827 # Installation directory options.
828 # These are left unexpanded so users can "make install exec_prefix=/foo"
829 # and all the variables that are supposed to be based on exec_prefix
830 # by default will actually change.
831 # Use braces instead of parens because sh, perl, etc. also accept them.
832 # (The list follows the same order as the GNU Coding Standards.)
833 bindir='${exec_prefix}/bin'
834 sbindir='${exec_prefix}/sbin'
835 libexecdir='${exec_prefix}/libexec'
836 datarootdir='${prefix}/share'
837 datadir='${datarootdir}'
838 sysconfdir='${prefix}/etc'
839 sharedstatedir='${prefix}/com'
840 localstatedir='${prefix}/var'
841 includedir='${prefix}/include'
842 oldincludedir='/usr/include'
843 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
844 infodir='${datarootdir}/info'
845 htmldir='${docdir}'
846 dvidir='${docdir}'
847 pdfdir='${docdir}'
848 psdir='${docdir}'
849 libdir='${exec_prefix}/lib'
850 localedir='${datarootdir}/locale'
851 mandir='${datarootdir}/man'
852
853 ac_prev=
854 ac_dashdash=
855 for ac_option
856 do
857 # If the previous option needs an argument, assign it.
858 if test -n "$ac_prev"; then
859 eval $ac_prev=\$ac_option
860 ac_prev=
861 continue
862 fi
863
864 case $ac_option in
865 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
866 *=) ac_optarg= ;;
867 *) ac_optarg=yes ;;
868 esac
869
870 # Accept the important Cygnus configure options, so we can diagnose typos.
871
872 case $ac_dashdash$ac_option in
873 --)
874 ac_dashdash=yes ;;
875
876 -bindir | --bindir | --bindi | --bind | --bin | --bi)
877 ac_prev=bindir ;;
878 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
879 bindir=$ac_optarg ;;
880
881 -build | --build | --buil | --bui | --bu)
882 ac_prev=build_alias ;;
883 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
884 build_alias=$ac_optarg ;;
885
886 -cache-file | --cache-file | --cache-fil | --cache-fi \
887 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
888 ac_prev=cache_file ;;
889 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
890 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
891 cache_file=$ac_optarg ;;
892
893 --config-cache | -C)
894 cache_file=config.cache ;;
895
896 -datadir | --datadir | --datadi | --datad)
897 ac_prev=datadir ;;
898 -datadir=* | --datadir=* | --datadi=* | --datad=*)
899 datadir=$ac_optarg ;;
900
901 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
902 | --dataroo | --dataro | --datar)
903 ac_prev=datarootdir ;;
904 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
905 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
906 datarootdir=$ac_optarg ;;
907
908 -disable-* | --disable-*)
909 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
910 # Reject names that are not valid shell variable names.
911 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
912 as_fn_error $? "invalid feature name: $ac_useropt"
913 ac_useropt_orig=$ac_useropt
914 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
915 case $ac_user_opts in
916 *"
917 "enable_$ac_useropt"
918 "*) ;;
919 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
920 ac_unrecognized_sep=', ';;
921 esac
922 eval enable_$ac_useropt=no ;;
923
924 -docdir | --docdir | --docdi | --doc | --do)
925 ac_prev=docdir ;;
926 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
927 docdir=$ac_optarg ;;
928
929 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
930 ac_prev=dvidir ;;
931 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
932 dvidir=$ac_optarg ;;
933
934 -enable-* | --enable-*)
935 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
936 # Reject names that are not valid shell variable names.
937 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
938 as_fn_error $? "invalid feature name: $ac_useropt"
939 ac_useropt_orig=$ac_useropt
940 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
941 case $ac_user_opts in
942 *"
943 "enable_$ac_useropt"
944 "*) ;;
945 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
946 ac_unrecognized_sep=', ';;
947 esac
948 eval enable_$ac_useropt=\$ac_optarg ;;
949
950 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952 | --exec | --exe | --ex)
953 ac_prev=exec_prefix ;;
954 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956 | --exec=* | --exe=* | --ex=*)
957 exec_prefix=$ac_optarg ;;
958
959 -gas | --gas | --ga | --g)
960 # Obsolete; use --with-gas.
961 with_gas=yes ;;
962
963 -help | --help | --hel | --he | -h)
964 ac_init_help=long ;;
965 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966 ac_init_help=recursive ;;
967 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968 ac_init_help=short ;;
969
970 -host | --host | --hos | --ho)
971 ac_prev=host_alias ;;
972 -host=* | --host=* | --hos=* | --ho=*)
973 host_alias=$ac_optarg ;;
974
975 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976 ac_prev=htmldir ;;
977 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978 | --ht=*)
979 htmldir=$ac_optarg ;;
980
981 -includedir | --includedir | --includedi | --included | --include \
982 | --includ | --inclu | --incl | --inc)
983 ac_prev=includedir ;;
984 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985 | --includ=* | --inclu=* | --incl=* | --inc=*)
986 includedir=$ac_optarg ;;
987
988 -infodir | --infodir | --infodi | --infod | --info | --inf)
989 ac_prev=infodir ;;
990 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991 infodir=$ac_optarg ;;
992
993 -libdir | --libdir | --libdi | --libd)
994 ac_prev=libdir ;;
995 -libdir=* | --libdir=* | --libdi=* | --libd=*)
996 libdir=$ac_optarg ;;
997
998 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999 | --libexe | --libex | --libe)
1000 ac_prev=libexecdir ;;
1001 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002 | --libexe=* | --libex=* | --libe=*)
1003 libexecdir=$ac_optarg ;;
1004
1005 -localedir | --localedir | --localedi | --localed | --locale)
1006 ac_prev=localedir ;;
1007 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008 localedir=$ac_optarg ;;
1009
1010 -localstatedir | --localstatedir | --localstatedi | --localstated \
1011 | --localstate | --localstat | --localsta | --localst | --locals)
1012 ac_prev=localstatedir ;;
1013 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015 localstatedir=$ac_optarg ;;
1016
1017 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018 ac_prev=mandir ;;
1019 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020 mandir=$ac_optarg ;;
1021
1022 -nfp | --nfp | --nf)
1023 # Obsolete; use --without-fp.
1024 with_fp=no ;;
1025
1026 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027 | --no-cr | --no-c | -n)
1028 no_create=yes ;;
1029
1030 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032 no_recursion=yes ;;
1033
1034 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036 | --oldin | --oldi | --old | --ol | --o)
1037 ac_prev=oldincludedir ;;
1038 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041 oldincludedir=$ac_optarg ;;
1042
1043 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044 ac_prev=prefix ;;
1045 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046 prefix=$ac_optarg ;;
1047
1048 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049 | --program-pre | --program-pr | --program-p)
1050 ac_prev=program_prefix ;;
1051 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053 program_prefix=$ac_optarg ;;
1054
1055 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056 | --program-suf | --program-su | --program-s)
1057 ac_prev=program_suffix ;;
1058 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060 program_suffix=$ac_optarg ;;
1061
1062 -program-transform-name | --program-transform-name \
1063 | --program-transform-nam | --program-transform-na \
1064 | --program-transform-n | --program-transform- \
1065 | --program-transform | --program-transfor \
1066 | --program-transfo | --program-transf \
1067 | --program-trans | --program-tran \
1068 | --progr-tra | --program-tr | --program-t)
1069 ac_prev=program_transform_name ;;
1070 -program-transform-name=* | --program-transform-name=* \
1071 | --program-transform-nam=* | --program-transform-na=* \
1072 | --program-transform-n=* | --program-transform-=* \
1073 | --program-transform=* | --program-transfor=* \
1074 | --program-transfo=* | --program-transf=* \
1075 | --program-trans=* | --program-tran=* \
1076 | --progr-tra=* | --program-tr=* | --program-t=*)
1077 program_transform_name=$ac_optarg ;;
1078
1079 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080 ac_prev=pdfdir ;;
1081 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082 pdfdir=$ac_optarg ;;
1083
1084 -psdir | --psdir | --psdi | --psd | --ps)
1085 ac_prev=psdir ;;
1086 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087 psdir=$ac_optarg ;;
1088
1089 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090 | -silent | --silent | --silen | --sile | --sil)
1091 silent=yes ;;
1092
1093 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094 ac_prev=sbindir ;;
1095 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096 | --sbi=* | --sb=*)
1097 sbindir=$ac_optarg ;;
1098
1099 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101 | --sharedst | --shareds | --shared | --share | --shar \
1102 | --sha | --sh)
1103 ac_prev=sharedstatedir ;;
1104 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107 | --sha=* | --sh=*)
1108 sharedstatedir=$ac_optarg ;;
1109
1110 -site | --site | --sit)
1111 ac_prev=site ;;
1112 -site=* | --site=* | --sit=*)
1113 site=$ac_optarg ;;
1114
1115 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116 ac_prev=srcdir ;;
1117 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118 srcdir=$ac_optarg ;;
1119
1120 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121 | --syscon | --sysco | --sysc | --sys | --sy)
1122 ac_prev=sysconfdir ;;
1123 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125 sysconfdir=$ac_optarg ;;
1126
1127 -target | --target | --targe | --targ | --tar | --ta | --t)
1128 ac_prev=target_alias ;;
1129 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130 target_alias=$ac_optarg ;;
1131
1132 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133 verbose=yes ;;
1134
1135 -version | --version | --versio | --versi | --vers | -V)
1136 ac_init_version=: ;;
1137
1138 -with-* | --with-*)
1139 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140 # Reject names that are not valid shell variable names.
1141 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1142 as_fn_error $? "invalid package name: $ac_useropt"
1143 ac_useropt_orig=$ac_useropt
1144 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1145 case $ac_user_opts in
1146 *"
1147 "with_$ac_useropt"
1148 "*) ;;
1149 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1150 ac_unrecognized_sep=', ';;
1151 esac
1152 eval with_$ac_useropt=\$ac_optarg ;;
1153
1154 -without-* | --without-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid package name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1162 *"
1163 "with_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval with_$ac_useropt=no ;;
1169
1170 --x)
1171 # Obsolete; use --with-x.
1172 with_x=yes ;;
1173
1174 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1175 | --x-incl | --x-inc | --x-in | --x-i)
1176 ac_prev=x_includes ;;
1177 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1178 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1179 x_includes=$ac_optarg ;;
1180
1181 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1182 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1183 ac_prev=x_libraries ;;
1184 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1185 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1186 x_libraries=$ac_optarg ;;
1187
1188 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1189 Try \`$0 --help' for more information"
1190 ;;
1191
1192 *=*)
1193 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1194 # Reject names that are not valid shell variable names.
1195 case $ac_envvar in #(
1196 '' | [0-9]* | *[!_$as_cr_alnum]* )
1197 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1198 esac
1199 eval $ac_envvar=\$ac_optarg
1200 export $ac_envvar ;;
1201
1202 *)
1203 # FIXME: should be removed in autoconf 3.0.
1204 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1205 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1206 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1207 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 ;;
1209
1210 esac
1211 done
1212
1213 if test -n "$ac_prev"; then
1214 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1215 as_fn_error $? "missing argument to $ac_option"
1216 fi
1217
1218 if test -n "$ac_unrecognized_opts"; then
1219 case $enable_option_checking in
1220 no) ;;
1221 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1222 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1223 esac
1224 fi
1225
1226 # Check all directory arguments for consistency.
1227 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1228 datadir sysconfdir sharedstatedir localstatedir includedir \
1229 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1230 libdir localedir mandir
1231 do
1232 eval ac_val=\$$ac_var
1233 # Remove trailing slashes.
1234 case $ac_val in
1235 */ )
1236 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1237 eval $ac_var=\$ac_val;;
1238 esac
1239 # Be sure to have absolute directory names.
1240 case $ac_val in
1241 [\\/$]* | ?:[\\/]* ) continue;;
1242 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1243 esac
1244 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1245 done
1246
1247 # There might be people who depend on the old broken behavior: `$host'
1248 # used to hold the argument of --host etc.
1249 # FIXME: To remove some day.
1250 build=$build_alias
1251 host=$host_alias
1252 target=$target_alias
1253
1254 # FIXME: To remove some day.
1255 if test "x$host_alias" != x; then
1256 if test "x$build_alias" = x; then
1257 cross_compiling=maybe
1258 elif test "x$build_alias" != "x$host_alias"; then
1259 cross_compiling=yes
1260 fi
1261 fi
1262
1263 ac_tool_prefix=
1264 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1265
1266 test "$silent" = yes && exec 6>/dev/null
1267
1268
1269 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1270 ac_ls_di=`ls -di .` &&
1271 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1272 as_fn_error $? "working directory cannot be determined"
1273 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1274 as_fn_error $? "pwd does not report name of working directory"
1275
1276
1277 # Find the source files, if location was not specified.
1278 if test -z "$srcdir"; then
1279 ac_srcdir_defaulted=yes
1280 # Try the directory containing this script, then the parent directory.
1281 ac_confdir=`$as_dirname -- "$as_myself" ||
1282 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1283 X"$as_myself" : 'X\(//\)[^/]' \| \
1284 X"$as_myself" : 'X\(//\)$' \| \
1285 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1286 $as_echo X"$as_myself" |
1287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1288 s//\1/
1289 q
1290 }
1291 /^X\(\/\/\)[^/].*/{
1292 s//\1/
1293 q
1294 }
1295 /^X\(\/\/\)$/{
1296 s//\1/
1297 q
1298 }
1299 /^X\(\/\).*/{
1300 s//\1/
1301 q
1302 }
1303 s/.*/./; q'`
1304 srcdir=$ac_confdir
1305 if test ! -r "$srcdir/$ac_unique_file"; then
1306 srcdir=..
1307 fi
1308 else
1309 ac_srcdir_defaulted=no
1310 fi
1311 if test ! -r "$srcdir/$ac_unique_file"; then
1312 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1313 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1314 fi
1315 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1316 ac_abs_confdir=`(
1317 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1318 pwd)`
1319 # When building in place, set srcdir=.
1320 if test "$ac_abs_confdir" = "$ac_pwd"; then
1321 srcdir=.
1322 fi
1323 # Remove unnecessary trailing slashes from srcdir.
1324 # Double slashes in file names in object file debugging info
1325 # mess up M-x gdb in Emacs.
1326 case $srcdir in
1327 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1328 esac
1329 for ac_var in $ac_precious_vars; do
1330 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_env_${ac_var}_value=\$${ac_var}
1332 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1334 done
1335
1336 #
1337 # Report the --help message.
1338 #
1339 if test "$ac_init_help" = "long"; then
1340 # Omit some internal or obsolete options to make the list less imposing.
1341 # This message is too long to be a string in the A/UX 3.1 sh.
1342 cat <<_ACEOF
1343 \`configure' configures hdf-eos5 2.0 to adapt to many kinds of systems.
1344
1345 Usage: $0 [OPTION]... [VAR=VALUE]...
1346
1347 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1348 VAR=VALUE. See below for descriptions of some of the useful variables.
1349
1350 Defaults for the options are specified in brackets.
1351
1352 Configuration:
1353 -h, --help display this help and exit
1354 --help=short display options specific to this package
1355 --help=recursive display the short help of all the included packages
1356 -V, --version display version information and exit
1357 -q, --quiet, --silent do not print \`checking ...' messages
1358 --cache-file=FILE cache test results in FILE [disabled]
1359 -C, --config-cache alias for \`--cache-file=config.cache'
1360 -n, --no-create do not create output files
1361 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1362
1363 Installation directories:
1364 --prefix=PREFIX install architecture-independent files in PREFIX
1365 [$ac_default_prefix]
1366 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1367 [PREFIX]
1368
1369 By default, \`make install' will install all the files in
1370 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1371 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1372 for instance \`--prefix=\$HOME'.
1373
1374 For better control, use the options below.
1375
1376 Fine tuning of the installation directories:
1377 --bindir=DIR user executables [EPREFIX/bin]
1378 --sbindir=DIR system admin executables [EPREFIX/sbin]
1379 --libexecdir=DIR program executables [EPREFIX/libexec]
1380 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1381 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1382 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1383 --libdir=DIR object code libraries [EPREFIX/lib]
1384 --includedir=DIR C header files [PREFIX/include]
1385 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1386 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1387 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1388 --infodir=DIR info documentation [DATAROOTDIR/info]
1389 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1390 --mandir=DIR man documentation [DATAROOTDIR/man]
1391 --docdir=DIR documentation root [DATAROOTDIR/doc/hdf-eos5]
1392 --htmldir=DIR html documentation [DOCDIR]
1393 --dvidir=DIR dvi documentation [DOCDIR]
1394 --pdfdir=DIR pdf documentation [DOCDIR]
1395 --psdir=DIR ps documentation [DOCDIR]
1396 _ACEOF
1397
1398 cat <<\_ACEOF
1399
1400 Program names:
1401 --program-prefix=PREFIX prepend PREFIX to installed program names
1402 --program-suffix=SUFFIX append SUFFIX to installed program names
1403 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1404
1405 System types:
1406 --build=BUILD configure for building on BUILD [guessed]
1407 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1408 _ACEOF
1409 fi
1410
1411 if test -n "$ac_init_help"; then
1412 case $ac_init_help in
1413 short | recursive ) echo "Configuration of hdf-eos5 2.0:";;
1414 esac
1415 cat <<\_ACEOF
1416
1417 Optional Features:
1418 --disable-option-checking ignore unrecognized --enable/--with options
1419 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1420 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1421 --enable-silent-rules less verbose build output (undo: "make V=1")
1422 --disable-silent-rules verbose build output (undo: "make V=0")
1423 --enable-maintainer-mode
1424 enable make rules and dependencies not useful (and
1425 sometimes confusing) to the casual installer
1426 --enable-shared[=PKGS] build shared libraries [default=no]
1427 --enable-static[=PKGS] build static libraries [default=yes]
1428 --enable-fast-install[=PKGS]
1429 optimize for fast installation [default=yes]
1430 --enable-dependency-tracking
1431 do not reject slow dependency extractors
1432 --disable-dependency-tracking
1433 speeds up one-time build
1434 --disable-libtool-lock avoid locking (might break parallel builds)
1435 --enable-fortran Enable fortran components/tests
1436 --enable-gctp-include Enable installation of GCTP library headers
1437
1438 Optional Packages:
1439 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1440 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1441 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1442 both]
1443 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1444 --with-sysroot=DIR Search for dependent libraries within DIR
1445 (or the compiler's sysroot if not specified).
1446 --with-zlib=DIR Specify path to external zlib library. Linker must
1447 be able to find zlib if HDF4 was built with zlib.
1448 [default=yes]
1449 --with-szlib=DIR Use szlib library for external szlib I/O filter.
1450 Linker must be able to find szlib if HDF4 was build
1451 with szip.
1452 --with-hdf5=DIR Specify path to HDF5 library to use while building
1453 [default=yes]
1454
1455 Some influential environment variables:
1456 CC C compiler command
1457 CFLAGS C compiler flags
1458 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1459 nonstandard directory <lib dir>
1460 LIBS libraries to pass to the linker, e.g. -l<library>
1461 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1462 you have headers in a nonstandard directory <include dir>
1463 CPP C preprocessor
1464 F77 Fortran 77 compiler command
1465 FFLAGS Fortran 77 compiler flags
1466 FC Fortran compiler command
1467 FCFLAGS Fortran compiler flags
1468
1469 Use these variables to override the choices made by `configure' or to help
1470 it to find libraries and programs with nonstandard names/locations.
1471
1472 Report bugs to <[email protected]>.
1473 _ACEOF
1474 ac_status=$?
1475 fi
1476
1477 if test "$ac_init_help" = "recursive"; then
1478 # If there are subdirs, report their specific --help.
1479 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1480 test -d "$ac_dir" ||
1481 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1482 continue
1483 ac_builddir=.
1484
1485 case "$ac_dir" in
1486 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1487 *)
1488 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1489 # A ".." for each directory in $ac_dir_suffix.
1490 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1491 case $ac_top_builddir_sub in
1492 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1494 esac ;;
1495 esac
1496 ac_abs_top_builddir=$ac_pwd
1497 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1498 # for backward compatibility:
1499 ac_top_builddir=$ac_top_build_prefix
1500
1501 case $srcdir in
1502 .) # We are building in place.
1503 ac_srcdir=.
1504 ac_top_srcdir=$ac_top_builddir_sub
1505 ac_abs_top_srcdir=$ac_pwd ;;
1506 [\\/]* | ?:[\\/]* ) # Absolute name.
1507 ac_srcdir=$srcdir$ac_dir_suffix;
1508 ac_top_srcdir=$srcdir
1509 ac_abs_top_srcdir=$srcdir ;;
1510 *) # Relative name.
1511 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1512 ac_top_srcdir=$ac_top_build_prefix$srcdir
1513 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1514 esac
1515 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1516
1517 cd "$ac_dir" || { ac_status=$?; continue; }
1518 # Check for guested configure.
1519 if test -f "$ac_srcdir/configure.gnu"; then
1520 echo &&
1521 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1522 elif test -f "$ac_srcdir/configure"; then
1523 echo &&
1524 $SHELL "$ac_srcdir/configure" --help=recursive
1525 else
1526 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1527 fi || ac_status=$?
1528 cd "$ac_pwd" || { ac_status=$?; break; }
1529 done
1530 fi
1531
1532 test -n "$ac_init_help" && exit $ac_status
1533 if $ac_init_version; then
1534 cat <<\_ACEOF
1535 hdf-eos5 configure 2.0
1536 generated by GNU Autoconf 2.69
1537
1538 Copyright (C) 2012 Free Software Foundation, Inc.
1539 This configure script is free software; the Free Software Foundation
1540 gives unlimited permission to copy, distribute and modify it.
1541 _ACEOF
1542 exit
1543 fi
1544
1545 ## ------------------------ ##
1546 ## Autoconf initialization. ##
1547 ## ------------------------ ##
1548
1549 # ac_fn_c_try_compile LINENO
1550 # --------------------------
1551 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1552 ac_fn_c_try_compile ()
1553 {
1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1555 rm -f conftest.$ac_objext
1556 if { { ac_try="$ac_compile"
1557 case "(($ac_try" in
1558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1559 *) ac_try_echo=$ac_try;;
1560 esac
1561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1562 $as_echo "$ac_try_echo"; } >&5
1563 (eval "$ac_compile") 2>conftest.err
1564 ac_status=$?
1565 if test -s conftest.err; then
1566 grep -v '^ *+' conftest.err >conftest.er1
1567 cat conftest.er1 >&5
1568 mv -f conftest.er1 conftest.err
1569 fi
1570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1571 test $ac_status = 0; } && {
1572 test -z "$ac_c_werror_flag" ||
1573 test ! -s conftest.err
1574 } && test -s conftest.$ac_objext; then :
1575 ac_retval=0
1576 else
1577 $as_echo "$as_me: failed program was:" >&5
1578 sed 's/^/| /' conftest.$ac_ext >&5
1579
1580 ac_retval=1
1581 fi
1582 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1583 as_fn_set_status $ac_retval
1584
1585 } # ac_fn_c_try_compile
1586
1587 # ac_fn_c_try_link LINENO
1588 # -----------------------
1589 # Try to link conftest.$ac_ext, and return whether this succeeded.
1590 ac_fn_c_try_link ()
1591 {
1592 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1593 rm -f conftest.$ac_objext conftest$ac_exeext
1594 if { { ac_try="$ac_link"
1595 case "(($ac_try" in
1596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1597 *) ac_try_echo=$ac_try;;
1598 esac
1599 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1600 $as_echo "$ac_try_echo"; } >&5
1601 (eval "$ac_link") 2>conftest.err
1602 ac_status=$?
1603 if test -s conftest.err; then
1604 grep -v '^ *+' conftest.err >conftest.er1
1605 cat conftest.er1 >&5
1606 mv -f conftest.er1 conftest.err
1607 fi
1608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1609 test $ac_status = 0; } && {
1610 test -z "$ac_c_werror_flag" ||
1611 test ! -s conftest.err
1612 } && test -s conftest$ac_exeext && {
1613 test "$cross_compiling" = yes ||
1614 test -x conftest$ac_exeext
1615 }; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1620
1621 ac_retval=1
1622 fi
1623 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1624 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1625 # interfere with the next link command; also delete a directory that is
1626 # left behind by Apple's compiler. We do this before executing the actions.
1627 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1628 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1629 as_fn_set_status $ac_retval
1630
1631 } # ac_fn_c_try_link
1632
1633 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1634 # -------------------------------------------------------
1635 # Tests whether HEADER exists and can be compiled using the include files in
1636 # INCLUDES, setting the cache variable VAR accordingly.
1637 ac_fn_c_check_header_compile ()
1638 {
1639 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1641 $as_echo_n "checking for $2... " >&6; }
1642 if eval \${$3+:} false; then :
1643 $as_echo_n "(cached) " >&6
1644 else
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 $4
1648 #include <$2>
1649 _ACEOF
1650 if ac_fn_c_try_compile "$LINENO"; then :
1651 eval "$3=yes"
1652 else
1653 eval "$3=no"
1654 fi
1655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1656 fi
1657 eval ac_res=\$$3
1658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1659 $as_echo "$ac_res" >&6; }
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661
1662 } # ac_fn_c_check_header_compile
1663
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1668 {
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1683 fi
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1693
1694 ac_retval=1
1695 fi
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1698
1699 } # ac_fn_c_try_cpp
1700
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1706 {
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1734
1735 ac_retval=$ac_status
1736 fi
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1740
1741 } # ac_fn_c_try_run
1742
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1747 {
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1759
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1764
1765 #ifdef __STDC__
1766 # include <limits.h>
1767 #else
1768 # include <assert.h>
1769 #endif
1770
1771 #undef $2
1772
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1776 #ifdef __cplusplus
1777 extern "C"
1778 #endif
1779 char $2 ();
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1784 choke me
1785 #endif
1786
1787 int
1788 main ()
1789 {
1790 return $2 ();
1791 ;
1792 return 0;
1793 }
1794 _ACEOF
1795 if ac_fn_c_try_link "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1799 fi
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1802 fi
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1807
1808 } # ac_fn_c_check_func
1809
1810 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1811 # --------------------------------------------
1812 # Tries to find the compile-time value of EXPR in a program that includes
1813 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1814 # computed
1815 ac_fn_c_compute_int ()
1816 {
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if test "$cross_compiling" = yes; then
1819 # Depending upon the size, compute the lo and hi bounds.
1820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1821 /* end confdefs.h. */
1822 $4
1823 int
1824 main ()
1825 {
1826 static int test_array [1 - 2 * !(($2) >= 0)];
1827 test_array [0] = 0;
1828 return test_array [0];
1829
1830 ;
1831 return 0;
1832 }
1833 _ACEOF
1834 if ac_fn_c_try_compile "$LINENO"; then :
1835 ac_lo=0 ac_mid=0
1836 while :; do
1837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1838 /* end confdefs.h. */
1839 $4
1840 int
1841 main ()
1842 {
1843 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1844 test_array [0] = 0;
1845 return test_array [0];
1846
1847 ;
1848 return 0;
1849 }
1850 _ACEOF
1851 if ac_fn_c_try_compile "$LINENO"; then :
1852 ac_hi=$ac_mid; break
1853 else
1854 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
1855 if test $ac_lo -le $ac_mid; then
1856 ac_lo= ac_hi=
1857 break
1858 fi
1859 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
1860 fi
1861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1862 done
1863 else
1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1865 /* end confdefs.h. */
1866 $4
1867 int
1868 main ()
1869 {
1870 static int test_array [1 - 2 * !(($2) < 0)];
1871 test_array [0] = 0;
1872 return test_array [0];
1873
1874 ;
1875 return 0;
1876 }
1877 _ACEOF
1878 if ac_fn_c_try_compile "$LINENO"; then :
1879 ac_hi=-1 ac_mid=-1
1880 while :; do
1881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1882 /* end confdefs.h. */
1883 $4
1884 int
1885 main ()
1886 {
1887 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
1888 test_array [0] = 0;
1889 return test_array [0];
1890
1891 ;
1892 return 0;
1893 }
1894 _ACEOF
1895 if ac_fn_c_try_compile "$LINENO"; then :
1896 ac_lo=$ac_mid; break
1897 else
1898 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
1899 if test $ac_mid -le $ac_hi; then
1900 ac_lo= ac_hi=
1901 break
1902 fi
1903 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
1904 fi
1905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1906 done
1907 else
1908 ac_lo= ac_hi=
1909 fi
1910 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1911 fi
1912 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1913 # Binary search between lo and hi bounds.
1914 while test "x$ac_lo" != "x$ac_hi"; do
1915 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
1916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1917 /* end confdefs.h. */
1918 $4
1919 int
1920 main ()
1921 {
1922 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
1923 test_array [0] = 0;
1924 return test_array [0];
1925
1926 ;
1927 return 0;
1928 }
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 ac_hi=$ac_mid
1932 else
1933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
1934 fi
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1936 done
1937 case $ac_lo in #((
1938 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
1939 '') ac_retval=1 ;;
1940 esac
1941 else
1942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1943 /* end confdefs.h. */
1944 $4
1945 static long int longval () { return $2; }
1946 static unsigned long int ulongval () { return $2; }
1947 #include <stdio.h>
1948 #include <stdlib.h>
1949 int
1950 main ()
1951 {
1952
1953 FILE *f = fopen ("conftest.val", "w");
1954 if (! f)
1955 return 1;
1956 if (($2) < 0)
1957 {
1958 long int i = longval ();
1959 if (i != ($2))
1960 return 1;
1961 fprintf (f, "%ld", i);
1962 }
1963 else
1964 {
1965 unsigned long int i = ulongval ();
1966 if (i != ($2))
1967 return 1;
1968 fprintf (f, "%lu", i);
1969 }
1970 /* Do not output a trailing newline, as this causes \r\n confusion
1971 on some platforms. */
1972 return ferror (f) || fclose (f) != 0;
1973
1974 ;
1975 return 0;
1976 }
1977 _ACEOF
1978 if ac_fn_c_try_run "$LINENO"; then :
1979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
1980 else
1981 ac_retval=1
1982 fi
1983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1984 conftest.$ac_objext conftest.beam conftest.$ac_ext
1985 rm -f conftest.val
1986
1987 fi
1988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1989 as_fn_set_status $ac_retval
1990
1991 } # ac_fn_c_compute_int
1992
1993 # ac_fn_f77_try_compile LINENO
1994 # ----------------------------
1995 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1996 ac_fn_f77_try_compile ()
1997 {
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 rm -f conftest.$ac_objext
2000 if { { ac_try="$ac_compile"
2001 case "(($ac_try" in
2002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2003 *) ac_try_echo=$ac_try;;
2004 esac
2005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2006 $as_echo "$ac_try_echo"; } >&5
2007 (eval "$ac_compile") 2>conftest.err
2008 ac_status=$?
2009 if test -s conftest.err; then
2010 grep -v '^ *+' conftest.err >conftest.er1
2011 cat conftest.er1 >&5
2012 mv -f conftest.er1 conftest.err
2013 fi
2014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2015 test $ac_status = 0; } && {
2016 test -z "$ac_f77_werror_flag" ||
2017 test ! -s conftest.err
2018 } && test -s conftest.$ac_objext; then :
2019 ac_retval=0
2020 else
2021 $as_echo "$as_me: failed program was:" >&5
2022 sed 's/^/| /' conftest.$ac_ext >&5
2023
2024 ac_retval=1
2025 fi
2026 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2027 as_fn_set_status $ac_retval
2028
2029 } # ac_fn_f77_try_compile
2030
2031 # ac_fn_f77_try_link LINENO
2032 # -------------------------
2033 # Try to link conftest.$ac_ext, and return whether this succeeded.
2034 ac_fn_f77_try_link ()
2035 {
2036 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2037 rm -f conftest.$ac_objext conftest$ac_exeext
2038 if { { ac_try="$ac_link"
2039 case "(($ac_try" in
2040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2041 *) ac_try_echo=$ac_try;;
2042 esac
2043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2044 $as_echo "$ac_try_echo"; } >&5
2045 (eval "$ac_link") 2>conftest.err
2046 ac_status=$?
2047 if test -s conftest.err; then
2048 grep -v '^ *+' conftest.err >conftest.er1
2049 cat conftest.er1 >&5
2050 mv -f conftest.er1 conftest.err
2051 fi
2052 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2053 test $ac_status = 0; } && {
2054 test -z "$ac_f77_werror_flag" ||
2055 test ! -s conftest.err
2056 } && test -s conftest$ac_exeext && {
2057 test "$cross_compiling" = yes ||
2058 test -x conftest$ac_exeext
2059 }; then :
2060 ac_retval=0
2061 else
2062 $as_echo "$as_me: failed program was:" >&5
2063 sed 's/^/| /' conftest.$ac_ext >&5
2064
2065 ac_retval=1
2066 fi
2067 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2068 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2069 # interfere with the next link command; also delete a directory that is
2070 # left behind by Apple's compiler. We do this before executing the actions.
2071 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2072 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2073 as_fn_set_status $ac_retval
2074
2075 } # ac_fn_f77_try_link
2076
2077 # ac_fn_fc_try_compile LINENO
2078 # ---------------------------
2079 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2080 ac_fn_fc_try_compile ()
2081 {
2082 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2083 rm -f conftest.$ac_objext
2084 if { { ac_try="$ac_compile"
2085 case "(($ac_try" in
2086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2087 *) ac_try_echo=$ac_try;;
2088 esac
2089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2090 $as_echo "$ac_try_echo"; } >&5
2091 (eval "$ac_compile") 2>conftest.err
2092 ac_status=$?
2093 if test -s conftest.err; then
2094 grep -v '^ *+' conftest.err >conftest.er1
2095 cat conftest.er1 >&5
2096 mv -f conftest.er1 conftest.err
2097 fi
2098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2099 test $ac_status = 0; } && {
2100 test -z "$ac_fc_werror_flag" ||
2101 test ! -s conftest.err
2102 } && test -s conftest.$ac_objext; then :
2103 ac_retval=0
2104 else
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2107
2108 ac_retval=1
2109 fi
2110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2111 as_fn_set_status $ac_retval
2112
2113 } # ac_fn_fc_try_compile
2114
2115 # ac_fn_fc_try_link LINENO
2116 # ------------------------
2117 # Try to link conftest.$ac_ext, and return whether this succeeded.
2118 ac_fn_fc_try_link ()
2119 {
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 rm -f conftest.$ac_objext conftest$ac_exeext
2122 if { { ac_try="$ac_link"
2123 case "(($ac_try" in
2124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2125 *) ac_try_echo=$ac_try;;
2126 esac
2127 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2128 $as_echo "$ac_try_echo"; } >&5
2129 (eval "$ac_link") 2>conftest.err
2130 ac_status=$?
2131 if test -s conftest.err; then
2132 grep -v '^ *+' conftest.err >conftest.er1
2133 cat conftest.er1 >&5
2134 mv -f conftest.er1 conftest.err
2135 fi
2136 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2137 test $ac_status = 0; } && {
2138 test -z "$ac_fc_werror_flag" ||
2139 test ! -s conftest.err
2140 } && test -s conftest$ac_exeext && {
2141 test "$cross_compiling" = yes ||
2142 test -x conftest$ac_exeext
2143 }; then :
2144 ac_retval=0
2145 else
2146 $as_echo "$as_me: failed program was:" >&5
2147 sed 's/^/| /' conftest.$ac_ext >&5
2148
2149 ac_retval=1
2150 fi
2151 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2152 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2153 # interfere with the next link command; also delete a directory that is
2154 # left behind by Apple's compiler. We do this before executing the actions.
2155 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157 as_fn_set_status $ac_retval
2158
2159 } # ac_fn_fc_try_link
2160
2161 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2162 # -------------------------------------------------------
2163 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2164 # the include files in INCLUDES and setting the cache variable VAR
2165 # accordingly.
2166 ac_fn_c_check_header_mongrel ()
2167 {
2168 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2169 if eval \${$3+:} false; then :
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2171 $as_echo_n "checking for $2... " >&6; }
2172 if eval \${$3+:} false; then :
2173 $as_echo_n "(cached) " >&6
2174 fi
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 else
2179 # Is the header compilable?
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2181 $as_echo_n "checking $2 usability... " >&6; }
2182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2183 /* end confdefs.h. */
2184 $4
2185 #include <$2>
2186 _ACEOF
2187 if ac_fn_c_try_compile "$LINENO"; then :
2188 ac_header_compiler=yes
2189 else
2190 ac_header_compiler=no
2191 fi
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2194 $as_echo "$ac_header_compiler" >&6; }
2195
2196 # Is the header present?
2197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2198 $as_echo_n "checking $2 presence... " >&6; }
2199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2200 /* end confdefs.h. */
2201 #include <$2>
2202 _ACEOF
2203 if ac_fn_c_try_cpp "$LINENO"; then :
2204 ac_header_preproc=yes
2205 else
2206 ac_header_preproc=no
2207 fi
2208 rm -f conftest.err conftest.i conftest.$ac_ext
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2210 $as_echo "$ac_header_preproc" >&6; }
2211
2212 # So? What about this header?
2213 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2214 yes:no: )
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2216 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2218 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2219 ;;
2220 no:yes:* )
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2222 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2224 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2226 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2228 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2230 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2231 ( $as_echo "## ------------------------------- ##
2232 ## Report this to [email protected] ##
2233 ## ------------------------------- ##"
2234 ) | sed "s/^/$as_me: WARNING: /" >&2
2235 ;;
2236 esac
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2238 $as_echo_n "checking for $2... " >&6; }
2239 if eval \${$3+:} false; then :
2240 $as_echo_n "(cached) " >&6
2241 else
2242 eval "$3=\$ac_header_compiler"
2243 fi
2244 eval ac_res=\$$3
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2246 $as_echo "$ac_res" >&6; }
2247 fi
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2249
2250 } # ac_fn_c_check_header_mongrel
2251
2252 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2253 # -------------------------------------------
2254 # Tests whether TYPE exists after having included INCLUDES, setting cache
2255 # variable VAR accordingly.
2256 ac_fn_c_check_type ()
2257 {
2258 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2260 $as_echo_n "checking for $2... " >&6; }
2261 if eval \${$3+:} false; then :
2262 $as_echo_n "(cached) " >&6
2263 else
2264 eval "$3=no"
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h. */
2267 $4
2268 int
2269 main ()
2270 {
2271 if (sizeof ($2))
2272 return 0;
2273 ;
2274 return 0;
2275 }
2276 _ACEOF
2277 if ac_fn_c_try_compile "$LINENO"; then :
2278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2279 /* end confdefs.h. */
2280 $4
2281 int
2282 main ()
2283 {
2284 if (sizeof (($2)))
2285 return 0;
2286 ;
2287 return 0;
2288 }
2289 _ACEOF
2290 if ac_fn_c_try_compile "$LINENO"; then :
2291
2292 else
2293 eval "$3=yes"
2294 fi
2295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2296 fi
2297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2298 fi
2299 eval ac_res=\$$3
2300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2301 $as_echo "$ac_res" >&6; }
2302 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2303
2304 } # ac_fn_c_check_type
2305 cat >config.log <<_ACEOF
2306 This file contains any messages produced by compilers while
2307 running configure, to aid debugging if configure makes a mistake.
2308
2309 It was created by hdf-eos5 $as_me 2.0, which was
2310 generated by GNU Autoconf 2.69. Invocation command line was
2311
2312 $ $0 $@
2313
2314 _ACEOF
2315 exec 5>>config.log
2316 {
2317 cat <<_ASUNAME
2318 ## --------- ##
2319 ## Platform. ##
2320 ## --------- ##
2321
2322 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2323 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2324 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2325 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2326 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2327
2328 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2329 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2330
2331 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2332 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2333 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2334 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2335 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2336 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2337 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2338
2339 _ASUNAME
2340
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2342 for as_dir in $PATH
2343 do
2344 IFS=$as_save_IFS
2345 test -z "$as_dir" && as_dir=.
2346 $as_echo "PATH: $as_dir"
2347 done
2348 IFS=$as_save_IFS
2349
2350 } >&5
2351
2352 cat >&5 <<_ACEOF
2353
2354
2355 ## ----------- ##
2356 ## Core tests. ##
2357 ## ----------- ##
2358
2359 _ACEOF
2360
2361
2362 # Keep a trace of the command line.
2363 # Strip out --no-create and --no-recursion so they do not pile up.
2364 # Strip out --silent because we don't want to record it for future runs.
2365 # Also quote any args containing shell meta-characters.
2366 # Make two passes to allow for proper duplicate-argument suppression.
2367 ac_configure_args=
2368 ac_configure_args0=
2369 ac_configure_args1=
2370 ac_must_keep_next=false
2371 for ac_pass in 1 2
2372 do
2373 for ac_arg
2374 do
2375 case $ac_arg in
2376 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2377 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2378 | -silent | --silent | --silen | --sile | --sil)
2379 continue ;;
2380 *\'*)
2381 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2382 esac
2383 case $ac_pass in
2384 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2385 2)
2386 as_fn_append ac_configure_args1 " '$ac_arg'"
2387 if test $ac_must_keep_next = true; then
2388 ac_must_keep_next=false # Got value, back to normal.
2389 else
2390 case $ac_arg in
2391 *=* | --config-cache | -C | -disable-* | --disable-* \
2392 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2393 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2394 | -with-* | --with-* | -without-* | --without-* | --x)
2395 case "$ac_configure_args0 " in
2396 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2397 esac
2398 ;;
2399 -* ) ac_must_keep_next=true ;;
2400 esac
2401 fi
2402 as_fn_append ac_configure_args " '$ac_arg'"
2403 ;;
2404 esac
2405 done
2406 done
2407 { ac_configure_args0=; unset ac_configure_args0;}
2408 { ac_configure_args1=; unset ac_configure_args1;}
2409
2410 # When interrupted or exit'd, cleanup temporary files, and complete
2411 # config.log. We remove comments because anyway the quotes in there
2412 # would cause problems or look ugly.
2413 # WARNING: Use '\'' to represent an apostrophe within the trap.
2414 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2415 trap 'exit_status=$?
2416 # Save into config.log some information that might help in debugging.
2417 {
2418 echo
2419
2420 $as_echo "## ---------------- ##
2421 ## Cache variables. ##
2422 ## ---------------- ##"
2423 echo
2424 # The following way of writing the cache mishandles newlines in values,
2425 (
2426 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2427 eval ac_val=\$$ac_var
2428 case $ac_val in #(
2429 *${as_nl}*)
2430 case $ac_var in #(
2431 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2432 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2433 esac
2434 case $ac_var in #(
2435 _ | IFS | as_nl) ;; #(
2436 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2437 *) { eval $ac_var=; unset $ac_var;} ;;
2438 esac ;;
2439 esac
2440 done
2441 (set) 2>&1 |
2442 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2443 *${as_nl}ac_space=\ *)
2444 sed -n \
2445 "s/'\''/'\''\\\\'\'''\''/g;
2446 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2447 ;; #(
2448 *)
2449 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2450 ;;
2451 esac |
2452 sort
2453 )
2454 echo
2455
2456 $as_echo "## ----------------- ##
2457 ## Output variables. ##
2458 ## ----------------- ##"
2459 echo
2460 for ac_var in $ac_subst_vars
2461 do
2462 eval ac_val=\$$ac_var
2463 case $ac_val in
2464 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2465 esac
2466 $as_echo "$ac_var='\''$ac_val'\''"
2467 done | sort
2468 echo
2469
2470 if test -n "$ac_subst_files"; then
2471 $as_echo "## ------------------- ##
2472 ## File substitutions. ##
2473 ## ------------------- ##"
2474 echo
2475 for ac_var in $ac_subst_files
2476 do
2477 eval ac_val=\$$ac_var
2478 case $ac_val in
2479 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2480 esac
2481 $as_echo "$ac_var='\''$ac_val'\''"
2482 done | sort
2483 echo
2484 fi
2485
2486 if test -s confdefs.h; then
2487 $as_echo "## ----------- ##
2488 ## confdefs.h. ##
2489 ## ----------- ##"
2490 echo
2491 cat confdefs.h
2492 echo
2493 fi
2494 test "$ac_signal" != 0 &&
2495 $as_echo "$as_me: caught signal $ac_signal"
2496 $as_echo "$as_me: exit $exit_status"
2497 } >&5
2498 rm -f core *.core core.conftest.* &&
2499 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2500 exit $exit_status
2501 ' 0
2502 for ac_signal in 1 2 13 15; do
2503 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2504 done
2505 ac_signal=0
2506
2507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2508 rm -f -r conftest* confdefs.h
2509
2510 $as_echo "/* confdefs.h */" > confdefs.h
2511
2512 # Predefined preprocessor variables.
2513
2514 cat >>confdefs.h <<_ACEOF
2515 #define PACKAGE_NAME "$PACKAGE_NAME"
2516 _ACEOF
2517
2518 cat >>confdefs.h <<_ACEOF
2519 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2520 _ACEOF
2521
2522 cat >>confdefs.h <<_ACEOF
2523 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2524 _ACEOF
2525
2526 cat >>confdefs.h <<_ACEOF
2527 #define PACKAGE_STRING "$PACKAGE_STRING"
2528 _ACEOF
2529
2530 cat >>confdefs.h <<_ACEOF
2531 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2532 _ACEOF
2533
2534 cat >>confdefs.h <<_ACEOF
2535 #define PACKAGE_URL "$PACKAGE_URL"
2536 _ACEOF
2537
2538
2539 # Let the site file select an alternate cache file if it wants to.
2540 # Prefer an explicitly selected file to automatically selected ones.
2541 ac_site_file1=NONE
2542 ac_site_file2=NONE
2543 if test -n "$CONFIG_SITE"; then
2544 # We do not want a PATH search for config.site.
2545 case $CONFIG_SITE in #((
2546 -*) ac_site_file1=./$CONFIG_SITE;;
2547 */*) ac_site_file1=$CONFIG_SITE;;
2548 *) ac_site_file1=./$CONFIG_SITE;;
2549 esac
2550 elif test "x$prefix" != xNONE; then
2551 ac_site_file1=$prefix/share/config.site
2552 ac_site_file2=$prefix/etc/config.site
2553 else
2554 ac_site_file1=$ac_default_prefix/share/config.site
2555 ac_site_file2=$ac_default_prefix/etc/config.site
2556 fi
2557 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2558 do
2559 test "x$ac_site_file" = xNONE && continue
2560 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2562 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2563 sed 's/^/| /' "$ac_site_file" >&5
2564 . "$ac_site_file" \
2565 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2566 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2567 as_fn_error $? "failed to load site script $ac_site_file
2568 See \`config.log' for more details" "$LINENO" 5; }
2569 fi
2570 done
2571
2572 if test -r "$cache_file"; then
2573 # Some versions of bash will fail to source /dev/null (special files
2574 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2575 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2577 $as_echo "$as_me: loading cache $cache_file" >&6;}
2578 case $cache_file in
2579 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2580 *) . "./$cache_file";;
2581 esac
2582 fi
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2585 $as_echo "$as_me: creating cache $cache_file" >&6;}
2586 >$cache_file
2587 fi
2588
2589 # Check that the precious variables saved in the cache have kept the same
2590 # value.
2591 ac_cache_corrupted=false
2592 for ac_var in $ac_precious_vars; do
2593 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2594 eval ac_new_set=\$ac_env_${ac_var}_set
2595 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2596 eval ac_new_val=\$ac_env_${ac_var}_value
2597 case $ac_old_set,$ac_new_set in
2598 set,)
2599 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2600 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2601 ac_cache_corrupted=: ;;
2602 ,set)
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2604 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2605 ac_cache_corrupted=: ;;
2606 ,);;
2607 *)
2608 if test "x$ac_old_val" != "x$ac_new_val"; then
2609 # differences in whitespace do not lead to failure.
2610 ac_old_val_w=`echo x $ac_old_val`
2611 ac_new_val_w=`echo x $ac_new_val`
2612 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2614 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2615 ac_cache_corrupted=:
2616 else
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2618 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2619 eval $ac_var=\$ac_old_val
2620 fi
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2622 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2624 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2625 fi;;
2626 esac
2627 # Pass precious variables to config.status.
2628 if test "$ac_new_set" = set; then
2629 case $ac_new_val in
2630 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2631 *) ac_arg=$ac_var=$ac_new_val ;;
2632 esac
2633 case " $ac_configure_args " in
2634 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2635 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2636 esac
2637 fi
2638 done
2639 if $ac_cache_corrupted; then
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2641 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2643 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2644 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2645 fi
2646 ## -------------------- ##
2647 ## Main body of script. ##
2648 ## -------------------- ##
2649
2650 ac_ext=c
2651 ac_cpp='$CPP $CPPFLAGS'
2652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2655
2656
2657 ac_aux_dir=
2658 for ac_dir in config "$srcdir"/config; do
2659 if test -f "$ac_dir/install-sh"; then
2660 ac_aux_dir=$ac_dir
2661 ac_install_sh="$ac_aux_dir/install-sh -c"
2662 break
2663 elif test -f "$ac_dir/install.sh"; then
2664 ac_aux_dir=$ac_dir
2665 ac_install_sh="$ac_aux_dir/install.sh -c"
2666 break
2667 elif test -f "$ac_dir/shtool"; then
2668 ac_aux_dir=$ac_dir
2669 ac_install_sh="$ac_aux_dir/shtool install -c"
2670 break
2671 fi
2672 done
2673 if test -z "$ac_aux_dir"; then
2674 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2675 fi
2676
2677 # These three variables are undocumented and unsupported,
2678 # and are intended to be withdrawn in a future Autoconf release.
2679 # They can cause serious problems if a builder's source tree is in a directory
2680 # whose full name contains unusual characters.
2681 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2682 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2683 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2684
2685
2686
2687
2688 am__api_version='1.13'
2689
2690 # Find a good install program. We prefer a C program (faster),
2691 # so one script is as good as another. But avoid the broken or
2692 # incompatible versions:
2693 # SysV /etc/install, /usr/sbin/install
2694 # SunOS /usr/etc/install
2695 # IRIX /sbin/install
2696 # AIX /bin/install
2697 # AmigaOS /C/install, which installs bootblocks on floppy discs
2698 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2699 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2700 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2701 # OS/2's system install, which has a completely different semantic
2702 # ./install, which can be erroneously created by make from ./install.sh.
2703 # Reject install programs that cannot install multiple files.
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2705 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2706 if test -z "$INSTALL"; then
2707 if ${ac_cv_path_install+:} false; then :
2708 $as_echo_n "(cached) " >&6
2709 else
2710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2711 for as_dir in $PATH
2712 do
2713 IFS=$as_save_IFS
2714 test -z "$as_dir" && as_dir=.
2715 # Account for people who put trailing slashes in PATH elements.
2716 case $as_dir/ in #((
2717 ./ | .// | /[cC]/* | \
2718 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2719 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2720 /usr/ucb/* ) ;;
2721 *)
2722 # OSF1 and SCO ODT 3.0 have their own names for install.
2723 # Don't use installbsd from OSF since it installs stuff as root
2724 # by default.
2725 for ac_prog in ginstall scoinst install; do
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2728 if test $ac_prog = install &&
2729 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2730 # AIX install. It has an incompatible calling convention.
2731 :
2732 elif test $ac_prog = install &&
2733 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2734 # program-specific install script used by HP pwplus--don't use.
2735 :
2736 else
2737 rm -rf conftest.one conftest.two conftest.dir
2738 echo one > conftest.one
2739 echo two > conftest.two
2740 mkdir conftest.dir
2741 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2742 test -s conftest.one && test -s conftest.two &&
2743 test -s conftest.dir/conftest.one &&
2744 test -s conftest.dir/conftest.two
2745 then
2746 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2747 break 3
2748 fi
2749 fi
2750 fi
2751 done
2752 done
2753 ;;
2754 esac
2755
2756 done
2757 IFS=$as_save_IFS
2758
2759 rm -rf conftest.one conftest.two conftest.dir
2760
2761 fi
2762 if test "${ac_cv_path_install+set}" = set; then
2763 INSTALL=$ac_cv_path_install
2764 else
2765 # As a last resort, use the slow shell script. Don't cache a
2766 # value for INSTALL within a source directory, because that will
2767 # break other packages using the cache if that directory is
2768 # removed, or if the value is a relative name.
2769 INSTALL=$ac_install_sh
2770 fi
2771 fi
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2773 $as_echo "$INSTALL" >&6; }
2774
2775 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2776 # It thinks the first close brace ends the variable substitution.
2777 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2778
2779 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2780
2781 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2782
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2784 $as_echo_n "checking whether build environment is sane... " >&6; }
2785 # Reject unsafe characters in $srcdir or the absolute working directory
2786 # name. Accept space and tab only in the latter.
2787 am_lf='
2788 '
2789 case `pwd` in
2790 *[\\\"\#\$\&\'\`$am_lf]*)
2791 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2792 esac
2793 case $srcdir in
2794 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2795 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2796 esac
2797
2798 # Do 'set' in a subshell so we don't clobber the current shell's
2799 # arguments. Must try -L first in case configure is actually a
2800 # symlink; some systems play weird games with the mod time of symlinks
2801 # (eg FreeBSD returns the mod time of the symlink's containing
2802 # directory).
2803 if (
2804 am_has_slept=no
2805 for am_try in 1 2; do
2806 echo "timestamp, slept: $am_has_slept" > conftest.file
2807 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2808 if test "$*" = "X"; then
2809 # -L didn't work.
2810 set X `ls -t "$srcdir/configure" conftest.file`
2811 fi
2812 if test "$*" != "X $srcdir/configure conftest.file" \
2813 && test "$*" != "X conftest.file $srcdir/configure"; then
2814
2815 # If neither matched, then we have a broken ls. This can happen
2816 # if, for instance, CONFIG_SHELL is bash and it inherits a
2817 # broken ls alias from the environment. This has actually
2818 # happened. Such a system could not be considered "sane".
2819 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2820 alias in your environment" "$LINENO" 5
2821 fi
2822 if test "$2" = conftest.file || test $am_try -eq 2; then
2823 break
2824 fi
2825 # Just in case.
2826 sleep 1
2827 am_has_slept=yes
2828 done
2829 test "$2" = conftest.file
2830 )
2831 then
2832 # Ok.
2833 :
2834 else
2835 as_fn_error $? "newly created file is older than distributed files!
2836 Check your system clock" "$LINENO" 5
2837 fi
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2839 $as_echo "yes" >&6; }
2840 # If we didn't sleep, we still need to ensure time stamps of config.status and
2841 # generated files are strictly newer.
2842 am_sleep_pid=
2843 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2844 ( sleep 1 ) &
2845 am_sleep_pid=$!
2846 fi
2847
2848 rm -f conftest.file
2849
2850 test "$program_prefix" != NONE &&
2851 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2852 # Use a double $ so make ignores it.
2853 test "$program_suffix" != NONE &&
2854 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2855 # Double any \ or $.
2856 # By default was `s,x,x', remove it if useless.
2857 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2858 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2859
2860 # expand $ac_aux_dir to an absolute path
2861 am_aux_dir=`cd $ac_aux_dir && pwd`
2862
2863 if test x"${MISSING+set}" != xset; then
2864 case $am_aux_dir in
2865 *\ * | *\ *)
2866 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2867 *)
2868 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2869 esac
2870 fi
2871 # Use eval to expand $SHELL
2872 if eval "$MISSING --is-lightweight"; then
2873 am_missing_run="$MISSING "
2874 else
2875 am_missing_run=
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2877 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2878 fi
2879
2880 if test x"${install_sh}" != xset; then
2881 case $am_aux_dir in
2882 *\ * | *\ *)
2883 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2884 *)
2885 install_sh="\${SHELL} $am_aux_dir/install-sh"
2886 esac
2887 fi
2888
2889 # Installed binaries are usually stripped using 'strip' when the user
2890 # run "make install-strip". However 'strip' might not be the right
2891 # tool to use in cross-compilation environments, therefore Automake
2892 # will honor the 'STRIP' environment variable to overrule this program.
2893 if test "$cross_compiling" != no; then
2894 if test -n "$ac_tool_prefix"; then
2895 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2896 set dummy ${ac_tool_prefix}strip; ac_word=$2
2897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2898 $as_echo_n "checking for $ac_word... " >&6; }
2899 if ${ac_cv_prog_STRIP+:} false; then :
2900 $as_echo_n "(cached) " >&6
2901 else
2902 if test -n "$STRIP"; then
2903 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2904 else
2905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2906 for as_dir in $PATH
2907 do
2908 IFS=$as_save_IFS
2909 test -z "$as_dir" && as_dir=.
2910 for ac_exec_ext in '' $ac_executable_extensions; do
2911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2912 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2914 break 2
2915 fi
2916 done
2917 done
2918 IFS=$as_save_IFS
2919
2920 fi
2921 fi
2922 STRIP=$ac_cv_prog_STRIP
2923 if test -n "$STRIP"; then
2924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2925 $as_echo "$STRIP" >&6; }
2926 else
2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2928 $as_echo "no" >&6; }
2929 fi
2930
2931
2932 fi
2933 if test -z "$ac_cv_prog_STRIP"; then
2934 ac_ct_STRIP=$STRIP
2935 # Extract the first word of "strip", so it can be a program name with args.
2936 set dummy strip; ac_word=$2
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2938 $as_echo_n "checking for $ac_word... " >&6; }
2939 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2940 $as_echo_n "(cached) " >&6
2941 else
2942 if test -n "$ac_ct_STRIP"; then
2943 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2944 else
2945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2946 for as_dir in $PATH
2947 do
2948 IFS=$as_save_IFS
2949 test -z "$as_dir" && as_dir=.
2950 for ac_exec_ext in '' $ac_executable_extensions; do
2951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2952 ac_cv_prog_ac_ct_STRIP="strip"
2953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2954 break 2
2955 fi
2956 done
2957 done
2958 IFS=$as_save_IFS
2959
2960 fi
2961 fi
2962 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2963 if test -n "$ac_ct_STRIP"; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2965 $as_echo "$ac_ct_STRIP" >&6; }
2966 else
2967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2968 $as_echo "no" >&6; }
2969 fi
2970
2971 if test "x$ac_ct_STRIP" = x; then
2972 STRIP=":"
2973 else
2974 case $cross_compiling:$ac_tool_warned in
2975 yes:)
2976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2977 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2978 ac_tool_warned=yes ;;
2979 esac
2980 STRIP=$ac_ct_STRIP
2981 fi
2982 else
2983 STRIP="$ac_cv_prog_STRIP"
2984 fi
2985
2986 fi
2987 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2988
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2990 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2991 if test -z "$MKDIR_P"; then
2992 if ${ac_cv_path_mkdir+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2996 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2997 do
2998 IFS=$as_save_IFS
2999 test -z "$as_dir" && as_dir=.
3000 for ac_prog in mkdir gmkdir; do
3001 for ac_exec_ext in '' $ac_executable_extensions; do
3002 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3003 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3004 'mkdir (GNU coreutils) '* | \
3005 'mkdir (coreutils) '* | \
3006 'mkdir (fileutils) '4.1*)
3007 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3008 break 3;;
3009 esac
3010 done
3011 done
3012 done
3013 IFS=$as_save_IFS
3014
3015 fi
3016
3017 test -d ./--version && rmdir ./--version
3018 if test "${ac_cv_path_mkdir+set}" = set; then
3019 MKDIR_P="$ac_cv_path_mkdir -p"
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for MKDIR_P within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 MKDIR_P="$ac_install_sh -d"
3026 fi
3027 fi
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3029 $as_echo "$MKDIR_P" >&6; }
3030
3031 for ac_prog in gawk mawk nawk awk
3032 do
3033 # Extract the first word of "$ac_prog", so it can be a program name with args.
3034 set dummy $ac_prog; ac_word=$2
3035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3036 $as_echo_n "checking for $ac_word... " >&6; }
3037 if ${ac_cv_prog_AWK+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$AWK"; then
3041 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3042 else
3043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3044 for as_dir in $PATH
3045 do
3046 IFS=$as_save_IFS
3047 test -z "$as_dir" && as_dir=.
3048 for ac_exec_ext in '' $ac_executable_extensions; do
3049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3050 ac_cv_prog_AWK="$ac_prog"
3051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3052 break 2
3053 fi
3054 done
3055 done
3056 IFS=$as_save_IFS
3057
3058 fi
3059 fi
3060 AWK=$ac_cv_prog_AWK
3061 if test -n "$AWK"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3063 $as_echo "$AWK" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069
3070 test -n "$AWK" && break
3071 done
3072
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3074 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3075 set x ${MAKE-make}
3076 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3077 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3078 $as_echo_n "(cached) " >&6
3079 else
3080 cat >conftest.make <<\_ACEOF
3081 SHELL = /bin/sh
3082 all:
3083 @echo '@@@%%%=$(MAKE)=@@@%%%'
3084 _ACEOF
3085 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3086 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3087 *@@@%%%=?*=@@@%%%*)
3088 eval ac_cv_prog_make_${ac_make}_set=yes;;
3089 *)
3090 eval ac_cv_prog_make_${ac_make}_set=no;;
3091 esac
3092 rm -f conftest.make
3093 fi
3094 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3096 $as_echo "yes" >&6; }
3097 SET_MAKE=
3098 else
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3100 $as_echo "no" >&6; }
3101 SET_MAKE="MAKE=${MAKE-make}"
3102 fi
3103
3104 rm -rf .tst 2>/dev/null
3105 mkdir .tst 2>/dev/null
3106 if test -d .tst; then
3107 am__leading_dot=.
3108 else
3109 am__leading_dot=_
3110 fi
3111 rmdir .tst 2>/dev/null
3112
3113 # Check whether --enable-silent-rules was given.
3114 if test "${enable_silent_rules+set}" = set; then :
3115 enableval=$enable_silent_rules;
3116 fi
3117
3118 case $enable_silent_rules in # (((
3119 yes) AM_DEFAULT_VERBOSITY=0;;
3120 no) AM_DEFAULT_VERBOSITY=1;;
3121 *) AM_DEFAULT_VERBOSITY=1;;
3122 esac
3123 am_make=${MAKE-make}
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3125 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3126 if ${am_cv_make_support_nested_variables+:} false; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if $as_echo 'TRUE=$(BAR$(V))
3130 BAR0=false
3131 BAR1=true
3132 V=1
3133 am__doit:
3134 @$(TRUE)
3135 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3136 am_cv_make_support_nested_variables=yes
3137 else
3138 am_cv_make_support_nested_variables=no
3139 fi
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3142 $as_echo "$am_cv_make_support_nested_variables" >&6; }
3143 if test $am_cv_make_support_nested_variables = yes; then
3144 AM_V='$(V)'
3145 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3146 else
3147 AM_V=$AM_DEFAULT_VERBOSITY
3148 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3149 fi
3150 AM_BACKSLASH='\'
3151
3152 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3153 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3154 # is not polluted with repeated "-I."
3155 am__isrc=' -I$(srcdir)'
3156 # test to see if srcdir already configured
3157 if test -f $srcdir/config.status; then
3158 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3159 fi
3160 fi
3161
3162 # test whether we have cygpath
3163 if test -z "$CYGPATH_W"; then
3164 if (cygpath --version) >/dev/null 2>/dev/null; then
3165 CYGPATH_W='cygpath -w'
3166 else
3167 CYGPATH_W=echo
3168 fi
3169 fi
3170
3171
3172 # Define the identity of the package.
3173 PACKAGE='hdf-eos5'
3174 VERSION='2.0'
3175
3176
3177 cat >>confdefs.h <<_ACEOF
3178 #define PACKAGE "$PACKAGE"
3179 _ACEOF
3180
3181
3182 cat >>confdefs.h <<_ACEOF
3183 #define VERSION "$VERSION"
3184 _ACEOF
3185
3186 # Some tools Automake needs.
3187
3188 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3189
3190
3191 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3192
3193
3194 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3195
3196
3197 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3198
3199
3200 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3201
3202 # For better backward compatibility. To be removed once Automake 1.9.x
3203 # dies out for good. For more background, see:
3204 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3205 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3206 mkdir_p='$(MKDIR_P)'
3207
3208 # We need awk for the "check" target. The system "awk" is bad on
3209 # some platforms.
3210 # Always define AMTAR for backward compatibility. Yes, it's still used
3211 # in the wild :-( We should find a proper way to deprecate it ...
3212 AMTAR='$${TAR-tar}'
3213
3214
3215 # We'll loop over all known methods to create a tar archive until one works.
3216 _am_tools='gnutar pax cpio none'
3217
3218 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3219
3220
3221
3222
3223
3224
3225
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3227 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3228 # Check whether --enable-maintainer-mode was given.
3229 if test "${enable_maintainer_mode+set}" = set; then :
3230 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3231 else
3232 USE_MAINTAINER_MODE=no
3233 fi
3234
3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3236 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3237 if test $USE_MAINTAINER_MODE = yes; then
3238 MAINTAINER_MODE_TRUE=
3239 MAINTAINER_MODE_FALSE='#'
3240 else
3241 MAINTAINER_MODE_TRUE='#'
3242 MAINTAINER_MODE_FALSE=
3243 fi
3244
3245 MAINT=$MAINTAINER_MODE_TRUE
3246
3247
3248
3249 ## Note we disable shared libraries otherwise gfortran fails linking against the resulting
3250 ## libX.la files. With shared libraries disables, libtool links gfortran against the static
3251 ## library libX.a. If fortran is disabled, this can be overridden using --enabled-shared
3252 ## with configure
3253
3254 # Check whether --enable-shared was given.
3255 if test "${enable_shared+set}" = set; then :
3256 enableval=$enable_shared; p=${PACKAGE-default}
3257 case $enableval in
3258 yes) enable_shared=yes ;;
3259 no) enable_shared=no ;;
3260 *)
3261 enable_shared=no
3262 # Look at the argument we got. We use all the common list separators.
3263 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3264 for pkg in $enableval; do
3265 IFS="$lt_save_ifs"
3266 if test "X$pkg" = "X$p"; then
3267 enable_shared=yes
3268 fi
3269 done
3270 IFS="$lt_save_ifs"
3271 ;;
3272 esac
3273 else
3274 enable_shared=no
3275 fi
3276
3277
3278
3279
3280
3281
3282
3283
3284
3285 case `pwd` in
3286 *\ * | *\ *)
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3288 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3289 esac
3290
3291
3292
3293 macro_version='2.4.2'
3294 macro_revision='1.3337'
3295
3296
3297
3298
3299
3300
3301
3302
3303
3304
3305
3306
3307
3308 ltmain="$ac_aux_dir/ltmain.sh"
3309
3310 # Make sure we can run config.sub.
3311 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3312 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3313
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3315 $as_echo_n "checking build system type... " >&6; }
3316 if ${ac_cv_build+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 ac_build_alias=$build_alias
3320 test "x$ac_build_alias" = x &&
3321 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3322 test "x$ac_build_alias" = x &&
3323 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3324 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3325 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3326
3327 fi
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3329 $as_echo "$ac_cv_build" >&6; }
3330 case $ac_cv_build in
3331 *-*-*) ;;
3332 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3333 esac
3334 build=$ac_cv_build
3335 ac_save_IFS=$IFS; IFS='-'
3336 set x $ac_cv_build
3337 shift
3338 build_cpu=$1
3339 build_vendor=$2
3340 shift; shift
3341 # Remember, the first character of IFS is used to create $*,
3342 # except with old shells:
3343 build_os=$*
3344 IFS=$ac_save_IFS
3345 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3346
3347
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3349 $as_echo_n "checking host system type... " >&6; }
3350 if ${ac_cv_host+:} false; then :
3351 $as_echo_n "(cached) " >&6
3352 else
3353 if test "x$host_alias" = x; then
3354 ac_cv_host=$ac_cv_build
3355 else
3356 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3357 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3358 fi
3359
3360 fi
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3362 $as_echo "$ac_cv_host" >&6; }
3363 case $ac_cv_host in
3364 *-*-*) ;;
3365 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3366 esac
3367 host=$ac_cv_host
3368 ac_save_IFS=$IFS; IFS='-'
3369 set x $ac_cv_host
3370 shift
3371 host_cpu=$1
3372 host_vendor=$2
3373 shift; shift
3374 # Remember, the first character of IFS is used to create $*,
3375 # except with old shells:
3376 host_os=$*
3377 IFS=$ac_save_IFS
3378 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3379
3380
3381 # Backslashify metacharacters that are still active within
3382 # double-quoted strings.
3383 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3384
3385 # Same as above, but do not quote variable references.
3386 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3387
3388 # Sed substitution to delay expansion of an escaped shell variable in a
3389 # double_quote_subst'ed string.
3390 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3391
3392 # Sed substitution to delay expansion of an escaped single quote.
3393 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3394
3395 # Sed substitution to avoid accidental globbing in evaled expressions
3396 no_glob_subst='s/\*/\\\*/g'
3397
3398 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3399 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3400 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3401
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3403 $as_echo_n "checking how to print strings... " >&6; }
3404 # Test print first, because it will be a builtin if present.
3405 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3406 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3407 ECHO='print -r --'
3408 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3409 ECHO='printf %s\n'
3410 else
3411 # Use this function as a fallback that always works.
3412 func_fallback_echo ()
3413 {
3414 eval 'cat <<_LTECHO_EOF
3415 $1
3416 _LTECHO_EOF'
3417 }
3418 ECHO='func_fallback_echo'
3419 fi
3420
3421 # func_echo_all arg...
3422 # Invoke $ECHO with all args, space-separated.
3423 func_echo_all ()
3424 {
3425 $ECHO ""
3426 }
3427
3428 case "$ECHO" in
3429 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3430 $as_echo "printf" >&6; } ;;
3431 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3432 $as_echo "print -r" >&6; } ;;
3433 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3434 $as_echo "cat" >&6; } ;;
3435 esac
3436
3437
3438
3439
3440
3441
3442
3443
3444
3445
3446
3447
3448
3449
3450 DEPDIR="${am__leading_dot}deps"
3451
3452 ac_config_commands="$ac_config_commands depfiles"
3453
3454
3455 am_make=${MAKE-make}
3456 cat > confinc << 'END'
3457 am__doit:
3458 @echo this is the am__doit target
3459 .PHONY: am__doit
3460 END
3461 # If we don't find an include directive, just comment out the code.
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3463 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3464 am__include="#"
3465 am__quote=
3466 _am_result=none
3467 # First try GNU make style include.
3468 echo "include confinc" > confmf
3469 # Ignore all kinds of additional output from 'make'.
3470 case `$am_make -s -f confmf 2> /dev/null` in #(
3471 *the\ am__doit\ target*)
3472 am__include=include
3473 am__quote=
3474 _am_result=GNU
3475 ;;
3476 esac
3477 # Now try BSD make style include.
3478 if test "$am__include" = "#"; then
3479 echo '.include "confinc"' > confmf
3480 case `$am_make -s -f confmf 2> /dev/null` in #(
3481 *the\ am__doit\ target*)
3482 am__include=.include
3483 am__quote="\""
3484 _am_result=BSD
3485 ;;
3486 esac
3487 fi
3488
3489
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3491 $as_echo "$_am_result" >&6; }
3492 rm -f confinc confmf
3493
3494 # Check whether --enable-dependency-tracking was given.
3495 if test "${enable_dependency_tracking+set}" = set; then :
3496 enableval=$enable_dependency_tracking;
3497 fi
3498
3499 if test "x$enable_dependency_tracking" != xno; then
3500 am_depcomp="$ac_aux_dir/depcomp"
3501 AMDEPBACKSLASH='\'
3502 am__nodep='_no'
3503 fi
3504 if test "x$enable_dependency_tracking" != xno; then
3505 AMDEP_TRUE=
3506 AMDEP_FALSE='#'
3507 else
3508 AMDEP_TRUE='#'
3509 AMDEP_FALSE=
3510 fi
3511
3512
3513 ac_ext=c
3514 ac_cpp='$CPP $CPPFLAGS'
3515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3518 if test -n "$ac_tool_prefix"; then
3519 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3520 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3522 $as_echo_n "checking for $ac_word... " >&6; }
3523 if ${ac_cv_prog_CC+:} false; then :
3524 $as_echo_n "(cached) " >&6
3525 else
3526 if test -n "$CC"; then
3527 ac_cv_prog_CC="$CC" # Let the user override the test.
3528 else
3529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3530 for as_dir in $PATH
3531 do
3532 IFS=$as_save_IFS
3533 test -z "$as_dir" && as_dir=.
3534 for ac_exec_ext in '' $ac_executable_extensions; do
3535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3536 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3538 break 2
3539 fi
3540 done
3541 done
3542 IFS=$as_save_IFS
3543
3544 fi
3545 fi
3546 CC=$ac_cv_prog_CC
3547 if test -n "$CC"; then
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3549 $as_echo "$CC" >&6; }
3550 else
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3552 $as_echo "no" >&6; }
3553 fi
3554
3555
3556 fi
3557 if test -z "$ac_cv_prog_CC"; then
3558 ac_ct_CC=$CC
3559 # Extract the first word of "gcc", so it can be a program name with args.
3560 set dummy gcc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$ac_ct_CC"; then
3567 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3571 do
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3576 ac_cv_prog_ac_ct_CC="gcc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3579 fi
3580 done
3581 done
3582 IFS=$as_save_IFS
3583
3584 fi
3585 fi
3586 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3587 if test -n "$ac_ct_CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3589 $as_echo "$ac_ct_CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3593 fi
3594
3595 if test "x$ac_ct_CC" = x; then
3596 CC=""
3597 else
3598 case $cross_compiling:$ac_tool_warned in
3599 yes:)
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3601 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3602 ac_tool_warned=yes ;;
3603 esac
3604 CC=$ac_ct_CC
3605 fi
3606 else
3607 CC="$ac_cv_prog_CC"
3608 fi
3609
3610 if test -z "$CC"; then
3611 if test -n "$ac_tool_prefix"; then
3612 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3613 set dummy ${ac_tool_prefix}cc; ac_word=$2
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3615 $as_echo_n "checking for $ac_word... " >&6; }
3616 if ${ac_cv_prog_CC+:} false; then :
3617 $as_echo_n "(cached) " >&6
3618 else
3619 if test -n "$CC"; then
3620 ac_cv_prog_CC="$CC" # Let the user override the test.
3621 else
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH
3624 do
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_exec_ext in '' $ac_executable_extensions; do
3628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3629 ac_cv_prog_CC="${ac_tool_prefix}cc"
3630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3631 break 2
3632 fi
3633 done
3634 done
3635 IFS=$as_save_IFS
3636
3637 fi
3638 fi
3639 CC=$ac_cv_prog_CC
3640 if test -n "$CC"; then
3641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3642 $as_echo "$CC" >&6; }
3643 else
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3645 $as_echo "no" >&6; }
3646 fi
3647
3648
3649 fi
3650 fi
3651 if test -z "$CC"; then
3652 # Extract the first word of "cc", so it can be a program name with args.
3653 set dummy cc; ac_word=$2
3654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3655 $as_echo_n "checking for $ac_word... " >&6; }
3656 if ${ac_cv_prog_CC+:} false; then :
3657 $as_echo_n "(cached) " >&6
3658 else
3659 if test -n "$CC"; then
3660 ac_cv_prog_CC="$CC" # Let the user override the test.
3661 else
3662 ac_prog_rejected=no
3663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3664 for as_dir in $PATH
3665 do
3666 IFS=$as_save_IFS
3667 test -z "$as_dir" && as_dir=.
3668 for ac_exec_ext in '' $ac_executable_extensions; do
3669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3670 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3671 ac_prog_rejected=yes
3672 continue
3673 fi
3674 ac_cv_prog_CC="cc"
3675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3676 break 2
3677 fi
3678 done
3679 done
3680 IFS=$as_save_IFS
3681
3682 if test $ac_prog_rejected = yes; then
3683 # We found a bogon in the path, so make sure we never use it.
3684 set dummy $ac_cv_prog_CC
3685 shift
3686 if test $# != 0; then
3687 # We chose a different compiler from the bogus one.
3688 # However, it has the same basename, so the bogon will be chosen
3689 # first if we set CC to just the basename; use the full file name.
3690 shift
3691 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3692 fi
3693 fi
3694 fi
3695 fi
3696 CC=$ac_cv_prog_CC
3697 if test -n "$CC"; then
3698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3699 $as_echo "$CC" >&6; }
3700 else
3701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3702 $as_echo "no" >&6; }
3703 fi
3704
3705
3706 fi
3707 if test -z "$CC"; then
3708 if test -n "$ac_tool_prefix"; then
3709 for ac_prog in cl.exe
3710 do
3711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3714 $as_echo_n "checking for $ac_word... " >&6; }
3715 if ${ac_cv_prog_CC+:} false; then :
3716 $as_echo_n "(cached) " >&6
3717 else
3718 if test -n "$CC"; then
3719 ac_cv_prog_CC="$CC" # Let the user override the test.
3720 else
3721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722 for as_dir in $PATH
3723 do
3724 IFS=$as_save_IFS
3725 test -z "$as_dir" && as_dir=.
3726 for ac_exec_ext in '' $ac_executable_extensions; do
3727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3728 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730 break 2
3731 fi
3732 done
3733 done
3734 IFS=$as_save_IFS
3735
3736 fi
3737 fi
3738 CC=$ac_cv_prog_CC
3739 if test -n "$CC"; then
3740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3741 $as_echo "$CC" >&6; }
3742 else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3744 $as_echo "no" >&6; }
3745 fi
3746
3747
3748 test -n "$CC" && break
3749 done
3750 fi
3751 if test -z "$CC"; then
3752 ac_ct_CC=$CC
3753 for ac_prog in cl.exe
3754 do
3755 # Extract the first word of "$ac_prog", so it can be a program name with args.
3756 set dummy $ac_prog; ac_word=$2
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3758 $as_echo_n "checking for $ac_word... " >&6; }
3759 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3760 $as_echo_n "(cached) " >&6
3761 else
3762 if test -n "$ac_ct_CC"; then
3763 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3764 else
3765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766 for as_dir in $PATH
3767 do
3768 IFS=$as_save_IFS
3769 test -z "$as_dir" && as_dir=.
3770 for ac_exec_ext in '' $ac_executable_extensions; do
3771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3772 ac_cv_prog_ac_ct_CC="$ac_prog"
3773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774 break 2
3775 fi
3776 done
3777 done
3778 IFS=$as_save_IFS
3779
3780 fi
3781 fi
3782 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3783 if test -n "$ac_ct_CC"; then
3784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3785 $as_echo "$ac_ct_CC" >&6; }
3786 else
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3788 $as_echo "no" >&6; }
3789 fi
3790
3791
3792 test -n "$ac_ct_CC" && break
3793 done
3794
3795 if test "x$ac_ct_CC" = x; then
3796 CC=""
3797 else
3798 case $cross_compiling:$ac_tool_warned in
3799 yes:)
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3802 ac_tool_warned=yes ;;
3803 esac
3804 CC=$ac_ct_CC
3805 fi
3806 fi
3807
3808 fi
3809
3810
3811 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3812 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3813 as_fn_error $? "no acceptable C compiler found in \$PATH
3814 See \`config.log' for more details" "$LINENO" 5; }
3815
3816 # Provide some information about the compiler.
3817 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3818 set X $ac_compile
3819 ac_compiler=$2
3820 for ac_option in --version -v -V -qversion; do
3821 { { ac_try="$ac_compiler $ac_option >&5"
3822 case "(($ac_try" in
3823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3824 *) ac_try_echo=$ac_try;;
3825 esac
3826 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3827 $as_echo "$ac_try_echo"; } >&5
3828 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3829 ac_status=$?
3830 if test -s conftest.err; then
3831 sed '10a\
3832 ... rest of stderr output deleted ...
3833 10q' conftest.err >conftest.er1
3834 cat conftest.er1 >&5
3835 fi
3836 rm -f conftest.er1 conftest.err
3837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3838 test $ac_status = 0; }
3839 done
3840
3841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3842 /* end confdefs.h. */
3843
3844 int
3845 main ()
3846 {
3847
3848 ;
3849 return 0;
3850 }
3851 _ACEOF
3852 ac_clean_files_save=$ac_clean_files
3853 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3854 # Try to create an executable without -o first, disregard a.out.
3855 # It will help us diagnose broken compilers, and finding out an intuition
3856 # of exeext.
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3858 $as_echo_n "checking whether the C compiler works... " >&6; }
3859 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3860
3861 # The possible output files:
3862 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3863
3864 ac_rmfiles=
3865 for ac_file in $ac_files
3866 do
3867 case $ac_file in
3868 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3869 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3870 esac
3871 done
3872 rm -f $ac_rmfiles
3873
3874 if { { ac_try="$ac_link_default"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link_default") 2>&5
3882 ac_status=$?
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }; then :
3885 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3886 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3887 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3888 # so that the user can short-circuit this test for compilers unknown to
3889 # Autoconf.
3890 for ac_file in $ac_files ''
3891 do
3892 test -f "$ac_file" || continue
3893 case $ac_file in
3894 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3895 ;;
3896 [ab].out )
3897 # We found the default executable, but exeext='' is most
3898 # certainly right.
3899 break;;
3900 *.* )
3901 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3902 then :; else
3903 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3904 fi
3905 # We set ac_cv_exeext here because the later test for it is not
3906 # safe: cross compilers may not add the suffix if given an `-o'
3907 # argument, so we may need to know it at that point already.
3908 # Even if this section looks crufty: it has the advantage of
3909 # actually working.
3910 break;;
3911 * )
3912 break;;
3913 esac
3914 done
3915 test "$ac_cv_exeext" = no && ac_cv_exeext=
3916
3917 else
3918 ac_file=''
3919 fi
3920 if test -z "$ac_file"; then :
3921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3922 $as_echo "no" >&6; }
3923 $as_echo "$as_me: failed program was:" >&5
3924 sed 's/^/| /' conftest.$ac_ext >&5
3925
3926 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3927 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3928 as_fn_error 77 "C compiler cannot create executables
3929 See \`config.log' for more details" "$LINENO" 5; }
3930 else
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3932 $as_echo "yes" >&6; }
3933 fi
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3935 $as_echo_n "checking for C compiler default output file name... " >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3937 $as_echo "$ac_file" >&6; }
3938 ac_exeext=$ac_cv_exeext
3939
3940 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3941 ac_clean_files=$ac_clean_files_save
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3943 $as_echo_n "checking for suffix of executables... " >&6; }
3944 if { { ac_try="$ac_link"
3945 case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3950 $as_echo "$ac_try_echo"; } >&5
3951 (eval "$ac_link") 2>&5
3952 ac_status=$?
3953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3954 test $ac_status = 0; }; then :
3955 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3956 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3957 # work properly (i.e., refer to `conftest.exe'), while it won't with
3958 # `rm'.
3959 for ac_file in conftest.exe conftest conftest.*; do
3960 test -f "$ac_file" || continue
3961 case $ac_file in
3962 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3963 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3964 break;;
3965 * ) break;;
3966 esac
3967 done
3968 else
3969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3970 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3971 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3972 See \`config.log' for more details" "$LINENO" 5; }
3973 fi
3974 rm -f conftest conftest$ac_cv_exeext
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3976 $as_echo "$ac_cv_exeext" >&6; }
3977
3978 rm -f conftest.$ac_ext
3979 EXEEXT=$ac_cv_exeext
3980 ac_exeext=$EXEEXT
3981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3982 /* end confdefs.h. */
3983 #include <stdio.h>
3984 int
3985 main ()
3986 {
3987 FILE *f = fopen ("conftest.out", "w");
3988 return ferror (f) || fclose (f) != 0;
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 ac_clean_files="$ac_clean_files conftest.out"
3995 # Check that the compiler produces executables we can run. If not, either
3996 # the compiler is broken, or we cross compile.
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3998 $as_echo_n "checking whether we are cross compiling... " >&6; }
3999 if test "$cross_compiling" != yes; then
4000 { { ac_try="$ac_link"
4001 case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_link") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }
4011 if { ac_try='./conftest$ac_cv_exeext'
4012 { { case "(($ac_try" in
4013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4014 *) ac_try_echo=$ac_try;;
4015 esac
4016 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4017 $as_echo "$ac_try_echo"; } >&5
4018 (eval "$ac_try") 2>&5
4019 ac_status=$?
4020 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4021 test $ac_status = 0; }; }; then
4022 cross_compiling=no
4023 else
4024 if test "$cross_compiling" = maybe; then
4025 cross_compiling=yes
4026 else
4027 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4028 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4029 as_fn_error $? "cannot run C compiled programs.
4030 If you meant to cross compile, use \`--host'.
4031 See \`config.log' for more details" "$LINENO" 5; }
4032 fi
4033 fi
4034 fi
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4036 $as_echo "$cross_compiling" >&6; }
4037
4038 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4039 ac_clean_files=$ac_clean_files_save
4040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4041 $as_echo_n "checking for suffix of object files... " >&6; }
4042 if ${ac_cv_objext+:} false; then :
4043 $as_echo_n "(cached) " >&6
4044 else
4045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4046 /* end confdefs.h. */
4047
4048 int
4049 main ()
4050 {
4051
4052 ;
4053 return 0;
4054 }
4055 _ACEOF
4056 rm -f conftest.o conftest.obj
4057 if { { ac_try="$ac_compile"
4058 case "(($ac_try" in
4059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4060 *) ac_try_echo=$ac_try;;
4061 esac
4062 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4063 $as_echo "$ac_try_echo"; } >&5
4064 (eval "$ac_compile") 2>&5
4065 ac_status=$?
4066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4067 test $ac_status = 0; }; then :
4068 for ac_file in conftest.o conftest.obj conftest.*; do
4069 test -f "$ac_file" || continue;
4070 case $ac_file in
4071 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4072 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4073 break;;
4074 esac
4075 done
4076 else
4077 $as_echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4081 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4082 as_fn_error $? "cannot compute suffix of object files: cannot compile
4083 See \`config.log' for more details" "$LINENO" 5; }
4084 fi
4085 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4086 fi
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4088 $as_echo "$ac_cv_objext" >&6; }
4089 OBJEXT=$ac_cv_objext
4090 ac_objext=$OBJEXT
4091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4092 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4093 if ${ac_cv_c_compiler_gnu+:} false; then :
4094 $as_echo_n "(cached) " >&6
4095 else
4096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4097 /* end confdefs.h. */
4098
4099 int
4100 main ()
4101 {
4102 #ifndef __GNUC__
4103 choke me
4104 #endif
4105
4106 ;
4107 return 0;
4108 }
4109 _ACEOF
4110 if ac_fn_c_try_compile "$LINENO"; then :
4111 ac_compiler_gnu=yes
4112 else
4113 ac_compiler_gnu=no
4114 fi
4115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4116 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4117
4118 fi
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4120 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4121 if test $ac_compiler_gnu = yes; then
4122 GCC=yes
4123 else
4124 GCC=
4125 fi
4126 ac_test_CFLAGS=${CFLAGS+set}
4127 ac_save_CFLAGS=$CFLAGS
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4129 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4130 if ${ac_cv_prog_cc_g+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 ac_save_c_werror_flag=$ac_c_werror_flag
4134 ac_c_werror_flag=yes
4135 ac_cv_prog_cc_g=no
4136 CFLAGS="-g"
4137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4138 /* end confdefs.h. */
4139
4140 int
4141 main ()
4142 {
4143
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 if ac_fn_c_try_compile "$LINENO"; then :
4149 ac_cv_prog_cc_g=yes
4150 else
4151 CFLAGS=""
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4154
4155 int
4156 main ()
4157 {
4158
4159 ;
4160 return 0;
4161 }
4162 _ACEOF
4163 if ac_fn_c_try_compile "$LINENO"; then :
4164
4165 else
4166 ac_c_werror_flag=$ac_save_c_werror_flag
4167 CFLAGS="-g"
4168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4169 /* end confdefs.h. */
4170
4171 int
4172 main ()
4173 {
4174
4175 ;
4176 return 0;
4177 }
4178 _ACEOF
4179 if ac_fn_c_try_compile "$LINENO"; then :
4180 ac_cv_prog_cc_g=yes
4181 fi
4182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4183 fi
4184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4185 fi
4186 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187 ac_c_werror_flag=$ac_save_c_werror_flag
4188 fi
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4190 $as_echo "$ac_cv_prog_cc_g" >&6; }
4191 if test "$ac_test_CFLAGS" = set; then
4192 CFLAGS=$ac_save_CFLAGS
4193 elif test $ac_cv_prog_cc_g = yes; then
4194 if test "$GCC" = yes; then
4195 CFLAGS="-g -O2"
4196 else
4197 CFLAGS="-g"
4198 fi
4199 else
4200 if test "$GCC" = yes; then
4201 CFLAGS="-O2"
4202 else
4203 CFLAGS=
4204 fi
4205 fi
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4207 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4208 if ${ac_cv_prog_cc_c89+:} false; then :
4209 $as_echo_n "(cached) " >&6
4210 else
4211 ac_cv_prog_cc_c89=no
4212 ac_save_CC=$CC
4213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4214 /* end confdefs.h. */
4215 #include <stdarg.h>
4216 #include <stdio.h>
4217 struct stat;
4218 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4219 struct buf { int x; };
4220 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4221 static char *e (p, i)
4222 char **p;
4223 int i;
4224 {
4225 return p[i];
4226 }
4227 static char *f (char * (*g) (char **, int), char **p, ...)
4228 {
4229 char *s;
4230 va_list v;
4231 va_start (v,p);
4232 s = g (p, va_arg (v,int));
4233 va_end (v);
4234 return s;
4235 }
4236
4237 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4238 function prototypes and stuff, but not '\xHH' hex character constants.
4239 These don't provoke an error unfortunately, instead are silently treated
4240 as 'x'. The following induces an error, until -std is added to get
4241 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4242 array size at least. It's necessary to write '\x00'==0 to get something
4243 that's true only with -std. */
4244 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4245
4246 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4247 inside strings and character constants. */
4248 #define FOO(x) 'x'
4249 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4250
4251 int test (int i, double x);
4252 struct s1 {int (*f) (int a);};
4253 struct s2 {int (*f) (double a);};
4254 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4255 int argc;
4256 char **argv;
4257 int
4258 main ()
4259 {
4260 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4261 ;
4262 return 0;
4263 }
4264 _ACEOF
4265 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4266 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4267 do
4268 CC="$ac_save_CC $ac_arg"
4269 if ac_fn_c_try_compile "$LINENO"; then :
4270 ac_cv_prog_cc_c89=$ac_arg
4271 fi
4272 rm -f core conftest.err conftest.$ac_objext
4273 test "x$ac_cv_prog_cc_c89" != "xno" && break
4274 done
4275 rm -f conftest.$ac_ext
4276 CC=$ac_save_CC
4277
4278 fi
4279 # AC_CACHE_VAL
4280 case "x$ac_cv_prog_cc_c89" in
4281 x)
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4283 $as_echo "none needed" >&6; } ;;
4284 xno)
4285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4286 $as_echo "unsupported" >&6; } ;;
4287 *)
4288 CC="$CC $ac_cv_prog_cc_c89"
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4290 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4291 esac
4292 if test "x$ac_cv_prog_cc_c89" != xno; then :
4293
4294 fi
4295
4296 ac_ext=c
4297 ac_cpp='$CPP $CPPFLAGS'
4298 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4299 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4300 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4301
4302 depcc="$CC" am_compiler_list=
4303
4304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4305 $as_echo_n "checking dependency style of $depcc... " >&6; }
4306 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4307 $as_echo_n "(cached) " >&6
4308 else
4309 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4310 # We make a subdir and do the tests there. Otherwise we can end up
4311 # making bogus files that we don't know about and never remove. For
4312 # instance it was reported that on HP-UX the gcc test will end up
4313 # making a dummy file named 'D' -- because '-MD' means "put the output
4314 # in D".
4315 rm -rf conftest.dir
4316 mkdir conftest.dir
4317 # Copy depcomp to subdir because otherwise we won't find it if we're
4318 # using a relative directory.
4319 cp "$am_depcomp" conftest.dir
4320 cd conftest.dir
4321 # We will build objects and dependencies in a subdirectory because
4322 # it helps to detect inapplicable dependency modes. For instance
4323 # both Tru64's cc and ICC support -MD to output dependencies as a
4324 # side effect of compilation, but ICC will put the dependencies in
4325 # the current directory while Tru64 will put them in the object
4326 # directory.
4327 mkdir sub
4328
4329 am_cv_CC_dependencies_compiler_type=none
4330 if test "$am_compiler_list" = ""; then
4331 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4332 fi
4333 am__universal=false
4334 case " $depcc " in #(
4335 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4336 esac
4337
4338 for depmode in $am_compiler_list; do
4339 # Setup a source with many dependencies, because some compilers
4340 # like to wrap large dependency lists on column 80 (with \), and
4341 # we should not choose a depcomp mode which is confused by this.
4342 #
4343 # We need to recreate these files for each test, as the compiler may
4344 # overwrite some of them when testing with obscure command lines.
4345 # This happens at least with the AIX C compiler.
4346 : > sub/conftest.c
4347 for i in 1 2 3 4 5 6; do
4348 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4349 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4350 # Solaris 10 /bin/sh.
4351 echo '/* dummy */' > sub/conftst$i.h
4352 done
4353 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4354
4355 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4356 # mode. It turns out that the SunPro C++ compiler does not properly
4357 # handle '-M -o', and we need to detect this. Also, some Intel
4358 # versions had trouble with output in subdirs.
4359 am__obj=sub/conftest.${OBJEXT-o}
4360 am__minus_obj="-o $am__obj"
4361 case $depmode in
4362 gcc)
4363 # This depmode causes a compiler race in universal mode.
4364 test "$am__universal" = false || continue
4365 ;;
4366 nosideeffect)
4367 # After this tag, mechanisms are not by side-effect, so they'll
4368 # only be used when explicitly requested.
4369 if test "x$enable_dependency_tracking" = xyes; then
4370 continue
4371 else
4372 break
4373 fi
4374 ;;
4375 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4376 # This compiler won't grok '-c -o', but also, the minuso test has
4377 # not run yet. These depmodes are late enough in the game, and
4378 # so weak that their functioning should not be impacted.
4379 am__obj=conftest.${OBJEXT-o}
4380 am__minus_obj=
4381 ;;
4382 none) break ;;
4383 esac
4384 if depmode=$depmode \
4385 source=sub/conftest.c object=$am__obj \
4386 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4387 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4388 >/dev/null 2>conftest.err &&
4389 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4390 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4391 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4392 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4393 # icc doesn't choke on unknown options, it will just issue warnings
4394 # or remarks (even with -Werror). So we grep stderr for any message
4395 # that says an option was ignored or not supported.
4396 # When given -MP, icc 7.0 and 7.1 complain thusly:
4397 # icc: Command line warning: ignoring option '-M'; no argument required
4398 # The diagnosis changed in icc 8.0:
4399 # icc: Command line remark: option '-MP' not supported
4400 if (grep 'ignoring option' conftest.err ||
4401 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4402 am_cv_CC_dependencies_compiler_type=$depmode
4403 break
4404 fi
4405 fi
4406 done
4407
4408 cd ..
4409 rm -rf conftest.dir
4410 else
4411 am_cv_CC_dependencies_compiler_type=none
4412 fi
4413
4414 fi
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4416 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4417 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4418
4419 if
4420 test "x$enable_dependency_tracking" != xno \
4421 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4422 am__fastdepCC_TRUE=
4423 am__fastdepCC_FALSE='#'
4424 else
4425 am__fastdepCC_TRUE='#'
4426 am__fastdepCC_FALSE=
4427 fi
4428
4429
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4431 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4432 if ${ac_cv_path_SED+:} false; then :
4433 $as_echo_n "(cached) " >&6
4434 else
4435 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4436 for ac_i in 1 2 3 4 5 6 7; do
4437 ac_script="$ac_script$as_nl$ac_script"
4438 done
4439 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4440 { ac_script=; unset ac_script;}
4441 if test -z "$SED"; then
4442 ac_path_SED_found=false
4443 # Loop through the user's path and test for each of PROGNAME-LIST
4444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4445 for as_dir in $PATH
4446 do
4447 IFS=$as_save_IFS
4448 test -z "$as_dir" && as_dir=.
4449 for ac_prog in sed gsed; do
4450 for ac_exec_ext in '' $ac_executable_extensions; do
4451 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4452 as_fn_executable_p "$ac_path_SED" || continue
4453 # Check for GNU ac_path_SED and select it if it is found.
4454 # Check for GNU $ac_path_SED
4455 case `"$ac_path_SED" --version 2>&1` in
4456 *GNU*)
4457 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4458 *)
4459 ac_count=0
4460 $as_echo_n 0123456789 >"conftest.in"
4461 while :
4462 do
4463 cat "conftest.in" "conftest.in" >"conftest.tmp"
4464 mv "conftest.tmp" "conftest.in"
4465 cp "conftest.in" "conftest.nl"
4466 $as_echo '' >> "conftest.nl"
4467 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4468 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4469 as_fn_arith $ac_count + 1 && ac_count=$as_val
4470 if test $ac_count -gt ${ac_path_SED_max-0}; then
4471 # Best one so far, save it but keep looking for a better one
4472 ac_cv_path_SED="$ac_path_SED"
4473 ac_path_SED_max=$ac_count
4474 fi
4475 # 10*(2^10) chars as input seems more than enough
4476 test $ac_count -gt 10 && break
4477 done
4478 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4479 esac
4480
4481 $ac_path_SED_found && break 3
4482 done
4483 done
4484 done
4485 IFS=$as_save_IFS
4486 if test -z "$ac_cv_path_SED"; then
4487 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4488 fi
4489 else
4490 ac_cv_path_SED=$SED
4491 fi
4492
4493 fi
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4495 $as_echo "$ac_cv_path_SED" >&6; }
4496 SED="$ac_cv_path_SED"
4497 rm -f conftest.sed
4498
4499 test -z "$SED" && SED=sed
4500 Xsed="$SED -e 1s/^X//"
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510
4511
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4513 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4514 if ${ac_cv_path_GREP+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 if test -z "$GREP"; then
4518 ac_path_GREP_found=false
4519 # Loop through the user's path and test for each of PROGNAME-LIST
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4522 do
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_prog in grep ggrep; do
4526 for ac_exec_ext in '' $ac_executable_extensions; do
4527 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4528 as_fn_executable_p "$ac_path_GREP" || continue
4529 # Check for GNU ac_path_GREP and select it if it is found.
4530 # Check for GNU $ac_path_GREP
4531 case `"$ac_path_GREP" --version 2>&1` in
4532 *GNU*)
4533 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4534 *)
4535 ac_count=0
4536 $as_echo_n 0123456789 >"conftest.in"
4537 while :
4538 do
4539 cat "conftest.in" "conftest.in" >"conftest.tmp"
4540 mv "conftest.tmp" "conftest.in"
4541 cp "conftest.in" "conftest.nl"
4542 $as_echo 'GREP' >> "conftest.nl"
4543 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4544 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4545 as_fn_arith $ac_count + 1 && ac_count=$as_val
4546 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4547 # Best one so far, save it but keep looking for a better one
4548 ac_cv_path_GREP="$ac_path_GREP"
4549 ac_path_GREP_max=$ac_count
4550 fi
4551 # 10*(2^10) chars as input seems more than enough
4552 test $ac_count -gt 10 && break
4553 done
4554 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4555 esac
4556
4557 $ac_path_GREP_found && break 3
4558 done
4559 done
4560 done
4561 IFS=$as_save_IFS
4562 if test -z "$ac_cv_path_GREP"; then
4563 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4564 fi
4565 else
4566 ac_cv_path_GREP=$GREP
4567 fi
4568
4569 fi
4570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4571 $as_echo "$ac_cv_path_GREP" >&6; }
4572 GREP="$ac_cv_path_GREP"
4573
4574
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4576 $as_echo_n "checking for egrep... " >&6; }
4577 if ${ac_cv_path_EGREP+:} false; then :
4578 $as_echo_n "(cached) " >&6
4579 else
4580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4581 then ac_cv_path_EGREP="$GREP -E"
4582 else
4583 if test -z "$EGREP"; then
4584 ac_path_EGREP_found=false
4585 # Loop through the user's path and test for each of PROGNAME-LIST
4586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4587 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4588 do
4589 IFS=$as_save_IFS
4590 test -z "$as_dir" && as_dir=.
4591 for ac_prog in egrep; do
4592 for ac_exec_ext in '' $ac_executable_extensions; do
4593 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4594 as_fn_executable_p "$ac_path_EGREP" || continue
4595 # Check for GNU ac_path_EGREP and select it if it is found.
4596 # Check for GNU $ac_path_EGREP
4597 case `"$ac_path_EGREP" --version 2>&1` in
4598 *GNU*)
4599 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4600 *)
4601 ac_count=0
4602 $as_echo_n 0123456789 >"conftest.in"
4603 while :
4604 do
4605 cat "conftest.in" "conftest.in" >"conftest.tmp"
4606 mv "conftest.tmp" "conftest.in"
4607 cp "conftest.in" "conftest.nl"
4608 $as_echo 'EGREP' >> "conftest.nl"
4609 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4610 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4611 as_fn_arith $ac_count + 1 && ac_count=$as_val
4612 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4613 # Best one so far, save it but keep looking for a better one
4614 ac_cv_path_EGREP="$ac_path_EGREP"
4615 ac_path_EGREP_max=$ac_count
4616 fi
4617 # 10*(2^10) chars as input seems more than enough
4618 test $ac_count -gt 10 && break
4619 done
4620 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4621 esac
4622
4623 $ac_path_EGREP_found && break 3
4624 done
4625 done
4626 done
4627 IFS=$as_save_IFS
4628 if test -z "$ac_cv_path_EGREP"; then
4629 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4630 fi
4631 else
4632 ac_cv_path_EGREP=$EGREP
4633 fi
4634
4635 fi
4636 fi
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4638 $as_echo "$ac_cv_path_EGREP" >&6; }
4639 EGREP="$ac_cv_path_EGREP"
4640
4641
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4643 $as_echo_n "checking for fgrep... " >&6; }
4644 if ${ac_cv_path_FGREP+:} false; then :
4645 $as_echo_n "(cached) " >&6
4646 else
4647 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4648 then ac_cv_path_FGREP="$GREP -F"
4649 else
4650 if test -z "$FGREP"; then
4651 ac_path_FGREP_found=false
4652 # Loop through the user's path and test for each of PROGNAME-LIST
4653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4654 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4655 do
4656 IFS=$as_save_IFS
4657 test -z "$as_dir" && as_dir=.
4658 for ac_prog in fgrep; do
4659 for ac_exec_ext in '' $ac_executable_extensions; do
4660 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4661 as_fn_executable_p "$ac_path_FGREP" || continue
4662 # Check for GNU ac_path_FGREP and select it if it is found.
4663 # Check for GNU $ac_path_FGREP
4664 case `"$ac_path_FGREP" --version 2>&1` in
4665 *GNU*)
4666 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4667 *)
4668 ac_count=0
4669 $as_echo_n 0123456789 >"conftest.in"
4670 while :
4671 do
4672 cat "conftest.in" "conftest.in" >"conftest.tmp"
4673 mv "conftest.tmp" "conftest.in"
4674 cp "conftest.in" "conftest.nl"
4675 $as_echo 'FGREP' >> "conftest.nl"
4676 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4677 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4678 as_fn_arith $ac_count + 1 && ac_count=$as_val
4679 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4680 # Best one so far, save it but keep looking for a better one
4681 ac_cv_path_FGREP="$ac_path_FGREP"
4682 ac_path_FGREP_max=$ac_count
4683 fi
4684 # 10*(2^10) chars as input seems more than enough
4685 test $ac_count -gt 10 && break
4686 done
4687 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4688 esac
4689
4690 $ac_path_FGREP_found && break 3
4691 done
4692 done
4693 done
4694 IFS=$as_save_IFS
4695 if test -z "$ac_cv_path_FGREP"; then
4696 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4697 fi
4698 else
4699 ac_cv_path_FGREP=$FGREP
4700 fi
4701
4702 fi
4703 fi
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4705 $as_echo "$ac_cv_path_FGREP" >&6; }
4706 FGREP="$ac_cv_path_FGREP"
4707
4708
4709 test -z "$GREP" && GREP=grep
4710
4711
4712
4713
4714
4715
4716
4717
4718
4719
4720
4721
4722
4723
4724
4725
4726
4727
4728
4729 # Check whether --with-gnu-ld was given.
4730 if test "${with_gnu_ld+set}" = set; then :
4731 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4732 else
4733 with_gnu_ld=no
4734 fi
4735
4736 ac_prog=ld
4737 if test "$GCC" = yes; then
4738 # Check if gcc -print-prog-name=ld gives a path.
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4740 $as_echo_n "checking for ld used by $CC... " >&6; }
4741 case $host in
4742 *-*-mingw*)
4743 # gcc leaves a trailing carriage return which upsets mingw
4744 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4745 *)
4746 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4747 esac
4748 case $ac_prog in
4749 # Accept absolute paths.
4750 [\\/]* | ?:[\\/]*)
4751 re_direlt='/[^/][^/]*/\.\./'
4752 # Canonicalize the pathname of ld
4753 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4754 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4755 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4756 done
4757 test -z "$LD" && LD="$ac_prog"
4758 ;;
4759 "")
4760 # If it fails, then pretend we aren't using GCC.
4761 ac_prog=ld
4762 ;;
4763 *)
4764 # If it is relative, then search for the first ld in PATH.
4765 with_gnu_ld=unknown
4766 ;;
4767 esac
4768 elif test "$with_gnu_ld" = yes; then
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4770 $as_echo_n "checking for GNU ld... " >&6; }
4771 else
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4773 $as_echo_n "checking for non-GNU ld... " >&6; }
4774 fi
4775 if ${lt_cv_path_LD+:} false; then :
4776 $as_echo_n "(cached) " >&6
4777 else
4778 if test -z "$LD"; then
4779 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4780 for ac_dir in $PATH; do
4781 IFS="$lt_save_ifs"
4782 test -z "$ac_dir" && ac_dir=.
4783 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4784 lt_cv_path_LD="$ac_dir/$ac_prog"
4785 # Check to see if the program is GNU ld. I'd rather use --version,
4786 # but apparently some variants of GNU ld only accept -v.
4787 # Break only if it was the GNU/non-GNU ld that we prefer.
4788 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4789 *GNU* | *'with BFD'*)
4790 test "$with_gnu_ld" != no && break
4791 ;;
4792 *)
4793 test "$with_gnu_ld" != yes && break
4794 ;;
4795 esac
4796 fi
4797 done
4798 IFS="$lt_save_ifs"
4799 else
4800 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4801 fi
4802 fi
4803
4804 LD="$lt_cv_path_LD"
4805 if test -n "$LD"; then
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4807 $as_echo "$LD" >&6; }
4808 else
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4810 $as_echo "no" >&6; }
4811 fi
4812 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4814 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4815 if ${lt_cv_prog_gnu_ld+:} false; then :
4816 $as_echo_n "(cached) " >&6
4817 else
4818 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4819 case `$LD -v 2>&1 </dev/null` in
4820 *GNU* | *'with BFD'*)
4821 lt_cv_prog_gnu_ld=yes
4822 ;;
4823 *)
4824 lt_cv_prog_gnu_ld=no
4825 ;;
4826 esac
4827 fi
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4829 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4830 with_gnu_ld=$lt_cv_prog_gnu_ld
4831
4832
4833
4834
4835
4836
4837
4838
4839
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4841 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4842 if ${lt_cv_path_NM+:} false; then :
4843 $as_echo_n "(cached) " >&6
4844 else
4845 if test -n "$NM"; then
4846 # Let the user override the test.
4847 lt_cv_path_NM="$NM"
4848 else
4849 lt_nm_to_check="${ac_tool_prefix}nm"
4850 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4851 lt_nm_to_check="$lt_nm_to_check nm"
4852 fi
4853 for lt_tmp_nm in $lt_nm_to_check; do
4854 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4855 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4856 IFS="$lt_save_ifs"
4857 test -z "$ac_dir" && ac_dir=.
4858 tmp_nm="$ac_dir/$lt_tmp_nm"
4859 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4860 # Check to see if the nm accepts a BSD-compat flag.
4861 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4862 # nm: unknown option "B" ignored
4863 # Tru64's nm complains that /dev/null is an invalid object file
4864 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4865 */dev/null* | *'Invalid file or object type'*)
4866 lt_cv_path_NM="$tmp_nm -B"
4867 break
4868 ;;
4869 *)
4870 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4871 */dev/null*)
4872 lt_cv_path_NM="$tmp_nm -p"
4873 break
4874 ;;
4875 *)
4876 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4877 continue # so that we can try to find one that supports BSD flags
4878 ;;
4879 esac
4880 ;;
4881 esac
4882 fi
4883 done
4884 IFS="$lt_save_ifs"
4885 done
4886 : ${lt_cv_path_NM=no}
4887 fi
4888 fi
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4890 $as_echo "$lt_cv_path_NM" >&6; }
4891 if test "$lt_cv_path_NM" != "no"; then
4892 NM="$lt_cv_path_NM"
4893 else
4894 # Didn't find any BSD compatible name lister, look for dumpbin.
4895 if test -n "$DUMPBIN"; then :
4896 # Let the user override the test.
4897 else
4898 if test -n "$ac_tool_prefix"; then
4899 for ac_prog in dumpbin "link -dump"
4900 do
4901 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4902 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4904 $as_echo_n "checking for $ac_word... " >&6; }
4905 if ${ac_cv_prog_DUMPBIN+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 if test -n "$DUMPBIN"; then
4909 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4910 else
4911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4912 for as_dir in $PATH
4913 do
4914 IFS=$as_save_IFS
4915 test -z "$as_dir" && as_dir=.
4916 for ac_exec_ext in '' $ac_executable_extensions; do
4917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4918 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4920 break 2
4921 fi
4922 done
4923 done
4924 IFS=$as_save_IFS
4925
4926 fi
4927 fi
4928 DUMPBIN=$ac_cv_prog_DUMPBIN
4929 if test -n "$DUMPBIN"; then
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4931 $as_echo "$DUMPBIN" >&6; }
4932 else
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4934 $as_echo "no" >&6; }
4935 fi
4936
4937
4938 test -n "$DUMPBIN" && break
4939 done
4940 fi
4941 if test -z "$DUMPBIN"; then
4942 ac_ct_DUMPBIN=$DUMPBIN
4943 for ac_prog in dumpbin "link -dump"
4944 do
4945 # Extract the first word of "$ac_prog", so it can be a program name with args.
4946 set dummy $ac_prog; ac_word=$2
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4948 $as_echo_n "checking for $ac_word... " >&6; }
4949 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4950 $as_echo_n "(cached) " >&6
4951 else
4952 if test -n "$ac_ct_DUMPBIN"; then
4953 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4954 else
4955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4956 for as_dir in $PATH
4957 do
4958 IFS=$as_save_IFS
4959 test -z "$as_dir" && as_dir=.
4960 for ac_exec_ext in '' $ac_executable_extensions; do
4961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4962 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4963 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4964 break 2
4965 fi
4966 done
4967 done
4968 IFS=$as_save_IFS
4969
4970 fi
4971 fi
4972 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4973 if test -n "$ac_ct_DUMPBIN"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4975 $as_echo "$ac_ct_DUMPBIN" >&6; }
4976 else
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4978 $as_echo "no" >&6; }
4979 fi
4980
4981
4982 test -n "$ac_ct_DUMPBIN" && break
4983 done
4984
4985 if test "x$ac_ct_DUMPBIN" = x; then
4986 DUMPBIN=":"
4987 else
4988 case $cross_compiling:$ac_tool_warned in
4989 yes:)
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4991 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4992 ac_tool_warned=yes ;;
4993 esac
4994 DUMPBIN=$ac_ct_DUMPBIN
4995 fi
4996 fi
4997
4998 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4999 *COFF*)
5000 DUMPBIN="$DUMPBIN -symbols"
5001 ;;
5002 *)
5003 DUMPBIN=:
5004 ;;
5005 esac
5006 fi
5007
5008 if test "$DUMPBIN" != ":"; then
5009 NM="$DUMPBIN"
5010 fi
5011 fi
5012 test -z "$NM" && NM=nm
5013
5014
5015
5016
5017
5018
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5020 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5021 if ${lt_cv_nm_interface+:} false; then :
5022 $as_echo_n "(cached) " >&6
5023 else
5024 lt_cv_nm_interface="BSD nm"
5025 echo "int some_variable = 0;" > conftest.$ac_ext
5026 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5027 (eval "$ac_compile" 2>conftest.err)
5028 cat conftest.err >&5
5029 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5030 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5031 cat conftest.err >&5
5032 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5033 cat conftest.out >&5
5034 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5035 lt_cv_nm_interface="MS dumpbin"
5036 fi
5037 rm -f conftest*
5038 fi
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5040 $as_echo "$lt_cv_nm_interface" >&6; }
5041
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5043 $as_echo_n "checking whether ln -s works... " >&6; }
5044 LN_S=$as_ln_s
5045 if test "$LN_S" = "ln -s"; then
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5047 $as_echo "yes" >&6; }
5048 else
5049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5050 $as_echo "no, using $LN_S" >&6; }
5051 fi
5052
5053 # find the maximum length of command line arguments
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5055 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5056 if ${lt_cv_sys_max_cmd_len+:} false; then :
5057 $as_echo_n "(cached) " >&6
5058 else
5059 i=0
5060 teststring="ABCD"
5061
5062 case $build_os in
5063 msdosdjgpp*)
5064 # On DJGPP, this test can blow up pretty badly due to problems in libc
5065 # (any single argument exceeding 2000 bytes causes a buffer overrun
5066 # during glob expansion). Even if it were fixed, the result of this
5067 # check would be larger than it should be.
5068 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5069 ;;
5070
5071 gnu*)
5072 # Under GNU Hurd, this test is not required because there is
5073 # no limit to the length of command line arguments.
5074 # Libtool will interpret -1 as no limit whatsoever
5075 lt_cv_sys_max_cmd_len=-1;
5076 ;;
5077
5078 cygwin* | mingw* | cegcc*)
5079 # On Win9x/ME, this test blows up -- it succeeds, but takes
5080 # about 5 minutes as the teststring grows exponentially.
5081 # Worse, since 9x/ME are not pre-emptively multitasking,
5082 # you end up with a "frozen" computer, even though with patience
5083 # the test eventually succeeds (with a max line length of 256k).
5084 # Instead, let's just punt: use the minimum linelength reported by
5085 # all of the supported platforms: 8192 (on NT/2K/XP).
5086 lt_cv_sys_max_cmd_len=8192;
5087 ;;
5088
5089 mint*)
5090 # On MiNT this can take a long time and run out of memory.
5091 lt_cv_sys_max_cmd_len=8192;
5092 ;;
5093
5094 amigaos*)
5095 # On AmigaOS with pdksh, this test takes hours, literally.
5096 # So we just punt and use a minimum line length of 8192.
5097 lt_cv_sys_max_cmd_len=8192;
5098 ;;
5099
5100 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5101 # This has been around since 386BSD, at least. Likely further.
5102 if test -x /sbin/sysctl; then
5103 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5104 elif test -x /usr/sbin/sysctl; then
5105 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5106 else
5107 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5108 fi
5109 # And add a safety zone
5110 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5111 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5112 ;;
5113
5114 interix*)
5115 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5116 lt_cv_sys_max_cmd_len=196608
5117 ;;
5118
5119 os2*)
5120 # The test takes a long time on OS/2.
5121 lt_cv_sys_max_cmd_len=8192
5122 ;;
5123
5124 osf*)
5125 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5126 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5127 # nice to cause kernel panics so lets avoid the loop below.
5128 # First set a reasonable default.
5129 lt_cv_sys_max_cmd_len=16384
5130 #
5131 if test -x /sbin/sysconfig; then
5132 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5133 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5134 esac
5135 fi
5136 ;;
5137 sco3.2v5*)
5138 lt_cv_sys_max_cmd_len=102400
5139 ;;
5140 sysv5* | sco5v6* | sysv4.2uw2*)
5141 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5142 if test -n "$kargmax"; then
5143 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5144 else
5145 lt_cv_sys_max_cmd_len=32768
5146 fi
5147 ;;
5148 *)
5149 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5150 if test -n "$lt_cv_sys_max_cmd_len"; then
5151 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5152 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5153 else
5154 # Make teststring a little bigger before we do anything with it.
5155 # a 1K string should be a reasonable start.
5156 for i in 1 2 3 4 5 6 7 8 ; do
5157 teststring=$teststring$teststring
5158 done
5159 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5160 # If test is not a shell built-in, we'll probably end up computing a
5161 # maximum length that is only half of the actual maximum length, but
5162 # we can't tell.
5163 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5164 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5165 test $i != 17 # 1/2 MB should be enough
5166 do
5167 i=`expr $i + 1`
5168 teststring=$teststring$teststring
5169 done
5170 # Only check the string length outside the loop.
5171 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5172 teststring=
5173 # Add a significant safety factor because C++ compilers can tack on
5174 # massive amounts of additional arguments before passing them to the
5175 # linker. It appears as though 1/2 is a usable value.
5176 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5177 fi
5178 ;;
5179 esac
5180
5181 fi
5182
5183 if test -n $lt_cv_sys_max_cmd_len ; then
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5185 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5186 else
5187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5188 $as_echo "none" >&6; }
5189 fi
5190 max_cmd_len=$lt_cv_sys_max_cmd_len
5191
5192
5193
5194
5195
5196
5197 : ${CP="cp -f"}
5198 : ${MV="mv -f"}
5199 : ${RM="rm -f"}
5200
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5202 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5203 # Try some XSI features
5204 xsi_shell=no
5205 ( _lt_dummy="a/b/c"
5206 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5207 = c,a/b,b/c, \
5208 && eval 'test $(( 1 + 1 )) -eq 2 \
5209 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5210 && xsi_shell=yes
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5212 $as_echo "$xsi_shell" >&6; }
5213
5214
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5216 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5217 lt_shell_append=no
5218 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5219 >/dev/null 2>&1 \
5220 && lt_shell_append=yes
5221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5222 $as_echo "$lt_shell_append" >&6; }
5223
5224
5225 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5226 lt_unset=unset
5227 else
5228 lt_unset=false
5229 fi
5230
5231
5232
5233
5234
5235 # test EBCDIC or ASCII
5236 case `echo X|tr X '\101'` in
5237 A) # ASCII based system
5238 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5239 lt_SP2NL='tr \040 \012'
5240 lt_NL2SP='tr \015\012 \040\040'
5241 ;;
5242 *) # EBCDIC based system
5243 lt_SP2NL='tr \100 \n'
5244 lt_NL2SP='tr \r\n \100\100'
5245 ;;
5246 esac
5247
5248
5249
5250
5251
5252
5253
5254
5255
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5257 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5258 if ${lt_cv_to_host_file_cmd+:} false; then :
5259 $as_echo_n "(cached) " >&6
5260 else
5261 case $host in
5262 *-*-mingw* )
5263 case $build in
5264 *-*-mingw* ) # actually msys
5265 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5266 ;;
5267 *-*-cygwin* )
5268 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5269 ;;
5270 * ) # otherwise, assume *nix
5271 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5272 ;;
5273 esac
5274 ;;
5275 *-*-cygwin* )
5276 case $build in
5277 *-*-mingw* ) # actually msys
5278 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5279 ;;
5280 *-*-cygwin* )
5281 lt_cv_to_host_file_cmd=func_convert_file_noop
5282 ;;
5283 * ) # otherwise, assume *nix
5284 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5285 ;;
5286 esac
5287 ;;
5288 * ) # unhandled hosts (and "normal" native builds)
5289 lt_cv_to_host_file_cmd=func_convert_file_noop
5290 ;;
5291 esac
5292
5293 fi
5294
5295 to_host_file_cmd=$lt_cv_to_host_file_cmd
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5297 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5298
5299
5300
5301
5302
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5304 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5305 if ${lt_cv_to_tool_file_cmd+:} false; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 #assume ordinary cross tools, or native build.
5309 lt_cv_to_tool_file_cmd=func_convert_file_noop
5310 case $host in
5311 *-*-mingw* )
5312 case $build in
5313 *-*-mingw* ) # actually msys
5314 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5315 ;;
5316 esac
5317 ;;
5318 esac
5319
5320 fi
5321
5322 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5324 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5325
5326
5327
5328
5329
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5331 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5332 if ${lt_cv_ld_reload_flag+:} false; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 lt_cv_ld_reload_flag='-r'
5336 fi
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5338 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5339 reload_flag=$lt_cv_ld_reload_flag
5340 case $reload_flag in
5341 "" | " "*) ;;
5342 *) reload_flag=" $reload_flag" ;;
5343 esac
5344 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5345 case $host_os in
5346 cygwin* | mingw* | pw32* | cegcc*)
5347 if test "$GCC" != yes; then
5348 reload_cmds=false
5349 fi
5350 ;;
5351 darwin*)
5352 if test "$GCC" = yes; then
5353 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5354 else
5355 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5356 fi
5357 ;;
5358 esac
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368 if test -n "$ac_tool_prefix"; then
5369 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5370 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5372 $as_echo_n "checking for $ac_word... " >&6; }
5373 if ${ac_cv_prog_OBJDUMP+:} false; then :
5374 $as_echo_n "(cached) " >&6
5375 else
5376 if test -n "$OBJDUMP"; then
5377 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5378 else
5379 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380 for as_dir in $PATH
5381 do
5382 IFS=$as_save_IFS
5383 test -z "$as_dir" && as_dir=.
5384 for ac_exec_ext in '' $ac_executable_extensions; do
5385 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5386 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5387 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388 break 2
5389 fi
5390 done
5391 done
5392 IFS=$as_save_IFS
5393
5394 fi
5395 fi
5396 OBJDUMP=$ac_cv_prog_OBJDUMP
5397 if test -n "$OBJDUMP"; then
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5399 $as_echo "$OBJDUMP" >&6; }
5400 else
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5402 $as_echo "no" >&6; }
5403 fi
5404
5405
5406 fi
5407 if test -z "$ac_cv_prog_OBJDUMP"; then
5408 ac_ct_OBJDUMP=$OBJDUMP
5409 # Extract the first word of "objdump", so it can be a program name with args.
5410 set dummy objdump; ac_word=$2
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5412 $as_echo_n "checking for $ac_word... " >&6; }
5413 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5414 $as_echo_n "(cached) " >&6
5415 else
5416 if test -n "$ac_ct_OBJDUMP"; then
5417 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5418 else
5419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5420 for as_dir in $PATH
5421 do
5422 IFS=$as_save_IFS
5423 test -z "$as_dir" && as_dir=.
5424 for ac_exec_ext in '' $ac_executable_extensions; do
5425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5426 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5427 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5428 break 2
5429 fi
5430 done
5431 done
5432 IFS=$as_save_IFS
5433
5434 fi
5435 fi
5436 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5437 if test -n "$ac_ct_OBJDUMP"; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5439 $as_echo "$ac_ct_OBJDUMP" >&6; }
5440 else
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5442 $as_echo "no" >&6; }
5443 fi
5444
5445 if test "x$ac_ct_OBJDUMP" = x; then
5446 OBJDUMP="false"
5447 else
5448 case $cross_compiling:$ac_tool_warned in
5449 yes:)
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5451 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5452 ac_tool_warned=yes ;;
5453 esac
5454 OBJDUMP=$ac_ct_OBJDUMP
5455 fi
5456 else
5457 OBJDUMP="$ac_cv_prog_OBJDUMP"
5458 fi
5459
5460 test -z "$OBJDUMP" && OBJDUMP=objdump
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5471 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5472 if ${lt_cv_deplibs_check_method+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 lt_cv_file_magic_cmd='$MAGIC_CMD'
5476 lt_cv_file_magic_test_file=
5477 lt_cv_deplibs_check_method='unknown'
5478 # Need to set the preceding variable on all platforms that support
5479 # interlibrary dependencies.
5480 # 'none' -- dependencies not supported.
5481 # `unknown' -- same as none, but documents that we really don't know.
5482 # 'pass_all' -- all dependencies passed with no checks.
5483 # 'test_compile' -- check by making test program.
5484 # 'file_magic [[regex]]' -- check by looking for files in library path
5485 # which responds to the $file_magic_cmd with a given extended regex.
5486 # If you have `file' or equivalent on your system and you're not sure
5487 # whether `pass_all' will *always* work, you probably want this one.
5488
5489 case $host_os in
5490 aix[4-9]*)
5491 lt_cv_deplibs_check_method=pass_all
5492 ;;
5493
5494 beos*)
5495 lt_cv_deplibs_check_method=pass_all
5496 ;;
5497
5498 bsdi[45]*)
5499 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5500 lt_cv_file_magic_cmd='/usr/bin/file -L'
5501 lt_cv_file_magic_test_file=/shlib/libc.so
5502 ;;
5503
5504 cygwin*)
5505 # func_win32_libid is a shell function defined in ltmain.sh
5506 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5507 lt_cv_file_magic_cmd='func_win32_libid'
5508 ;;
5509
5510 mingw* | pw32*)
5511 # Base MSYS/MinGW do not provide the 'file' command needed by
5512 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5513 # unless we find 'file', for example because we are cross-compiling.
5514 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5515 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5516 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5517 lt_cv_file_magic_cmd='func_win32_libid'
5518 else
5519 # Keep this pattern in sync with the one in func_win32_libid.
5520 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5521 lt_cv_file_magic_cmd='$OBJDUMP -f'
5522 fi
5523 ;;
5524
5525 cegcc*)
5526 # use the weaker test based on 'objdump'. See mingw*.
5527 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5528 lt_cv_file_magic_cmd='$OBJDUMP -f'
5529 ;;
5530
5531 darwin* | rhapsody*)
5532 lt_cv_deplibs_check_method=pass_all
5533 ;;
5534
5535 freebsd* | dragonfly*)
5536 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5537 case $host_cpu in
5538 i*86 )
5539 # Not sure whether the presence of OpenBSD here was a mistake.
5540 # Let's accept both of them until this is cleared up.
5541 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5542 lt_cv_file_magic_cmd=/usr/bin/file
5543 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5544 ;;
5545 esac
5546 else
5547 lt_cv_deplibs_check_method=pass_all
5548 fi
5549 ;;
5550
5551 gnu*)
5552 lt_cv_deplibs_check_method=pass_all
5553 ;;
5554
5555 haiku*)
5556 lt_cv_deplibs_check_method=pass_all
5557 ;;
5558
5559 hpux10.20* | hpux11*)
5560 lt_cv_file_magic_cmd=/usr/bin/file
5561 case $host_cpu in
5562 ia64*)
5563 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5564 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5565 ;;
5566 hppa*64*)
5567 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]'
5568 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5569 ;;
5570 *)
5571 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5572 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5573 ;;
5574 esac
5575 ;;
5576
5577 interix[3-9]*)
5578 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5579 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5580 ;;
5581
5582 irix5* | irix6* | nonstopux*)
5583 case $LD in
5584 *-32|*"-32 ") libmagic=32-bit;;
5585 *-n32|*"-n32 ") libmagic=N32;;
5586 *-64|*"-64 ") libmagic=64-bit;;
5587 *) libmagic=never-match;;
5588 esac
5589 lt_cv_deplibs_check_method=pass_all
5590 ;;
5591
5592 # This must be glibc/ELF.
5593 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5594 lt_cv_deplibs_check_method=pass_all
5595 ;;
5596
5597 netbsd*)
5598 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5599 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5600 else
5601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5602 fi
5603 ;;
5604
5605 newos6*)
5606 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5607 lt_cv_file_magic_cmd=/usr/bin/file
5608 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5609 ;;
5610
5611 *nto* | *qnx*)
5612 lt_cv_deplibs_check_method=pass_all
5613 ;;
5614
5615 openbsd*)
5616 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5617 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5618 else
5619 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5620 fi
5621 ;;
5622
5623 osf3* | osf4* | osf5*)
5624 lt_cv_deplibs_check_method=pass_all
5625 ;;
5626
5627 rdos*)
5628 lt_cv_deplibs_check_method=pass_all
5629 ;;
5630
5631 solaris*)
5632 lt_cv_deplibs_check_method=pass_all
5633 ;;
5634
5635 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5636 lt_cv_deplibs_check_method=pass_all
5637 ;;
5638
5639 sysv4 | sysv4.3*)
5640 case $host_vendor in
5641 motorola)
5642 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]'
5643 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5644 ;;
5645 ncr)
5646 lt_cv_deplibs_check_method=pass_all
5647 ;;
5648 sequent)
5649 lt_cv_file_magic_cmd='/bin/file'
5650 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5651 ;;
5652 sni)
5653 lt_cv_file_magic_cmd='/bin/file'
5654 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5655 lt_cv_file_magic_test_file=/lib/libc.so
5656 ;;
5657 siemens)
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
5660 pc)
5661 lt_cv_deplibs_check_method=pass_all
5662 ;;
5663 esac
5664 ;;
5665
5666 tpf*)
5667 lt_cv_deplibs_check_method=pass_all
5668 ;;
5669 esac
5670
5671 fi
5672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5673 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5674
5675 file_magic_glob=
5676 want_nocaseglob=no
5677 if test "$build" = "$host"; then
5678 case $host_os in
5679 mingw* | pw32*)
5680 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5681 want_nocaseglob=yes
5682 else
5683 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5684 fi
5685 ;;
5686 esac
5687 fi
5688
5689 file_magic_cmd=$lt_cv_file_magic_cmd
5690 deplibs_check_method=$lt_cv_deplibs_check_method
5691 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714 if test -n "$ac_tool_prefix"; then
5715 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5716 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5718 $as_echo_n "checking for $ac_word... " >&6; }
5719 if ${ac_cv_prog_DLLTOOL+:} false; then :
5720 $as_echo_n "(cached) " >&6
5721 else
5722 if test -n "$DLLTOOL"; then
5723 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5724 else
5725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5726 for as_dir in $PATH
5727 do
5728 IFS=$as_save_IFS
5729 test -z "$as_dir" && as_dir=.
5730 for ac_exec_ext in '' $ac_executable_extensions; do
5731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5732 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 break 2
5735 fi
5736 done
5737 done
5738 IFS=$as_save_IFS
5739
5740 fi
5741 fi
5742 DLLTOOL=$ac_cv_prog_DLLTOOL
5743 if test -n "$DLLTOOL"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5745 $as_echo "$DLLTOOL" >&6; }
5746 else
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5748 $as_echo "no" >&6; }
5749 fi
5750
5751
5752 fi
5753 if test -z "$ac_cv_prog_DLLTOOL"; then
5754 ac_ct_DLLTOOL=$DLLTOOL
5755 # Extract the first word of "dlltool", so it can be a program name with args.
5756 set dummy dlltool; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_DLLTOOL"; then
5763 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5767 do
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5775 fi
5776 done
5777 done
5778 IFS=$as_save_IFS
5779
5780 fi
5781 fi
5782 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5783 if test -n "$ac_ct_DLLTOOL"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5785 $as_echo "$ac_ct_DLLTOOL" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5789 fi
5790
5791 if test "x$ac_ct_DLLTOOL" = x; then
5792 DLLTOOL="false"
5793 else
5794 case $cross_compiling:$ac_tool_warned in
5795 yes:)
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5798 ac_tool_warned=yes ;;
5799 esac
5800 DLLTOOL=$ac_ct_DLLTOOL
5801 fi
5802 else
5803 DLLTOOL="$ac_cv_prog_DLLTOOL"
5804 fi
5805
5806 test -z "$DLLTOOL" && DLLTOOL=dlltool
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5818 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5819 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5820 $as_echo_n "(cached) " >&6
5821 else
5822 lt_cv_sharedlib_from_linklib_cmd='unknown'
5823
5824 case $host_os in
5825 cygwin* | mingw* | pw32* | cegcc*)
5826 # two different shell functions defined in ltmain.sh
5827 # decide which to use based on capabilities of $DLLTOOL
5828 case `$DLLTOOL --help 2>&1` in
5829 *--identify-strict*)
5830 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5831 ;;
5832 *)
5833 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5834 ;;
5835 esac
5836 ;;
5837 *)
5838 # fallback: assume linklib IS sharedlib
5839 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5840 ;;
5841 esac
5842
5843 fi
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5845 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5846 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5847 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5848
5849
5850
5851
5852
5853
5854
5855
5856 if test -n "$ac_tool_prefix"; then
5857 for ac_prog in ar
5858 do
5859 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5860 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5862 $as_echo_n "checking for $ac_word... " >&6; }
5863 if ${ac_cv_prog_AR+:} false; then :
5864 $as_echo_n "(cached) " >&6
5865 else
5866 if test -n "$AR"; then
5867 ac_cv_prog_AR="$AR" # Let the user override the test.
5868 else
5869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 for as_dir in $PATH
5871 do
5872 IFS=$as_save_IFS
5873 test -z "$as_dir" && as_dir=.
5874 for ac_exec_ext in '' $ac_executable_extensions; do
5875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5876 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5878 break 2
5879 fi
5880 done
5881 done
5882 IFS=$as_save_IFS
5883
5884 fi
5885 fi
5886 AR=$ac_cv_prog_AR
5887 if test -n "$AR"; then
5888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5889 $as_echo "$AR" >&6; }
5890 else
5891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5892 $as_echo "no" >&6; }
5893 fi
5894
5895
5896 test -n "$AR" && break
5897 done
5898 fi
5899 if test -z "$AR"; then
5900 ac_ct_AR=$AR
5901 for ac_prog in ar
5902 do
5903 # Extract the first word of "$ac_prog", so it can be a program name with args.
5904 set dummy $ac_prog; ac_word=$2
5905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5906 $as_echo_n "checking for $ac_word... " >&6; }
5907 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5908 $as_echo_n "(cached) " >&6
5909 else
5910 if test -n "$ac_ct_AR"; then
5911 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5912 else
5913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5914 for as_dir in $PATH
5915 do
5916 IFS=$as_save_IFS
5917 test -z "$as_dir" && as_dir=.
5918 for ac_exec_ext in '' $ac_executable_extensions; do
5919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5920 ac_cv_prog_ac_ct_AR="$ac_prog"
5921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5922 break 2
5923 fi
5924 done
5925 done
5926 IFS=$as_save_IFS
5927
5928 fi
5929 fi
5930 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5931 if test -n "$ac_ct_AR"; then
5932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5933 $as_echo "$ac_ct_AR" >&6; }
5934 else
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5936 $as_echo "no" >&6; }
5937 fi
5938
5939
5940 test -n "$ac_ct_AR" && break
5941 done
5942
5943 if test "x$ac_ct_AR" = x; then
5944 AR="false"
5945 else
5946 case $cross_compiling:$ac_tool_warned in
5947 yes:)
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5949 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5950 ac_tool_warned=yes ;;
5951 esac
5952 AR=$ac_ct_AR
5953 fi
5954 fi
5955
5956 : ${AR=ar}
5957 : ${AR_FLAGS=cru}
5958
5959
5960
5961
5962
5963
5964
5965
5966
5967
5968
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5970 $as_echo_n "checking for archiver @FILE support... " >&6; }
5971 if ${lt_cv_ar_at_file+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973 else
5974 lt_cv_ar_at_file=no
5975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5976 /* end confdefs.h. */
5977
5978 int
5979 main ()
5980 {
5981
5982 ;
5983 return 0;
5984 }
5985 _ACEOF
5986 if ac_fn_c_try_compile "$LINENO"; then :
5987 echo conftest.$ac_objext > conftest.lst
5988 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5989 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5990 (eval $lt_ar_try) 2>&5
5991 ac_status=$?
5992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5993 test $ac_status = 0; }
5994 if test "$ac_status" -eq 0; then
5995 # Ensure the archiver fails upon bogus file names.
5996 rm -f conftest.$ac_objext libconftest.a
5997 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5998 (eval $lt_ar_try) 2>&5
5999 ac_status=$?
6000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6001 test $ac_status = 0; }
6002 if test "$ac_status" -ne 0; then
6003 lt_cv_ar_at_file=@
6004 fi
6005 fi
6006 rm -f conftest.* libconftest.a
6007
6008 fi
6009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6010
6011 fi
6012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6013 $as_echo "$lt_cv_ar_at_file" >&6; }
6014
6015 if test "x$lt_cv_ar_at_file" = xno; then
6016 archiver_list_spec=
6017 else
6018 archiver_list_spec=$lt_cv_ar_at_file
6019 fi
6020
6021
6022
6023
6024
6025
6026
6027 if test -n "$ac_tool_prefix"; then
6028 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6029 set dummy ${ac_tool_prefix}strip; ac_word=$2
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6031 $as_echo_n "checking for $ac_word... " >&6; }
6032 if ${ac_cv_prog_STRIP+:} false; then :
6033 $as_echo_n "(cached) " >&6
6034 else
6035 if test -n "$STRIP"; then
6036 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6037 else
6038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6039 for as_dir in $PATH
6040 do
6041 IFS=$as_save_IFS
6042 test -z "$as_dir" && as_dir=.
6043 for ac_exec_ext in '' $ac_executable_extensions; do
6044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6045 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6047 break 2
6048 fi
6049 done
6050 done
6051 IFS=$as_save_IFS
6052
6053 fi
6054 fi
6055 STRIP=$ac_cv_prog_STRIP
6056 if test -n "$STRIP"; then
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6058 $as_echo "$STRIP" >&6; }
6059 else
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6061 $as_echo "no" >&6; }
6062 fi
6063
6064
6065 fi
6066 if test -z "$ac_cv_prog_STRIP"; then
6067 ac_ct_STRIP=$STRIP
6068 # Extract the first word of "strip", so it can be a program name with args.
6069 set dummy strip; ac_word=$2
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6071 $as_echo_n "checking for $ac_word... " >&6; }
6072 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6073 $as_echo_n "(cached) " >&6
6074 else
6075 if test -n "$ac_ct_STRIP"; then
6076 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6077 else
6078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6079 for as_dir in $PATH
6080 do
6081 IFS=$as_save_IFS
6082 test -z "$as_dir" && as_dir=.
6083 for ac_exec_ext in '' $ac_executable_extensions; do
6084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6085 ac_cv_prog_ac_ct_STRIP="strip"
6086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6087 break 2
6088 fi
6089 done
6090 done
6091 IFS=$as_save_IFS
6092
6093 fi
6094 fi
6095 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6096 if test -n "$ac_ct_STRIP"; then
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6098 $as_echo "$ac_ct_STRIP" >&6; }
6099 else
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6101 $as_echo "no" >&6; }
6102 fi
6103
6104 if test "x$ac_ct_STRIP" = x; then
6105 STRIP=":"
6106 else
6107 case $cross_compiling:$ac_tool_warned in
6108 yes:)
6109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6111 ac_tool_warned=yes ;;
6112 esac
6113 STRIP=$ac_ct_STRIP
6114 fi
6115 else
6116 STRIP="$ac_cv_prog_STRIP"
6117 fi
6118
6119 test -z "$STRIP" && STRIP=:
6120
6121
6122
6123
6124
6125
6126 if test -n "$ac_tool_prefix"; then
6127 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6128 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6130 $as_echo_n "checking for $ac_word... " >&6; }
6131 if ${ac_cv_prog_RANLIB+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -n "$RANLIB"; then
6135 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150 IFS=$as_save_IFS
6151
6152 fi
6153 fi
6154 RANLIB=$ac_cv_prog_RANLIB
6155 if test -n "$RANLIB"; then
6156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6157 $as_echo "$RANLIB" >&6; }
6158 else
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6160 $as_echo "no" >&6; }
6161 fi
6162
6163
6164 fi
6165 if test -z "$ac_cv_prog_RANLIB"; then
6166 ac_ct_RANLIB=$RANLIB
6167 # Extract the first word of "ranlib", so it can be a program name with args.
6168 set dummy ranlib; ac_word=$2
6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6170 $as_echo_n "checking for $ac_word... " >&6; }
6171 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6172 $as_echo_n "(cached) " >&6
6173 else
6174 if test -n "$ac_ct_RANLIB"; then
6175 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6176 else
6177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6178 for as_dir in $PATH
6179 do
6180 IFS=$as_save_IFS
6181 test -z "$as_dir" && as_dir=.
6182 for ac_exec_ext in '' $ac_executable_extensions; do
6183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6184 ac_cv_prog_ac_ct_RANLIB="ranlib"
6185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6186 break 2
6187 fi
6188 done
6189 done
6190 IFS=$as_save_IFS
6191
6192 fi
6193 fi
6194 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6195 if test -n "$ac_ct_RANLIB"; then
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6197 $as_echo "$ac_ct_RANLIB" >&6; }
6198 else
6199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6200 $as_echo "no" >&6; }
6201 fi
6202
6203 if test "x$ac_ct_RANLIB" = x; then
6204 RANLIB=":"
6205 else
6206 case $cross_compiling:$ac_tool_warned in
6207 yes:)
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6210 ac_tool_warned=yes ;;
6211 esac
6212 RANLIB=$ac_ct_RANLIB
6213 fi
6214 else
6215 RANLIB="$ac_cv_prog_RANLIB"
6216 fi
6217
6218 test -z "$RANLIB" && RANLIB=:
6219
6220
6221
6222
6223
6224
6225 # Determine commands to create old-style static archives.
6226 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6227 old_postinstall_cmds='chmod 644 $oldlib'
6228 old_postuninstall_cmds=
6229
6230 if test -n "$RANLIB"; then
6231 case $host_os in
6232 openbsd*)
6233 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6234 ;;
6235 *)
6236 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6237 ;;
6238 esac
6239 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6240 fi
6241
6242 case $host_os in
6243 darwin*)
6244 lock_old_archive_extraction=yes ;;
6245 *)
6246 lock_old_archive_extraction=no ;;
6247 esac
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262
6263
6264
6265
6266
6267
6268
6269
6270
6271
6272
6273
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287 # If no C compiler was specified, use CC.
6288 LTCC=${LTCC-"$CC"}
6289
6290 # If no C compiler flags were specified, use CFLAGS.
6291 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6292
6293 # Allow CC to be a program name with arguments.
6294 compiler=$CC
6295
6296
6297 # Check for command to grab the raw symbol name followed by C symbol from nm.
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6299 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6300 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6301 $as_echo_n "(cached) " >&6
6302 else
6303
6304 # These are sane defaults that work on at least a few old systems.
6305 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6306
6307 # Character class describing NM global symbol codes.
6308 symcode='[BCDEGRST]'
6309
6310 # Regexp to match symbols that can be accessed directly from C.
6311 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6312
6313 # Define system-specific variables.
6314 case $host_os in
6315 aix*)
6316 symcode='[BCDT]'
6317 ;;
6318 cygwin* | mingw* | pw32* | cegcc*)
6319 symcode='[ABCDGISTW]'
6320 ;;
6321 hpux*)
6322 if test "$host_cpu" = ia64; then
6323 symcode='[ABCDEGRST]'
6324 fi
6325 ;;
6326 irix* | nonstopux*)
6327 symcode='[BCDEGRST]'
6328 ;;
6329 osf*)
6330 symcode='[BCDEGQRST]'
6331 ;;
6332 solaris*)
6333 symcode='[BDRT]'
6334 ;;
6335 sco3.2v5*)
6336 symcode='[DT]'
6337 ;;
6338 sysv4.2uw2*)
6339 symcode='[DT]'
6340 ;;
6341 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6342 symcode='[ABDT]'
6343 ;;
6344 sysv4)
6345 symcode='[DFNSTU]'
6346 ;;
6347 esac
6348
6349 # If we're using GNU nm, then use its standard symbol codes.
6350 case `$NM -V 2>&1` in
6351 *GNU* | *'with BFD'*)
6352 symcode='[ABCDGIRSTW]' ;;
6353 esac
6354
6355 # Transform an extracted symbol line into a proper C declaration.
6356 # Some systems (esp. on ia64) link data and code symbols differently,
6357 # so use this general approach.
6358 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6359
6360 # Transform an extracted symbol line into symbol name and symbol address
6361 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6362 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'"
6363
6364 # Handle CRLF in mingw tool chain
6365 opt_cr=
6366 case $build_os in
6367 mingw*)
6368 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6369 ;;
6370 esac
6371
6372 # Try without a prefix underscore, then with it.
6373 for ac_symprfx in "" "_"; do
6374
6375 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6376 symxfrm="\\1 $ac_symprfx\\2 \\2"
6377
6378 # Write the raw and C identifiers.
6379 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6380 # Fake it for dumpbin and say T for any non-static function
6381 # and D for any global variable.
6382 # Also find C++ and __fastcall symbols from MSVC++,
6383 # which start with @ or ?.
6384 lt_cv_sys_global_symbol_pipe="$AWK '"\
6385 " {last_section=section; section=\$ 3};"\
6386 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6387 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6388 " \$ 0!~/External *\|/{next};"\
6389 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6390 " {if(hide[section]) next};"\
6391 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6392 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6393 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6394 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6395 " ' prfx=^$ac_symprfx"
6396 else
6397 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6398 fi
6399 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6400
6401 # Check to see that the pipe works correctly.
6402 pipe_works=no
6403
6404 rm -f conftest*
6405 cat > conftest.$ac_ext <<_LT_EOF
6406 #ifdef __cplusplus
6407 extern "C" {
6408 #endif
6409 char nm_test_var;
6410 void nm_test_func(void);
6411 void nm_test_func(void){}
6412 #ifdef __cplusplus
6413 }
6414 #endif
6415 int main(){nm_test_var='a';nm_test_func();return(0);}
6416 _LT_EOF
6417
6418 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6419 (eval $ac_compile) 2>&5
6420 ac_status=$?
6421 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6422 test $ac_status = 0; }; then
6423 # Now try to grab the symbols.
6424 nlist=conftest.nm
6425 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6426 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6427 ac_status=$?
6428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6429 test $ac_status = 0; } && test -s "$nlist"; then
6430 # Try sorting and uniquifying the output.
6431 if sort "$nlist" | uniq > "$nlist"T; then
6432 mv -f "$nlist"T "$nlist"
6433 else
6434 rm -f "$nlist"T
6435 fi
6436
6437 # Make sure that we snagged all the symbols we need.
6438 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6439 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6440 cat <<_LT_EOF > conftest.$ac_ext
6441 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6442 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6443 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6444 relocations are performed -- see ld's documentation on pseudo-relocs. */
6445 # define LT_DLSYM_CONST
6446 #elif defined(__osf__)
6447 /* This system does not cope well with relocations in const data. */
6448 # define LT_DLSYM_CONST
6449 #else
6450 # define LT_DLSYM_CONST const
6451 #endif
6452
6453 #ifdef __cplusplus
6454 extern "C" {
6455 #endif
6456
6457 _LT_EOF
6458 # Now generate the symbol file.
6459 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6460
6461 cat <<_LT_EOF >> conftest.$ac_ext
6462
6463 /* The mapping between symbol names and symbols. */
6464 LT_DLSYM_CONST struct {
6465 const char *name;
6466 void *address;
6467 }
6468 lt__PROGRAM__LTX_preloaded_symbols[] =
6469 {
6470 { "@PROGRAM@", (void *) 0 },
6471 _LT_EOF
6472 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6473 cat <<\_LT_EOF >> conftest.$ac_ext
6474 {0, (void *) 0}
6475 };
6476
6477 /* This works around a problem in FreeBSD linker */
6478 #ifdef FREEBSD_WORKAROUND
6479 static const void *lt_preloaded_setup() {
6480 return lt__PROGRAM__LTX_preloaded_symbols;
6481 }
6482 #endif
6483
6484 #ifdef __cplusplus
6485 }
6486 #endif
6487 _LT_EOF
6488 # Now try linking the two files.
6489 mv conftest.$ac_objext conftstm.$ac_objext
6490 lt_globsym_save_LIBS=$LIBS
6491 lt_globsym_save_CFLAGS=$CFLAGS
6492 LIBS="conftstm.$ac_objext"
6493 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6494 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6495 (eval $ac_link) 2>&5
6496 ac_status=$?
6497 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6498 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6499 pipe_works=yes
6500 fi
6501 LIBS=$lt_globsym_save_LIBS
6502 CFLAGS=$lt_globsym_save_CFLAGS
6503 else
6504 echo "cannot find nm_test_func in $nlist" >&5
6505 fi
6506 else
6507 echo "cannot find nm_test_var in $nlist" >&5
6508 fi
6509 else
6510 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6511 fi
6512 else
6513 echo "$progname: failed program was:" >&5
6514 cat conftest.$ac_ext >&5
6515 fi
6516 rm -rf conftest* conftst*
6517
6518 # Do not use the global_symbol_pipe unless it works.
6519 if test "$pipe_works" = yes; then
6520 break
6521 else
6522 lt_cv_sys_global_symbol_pipe=
6523 fi
6524 done
6525
6526 fi
6527
6528 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6529 lt_cv_sys_global_symbol_to_cdecl=
6530 fi
6531 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6533 $as_echo "failed" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6536 $as_echo "ok" >&6; }
6537 fi
6538
6539 # Response file support.
6540 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6541 nm_file_list_spec='@'
6542 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6543 nm_file_list_spec='@'
6544 fi
6545
6546
6547
6548
6549
6550
6551
6552
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571
6572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6573 $as_echo_n "checking for sysroot... " >&6; }
6574
6575 # Check whether --with-sysroot was given.
6576 if test "${with_sysroot+set}" = set; then :
6577 withval=$with_sysroot;
6578 else
6579 with_sysroot=no
6580 fi
6581
6582
6583 lt_sysroot=
6584 case ${with_sysroot} in #(
6585 yes)
6586 if test "$GCC" = yes; then
6587 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6588 fi
6589 ;; #(
6590 /*)
6591 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6592 ;; #(
6593 no|'')
6594 ;; #(
6595 *)
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6597 $as_echo "${with_sysroot}" >&6; }
6598 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6599 ;;
6600 esac
6601
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6603 $as_echo "${lt_sysroot:-no}" >&6; }
6604
6605
6606
6607
6608
6609 # Check whether --enable-libtool-lock was given.
6610 if test "${enable_libtool_lock+set}" = set; then :
6611 enableval=$enable_libtool_lock;
6612 fi
6613
6614 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6615
6616 # Some flags need to be propagated to the compiler or linker for good
6617 # libtool support.
6618 case $host in
6619 ia64-*-hpux*)
6620 # Find out which ABI we are using.
6621 echo 'int i;' > conftest.$ac_ext
6622 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6623 (eval $ac_compile) 2>&5
6624 ac_status=$?
6625 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6626 test $ac_status = 0; }; then
6627 case `/usr/bin/file conftest.$ac_objext` in
6628 *ELF-32*)
6629 HPUX_IA64_MODE="32"
6630 ;;
6631 *ELF-64*)
6632 HPUX_IA64_MODE="64"
6633 ;;
6634 esac
6635 fi
6636 rm -rf conftest*
6637 ;;
6638 *-*-irix6*)
6639 # Find out which ABI we are using.
6640 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6641 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6642 (eval $ac_compile) 2>&5
6643 ac_status=$?
6644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6645 test $ac_status = 0; }; then
6646 if test "$lt_cv_prog_gnu_ld" = yes; then
6647 case `/usr/bin/file conftest.$ac_objext` in
6648 *32-bit*)
6649 LD="${LD-ld} -melf32bsmip"
6650 ;;
6651 *N32*)
6652 LD="${LD-ld} -melf32bmipn32"
6653 ;;
6654 *64-bit*)
6655 LD="${LD-ld} -melf64bmip"
6656 ;;
6657 esac
6658 else
6659 case `/usr/bin/file conftest.$ac_objext` in
6660 *32-bit*)
6661 LD="${LD-ld} -32"
6662 ;;
6663 *N32*)
6664 LD="${LD-ld} -n32"
6665 ;;
6666 *64-bit*)
6667 LD="${LD-ld} -64"
6668 ;;
6669 esac
6670 fi
6671 fi
6672 rm -rf conftest*
6673 ;;
6674
6675 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6676 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6677 # Find out which ABI we are using.
6678 echo 'int i;' > conftest.$ac_ext
6679 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6680 (eval $ac_compile) 2>&5
6681 ac_status=$?
6682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6683 test $ac_status = 0; }; then
6684 case `/usr/bin/file conftest.o` in
6685 *32-bit*)
6686 case $host in
6687 x86_64-*kfreebsd*-gnu)
6688 LD="${LD-ld} -m elf_i386_fbsd"
6689 ;;
6690 x86_64-*linux*)
6691 LD="${LD-ld} -m elf_i386"
6692 ;;
6693 ppc64-*linux*|powerpc64-*linux*)
6694 LD="${LD-ld} -m elf32ppclinux"
6695 ;;
6696 s390x-*linux*)
6697 LD="${LD-ld} -m elf_s390"
6698 ;;
6699 sparc64-*linux*)
6700 LD="${LD-ld} -m elf32_sparc"
6701 ;;
6702 esac
6703 ;;
6704 *64-bit*)
6705 case $host in
6706 x86_64-*kfreebsd*-gnu)
6707 LD="${LD-ld} -m elf_x86_64_fbsd"
6708 ;;
6709 x86_64-*linux*)
6710 LD="${LD-ld} -m elf_x86_64"
6711 ;;
6712 ppc*-*linux*|powerpc*-*linux*)
6713 LD="${LD-ld} -m elf64ppc"
6714 ;;
6715 s390*-*linux*|s390*-*tpf*)
6716 LD="${LD-ld} -m elf64_s390"
6717 ;;
6718 sparc*-*linux*)
6719 LD="${LD-ld} -m elf64_sparc"
6720 ;;
6721 esac
6722 ;;
6723 esac
6724 fi
6725 rm -rf conftest*
6726 ;;
6727
6728 *-*-sco3.2v5*)
6729 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6730 SAVE_CFLAGS="$CFLAGS"
6731 CFLAGS="$CFLAGS -belf"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6733 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6734 if ${lt_cv_cc_needs_belf+:} false; then :
6735 $as_echo_n "(cached) " >&6
6736 else
6737 ac_ext=c
6738 ac_cpp='$CPP $CPPFLAGS'
6739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6742
6743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6744 /* end confdefs.h. */
6745
6746 int
6747 main ()
6748 {
6749
6750 ;
6751 return 0;
6752 }
6753 _ACEOF
6754 if ac_fn_c_try_link "$LINENO"; then :
6755 lt_cv_cc_needs_belf=yes
6756 else
6757 lt_cv_cc_needs_belf=no
6758 fi
6759 rm -f core conftest.err conftest.$ac_objext \
6760 conftest$ac_exeext conftest.$ac_ext
6761 ac_ext=c
6762 ac_cpp='$CPP $CPPFLAGS'
6763 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6764 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6765 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6766
6767 fi
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6769 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6770 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6771 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6772 CFLAGS="$SAVE_CFLAGS"
6773 fi
6774 ;;
6775 *-*solaris*)
6776 # Find out which ABI we are using.
6777 echo 'int i;' > conftest.$ac_ext
6778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6779 (eval $ac_compile) 2>&5
6780 ac_status=$?
6781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6782 test $ac_status = 0; }; then
6783 case `/usr/bin/file conftest.o` in
6784 *64-bit*)
6785 case $lt_cv_prog_gnu_ld in
6786 yes*)
6787 case $host in
6788 i?86-*-solaris*)
6789 LD="${LD-ld} -m elf_x86_64"
6790 ;;
6791 sparc*-*-solaris*)
6792 LD="${LD-ld} -m elf64_sparc"
6793 ;;
6794 esac
6795 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6796 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6797 LD="${LD-ld}_sol2"
6798 fi
6799 ;;
6800 *)
6801 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6802 LD="${LD-ld} -64"
6803 fi
6804 ;;
6805 esac
6806 ;;
6807 esac
6808 fi
6809 rm -rf conftest*
6810 ;;
6811 esac
6812
6813 need_locks="$enable_libtool_lock"
6814
6815 if test -n "$ac_tool_prefix"; then
6816 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6817 set dummy ${ac_tool_prefix}mt; ac_word=$2
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6819 $as_echo_n "checking for $ac_word... " >&6; }
6820 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6821 $as_echo_n "(cached) " >&6
6822 else
6823 if test -n "$MANIFEST_TOOL"; then
6824 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6825 else
6826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6827 for as_dir in $PATH
6828 do
6829 IFS=$as_save_IFS
6830 test -z "$as_dir" && as_dir=.
6831 for ac_exec_ext in '' $ac_executable_extensions; do
6832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6833 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6834 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6835 break 2
6836 fi
6837 done
6838 done
6839 IFS=$as_save_IFS
6840
6841 fi
6842 fi
6843 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6844 if test -n "$MANIFEST_TOOL"; then
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6846 $as_echo "$MANIFEST_TOOL" >&6; }
6847 else
6848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849 $as_echo "no" >&6; }
6850 fi
6851
6852
6853 fi
6854 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6855 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6856 # Extract the first word of "mt", so it can be a program name with args.
6857 set dummy mt; ac_word=$2
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6859 $as_echo_n "checking for $ac_word... " >&6; }
6860 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6861 $as_echo_n "(cached) " >&6
6862 else
6863 if test -n "$ac_ct_MANIFEST_TOOL"; then
6864 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6873 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6874 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6884 if test -n "$ac_ct_MANIFEST_TOOL"; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6886 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6887 else
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6889 $as_echo "no" >&6; }
6890 fi
6891
6892 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6893 MANIFEST_TOOL=":"
6894 else
6895 case $cross_compiling:$ac_tool_warned in
6896 yes:)
6897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6898 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6899 ac_tool_warned=yes ;;
6900 esac
6901 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6902 fi
6903 else
6904 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6905 fi
6906
6907 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6909 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6910 if ${lt_cv_path_mainfest_tool+:} false; then :
6911 $as_echo_n "(cached) " >&6
6912 else
6913 lt_cv_path_mainfest_tool=no
6914 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6915 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6916 cat conftest.err >&5
6917 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6918 lt_cv_path_mainfest_tool=yes
6919 fi
6920 rm -f conftest*
6921 fi
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6923 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6924 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6925 MANIFEST_TOOL=:
6926 fi
6927
6928
6929
6930
6931
6932
6933 case $host_os in
6934 rhapsody* | darwin*)
6935 if test -n "$ac_tool_prefix"; then
6936 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6937 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$DSYMUTIL"; then
6944 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6948 do
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6956 fi
6957 done
6958 done
6959 IFS=$as_save_IFS
6960
6961 fi
6962 fi
6963 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6964 if test -n "$DSYMUTIL"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6966 $as_echo "$DSYMUTIL" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6970 fi
6971
6972
6973 fi
6974 if test -z "$ac_cv_prog_DSYMUTIL"; then
6975 ac_ct_DSYMUTIL=$DSYMUTIL
6976 # Extract the first word of "dsymutil", so it can be a program name with args.
6977 set dummy dsymutil; ac_word=$2
6978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6979 $as_echo_n "checking for $ac_word... " >&6; }
6980 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6981 $as_echo_n "(cached) " >&6
6982 else
6983 if test -n "$ac_ct_DSYMUTIL"; then
6984 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6985 else
6986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6987 for as_dir in $PATH
6988 do
6989 IFS=$as_save_IFS
6990 test -z "$as_dir" && as_dir=.
6991 for ac_exec_ext in '' $ac_executable_extensions; do
6992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6993 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6995 break 2
6996 fi
6997 done
6998 done
6999 IFS=$as_save_IFS
7000
7001 fi
7002 fi
7003 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7004 if test -n "$ac_ct_DSYMUTIL"; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7006 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7007 else
7008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7009 $as_echo "no" >&6; }
7010 fi
7011
7012 if test "x$ac_ct_DSYMUTIL" = x; then
7013 DSYMUTIL=":"
7014 else
7015 case $cross_compiling:$ac_tool_warned in
7016 yes:)
7017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7018 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7019 ac_tool_warned=yes ;;
7020 esac
7021 DSYMUTIL=$ac_ct_DSYMUTIL
7022 fi
7023 else
7024 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7025 fi
7026
7027 if test -n "$ac_tool_prefix"; then
7028 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7031 $as_echo_n "checking for $ac_word... " >&6; }
7032 if ${ac_cv_prog_NMEDIT+:} false; then :
7033 $as_echo_n "(cached) " >&6
7034 else
7035 if test -n "$NMEDIT"; then
7036 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041 IFS=$as_save_IFS
7042 test -z "$as_dir" && as_dir=.
7043 for ac_exec_ext in '' $ac_executable_extensions; do
7044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7045 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7047 break 2
7048 fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 NMEDIT=$ac_cv_prog_NMEDIT
7056 if test -n "$NMEDIT"; then
7057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7058 $as_echo "$NMEDIT" >&6; }
7059 else
7060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7061 $as_echo "no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_NMEDIT"; then
7067 ac_ct_NMEDIT=$NMEDIT
7068 # Extract the first word of "nmedit", so it can be a program name with args.
7069 set dummy nmedit; ac_word=$2
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7071 $as_echo_n "checking for $ac_word... " >&6; }
7072 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7073 $as_echo_n "(cached) " >&6
7074 else
7075 if test -n "$ac_ct_NMEDIT"; then
7076 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081 IFS=$as_save_IFS
7082 test -z "$as_dir" && as_dir=.
7083 for ac_exec_ext in '' $ac_executable_extensions; do
7084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7085 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7087 break 2
7088 fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7096 if test -n "$ac_ct_NMEDIT"; then
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7098 $as_echo "$ac_ct_NMEDIT" >&6; }
7099 else
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7101 $as_echo "no" >&6; }
7102 fi
7103
7104 if test "x$ac_ct_NMEDIT" = x; then
7105 NMEDIT=":"
7106 else
7107 case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7110 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7111 ac_tool_warned=yes ;;
7112 esac
7113 NMEDIT=$ac_ct_NMEDIT
7114 fi
7115 else
7116 NMEDIT="$ac_cv_prog_NMEDIT"
7117 fi
7118
7119 if test -n "$ac_tool_prefix"; then
7120 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7121 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7123 $as_echo_n "checking for $ac_word... " >&6; }
7124 if ${ac_cv_prog_LIPO+:} false; then :
7125 $as_echo_n "(cached) " >&6
7126 else
7127 if test -n "$LIPO"; then
7128 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7129 else
7130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7131 for as_dir in $PATH
7132 do
7133 IFS=$as_save_IFS
7134 test -z "$as_dir" && as_dir=.
7135 for ac_exec_ext in '' $ac_executable_extensions; do
7136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7137 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7139 break 2
7140 fi
7141 done
7142 done
7143 IFS=$as_save_IFS
7144
7145 fi
7146 fi
7147 LIPO=$ac_cv_prog_LIPO
7148 if test -n "$LIPO"; then
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7150 $as_echo "$LIPO" >&6; }
7151 else
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7153 $as_echo "no" >&6; }
7154 fi
7155
7156
7157 fi
7158 if test -z "$ac_cv_prog_LIPO"; then
7159 ac_ct_LIPO=$LIPO
7160 # Extract the first word of "lipo", so it can be a program name with args.
7161 set dummy lipo; ac_word=$2
7162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7163 $as_echo_n "checking for $ac_word... " >&6; }
7164 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7165 $as_echo_n "(cached) " >&6
7166 else
7167 if test -n "$ac_ct_LIPO"; then
7168 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7169 else
7170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7171 for as_dir in $PATH
7172 do
7173 IFS=$as_save_IFS
7174 test -z "$as_dir" && as_dir=.
7175 for ac_exec_ext in '' $ac_executable_extensions; do
7176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7177 ac_cv_prog_ac_ct_LIPO="lipo"
7178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7179 break 2
7180 fi
7181 done
7182 done
7183 IFS=$as_save_IFS
7184
7185 fi
7186 fi
7187 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7188 if test -n "$ac_ct_LIPO"; then
7189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7190 $as_echo "$ac_ct_LIPO" >&6; }
7191 else
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7193 $as_echo "no" >&6; }
7194 fi
7195
7196 if test "x$ac_ct_LIPO" = x; then
7197 LIPO=":"
7198 else
7199 case $cross_compiling:$ac_tool_warned in
7200 yes:)
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7203 ac_tool_warned=yes ;;
7204 esac
7205 LIPO=$ac_ct_LIPO
7206 fi
7207 else
7208 LIPO="$ac_cv_prog_LIPO"
7209 fi
7210
7211 if test -n "$ac_tool_prefix"; then
7212 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7213 set dummy ${ac_tool_prefix}otool; ac_word=$2
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7215 $as_echo_n "checking for $ac_word... " >&6; }
7216 if ${ac_cv_prog_OTOOL+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 if test -n "$OTOOL"; then
7220 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7221 else
7222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7223 for as_dir in $PATH
7224 do
7225 IFS=$as_save_IFS
7226 test -z "$as_dir" && as_dir=.
7227 for ac_exec_ext in '' $ac_executable_extensions; do
7228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7229 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7231 break 2
7232 fi
7233 done
7234 done
7235 IFS=$as_save_IFS
7236
7237 fi
7238 fi
7239 OTOOL=$ac_cv_prog_OTOOL
7240 if test -n "$OTOOL"; then
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7242 $as_echo "$OTOOL" >&6; }
7243 else
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7245 $as_echo "no" >&6; }
7246 fi
7247
7248
7249 fi
7250 if test -z "$ac_cv_prog_OTOOL"; then
7251 ac_ct_OTOOL=$OTOOL
7252 # Extract the first word of "otool", so it can be a program name with args.
7253 set dummy otool; ac_word=$2
7254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7255 $as_echo_n "checking for $ac_word... " >&6; }
7256 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7257 $as_echo_n "(cached) " >&6
7258 else
7259 if test -n "$ac_ct_OTOOL"; then
7260 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7261 else
7262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7263 for as_dir in $PATH
7264 do
7265 IFS=$as_save_IFS
7266 test -z "$as_dir" && as_dir=.
7267 for ac_exec_ext in '' $ac_executable_extensions; do
7268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7269 ac_cv_prog_ac_ct_OTOOL="otool"
7270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7271 break 2
7272 fi
7273 done
7274 done
7275 IFS=$as_save_IFS
7276
7277 fi
7278 fi
7279 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7280 if test -n "$ac_ct_OTOOL"; then
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7282 $as_echo "$ac_ct_OTOOL" >&6; }
7283 else
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7285 $as_echo "no" >&6; }
7286 fi
7287
7288 if test "x$ac_ct_OTOOL" = x; then
7289 OTOOL=":"
7290 else
7291 case $cross_compiling:$ac_tool_warned in
7292 yes:)
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7294 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7295 ac_tool_warned=yes ;;
7296 esac
7297 OTOOL=$ac_ct_OTOOL
7298 fi
7299 else
7300 OTOOL="$ac_cv_prog_OTOOL"
7301 fi
7302
7303 if test -n "$ac_tool_prefix"; then
7304 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7305 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7307 $as_echo_n "checking for $ac_word... " >&6; }
7308 if ${ac_cv_prog_OTOOL64+:} false; then :
7309 $as_echo_n "(cached) " >&6
7310 else
7311 if test -n "$OTOOL64"; then
7312 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7313 else
7314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7315 for as_dir in $PATH
7316 do
7317 IFS=$as_save_IFS
7318 test -z "$as_dir" && as_dir=.
7319 for ac_exec_ext in '' $ac_executable_extensions; do
7320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7321 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7323 break 2
7324 fi
7325 done
7326 done
7327 IFS=$as_save_IFS
7328
7329 fi
7330 fi
7331 OTOOL64=$ac_cv_prog_OTOOL64
7332 if test -n "$OTOOL64"; then
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7334 $as_echo "$OTOOL64" >&6; }
7335 else
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7337 $as_echo "no" >&6; }
7338 fi
7339
7340
7341 fi
7342 if test -z "$ac_cv_prog_OTOOL64"; then
7343 ac_ct_OTOOL64=$OTOOL64
7344 # Extract the first word of "otool64", so it can be a program name with args.
7345 set dummy otool64; ac_word=$2
7346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7347 $as_echo_n "checking for $ac_word... " >&6; }
7348 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7349 $as_echo_n "(cached) " >&6
7350 else
7351 if test -n "$ac_ct_OTOOL64"; then
7352 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7353 else
7354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357 IFS=$as_save_IFS
7358 test -z "$as_dir" && as_dir=.
7359 for ac_exec_ext in '' $ac_executable_extensions; do
7360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7361 ac_cv_prog_ac_ct_OTOOL64="otool64"
7362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7363 break 2
7364 fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369 fi
7370 fi
7371 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7372 if test -n "$ac_ct_OTOOL64"; then
7373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7374 $as_echo "$ac_ct_OTOOL64" >&6; }
7375 else
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7377 $as_echo "no" >&6; }
7378 fi
7379
7380 if test "x$ac_ct_OTOOL64" = x; then
7381 OTOOL64=":"
7382 else
7383 case $cross_compiling:$ac_tool_warned in
7384 yes:)
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7386 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7387 ac_tool_warned=yes ;;
7388 esac
7389 OTOOL64=$ac_ct_OTOOL64
7390 fi
7391 else
7392 OTOOL64="$ac_cv_prog_OTOOL64"
7393 fi
7394
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7422 $as_echo_n "checking for -single_module linker flag... " >&6; }
7423 if ${lt_cv_apple_cc_single_mod+:} false; then :
7424 $as_echo_n "(cached) " >&6
7425 else
7426 lt_cv_apple_cc_single_mod=no
7427 if test -z "${LT_MULTI_MODULE}"; then
7428 # By default we will add the -single_module flag. You can override
7429 # by either setting the environment variable LT_MULTI_MODULE
7430 # non-empty at configure time, or by adding -multi_module to the
7431 # link flags.
7432 rm -rf libconftest.dylib*
7433 echo "int foo(void){return 1;}" > conftest.c
7434 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7435 -dynamiclib -Wl,-single_module conftest.c" >&5
7436 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7437 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7438 _lt_result=$?
7439 # If there is a non-empty error log, and "single_module"
7440 # appears in it, assume the flag caused a linker warning
7441 if test -s conftest.err && $GREP single_module conftest.err; then
7442 cat conftest.err >&5
7443 # Otherwise, if the output was created with a 0 exit code from
7444 # the compiler, it worked.
7445 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7446 lt_cv_apple_cc_single_mod=yes
7447 else
7448 cat conftest.err >&5
7449 fi
7450 rm -rf libconftest.dylib*
7451 rm -f conftest.*
7452 fi
7453 fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7455 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7456
7457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7458 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7459 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7460 $as_echo_n "(cached) " >&6
7461 else
7462 lt_cv_ld_exported_symbols_list=no
7463 save_LDFLAGS=$LDFLAGS
7464 echo "_main" > conftest.sym
7465 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7467 /* end confdefs.h. */
7468
7469 int
7470 main ()
7471 {
7472
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 if ac_fn_c_try_link "$LINENO"; then :
7478 lt_cv_ld_exported_symbols_list=yes
7479 else
7480 lt_cv_ld_exported_symbols_list=no
7481 fi
7482 rm -f core conftest.err conftest.$ac_objext \
7483 conftest$ac_exeext conftest.$ac_ext
7484 LDFLAGS="$save_LDFLAGS"
7485
7486 fi
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7488 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7491 $as_echo_n "checking for -force_load linker flag... " >&6; }
7492 if ${lt_cv_ld_force_load+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 lt_cv_ld_force_load=no
7496 cat > conftest.c << _LT_EOF
7497 int forced_loaded() { return 2;}
7498 _LT_EOF
7499 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7500 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7501 echo "$AR cru libconftest.a conftest.o" >&5
7502 $AR cru libconftest.a conftest.o 2>&5
7503 echo "$RANLIB libconftest.a" >&5
7504 $RANLIB libconftest.a 2>&5
7505 cat > conftest.c << _LT_EOF
7506 int main() { return 0;}
7507 _LT_EOF
7508 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7509 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7510 _lt_result=$?
7511 if test -s conftest.err && $GREP force_load conftest.err; then
7512 cat conftest.err >&5
7513 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7514 lt_cv_ld_force_load=yes
7515 else
7516 cat conftest.err >&5
7517 fi
7518 rm -f conftest.err libconftest.a conftest conftest.c
7519 rm -rf conftest.dSYM
7520
7521 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7523 $as_echo "$lt_cv_ld_force_load" >&6; }
7524 case $host_os in
7525 rhapsody* | darwin1.[012])
7526 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7527 darwin1.*)
7528 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7529 darwin*) # darwin 5.x on
7530 # if running on 10.5 or later, the deployment target defaults
7531 # to the OS version, if on x86, and 10.4, the deployment
7532 # target defaults to 10.4. Don't you love it?
7533 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7534 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7535 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7536 10.[012]*)
7537 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7538 10.*)
7539 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7540 esac
7541 ;;
7542 esac
7543 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7544 _lt_dar_single_mod='$single_module'
7545 fi
7546 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7547 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7548 else
7549 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7550 fi
7551 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7552 _lt_dsymutil='~$DSYMUTIL $lib || :'
7553 else
7554 _lt_dsymutil=
7555 fi
7556 ;;
7557 esac
7558
7559 ac_ext=c
7560 ac_cpp='$CPP $CPPFLAGS'
7561 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7562 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7563 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7565 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7566 # On Suns, sometimes $CPP names a directory.
7567 if test -n "$CPP" && test -d "$CPP"; then
7568 CPP=
7569 fi
7570 if test -z "$CPP"; then
7571 if ${ac_cv_prog_CPP+:} false; then :
7572 $as_echo_n "(cached) " >&6
7573 else
7574 # Double quotes because CPP needs to be expanded
7575 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7576 do
7577 ac_preproc_ok=false
7578 for ac_c_preproc_warn_flag in '' yes
7579 do
7580 # Use a header file that comes with gcc, so configuring glibc
7581 # with a fresh cross-compiler works.
7582 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7583 # <limits.h> exists even on freestanding compilers.
7584 # On the NeXT, cc -E runs the code through the compiler's parser,
7585 # not just through cpp. "Syntax error" is here to catch this case.
7586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7587 /* end confdefs.h. */
7588 #ifdef __STDC__
7589 # include <limits.h>
7590 #else
7591 # include <assert.h>
7592 #endif
7593 Syntax error
7594 _ACEOF
7595 if ac_fn_c_try_cpp "$LINENO"; then :
7596
7597 else
7598 # Broken: fails on valid input.
7599 continue
7600 fi
7601 rm -f conftest.err conftest.i conftest.$ac_ext
7602
7603 # OK, works on sane cases. Now check whether nonexistent headers
7604 # can be detected and how.
7605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7606 /* end confdefs.h. */
7607 #include <ac_nonexistent.h>
7608 _ACEOF
7609 if ac_fn_c_try_cpp "$LINENO"; then :
7610 # Broken: success on invalid input.
7611 continue
7612 else
7613 # Passes both tests.
7614 ac_preproc_ok=:
7615 break
7616 fi
7617 rm -f conftest.err conftest.i conftest.$ac_ext
7618
7619 done
7620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7621 rm -f conftest.i conftest.err conftest.$ac_ext
7622 if $ac_preproc_ok; then :
7623 break
7624 fi
7625
7626 done
7627 ac_cv_prog_CPP=$CPP
7628
7629 fi
7630 CPP=$ac_cv_prog_CPP
7631 else
7632 ac_cv_prog_CPP=$CPP
7633 fi
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7635 $as_echo "$CPP" >&6; }
7636 ac_preproc_ok=false
7637 for ac_c_preproc_warn_flag in '' yes
7638 do
7639 # Use a header file that comes with gcc, so configuring glibc
7640 # with a fresh cross-compiler works.
7641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7642 # <limits.h> exists even on freestanding compilers.
7643 # On the NeXT, cc -E runs the code through the compiler's parser,
7644 # not just through cpp. "Syntax error" is here to catch this case.
7645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7646 /* end confdefs.h. */
7647 #ifdef __STDC__
7648 # include <limits.h>
7649 #else
7650 # include <assert.h>
7651 #endif
7652 Syntax error
7653 _ACEOF
7654 if ac_fn_c_try_cpp "$LINENO"; then :
7655
7656 else
7657 # Broken: fails on valid input.
7658 continue
7659 fi
7660 rm -f conftest.err conftest.i conftest.$ac_ext
7661
7662 # OK, works on sane cases. Now check whether nonexistent headers
7663 # can be detected and how.
7664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7665 /* end confdefs.h. */
7666 #include <ac_nonexistent.h>
7667 _ACEOF
7668 if ac_fn_c_try_cpp "$LINENO"; then :
7669 # Broken: success on invalid input.
7670 continue
7671 else
7672 # Passes both tests.
7673 ac_preproc_ok=:
7674 break
7675 fi
7676 rm -f conftest.err conftest.i conftest.$ac_ext
7677
7678 done
7679 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7680 rm -f conftest.i conftest.err conftest.$ac_ext
7681 if $ac_preproc_ok; then :
7682
7683 else
7684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7686 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7687 See \`config.log' for more details" "$LINENO" 5; }
7688 fi
7689
7690 ac_ext=c
7691 ac_cpp='$CPP $CPPFLAGS'
7692 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7693 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7694 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7695
7696
7697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7698 $as_echo_n "checking for ANSI C header files... " >&6; }
7699 if ${ac_cv_header_stdc+:} false; then :
7700 $as_echo_n "(cached) " >&6
7701 else
7702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7703 /* end confdefs.h. */
7704 #include <stdlib.h>
7705 #include <stdarg.h>
7706 #include <string.h>
7707 #include <float.h>
7708
7709 int
7710 main ()
7711 {
7712
7713 ;
7714 return 0;
7715 }
7716 _ACEOF
7717 if ac_fn_c_try_compile "$LINENO"; then :
7718 ac_cv_header_stdc=yes
7719 else
7720 ac_cv_header_stdc=no
7721 fi
7722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7723
7724 if test $ac_cv_header_stdc = yes; then
7725 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7727 /* end confdefs.h. */
7728 #include <string.h>
7729
7730 _ACEOF
7731 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7732 $EGREP "memchr" >/dev/null 2>&1; then :
7733
7734 else
7735 ac_cv_header_stdc=no
7736 fi
7737 rm -f conftest*
7738
7739 fi
7740
7741 if test $ac_cv_header_stdc = yes; then
7742 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7744 /* end confdefs.h. */
7745 #include <stdlib.h>
7746
7747 _ACEOF
7748 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7749 $EGREP "free" >/dev/null 2>&1; then :
7750
7751 else
7752 ac_cv_header_stdc=no
7753 fi
7754 rm -f conftest*
7755
7756 fi
7757
7758 if test $ac_cv_header_stdc = yes; then
7759 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7760 if test "$cross_compiling" = yes; then :
7761 :
7762 else
7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7764 /* end confdefs.h. */
7765 #include <ctype.h>
7766 #include <stdlib.h>
7767 #if ((' ' & 0x0FF) == 0x020)
7768 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7769 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7770 #else
7771 # define ISLOWER(c) \
7772 (('a' <= (c) && (c) <= 'i') \
7773 || ('j' <= (c) && (c) <= 'r') \
7774 || ('s' <= (c) && (c) <= 'z'))
7775 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7776 #endif
7777
7778 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7779 int
7780 main ()
7781 {
7782 int i;
7783 for (i = 0; i < 256; i++)
7784 if (XOR (islower (i), ISLOWER (i))
7785 || toupper (i) != TOUPPER (i))
7786 return 2;
7787 return 0;
7788 }
7789 _ACEOF
7790 if ac_fn_c_try_run "$LINENO"; then :
7791
7792 else
7793 ac_cv_header_stdc=no
7794 fi
7795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7796 conftest.$ac_objext conftest.beam conftest.$ac_ext
7797 fi
7798
7799 fi
7800 fi
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7802 $as_echo "$ac_cv_header_stdc" >&6; }
7803 if test $ac_cv_header_stdc = yes; then
7804
7805 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7806
7807 fi
7808
7809 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7810 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7811 inttypes.h stdint.h unistd.h
7812 do :
7813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7814 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7815 "
7816 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7817 cat >>confdefs.h <<_ACEOF
7818 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7819 _ACEOF
7820
7821 fi
7822
7823 done
7824
7825
7826 for ac_header in dlfcn.h
7827 do :
7828 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7829 "
7830 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7831 cat >>confdefs.h <<_ACEOF
7832 #define HAVE_DLFCN_H 1
7833 _ACEOF
7834
7835 fi
7836
7837 done
7838
7839
7840
7841
7842
7843 # Set options
7844
7845
7846
7847 enable_dlopen=no
7848
7849
7850 enable_win32_dll=no
7851
7852
7853
7854 # Check whether --enable-static was given.
7855 if test "${enable_static+set}" = set; then :
7856 enableval=$enable_static; p=${PACKAGE-default}
7857 case $enableval in
7858 yes) enable_static=yes ;;
7859 no) enable_static=no ;;
7860 *)
7861 enable_static=no
7862 # Look at the argument we got. We use all the common list separators.
7863 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7864 for pkg in $enableval; do
7865 IFS="$lt_save_ifs"
7866 if test "X$pkg" = "X$p"; then
7867 enable_static=yes
7868 fi
7869 done
7870 IFS="$lt_save_ifs"
7871 ;;
7872 esac
7873 else
7874 enable_static=yes
7875 fi
7876
7877
7878
7879
7880
7881
7882
7883
7884
7885
7886 # Check whether --with-pic was given.
7887 if test "${with_pic+set}" = set; then :
7888 withval=$with_pic; lt_p=${PACKAGE-default}
7889 case $withval in
7890 yes|no) pic_mode=$withval ;;
7891 *)
7892 pic_mode=default
7893 # Look at the argument we got. We use all the common list separators.
7894 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7895 for lt_pkg in $withval; do
7896 IFS="$lt_save_ifs"
7897 if test "X$lt_pkg" = "X$lt_p"; then
7898 pic_mode=yes
7899 fi
7900 done
7901 IFS="$lt_save_ifs"
7902 ;;
7903 esac
7904 else
7905 pic_mode=default
7906 fi
7907
7908
7909 test -z "$pic_mode" && pic_mode=default
7910
7911
7912
7913
7914
7915
7916
7917 # Check whether --enable-fast-install was given.
7918 if test "${enable_fast_install+set}" = set; then :
7919 enableval=$enable_fast_install; p=${PACKAGE-default}
7920 case $enableval in
7921 yes) enable_fast_install=yes ;;
7922 no) enable_fast_install=no ;;
7923 *)
7924 enable_fast_install=no
7925 # Look at the argument we got. We use all the common list separators.
7926 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7927 for pkg in $enableval; do
7928 IFS="$lt_save_ifs"
7929 if test "X$pkg" = "X$p"; then
7930 enable_fast_install=yes
7931 fi
7932 done
7933 IFS="$lt_save_ifs"
7934 ;;
7935 esac
7936 else
7937 enable_fast_install=yes
7938 fi
7939
7940
7941
7942
7943
7944
7945
7946
7947
7948
7949
7950 # This can be used to rebuild libtool when needed
7951 LIBTOOL_DEPS="$ltmain"
7952
7953 # Always use our own libtool.
7954 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
7955
7956
7957
7958
7959
7960
7961
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984
7985 test -z "$LN_S" && LN_S="ln -s"
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000 if test -n "${ZSH_VERSION+set}" ; then
8001 setopt NO_GLOB_SUBST
8002 fi
8003
8004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8005 $as_echo_n "checking for objdir... " >&6; }
8006 if ${lt_cv_objdir+:} false; then :
8007 $as_echo_n "(cached) " >&6
8008 else
8009 rm -f .libs 2>/dev/null
8010 mkdir .libs 2>/dev/null
8011 if test -d .libs; then
8012 lt_cv_objdir=.libs
8013 else
8014 # MS-DOS does not allow filenames that begin with a dot.
8015 lt_cv_objdir=_libs
8016 fi
8017 rmdir .libs 2>/dev/null
8018 fi
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8020 $as_echo "$lt_cv_objdir" >&6; }
8021 objdir=$lt_cv_objdir
8022
8023
8024
8025
8026
8027 cat >>confdefs.h <<_ACEOF
8028 #define LT_OBJDIR "$lt_cv_objdir/"
8029 _ACEOF
8030
8031
8032
8033
8034 case $host_os in
8035 aix3*)
8036 # AIX sometimes has problems with the GCC collect2 program. For some
8037 # reason, if we set the COLLECT_NAMES environment variable, the problems
8038 # vanish in a puff of smoke.
8039 if test "X${COLLECT_NAMES+set}" != Xset; then
8040 COLLECT_NAMES=
8041 export COLLECT_NAMES
8042 fi
8043 ;;
8044 esac
8045
8046 # Global variables:
8047 ofile=libtool
8048 can_build_shared=yes
8049
8050 # All known linkers require a `.a' archive for static linking (except MSVC,
8051 # which needs '.lib').
8052 libext=a
8053
8054 with_gnu_ld="$lt_cv_prog_gnu_ld"
8055
8056 old_CC="$CC"
8057 old_CFLAGS="$CFLAGS"
8058
8059 # Set sane defaults for various variables
8060 test -z "$CC" && CC=cc
8061 test -z "$LTCC" && LTCC=$CC
8062 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8063 test -z "$LD" && LD=ld
8064 test -z "$ac_objext" && ac_objext=o
8065
8066 for cc_temp in $compiler""; do
8067 case $cc_temp in
8068 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8069 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8070 \-*) ;;
8071 *) break;;
8072 esac
8073 done
8074 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8075
8076
8077 # Only perform the check for file, if the check method requires it
8078 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8079 case $deplibs_check_method in
8080 file_magic*)
8081 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8083 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8084 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8085 $as_echo_n "(cached) " >&6
8086 else
8087 case $MAGIC_CMD in
8088 [\\/*] | ?:[\\/]*)
8089 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8090 ;;
8091 *)
8092 lt_save_MAGIC_CMD="$MAGIC_CMD"
8093 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8094 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8095 for ac_dir in $ac_dummy; do
8096 IFS="$lt_save_ifs"
8097 test -z "$ac_dir" && ac_dir=.
8098 if test -f $ac_dir/${ac_tool_prefix}file; then
8099 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8100 if test -n "$file_magic_test_file"; then
8101 case $deplibs_check_method in
8102 "file_magic "*)
8103 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8104 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8105 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8106 $EGREP "$file_magic_regex" > /dev/null; then
8107 :
8108 else
8109 cat <<_LT_EOF 1>&2
8110
8111 *** Warning: the command libtool uses to detect shared libraries,
8112 *** $file_magic_cmd, produces output that libtool cannot recognize.
8113 *** The result is that libtool may fail to recognize shared libraries
8114 *** as such. This will affect the creation of libtool libraries that
8115 *** depend on shared libraries, but programs linked with such libtool
8116 *** libraries will work regardless of this problem. Nevertheless, you
8117 *** may want to report the problem to your system manager and/or to
8118 *** [email protected]
8119
8120 _LT_EOF
8121 fi ;;
8122 esac
8123 fi
8124 break
8125 fi
8126 done
8127 IFS="$lt_save_ifs"
8128 MAGIC_CMD="$lt_save_MAGIC_CMD"
8129 ;;
8130 esac
8131 fi
8132
8133 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8134 if test -n "$MAGIC_CMD"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8136 $as_echo "$MAGIC_CMD" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8140 fi
8141
8142
8143
8144
8145
8146 if test -z "$lt_cv_path_MAGIC_CMD"; then
8147 if test -n "$ac_tool_prefix"; then
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8149 $as_echo_n "checking for file... " >&6; }
8150 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8151 $as_echo_n "(cached) " >&6
8152 else
8153 case $MAGIC_CMD in
8154 [\\/*] | ?:[\\/]*)
8155 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8156 ;;
8157 *)
8158 lt_save_MAGIC_CMD="$MAGIC_CMD"
8159 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8160 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8161 for ac_dir in $ac_dummy; do
8162 IFS="$lt_save_ifs"
8163 test -z "$ac_dir" && ac_dir=.
8164 if test -f $ac_dir/file; then
8165 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8166 if test -n "$file_magic_test_file"; then
8167 case $deplibs_check_method in
8168 "file_magic "*)
8169 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8170 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8171 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8172 $EGREP "$file_magic_regex" > /dev/null; then
8173 :
8174 else
8175 cat <<_LT_EOF 1>&2
8176
8177 *** Warning: the command libtool uses to detect shared libraries,
8178 *** $file_magic_cmd, produces output that libtool cannot recognize.
8179 *** The result is that libtool may fail to recognize shared libraries
8180 *** as such. This will affect the creation of libtool libraries that
8181 *** depend on shared libraries, but programs linked with such libtool
8182 *** libraries will work regardless of this problem. Nevertheless, you
8183 *** may want to report the problem to your system manager and/or to
8184 *** [email protected]
8185
8186 _LT_EOF
8187 fi ;;
8188 esac
8189 fi
8190 break
8191 fi
8192 done
8193 IFS="$lt_save_ifs"
8194 MAGIC_CMD="$lt_save_MAGIC_CMD"
8195 ;;
8196 esac
8197 fi
8198
8199 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8200 if test -n "$MAGIC_CMD"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8202 $as_echo "$MAGIC_CMD" >&6; }
8203 else
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8206 fi
8207
8208
8209 else
8210 MAGIC_CMD=:
8211 fi
8212 fi
8213
8214 fi
8215 ;;
8216 esac
8217
8218 # Use C for the default configuration in the libtool script
8219
8220 lt_save_CC="$CC"
8221 ac_ext=c
8222 ac_cpp='$CPP $CPPFLAGS'
8223 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8224 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8225 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8226
8227
8228 # Source file extension for C test sources.
8229 ac_ext=c
8230
8231 # Object file extension for compiled C test sources.
8232 objext=o
8233 objext=$objext
8234
8235 # Code to be used in simple compile tests
8236 lt_simple_compile_test_code="int some_variable = 0;"
8237
8238 # Code to be used in simple link tests
8239 lt_simple_link_test_code='int main(){return(0);}'
8240
8241
8242
8243
8244
8245
8246
8247 # If no C compiler was specified, use CC.
8248 LTCC=${LTCC-"$CC"}
8249
8250 # If no C compiler flags were specified, use CFLAGS.
8251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8252
8253 # Allow CC to be a program name with arguments.
8254 compiler=$CC
8255
8256 # Save the default compiler, since it gets overwritten when the other
8257 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8258 compiler_DEFAULT=$CC
8259
8260 # save warnings/boilerplate of simple test code
8261 ac_outfile=conftest.$ac_objext
8262 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8263 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8264 _lt_compiler_boilerplate=`cat conftest.err`
8265 $RM conftest*
8266
8267 ac_outfile=conftest.$ac_objext
8268 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8269 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8270 _lt_linker_boilerplate=`cat conftest.err`
8271 $RM -r conftest*
8272
8273
8274 ## CAVEAT EMPTOR:
8275 ## There is no encapsulation within the following macros, do not change
8276 ## the running order or otherwise move them around unless you know exactly
8277 ## what you are doing...
8278 if test -n "$compiler"; then
8279
8280 lt_prog_compiler_no_builtin_flag=
8281
8282 if test "$GCC" = yes; then
8283 case $cc_basename in
8284 nvcc*)
8285 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8286 *)
8287 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8288 esac
8289
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8291 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8292 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 lt_cv_prog_compiler_rtti_exceptions=no
8296 ac_outfile=conftest.$ac_objext
8297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8298 lt_compiler_flag="-fno-rtti -fno-exceptions"
8299 # Insert the option either (1) after the last *FLAGS variable, or
8300 # (2) before a word containing "conftest.", or (3) at the end.
8301 # Note that $ac_compile itself does not contain backslashes and begins
8302 # with a dollar sign (not a hyphen), so the echo should work correctly.
8303 # The option is referenced via a variable to avoid confusing sed.
8304 lt_compile=`echo "$ac_compile" | $SED \
8305 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8306 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8307 -e 's:$: $lt_compiler_flag:'`
8308 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8309 (eval "$lt_compile" 2>conftest.err)
8310 ac_status=$?
8311 cat conftest.err >&5
8312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8313 if (exit $ac_status) && test -s "$ac_outfile"; then
8314 # The compiler can only warn and ignore the option if not recognized
8315 # So say no if there are warnings other than the usual output.
8316 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8317 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8318 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8319 lt_cv_prog_compiler_rtti_exceptions=yes
8320 fi
8321 fi
8322 $RM conftest*
8323
8324 fi
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8326 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8327
8328 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8329 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8330 else
8331 :
8332 fi
8333
8334 fi
8335
8336
8337
8338
8339
8340
8341 lt_prog_compiler_wl=
8342 lt_prog_compiler_pic=
8343 lt_prog_compiler_static=
8344
8345
8346 if test "$GCC" = yes; then
8347 lt_prog_compiler_wl='-Wl,'
8348 lt_prog_compiler_static='-static'
8349
8350 case $host_os in
8351 aix*)
8352 # All AIX code is PIC.
8353 if test "$host_cpu" = ia64; then
8354 # AIX 5 now supports IA64 processor
8355 lt_prog_compiler_static='-Bstatic'
8356 fi
8357 ;;
8358
8359 amigaos*)
8360 case $host_cpu in
8361 powerpc)
8362 # see comment about AmigaOS4 .so support
8363 lt_prog_compiler_pic='-fPIC'
8364 ;;
8365 m68k)
8366 # FIXME: we need at least 68020 code to build shared libraries, but
8367 # adding the `-m68020' flag to GCC prevents building anything better,
8368 # like `-m68040'.
8369 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8370 ;;
8371 esac
8372 ;;
8373
8374 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8375 # PIC is the default for these OSes.
8376 ;;
8377
8378 mingw* | cygwin* | pw32* | os2* | cegcc*)
8379 # This hack is so that the source file can tell whether it is being
8380 # built for inclusion in a dll (and should export symbols for example).
8381 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8382 # (--disable-auto-import) libraries
8383 lt_prog_compiler_pic='-DDLL_EXPORT'
8384 ;;
8385
8386 darwin* | rhapsody*)
8387 # PIC is the default on this platform
8388 # Common symbols not allowed in MH_DYLIB files
8389 lt_prog_compiler_pic='-fno-common'
8390 ;;
8391
8392 haiku*)
8393 # PIC is the default for Haiku.
8394 # The "-static" flag exists, but is broken.
8395 lt_prog_compiler_static=
8396 ;;
8397
8398 hpux*)
8399 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8400 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8401 # sets the default TLS model and affects inlining.
8402 case $host_cpu in
8403 hppa*64*)
8404 # +Z the default
8405 ;;
8406 *)
8407 lt_prog_compiler_pic='-fPIC'
8408 ;;
8409 esac
8410 ;;
8411
8412 interix[3-9]*)
8413 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8414 # Instead, we relocate shared libraries at runtime.
8415 ;;
8416
8417 msdosdjgpp*)
8418 # Just because we use GCC doesn't mean we suddenly get shared libraries
8419 # on systems that don't support them.
8420 lt_prog_compiler_can_build_shared=no
8421 enable_shared=no
8422 ;;
8423
8424 *nto* | *qnx*)
8425 # QNX uses GNU C++, but need to define -shared option too, otherwise
8426 # it will coredump.
8427 lt_prog_compiler_pic='-fPIC -shared'
8428 ;;
8429
8430 sysv4*MP*)
8431 if test -d /usr/nec; then
8432 lt_prog_compiler_pic=-Kconform_pic
8433 fi
8434 ;;
8435
8436 *)
8437 lt_prog_compiler_pic='-fPIC'
8438 ;;
8439 esac
8440
8441 case $cc_basename in
8442 nvcc*) # Cuda Compiler Driver 2.2
8443 lt_prog_compiler_wl='-Xlinker '
8444 if test -n "$lt_prog_compiler_pic"; then
8445 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8446 fi
8447 ;;
8448 esac
8449 else
8450 # PORTME Check for flag to pass linker flags through the system compiler.
8451 case $host_os in
8452 aix*)
8453 lt_prog_compiler_wl='-Wl,'
8454 if test "$host_cpu" = ia64; then
8455 # AIX 5 now supports IA64 processor
8456 lt_prog_compiler_static='-Bstatic'
8457 else
8458 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8459 fi
8460 ;;
8461
8462 mingw* | cygwin* | pw32* | os2* | cegcc*)
8463 # This hack is so that the source file can tell whether it is being
8464 # built for inclusion in a dll (and should export symbols for example).
8465 lt_prog_compiler_pic='-DDLL_EXPORT'
8466 ;;
8467
8468 hpux9* | hpux10* | hpux11*)
8469 lt_prog_compiler_wl='-Wl,'
8470 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8471 # not for PA HP-UX.
8472 case $host_cpu in
8473 hppa*64*|ia64*)
8474 # +Z the default
8475 ;;
8476 *)
8477 lt_prog_compiler_pic='+Z'
8478 ;;
8479 esac
8480 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8481 lt_prog_compiler_static='${wl}-a ${wl}archive'
8482 ;;
8483
8484 irix5* | irix6* | nonstopux*)
8485 lt_prog_compiler_wl='-Wl,'
8486 # PIC (with -KPIC) is the default.
8487 lt_prog_compiler_static='-non_shared'
8488 ;;
8489
8490 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8491 case $cc_basename in
8492 # old Intel for x86_64 which still supported -KPIC.
8493 ecc*)
8494 lt_prog_compiler_wl='-Wl,'
8495 lt_prog_compiler_pic='-KPIC'
8496 lt_prog_compiler_static='-static'
8497 ;;
8498 # icc used to be incompatible with GCC.
8499 # ICC 10 doesn't accept -KPIC any more.
8500 icc* | ifort*)
8501 lt_prog_compiler_wl='-Wl,'
8502 lt_prog_compiler_pic='-fPIC'
8503 lt_prog_compiler_static='-static'
8504 ;;
8505 # Lahey Fortran 8.1.
8506 lf95*)
8507 lt_prog_compiler_wl='-Wl,'
8508 lt_prog_compiler_pic='--shared'
8509 lt_prog_compiler_static='--static'
8510 ;;
8511 nagfor*)
8512 # NAG Fortran compiler
8513 lt_prog_compiler_wl='-Wl,-Wl,,'
8514 lt_prog_compiler_pic='-PIC'
8515 lt_prog_compiler_static='-Bstatic'
8516 ;;
8517 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8518 # Portland Group compilers (*not* the Pentium gcc compiler,
8519 # which looks to be a dead project)
8520 lt_prog_compiler_wl='-Wl,'
8521 lt_prog_compiler_pic='-fpic'
8522 lt_prog_compiler_static='-Bstatic'
8523 ;;
8524 ccc*)
8525 lt_prog_compiler_wl='-Wl,'
8526 # All Alpha code is PIC.
8527 lt_prog_compiler_static='-non_shared'
8528 ;;
8529 xl* | bgxl* | bgf* | mpixl*)
8530 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8531 lt_prog_compiler_wl='-Wl,'
8532 lt_prog_compiler_pic='-qpic'
8533 lt_prog_compiler_static='-qstaticlink'
8534 ;;
8535 *)
8536 case `$CC -V 2>&1 | sed 5q` in
8537 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8538 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8539 lt_prog_compiler_pic='-KPIC'
8540 lt_prog_compiler_static='-Bstatic'
8541 lt_prog_compiler_wl=''
8542 ;;
8543 *Sun\ F* | *Sun*Fortran*)
8544 lt_prog_compiler_pic='-KPIC'
8545 lt_prog_compiler_static='-Bstatic'
8546 lt_prog_compiler_wl='-Qoption ld '
8547 ;;
8548 *Sun\ C*)
8549 # Sun C 5.9
8550 lt_prog_compiler_pic='-KPIC'
8551 lt_prog_compiler_static='-Bstatic'
8552 lt_prog_compiler_wl='-Wl,'
8553 ;;
8554 *Intel*\ [CF]*Compiler*)
8555 lt_prog_compiler_wl='-Wl,'
8556 lt_prog_compiler_pic='-fPIC'
8557 lt_prog_compiler_static='-static'
8558 ;;
8559 *Portland\ Group*)
8560 lt_prog_compiler_wl='-Wl,'
8561 lt_prog_compiler_pic='-fpic'
8562 lt_prog_compiler_static='-Bstatic'
8563 ;;
8564 esac
8565 ;;
8566 esac
8567 ;;
8568
8569 newsos6)
8570 lt_prog_compiler_pic='-KPIC'
8571 lt_prog_compiler_static='-Bstatic'
8572 ;;
8573
8574 *nto* | *qnx*)
8575 # QNX uses GNU C++, but need to define -shared option too, otherwise
8576 # it will coredump.
8577 lt_prog_compiler_pic='-fPIC -shared'
8578 ;;
8579
8580 osf3* | osf4* | osf5*)
8581 lt_prog_compiler_wl='-Wl,'
8582 # All OSF/1 code is PIC.
8583 lt_prog_compiler_static='-non_shared'
8584 ;;
8585
8586 rdos*)
8587 lt_prog_compiler_static='-non_shared'
8588 ;;
8589
8590 solaris*)
8591 lt_prog_compiler_pic='-KPIC'
8592 lt_prog_compiler_static='-Bstatic'
8593 case $cc_basename in
8594 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8595 lt_prog_compiler_wl='-Qoption ld ';;
8596 *)
8597 lt_prog_compiler_wl='-Wl,';;
8598 esac
8599 ;;
8600
8601 sunos4*)
8602 lt_prog_compiler_wl='-Qoption ld '
8603 lt_prog_compiler_pic='-PIC'
8604 lt_prog_compiler_static='-Bstatic'
8605 ;;
8606
8607 sysv4 | sysv4.2uw2* | sysv4.3*)
8608 lt_prog_compiler_wl='-Wl,'
8609 lt_prog_compiler_pic='-KPIC'
8610 lt_prog_compiler_static='-Bstatic'
8611 ;;
8612
8613 sysv4*MP*)
8614 if test -d /usr/nec ;then
8615 lt_prog_compiler_pic='-Kconform_pic'
8616 lt_prog_compiler_static='-Bstatic'
8617 fi
8618 ;;
8619
8620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-KPIC'
8623 lt_prog_compiler_static='-Bstatic'
8624 ;;
8625
8626 unicos*)
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_can_build_shared=no
8629 ;;
8630
8631 uts4*)
8632 lt_prog_compiler_pic='-pic'
8633 lt_prog_compiler_static='-Bstatic'
8634 ;;
8635
8636 *)
8637 lt_prog_compiler_can_build_shared=no
8638 ;;
8639 esac
8640 fi
8641
8642 case $host_os in
8643 # For platforms which do not support PIC, -DPIC is meaningless:
8644 *djgpp*)
8645 lt_prog_compiler_pic=
8646 ;;
8647 *)
8648 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8649 ;;
8650 esac
8651
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8653 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8654 if ${lt_cv_prog_compiler_pic+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8658 fi
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8660 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8661 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8662
8663 #
8664 # Check to make sure the PIC flag actually works.
8665 #
8666 if test -n "$lt_prog_compiler_pic"; then
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8668 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8669 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8670 $as_echo_n "(cached) " >&6
8671 else
8672 lt_cv_prog_compiler_pic_works=no
8673 ac_outfile=conftest.$ac_objext
8674 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8675 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8676 # Insert the option either (1) after the last *FLAGS variable, or
8677 # (2) before a word containing "conftest.", or (3) at the end.
8678 # Note that $ac_compile itself does not contain backslashes and begins
8679 # with a dollar sign (not a hyphen), so the echo should work correctly.
8680 # The option is referenced via a variable to avoid confusing sed.
8681 lt_compile=`echo "$ac_compile" | $SED \
8682 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8683 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8684 -e 's:$: $lt_compiler_flag:'`
8685 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8686 (eval "$lt_compile" 2>conftest.err)
8687 ac_status=$?
8688 cat conftest.err >&5
8689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8690 if (exit $ac_status) && test -s "$ac_outfile"; then
8691 # The compiler can only warn and ignore the option if not recognized
8692 # So say no if there are warnings other than the usual output.
8693 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8694 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8695 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8696 lt_cv_prog_compiler_pic_works=yes
8697 fi
8698 fi
8699 $RM conftest*
8700
8701 fi
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8703 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8704
8705 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8706 case $lt_prog_compiler_pic in
8707 "" | " "*) ;;
8708 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8709 esac
8710 else
8711 lt_prog_compiler_pic=
8712 lt_prog_compiler_can_build_shared=no
8713 fi
8714
8715 fi
8716
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726
8727 #
8728 # Check to make sure the static flag actually works.
8729 #
8730 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8732 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8733 if ${lt_cv_prog_compiler_static_works+:} false; then :
8734 $as_echo_n "(cached) " >&6
8735 else
8736 lt_cv_prog_compiler_static_works=no
8737 save_LDFLAGS="$LDFLAGS"
8738 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8739 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8740 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8741 # The linker can only warn and ignore the option if not recognized
8742 # So say no if there are warnings
8743 if test -s conftest.err; then
8744 # Append any errors to the config.log.
8745 cat conftest.err 1>&5
8746 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8747 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8748 if diff conftest.exp conftest.er2 >/dev/null; then
8749 lt_cv_prog_compiler_static_works=yes
8750 fi
8751 else
8752 lt_cv_prog_compiler_static_works=yes
8753 fi
8754 fi
8755 $RM -r conftest*
8756 LDFLAGS="$save_LDFLAGS"
8757
8758 fi
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8760 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8761
8762 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8763 :
8764 else
8765 lt_prog_compiler_static=
8766 fi
8767
8768
8769
8770
8771
8772
8773
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8775 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8776 if ${lt_cv_prog_compiler_c_o+:} false; then :
8777 $as_echo_n "(cached) " >&6
8778 else
8779 lt_cv_prog_compiler_c_o=no
8780 $RM -r conftest 2>/dev/null
8781 mkdir conftest
8782 cd conftest
8783 mkdir out
8784 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8785
8786 lt_compiler_flag="-o out/conftest2.$ac_objext"
8787 # Insert the option either (1) after the last *FLAGS variable, or
8788 # (2) before a word containing "conftest.", or (3) at the end.
8789 # Note that $ac_compile itself does not contain backslashes and begins
8790 # with a dollar sign (not a hyphen), so the echo should work correctly.
8791 lt_compile=`echo "$ac_compile" | $SED \
8792 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8793 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8794 -e 's:$: $lt_compiler_flag:'`
8795 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8796 (eval "$lt_compile" 2>out/conftest.err)
8797 ac_status=$?
8798 cat out/conftest.err >&5
8799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8800 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8801 then
8802 # The compiler can only warn and ignore the option if not recognized
8803 # So say no if there are warnings
8804 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8805 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8806 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8807 lt_cv_prog_compiler_c_o=yes
8808 fi
8809 fi
8810 chmod u+w . 2>&5
8811 $RM conftest*
8812 # SGI C++ compiler will create directory out/ii_files/ for
8813 # template instantiation
8814 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8815 $RM out/* && rmdir out
8816 cd ..
8817 $RM -r conftest
8818 $RM conftest*
8819
8820 fi
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8822 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8823
8824
8825
8826
8827
8828
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8830 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8831 if ${lt_cv_prog_compiler_c_o+:} false; then :
8832 $as_echo_n "(cached) " >&6
8833 else
8834 lt_cv_prog_compiler_c_o=no
8835 $RM -r conftest 2>/dev/null
8836 mkdir conftest
8837 cd conftest
8838 mkdir out
8839 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8840
8841 lt_compiler_flag="-o out/conftest2.$ac_objext"
8842 # Insert the option either (1) after the last *FLAGS variable, or
8843 # (2) before a word containing "conftest.", or (3) at the end.
8844 # Note that $ac_compile itself does not contain backslashes and begins
8845 # with a dollar sign (not a hyphen), so the echo should work correctly.
8846 lt_compile=`echo "$ac_compile" | $SED \
8847 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8848 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8849 -e 's:$: $lt_compiler_flag:'`
8850 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8851 (eval "$lt_compile" 2>out/conftest.err)
8852 ac_status=$?
8853 cat out/conftest.err >&5
8854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8856 then
8857 # The compiler can only warn and ignore the option if not recognized
8858 # So say no if there are warnings
8859 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8860 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8861 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8862 lt_cv_prog_compiler_c_o=yes
8863 fi
8864 fi
8865 chmod u+w . 2>&5
8866 $RM conftest*
8867 # SGI C++ compiler will create directory out/ii_files/ for
8868 # template instantiation
8869 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8870 $RM out/* && rmdir out
8871 cd ..
8872 $RM -r conftest
8873 $RM conftest*
8874
8875 fi
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8877 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8878
8879
8880
8881
8882 hard_links="nottested"
8883 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8884 # do not overwrite the value of need_locks provided by the user
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8886 $as_echo_n "checking if we can lock with hard links... " >&6; }
8887 hard_links=yes
8888 $RM conftest*
8889 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8890 touch conftest.a
8891 ln conftest.a conftest.b 2>&5 || hard_links=no
8892 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8894 $as_echo "$hard_links" >&6; }
8895 if test "$hard_links" = no; then
8896 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8897 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8898 need_locks=warn
8899 fi
8900 else
8901 need_locks=no
8902 fi
8903
8904
8905
8906
8907
8908
8909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8910 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8911
8912 runpath_var=
8913 allow_undefined_flag=
8914 always_export_symbols=no
8915 archive_cmds=
8916 archive_expsym_cmds=
8917 compiler_needs_object=no
8918 enable_shared_with_static_runtimes=no
8919 export_dynamic_flag_spec=
8920 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8921 hardcode_automatic=no
8922 hardcode_direct=no
8923 hardcode_direct_absolute=no
8924 hardcode_libdir_flag_spec=
8925 hardcode_libdir_separator=
8926 hardcode_minus_L=no
8927 hardcode_shlibpath_var=unsupported
8928 inherit_rpath=no
8929 link_all_deplibs=unknown
8930 module_cmds=
8931 module_expsym_cmds=
8932 old_archive_from_new_cmds=
8933 old_archive_from_expsyms_cmds=
8934 thread_safe_flag_spec=
8935 whole_archive_flag_spec=
8936 # include_expsyms should be a list of space-separated symbols to be *always*
8937 # included in the symbol list
8938 include_expsyms=
8939 # exclude_expsyms can be an extended regexp of symbols to exclude
8940 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8941 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8942 # as well as any symbol that contains `d'.
8943 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8944 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8945 # platforms (ab)use it in PIC code, but their linkers get confused if
8946 # the symbol is explicitly referenced. Since portable code cannot
8947 # rely on this symbol name, it's probably fine to never include it in
8948 # preloaded symbol tables.
8949 # Exclude shared library initialization/finalization symbols.
8950 extract_expsyms_cmds=
8951
8952 case $host_os in
8953 cygwin* | mingw* | pw32* | cegcc*)
8954 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8955 # When not using gcc, we currently assume that we are using
8956 # Microsoft Visual C++.
8957 if test "$GCC" != yes; then
8958 with_gnu_ld=no
8959 fi
8960 ;;
8961 interix*)
8962 # we just hope/assume this is gcc and not c89 (= MSVC++)
8963 with_gnu_ld=yes
8964 ;;
8965 openbsd*)
8966 with_gnu_ld=no
8967 ;;
8968 esac
8969
8970 ld_shlibs=yes
8971
8972 # On some targets, GNU ld is compatible enough with the native linker
8973 # that we're better off using the native interface for both.
8974 lt_use_gnu_ld_interface=no
8975 if test "$with_gnu_ld" = yes; then
8976 case $host_os in
8977 aix*)
8978 # The AIX port of GNU ld has always aspired to compatibility
8979 # with the native linker. However, as the warning in the GNU ld
8980 # block says, versions before 2.19.5* couldn't really create working
8981 # shared libraries, regardless of the interface used.
8982 case `$LD -v 2>&1` in
8983 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
8984 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
8985 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
8986 *)
8987 lt_use_gnu_ld_interface=yes
8988 ;;
8989 esac
8990 ;;
8991 *)
8992 lt_use_gnu_ld_interface=yes
8993 ;;
8994 esac
8995 fi
8996
8997 if test "$lt_use_gnu_ld_interface" = yes; then
8998 # If archive_cmds runs LD, not CC, wlarc should be empty
8999 wlarc='${wl}'
9000
9001 # Set some defaults for GNU ld with shared library support. These
9002 # are reset later if shared libraries are not supported. Putting them
9003 # here allows them to be overridden if necessary.
9004 runpath_var=LD_RUN_PATH
9005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9006 export_dynamic_flag_spec='${wl}--export-dynamic'
9007 # ancient GNU ld didn't support --whole-archive et. al.
9008 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9009 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9010 else
9011 whole_archive_flag_spec=
9012 fi
9013 supports_anon_versioning=no
9014 case `$LD -v 2>&1` in
9015 *GNU\ gold*) supports_anon_versioning=yes ;;
9016 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9017 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9018 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9019 *\ 2.11.*) ;; # other 2.11 versions
9020 *) supports_anon_versioning=yes ;;
9021 esac
9022
9023 # See if GNU ld supports shared libraries.
9024 case $host_os in
9025 aix[3-9]*)
9026 # On AIX/PPC, the GNU linker is very broken
9027 if test "$host_cpu" != ia64; then
9028 ld_shlibs=no
9029 cat <<_LT_EOF 1>&2
9030
9031 *** Warning: the GNU linker, at least up to release 2.19, is reported
9032 *** to be unable to reliably create shared libraries on AIX.
9033 *** Therefore, libtool is disabling shared libraries support. If you
9034 *** really care for shared libraries, you may want to install binutils
9035 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9036 *** You will then need to restart the configuration process.
9037
9038 _LT_EOF
9039 fi
9040 ;;
9041
9042 amigaos*)
9043 case $host_cpu in
9044 powerpc)
9045 # see comment about AmigaOS4 .so support
9046 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9047 archive_expsym_cmds=''
9048 ;;
9049 m68k)
9050 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)'
9051 hardcode_libdir_flag_spec='-L$libdir'
9052 hardcode_minus_L=yes
9053 ;;
9054 esac
9055 ;;
9056
9057 beos*)
9058 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9059 allow_undefined_flag=unsupported
9060 # Joseph Beckenbach <[email protected]> says some releases of gcc
9061 # support --undefined. This deserves some investigation. FIXME
9062 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9063 else
9064 ld_shlibs=no
9065 fi
9066 ;;
9067
9068 cygwin* | mingw* | pw32* | cegcc*)
9069 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9070 # as there is no search path for DLLs.
9071 hardcode_libdir_flag_spec='-L$libdir'
9072 export_dynamic_flag_spec='${wl}--export-all-symbols'
9073 allow_undefined_flag=unsupported
9074 always_export_symbols=no
9075 enable_shared_with_static_runtimes=yes
9076 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9077 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9078
9079 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9080 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9081 # If the export-symbols file already is a .def file (1st line
9082 # is EXPORTS), use it as is; otherwise, prepend...
9083 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9084 cp $export_symbols $output_objdir/$soname.def;
9085 else
9086 echo EXPORTS > $output_objdir/$soname.def;
9087 cat $export_symbols >> $output_objdir/$soname.def;
9088 fi~
9089 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9090 else
9091 ld_shlibs=no
9092 fi
9093 ;;
9094
9095 haiku*)
9096 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9097 link_all_deplibs=yes
9098 ;;
9099
9100 interix[3-9]*)
9101 hardcode_direct=no
9102 hardcode_shlibpath_var=no
9103 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9104 export_dynamic_flag_spec='${wl}-E'
9105 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9106 # Instead, shared libraries are loaded at an image base (0x10000000 by
9107 # default) and relocated if they conflict, which is a slow very memory
9108 # consuming and fragmenting process. To avoid this, we pick a random,
9109 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9110 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9111 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9112 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'
9113 ;;
9114
9115 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9116 tmp_diet=no
9117 if test "$host_os" = linux-dietlibc; then
9118 case $cc_basename in
9119 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9120 esac
9121 fi
9122 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9123 && test "$tmp_diet" = no
9124 then
9125 tmp_addflag=' $pic_flag'
9126 tmp_sharedflag='-shared'
9127 case $cc_basename,$host_cpu in
9128 pgcc*) # Portland Group C compiler
9129 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'
9130 tmp_addflag=' $pic_flag'
9131 ;;
9132 pgf77* | pgf90* | pgf95* | pgfortran*)
9133 # Portland Group f77 and f90 compilers
9134 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'
9135 tmp_addflag=' $pic_flag -Mnomain' ;;
9136 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9137 tmp_addflag=' -i_dynamic' ;;
9138 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9139 tmp_addflag=' -i_dynamic -nofor_main' ;;
9140 ifc* | ifort*) # Intel Fortran compiler
9141 tmp_addflag=' -nofor_main' ;;
9142 lf95*) # Lahey Fortran 8.1
9143 whole_archive_flag_spec=
9144 tmp_sharedflag='--shared' ;;
9145 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9146 tmp_sharedflag='-qmkshrobj'
9147 tmp_addflag= ;;
9148 nvcc*) # Cuda Compiler Driver 2.2
9149 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'
9150 compiler_needs_object=yes
9151 ;;
9152 esac
9153 case `$CC -V 2>&1 | sed 5q` in
9154 *Sun\ C*) # Sun C 5.9
9155 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'
9156 compiler_needs_object=yes
9157 tmp_sharedflag='-G' ;;
9158 *Sun\ F*) # Sun Fortran 8.3
9159 tmp_sharedflag='-G' ;;
9160 esac
9161 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9162
9163 if test "x$supports_anon_versioning" = xyes; then
9164 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9165 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9166 echo "local: *; };" >> $output_objdir/$libname.ver~
9167 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9168 fi
9169
9170 case $cc_basename in
9171 xlf* | bgf* | bgxlf* | mpixlf*)
9172 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9173 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9174 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9175 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9176 if test "x$supports_anon_versioning" = xyes; then
9177 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9178 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9179 echo "local: *; };" >> $output_objdir/$libname.ver~
9180 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9181 fi
9182 ;;
9183 esac
9184 else
9185 ld_shlibs=no
9186 fi
9187 ;;
9188
9189 netbsd*)
9190 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9191 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9192 wlarc=
9193 else
9194 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9195 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9196 fi
9197 ;;
9198
9199 solaris*)
9200 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9201 ld_shlibs=no
9202 cat <<_LT_EOF 1>&2
9203
9204 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9205 *** create shared libraries on Solaris systems. Therefore, libtool
9206 *** is disabling shared libraries support. We urge you to upgrade GNU
9207 *** binutils to release 2.9.1 or newer. Another option is to modify
9208 *** your PATH or compiler configuration so that the native linker is
9209 *** used, and then restart.
9210
9211 _LT_EOF
9212 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9213 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9214 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9215 else
9216 ld_shlibs=no
9217 fi
9218 ;;
9219
9220 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9221 case `$LD -v 2>&1` in
9222 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9223 ld_shlibs=no
9224 cat <<_LT_EOF 1>&2
9225
9226 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9227 *** reliably create shared libraries on SCO systems. Therefore, libtool
9228 *** is disabling shared libraries support. We urge you to upgrade GNU
9229 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9230 *** your PATH or compiler configuration so that the native linker is
9231 *** used, and then restart.
9232
9233 _LT_EOF
9234 ;;
9235 *)
9236 # For security reasons, it is highly recommended that you always
9237 # use absolute paths for naming shared libraries, and exclude the
9238 # DT_RUNPATH tag from executables and libraries. But doing so
9239 # requires that you compile everything twice, which is a pain.
9240 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9241 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9242 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9243 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9244 else
9245 ld_shlibs=no
9246 fi
9247 ;;
9248 esac
9249 ;;
9250
9251 sunos4*)
9252 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9253 wlarc=
9254 hardcode_direct=yes
9255 hardcode_shlibpath_var=no
9256 ;;
9257
9258 *)
9259 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9260 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9261 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9262 else
9263 ld_shlibs=no
9264 fi
9265 ;;
9266 esac
9267
9268 if test "$ld_shlibs" = no; then
9269 runpath_var=
9270 hardcode_libdir_flag_spec=
9271 export_dynamic_flag_spec=
9272 whole_archive_flag_spec=
9273 fi
9274 else
9275 # PORTME fill in a description of your system's linker (not GNU ld)
9276 case $host_os in
9277 aix3*)
9278 allow_undefined_flag=unsupported
9279 always_export_symbols=yes
9280 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'
9281 # Note: this linker hardcodes the directories in LIBPATH if there
9282 # are no directories specified by -L.
9283 hardcode_minus_L=yes
9284 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9285 # Neither direct hardcoding nor static linking is supported with a
9286 # broken collect2.
9287 hardcode_direct=unsupported
9288 fi
9289 ;;
9290
9291 aix[4-9]*)
9292 if test "$host_cpu" = ia64; then
9293 # On IA64, the linker does run time linking by default, so we don't
9294 # have to do anything special.
9295 aix_use_runtimelinking=no
9296 exp_sym_flag='-Bexport'
9297 no_entry_flag=""
9298 else
9299 # If we're using GNU nm, then we don't want the "-C" option.
9300 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9301 # Also, AIX nm treats weak defined symbols like other global
9302 # defined symbols, whereas GNU nm marks them as "W".
9303 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9304 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'
9305 else
9306 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9307 fi
9308 aix_use_runtimelinking=no
9309
9310 # Test if we are trying to use run time linking or normal
9311 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9312 # need to do runtime linking.
9313 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9314 for ld_flag in $LDFLAGS; do
9315 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9316 aix_use_runtimelinking=yes
9317 break
9318 fi
9319 done
9320 ;;
9321 esac
9322
9323 exp_sym_flag='-bexport'
9324 no_entry_flag='-bnoentry'
9325 fi
9326
9327 # When large executables or shared objects are built, AIX ld can
9328 # have problems creating the table of contents. If linking a library
9329 # or program results in "error TOC overflow" add -mminimal-toc to
9330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9332
9333 archive_cmds=''
9334 hardcode_direct=yes
9335 hardcode_direct_absolute=yes
9336 hardcode_libdir_separator=':'
9337 link_all_deplibs=yes
9338 file_list_spec='${wl}-f,'
9339
9340 if test "$GCC" = yes; then
9341 case $host_os in aix4.[012]|aix4.[012].*)
9342 # We only want to do this on AIX 4.2 and lower, the check
9343 # below for broken collect2 doesn't work under 4.3+
9344 collect2name=`${CC} -print-prog-name=collect2`
9345 if test -f "$collect2name" &&
9346 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9347 then
9348 # We have reworked collect2
9349 :
9350 else
9351 # We have old collect2
9352 hardcode_direct=unsupported
9353 # It fails to find uninstalled libraries when the uninstalled
9354 # path is not listed in the libpath. Setting hardcode_minus_L
9355 # to unsupported forces relinking
9356 hardcode_minus_L=yes
9357 hardcode_libdir_flag_spec='-L$libdir'
9358 hardcode_libdir_separator=
9359 fi
9360 ;;
9361 esac
9362 shared_flag='-shared'
9363 if test "$aix_use_runtimelinking" = yes; then
9364 shared_flag="$shared_flag "'${wl}-G'
9365 fi
9366 else
9367 # not using gcc
9368 if test "$host_cpu" = ia64; then
9369 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9370 # chokes on -Wl,-G. The following line is correct:
9371 shared_flag='-G'
9372 else
9373 if test "$aix_use_runtimelinking" = yes; then
9374 shared_flag='${wl}-G'
9375 else
9376 shared_flag='${wl}-bM:SRE'
9377 fi
9378 fi
9379 fi
9380
9381 export_dynamic_flag_spec='${wl}-bexpall'
9382 # It seems that -bexpall does not export symbols beginning with
9383 # underscore (_), so it is better to generate a list of symbols to export.
9384 always_export_symbols=yes
9385 if test "$aix_use_runtimelinking" = yes; then
9386 # Warning - without using the other runtime loading flags (-brtl),
9387 # -berok will link without error, but may produce a broken library.
9388 allow_undefined_flag='-berok'
9389 # Determine the default libpath from the value encoded in an
9390 # empty executable.
9391 if test "${lt_cv_aix_libpath+set}" = set; then
9392 aix_libpath=$lt_cv_aix_libpath
9393 else
9394 if ${lt_cv_aix_libpath_+:} false; then :
9395 $as_echo_n "(cached) " >&6
9396 else
9397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9398 /* end confdefs.h. */
9399
9400 int
9401 main ()
9402 {
9403
9404 ;
9405 return 0;
9406 }
9407 _ACEOF
9408 if ac_fn_c_try_link "$LINENO"; then :
9409
9410 lt_aix_libpath_sed='
9411 /Import File Strings/,/^$/ {
9412 /^0/ {
9413 s/^0 *\([^ ]*\) *$/\1/
9414 p
9415 }
9416 }'
9417 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9418 # Check for a 64-bit object if we didn't find anything.
9419 if test -z "$lt_cv_aix_libpath_"; then
9420 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9421 fi
9422 fi
9423 rm -f core conftest.err conftest.$ac_objext \
9424 conftest$ac_exeext conftest.$ac_ext
9425 if test -z "$lt_cv_aix_libpath_"; then
9426 lt_cv_aix_libpath_="/usr/lib:/lib"
9427 fi
9428
9429 fi
9430
9431 aix_libpath=$lt_cv_aix_libpath_
9432 fi
9433
9434 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9435 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"
9436 else
9437 if test "$host_cpu" = ia64; then
9438 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9439 allow_undefined_flag="-z nodefs"
9440 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"
9441 else
9442 # Determine the default libpath from the value encoded in an
9443 # empty executable.
9444 if test "${lt_cv_aix_libpath+set}" = set; then
9445 aix_libpath=$lt_cv_aix_libpath
9446 else
9447 if ${lt_cv_aix_libpath_+:} false; then :
9448 $as_echo_n "(cached) " >&6
9449 else
9450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9451 /* end confdefs.h. */
9452
9453 int
9454 main ()
9455 {
9456
9457 ;
9458 return 0;
9459 }
9460 _ACEOF
9461 if ac_fn_c_try_link "$LINENO"; then :
9462
9463 lt_aix_libpath_sed='
9464 /Import File Strings/,/^$/ {
9465 /^0/ {
9466 s/^0 *\([^ ]*\) *$/\1/
9467 p
9468 }
9469 }'
9470 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9471 # Check for a 64-bit object if we didn't find anything.
9472 if test -z "$lt_cv_aix_libpath_"; then
9473 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9474 fi
9475 fi
9476 rm -f core conftest.err conftest.$ac_objext \
9477 conftest$ac_exeext conftest.$ac_ext
9478 if test -z "$lt_cv_aix_libpath_"; then
9479 lt_cv_aix_libpath_="/usr/lib:/lib"
9480 fi
9481
9482 fi
9483
9484 aix_libpath=$lt_cv_aix_libpath_
9485 fi
9486
9487 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9488 # Warning - without using the other run time loading flags,
9489 # -berok will link without error, but may produce a broken library.
9490 no_undefined_flag=' ${wl}-bernotok'
9491 allow_undefined_flag=' ${wl}-berok'
9492 if test "$with_gnu_ld" = yes; then
9493 # We only use this code for GNU lds that support --whole-archive.
9494 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9495 else
9496 # Exported symbols can be pulled into shared objects from archives
9497 whole_archive_flag_spec='$convenience'
9498 fi
9499 archive_cmds_need_lc=yes
9500 # This is similar to how AIX traditionally builds its shared libraries.
9501 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'
9502 fi
9503 fi
9504 ;;
9505
9506 amigaos*)
9507 case $host_cpu in
9508 powerpc)
9509 # see comment about AmigaOS4 .so support
9510 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9511 archive_expsym_cmds=''
9512 ;;
9513 m68k)
9514 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)'
9515 hardcode_libdir_flag_spec='-L$libdir'
9516 hardcode_minus_L=yes
9517 ;;
9518 esac
9519 ;;
9520
9521 bsdi[45]*)
9522 export_dynamic_flag_spec=-rdynamic
9523 ;;
9524
9525 cygwin* | mingw* | pw32* | cegcc*)
9526 # When not using gcc, we currently assume that we are using
9527 # Microsoft Visual C++.
9528 # hardcode_libdir_flag_spec is actually meaningless, as there is
9529 # no search path for DLLs.
9530 case $cc_basename in
9531 cl*)
9532 # Native MSVC
9533 hardcode_libdir_flag_spec=' '
9534 allow_undefined_flag=unsupported
9535 always_export_symbols=yes
9536 file_list_spec='@'
9537 # Tell ltmain to make .lib files, not .a files.
9538 libext=lib
9539 # Tell ltmain to make .dll files, not .so files.
9540 shrext_cmds=".dll"
9541 # FIXME: Setting linknames here is a bad hack.
9542 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9543 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9544 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9545 else
9546 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9547 fi~
9548 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9549 linknames='
9550 # The linker will not automatically build a static lib if we build a DLL.
9551 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9552 enable_shared_with_static_runtimes=yes
9553 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9554 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9555 # Don't use ranlib
9556 old_postinstall_cmds='chmod 644 $oldlib'
9557 postlink_cmds='lt_outputfile="@OUTPUT@"~
9558 lt_tool_outputfile="@TOOL_OUTPUT@"~
9559 case $lt_outputfile in
9560 *.exe|*.EXE) ;;
9561 *)
9562 lt_outputfile="$lt_outputfile.exe"
9563 lt_tool_outputfile="$lt_tool_outputfile.exe"
9564 ;;
9565 esac~
9566 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9567 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9568 $RM "$lt_outputfile.manifest";
9569 fi'
9570 ;;
9571 *)
9572 # Assume MSVC wrapper
9573 hardcode_libdir_flag_spec=' '
9574 allow_undefined_flag=unsupported
9575 # Tell ltmain to make .lib files, not .a files.
9576 libext=lib
9577 # Tell ltmain to make .dll files, not .so files.
9578 shrext_cmds=".dll"
9579 # FIXME: Setting linknames here is a bad hack.
9580 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9581 # The linker will automatically build a .lib file if we build a DLL.
9582 old_archive_from_new_cmds='true'
9583 # FIXME: Should let the user specify the lib program.
9584 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9585 enable_shared_with_static_runtimes=yes
9586 ;;
9587 esac
9588 ;;
9589
9590 darwin* | rhapsody*)
9591
9592
9593 archive_cmds_need_lc=no
9594 hardcode_direct=no
9595 hardcode_automatic=yes
9596 hardcode_shlibpath_var=unsupported
9597 if test "$lt_cv_ld_force_load" = "yes"; then
9598 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\"`'
9599
9600 else
9601 whole_archive_flag_spec=''
9602 fi
9603 link_all_deplibs=yes
9604 allow_undefined_flag="$_lt_dar_allow_undefined"
9605 case $cc_basename in
9606 ifort*) _lt_dar_can_shared=yes ;;
9607 *) _lt_dar_can_shared=$GCC ;;
9608 esac
9609 if test "$_lt_dar_can_shared" = "yes"; then
9610 output_verbose_link_cmd=func_echo_all
9611 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9612 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9613 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}"
9614 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}"
9615
9616 else
9617 ld_shlibs=no
9618 fi
9619
9620 ;;
9621
9622 dgux*)
9623 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9624 hardcode_libdir_flag_spec='-L$libdir'
9625 hardcode_shlibpath_var=no
9626 ;;
9627
9628 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9629 # support. Future versions do this automatically, but an explicit c++rt0.o
9630 # does not break anything, and helps significantly (at the cost of a little
9631 # extra space).
9632 freebsd2.2*)
9633 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9634 hardcode_libdir_flag_spec='-R$libdir'
9635 hardcode_direct=yes
9636 hardcode_shlibpath_var=no
9637 ;;
9638
9639 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9640 freebsd2.*)
9641 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9642 hardcode_direct=yes
9643 hardcode_minus_L=yes
9644 hardcode_shlibpath_var=no
9645 ;;
9646
9647 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9648 freebsd* | dragonfly*)
9649 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9650 hardcode_libdir_flag_spec='-R$libdir'
9651 hardcode_direct=yes
9652 hardcode_shlibpath_var=no
9653 ;;
9654
9655 hpux9*)
9656 if test "$GCC" = yes; then
9657 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9658 else
9659 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'
9660 fi
9661 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9662 hardcode_libdir_separator=:
9663 hardcode_direct=yes
9664
9665 # hardcode_minus_L: Not really in the search PATH,
9666 # but as the default location of the library.
9667 hardcode_minus_L=yes
9668 export_dynamic_flag_spec='${wl}-E'
9669 ;;
9670
9671 hpux10*)
9672 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9673 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9674 else
9675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9676 fi
9677 if test "$with_gnu_ld" = no; then
9678 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9679 hardcode_libdir_separator=:
9680 hardcode_direct=yes
9681 hardcode_direct_absolute=yes
9682 export_dynamic_flag_spec='${wl}-E'
9683 # hardcode_minus_L: Not really in the search PATH,
9684 # but as the default location of the library.
9685 hardcode_minus_L=yes
9686 fi
9687 ;;
9688
9689 hpux11*)
9690 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9691 case $host_cpu in
9692 hppa*64*)
9693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9694 ;;
9695 ia64*)
9696 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9697 ;;
9698 *)
9699 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9700 ;;
9701 esac
9702 else
9703 case $host_cpu in
9704 hppa*64*)
9705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9706 ;;
9707 ia64*)
9708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9709 ;;
9710 *)
9711
9712 # Older versions of the 11.00 compiler do not understand -b yet
9713 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9715 $as_echo_n "checking if $CC understands -b... " >&6; }
9716 if ${lt_cv_prog_compiler__b+:} false; then :
9717 $as_echo_n "(cached) " >&6
9718 else
9719 lt_cv_prog_compiler__b=no
9720 save_LDFLAGS="$LDFLAGS"
9721 LDFLAGS="$LDFLAGS -b"
9722 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9723 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9724 # The linker can only warn and ignore the option if not recognized
9725 # So say no if there are warnings
9726 if test -s conftest.err; then
9727 # Append any errors to the config.log.
9728 cat conftest.err 1>&5
9729 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9730 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9731 if diff conftest.exp conftest.er2 >/dev/null; then
9732 lt_cv_prog_compiler__b=yes
9733 fi
9734 else
9735 lt_cv_prog_compiler__b=yes
9736 fi
9737 fi
9738 $RM -r conftest*
9739 LDFLAGS="$save_LDFLAGS"
9740
9741 fi
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9743 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9744
9745 if test x"$lt_cv_prog_compiler__b" = xyes; then
9746 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9747 else
9748 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9749 fi
9750
9751 ;;
9752 esac
9753 fi
9754 if test "$with_gnu_ld" = no; then
9755 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9756 hardcode_libdir_separator=:
9757
9758 case $host_cpu in
9759 hppa*64*|ia64*)
9760 hardcode_direct=no
9761 hardcode_shlibpath_var=no
9762 ;;
9763 *)
9764 hardcode_direct=yes
9765 hardcode_direct_absolute=yes
9766 export_dynamic_flag_spec='${wl}-E'
9767
9768 # hardcode_minus_L: Not really in the search PATH,
9769 # but as the default location of the library.
9770 hardcode_minus_L=yes
9771 ;;
9772 esac
9773 fi
9774 ;;
9775
9776 irix5* | irix6* | nonstopux*)
9777 if test "$GCC" = yes; then
9778 archive_cmds='$CC -shared $pic_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'
9779 # Try to use the -exported_symbol ld option, if it does not
9780 # work, assume that -exports_file does not work either and
9781 # implicitly export all symbols.
9782 # This should be the same for all languages, so no per-tag cache variable.
9783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9784 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9785 if ${lt_cv_irix_exported_symbol+:} false; then :
9786 $as_echo_n "(cached) " >&6
9787 else
9788 save_LDFLAGS="$LDFLAGS"
9789 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9791 /* end confdefs.h. */
9792 int foo (void) { return 0; }
9793 _ACEOF
9794 if ac_fn_c_try_link "$LINENO"; then :
9795 lt_cv_irix_exported_symbol=yes
9796 else
9797 lt_cv_irix_exported_symbol=no
9798 fi
9799 rm -f core conftest.err conftest.$ac_objext \
9800 conftest$ac_exeext conftest.$ac_ext
9801 LDFLAGS="$save_LDFLAGS"
9802 fi
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9804 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9805 if test "$lt_cv_irix_exported_symbol" = yes; then
9806 archive_expsym_cmds='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
9807 fi
9808 else
9809 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'
9810 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'
9811 fi
9812 archive_cmds_need_lc='no'
9813 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9814 hardcode_libdir_separator=:
9815 inherit_rpath=yes
9816 link_all_deplibs=yes
9817 ;;
9818
9819 netbsd*)
9820 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9821 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9822 else
9823 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9824 fi
9825 hardcode_libdir_flag_spec='-R$libdir'
9826 hardcode_direct=yes
9827 hardcode_shlibpath_var=no
9828 ;;
9829
9830 newsos6)
9831 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9832 hardcode_direct=yes
9833 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9834 hardcode_libdir_separator=:
9835 hardcode_shlibpath_var=no
9836 ;;
9837
9838 *nto* | *qnx*)
9839 ;;
9840
9841 openbsd*)
9842 if test -f /usr/libexec/ld.so; then
9843 hardcode_direct=yes
9844 hardcode_shlibpath_var=no
9845 hardcode_direct_absolute=yes
9846 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9847 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9848 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9849 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9850 export_dynamic_flag_spec='${wl}-E'
9851 else
9852 case $host_os in
9853 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9854 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9855 hardcode_libdir_flag_spec='-R$libdir'
9856 ;;
9857 *)
9858 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9859 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9860 ;;
9861 esac
9862 fi
9863 else
9864 ld_shlibs=no
9865 fi
9866 ;;
9867
9868 os2*)
9869 hardcode_libdir_flag_spec='-L$libdir'
9870 hardcode_minus_L=yes
9871 allow_undefined_flag=unsupported
9872 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'
9873 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9874 ;;
9875
9876 osf3*)
9877 if test "$GCC" = yes; then
9878 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9879 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'
9880 else
9881 allow_undefined_flag=' -expect_unresolved \*'
9882 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'
9883 fi
9884 archive_cmds_need_lc='no'
9885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9886 hardcode_libdir_separator=:
9887 ;;
9888
9889 osf4* | osf5*) # as osf3* with the addition of -msym flag
9890 if test "$GCC" = yes; then
9891 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9892 archive_cmds='$CC -shared${allow_undefined_flag} $pic_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'
9893 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9894 else
9895 allow_undefined_flag=' -expect_unresolved \*'
9896 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'
9897 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~
9898 $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'
9899
9900 # Both c and cxx compiler support -rpath directly
9901 hardcode_libdir_flag_spec='-rpath $libdir'
9902 fi
9903 archive_cmds_need_lc='no'
9904 hardcode_libdir_separator=:
9905 ;;
9906
9907 solaris*)
9908 no_undefined_flag=' -z defs'
9909 if test "$GCC" = yes; then
9910 wlarc='${wl}'
9911 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9912 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9913 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9914 else
9915 case `$CC -V 2>&1` in
9916 *"Compilers 5.0"*)
9917 wlarc=''
9918 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9919 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9920 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9921 ;;
9922 *)
9923 wlarc='${wl}'
9924 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9925 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9926 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9927 ;;
9928 esac
9929 fi
9930 hardcode_libdir_flag_spec='-R$libdir'
9931 hardcode_shlibpath_var=no
9932 case $host_os in
9933 solaris2.[0-5] | solaris2.[0-5].*) ;;
9934 *)
9935 # The compiler driver will combine and reorder linker options,
9936 # but understands `-z linker_flag'. GCC discards it without `$wl',
9937 # but is careful enough not to reorder.
9938 # Supported since Solaris 2.6 (maybe 2.5.1?)
9939 if test "$GCC" = yes; then
9940 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9941 else
9942 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9943 fi
9944 ;;
9945 esac
9946 link_all_deplibs=yes
9947 ;;
9948
9949 sunos4*)
9950 if test "x$host_vendor" = xsequent; then
9951 # Use $CC to link under sequent, because it throws in some extra .o
9952 # files that make .init and .fini sections work.
9953 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9954 else
9955 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9956 fi
9957 hardcode_libdir_flag_spec='-L$libdir'
9958 hardcode_direct=yes
9959 hardcode_minus_L=yes
9960 hardcode_shlibpath_var=no
9961 ;;
9962
9963 sysv4)
9964 case $host_vendor in
9965 sni)
9966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9967 hardcode_direct=yes # is this really true???
9968 ;;
9969 siemens)
9970 ## LD is ld it makes a PLAMLIB
9971 ## CC just makes a GrossModule.
9972 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9973 reload_cmds='$CC -r -o $output$reload_objs'
9974 hardcode_direct=no
9975 ;;
9976 motorola)
9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9978 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9979 ;;
9980 esac
9981 runpath_var='LD_RUN_PATH'
9982 hardcode_shlibpath_var=no
9983 ;;
9984
9985 sysv4.3*)
9986 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9987 hardcode_shlibpath_var=no
9988 export_dynamic_flag_spec='-Bexport'
9989 ;;
9990
9991 sysv4*MP*)
9992 if test -d /usr/nec; then
9993 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9994 hardcode_shlibpath_var=no
9995 runpath_var=LD_RUN_PATH
9996 hardcode_runpath_var=yes
9997 ld_shlibs=yes
9998 fi
9999 ;;
10000
10001 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10002 no_undefined_flag='${wl}-z,text'
10003 archive_cmds_need_lc=no
10004 hardcode_shlibpath_var=no
10005 runpath_var='LD_RUN_PATH'
10006
10007 if test "$GCC" = yes; then
10008 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10009 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10010 else
10011 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10012 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10013 fi
10014 ;;
10015
10016 sysv5* | sco3.2v5* | sco5v6*)
10017 # Note: We can NOT use -z defs as we might desire, because we do not
10018 # link with -lc, and that would cause any symbols used from libc to
10019 # always be unresolved, which means just about no library would
10020 # ever link correctly. If we're not using GNU ld we use -z text
10021 # though, which does catch some bad symbols but isn't as heavy-handed
10022 # as -z defs.
10023 no_undefined_flag='${wl}-z,text'
10024 allow_undefined_flag='${wl}-z,nodefs'
10025 archive_cmds_need_lc=no
10026 hardcode_shlibpath_var=no
10027 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10028 hardcode_libdir_separator=':'
10029 link_all_deplibs=yes
10030 export_dynamic_flag_spec='${wl}-Bexport'
10031 runpath_var='LD_RUN_PATH'
10032
10033 if test "$GCC" = yes; then
10034 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10035 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10036 else
10037 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10038 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10039 fi
10040 ;;
10041
10042 uts4*)
10043 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 hardcode_shlibpath_var=no
10046 ;;
10047
10048 *)
10049 ld_shlibs=no
10050 ;;
10051 esac
10052
10053 if test x$host_vendor = xsni; then
10054 case $host in
10055 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10056 export_dynamic_flag_spec='${wl}-Blargedynsym'
10057 ;;
10058 esac
10059 fi
10060 fi
10061
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10063 $as_echo "$ld_shlibs" >&6; }
10064 test "$ld_shlibs" = no && can_build_shared=no
10065
10066 with_gnu_ld=$with_gnu_ld
10067
10068
10069
10070
10071
10072
10073
10074
10075
10076
10077
10078
10079
10080
10081
10082 #
10083 # Do we need to explicitly link libc?
10084 #
10085 case "x$archive_cmds_need_lc" in
10086 x|xyes)
10087 # Assume -lc should be added
10088 archive_cmds_need_lc=yes
10089
10090 if test "$enable_shared" = yes && test "$GCC" = yes; then
10091 case $archive_cmds in
10092 *'~'*)
10093 # FIXME: we may have to deal with multi-command sequences.
10094 ;;
10095 '$CC '*)
10096 # Test whether the compiler implicitly links with -lc since on some
10097 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10098 # to ld, don't add -lc before -lgcc.
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10100 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10101 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 $RM conftest*
10105 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10106
10107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10108 (eval $ac_compile) 2>&5
10109 ac_status=$?
10110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10111 test $ac_status = 0; } 2>conftest.err; then
10112 soname=conftest
10113 lib=conftest
10114 libobjs=conftest.$ac_objext
10115 deplibs=
10116 wl=$lt_prog_compiler_wl
10117 pic_flag=$lt_prog_compiler_pic
10118 compiler_flags=-v
10119 linker_flags=-v
10120 verstring=
10121 output_objdir=.
10122 libname=conftest
10123 lt_save_allow_undefined_flag=$allow_undefined_flag
10124 allow_undefined_flag=
10125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10126 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10127 ac_status=$?
10128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129 test $ac_status = 0; }
10130 then
10131 lt_cv_archive_cmds_need_lc=no
10132 else
10133 lt_cv_archive_cmds_need_lc=yes
10134 fi
10135 allow_undefined_flag=$lt_save_allow_undefined_flag
10136 else
10137 cat conftest.err 1>&5
10138 fi
10139 $RM conftest*
10140
10141 fi
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10143 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10144 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10145 ;;
10146 esac
10147 fi
10148 ;;
10149 esac
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
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10303 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10304
10305 if test "$GCC" = yes; then
10306 case $host_os in
10307 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10308 *) lt_awk_arg="/^libraries:/" ;;
10309 esac
10310 case $host_os in
10311 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10312 *) lt_sed_strip_eq="s,=/,/,g" ;;
10313 esac
10314 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10315 case $lt_search_path_spec in
10316 *\;*)
10317 # if the path contains ";" then we assume it to be the separator
10318 # otherwise default to the standard path separator (i.e. ":") - it is
10319 # assumed that no part of a normal pathname contains ";" but that should
10320 # okay in the real world where ";" in dirpaths is itself problematic.
10321 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10322 ;;
10323 *)
10324 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10325 ;;
10326 esac
10327 # Ok, now we have the path, separated by spaces, we can step through it
10328 # and add multilib dir if necessary.
10329 lt_tmp_lt_search_path_spec=
10330 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10331 for lt_sys_path in $lt_search_path_spec; do
10332 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10333 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10334 else
10335 test -d "$lt_sys_path" && \
10336 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10337 fi
10338 done
10339 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10340 BEGIN {RS=" "; FS="/|\n";} {
10341 lt_foo="";
10342 lt_count=0;
10343 for (lt_i = NF; lt_i > 0; lt_i--) {
10344 if ($lt_i != "" && $lt_i != ".") {
10345 if ($lt_i == "..") {
10346 lt_count++;
10347 } else {
10348 if (lt_count == 0) {
10349 lt_foo="/" $lt_i lt_foo;
10350 } else {
10351 lt_count--;
10352 }
10353 }
10354 }
10355 }
10356 if (lt_foo != "") { lt_freq[lt_foo]++; }
10357 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10358 }'`
10359 # AWK program above erroneously prepends '/' to C:/dos/paths
10360 # for these hosts.
10361 case $host_os in
10362 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10363 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10364 esac
10365 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10366 else
10367 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10368 fi
10369 library_names_spec=
10370 libname_spec='lib$name'
10371 soname_spec=
10372 shrext_cmds=".so"
10373 postinstall_cmds=
10374 postuninstall_cmds=
10375 finish_cmds=
10376 finish_eval=
10377 shlibpath_var=
10378 shlibpath_overrides_runpath=unknown
10379 version_type=none
10380 dynamic_linker="$host_os ld.so"
10381 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10382 need_lib_prefix=unknown
10383 hardcode_into_libs=no
10384
10385 # when you set need_version to no, make sure it does not cause -set_version
10386 # flags to be left without arguments
10387 need_version=unknown
10388
10389 case $host_os in
10390 aix3*)
10391 version_type=linux # correct to gnu/linux during the next big refactor
10392 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10393 shlibpath_var=LIBPATH
10394
10395 # AIX 3 has no versioning support, so we append a major version to the name.
10396 soname_spec='${libname}${release}${shared_ext}$major'
10397 ;;
10398
10399 aix[4-9]*)
10400 version_type=linux # correct to gnu/linux during the next big refactor
10401 need_lib_prefix=no
10402 need_version=no
10403 hardcode_into_libs=yes
10404 if test "$host_cpu" = ia64; then
10405 # AIX 5 supports IA64
10406 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10407 shlibpath_var=LD_LIBRARY_PATH
10408 else
10409 # With GCC up to 2.95.x, collect2 would create an import file
10410 # for dependence libraries. The import file would start with
10411 # the line `#! .'. This would cause the generated library to
10412 # depend on `.', always an invalid library. This was fixed in
10413 # development snapshots of GCC prior to 3.0.
10414 case $host_os in
10415 aix4 | aix4.[01] | aix4.[01].*)
10416 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10417 echo ' yes '
10418 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10419 :
10420 else
10421 can_build_shared=no
10422 fi
10423 ;;
10424 esac
10425 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10426 # soname into executable. Probably we can add versioning support to
10427 # collect2, so additional links can be useful in future.
10428 if test "$aix_use_runtimelinking" = yes; then
10429 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10430 # instead of lib<name>.a to let people know that these are not
10431 # typical AIX shared libraries.
10432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10433 else
10434 # We preserve .a as extension for shared libraries through AIX4.2
10435 # and later when we are not doing run time linking.
10436 library_names_spec='${libname}${release}.a $libname.a'
10437 soname_spec='${libname}${release}${shared_ext}$major'
10438 fi
10439 shlibpath_var=LIBPATH
10440 fi
10441 ;;
10442
10443 amigaos*)
10444 case $host_cpu in
10445 powerpc)
10446 # Since July 2007 AmigaOS4 officially supports .so libraries.
10447 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10448 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10449 ;;
10450 m68k)
10451 library_names_spec='$libname.ixlibrary $libname.a'
10452 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10453 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'
10454 ;;
10455 esac
10456 ;;
10457
10458 beos*)
10459 library_names_spec='${libname}${shared_ext}'
10460 dynamic_linker="$host_os ld.so"
10461 shlibpath_var=LIBRARY_PATH
10462 ;;
10463
10464 bsdi[45]*)
10465 version_type=linux # correct to gnu/linux during the next big refactor
10466 need_version=no
10467 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10468 soname_spec='${libname}${release}${shared_ext}$major'
10469 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10470 shlibpath_var=LD_LIBRARY_PATH
10471 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10472 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10473 # the default ld.so.conf also contains /usr/contrib/lib and
10474 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10475 # libtool to hard-code these into programs
10476 ;;
10477
10478 cygwin* | mingw* | pw32* | cegcc*)
10479 version_type=windows
10480 shrext_cmds=".dll"
10481 need_version=no
10482 need_lib_prefix=no
10483
10484 case $GCC,$cc_basename in
10485 yes,*)
10486 # gcc
10487 library_names_spec='$libname.dll.a'
10488 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10489 postinstall_cmds='base_file=`basename \${file}`~
10490 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10491 dldir=$destdir/`dirname \$dlpath`~
10492 test -d \$dldir || mkdir -p \$dldir~
10493 $install_prog $dir/$dlname \$dldir/$dlname~
10494 chmod a+x \$dldir/$dlname~
10495 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10496 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10497 fi'
10498 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10499 dlpath=$dir/\$dldll~
10500 $RM \$dlpath'
10501 shlibpath_overrides_runpath=yes
10502
10503 case $host_os in
10504 cygwin*)
10505 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10506 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10507
10508 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10509 ;;
10510 mingw* | cegcc*)
10511 # MinGW DLLs use traditional 'lib' prefix
10512 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10513 ;;
10514 pw32*)
10515 # pw32 DLLs use 'pw' prefix rather than 'lib'
10516 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10517 ;;
10518 esac
10519 dynamic_linker='Win32 ld.exe'
10520 ;;
10521
10522 *,cl*)
10523 # Native MSVC
10524 libname_spec='$name'
10525 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10526 library_names_spec='${libname}.dll.lib'
10527
10528 case $build_os in
10529 mingw*)
10530 sys_lib_search_path_spec=
10531 lt_save_ifs=$IFS
10532 IFS=';'
10533 for lt_path in $LIB
10534 do
10535 IFS=$lt_save_ifs
10536 # Let DOS variable expansion print the short 8.3 style file name.
10537 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10538 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10539 done
10540 IFS=$lt_save_ifs
10541 # Convert to MSYS style.
10542 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10543 ;;
10544 cygwin*)
10545 # Convert to unix form, then to dos form, then back to unix form
10546 # but this time dos style (no spaces!) so that the unix form looks
10547 # like /cygdrive/c/PROGRA~1:/cygdr...
10548 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10549 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10550 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10551 ;;
10552 *)
10553 sys_lib_search_path_spec="$LIB"
10554 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10555 # It is most probably a Windows format PATH.
10556 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10557 else
10558 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10559 fi
10560 # FIXME: find the short name or the path components, as spaces are
10561 # common. (e.g. "Program Files" -> "PROGRA~1")
10562 ;;
10563 esac
10564
10565 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10566 postinstall_cmds='base_file=`basename \${file}`~
10567 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10568 dldir=$destdir/`dirname \$dlpath`~
10569 test -d \$dldir || mkdir -p \$dldir~
10570 $install_prog $dir/$dlname \$dldir/$dlname'
10571 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10572 dlpath=$dir/\$dldll~
10573 $RM \$dlpath'
10574 shlibpath_overrides_runpath=yes
10575 dynamic_linker='Win32 link.exe'
10576 ;;
10577
10578 *)
10579 # Assume MSVC wrapper
10580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10581 dynamic_linker='Win32 ld.exe'
10582 ;;
10583 esac
10584 # FIXME: first we should search . and the directory the executable is in
10585 shlibpath_var=PATH
10586 ;;
10587
10588 darwin* | rhapsody*)
10589 dynamic_linker="$host_os dyld"
10590 version_type=darwin
10591 need_lib_prefix=no
10592 need_version=no
10593 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10594 soname_spec='${libname}${release}${major}$shared_ext'
10595 shlibpath_overrides_runpath=yes
10596 shlibpath_var=DYLD_LIBRARY_PATH
10597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10598
10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10600 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10601 ;;
10602
10603 dgux*)
10604 version_type=linux # correct to gnu/linux during the next big refactor
10605 need_lib_prefix=no
10606 need_version=no
10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10608 soname_spec='${libname}${release}${shared_ext}$major'
10609 shlibpath_var=LD_LIBRARY_PATH
10610 ;;
10611
10612 freebsd* | dragonfly*)
10613 # DragonFly does not have aout. When/if they implement a new
10614 # versioning mechanism, adjust this.
10615 if test -x /usr/bin/objformat; then
10616 objformat=`/usr/bin/objformat`
10617 else
10618 case $host_os in
10619 freebsd[23].*) objformat=aout ;;
10620 *) objformat=elf ;;
10621 esac
10622 fi
10623 version_type=freebsd-$objformat
10624 case $version_type in
10625 freebsd-elf*)
10626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10627 need_version=no
10628 need_lib_prefix=no
10629 ;;
10630 freebsd-*)
10631 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10632 need_version=yes
10633 ;;
10634 esac
10635 shlibpath_var=LD_LIBRARY_PATH
10636 case $host_os in
10637 freebsd2.*)
10638 shlibpath_overrides_runpath=yes
10639 ;;
10640 freebsd3.[01]* | freebsdelf3.[01]*)
10641 shlibpath_overrides_runpath=yes
10642 hardcode_into_libs=yes
10643 ;;
10644 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10645 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10646 shlibpath_overrides_runpath=no
10647 hardcode_into_libs=yes
10648 ;;
10649 *) # from 4.6 on, and DragonFly
10650 shlibpath_overrides_runpath=yes
10651 hardcode_into_libs=yes
10652 ;;
10653 esac
10654 ;;
10655
10656 gnu*)
10657 version_type=linux # correct to gnu/linux during the next big refactor
10658 need_lib_prefix=no
10659 need_version=no
10660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10661 soname_spec='${libname}${release}${shared_ext}$major'
10662 shlibpath_var=LD_LIBRARY_PATH
10663 shlibpath_overrides_runpath=no
10664 hardcode_into_libs=yes
10665 ;;
10666
10667 haiku*)
10668 version_type=linux # correct to gnu/linux during the next big refactor
10669 need_lib_prefix=no
10670 need_version=no
10671 dynamic_linker="$host_os runtime_loader"
10672 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10673 soname_spec='${libname}${release}${shared_ext}$major'
10674 shlibpath_var=LIBRARY_PATH
10675 shlibpath_overrides_runpath=yes
10676 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10677 hardcode_into_libs=yes
10678 ;;
10679
10680 hpux9* | hpux10* | hpux11*)
10681 # Give a soname corresponding to the major version so that dld.sl refuses to
10682 # link against other versions.
10683 version_type=sunos
10684 need_lib_prefix=no
10685 need_version=no
10686 case $host_cpu in
10687 ia64*)
10688 shrext_cmds='.so'
10689 hardcode_into_libs=yes
10690 dynamic_linker="$host_os dld.so"
10691 shlibpath_var=LD_LIBRARY_PATH
10692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10694 soname_spec='${libname}${release}${shared_ext}$major'
10695 if test "X$HPUX_IA64_MODE" = X32; then
10696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10697 else
10698 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10699 fi
10700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10701 ;;
10702 hppa*64*)
10703 shrext_cmds='.sl'
10704 hardcode_into_libs=yes
10705 dynamic_linker="$host_os dld.sl"
10706 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10709 soname_spec='${libname}${release}${shared_ext}$major'
10710 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10712 ;;
10713 *)
10714 shrext_cmds='.sl'
10715 dynamic_linker="$host_os dld.sl"
10716 shlibpath_var=SHLIB_PATH
10717 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10719 soname_spec='${libname}${release}${shared_ext}$major'
10720 ;;
10721 esac
10722 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10723 postinstall_cmds='chmod 555 $lib'
10724 # or fails outright, so override atomically:
10725 install_override_mode=555
10726 ;;
10727
10728 interix[3-9]*)
10729 version_type=linux # correct to gnu/linux during the next big refactor
10730 need_lib_prefix=no
10731 need_version=no
10732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10733 soname_spec='${libname}${release}${shared_ext}$major'
10734 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10735 shlibpath_var=LD_LIBRARY_PATH
10736 shlibpath_overrides_runpath=no
10737 hardcode_into_libs=yes
10738 ;;
10739
10740 irix5* | irix6* | nonstopux*)
10741 case $host_os in
10742 nonstopux*) version_type=nonstopux ;;
10743 *)
10744 if test "$lt_cv_prog_gnu_ld" = yes; then
10745 version_type=linux # correct to gnu/linux during the next big refactor
10746 else
10747 version_type=irix
10748 fi ;;
10749 esac
10750 need_lib_prefix=no
10751 need_version=no
10752 soname_spec='${libname}${release}${shared_ext}$major'
10753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10754 case $host_os in
10755 irix5* | nonstopux*)
10756 libsuff= shlibsuff=
10757 ;;
10758 *)
10759 case $LD in # libtool.m4 will add one of these switches to LD
10760 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10761 libsuff= shlibsuff= libmagic=32-bit;;
10762 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10763 libsuff=32 shlibsuff=N32 libmagic=N32;;
10764 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10765 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10766 *) libsuff= shlibsuff= libmagic=never-match;;
10767 esac
10768 ;;
10769 esac
10770 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10771 shlibpath_overrides_runpath=no
10772 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10773 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10774 hardcode_into_libs=yes
10775 ;;
10776
10777 # No shared lib support for Linux oldld, aout, or coff.
10778 linux*oldld* | linux*aout* | linux*coff*)
10779 dynamic_linker=no
10780 ;;
10781
10782 # This must be glibc/ELF.
10783 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10784 version_type=linux # correct to gnu/linux during the next big refactor
10785 need_lib_prefix=no
10786 need_version=no
10787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10788 soname_spec='${libname}${release}${shared_ext}$major'
10789 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10790 shlibpath_var=LD_LIBRARY_PATH
10791 shlibpath_overrides_runpath=no
10792
10793 # Some binutils ld are patched to set DT_RUNPATH
10794 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10795 $as_echo_n "(cached) " >&6
10796 else
10797 lt_cv_shlibpath_overrides_runpath=no
10798 save_LDFLAGS=$LDFLAGS
10799 save_libdir=$libdir
10800 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10801 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804
10805 int
10806 main ()
10807 {
10808
10809 ;
10810 return 0;
10811 }
10812 _ACEOF
10813 if ac_fn_c_try_link "$LINENO"; then :
10814 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10815 lt_cv_shlibpath_overrides_runpath=yes
10816 fi
10817 fi
10818 rm -f core conftest.err conftest.$ac_objext \
10819 conftest$ac_exeext conftest.$ac_ext
10820 LDFLAGS=$save_LDFLAGS
10821 libdir=$save_libdir
10822
10823 fi
10824
10825 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10826
10827 # This implies no fast_install, which is unacceptable.
10828 # Some rework will be needed to allow for fast_install
10829 # before this can be enabled.
10830 hardcode_into_libs=yes
10831
10832 # Add ABI-specific directories to the system library path.
10833 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10834
10835 # Append ld.so.conf contents to the search path
10836 if test -f /etc/ld.so.conf; then
10837 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' ' '`
10838 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10839
10840 fi
10841
10842 # We used to test for /lib/ld.so.1 and disable shared libraries on
10843 # powerpc, because MkLinux only supported shared libraries with the
10844 # GNU dynamic linker. Since this was broken with cross compilers,
10845 # most powerpc-linux boxes support dynamic linking these days and
10846 # people can always --disable-shared, the test was removed, and we
10847 # assume the GNU/Linux dynamic linker is in use.
10848 dynamic_linker='GNU/Linux ld.so'
10849 ;;
10850
10851 netbsd*)
10852 version_type=sunos
10853 need_lib_prefix=no
10854 need_version=no
10855 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10856 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10857 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10858 dynamic_linker='NetBSD (a.out) ld.so'
10859 else
10860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10861 soname_spec='${libname}${release}${shared_ext}$major'
10862 dynamic_linker='NetBSD ld.elf_so'
10863 fi
10864 shlibpath_var=LD_LIBRARY_PATH
10865 shlibpath_overrides_runpath=yes
10866 hardcode_into_libs=yes
10867 ;;
10868
10869 newsos6)
10870 version_type=linux # correct to gnu/linux during the next big refactor
10871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10872 shlibpath_var=LD_LIBRARY_PATH
10873 shlibpath_overrides_runpath=yes
10874 ;;
10875
10876 *nto* | *qnx*)
10877 version_type=qnx
10878 need_lib_prefix=no
10879 need_version=no
10880 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10881 soname_spec='${libname}${release}${shared_ext}$major'
10882 shlibpath_var=LD_LIBRARY_PATH
10883 shlibpath_overrides_runpath=no
10884 hardcode_into_libs=yes
10885 dynamic_linker='ldqnx.so'
10886 ;;
10887
10888 openbsd*)
10889 version_type=sunos
10890 sys_lib_dlsearch_path_spec="/usr/lib"
10891 need_lib_prefix=no
10892 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10893 case $host_os in
10894 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10895 *) need_version=no ;;
10896 esac
10897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10898 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10899 shlibpath_var=LD_LIBRARY_PATH
10900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10901 case $host_os in
10902 openbsd2.[89] | openbsd2.[89].*)
10903 shlibpath_overrides_runpath=no
10904 ;;
10905 *)
10906 shlibpath_overrides_runpath=yes
10907 ;;
10908 esac
10909 else
10910 shlibpath_overrides_runpath=yes
10911 fi
10912 ;;
10913
10914 os2*)
10915 libname_spec='$name'
10916 shrext_cmds=".dll"
10917 need_lib_prefix=no
10918 library_names_spec='$libname${shared_ext} $libname.a'
10919 dynamic_linker='OS/2 ld.exe'
10920 shlibpath_var=LIBPATH
10921 ;;
10922
10923 osf3* | osf4* | osf5*)
10924 version_type=osf
10925 need_lib_prefix=no
10926 need_version=no
10927 soname_spec='${libname}${release}${shared_ext}$major'
10928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10929 shlibpath_var=LD_LIBRARY_PATH
10930 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10931 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10932 ;;
10933
10934 rdos*)
10935 dynamic_linker=no
10936 ;;
10937
10938 solaris*)
10939 version_type=linux # correct to gnu/linux during the next big refactor
10940 need_lib_prefix=no
10941 need_version=no
10942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10943 soname_spec='${libname}${release}${shared_ext}$major'
10944 shlibpath_var=LD_LIBRARY_PATH
10945 shlibpath_overrides_runpath=yes
10946 hardcode_into_libs=yes
10947 # ldd complains unless libraries are executable
10948 postinstall_cmds='chmod +x $lib'
10949 ;;
10950
10951 sunos4*)
10952 version_type=sunos
10953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10954 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10955 shlibpath_var=LD_LIBRARY_PATH
10956 shlibpath_overrides_runpath=yes
10957 if test "$with_gnu_ld" = yes; then
10958 need_lib_prefix=no
10959 fi
10960 need_version=yes
10961 ;;
10962
10963 sysv4 | sysv4.3*)
10964 version_type=linux # correct to gnu/linux during the next big refactor
10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10966 soname_spec='${libname}${release}${shared_ext}$major'
10967 shlibpath_var=LD_LIBRARY_PATH
10968 case $host_vendor in
10969 sni)
10970 shlibpath_overrides_runpath=no
10971 need_lib_prefix=no
10972 runpath_var=LD_RUN_PATH
10973 ;;
10974 siemens)
10975 need_lib_prefix=no
10976 ;;
10977 motorola)
10978 need_lib_prefix=no
10979 need_version=no
10980 shlibpath_overrides_runpath=no
10981 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10982 ;;
10983 esac
10984 ;;
10985
10986 sysv4*MP*)
10987 if test -d /usr/nec ;then
10988 version_type=linux # correct to gnu/linux during the next big refactor
10989 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10990 soname_spec='$libname${shared_ext}.$major'
10991 shlibpath_var=LD_LIBRARY_PATH
10992 fi
10993 ;;
10994
10995 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10996 version_type=freebsd-elf
10997 need_lib_prefix=no
10998 need_version=no
10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11000 soname_spec='${libname}${release}${shared_ext}$major'
11001 shlibpath_var=LD_LIBRARY_PATH
11002 shlibpath_overrides_runpath=yes
11003 hardcode_into_libs=yes
11004 if test "$with_gnu_ld" = yes; then
11005 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11006 else
11007 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11008 case $host_os in
11009 sco3.2v5*)
11010 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11011 ;;
11012 esac
11013 fi
11014 sys_lib_dlsearch_path_spec='/usr/lib'
11015 ;;
11016
11017 tpf*)
11018 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11019 version_type=linux # correct to gnu/linux during the next big refactor
11020 need_lib_prefix=no
11021 need_version=no
11022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11023 shlibpath_var=LD_LIBRARY_PATH
11024 shlibpath_overrides_runpath=no
11025 hardcode_into_libs=yes
11026 ;;
11027
11028 uts4*)
11029 version_type=linux # correct to gnu/linux during the next big refactor
11030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11031 soname_spec='${libname}${release}${shared_ext}$major'
11032 shlibpath_var=LD_LIBRARY_PATH
11033 ;;
11034
11035 *)
11036 dynamic_linker=no
11037 ;;
11038 esac
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11040 $as_echo "$dynamic_linker" >&6; }
11041 test "$dynamic_linker" = no && can_build_shared=no
11042
11043 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11044 if test "$GCC" = yes; then
11045 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11046 fi
11047
11048 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11049 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11050 fi
11051 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11052 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11053 fi
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135
11136
11137
11138
11139
11140
11141
11142
11143
11144
11145
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11147 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11148 hardcode_action=
11149 if test -n "$hardcode_libdir_flag_spec" ||
11150 test -n "$runpath_var" ||
11151 test "X$hardcode_automatic" = "Xyes" ; then
11152
11153 # We can hardcode non-existent directories.
11154 if test "$hardcode_direct" != no &&
11155 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11156 # have to relink, otherwise we might link with an installed library
11157 # when we should be linking with a yet-to-be-installed one
11158 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11159 test "$hardcode_minus_L" != no; then
11160 # Linking always hardcodes the temporary library directory.
11161 hardcode_action=relink
11162 else
11163 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11164 hardcode_action=immediate
11165 fi
11166 else
11167 # We cannot hardcode anything, or else we can only hardcode existing
11168 # directories.
11169 hardcode_action=unsupported
11170 fi
11171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11172 $as_echo "$hardcode_action" >&6; }
11173
11174 if test "$hardcode_action" = relink ||
11175 test "$inherit_rpath" = yes; then
11176 # Fast installation is not supported
11177 enable_fast_install=no
11178 elif test "$shlibpath_overrides_runpath" = yes ||
11179 test "$enable_shared" = no; then
11180 # Fast installation is not necessary
11181 enable_fast_install=needless
11182 fi
11183
11184
11185
11186
11187
11188
11189 if test "x$enable_dlopen" != xyes; then
11190 enable_dlopen=unknown
11191 enable_dlopen_self=unknown
11192 enable_dlopen_self_static=unknown
11193 else
11194 lt_cv_dlopen=no
11195 lt_cv_dlopen_libs=
11196
11197 case $host_os in
11198 beos*)
11199 lt_cv_dlopen="load_add_on"
11200 lt_cv_dlopen_libs=
11201 lt_cv_dlopen_self=yes
11202 ;;
11203
11204 mingw* | pw32* | cegcc*)
11205 lt_cv_dlopen="LoadLibrary"
11206 lt_cv_dlopen_libs=
11207 ;;
11208
11209 cygwin*)
11210 lt_cv_dlopen="dlopen"
11211 lt_cv_dlopen_libs=
11212 ;;
11213
11214 darwin*)
11215 # if libdl is installed we need to link against it
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11217 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11218 if ${ac_cv_lib_dl_dlopen+:} false; then :
11219 $as_echo_n "(cached) " >&6
11220 else
11221 ac_check_lib_save_LIBS=$LIBS
11222 LIBS="-ldl $LIBS"
11223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11224 /* end confdefs.h. */
11225
11226 /* Override any GCC internal prototype to avoid an error.
11227 Use char because int might match the return type of a GCC
11228 builtin and then its argument prototype would still apply. */
11229 #ifdef __cplusplus
11230 extern "C"
11231 #endif
11232 char dlopen ();
11233 int
11234 main ()
11235 {
11236 return dlopen ();
11237 ;
11238 return 0;
11239 }
11240 _ACEOF
11241 if ac_fn_c_try_link "$LINENO"; then :
11242 ac_cv_lib_dl_dlopen=yes
11243 else
11244 ac_cv_lib_dl_dlopen=no
11245 fi
11246 rm -f core conftest.err conftest.$ac_objext \
11247 conftest$ac_exeext conftest.$ac_ext
11248 LIBS=$ac_check_lib_save_LIBS
11249 fi
11250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11251 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11252 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11253 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11254 else
11255
11256 lt_cv_dlopen="dyld"
11257 lt_cv_dlopen_libs=
11258 lt_cv_dlopen_self=yes
11259
11260 fi
11261
11262 ;;
11263
11264 *)
11265 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11266 if test "x$ac_cv_func_shl_load" = xyes; then :
11267 lt_cv_dlopen="shl_load"
11268 else
11269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11270 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11271 if ${ac_cv_lib_dld_shl_load+:} false; then :
11272 $as_echo_n "(cached) " >&6
11273 else
11274 ac_check_lib_save_LIBS=$LIBS
11275 LIBS="-ldld $LIBS"
11276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11277 /* end confdefs.h. */
11278
11279 /* Override any GCC internal prototype to avoid an error.
11280 Use char because int might match the return type of a GCC
11281 builtin and then its argument prototype would still apply. */
11282 #ifdef __cplusplus
11283 extern "C"
11284 #endif
11285 char shl_load ();
11286 int
11287 main ()
11288 {
11289 return shl_load ();
11290 ;
11291 return 0;
11292 }
11293 _ACEOF
11294 if ac_fn_c_try_link "$LINENO"; then :
11295 ac_cv_lib_dld_shl_load=yes
11296 else
11297 ac_cv_lib_dld_shl_load=no
11298 fi
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11302 fi
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11304 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11305 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11306 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11307 else
11308 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11309 if test "x$ac_cv_func_dlopen" = xyes; then :
11310 lt_cv_dlopen="dlopen"
11311 else
11312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11313 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11314 if ${ac_cv_lib_dl_dlopen+:} false; then :
11315 $as_echo_n "(cached) " >&6
11316 else
11317 ac_check_lib_save_LIBS=$LIBS
11318 LIBS="-ldl $LIBS"
11319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11320 /* end confdefs.h. */
11321
11322 /* Override any GCC internal prototype to avoid an error.
11323 Use char because int might match the return type of a GCC
11324 builtin and then its argument prototype would still apply. */
11325 #ifdef __cplusplus
11326 extern "C"
11327 #endif
11328 char dlopen ();
11329 int
11330 main ()
11331 {
11332 return dlopen ();
11333 ;
11334 return 0;
11335 }
11336 _ACEOF
11337 if ac_fn_c_try_link "$LINENO"; then :
11338 ac_cv_lib_dl_dlopen=yes
11339 else
11340 ac_cv_lib_dl_dlopen=no
11341 fi
11342 rm -f core conftest.err conftest.$ac_objext \
11343 conftest$ac_exeext conftest.$ac_ext
11344 LIBS=$ac_check_lib_save_LIBS
11345 fi
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11347 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11348 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11349 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11350 else
11351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11352 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11353 if ${ac_cv_lib_svld_dlopen+:} false; then :
11354 $as_echo_n "(cached) " >&6
11355 else
11356 ac_check_lib_save_LIBS=$LIBS
11357 LIBS="-lsvld $LIBS"
11358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11359 /* end confdefs.h. */
11360
11361 /* Override any GCC internal prototype to avoid an error.
11362 Use char because int might match the return type of a GCC
11363 builtin and then its argument prototype would still apply. */
11364 #ifdef __cplusplus
11365 extern "C"
11366 #endif
11367 char dlopen ();
11368 int
11369 main ()
11370 {
11371 return dlopen ();
11372 ;
11373 return 0;
11374 }
11375 _ACEOF
11376 if ac_fn_c_try_link "$LINENO"; then :
11377 ac_cv_lib_svld_dlopen=yes
11378 else
11379 ac_cv_lib_svld_dlopen=no
11380 fi
11381 rm -f core conftest.err conftest.$ac_objext \
11382 conftest$ac_exeext conftest.$ac_ext
11383 LIBS=$ac_check_lib_save_LIBS
11384 fi
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11386 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11387 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11388 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11389 else
11390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11391 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11392 if ${ac_cv_lib_dld_dld_link+:} false; then :
11393 $as_echo_n "(cached) " >&6
11394 else
11395 ac_check_lib_save_LIBS=$LIBS
11396 LIBS="-ldld $LIBS"
11397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11398 /* end confdefs.h. */
11399
11400 /* Override any GCC internal prototype to avoid an error.
11401 Use char because int might match the return type of a GCC
11402 builtin and then its argument prototype would still apply. */
11403 #ifdef __cplusplus
11404 extern "C"
11405 #endif
11406 char dld_link ();
11407 int
11408 main ()
11409 {
11410 return dld_link ();
11411 ;
11412 return 0;
11413 }
11414 _ACEOF
11415 if ac_fn_c_try_link "$LINENO"; then :
11416 ac_cv_lib_dld_dld_link=yes
11417 else
11418 ac_cv_lib_dld_dld_link=no
11419 fi
11420 rm -f core conftest.err conftest.$ac_objext \
11421 conftest$ac_exeext conftest.$ac_ext
11422 LIBS=$ac_check_lib_save_LIBS
11423 fi
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11425 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11426 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11427 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11428 fi
11429
11430
11431 fi
11432
11433
11434 fi
11435
11436
11437 fi
11438
11439
11440 fi
11441
11442
11443 fi
11444
11445 ;;
11446 esac
11447
11448 if test "x$lt_cv_dlopen" != xno; then
11449 enable_dlopen=yes
11450 else
11451 enable_dlopen=no
11452 fi
11453
11454 case $lt_cv_dlopen in
11455 dlopen)
11456 save_CPPFLAGS="$CPPFLAGS"
11457 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11458
11459 save_LDFLAGS="$LDFLAGS"
11460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11461
11462 save_LIBS="$LIBS"
11463 LIBS="$lt_cv_dlopen_libs $LIBS"
11464
11465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11466 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11467 if ${lt_cv_dlopen_self+:} false; then :
11468 $as_echo_n "(cached) " >&6
11469 else
11470 if test "$cross_compiling" = yes; then :
11471 lt_cv_dlopen_self=cross
11472 else
11473 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11474 lt_status=$lt_dlunknown
11475 cat > conftest.$ac_ext <<_LT_EOF
11476 #line $LINENO "configure"
11477 #include "confdefs.h"
11478
11479 #if HAVE_DLFCN_H
11480 #include <dlfcn.h>
11481 #endif
11482
11483 #include <stdio.h>
11484
11485 #ifdef RTLD_GLOBAL
11486 # define LT_DLGLOBAL RTLD_GLOBAL
11487 #else
11488 # ifdef DL_GLOBAL
11489 # define LT_DLGLOBAL DL_GLOBAL
11490 # else
11491 # define LT_DLGLOBAL 0
11492 # endif
11493 #endif
11494
11495 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11496 find out it does not work in some platform. */
11497 #ifndef LT_DLLAZY_OR_NOW
11498 # ifdef RTLD_LAZY
11499 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11500 # else
11501 # ifdef DL_LAZY
11502 # define LT_DLLAZY_OR_NOW DL_LAZY
11503 # else
11504 # ifdef RTLD_NOW
11505 # define LT_DLLAZY_OR_NOW RTLD_NOW
11506 # else
11507 # ifdef DL_NOW
11508 # define LT_DLLAZY_OR_NOW DL_NOW
11509 # else
11510 # define LT_DLLAZY_OR_NOW 0
11511 # endif
11512 # endif
11513 # endif
11514 # endif
11515 #endif
11516
11517 /* When -fvisbility=hidden is used, assume the code has been annotated
11518 correspondingly for the symbols needed. */
11519 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11520 int fnord () __attribute__((visibility("default")));
11521 #endif
11522
11523 int fnord () { return 42; }
11524 int main ()
11525 {
11526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11527 int status = $lt_dlunknown;
11528
11529 if (self)
11530 {
11531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11532 else
11533 {
11534 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11535 else puts (dlerror ());
11536 }
11537 /* dlclose (self); */
11538 }
11539 else
11540 puts (dlerror ());
11541
11542 return status;
11543 }
11544 _LT_EOF
11545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11546 (eval $ac_link) 2>&5
11547 ac_status=$?
11548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11549 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11550 (./conftest; exit; ) >&5 2>/dev/null
11551 lt_status=$?
11552 case x$lt_status in
11553 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11554 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11555 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11556 esac
11557 else :
11558 # compilation failed
11559 lt_cv_dlopen_self=no
11560 fi
11561 fi
11562 rm -fr conftest*
11563
11564
11565 fi
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11567 $as_echo "$lt_cv_dlopen_self" >&6; }
11568
11569 if test "x$lt_cv_dlopen_self" = xyes; then
11570 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11572 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11573 if ${lt_cv_dlopen_self_static+:} false; then :
11574 $as_echo_n "(cached) " >&6
11575 else
11576 if test "$cross_compiling" = yes; then :
11577 lt_cv_dlopen_self_static=cross
11578 else
11579 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11580 lt_status=$lt_dlunknown
11581 cat > conftest.$ac_ext <<_LT_EOF
11582 #line $LINENO "configure"
11583 #include "confdefs.h"
11584
11585 #if HAVE_DLFCN_H
11586 #include <dlfcn.h>
11587 #endif
11588
11589 #include <stdio.h>
11590
11591 #ifdef RTLD_GLOBAL
11592 # define LT_DLGLOBAL RTLD_GLOBAL
11593 #else
11594 # ifdef DL_GLOBAL
11595 # define LT_DLGLOBAL DL_GLOBAL
11596 # else
11597 # define LT_DLGLOBAL 0
11598 # endif
11599 #endif
11600
11601 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11602 find out it does not work in some platform. */
11603 #ifndef LT_DLLAZY_OR_NOW
11604 # ifdef RTLD_LAZY
11605 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11606 # else
11607 # ifdef DL_LAZY
11608 # define LT_DLLAZY_OR_NOW DL_LAZY
11609 # else
11610 # ifdef RTLD_NOW
11611 # define LT_DLLAZY_OR_NOW RTLD_NOW
11612 # else
11613 # ifdef DL_NOW
11614 # define LT_DLLAZY_OR_NOW DL_NOW
11615 # else
11616 # define LT_DLLAZY_OR_NOW 0
11617 # endif
11618 # endif
11619 # endif
11620 # endif
11621 #endif
11622
11623 /* When -fvisbility=hidden is used, assume the code has been annotated
11624 correspondingly for the symbols needed. */
11625 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11626 int fnord () __attribute__((visibility("default")));
11627 #endif
11628
11629 int fnord () { return 42; }
11630 int main ()
11631 {
11632 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11633 int status = $lt_dlunknown;
11634
11635 if (self)
11636 {
11637 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11638 else
11639 {
11640 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11641 else puts (dlerror ());
11642 }
11643 /* dlclose (self); */
11644 }
11645 else
11646 puts (dlerror ());
11647
11648 return status;
11649 }
11650 _LT_EOF
11651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11652 (eval $ac_link) 2>&5
11653 ac_status=$?
11654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11655 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11656 (./conftest; exit; ) >&5 2>/dev/null
11657 lt_status=$?
11658 case x$lt_status in
11659 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11660 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11661 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11662 esac
11663 else :
11664 # compilation failed
11665 lt_cv_dlopen_self_static=no
11666 fi
11667 fi
11668 rm -fr conftest*
11669
11670
11671 fi
11672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11673 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11674 fi
11675
11676 CPPFLAGS="$save_CPPFLAGS"
11677 LDFLAGS="$save_LDFLAGS"
11678 LIBS="$save_LIBS"
11679 ;;
11680 esac
11681
11682 case $lt_cv_dlopen_self in
11683 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11684 *) enable_dlopen_self=unknown ;;
11685 esac
11686
11687 case $lt_cv_dlopen_self_static in
11688 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11689 *) enable_dlopen_self_static=unknown ;;
11690 esac
11691 fi
11692
11693
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 striplib=
11710 old_striplib=
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11712 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11713 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11714 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11715 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11717 $as_echo "yes" >&6; }
11718 else
11719 # FIXME - insert some real tests, host_os isn't really good enough
11720 case $host_os in
11721 darwin*)
11722 if test -n "$STRIP" ; then
11723 striplib="$STRIP -x"
11724 old_striplib="$STRIP -S"
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11726 $as_echo "yes" >&6; }
11727 else
11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11729 $as_echo "no" >&6; }
11730 fi
11731 ;;
11732 *)
11733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11734 $as_echo "no" >&6; }
11735 ;;
11736 esac
11737 fi
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750 # Report which library types will actually be built
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11752 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11754 $as_echo "$can_build_shared" >&6; }
11755
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11757 $as_echo_n "checking whether to build shared libraries... " >&6; }
11758 test "$can_build_shared" = "no" && enable_shared=no
11759
11760 # On AIX, shared libraries and static libraries use the same namespace, and
11761 # are all built from PIC.
11762 case $host_os in
11763 aix3*)
11764 test "$enable_shared" = yes && enable_static=no
11765 if test -n "$RANLIB"; then
11766 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11767 postinstall_cmds='$RANLIB $lib'
11768 fi
11769 ;;
11770
11771 aix[4-9]*)
11772 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11773 test "$enable_shared" = yes && enable_static=no
11774 fi
11775 ;;
11776 esac
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11778 $as_echo "$enable_shared" >&6; }
11779
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11781 $as_echo_n "checking whether to build static libraries... " >&6; }
11782 # Make sure either enable_shared or enable_static is yes.
11783 test "$enable_shared" = yes || enable_static=yes
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11785 $as_echo "$enable_static" >&6; }
11786
11787
11788
11789
11790 fi
11791 ac_ext=c
11792 ac_cpp='$CPP $CPPFLAGS'
11793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11796
11797 CC="$lt_save_CC"
11798
11799
11800
11801
11802
11803
11804
11805
11806
11807
11808
11809
11810
11811
11812
11813 ac_config_commands="$ac_config_commands libtool"
11814
11815
11816
11817
11818 # Only expand once:
11819
11820
11821
11822
11823
11824 ###################################
11825 # Files that need to be configured
11826 ###################################
11827
11828 ac_config_headers="$ac_config_headers include/HE5_config.h"
11829
11830 ac_config_files="$ac_config_files Makefile include/Makefile src/Makefile gctp/Makefile gctp/include/Makefile gctp/src/Makefile samples/Makefile testdrivers/Makefile testdrivers/grid/Makefile testdrivers/point/Makefile testdrivers/swath/Makefile testdrivers/za/Makefile testdrivers/threads/Makefile doc/Makefile"
11831
11832
11833
11834 ###################################
11835 # Additional Macros
11836 ###################################
11837 #################################################################################
11838 ## Utility functions for testing the availability of generic libraries
11839 ## on a list of paths
11840 #################################################################################
11841 # HDF_CHECK_LIB_PATH([lib],[func],[path1,path2,path3])
11842
11843
11844
11845
11846 #################################################################################
11847 ## Utility functions for testing the availability of generic libraries
11848 #################################################################################
11849 # HDF_CHECK_LIB([zlib],[z],[compress2],[path])
11850
11851
11852
11853
11854 #################################################################################
11855 ## Utility functions for testing the availability a given header file
11856 ## on a list of paths
11857 #################################################################################
11858 # HDF_CHECK_INC_PATH([header],[path1,path2,path3])
11859
11860
11861
11862
11863
11864
11865 ###################################
11866 # Start checks
11867 ###################################
11868
11869 ac_ext=c
11870 ac_cpp='$CPP $CPPFLAGS'
11871 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11872 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11873 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11874
11875
11876 # Check for the math library that HDF4 needs
11877 #
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
11879 $as_echo_n "checking for ceil in -lm... " >&6; }
11880 if ${ac_cv_lib_m_ceil+:} false; then :
11881 $as_echo_n "(cached) " >&6
11882 else
11883 ac_check_lib_save_LIBS=$LIBS
11884 LIBS="-lm $LIBS"
11885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11886 /* end confdefs.h. */
11887
11888 /* Override any GCC internal prototype to avoid an error.
11889 Use char because int might match the return type of a GCC
11890 builtin and then its argument prototype would still apply. */
11891 #ifdef __cplusplus
11892 extern "C"
11893 #endif
11894 char ceil ();
11895 int
11896 main ()
11897 {
11898 return ceil ();
11899 ;
11900 return 0;
11901 }
11902 _ACEOF
11903 if ac_fn_c_try_link "$LINENO"; then :
11904 ac_cv_lib_m_ceil=yes
11905 else
11906 ac_cv_lib_m_ceil=no
11907 fi
11908 rm -f core conftest.err conftest.$ac_objext \
11909 conftest$ac_exeext conftest.$ac_ext
11910 LIBS=$ac_check_lib_save_LIBS
11911 fi
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
11913 $as_echo "$ac_cv_lib_m_ceil" >&6; }
11914 if test "x$ac_cv_lib_m_ceil" = xyes; then :
11915 cat >>confdefs.h <<_ACEOF
11916 #define HAVE_LIBM 1
11917 _ACEOF
11918
11919 LIBS="-lm $LIBS"
11920
11921 fi
11922
11923
11924
11925 ######################################################################
11926 # Check size of some types
11927 # We pass these through directly via the cpp flags rather than the config
11928 # file to make it easier (given the current code state) to get it where
11929 # it needs to go.
11930 ######################################################################
11931 # The cast to long int works around a bug in the HP C Compiler
11932 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
11933 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
11934 # This bug is HP SR number 8606223364.
11935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
11936 $as_echo_n "checking size of long... " >&6; }
11937 if ${ac_cv_sizeof_long+:} false; then :
11938 $as_echo_n "(cached) " >&6
11939 else
11940 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
11941
11942 else
11943 if test "$ac_cv_type_long" = yes; then
11944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11945 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11946 as_fn_error 77 "cannot compute sizeof (long)
11947 See \`config.log' for more details" "$LINENO" 5; }
11948 else
11949 ac_cv_sizeof_long=0
11950 fi
11951 fi
11952
11953 fi
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
11955 $as_echo "$ac_cv_sizeof_long" >&6; }
11956
11957
11958
11959 cat >>confdefs.h <<_ACEOF
11960 #define SIZEOF_LONG $ac_cv_sizeof_long
11961 _ACEOF
11962
11963
11964 CPPFLAGS="${CPPFLAGS} -DSIZEOF_LONG=$ac_cv_sizeof_long"
11965
11966
11967
11968 ###################################
11969 # Check endian-ness
11970 ###################################
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
11972 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
11973 if ${ac_cv_c_bigendian+:} false; then :
11974 $as_echo_n "(cached) " >&6
11975 else
11976 ac_cv_c_bigendian=unknown
11977 # See if we're dealing with a universal compiler.
11978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11979 /* end confdefs.h. */
11980 #ifndef __APPLE_CC__
11981 not a universal capable compiler
11982 #endif
11983 typedef int dummy;
11984
11985 _ACEOF
11986 if ac_fn_c_try_compile "$LINENO"; then :
11987
11988 # Check for potential -arch flags. It is not universal unless
11989 # there are at least two -arch flags with different values.
11990 ac_arch=
11991 ac_prev=
11992 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
11993 if test -n "$ac_prev"; then
11994 case $ac_word in
11995 i?86 | x86_64 | ppc | ppc64)
11996 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
11997 ac_arch=$ac_word
11998 else
11999 ac_cv_c_bigendian=universal
12000 break
12001 fi
12002 ;;
12003 esac
12004 ac_prev=
12005 elif test "x$ac_word" = "x-arch"; then
12006 ac_prev=arch
12007 fi
12008 done
12009 fi
12010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12011 if test $ac_cv_c_bigendian = unknown; then
12012 # See if sys/param.h defines the BYTE_ORDER macro.
12013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12014 /* end confdefs.h. */
12015 #include <sys/types.h>
12016 #include <sys/param.h>
12017
12018 int
12019 main ()
12020 {
12021 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
12022 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
12023 && LITTLE_ENDIAN)
12024 bogus endian macros
12025 #endif
12026
12027 ;
12028 return 0;
12029 }
12030 _ACEOF
12031 if ac_fn_c_try_compile "$LINENO"; then :
12032 # It does; now see whether it defined to BIG_ENDIAN or not.
12033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12034 /* end confdefs.h. */
12035 #include <sys/types.h>
12036 #include <sys/param.h>
12037
12038 int
12039 main ()
12040 {
12041 #if BYTE_ORDER != BIG_ENDIAN
12042 not big endian
12043 #endif
12044
12045 ;
12046 return 0;
12047 }
12048 _ACEOF
12049 if ac_fn_c_try_compile "$LINENO"; then :
12050 ac_cv_c_bigendian=yes
12051 else
12052 ac_cv_c_bigendian=no
12053 fi
12054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 fi
12056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12057 fi
12058 if test $ac_cv_c_bigendian = unknown; then
12059 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
12060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12061 /* end confdefs.h. */
12062 #include <limits.h>
12063
12064 int
12065 main ()
12066 {
12067 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
12068 bogus endian macros
12069 #endif
12070
12071 ;
12072 return 0;
12073 }
12074 _ACEOF
12075 if ac_fn_c_try_compile "$LINENO"; then :
12076 # It does; now see whether it defined to _BIG_ENDIAN or not.
12077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12078 /* end confdefs.h. */
12079 #include <limits.h>
12080
12081 int
12082 main ()
12083 {
12084 #ifndef _BIG_ENDIAN
12085 not big endian
12086 #endif
12087
12088 ;
12089 return 0;
12090 }
12091 _ACEOF
12092 if ac_fn_c_try_compile "$LINENO"; then :
12093 ac_cv_c_bigendian=yes
12094 else
12095 ac_cv_c_bigendian=no
12096 fi
12097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12098 fi
12099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12100 fi
12101 if test $ac_cv_c_bigendian = unknown; then
12102 # Compile a test program.
12103 if test "$cross_compiling" = yes; then :
12104 # Try to guess by grepping values from an object file.
12105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12106 /* end confdefs.h. */
12107 short int ascii_mm[] =
12108 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
12109 short int ascii_ii[] =
12110 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
12111 int use_ascii (int i) {
12112 return ascii_mm[i] + ascii_ii[i];
12113 }
12114 short int ebcdic_ii[] =
12115 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
12116 short int ebcdic_mm[] =
12117 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
12118 int use_ebcdic (int i) {
12119 return ebcdic_mm[i] + ebcdic_ii[i];
12120 }
12121 extern int foo;
12122
12123 int
12124 main ()
12125 {
12126 return use_ascii (foo) == use_ebcdic (foo);
12127 ;
12128 return 0;
12129 }
12130 _ACEOF
12131 if ac_fn_c_try_compile "$LINENO"; then :
12132 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
12133 ac_cv_c_bigendian=yes
12134 fi
12135 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
12136 if test "$ac_cv_c_bigendian" = unknown; then
12137 ac_cv_c_bigendian=no
12138 else
12139 # finding both strings is unlikely to happen, but who knows?
12140 ac_cv_c_bigendian=unknown
12141 fi
12142 fi
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12145 else
12146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12147 /* end confdefs.h. */
12148 $ac_includes_default
12149 int
12150 main ()
12151 {
12152
12153 /* Are we little or big endian? From Harbison&Steele. */
12154 union
12155 {
12156 long int l;
12157 char c[sizeof (long int)];
12158 } u;
12159 u.l = 1;
12160 return u.c[sizeof (long int) - 1] == 1;
12161
12162 ;
12163 return 0;
12164 }
12165 _ACEOF
12166 if ac_fn_c_try_run "$LINENO"; then :
12167 ac_cv_c_bigendian=no
12168 else
12169 ac_cv_c_bigendian=yes
12170 fi
12171 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
12172 conftest.$ac_objext conftest.beam conftest.$ac_ext
12173 fi
12174
12175 fi
12176 fi
12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
12178 $as_echo "$ac_cv_c_bigendian" >&6; }
12179 case $ac_cv_c_bigendian in #(
12180 yes)
12181
12182
12183 $as_echo "#define BIG_ENDIAN 1" >>confdefs.h
12184
12185 CPPFLAGS="${CPPFLAGS} -DBIG_ENDIAN=1"
12186 ;; #(
12187 no)
12188 ;; #(
12189 universal)
12190
12191 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
12192
12193 ;; #(
12194 *)
12195 as_fn_error $? "unknown endianness
12196 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
12197 esac
12198
12199
12200
12201 ###################################
12202 # pthread library checks
12203 # This will be needed if the HDF5
12204 # library is threaded, otherwise it
12205 # will be ignored.
12206 ###################################
12207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
12208 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
12209 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
12210 $as_echo_n "(cached) " >&6
12211 else
12212 ac_check_lib_save_LIBS=$LIBS
12213 LIBS="-lpthread $LIBS"
12214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12215 /* end confdefs.h. */
12216
12217 /* Override any GCC internal prototype to avoid an error.
12218 Use char because int might match the return type of a GCC
12219 builtin and then its argument prototype would still apply. */
12220 #ifdef __cplusplus
12221 extern "C"
12222 #endif
12223 char pthread_create ();
12224 int
12225 main ()
12226 {
12227 return pthread_create ();
12228 ;
12229 return 0;
12230 }
12231 _ACEOF
12232 if ac_fn_c_try_link "$LINENO"; then :
12233 ac_cv_lib_pthread_pthread_create=yes
12234 else
12235 ac_cv_lib_pthread_pthread_create=no
12236 fi
12237 rm -f core conftest.err conftest.$ac_objext \
12238 conftest$ac_exeext conftest.$ac_ext
12239 LIBS=$ac_check_lib_save_LIBS
12240 fi
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
12242 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
12243 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
12244 cat >>confdefs.h <<_ACEOF
12245 #define HAVE_LIBPTHREAD 1
12246 _ACEOF
12247
12248 LIBS="-lpthread $LIBS"
12249
12250 fi
12251
12252
12253
12254 ###################################
12255 # ZLIB library checks
12256 ###################################
12257
12258 # HDFEOS does not need libz directly, but the HDF library might. This means
12259 # we only need to find the libary, not the header files.
12260
12261
12262
12263 # Check whether --with-zlib was given.
12264 if test "${with_zlib+set}" = set; then :
12265 withval=$with_zlib;
12266 else
12267 withval=yes
12268 fi
12269
12270
12271 if ## --with-<lib> with no directory. We must find it.
12272 ##
12273 test "x$withval" == "xyes"; then :
12274
12275
12276
12277 lib_path=
12278 if test "x$ac_cv_lib_z_compress2" != "xyes"; then :
12279
12280 unset ac_cv_lib_z_compress2
12281 saved_LDFLAGS="$LDFLAGS"
12282
12283 if test -n "$lib_path"; then :
12284 LDFLAGS="$LDFLAGS -L$lib_path"
12285 fi
12286
12287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
12288 $as_echo_n "checking for compress2 in -lz... " >&6; }
12289 if ${ac_cv_lib_z_compress2+:} false; then :
12290 $as_echo_n "(cached) " >&6
12291 else
12292 ac_check_lib_save_LIBS=$LIBS
12293 LIBS="-lz $LIBS"
12294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12295 /* end confdefs.h. */
12296
12297 /* Override any GCC internal prototype to avoid an error.
12298 Use char because int might match the return type of a GCC
12299 builtin and then its argument prototype would still apply. */
12300 #ifdef __cplusplus
12301 extern "C"
12302 #endif
12303 char compress2 ();
12304 int
12305 main ()
12306 {
12307 return compress2 ();
12308 ;
12309 return 0;
12310 }
12311 _ACEOF
12312 if ac_fn_c_try_link "$LINENO"; then :
12313 ac_cv_lib_z_compress2=yes
12314 else
12315 ac_cv_lib_z_compress2=no
12316 fi
12317 rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 LIBS=$ac_check_lib_save_LIBS
12320 fi
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
12322 $as_echo "$ac_cv_lib_z_compress2" >&6; }
12323 if test "x$ac_cv_lib_z_compress2" = xyes; then :
12324
12325 ac_cv_lib_z_compress2="yes"
12326 HAVE_LIBZ="yes"
12327 lib_name=HAVE_LIBZ
12328
12329 cat >>confdefs.h <<_ACEOF
12330 #define $lib_name 1
12331 _ACEOF
12332
12333 LIBS="-lz $LIBS"
12334
12335 else
12336
12337 LDFLAGS="$saved_LDFLAGS"
12338 ac_cv_lib_z_compress2="no"
12339
12340 fi
12341
12342
12343 fi
12344
12345 lib_path=/usr/local/lib
12346 if test "x$ac_cv_lib_z_compress2" != "xyes"; then :
12347
12348 unset ac_cv_lib_z_compress2
12349 saved_LDFLAGS="$LDFLAGS"
12350
12351 if test -n "$lib_path"; then :
12352 LDFLAGS="$LDFLAGS -L$lib_path"
12353 fi
12354
12355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
12356 $as_echo_n "checking for compress2 in -lz... " >&6; }
12357 if ${ac_cv_lib_z_compress2+:} false; then :
12358 $as_echo_n "(cached) " >&6
12359 else
12360 ac_check_lib_save_LIBS=$LIBS
12361 LIBS="-lz $LIBS"
12362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12363 /* end confdefs.h. */
12364
12365 /* Override any GCC internal prototype to avoid an error.
12366 Use char because int might match the return type of a GCC
12367 builtin and then its argument prototype would still apply. */
12368 #ifdef __cplusplus
12369 extern "C"
12370 #endif
12371 char compress2 ();
12372 int
12373 main ()
12374 {
12375 return compress2 ();
12376 ;
12377 return 0;
12378 }
12379 _ACEOF
12380 if ac_fn_c_try_link "$LINENO"; then :
12381 ac_cv_lib_z_compress2=yes
12382 else
12383 ac_cv_lib_z_compress2=no
12384 fi
12385 rm -f core conftest.err conftest.$ac_objext \
12386 conftest$ac_exeext conftest.$ac_ext
12387 LIBS=$ac_check_lib_save_LIBS
12388 fi
12389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
12390 $as_echo "$ac_cv_lib_z_compress2" >&6; }
12391 if test "x$ac_cv_lib_z_compress2" = xyes; then :
12392
12393 ac_cv_lib_z_compress2="yes"
12394 HAVE_LIBZ="yes"
12395 lib_name=HAVE_LIBZ
12396
12397 cat >>confdefs.h <<_ACEOF
12398 #define $lib_name 1
12399 _ACEOF
12400
12401 LIBS="-lz $LIBS"
12402
12403 else
12404
12405 LDFLAGS="$saved_LDFLAGS"
12406 ac_cv_lib_z_compress2="no"
12407
12408 fi
12409
12410
12411 fi
12412
12413 lib_path=/opt/local/lib
12414 if test "x$ac_cv_lib_z_compress2" != "xyes"; then :
12415
12416 unset ac_cv_lib_z_compress2
12417 saved_LDFLAGS="$LDFLAGS"
12418
12419 if test -n "$lib_path"; then :
12420 LDFLAGS="$LDFLAGS -L$lib_path"
12421 fi
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
12424 $as_echo_n "checking for compress2 in -lz... " >&6; }
12425 if ${ac_cv_lib_z_compress2+:} false; then :
12426 $as_echo_n "(cached) " >&6
12427 else
12428 ac_check_lib_save_LIBS=$LIBS
12429 LIBS="-lz $LIBS"
12430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12431 /* end confdefs.h. */
12432
12433 /* Override any GCC internal prototype to avoid an error.
12434 Use char because int might match the return type of a GCC
12435 builtin and then its argument prototype would still apply. */
12436 #ifdef __cplusplus
12437 extern "C"
12438 #endif
12439 char compress2 ();
12440 int
12441 main ()
12442 {
12443 return compress2 ();
12444 ;
12445 return 0;
12446 }
12447 _ACEOF
12448 if ac_fn_c_try_link "$LINENO"; then :
12449 ac_cv_lib_z_compress2=yes
12450 else
12451 ac_cv_lib_z_compress2=no
12452 fi
12453 rm -f core conftest.err conftest.$ac_objext \
12454 conftest$ac_exeext conftest.$ac_ext
12455 LIBS=$ac_check_lib_save_LIBS
12456 fi
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
12458 $as_echo "$ac_cv_lib_z_compress2" >&6; }
12459 if test "x$ac_cv_lib_z_compress2" = xyes; then :
12460
12461 ac_cv_lib_z_compress2="yes"
12462 HAVE_LIBZ="yes"
12463 lib_name=HAVE_LIBZ
12464
12465 cat >>confdefs.h <<_ACEOF
12466 #define $lib_name 1
12467 _ACEOF
12468
12469 LIBS="-lz $LIBS"
12470
12471 else
12472
12473 LDFLAGS="$saved_LDFLAGS"
12474 ac_cv_lib_z_compress2="no"
12475
12476 fi
12477
12478
12479 fi
12480
12481 lib_path=/usr/lib64
12482 if test "x$ac_cv_lib_z_compress2" != "xyes"; then :
12483
12484 unset ac_cv_lib_z_compress2
12485 saved_LDFLAGS="$LDFLAGS"
12486
12487 if test -n "$lib_path"; then :
12488 LDFLAGS="$LDFLAGS -L$lib_path"
12489 fi
12490
12491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
12492 $as_echo_n "checking for compress2 in -lz... " >&6; }
12493 if ${ac_cv_lib_z_compress2+:} false; then :
12494 $as_echo_n "(cached) " >&6
12495 else
12496 ac_check_lib_save_LIBS=$LIBS
12497 LIBS="-lz $LIBS"
12498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12499 /* end confdefs.h. */
12500
12501 /* Override any GCC internal prototype to avoid an error.
12502 Use char because int might match the return type of a GCC
12503 builtin and then its argument prototype would still apply. */
12504 #ifdef __cplusplus
12505 extern "C"
12506 #endif
12507 char compress2 ();
12508 int
12509 main ()
12510 {
12511 return compress2 ();
12512 ;
12513 return 0;
12514 }
12515 _ACEOF
12516 if ac_fn_c_try_link "$LINENO"; then :
12517 ac_cv_lib_z_compress2=yes
12518 else
12519 ac_cv_lib_z_compress2=no
12520 fi
12521 rm -f core conftest.err conftest.$ac_objext \
12522 conftest$ac_exeext conftest.$ac_ext
12523 LIBS=$ac_check_lib_save_LIBS
12524 fi
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
12526 $as_echo "$ac_cv_lib_z_compress2" >&6; }
12527 if test "x$ac_cv_lib_z_compress2" = xyes; then :
12528
12529 ac_cv_lib_z_compress2="yes"
12530 HAVE_LIBZ="yes"
12531 lib_name=HAVE_LIBZ
12532
12533 cat >>confdefs.h <<_ACEOF
12534 #define $lib_name 1
12535 _ACEOF
12536
12537 LIBS="-lz $LIBS"
12538
12539 else
12540
12541 LDFLAGS="$saved_LDFLAGS"
12542 ac_cv_lib_z_compress2="no"
12543
12544 fi
12545
12546
12547 fi
12548
12549
12550
12551 elif ## --without-<lib>
12552 ## Nothing to do - library just does not get added.
12553 ##
12554 test "x$withval" == "xno"; then :
12555
12556 else
12557 ## All other cases
12558 ##
12559
12560 if test -z "$withval"; then :
12561
12562 as_fn_error $? "no zlib library path provided" "$LINENO" 5
12563
12564 else
12565
12566 LDFLAGS="$LDFLAGS -L$withval"
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress2 in -lz" >&5
12568 $as_echo_n "checking for compress2 in -lz... " >&6; }
12569 if ${ac_cv_lib_z_compress2+:} false; then :
12570 $as_echo_n "(cached) " >&6
12571 else
12572 ac_check_lib_save_LIBS=$LIBS
12573 LIBS="-lz $LIBS"
12574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12575 /* end confdefs.h. */
12576
12577 /* Override any GCC internal prototype to avoid an error.
12578 Use char because int might match the return type of a GCC
12579 builtin and then its argument prototype would still apply. */
12580 #ifdef __cplusplus
12581 extern "C"
12582 #endif
12583 char compress2 ();
12584 int
12585 main ()
12586 {
12587 return compress2 ();
12588 ;
12589 return 0;
12590 }
12591 _ACEOF
12592 if ac_fn_c_try_link "$LINENO"; then :
12593 ac_cv_lib_z_compress2=yes
12594 else
12595 ac_cv_lib_z_compress2=no
12596 fi
12597 rm -f core conftest.err conftest.$ac_objext \
12598 conftest$ac_exeext conftest.$ac_ext
12599 LIBS=$ac_check_lib_save_LIBS
12600 fi
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress2" >&5
12602 $as_echo "$ac_cv_lib_z_compress2" >&6; }
12603 if test "x$ac_cv_lib_z_compress2" = xyes; then :
12604 cat >>confdefs.h <<_ACEOF
12605 #define HAVE_LIBZ 1
12606 _ACEOF
12607
12608 LIBS="-lz $LIBS"
12609
12610 else
12611
12612 as_fn_error $? "couldn't find zlib library" "$LINENO" 5
12613
12614 fi
12615
12616
12617 fi
12618
12619
12620 fi
12621
12622 if test -z "$HAVE_LIBZ"; then :
12623 as_fn_error $? "unable to find libz" "$LINENO" 5
12624
12625 fi
12626
12627
12628
12629 ###################################
12630 # FORTRAN compiler check
12631 ###################################
12632
12633 # User may enable fortran components explicity with --enable-fortran
12634 # or --enable-fortran=yes
12635
12636 ac_ext=f
12637 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12638 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12639 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12640 if test -n "$ac_tool_prefix"; then
12641 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
12642 do
12643 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12644 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12646 $as_echo_n "checking for $ac_word... " >&6; }
12647 if ${ac_cv_prog_F77+:} false; then :
12648 $as_echo_n "(cached) " >&6
12649 else
12650 if test -n "$F77"; then
12651 ac_cv_prog_F77="$F77" # Let the user override the test.
12652 else
12653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12654 for as_dir in $PATH
12655 do
12656 IFS=$as_save_IFS
12657 test -z "$as_dir" && as_dir=.
12658 for ac_exec_ext in '' $ac_executable_extensions; do
12659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12660 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
12661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12662 break 2
12663 fi
12664 done
12665 done
12666 IFS=$as_save_IFS
12667
12668 fi
12669 fi
12670 F77=$ac_cv_prog_F77
12671 if test -n "$F77"; then
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
12673 $as_echo "$F77" >&6; }
12674 else
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12676 $as_echo "no" >&6; }
12677 fi
12678
12679
12680 test -n "$F77" && break
12681 done
12682 fi
12683 if test -z "$F77"; then
12684 ac_ct_F77=$F77
12685 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
12686 do
12687 # Extract the first word of "$ac_prog", so it can be a program name with args.
12688 set dummy $ac_prog; ac_word=$2
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12690 $as_echo_n "checking for $ac_word... " >&6; }
12691 if ${ac_cv_prog_ac_ct_F77+:} false; then :
12692 $as_echo_n "(cached) " >&6
12693 else
12694 if test -n "$ac_ct_F77"; then
12695 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
12696 else
12697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12698 for as_dir in $PATH
12699 do
12700 IFS=$as_save_IFS
12701 test -z "$as_dir" && as_dir=.
12702 for ac_exec_ext in '' $ac_executable_extensions; do
12703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12704 ac_cv_prog_ac_ct_F77="$ac_prog"
12705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12706 break 2
12707 fi
12708 done
12709 done
12710 IFS=$as_save_IFS
12711
12712 fi
12713 fi
12714 ac_ct_F77=$ac_cv_prog_ac_ct_F77
12715 if test -n "$ac_ct_F77"; then
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
12717 $as_echo "$ac_ct_F77" >&6; }
12718 else
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12720 $as_echo "no" >&6; }
12721 fi
12722
12723
12724 test -n "$ac_ct_F77" && break
12725 done
12726
12727 if test "x$ac_ct_F77" = x; then
12728 F77=""
12729 else
12730 case $cross_compiling:$ac_tool_warned in
12731 yes:)
12732 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12733 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12734 ac_tool_warned=yes ;;
12735 esac
12736 F77=$ac_ct_F77
12737 fi
12738 fi
12739
12740
12741 # Provide some information about the compiler.
12742 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
12743 set X $ac_compile
12744 ac_compiler=$2
12745 for ac_option in --version -v -V -qversion; do
12746 { { ac_try="$ac_compiler $ac_option >&5"
12747 case "(($ac_try" in
12748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12749 *) ac_try_echo=$ac_try;;
12750 esac
12751 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12752 $as_echo "$ac_try_echo"; } >&5
12753 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12754 ac_status=$?
12755 if test -s conftest.err; then
12756 sed '10a\
12757 ... rest of stderr output deleted ...
12758 10q' conftest.err >conftest.er1
12759 cat conftest.er1 >&5
12760 fi
12761 rm -f conftest.er1 conftest.err
12762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12763 test $ac_status = 0; }
12764 done
12765 rm -f a.out
12766
12767 # If we don't use `.F' as extension, the preprocessor is not run on the
12768 # input file. (Note that this only needs to work for GNU compilers.)
12769 ac_save_ext=$ac_ext
12770 ac_ext=F
12771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
12772 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
12773 if ${ac_cv_f77_compiler_gnu+:} false; then :
12774 $as_echo_n "(cached) " >&6
12775 else
12776 cat > conftest.$ac_ext <<_ACEOF
12777 program main
12778 #ifndef __GNUC__
12779 choke me
12780 #endif
12781
12782 end
12783 _ACEOF
12784 if ac_fn_f77_try_compile "$LINENO"; then :
12785 ac_compiler_gnu=yes
12786 else
12787 ac_compiler_gnu=no
12788 fi
12789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12790 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
12791
12792 fi
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
12794 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
12795 ac_ext=$ac_save_ext
12796 ac_test_FFLAGS=${FFLAGS+set}
12797 ac_save_FFLAGS=$FFLAGS
12798 FFLAGS=
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
12800 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
12801 if ${ac_cv_prog_f77_g+:} false; then :
12802 $as_echo_n "(cached) " >&6
12803 else
12804 FFLAGS=-g
12805 cat > conftest.$ac_ext <<_ACEOF
12806 program main
12807
12808 end
12809 _ACEOF
12810 if ac_fn_f77_try_compile "$LINENO"; then :
12811 ac_cv_prog_f77_g=yes
12812 else
12813 ac_cv_prog_f77_g=no
12814 fi
12815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12816
12817 fi
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
12819 $as_echo "$ac_cv_prog_f77_g" >&6; }
12820 if test "$ac_test_FFLAGS" = set; then
12821 FFLAGS=$ac_save_FFLAGS
12822 elif test $ac_cv_prog_f77_g = yes; then
12823 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12824 FFLAGS="-g -O2"
12825 else
12826 FFLAGS="-g"
12827 fi
12828 else
12829 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
12830 FFLAGS="-O2"
12831 else
12832 FFLAGS=
12833 fi
12834 fi
12835
12836 if test $ac_compiler_gnu = yes; then
12837 G77=yes
12838 else
12839 G77=
12840 fi
12841 ac_ext=c
12842 ac_cpp='$CPP $CPPFLAGS'
12843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12846
12847 ac_ext=f
12848 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
12849 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12850 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
12851
12852 if test -z "$F77" || test "X$F77" = "Xno"; then
12853 _lt_disable_F77=yes
12854 fi
12855
12856 archive_cmds_need_lc_F77=no
12857 allow_undefined_flag_F77=
12858 always_export_symbols_F77=no
12859 archive_expsym_cmds_F77=
12860 export_dynamic_flag_spec_F77=
12861 hardcode_direct_F77=no
12862 hardcode_direct_absolute_F77=no
12863 hardcode_libdir_flag_spec_F77=
12864 hardcode_libdir_separator_F77=
12865 hardcode_minus_L_F77=no
12866 hardcode_automatic_F77=no
12867 inherit_rpath_F77=no
12868 module_cmds_F77=
12869 module_expsym_cmds_F77=
12870 link_all_deplibs_F77=unknown
12871 old_archive_cmds_F77=$old_archive_cmds
12872 reload_flag_F77=$reload_flag
12873 reload_cmds_F77=$reload_cmds
12874 no_undefined_flag_F77=
12875 whole_archive_flag_spec_F77=
12876 enable_shared_with_static_runtimes_F77=no
12877
12878 # Source file extension for f77 test sources.
12879 ac_ext=f
12880
12881 # Object file extension for compiled f77 test sources.
12882 objext=o
12883 objext_F77=$objext
12884
12885 # No sense in running all these tests if we already determined that
12886 # the F77 compiler isn't working. Some variables (like enable_shared)
12887 # are currently assumed to apply to all compilers on this platform,
12888 # and will be corrupted by setting them based on a non-working compiler.
12889 if test "$_lt_disable_F77" != yes; then
12890 # Code to be used in simple compile tests
12891 lt_simple_compile_test_code="\
12892 subroutine t
12893 return
12894 end
12895 "
12896
12897 # Code to be used in simple link tests
12898 lt_simple_link_test_code="\
12899 program t
12900 end
12901 "
12902
12903 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12904
12905
12906
12907
12908
12909
12910 # If no C compiler was specified, use CC.
12911 LTCC=${LTCC-"$CC"}
12912
12913 # If no C compiler flags were specified, use CFLAGS.
12914 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12915
12916 # Allow CC to be a program name with arguments.
12917 compiler=$CC
12918
12919
12920 # save warnings/boilerplate of simple test code
12921 ac_outfile=conftest.$ac_objext
12922 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12923 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12924 _lt_compiler_boilerplate=`cat conftest.err`
12925 $RM conftest*
12926
12927 ac_outfile=conftest.$ac_objext
12928 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12929 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12930 _lt_linker_boilerplate=`cat conftest.err`
12931 $RM -r conftest*
12932
12933
12934 # Allow CC to be a program name with arguments.
12935 lt_save_CC="$CC"
12936 lt_save_GCC=$GCC
12937 lt_save_CFLAGS=$CFLAGS
12938 CC=${F77-"f77"}
12939 CFLAGS=$FFLAGS
12940 compiler=$CC
12941 compiler_F77=$CC
12942 for cc_temp in $compiler""; do
12943 case $cc_temp in
12944 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12945 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12946 \-*) ;;
12947 *) break;;
12948 esac
12949 done
12950 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12951
12952 GCC=$G77
12953 if test -n "$compiler"; then
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12955 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12957 $as_echo "$can_build_shared" >&6; }
12958
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12960 $as_echo_n "checking whether to build shared libraries... " >&6; }
12961 test "$can_build_shared" = "no" && enable_shared=no
12962
12963 # On AIX, shared libraries and static libraries use the same namespace, and
12964 # are all built from PIC.
12965 case $host_os in
12966 aix3*)
12967 test "$enable_shared" = yes && enable_static=no
12968 if test -n "$RANLIB"; then
12969 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12970 postinstall_cmds='$RANLIB $lib'
12971 fi
12972 ;;
12973 aix[4-9]*)
12974 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12975 test "$enable_shared" = yes && enable_static=no
12976 fi
12977 ;;
12978 esac
12979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12980 $as_echo "$enable_shared" >&6; }
12981
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12983 $as_echo_n "checking whether to build static libraries... " >&6; }
12984 # Make sure either enable_shared or enable_static is yes.
12985 test "$enable_shared" = yes || enable_static=yes
12986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12987 $as_echo "$enable_static" >&6; }
12988
12989 GCC_F77="$G77"
12990 LD_F77="$LD"
12991
12992 ## CAVEAT EMPTOR:
12993 ## There is no encapsulation within the following macros, do not change
12994 ## the running order or otherwise move them around unless you know exactly
12995 ## what you are doing...
12996 lt_prog_compiler_wl_F77=
12997 lt_prog_compiler_pic_F77=
12998 lt_prog_compiler_static_F77=
12999
13000
13001 if test "$GCC" = yes; then
13002 lt_prog_compiler_wl_F77='-Wl,'
13003 lt_prog_compiler_static_F77='-static'
13004
13005 case $host_os in
13006 aix*)
13007 # All AIX code is PIC.
13008 if test "$host_cpu" = ia64; then
13009 # AIX 5 now supports IA64 processor
13010 lt_prog_compiler_static_F77='-Bstatic'
13011 fi
13012 ;;
13013
13014 amigaos*)
13015 case $host_cpu in
13016 powerpc)
13017 # see comment about AmigaOS4 .so support
13018 lt_prog_compiler_pic_F77='-fPIC'
13019 ;;
13020 m68k)
13021 # FIXME: we need at least 68020 code to build shared libraries, but
13022 # adding the `-m68020' flag to GCC prevents building anything better,
13023 # like `-m68040'.
13024 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13025 ;;
13026 esac
13027 ;;
13028
13029 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13030 # PIC is the default for these OSes.
13031 ;;
13032
13033 mingw* | cygwin* | pw32* | os2* | cegcc*)
13034 # This hack is so that the source file can tell whether it is being
13035 # built for inclusion in a dll (and should export symbols for example).
13036 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13037 # (--disable-auto-import) libraries
13038 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13039 ;;
13040
13041 darwin* | rhapsody*)
13042 # PIC is the default on this platform
13043 # Common symbols not allowed in MH_DYLIB files
13044 lt_prog_compiler_pic_F77='-fno-common'
13045 ;;
13046
13047 haiku*)
13048 # PIC is the default for Haiku.
13049 # The "-static" flag exists, but is broken.
13050 lt_prog_compiler_static_F77=
13051 ;;
13052
13053 hpux*)
13054 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13055 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13056 # sets the default TLS model and affects inlining.
13057 case $host_cpu in
13058 hppa*64*)
13059 # +Z the default
13060 ;;
13061 *)
13062 lt_prog_compiler_pic_F77='-fPIC'
13063 ;;
13064 esac
13065 ;;
13066
13067 interix[3-9]*)
13068 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13069 # Instead, we relocate shared libraries at runtime.
13070 ;;
13071
13072 msdosdjgpp*)
13073 # Just because we use GCC doesn't mean we suddenly get shared libraries
13074 # on systems that don't support them.
13075 lt_prog_compiler_can_build_shared_F77=no
13076 enable_shared=no
13077 ;;
13078
13079 *nto* | *qnx*)
13080 # QNX uses GNU C++, but need to define -shared option too, otherwise
13081 # it will coredump.
13082 lt_prog_compiler_pic_F77='-fPIC -shared'
13083 ;;
13084
13085 sysv4*MP*)
13086 if test -d /usr/nec; then
13087 lt_prog_compiler_pic_F77=-Kconform_pic
13088 fi
13089 ;;
13090
13091 *)
13092 lt_prog_compiler_pic_F77='-fPIC'
13093 ;;
13094 esac
13095
13096 case $cc_basename in
13097 nvcc*) # Cuda Compiler Driver 2.2
13098 lt_prog_compiler_wl_F77='-Xlinker '
13099 if test -n "$lt_prog_compiler_pic_F77"; then
13100 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
13101 fi
13102 ;;
13103 esac
13104 else
13105 # PORTME Check for flag to pass linker flags through the system compiler.
13106 case $host_os in
13107 aix*)
13108 lt_prog_compiler_wl_F77='-Wl,'
13109 if test "$host_cpu" = ia64; then
13110 # AIX 5 now supports IA64 processor
13111 lt_prog_compiler_static_F77='-Bstatic'
13112 else
13113 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13114 fi
13115 ;;
13116
13117 mingw* | cygwin* | pw32* | os2* | cegcc*)
13118 # This hack is so that the source file can tell whether it is being
13119 # built for inclusion in a dll (and should export symbols for example).
13120 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13121 ;;
13122
13123 hpux9* | hpux10* | hpux11*)
13124 lt_prog_compiler_wl_F77='-Wl,'
13125 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13126 # not for PA HP-UX.
13127 case $host_cpu in
13128 hppa*64*|ia64*)
13129 # +Z the default
13130 ;;
13131 *)
13132 lt_prog_compiler_pic_F77='+Z'
13133 ;;
13134 esac
13135 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13136 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13137 ;;
13138
13139 irix5* | irix6* | nonstopux*)
13140 lt_prog_compiler_wl_F77='-Wl,'
13141 # PIC (with -KPIC) is the default.
13142 lt_prog_compiler_static_F77='-non_shared'
13143 ;;
13144
13145 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13146 case $cc_basename in
13147 # old Intel for x86_64 which still supported -KPIC.
13148 ecc*)
13149 lt_prog_compiler_wl_F77='-Wl,'
13150 lt_prog_compiler_pic_F77='-KPIC'
13151 lt_prog_compiler_static_F77='-static'
13152 ;;
13153 # icc used to be incompatible with GCC.
13154 # ICC 10 doesn't accept -KPIC any more.
13155 icc* | ifort*)
13156 lt_prog_compiler_wl_F77='-Wl,'
13157 lt_prog_compiler_pic_F77='-fPIC'
13158 lt_prog_compiler_static_F77='-static'
13159 ;;
13160 # Lahey Fortran 8.1.
13161 lf95*)
13162 lt_prog_compiler_wl_F77='-Wl,'
13163 lt_prog_compiler_pic_F77='--shared'
13164 lt_prog_compiler_static_F77='--static'
13165 ;;
13166 nagfor*)
13167 # NAG Fortran compiler
13168 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
13169 lt_prog_compiler_pic_F77='-PIC'
13170 lt_prog_compiler_static_F77='-Bstatic'
13171 ;;
13172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13173 # Portland Group compilers (*not* the Pentium gcc compiler,
13174 # which looks to be a dead project)
13175 lt_prog_compiler_wl_F77='-Wl,'
13176 lt_prog_compiler_pic_F77='-fpic'
13177 lt_prog_compiler_static_F77='-Bstatic'
13178 ;;
13179 ccc*)
13180 lt_prog_compiler_wl_F77='-Wl,'
13181 # All Alpha code is PIC.
13182 lt_prog_compiler_static_F77='-non_shared'
13183 ;;
13184 xl* | bgxl* | bgf* | mpixl*)
13185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13186 lt_prog_compiler_wl_F77='-Wl,'
13187 lt_prog_compiler_pic_F77='-qpic'
13188 lt_prog_compiler_static_F77='-qstaticlink'
13189 ;;
13190 *)
13191 case `$CC -V 2>&1 | sed 5q` in
13192 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
13193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13194 lt_prog_compiler_pic_F77='-KPIC'
13195 lt_prog_compiler_static_F77='-Bstatic'
13196 lt_prog_compiler_wl_F77=''
13197 ;;
13198 *Sun\ F* | *Sun*Fortran*)
13199 lt_prog_compiler_pic_F77='-KPIC'
13200 lt_prog_compiler_static_F77='-Bstatic'
13201 lt_prog_compiler_wl_F77='-Qoption ld '
13202 ;;
13203 *Sun\ C*)
13204 # Sun C 5.9
13205 lt_prog_compiler_pic_F77='-KPIC'
13206 lt_prog_compiler_static_F77='-Bstatic'
13207 lt_prog_compiler_wl_F77='-Wl,'
13208 ;;
13209 *Intel*\ [CF]*Compiler*)
13210 lt_prog_compiler_wl_F77='-Wl,'
13211 lt_prog_compiler_pic_F77='-fPIC'
13212 lt_prog_compiler_static_F77='-static'
13213 ;;
13214 *Portland\ Group*)
13215 lt_prog_compiler_wl_F77='-Wl,'
13216 lt_prog_compiler_pic_F77='-fpic'
13217 lt_prog_compiler_static_F77='-Bstatic'
13218 ;;
13219 esac
13220 ;;
13221 esac
13222 ;;
13223
13224 newsos6)
13225 lt_prog_compiler_pic_F77='-KPIC'
13226 lt_prog_compiler_static_F77='-Bstatic'
13227 ;;
13228
13229 *nto* | *qnx*)
13230 # QNX uses GNU C++, but need to define -shared option too, otherwise
13231 # it will coredump.
13232 lt_prog_compiler_pic_F77='-fPIC -shared'
13233 ;;
13234
13235 osf3* | osf4* | osf5*)
13236 lt_prog_compiler_wl_F77='-Wl,'
13237 # All OSF/1 code is PIC.
13238 lt_prog_compiler_static_F77='-non_shared'
13239 ;;
13240
13241 rdos*)
13242 lt_prog_compiler_static_F77='-non_shared'
13243 ;;
13244
13245 solaris*)
13246 lt_prog_compiler_pic_F77='-KPIC'
13247 lt_prog_compiler_static_F77='-Bstatic'
13248 case $cc_basename in
13249 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
13250 lt_prog_compiler_wl_F77='-Qoption ld ';;
13251 *)
13252 lt_prog_compiler_wl_F77='-Wl,';;
13253 esac
13254 ;;
13255
13256 sunos4*)
13257 lt_prog_compiler_wl_F77='-Qoption ld '
13258 lt_prog_compiler_pic_F77='-PIC'
13259 lt_prog_compiler_static_F77='-Bstatic'
13260 ;;
13261
13262 sysv4 | sysv4.2uw2* | sysv4.3*)
13263 lt_prog_compiler_wl_F77='-Wl,'
13264 lt_prog_compiler_pic_F77='-KPIC'
13265 lt_prog_compiler_static_F77='-Bstatic'
13266 ;;
13267
13268 sysv4*MP*)
13269 if test -d /usr/nec ;then
13270 lt_prog_compiler_pic_F77='-Kconform_pic'
13271 lt_prog_compiler_static_F77='-Bstatic'
13272 fi
13273 ;;
13274
13275 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13276 lt_prog_compiler_wl_F77='-Wl,'
13277 lt_prog_compiler_pic_F77='-KPIC'
13278 lt_prog_compiler_static_F77='-Bstatic'
13279 ;;
13280
13281 unicos*)
13282 lt_prog_compiler_wl_F77='-Wl,'
13283 lt_prog_compiler_can_build_shared_F77=no
13284 ;;
13285
13286 uts4*)
13287 lt_prog_compiler_pic_F77='-pic'
13288 lt_prog_compiler_static_F77='-Bstatic'
13289 ;;
13290
13291 *)
13292 lt_prog_compiler_can_build_shared_F77=no
13293 ;;
13294 esac
13295 fi
13296
13297 case $host_os in
13298 # For platforms which do not support PIC, -DPIC is meaningless:
13299 *djgpp*)
13300 lt_prog_compiler_pic_F77=
13301 ;;
13302 *)
13303 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13304 ;;
13305 esac
13306
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13308 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13309 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
13310 $as_echo_n "(cached) " >&6
13311 else
13312 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
13313 fi
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
13315 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
13316 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
13317
13318 #
13319 # Check to make sure the PIC flag actually works.
13320 #
13321 if test -n "$lt_prog_compiler_pic_F77"; then
13322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13323 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13324 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
13325 $as_echo_n "(cached) " >&6
13326 else
13327 lt_cv_prog_compiler_pic_works_F77=no
13328 ac_outfile=conftest.$ac_objext
13329 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13330 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13331 # Insert the option either (1) after the last *FLAGS variable, or
13332 # (2) before a word containing "conftest.", or (3) at the end.
13333 # Note that $ac_compile itself does not contain backslashes and begins
13334 # with a dollar sign (not a hyphen), so the echo should work correctly.
13335 # The option is referenced via a variable to avoid confusing sed.
13336 lt_compile=`echo "$ac_compile" | $SED \
13337 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13338 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13339 -e 's:$: $lt_compiler_flag:'`
13340 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13341 (eval "$lt_compile" 2>conftest.err)
13342 ac_status=$?
13343 cat conftest.err >&5
13344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13345 if (exit $ac_status) && test -s "$ac_outfile"; then
13346 # The compiler can only warn and ignore the option if not recognized
13347 # So say no if there are warnings other than the usual output.
13348 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13349 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13350 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13351 lt_cv_prog_compiler_pic_works_F77=yes
13352 fi
13353 fi
13354 $RM conftest*
13355
13356 fi
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13358 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
13359
13360 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13361 case $lt_prog_compiler_pic_F77 in
13362 "" | " "*) ;;
13363 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13364 esac
13365 else
13366 lt_prog_compiler_pic_F77=
13367 lt_prog_compiler_can_build_shared_F77=no
13368 fi
13369
13370 fi
13371
13372
13373
13374
13375
13376 #
13377 # Check to make sure the static flag actually works.
13378 #
13379 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13381 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13382 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
13383 $as_echo_n "(cached) " >&6
13384 else
13385 lt_cv_prog_compiler_static_works_F77=no
13386 save_LDFLAGS="$LDFLAGS"
13387 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13388 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13389 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13390 # The linker can only warn and ignore the option if not recognized
13391 # So say no if there are warnings
13392 if test -s conftest.err; then
13393 # Append any errors to the config.log.
13394 cat conftest.err 1>&5
13395 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13396 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13397 if diff conftest.exp conftest.er2 >/dev/null; then
13398 lt_cv_prog_compiler_static_works_F77=yes
13399 fi
13400 else
13401 lt_cv_prog_compiler_static_works_F77=yes
13402 fi
13403 fi
13404 $RM -r conftest*
13405 LDFLAGS="$save_LDFLAGS"
13406
13407 fi
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
13409 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
13410
13411 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13412 :
13413 else
13414 lt_prog_compiler_static_F77=
13415 fi
13416
13417
13418
13419
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13421 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13422 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 lt_cv_prog_compiler_c_o_F77=no
13426 $RM -r conftest 2>/dev/null
13427 mkdir conftest
13428 cd conftest
13429 mkdir out
13430 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13431
13432 lt_compiler_flag="-o out/conftest2.$ac_objext"
13433 # Insert the option either (1) after the last *FLAGS variable, or
13434 # (2) before a word containing "conftest.", or (3) at the end.
13435 # Note that $ac_compile itself does not contain backslashes and begins
13436 # with a dollar sign (not a hyphen), so the echo should work correctly.
13437 lt_compile=`echo "$ac_compile" | $SED \
13438 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13439 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13440 -e 's:$: $lt_compiler_flag:'`
13441 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13442 (eval "$lt_compile" 2>out/conftest.err)
13443 ac_status=$?
13444 cat out/conftest.err >&5
13445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13446 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13447 then
13448 # The compiler can only warn and ignore the option if not recognized
13449 # So say no if there are warnings
13450 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13451 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13452 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13453 lt_cv_prog_compiler_c_o_F77=yes
13454 fi
13455 fi
13456 chmod u+w . 2>&5
13457 $RM conftest*
13458 # SGI C++ compiler will create directory out/ii_files/ for
13459 # template instantiation
13460 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13461 $RM out/* && rmdir out
13462 cd ..
13463 $RM -r conftest
13464 $RM conftest*
13465
13466 fi
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13468 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13469
13470
13471
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13473 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13474 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13475 $as_echo_n "(cached) " >&6
13476 else
13477 lt_cv_prog_compiler_c_o_F77=no
13478 $RM -r conftest 2>/dev/null
13479 mkdir conftest
13480 cd conftest
13481 mkdir out
13482 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13483
13484 lt_compiler_flag="-o out/conftest2.$ac_objext"
13485 # Insert the option either (1) after the last *FLAGS variable, or
13486 # (2) before a word containing "conftest.", or (3) at the end.
13487 # Note that $ac_compile itself does not contain backslashes and begins
13488 # with a dollar sign (not a hyphen), so the echo should work correctly.
13489 lt_compile=`echo "$ac_compile" | $SED \
13490 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13491 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13492 -e 's:$: $lt_compiler_flag:'`
13493 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13494 (eval "$lt_compile" 2>out/conftest.err)
13495 ac_status=$?
13496 cat out/conftest.err >&5
13497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13499 then
13500 # The compiler can only warn and ignore the option if not recognized
13501 # So say no if there are warnings
13502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13503 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13504 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13505 lt_cv_prog_compiler_c_o_F77=yes
13506 fi
13507 fi
13508 chmod u+w . 2>&5
13509 $RM conftest*
13510 # SGI C++ compiler will create directory out/ii_files/ for
13511 # template instantiation
13512 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13513 $RM out/* && rmdir out
13514 cd ..
13515 $RM -r conftest
13516 $RM conftest*
13517
13518 fi
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13520 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13521
13522
13523
13524
13525 hard_links="nottested"
13526 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13527 # do not overwrite the value of need_locks provided by the user
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13529 $as_echo_n "checking if we can lock with hard links... " >&6; }
13530 hard_links=yes
13531 $RM conftest*
13532 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13533 touch conftest.a
13534 ln conftest.a conftest.b 2>&5 || hard_links=no
13535 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13537 $as_echo "$hard_links" >&6; }
13538 if test "$hard_links" = no; then
13539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13540 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13541 need_locks=warn
13542 fi
13543 else
13544 need_locks=no
13545 fi
13546
13547
13548
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13550 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13551
13552 runpath_var=
13553 allow_undefined_flag_F77=
13554 always_export_symbols_F77=no
13555 archive_cmds_F77=
13556 archive_expsym_cmds_F77=
13557 compiler_needs_object_F77=no
13558 enable_shared_with_static_runtimes_F77=no
13559 export_dynamic_flag_spec_F77=
13560 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13561 hardcode_automatic_F77=no
13562 hardcode_direct_F77=no
13563 hardcode_direct_absolute_F77=no
13564 hardcode_libdir_flag_spec_F77=
13565 hardcode_libdir_separator_F77=
13566 hardcode_minus_L_F77=no
13567 hardcode_shlibpath_var_F77=unsupported
13568 inherit_rpath_F77=no
13569 link_all_deplibs_F77=unknown
13570 module_cmds_F77=
13571 module_expsym_cmds_F77=
13572 old_archive_from_new_cmds_F77=
13573 old_archive_from_expsyms_cmds_F77=
13574 thread_safe_flag_spec_F77=
13575 whole_archive_flag_spec_F77=
13576 # include_expsyms should be a list of space-separated symbols to be *always*
13577 # included in the symbol list
13578 include_expsyms_F77=
13579 # exclude_expsyms can be an extended regexp of symbols to exclude
13580 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13581 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13582 # as well as any symbol that contains `d'.
13583 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13584 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13585 # platforms (ab)use it in PIC code, but their linkers get confused if
13586 # the symbol is explicitly referenced. Since portable code cannot
13587 # rely on this symbol name, it's probably fine to never include it in
13588 # preloaded symbol tables.
13589 # Exclude shared library initialization/finalization symbols.
13590 extract_expsyms_cmds=
13591
13592 case $host_os in
13593 cygwin* | mingw* | pw32* | cegcc*)
13594 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13595 # When not using gcc, we currently assume that we are using
13596 # Microsoft Visual C++.
13597 if test "$GCC" != yes; then
13598 with_gnu_ld=no
13599 fi
13600 ;;
13601 interix*)
13602 # we just hope/assume this is gcc and not c89 (= MSVC++)
13603 with_gnu_ld=yes
13604 ;;
13605 openbsd*)
13606 with_gnu_ld=no
13607 ;;
13608 esac
13609
13610 ld_shlibs_F77=yes
13611
13612 # On some targets, GNU ld is compatible enough with the native linker
13613 # that we're better off using the native interface for both.
13614 lt_use_gnu_ld_interface=no
13615 if test "$with_gnu_ld" = yes; then
13616 case $host_os in
13617 aix*)
13618 # The AIX port of GNU ld has always aspired to compatibility
13619 # with the native linker. However, as the warning in the GNU ld
13620 # block says, versions before 2.19.5* couldn't really create working
13621 # shared libraries, regardless of the interface used.
13622 case `$LD -v 2>&1` in
13623 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13624 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13625 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13626 *)
13627 lt_use_gnu_ld_interface=yes
13628 ;;
13629 esac
13630 ;;
13631 *)
13632 lt_use_gnu_ld_interface=yes
13633 ;;
13634 esac
13635 fi
13636
13637 if test "$lt_use_gnu_ld_interface" = yes; then
13638 # If archive_cmds runs LD, not CC, wlarc should be empty
13639 wlarc='${wl}'
13640
13641 # Set some defaults for GNU ld with shared library support. These
13642 # are reset later if shared libraries are not supported. Putting them
13643 # here allows them to be overridden if necessary.
13644 runpath_var=LD_RUN_PATH
13645 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13646 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13647 # ancient GNU ld didn't support --whole-archive et. al.
13648 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13649 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13650 else
13651 whole_archive_flag_spec_F77=
13652 fi
13653 supports_anon_versioning=no
13654 case `$LD -v 2>&1` in
13655 *GNU\ gold*) supports_anon_versioning=yes ;;
13656 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13657 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13658 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13659 *\ 2.11.*) ;; # other 2.11 versions
13660 *) supports_anon_versioning=yes ;;
13661 esac
13662
13663 # See if GNU ld supports shared libraries.
13664 case $host_os in
13665 aix[3-9]*)
13666 # On AIX/PPC, the GNU linker is very broken
13667 if test "$host_cpu" != ia64; then
13668 ld_shlibs_F77=no
13669 cat <<_LT_EOF 1>&2
13670
13671 *** Warning: the GNU linker, at least up to release 2.19, is reported
13672 *** to be unable to reliably create shared libraries on AIX.
13673 *** Therefore, libtool is disabling shared libraries support. If you
13674 *** really care for shared libraries, you may want to install binutils
13675 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13676 *** You will then need to restart the configuration process.
13677
13678 _LT_EOF
13679 fi
13680 ;;
13681
13682 amigaos*)
13683 case $host_cpu in
13684 powerpc)
13685 # see comment about AmigaOS4 .so support
13686 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13687 archive_expsym_cmds_F77=''
13688 ;;
13689 m68k)
13690 archive_cmds_F77='$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)'
13691 hardcode_libdir_flag_spec_F77='-L$libdir'
13692 hardcode_minus_L_F77=yes
13693 ;;
13694 esac
13695 ;;
13696
13697 beos*)
13698 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13699 allow_undefined_flag_F77=unsupported
13700 # Joseph Beckenbach <[email protected]> says some releases of gcc
13701 # support --undefined. This deserves some investigation. FIXME
13702 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13703 else
13704 ld_shlibs_F77=no
13705 fi
13706 ;;
13707
13708 cygwin* | mingw* | pw32* | cegcc*)
13709 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13710 # as there is no search path for DLLs.
13711 hardcode_libdir_flag_spec_F77='-L$libdir'
13712 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
13713 allow_undefined_flag_F77=unsupported
13714 always_export_symbols_F77=no
13715 enable_shared_with_static_runtimes_F77=yes
13716 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13717 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
13718
13719 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13720 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13721 # If the export-symbols file already is a .def file (1st line
13722 # is EXPORTS), use it as is; otherwise, prepend...
13723 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13724 cp $export_symbols $output_objdir/$soname.def;
13725 else
13726 echo EXPORTS > $output_objdir/$soname.def;
13727 cat $export_symbols >> $output_objdir/$soname.def;
13728 fi~
13729 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13730 else
13731 ld_shlibs_F77=no
13732 fi
13733 ;;
13734
13735 haiku*)
13736 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13737 link_all_deplibs_F77=yes
13738 ;;
13739
13740 interix[3-9]*)
13741 hardcode_direct_F77=no
13742 hardcode_shlibpath_var_F77=no
13743 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13744 export_dynamic_flag_spec_F77='${wl}-E'
13745 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13746 # Instead, shared libraries are loaded at an image base (0x10000000 by
13747 # default) and relocated if they conflict, which is a slow very memory
13748 # consuming and fragmenting process. To avoid this, we pick a random,
13749 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13750 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13751 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13752 archive_expsym_cmds_F77='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'
13753 ;;
13754
13755 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13756 tmp_diet=no
13757 if test "$host_os" = linux-dietlibc; then
13758 case $cc_basename in
13759 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13760 esac
13761 fi
13762 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13763 && test "$tmp_diet" = no
13764 then
13765 tmp_addflag=' $pic_flag'
13766 tmp_sharedflag='-shared'
13767 case $cc_basename,$host_cpu in
13768 pgcc*) # Portland Group C compiler
13769 whole_archive_flag_spec_F77='${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'
13770 tmp_addflag=' $pic_flag'
13771 ;;
13772 pgf77* | pgf90* | pgf95* | pgfortran*)
13773 # Portland Group f77 and f90 compilers
13774 whole_archive_flag_spec_F77='${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'
13775 tmp_addflag=' $pic_flag -Mnomain' ;;
13776 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13777 tmp_addflag=' -i_dynamic' ;;
13778 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13779 tmp_addflag=' -i_dynamic -nofor_main' ;;
13780 ifc* | ifort*) # Intel Fortran compiler
13781 tmp_addflag=' -nofor_main' ;;
13782 lf95*) # Lahey Fortran 8.1
13783 whole_archive_flag_spec_F77=
13784 tmp_sharedflag='--shared' ;;
13785 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13786 tmp_sharedflag='-qmkshrobj'
13787 tmp_addflag= ;;
13788 nvcc*) # Cuda Compiler Driver 2.2
13789 whole_archive_flag_spec_F77='${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'
13790 compiler_needs_object_F77=yes
13791 ;;
13792 esac
13793 case `$CC -V 2>&1 | sed 5q` in
13794 *Sun\ C*) # Sun C 5.9
13795 whole_archive_flag_spec_F77='${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'
13796 compiler_needs_object_F77=yes
13797 tmp_sharedflag='-G' ;;
13798 *Sun\ F*) # Sun Fortran 8.3
13799 tmp_sharedflag='-G' ;;
13800 esac
13801 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13802
13803 if test "x$supports_anon_versioning" = xyes; then
13804 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13805 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13806 echo "local: *; };" >> $output_objdir/$libname.ver~
13807 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13808 fi
13809
13810 case $cc_basename in
13811 xlf* | bgf* | bgxlf* | mpixlf*)
13812 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13813 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
13814 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13815 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
13816 if test "x$supports_anon_versioning" = xyes; then
13817 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
13818 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13819 echo "local: *; };" >> $output_objdir/$libname.ver~
13820 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13821 fi
13822 ;;
13823 esac
13824 else
13825 ld_shlibs_F77=no
13826 fi
13827 ;;
13828
13829 netbsd*)
13830 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13831 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13832 wlarc=
13833 else
13834 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13835 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13836 fi
13837 ;;
13838
13839 solaris*)
13840 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13841 ld_shlibs_F77=no
13842 cat <<_LT_EOF 1>&2
13843
13844 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13845 *** create shared libraries on Solaris systems. Therefore, libtool
13846 *** is disabling shared libraries support. We urge you to upgrade GNU
13847 *** binutils to release 2.9.1 or newer. Another option is to modify
13848 *** your PATH or compiler configuration so that the native linker is
13849 *** used, and then restart.
13850
13851 _LT_EOF
13852 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13853 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13854 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13855 else
13856 ld_shlibs_F77=no
13857 fi
13858 ;;
13859
13860 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13861 case `$LD -v 2>&1` in
13862 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13863 ld_shlibs_F77=no
13864 cat <<_LT_EOF 1>&2
13865
13866 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13867 *** reliably create shared libraries on SCO systems. Therefore, libtool
13868 *** is disabling shared libraries support. We urge you to upgrade GNU
13869 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13870 *** your PATH or compiler configuration so that the native linker is
13871 *** used, and then restart.
13872
13873 _LT_EOF
13874 ;;
13875 *)
13876 # For security reasons, it is highly recommended that you always
13877 # use absolute paths for naming shared libraries, and exclude the
13878 # DT_RUNPATH tag from executables and libraries. But doing so
13879 # requires that you compile everything twice, which is a pain.
13880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13881 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
13882 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13883 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13884 else
13885 ld_shlibs_F77=no
13886 fi
13887 ;;
13888 esac
13889 ;;
13890
13891 sunos4*)
13892 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13893 wlarc=
13894 hardcode_direct_F77=yes
13895 hardcode_shlibpath_var_F77=no
13896 ;;
13897
13898 *)
13899 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13900 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13902 else
13903 ld_shlibs_F77=no
13904 fi
13905 ;;
13906 esac
13907
13908 if test "$ld_shlibs_F77" = no; then
13909 runpath_var=
13910 hardcode_libdir_flag_spec_F77=
13911 export_dynamic_flag_spec_F77=
13912 whole_archive_flag_spec_F77=
13913 fi
13914 else
13915 # PORTME fill in a description of your system's linker (not GNU ld)
13916 case $host_os in
13917 aix3*)
13918 allow_undefined_flag_F77=unsupported
13919 always_export_symbols_F77=yes
13920 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
13921 # Note: this linker hardcodes the directories in LIBPATH if there
13922 # are no directories specified by -L.
13923 hardcode_minus_L_F77=yes
13924 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13925 # Neither direct hardcoding nor static linking is supported with a
13926 # broken collect2.
13927 hardcode_direct_F77=unsupported
13928 fi
13929 ;;
13930
13931 aix[4-9]*)
13932 if test "$host_cpu" = ia64; then
13933 # On IA64, the linker does run time linking by default, so we don't
13934 # have to do anything special.
13935 aix_use_runtimelinking=no
13936 exp_sym_flag='-Bexport'
13937 no_entry_flag=""
13938 else
13939 # If we're using GNU nm, then we don't want the "-C" option.
13940 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13941 # Also, AIX nm treats weak defined symbols like other global
13942 # defined symbols, whereas GNU nm marks them as "W".
13943 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13944 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13945 else
13946 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13947 fi
13948 aix_use_runtimelinking=no
13949
13950 # Test if we are trying to use run time linking or normal
13951 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13952 # need to do runtime linking.
13953 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13954 for ld_flag in $LDFLAGS; do
13955 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13956 aix_use_runtimelinking=yes
13957 break
13958 fi
13959 done
13960 ;;
13961 esac
13962
13963 exp_sym_flag='-bexport'
13964 no_entry_flag='-bnoentry'
13965 fi
13966
13967 # When large executables or shared objects are built, AIX ld can
13968 # have problems creating the table of contents. If linking a library
13969 # or program results in "error TOC overflow" add -mminimal-toc to
13970 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13971 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13972
13973 archive_cmds_F77=''
13974 hardcode_direct_F77=yes
13975 hardcode_direct_absolute_F77=yes
13976 hardcode_libdir_separator_F77=':'
13977 link_all_deplibs_F77=yes
13978 file_list_spec_F77='${wl}-f,'
13979
13980 if test "$GCC" = yes; then
13981 case $host_os in aix4.[012]|aix4.[012].*)
13982 # We only want to do this on AIX 4.2 and lower, the check
13983 # below for broken collect2 doesn't work under 4.3+
13984 collect2name=`${CC} -print-prog-name=collect2`
13985 if test -f "$collect2name" &&
13986 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13987 then
13988 # We have reworked collect2
13989 :
13990 else
13991 # We have old collect2
13992 hardcode_direct_F77=unsupported
13993 # It fails to find uninstalled libraries when the uninstalled
13994 # path is not listed in the libpath. Setting hardcode_minus_L
13995 # to unsupported forces relinking
13996 hardcode_minus_L_F77=yes
13997 hardcode_libdir_flag_spec_F77='-L$libdir'
13998 hardcode_libdir_separator_F77=
13999 fi
14000 ;;
14001 esac
14002 shared_flag='-shared'
14003 if test "$aix_use_runtimelinking" = yes; then
14004 shared_flag="$shared_flag "'${wl}-G'
14005 fi
14006 else
14007 # not using gcc
14008 if test "$host_cpu" = ia64; then
14009 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14010 # chokes on -Wl,-G. The following line is correct:
14011 shared_flag='-G'
14012 else
14013 if test "$aix_use_runtimelinking" = yes; then
14014 shared_flag='${wl}-G'
14015 else
14016 shared_flag='${wl}-bM:SRE'
14017 fi
14018 fi
14019 fi
14020
14021 export_dynamic_flag_spec_F77='${wl}-bexpall'
14022 # It seems that -bexpall does not export symbols beginning with
14023 # underscore (_), so it is better to generate a list of symbols to export.
14024 always_export_symbols_F77=yes
14025 if test "$aix_use_runtimelinking" = yes; then
14026 # Warning - without using the other runtime loading flags (-brtl),
14027 # -berok will link without error, but may produce a broken library.
14028 allow_undefined_flag_F77='-berok'
14029 # Determine the default libpath from the value encoded in an
14030 # empty executable.
14031 if test "${lt_cv_aix_libpath+set}" = set; then
14032 aix_libpath=$lt_cv_aix_libpath
14033 else
14034 if ${lt_cv_aix_libpath__F77+:} false; then :
14035 $as_echo_n "(cached) " >&6
14036 else
14037 cat > conftest.$ac_ext <<_ACEOF
14038 program main
14039
14040 end
14041 _ACEOF
14042 if ac_fn_f77_try_link "$LINENO"; then :
14043
14044 lt_aix_libpath_sed='
14045 /Import File Strings/,/^$/ {
14046 /^0/ {
14047 s/^0 *\([^ ]*\) *$/\1/
14048 p
14049 }
14050 }'
14051 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14052 # Check for a 64-bit object if we didn't find anything.
14053 if test -z "$lt_cv_aix_libpath__F77"; then
14054 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14055 fi
14056 fi
14057 rm -f core conftest.err conftest.$ac_objext \
14058 conftest$ac_exeext conftest.$ac_ext
14059 if test -z "$lt_cv_aix_libpath__F77"; then
14060 lt_cv_aix_libpath__F77="/usr/lib:/lib"
14061 fi
14062
14063 fi
14064
14065 aix_libpath=$lt_cv_aix_libpath__F77
14066 fi
14067
14068 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14069 archive_expsym_cmds_F77='$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"
14070 else
14071 if test "$host_cpu" = ia64; then
14072 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14073 allow_undefined_flag_F77="-z nodefs"
14074 archive_expsym_cmds_F77="\$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"
14075 else
14076 # Determine the default libpath from the value encoded in an
14077 # empty executable.
14078 if test "${lt_cv_aix_libpath+set}" = set; then
14079 aix_libpath=$lt_cv_aix_libpath
14080 else
14081 if ${lt_cv_aix_libpath__F77+:} false; then :
14082 $as_echo_n "(cached) " >&6
14083 else
14084 cat > conftest.$ac_ext <<_ACEOF
14085 program main
14086
14087 end
14088 _ACEOF
14089 if ac_fn_f77_try_link "$LINENO"; then :
14090
14091 lt_aix_libpath_sed='
14092 /Import File Strings/,/^$/ {
14093 /^0/ {
14094 s/^0 *\([^ ]*\) *$/\1/
14095 p
14096 }
14097 }'
14098 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14099 # Check for a 64-bit object if we didn't find anything.
14100 if test -z "$lt_cv_aix_libpath__F77"; then
14101 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14102 fi
14103 fi
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 if test -z "$lt_cv_aix_libpath__F77"; then
14107 lt_cv_aix_libpath__F77="/usr/lib:/lib"
14108 fi
14109
14110 fi
14111
14112 aix_libpath=$lt_cv_aix_libpath__F77
14113 fi
14114
14115 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14116 # Warning - without using the other run time loading flags,
14117 # -berok will link without error, but may produce a broken library.
14118 no_undefined_flag_F77=' ${wl}-bernotok'
14119 allow_undefined_flag_F77=' ${wl}-berok'
14120 if test "$with_gnu_ld" = yes; then
14121 # We only use this code for GNU lds that support --whole-archive.
14122 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14123 else
14124 # Exported symbols can be pulled into shared objects from archives
14125 whole_archive_flag_spec_F77='$convenience'
14126 fi
14127 archive_cmds_need_lc_F77=yes
14128 # This is similar to how AIX traditionally builds its shared libraries.
14129 archive_expsym_cmds_F77="\$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'
14130 fi
14131 fi
14132 ;;
14133
14134 amigaos*)
14135 case $host_cpu in
14136 powerpc)
14137 # see comment about AmigaOS4 .so support
14138 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14139 archive_expsym_cmds_F77=''
14140 ;;
14141 m68k)
14142 archive_cmds_F77='$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)'
14143 hardcode_libdir_flag_spec_F77='-L$libdir'
14144 hardcode_minus_L_F77=yes
14145 ;;
14146 esac
14147 ;;
14148
14149 bsdi[45]*)
14150 export_dynamic_flag_spec_F77=-rdynamic
14151 ;;
14152
14153 cygwin* | mingw* | pw32* | cegcc*)
14154 # When not using gcc, we currently assume that we are using
14155 # Microsoft Visual C++.
14156 # hardcode_libdir_flag_spec is actually meaningless, as there is
14157 # no search path for DLLs.
14158 case $cc_basename in
14159 cl*)
14160 # Native MSVC
14161 hardcode_libdir_flag_spec_F77=' '
14162 allow_undefined_flag_F77=unsupported
14163 always_export_symbols_F77=yes
14164 file_list_spec_F77='@'
14165 # Tell ltmain to make .lib files, not .a files.
14166 libext=lib
14167 # Tell ltmain to make .dll files, not .so files.
14168 shrext_cmds=".dll"
14169 # FIXME: Setting linknames here is a bad hack.
14170 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
14171 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14172 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
14173 else
14174 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
14175 fi~
14176 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
14177 linknames='
14178 # The linker will not automatically build a static lib if we build a DLL.
14179 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
14180 enable_shared_with_static_runtimes_F77=yes
14181 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
14182 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14183 # Don't use ranlib
14184 old_postinstall_cmds_F77='chmod 644 $oldlib'
14185 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
14186 lt_tool_outputfile="@TOOL_OUTPUT@"~
14187 case $lt_outputfile in
14188 *.exe|*.EXE) ;;
14189 *)
14190 lt_outputfile="$lt_outputfile.exe"
14191 lt_tool_outputfile="$lt_tool_outputfile.exe"
14192 ;;
14193 esac~
14194 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
14195 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
14196 $RM "$lt_outputfile.manifest";
14197 fi'
14198 ;;
14199 *)
14200 # Assume MSVC wrapper
14201 hardcode_libdir_flag_spec_F77=' '
14202 allow_undefined_flag_F77=unsupported
14203 # Tell ltmain to make .lib files, not .a files.
14204 libext=lib
14205 # Tell ltmain to make .dll files, not .so files.
14206 shrext_cmds=".dll"
14207 # FIXME: Setting linknames here is a bad hack.
14208 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14209 # The linker will automatically build a .lib file if we build a DLL.
14210 old_archive_from_new_cmds_F77='true'
14211 # FIXME: Should let the user specify the lib program.
14212 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14213 enable_shared_with_static_runtimes_F77=yes
14214 ;;
14215 esac
14216 ;;
14217
14218 darwin* | rhapsody*)
14219
14220
14221 archive_cmds_need_lc_F77=no
14222 hardcode_direct_F77=no
14223 hardcode_automatic_F77=yes
14224 hardcode_shlibpath_var_F77=unsupported
14225 if test "$lt_cv_ld_force_load" = "yes"; then
14226 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14227 compiler_needs_object_F77=yes
14228 else
14229 whole_archive_flag_spec_F77=''
14230 fi
14231 link_all_deplibs_F77=yes
14232 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
14233 case $cc_basename in
14234 ifort*) _lt_dar_can_shared=yes ;;
14235 *) _lt_dar_can_shared=$GCC ;;
14236 esac
14237 if test "$_lt_dar_can_shared" = "yes"; then
14238 output_verbose_link_cmd=func_echo_all
14239 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14240 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14241 archive_expsym_cmds_F77="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}"
14242 module_expsym_cmds_F77="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}"
14243
14244 else
14245 ld_shlibs_F77=no
14246 fi
14247
14248 ;;
14249
14250 dgux*)
14251 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14252 hardcode_libdir_flag_spec_F77='-L$libdir'
14253 hardcode_shlibpath_var_F77=no
14254 ;;
14255
14256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14257 # support. Future versions do this automatically, but an explicit c++rt0.o
14258 # does not break anything, and helps significantly (at the cost of a little
14259 # extra space).
14260 freebsd2.2*)
14261 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14262 hardcode_libdir_flag_spec_F77='-R$libdir'
14263 hardcode_direct_F77=yes
14264 hardcode_shlibpath_var_F77=no
14265 ;;
14266
14267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14268 freebsd2.*)
14269 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14270 hardcode_direct_F77=yes
14271 hardcode_minus_L_F77=yes
14272 hardcode_shlibpath_var_F77=no
14273 ;;
14274
14275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14276 freebsd* | dragonfly*)
14277 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14278 hardcode_libdir_flag_spec_F77='-R$libdir'
14279 hardcode_direct_F77=yes
14280 hardcode_shlibpath_var_F77=no
14281 ;;
14282
14283 hpux9*)
14284 if test "$GCC" = yes; then
14285 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14286 else
14287 archive_cmds_F77='$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'
14288 fi
14289 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14290 hardcode_libdir_separator_F77=:
14291 hardcode_direct_F77=yes
14292
14293 # hardcode_minus_L: Not really in the search PATH,
14294 # but as the default location of the library.
14295 hardcode_minus_L_F77=yes
14296 export_dynamic_flag_spec_F77='${wl}-E'
14297 ;;
14298
14299 hpux10*)
14300 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14301 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14302 else
14303 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14304 fi
14305 if test "$with_gnu_ld" = no; then
14306 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14307 hardcode_libdir_separator_F77=:
14308 hardcode_direct_F77=yes
14309 hardcode_direct_absolute_F77=yes
14310 export_dynamic_flag_spec_F77='${wl}-E'
14311 # hardcode_minus_L: Not really in the search PATH,
14312 # but as the default location of the library.
14313 hardcode_minus_L_F77=yes
14314 fi
14315 ;;
14316
14317 hpux11*)
14318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14319 case $host_cpu in
14320 hppa*64*)
14321 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 ;;
14323 ia64*)
14324 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14325 ;;
14326 *)
14327 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14328 ;;
14329 esac
14330 else
14331 case $host_cpu in
14332 hppa*64*)
14333 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14334 ;;
14335 ia64*)
14336 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14337 ;;
14338 *)
14339 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14340 ;;
14341 esac
14342 fi
14343 if test "$with_gnu_ld" = no; then
14344 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14345 hardcode_libdir_separator_F77=:
14346
14347 case $host_cpu in
14348 hppa*64*|ia64*)
14349 hardcode_direct_F77=no
14350 hardcode_shlibpath_var_F77=no
14351 ;;
14352 *)
14353 hardcode_direct_F77=yes
14354 hardcode_direct_absolute_F77=yes
14355 export_dynamic_flag_spec_F77='${wl}-E'
14356
14357 # hardcode_minus_L: Not really in the search PATH,
14358 # but as the default location of the library.
14359 hardcode_minus_L_F77=yes
14360 ;;
14361 esac
14362 fi
14363 ;;
14364
14365 irix5* | irix6* | nonstopux*)
14366 if test "$GCC" = yes; then
14367 archive_cmds_F77='$CC -shared $pic_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'
14368 # Try to use the -exported_symbol ld option, if it does not
14369 # work, assume that -exports_file does not work either and
14370 # implicitly export all symbols.
14371 # This should be the same for all languages, so no per-tag cache variable.
14372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
14373 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
14374 if ${lt_cv_irix_exported_symbol+:} false; then :
14375 $as_echo_n "(cached) " >&6
14376 else
14377 save_LDFLAGS="$LDFLAGS"
14378 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14379 cat > conftest.$ac_ext <<_ACEOF
14380
14381 subroutine foo
14382 end
14383 _ACEOF
14384 if ac_fn_f77_try_link "$LINENO"; then :
14385 lt_cv_irix_exported_symbol=yes
14386 else
14387 lt_cv_irix_exported_symbol=no
14388 fi
14389 rm -f core conftest.err conftest.$ac_objext \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LDFLAGS="$save_LDFLAGS"
14392 fi
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
14394 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
14395 if test "$lt_cv_irix_exported_symbol" = yes; then
14396 archive_expsym_cmds_F77='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
14397 fi
14398 else
14399 archive_cmds_F77='$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'
14400 archive_expsym_cmds_F77='$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'
14401 fi
14402 archive_cmds_need_lc_F77='no'
14403 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14404 hardcode_libdir_separator_F77=:
14405 inherit_rpath_F77=yes
14406 link_all_deplibs_F77=yes
14407 ;;
14408
14409 netbsd*)
14410 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14411 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14412 else
14413 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14414 fi
14415 hardcode_libdir_flag_spec_F77='-R$libdir'
14416 hardcode_direct_F77=yes
14417 hardcode_shlibpath_var_F77=no
14418 ;;
14419
14420 newsos6)
14421 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14422 hardcode_direct_F77=yes
14423 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14424 hardcode_libdir_separator_F77=:
14425 hardcode_shlibpath_var_F77=no
14426 ;;
14427
14428 *nto* | *qnx*)
14429 ;;
14430
14431 openbsd*)
14432 if test -f /usr/libexec/ld.so; then
14433 hardcode_direct_F77=yes
14434 hardcode_shlibpath_var_F77=no
14435 hardcode_direct_absolute_F77=yes
14436 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14437 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14438 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14440 export_dynamic_flag_spec_F77='${wl}-E'
14441 else
14442 case $host_os in
14443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14445 hardcode_libdir_flag_spec_F77='-R$libdir'
14446 ;;
14447 *)
14448 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14450 ;;
14451 esac
14452 fi
14453 else
14454 ld_shlibs_F77=no
14455 fi
14456 ;;
14457
14458 os2*)
14459 hardcode_libdir_flag_spec_F77='-L$libdir'
14460 hardcode_minus_L_F77=yes
14461 allow_undefined_flag_F77=unsupported
14462 archive_cmds_F77='$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'
14463 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14464 ;;
14465
14466 osf3*)
14467 if test "$GCC" = yes; then
14468 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14469 archive_cmds_F77='$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'
14470 else
14471 allow_undefined_flag_F77=' -expect_unresolved \*'
14472 archive_cmds_F77='$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'
14473 fi
14474 archive_cmds_need_lc_F77='no'
14475 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14476 hardcode_libdir_separator_F77=:
14477 ;;
14478
14479 osf4* | osf5*) # as osf3* with the addition of -msym flag
14480 if test "$GCC" = yes; then
14481 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14482 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_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'
14483 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14484 else
14485 allow_undefined_flag_F77=' -expect_unresolved \*'
14486 archive_cmds_F77='$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'
14487 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
14488 $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'
14489
14490 # Both c and cxx compiler support -rpath directly
14491 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14492 fi
14493 archive_cmds_need_lc_F77='no'
14494 hardcode_libdir_separator_F77=:
14495 ;;
14496
14497 solaris*)
14498 no_undefined_flag_F77=' -z defs'
14499 if test "$GCC" = yes; then
14500 wlarc='${wl}'
14501 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14502 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14503 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14504 else
14505 case `$CC -V 2>&1` in
14506 *"Compilers 5.0"*)
14507 wlarc=''
14508 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14509 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14510 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14511 ;;
14512 *)
14513 wlarc='${wl}'
14514 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14515 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14516 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14517 ;;
14518 esac
14519 fi
14520 hardcode_libdir_flag_spec_F77='-R$libdir'
14521 hardcode_shlibpath_var_F77=no
14522 case $host_os in
14523 solaris2.[0-5] | solaris2.[0-5].*) ;;
14524 *)
14525 # The compiler driver will combine and reorder linker options,
14526 # but understands `-z linker_flag'. GCC discards it without `$wl',
14527 # but is careful enough not to reorder.
14528 # Supported since Solaris 2.6 (maybe 2.5.1?)
14529 if test "$GCC" = yes; then
14530 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14531 else
14532 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14533 fi
14534 ;;
14535 esac
14536 link_all_deplibs_F77=yes
14537 ;;
14538
14539 sunos4*)
14540 if test "x$host_vendor" = xsequent; then
14541 # Use $CC to link under sequent, because it throws in some extra .o
14542 # files that make .init and .fini sections work.
14543 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14544 else
14545 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14546 fi
14547 hardcode_libdir_flag_spec_F77='-L$libdir'
14548 hardcode_direct_F77=yes
14549 hardcode_minus_L_F77=yes
14550 hardcode_shlibpath_var_F77=no
14551 ;;
14552
14553 sysv4)
14554 case $host_vendor in
14555 sni)
14556 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14557 hardcode_direct_F77=yes # is this really true???
14558 ;;
14559 siemens)
14560 ## LD is ld it makes a PLAMLIB
14561 ## CC just makes a GrossModule.
14562 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14563 reload_cmds_F77='$CC -r -o $output$reload_objs'
14564 hardcode_direct_F77=no
14565 ;;
14566 motorola)
14567 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14568 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14569 ;;
14570 esac
14571 runpath_var='LD_RUN_PATH'
14572 hardcode_shlibpath_var_F77=no
14573 ;;
14574
14575 sysv4.3*)
14576 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14577 hardcode_shlibpath_var_F77=no
14578 export_dynamic_flag_spec_F77='-Bexport'
14579 ;;
14580
14581 sysv4*MP*)
14582 if test -d /usr/nec; then
14583 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14584 hardcode_shlibpath_var_F77=no
14585 runpath_var=LD_RUN_PATH
14586 hardcode_runpath_var=yes
14587 ld_shlibs_F77=yes
14588 fi
14589 ;;
14590
14591 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14592 no_undefined_flag_F77='${wl}-z,text'
14593 archive_cmds_need_lc_F77=no
14594 hardcode_shlibpath_var_F77=no
14595 runpath_var='LD_RUN_PATH'
14596
14597 if test "$GCC" = yes; then
14598 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14599 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14600 else
14601 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14602 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14603 fi
14604 ;;
14605
14606 sysv5* | sco3.2v5* | sco5v6*)
14607 # Note: We can NOT use -z defs as we might desire, because we do not
14608 # link with -lc, and that would cause any symbols used from libc to
14609 # always be unresolved, which means just about no library would
14610 # ever link correctly. If we're not using GNU ld we use -z text
14611 # though, which does catch some bad symbols but isn't as heavy-handed
14612 # as -z defs.
14613 no_undefined_flag_F77='${wl}-z,text'
14614 allow_undefined_flag_F77='${wl}-z,nodefs'
14615 archive_cmds_need_lc_F77=no
14616 hardcode_shlibpath_var_F77=no
14617 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
14618 hardcode_libdir_separator_F77=':'
14619 link_all_deplibs_F77=yes
14620 export_dynamic_flag_spec_F77='${wl}-Bexport'
14621 runpath_var='LD_RUN_PATH'
14622
14623 if test "$GCC" = yes; then
14624 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14625 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 else
14627 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14628 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14629 fi
14630 ;;
14631
14632 uts4*)
14633 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14634 hardcode_libdir_flag_spec_F77='-L$libdir'
14635 hardcode_shlibpath_var_F77=no
14636 ;;
14637
14638 *)
14639 ld_shlibs_F77=no
14640 ;;
14641 esac
14642
14643 if test x$host_vendor = xsni; then
14644 case $host in
14645 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14646 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
14647 ;;
14648 esac
14649 fi
14650 fi
14651
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14653 $as_echo "$ld_shlibs_F77" >&6; }
14654 test "$ld_shlibs_F77" = no && can_build_shared=no
14655
14656 with_gnu_ld_F77=$with_gnu_ld
14657
14658
14659
14660
14661
14662
14663 #
14664 # Do we need to explicitly link libc?
14665 #
14666 case "x$archive_cmds_need_lc_F77" in
14667 x|xyes)
14668 # Assume -lc should be added
14669 archive_cmds_need_lc_F77=yes
14670
14671 if test "$enable_shared" = yes && test "$GCC" = yes; then
14672 case $archive_cmds_F77 in
14673 *'~'*)
14674 # FIXME: we may have to deal with multi-command sequences.
14675 ;;
14676 '$CC '*)
14677 # Test whether the compiler implicitly links with -lc since on some
14678 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14679 # to ld, don't add -lc before -lgcc.
14680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14681 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14682 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
14683 $as_echo_n "(cached) " >&6
14684 else
14685 $RM conftest*
14686 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14687
14688 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14689 (eval $ac_compile) 2>&5
14690 ac_status=$?
14691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14692 test $ac_status = 0; } 2>conftest.err; then
14693 soname=conftest
14694 lib=conftest
14695 libobjs=conftest.$ac_objext
14696 deplibs=
14697 wl=$lt_prog_compiler_wl_F77
14698 pic_flag=$lt_prog_compiler_pic_F77
14699 compiler_flags=-v
14700 linker_flags=-v
14701 verstring=
14702 output_objdir=.
14703 libname=conftest
14704 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14705 allow_undefined_flag_F77=
14706 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14707 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14708 ac_status=$?
14709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14710 test $ac_status = 0; }
14711 then
14712 lt_cv_archive_cmds_need_lc_F77=no
14713 else
14714 lt_cv_archive_cmds_need_lc_F77=yes
14715 fi
14716 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14717 else
14718 cat conftest.err 1>&5
14719 fi
14720 $RM conftest*
14721
14722 fi
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
14724 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
14725 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
14726 ;;
14727 esac
14728 fi
14729 ;;
14730 esac
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740
14741
14742
14743
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754
14755
14756
14757
14758
14759
14760
14761
14762
14763
14764
14765
14766
14767
14768
14769
14770
14771
14772
14773
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792
14793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14794 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14795
14796 library_names_spec=
14797 libname_spec='lib$name'
14798 soname_spec=
14799 shrext_cmds=".so"
14800 postinstall_cmds=
14801 postuninstall_cmds=
14802 finish_cmds=
14803 finish_eval=
14804 shlibpath_var=
14805 shlibpath_overrides_runpath=unknown
14806 version_type=none
14807 dynamic_linker="$host_os ld.so"
14808 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14809 need_lib_prefix=unknown
14810 hardcode_into_libs=no
14811
14812 # when you set need_version to no, make sure it does not cause -set_version
14813 # flags to be left without arguments
14814 need_version=unknown
14815
14816 case $host_os in
14817 aix3*)
14818 version_type=linux # correct to gnu/linux during the next big refactor
14819 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14820 shlibpath_var=LIBPATH
14821
14822 # AIX 3 has no versioning support, so we append a major version to the name.
14823 soname_spec='${libname}${release}${shared_ext}$major'
14824 ;;
14825
14826 aix[4-9]*)
14827 version_type=linux # correct to gnu/linux during the next big refactor
14828 need_lib_prefix=no
14829 need_version=no
14830 hardcode_into_libs=yes
14831 if test "$host_cpu" = ia64; then
14832 # AIX 5 supports IA64
14833 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14834 shlibpath_var=LD_LIBRARY_PATH
14835 else
14836 # With GCC up to 2.95.x, collect2 would create an import file
14837 # for dependence libraries. The import file would start with
14838 # the line `#! .'. This would cause the generated library to
14839 # depend on `.', always an invalid library. This was fixed in
14840 # development snapshots of GCC prior to 3.0.
14841 case $host_os in
14842 aix4 | aix4.[01] | aix4.[01].*)
14843 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14844 echo ' yes '
14845 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14846 :
14847 else
14848 can_build_shared=no
14849 fi
14850 ;;
14851 esac
14852 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14853 # soname into executable. Probably we can add versioning support to
14854 # collect2, so additional links can be useful in future.
14855 if test "$aix_use_runtimelinking" = yes; then
14856 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14857 # instead of lib<name>.a to let people know that these are not
14858 # typical AIX shared libraries.
14859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14860 else
14861 # We preserve .a as extension for shared libraries through AIX4.2
14862 # and later when we are not doing run time linking.
14863 library_names_spec='${libname}${release}.a $libname.a'
14864 soname_spec='${libname}${release}${shared_ext}$major'
14865 fi
14866 shlibpath_var=LIBPATH
14867 fi
14868 ;;
14869
14870 amigaos*)
14871 case $host_cpu in
14872 powerpc)
14873 # Since July 2007 AmigaOS4 officially supports .so libraries.
14874 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14876 ;;
14877 m68k)
14878 library_names_spec='$libname.ixlibrary $libname.a'
14879 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14880 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'
14881 ;;
14882 esac
14883 ;;
14884
14885 beos*)
14886 library_names_spec='${libname}${shared_ext}'
14887 dynamic_linker="$host_os ld.so"
14888 shlibpath_var=LIBRARY_PATH
14889 ;;
14890
14891 bsdi[45]*)
14892 version_type=linux # correct to gnu/linux during the next big refactor
14893 need_version=no
14894 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14895 soname_spec='${libname}${release}${shared_ext}$major'
14896 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14897 shlibpath_var=LD_LIBRARY_PATH
14898 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14899 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14900 # the default ld.so.conf also contains /usr/contrib/lib and
14901 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14902 # libtool to hard-code these into programs
14903 ;;
14904
14905 cygwin* | mingw* | pw32* | cegcc*)
14906 version_type=windows
14907 shrext_cmds=".dll"
14908 need_version=no
14909 need_lib_prefix=no
14910
14911 case $GCC,$cc_basename in
14912 yes,*)
14913 # gcc
14914 library_names_spec='$libname.dll.a'
14915 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14916 postinstall_cmds='base_file=`basename \${file}`~
14917 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14918 dldir=$destdir/`dirname \$dlpath`~
14919 test -d \$dldir || mkdir -p \$dldir~
14920 $install_prog $dir/$dlname \$dldir/$dlname~
14921 chmod a+x \$dldir/$dlname~
14922 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14923 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14924 fi'
14925 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14926 dlpath=$dir/\$dldll~
14927 $RM \$dlpath'
14928 shlibpath_overrides_runpath=yes
14929
14930 case $host_os in
14931 cygwin*)
14932 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14933 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14934
14935 ;;
14936 mingw* | cegcc*)
14937 # MinGW DLLs use traditional 'lib' prefix
14938 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14939 ;;
14940 pw32*)
14941 # pw32 DLLs use 'pw' prefix rather than 'lib'
14942 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14943 ;;
14944 esac
14945 dynamic_linker='Win32 ld.exe'
14946 ;;
14947
14948 *,cl*)
14949 # Native MSVC
14950 libname_spec='$name'
14951 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14952 library_names_spec='${libname}.dll.lib'
14953
14954 case $build_os in
14955 mingw*)
14956 sys_lib_search_path_spec=
14957 lt_save_ifs=$IFS
14958 IFS=';'
14959 for lt_path in $LIB
14960 do
14961 IFS=$lt_save_ifs
14962 # Let DOS variable expansion print the short 8.3 style file name.
14963 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14964 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14965 done
14966 IFS=$lt_save_ifs
14967 # Convert to MSYS style.
14968 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14969 ;;
14970 cygwin*)
14971 # Convert to unix form, then to dos form, then back to unix form
14972 # but this time dos style (no spaces!) so that the unix form looks
14973 # like /cygdrive/c/PROGRA~1:/cygdr...
14974 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14975 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14976 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14977 ;;
14978 *)
14979 sys_lib_search_path_spec="$LIB"
14980 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14981 # It is most probably a Windows format PATH.
14982 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14983 else
14984 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14985 fi
14986 # FIXME: find the short name or the path components, as spaces are
14987 # common. (e.g. "Program Files" -> "PROGRA~1")
14988 ;;
14989 esac
14990
14991 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14992 postinstall_cmds='base_file=`basename \${file}`~
14993 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14994 dldir=$destdir/`dirname \$dlpath`~
14995 test -d \$dldir || mkdir -p \$dldir~
14996 $install_prog $dir/$dlname \$dldir/$dlname'
14997 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14998 dlpath=$dir/\$dldll~
14999 $RM \$dlpath'
15000 shlibpath_overrides_runpath=yes
15001 dynamic_linker='Win32 link.exe'
15002 ;;
15003
15004 *)
15005 # Assume MSVC wrapper
15006 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15007 dynamic_linker='Win32 ld.exe'
15008 ;;
15009 esac
15010 # FIXME: first we should search . and the directory the executable is in
15011 shlibpath_var=PATH
15012 ;;
15013
15014 darwin* | rhapsody*)
15015 dynamic_linker="$host_os dyld"
15016 version_type=darwin
15017 need_lib_prefix=no
15018 need_version=no
15019 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15020 soname_spec='${libname}${release}${major}$shared_ext'
15021 shlibpath_overrides_runpath=yes
15022 shlibpath_var=DYLD_LIBRARY_PATH
15023 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15024
15025 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15026 ;;
15027
15028 dgux*)
15029 version_type=linux # correct to gnu/linux during the next big refactor
15030 need_lib_prefix=no
15031 need_version=no
15032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15033 soname_spec='${libname}${release}${shared_ext}$major'
15034 shlibpath_var=LD_LIBRARY_PATH
15035 ;;
15036
15037 freebsd* | dragonfly*)
15038 # DragonFly does not have aout. When/if they implement a new
15039 # versioning mechanism, adjust this.
15040 if test -x /usr/bin/objformat; then
15041 objformat=`/usr/bin/objformat`
15042 else
15043 case $host_os in
15044 freebsd[23].*) objformat=aout ;;
15045 *) objformat=elf ;;
15046 esac
15047 fi
15048 version_type=freebsd-$objformat
15049 case $version_type in
15050 freebsd-elf*)
15051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15052 need_version=no
15053 need_lib_prefix=no
15054 ;;
15055 freebsd-*)
15056 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15057 need_version=yes
15058 ;;
15059 esac
15060 shlibpath_var=LD_LIBRARY_PATH
15061 case $host_os in
15062 freebsd2.*)
15063 shlibpath_overrides_runpath=yes
15064 ;;
15065 freebsd3.[01]* | freebsdelf3.[01]*)
15066 shlibpath_overrides_runpath=yes
15067 hardcode_into_libs=yes
15068 ;;
15069 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15070 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15071 shlibpath_overrides_runpath=no
15072 hardcode_into_libs=yes
15073 ;;
15074 *) # from 4.6 on, and DragonFly
15075 shlibpath_overrides_runpath=yes
15076 hardcode_into_libs=yes
15077 ;;
15078 esac
15079 ;;
15080
15081 gnu*)
15082 version_type=linux # correct to gnu/linux during the next big refactor
15083 need_lib_prefix=no
15084 need_version=no
15085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15086 soname_spec='${libname}${release}${shared_ext}$major'
15087 shlibpath_var=LD_LIBRARY_PATH
15088 shlibpath_overrides_runpath=no
15089 hardcode_into_libs=yes
15090 ;;
15091
15092 haiku*)
15093 version_type=linux # correct to gnu/linux during the next big refactor
15094 need_lib_prefix=no
15095 need_version=no
15096 dynamic_linker="$host_os runtime_loader"
15097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15098 soname_spec='${libname}${release}${shared_ext}$major'
15099 shlibpath_var=LIBRARY_PATH
15100 shlibpath_overrides_runpath=yes
15101 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15102 hardcode_into_libs=yes
15103 ;;
15104
15105 hpux9* | hpux10* | hpux11*)
15106 # Give a soname corresponding to the major version so that dld.sl refuses to
15107 # link against other versions.
15108 version_type=sunos
15109 need_lib_prefix=no
15110 need_version=no
15111 case $host_cpu in
15112 ia64*)
15113 shrext_cmds='.so'
15114 hardcode_into_libs=yes
15115 dynamic_linker="$host_os dld.so"
15116 shlibpath_var=LD_LIBRARY_PATH
15117 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15119 soname_spec='${libname}${release}${shared_ext}$major'
15120 if test "X$HPUX_IA64_MODE" = X32; then
15121 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15122 else
15123 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15124 fi
15125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15126 ;;
15127 hppa*64*)
15128 shrext_cmds='.sl'
15129 hardcode_into_libs=yes
15130 dynamic_linker="$host_os dld.sl"
15131 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15132 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 soname_spec='${libname}${release}${shared_ext}$major'
15135 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15136 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15137 ;;
15138 *)
15139 shrext_cmds='.sl'
15140 dynamic_linker="$host_os dld.sl"
15141 shlibpath_var=SHLIB_PATH
15142 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15144 soname_spec='${libname}${release}${shared_ext}$major'
15145 ;;
15146 esac
15147 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15148 postinstall_cmds='chmod 555 $lib'
15149 # or fails outright, so override atomically:
15150 install_override_mode=555
15151 ;;
15152
15153 interix[3-9]*)
15154 version_type=linux # correct to gnu/linux during the next big refactor
15155 need_lib_prefix=no
15156 need_version=no
15157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15158 soname_spec='${libname}${release}${shared_ext}$major'
15159 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 shlibpath_overrides_runpath=no
15162 hardcode_into_libs=yes
15163 ;;
15164
15165 irix5* | irix6* | nonstopux*)
15166 case $host_os in
15167 nonstopux*) version_type=nonstopux ;;
15168 *)
15169 if test "$lt_cv_prog_gnu_ld" = yes; then
15170 version_type=linux # correct to gnu/linux during the next big refactor
15171 else
15172 version_type=irix
15173 fi ;;
15174 esac
15175 need_lib_prefix=no
15176 need_version=no
15177 soname_spec='${libname}${release}${shared_ext}$major'
15178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15179 case $host_os in
15180 irix5* | nonstopux*)
15181 libsuff= shlibsuff=
15182 ;;
15183 *)
15184 case $LD in # libtool.m4 will add one of these switches to LD
15185 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15186 libsuff= shlibsuff= libmagic=32-bit;;
15187 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15188 libsuff=32 shlibsuff=N32 libmagic=N32;;
15189 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15190 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15191 *) libsuff= shlibsuff= libmagic=never-match;;
15192 esac
15193 ;;
15194 esac
15195 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15196 shlibpath_overrides_runpath=no
15197 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15198 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15199 hardcode_into_libs=yes
15200 ;;
15201
15202 # No shared lib support for Linux oldld, aout, or coff.
15203 linux*oldld* | linux*aout* | linux*coff*)
15204 dynamic_linker=no
15205 ;;
15206
15207 # This must be glibc/ELF.
15208 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15209 version_type=linux # correct to gnu/linux during the next big refactor
15210 need_lib_prefix=no
15211 need_version=no
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 soname_spec='${libname}${release}${shared_ext}$major'
15214 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15215 shlibpath_var=LD_LIBRARY_PATH
15216 shlibpath_overrides_runpath=no
15217
15218 # Some binutils ld are patched to set DT_RUNPATH
15219 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 lt_cv_shlibpath_overrides_runpath=no
15223 save_LDFLAGS=$LDFLAGS
15224 save_libdir=$libdir
15225 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
15226 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
15227 cat > conftest.$ac_ext <<_ACEOF
15228 program main
15229
15230 end
15231 _ACEOF
15232 if ac_fn_f77_try_link "$LINENO"; then :
15233 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15234 lt_cv_shlibpath_overrides_runpath=yes
15235 fi
15236 fi
15237 rm -f core conftest.err conftest.$ac_objext \
15238 conftest$ac_exeext conftest.$ac_ext
15239 LDFLAGS=$save_LDFLAGS
15240 libdir=$save_libdir
15241
15242 fi
15243
15244 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15245
15246 # This implies no fast_install, which is unacceptable.
15247 # Some rework will be needed to allow for fast_install
15248 # before this can be enabled.
15249 hardcode_into_libs=yes
15250
15251 # Add ABI-specific directories to the system library path.
15252 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
15253
15254 # Append ld.so.conf contents to the search path
15255 if test -f /etc/ld.so.conf; then
15256 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' ' '`
15257 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15258
15259 fi
15260
15261 # We used to test for /lib/ld.so.1 and disable shared libraries on
15262 # powerpc, because MkLinux only supported shared libraries with the
15263 # GNU dynamic linker. Since this was broken with cross compilers,
15264 # most powerpc-linux boxes support dynamic linking these days and
15265 # people can always --disable-shared, the test was removed, and we
15266 # assume the GNU/Linux dynamic linker is in use.
15267 dynamic_linker='GNU/Linux ld.so'
15268 ;;
15269
15270 netbsd*)
15271 version_type=sunos
15272 need_lib_prefix=no
15273 need_version=no
15274 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15276 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15277 dynamic_linker='NetBSD (a.out) ld.so'
15278 else
15279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15280 soname_spec='${libname}${release}${shared_ext}$major'
15281 dynamic_linker='NetBSD ld.elf_so'
15282 fi
15283 shlibpath_var=LD_LIBRARY_PATH
15284 shlibpath_overrides_runpath=yes
15285 hardcode_into_libs=yes
15286 ;;
15287
15288 newsos6)
15289 version_type=linux # correct to gnu/linux during the next big refactor
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15291 shlibpath_var=LD_LIBRARY_PATH
15292 shlibpath_overrides_runpath=yes
15293 ;;
15294
15295 *nto* | *qnx*)
15296 version_type=qnx
15297 need_lib_prefix=no
15298 need_version=no
15299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15300 soname_spec='${libname}${release}${shared_ext}$major'
15301 shlibpath_var=LD_LIBRARY_PATH
15302 shlibpath_overrides_runpath=no
15303 hardcode_into_libs=yes
15304 dynamic_linker='ldqnx.so'
15305 ;;
15306
15307 openbsd*)
15308 version_type=sunos
15309 sys_lib_dlsearch_path_spec="/usr/lib"
15310 need_lib_prefix=no
15311 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15312 case $host_os in
15313 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15314 *) need_version=no ;;
15315 esac
15316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15317 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15318 shlibpath_var=LD_LIBRARY_PATH
15319 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15320 case $host_os in
15321 openbsd2.[89] | openbsd2.[89].*)
15322 shlibpath_overrides_runpath=no
15323 ;;
15324 *)
15325 shlibpath_overrides_runpath=yes
15326 ;;
15327 esac
15328 else
15329 shlibpath_overrides_runpath=yes
15330 fi
15331 ;;
15332
15333 os2*)
15334 libname_spec='$name'
15335 shrext_cmds=".dll"
15336 need_lib_prefix=no
15337 library_names_spec='$libname${shared_ext} $libname.a'
15338 dynamic_linker='OS/2 ld.exe'
15339 shlibpath_var=LIBPATH
15340 ;;
15341
15342 osf3* | osf4* | osf5*)
15343 version_type=osf
15344 need_lib_prefix=no
15345 need_version=no
15346 soname_spec='${libname}${release}${shared_ext}$major'
15347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15350 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15351 ;;
15352
15353 rdos*)
15354 dynamic_linker=no
15355 ;;
15356
15357 solaris*)
15358 version_type=linux # correct to gnu/linux during the next big refactor
15359 need_lib_prefix=no
15360 need_version=no
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 soname_spec='${libname}${release}${shared_ext}$major'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=yes
15365 hardcode_into_libs=yes
15366 # ldd complains unless libraries are executable
15367 postinstall_cmds='chmod +x $lib'
15368 ;;
15369
15370 sunos4*)
15371 version_type=sunos
15372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15373 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15374 shlibpath_var=LD_LIBRARY_PATH
15375 shlibpath_overrides_runpath=yes
15376 if test "$with_gnu_ld" = yes; then
15377 need_lib_prefix=no
15378 fi
15379 need_version=yes
15380 ;;
15381
15382 sysv4 | sysv4.3*)
15383 version_type=linux # correct to gnu/linux during the next big refactor
15384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15385 soname_spec='${libname}${release}${shared_ext}$major'
15386 shlibpath_var=LD_LIBRARY_PATH
15387 case $host_vendor in
15388 sni)
15389 shlibpath_overrides_runpath=no
15390 need_lib_prefix=no
15391 runpath_var=LD_RUN_PATH
15392 ;;
15393 siemens)
15394 need_lib_prefix=no
15395 ;;
15396 motorola)
15397 need_lib_prefix=no
15398 need_version=no
15399 shlibpath_overrides_runpath=no
15400 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15401 ;;
15402 esac
15403 ;;
15404
15405 sysv4*MP*)
15406 if test -d /usr/nec ;then
15407 version_type=linux # correct to gnu/linux during the next big refactor
15408 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15409 soname_spec='$libname${shared_ext}.$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 fi
15412 ;;
15413
15414 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15415 version_type=freebsd-elf
15416 need_lib_prefix=no
15417 need_version=no
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15419 soname_spec='${libname}${release}${shared_ext}$major'
15420 shlibpath_var=LD_LIBRARY_PATH
15421 shlibpath_overrides_runpath=yes
15422 hardcode_into_libs=yes
15423 if test "$with_gnu_ld" = yes; then
15424 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15425 else
15426 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15427 case $host_os in
15428 sco3.2v5*)
15429 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15430 ;;
15431 esac
15432 fi
15433 sys_lib_dlsearch_path_spec='/usr/lib'
15434 ;;
15435
15436 tpf*)
15437 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15438 version_type=linux # correct to gnu/linux during the next big refactor
15439 need_lib_prefix=no
15440 need_version=no
15441 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15442 shlibpath_var=LD_LIBRARY_PATH
15443 shlibpath_overrides_runpath=no
15444 hardcode_into_libs=yes
15445 ;;
15446
15447 uts4*)
15448 version_type=linux # correct to gnu/linux during the next big refactor
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 ;;
15453
15454 *)
15455 dynamic_linker=no
15456 ;;
15457 esac
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15459 $as_echo "$dynamic_linker" >&6; }
15460 test "$dynamic_linker" = no && can_build_shared=no
15461
15462 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15463 if test "$GCC" = yes; then
15464 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15465 fi
15466
15467 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15468 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15469 fi
15470 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15471 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15472 fi
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15512 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15513 hardcode_action_F77=
15514 if test -n "$hardcode_libdir_flag_spec_F77" ||
15515 test -n "$runpath_var_F77" ||
15516 test "X$hardcode_automatic_F77" = "Xyes" ; then
15517
15518 # We can hardcode non-existent directories.
15519 if test "$hardcode_direct_F77" != no &&
15520 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15521 # have to relink, otherwise we might link with an installed library
15522 # when we should be linking with a yet-to-be-installed one
15523 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15524 test "$hardcode_minus_L_F77" != no; then
15525 # Linking always hardcodes the temporary library directory.
15526 hardcode_action_F77=relink
15527 else
15528 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15529 hardcode_action_F77=immediate
15530 fi
15531 else
15532 # We cannot hardcode anything, or else we can only hardcode existing
15533 # directories.
15534 hardcode_action_F77=unsupported
15535 fi
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15537 $as_echo "$hardcode_action_F77" >&6; }
15538
15539 if test "$hardcode_action_F77" = relink ||
15540 test "$inherit_rpath_F77" = yes; then
15541 # Fast installation is not supported
15542 enable_fast_install=no
15543 elif test "$shlibpath_overrides_runpath" = yes ||
15544 test "$enable_shared" = no; then
15545 # Fast installation is not necessary
15546 enable_fast_install=needless
15547 fi
15548
15549
15550
15551
15552
15553
15554
15555 fi # test -n "$compiler"
15556
15557 GCC=$lt_save_GCC
15558 CC="$lt_save_CC"
15559 CFLAGS="$lt_save_CFLAGS"
15560 fi # test "$_lt_disable_F77" != yes
15561
15562 ac_ext=c
15563 ac_cpp='$CPP $CPPFLAGS'
15564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15567
15568
15569 ac_ext=${ac_fc_srcext-f}
15570 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15571 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15572 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15573 if test -n "$ac_tool_prefix"; then
15574 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
15575 do
15576 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
15577 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
15578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15579 $as_echo_n "checking for $ac_word... " >&6; }
15580 if ${ac_cv_prog_FC+:} false; then :
15581 $as_echo_n "(cached) " >&6
15582 else
15583 if test -n "$FC"; then
15584 ac_cv_prog_FC="$FC" # Let the user override the test.
15585 else
15586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15587 for as_dir in $PATH
15588 do
15589 IFS=$as_save_IFS
15590 test -z "$as_dir" && as_dir=.
15591 for ac_exec_ext in '' $ac_executable_extensions; do
15592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15593 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
15594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15595 break 2
15596 fi
15597 done
15598 done
15599 IFS=$as_save_IFS
15600
15601 fi
15602 fi
15603 FC=$ac_cv_prog_FC
15604 if test -n "$FC"; then
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
15606 $as_echo "$FC" >&6; }
15607 else
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15609 $as_echo "no" >&6; }
15610 fi
15611
15612
15613 test -n "$FC" && break
15614 done
15615 fi
15616 if test -z "$FC"; then
15617 ac_ct_FC=$FC
15618 for ac_prog in gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor xlf90 f90 pgf90 pghpf epcf90 g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
15619 do
15620 # Extract the first word of "$ac_prog", so it can be a program name with args.
15621 set dummy $ac_prog; ac_word=$2
15622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15623 $as_echo_n "checking for $ac_word... " >&6; }
15624 if ${ac_cv_prog_ac_ct_FC+:} false; then :
15625 $as_echo_n "(cached) " >&6
15626 else
15627 if test -n "$ac_ct_FC"; then
15628 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
15629 else
15630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15631 for as_dir in $PATH
15632 do
15633 IFS=$as_save_IFS
15634 test -z "$as_dir" && as_dir=.
15635 for ac_exec_ext in '' $ac_executable_extensions; do
15636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15637 ac_cv_prog_ac_ct_FC="$ac_prog"
15638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15639 break 2
15640 fi
15641 done
15642 done
15643 IFS=$as_save_IFS
15644
15645 fi
15646 fi
15647 ac_ct_FC=$ac_cv_prog_ac_ct_FC
15648 if test -n "$ac_ct_FC"; then
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
15650 $as_echo "$ac_ct_FC" >&6; }
15651 else
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15653 $as_echo "no" >&6; }
15654 fi
15655
15656
15657 test -n "$ac_ct_FC" && break
15658 done
15659
15660 if test "x$ac_ct_FC" = x; then
15661 FC=""
15662 else
15663 case $cross_compiling:$ac_tool_warned in
15664 yes:)
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15666 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15667 ac_tool_warned=yes ;;
15668 esac
15669 FC=$ac_ct_FC
15670 fi
15671 fi
15672
15673
15674 # Provide some information about the compiler.
15675 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
15676 set X $ac_compile
15677 ac_compiler=$2
15678 for ac_option in --version -v -V -qversion; do
15679 { { ac_try="$ac_compiler $ac_option >&5"
15680 case "(($ac_try" in
15681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15682 *) ac_try_echo=$ac_try;;
15683 esac
15684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
15685 $as_echo "$ac_try_echo"; } >&5
15686 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
15687 ac_status=$?
15688 if test -s conftest.err; then
15689 sed '10a\
15690 ... rest of stderr output deleted ...
15691 10q' conftest.err >conftest.er1
15692 cat conftest.er1 >&5
15693 fi
15694 rm -f conftest.er1 conftest.err
15695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15696 test $ac_status = 0; }
15697 done
15698 rm -f a.out
15699
15700 # If we don't use `.F' as extension, the preprocessor is not run on the
15701 # input file. (Note that this only needs to work for GNU compilers.)
15702 ac_save_ext=$ac_ext
15703 ac_ext=F
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
15705 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
15706 if ${ac_cv_fc_compiler_gnu+:} false; then :
15707 $as_echo_n "(cached) " >&6
15708 else
15709 cat > conftest.$ac_ext <<_ACEOF
15710 program main
15711 #ifndef __GNUC__
15712 choke me
15713 #endif
15714
15715 end
15716 _ACEOF
15717 if ac_fn_fc_try_compile "$LINENO"; then :
15718 ac_compiler_gnu=yes
15719 else
15720 ac_compiler_gnu=no
15721 fi
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
15724
15725 fi
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
15727 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
15728 ac_ext=$ac_save_ext
15729 ac_test_FCFLAGS=${FCFLAGS+set}
15730 ac_save_FCFLAGS=$FCFLAGS
15731 FCFLAGS=
15732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
15733 $as_echo_n "checking whether $FC accepts -g... " >&6; }
15734 if ${ac_cv_prog_fc_g+:} false; then :
15735 $as_echo_n "(cached) " >&6
15736 else
15737 FCFLAGS=-g
15738 cat > conftest.$ac_ext <<_ACEOF
15739 program main
15740
15741 end
15742 _ACEOF
15743 if ac_fn_fc_try_compile "$LINENO"; then :
15744 ac_cv_prog_fc_g=yes
15745 else
15746 ac_cv_prog_fc_g=no
15747 fi
15748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15749
15750 fi
15751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
15752 $as_echo "$ac_cv_prog_fc_g" >&6; }
15753 if test "$ac_test_FCFLAGS" = set; then
15754 FCFLAGS=$ac_save_FCFLAGS
15755 elif test $ac_cv_prog_fc_g = yes; then
15756 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
15757 FCFLAGS="-g -O2"
15758 else
15759 FCFLAGS="-g"
15760 fi
15761 else
15762 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
15763 FCFLAGS="-O2"
15764 else
15765 FCFLAGS=
15766 fi
15767 fi
15768
15769 if test $ac_compiler_gnu = yes; then
15770 GFC=yes
15771 else
15772 GFC=
15773 fi
15774 ac_ext=c
15775 ac_cpp='$CPP $CPPFLAGS'
15776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15779
15780
15781 func_stripname_cnf ()
15782 {
15783 case ${2} in
15784 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
15785 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
15786 esac
15787 } # func_stripname_cnf
15788
15789
15790 ac_ext=${ac_fc_srcext-f}
15791 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15792 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15793 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15794
15795
15796 if test -z "$FC" || test "X$FC" = "Xno"; then
15797 _lt_disable_FC=yes
15798 fi
15799
15800 archive_cmds_need_lc_FC=no
15801 allow_undefined_flag_FC=
15802 always_export_symbols_FC=no
15803 archive_expsym_cmds_FC=
15804 export_dynamic_flag_spec_FC=
15805 hardcode_direct_FC=no
15806 hardcode_direct_absolute_FC=no
15807 hardcode_libdir_flag_spec_FC=
15808 hardcode_libdir_separator_FC=
15809 hardcode_minus_L_FC=no
15810 hardcode_automatic_FC=no
15811 inherit_rpath_FC=no
15812 module_cmds_FC=
15813 module_expsym_cmds_FC=
15814 link_all_deplibs_FC=unknown
15815 old_archive_cmds_FC=$old_archive_cmds
15816 reload_flag_FC=$reload_flag
15817 reload_cmds_FC=$reload_cmds
15818 no_undefined_flag_FC=
15819 whole_archive_flag_spec_FC=
15820 enable_shared_with_static_runtimes_FC=no
15821
15822 # Source file extension for fc test sources.
15823 ac_ext=${ac_fc_srcext-f}
15824
15825 # Object file extension for compiled fc test sources.
15826 objext=o
15827 objext_FC=$objext
15828
15829 # No sense in running all these tests if we already determined that
15830 # the FC compiler isn't working. Some variables (like enable_shared)
15831 # are currently assumed to apply to all compilers on this platform,
15832 # and will be corrupted by setting them based on a non-working compiler.
15833 if test "$_lt_disable_FC" != yes; then
15834 # Code to be used in simple compile tests
15835 lt_simple_compile_test_code="\
15836 subroutine t
15837 return
15838 end
15839 "
15840
15841 # Code to be used in simple link tests
15842 lt_simple_link_test_code="\
15843 program t
15844 end
15845 "
15846
15847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15848
15849
15850
15851
15852
15853
15854 # If no C compiler was specified, use CC.
15855 LTCC=${LTCC-"$CC"}
15856
15857 # If no C compiler flags were specified, use CFLAGS.
15858 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15859
15860 # Allow CC to be a program name with arguments.
15861 compiler=$CC
15862
15863
15864 # save warnings/boilerplate of simple test code
15865 ac_outfile=conftest.$ac_objext
15866 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15867 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15868 _lt_compiler_boilerplate=`cat conftest.err`
15869 $RM conftest*
15870
15871 ac_outfile=conftest.$ac_objext
15872 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15873 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15874 _lt_linker_boilerplate=`cat conftest.err`
15875 $RM -r conftest*
15876
15877
15878 # Allow CC to be a program name with arguments.
15879 lt_save_CC="$CC"
15880 lt_save_GCC=$GCC
15881 lt_save_CFLAGS=$CFLAGS
15882 CC=${FC-"f95"}
15883 CFLAGS=$FCFLAGS
15884 compiler=$CC
15885 GCC=$ac_cv_fc_compiler_gnu
15886
15887 compiler_FC=$CC
15888 for cc_temp in $compiler""; do
15889 case $cc_temp in
15890 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15891 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15892 \-*) ;;
15893 *) break;;
15894 esac
15895 done
15896 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15897
15898
15899 if test -n "$compiler"; then
15900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15901 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15903 $as_echo "$can_build_shared" >&6; }
15904
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15906 $as_echo_n "checking whether to build shared libraries... " >&6; }
15907 test "$can_build_shared" = "no" && enable_shared=no
15908
15909 # On AIX, shared libraries and static libraries use the same namespace, and
15910 # are all built from PIC.
15911 case $host_os in
15912 aix3*)
15913 test "$enable_shared" = yes && enable_static=no
15914 if test -n "$RANLIB"; then
15915 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15916 postinstall_cmds='$RANLIB $lib'
15917 fi
15918 ;;
15919 aix[4-9]*)
15920 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
15921 test "$enable_shared" = yes && enable_static=no
15922 fi
15923 ;;
15924 esac
15925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15926 $as_echo "$enable_shared" >&6; }
15927
15928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15929 $as_echo_n "checking whether to build static libraries... " >&6; }
15930 # Make sure either enable_shared or enable_static is yes.
15931 test "$enable_shared" = yes || enable_static=yes
15932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15933 $as_echo "$enable_static" >&6; }
15934
15935 GCC_FC="$ac_cv_fc_compiler_gnu"
15936 LD_FC="$LD"
15937
15938 ## CAVEAT EMPTOR:
15939 ## There is no encapsulation within the following macros, do not change
15940 ## the running order or otherwise move them around unless you know exactly
15941 ## what you are doing...
15942 # Dependencies to place before and after the object being linked:
15943 predep_objects_FC=
15944 postdep_objects_FC=
15945 predeps_FC=
15946 postdeps_FC=
15947 compiler_lib_search_path_FC=
15948
15949 cat > conftest.$ac_ext <<_LT_EOF
15950 subroutine foo
15951 implicit none
15952 integer a
15953 a=0
15954 return
15955 end
15956 _LT_EOF
15957
15958
15959 _lt_libdeps_save_CFLAGS=$CFLAGS
15960 case "$CC $CFLAGS " in #(
15961 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
15962 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
15963 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
15964 esac
15965
15966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15967 (eval $ac_compile) 2>&5
15968 ac_status=$?
15969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15970 test $ac_status = 0; }; then
15971 # Parse the compiler output and extract the necessary
15972 # objects, libraries and library flags.
15973
15974 # Sentinel used to keep track of whether or not we are before
15975 # the conftest object file.
15976 pre_test_object_deps_done=no
15977
15978 for p in `eval "$output_verbose_link_cmd"`; do
15979 case ${prev}${p} in
15980
15981 -L* | -R* | -l*)
15982 # Some compilers place space between "-{L,R}" and the path.
15983 # Remove the space.
15984 if test $p = "-L" ||
15985 test $p = "-R"; then
15986 prev=$p
15987 continue
15988 fi
15989
15990 # Expand the sysroot to ease extracting the directories later.
15991 if test -z "$prev"; then
15992 case $p in
15993 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
15994 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
15995 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
15996 esac
15997 fi
15998 case $p in
15999 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16000 esac
16001 if test "$pre_test_object_deps_done" = no; then
16002 case ${prev} in
16003 -L | -R)
16004 # Internal compiler library paths should come after those
16005 # provided the user. The postdeps already come after the
16006 # user supplied libs so there is no need to process them.
16007 if test -z "$compiler_lib_search_path_FC"; then
16008 compiler_lib_search_path_FC="${prev}${p}"
16009 else
16010 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
16011 fi
16012 ;;
16013 # The "-l" case would never come before the object being
16014 # linked, so don't bother handling this case.
16015 esac
16016 else
16017 if test -z "$postdeps_FC"; then
16018 postdeps_FC="${prev}${p}"
16019 else
16020 postdeps_FC="${postdeps_FC} ${prev}${p}"
16021 fi
16022 fi
16023 prev=
16024 ;;
16025
16026 *.lto.$objext) ;; # Ignore GCC LTO objects
16027 *.$objext)
16028 # This assumes that the test object file only shows up
16029 # once in the compiler output.
16030 if test "$p" = "conftest.$objext"; then
16031 pre_test_object_deps_done=yes
16032 continue
16033 fi
16034
16035 if test "$pre_test_object_deps_done" = no; then
16036 if test -z "$predep_objects_FC"; then
16037 predep_objects_FC="$p"
16038 else
16039 predep_objects_FC="$predep_objects_FC $p"
16040 fi
16041 else
16042 if test -z "$postdep_objects_FC"; then
16043 postdep_objects_FC="$p"
16044 else
16045 postdep_objects_FC="$postdep_objects_FC $p"
16046 fi
16047 fi
16048 ;;
16049
16050 *) ;; # Ignore the rest.
16051
16052 esac
16053 done
16054
16055 # Clean up.
16056 rm -f a.out a.exe
16057 else
16058 echo "libtool.m4: error: problem compiling FC test program"
16059 fi
16060
16061 $RM -f confest.$objext
16062 CFLAGS=$_lt_libdeps_save_CFLAGS
16063
16064 # PORTME: override above test on systems where it is broken
16065
16066
16067 case " $postdeps_FC " in
16068 *" -lc "*) archive_cmds_need_lc_FC=no ;;
16069 esac
16070 compiler_lib_search_dirs_FC=
16071 if test -n "${compiler_lib_search_path_FC}"; then
16072 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16073 fi
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105 lt_prog_compiler_wl_FC=
16106 lt_prog_compiler_pic_FC=
16107 lt_prog_compiler_static_FC=
16108
16109
16110 if test "$GCC" = yes; then
16111 lt_prog_compiler_wl_FC='-Wl,'
16112 lt_prog_compiler_static_FC='-static'
16113
16114 case $host_os in
16115 aix*)
16116 # All AIX code is PIC.
16117 if test "$host_cpu" = ia64; then
16118 # AIX 5 now supports IA64 processor
16119 lt_prog_compiler_static_FC='-Bstatic'
16120 fi
16121 ;;
16122
16123 amigaos*)
16124 case $host_cpu in
16125 powerpc)
16126 # see comment about AmigaOS4 .so support
16127 lt_prog_compiler_pic_FC='-fPIC'
16128 ;;
16129 m68k)
16130 # FIXME: we need at least 68020 code to build shared libraries, but
16131 # adding the `-m68020' flag to GCC prevents building anything better,
16132 # like `-m68040'.
16133 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
16134 ;;
16135 esac
16136 ;;
16137
16138 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16139 # PIC is the default for these OSes.
16140 ;;
16141
16142 mingw* | cygwin* | pw32* | os2* | cegcc*)
16143 # This hack is so that the source file can tell whether it is being
16144 # built for inclusion in a dll (and should export symbols for example).
16145 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16146 # (--disable-auto-import) libraries
16147 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
16148 ;;
16149
16150 darwin* | rhapsody*)
16151 # PIC is the default on this platform
16152 # Common symbols not allowed in MH_DYLIB files
16153 lt_prog_compiler_pic_FC='-fno-common'
16154 ;;
16155
16156 haiku*)
16157 # PIC is the default for Haiku.
16158 # The "-static" flag exists, but is broken.
16159 lt_prog_compiler_static_FC=
16160 ;;
16161
16162 hpux*)
16163 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16164 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16165 # sets the default TLS model and affects inlining.
16166 case $host_cpu in
16167 hppa*64*)
16168 # +Z the default
16169 ;;
16170 *)
16171 lt_prog_compiler_pic_FC='-fPIC'
16172 ;;
16173 esac
16174 ;;
16175
16176 interix[3-9]*)
16177 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16178 # Instead, we relocate shared libraries at runtime.
16179 ;;
16180
16181 msdosdjgpp*)
16182 # Just because we use GCC doesn't mean we suddenly get shared libraries
16183 # on systems that don't support them.
16184 lt_prog_compiler_can_build_shared_FC=no
16185 enable_shared=no
16186 ;;
16187
16188 *nto* | *qnx*)
16189 # QNX uses GNU C++, but need to define -shared option too, otherwise
16190 # it will coredump.
16191 lt_prog_compiler_pic_FC='-fPIC -shared'
16192 ;;
16193
16194 sysv4*MP*)
16195 if test -d /usr/nec; then
16196 lt_prog_compiler_pic_FC=-Kconform_pic
16197 fi
16198 ;;
16199
16200 *)
16201 lt_prog_compiler_pic_FC='-fPIC'
16202 ;;
16203 esac
16204
16205 case $cc_basename in
16206 nvcc*) # Cuda Compiler Driver 2.2
16207 lt_prog_compiler_wl_FC='-Xlinker '
16208 if test -n "$lt_prog_compiler_pic_FC"; then
16209 lt_prog_compiler_pic_FC="-Xcompiler $lt_prog_compiler_pic_FC"
16210 fi
16211 ;;
16212 esac
16213 else
16214 # PORTME Check for flag to pass linker flags through the system compiler.
16215 case $host_os in
16216 aix*)
16217 lt_prog_compiler_wl_FC='-Wl,'
16218 if test "$host_cpu" = ia64; then
16219 # AIX 5 now supports IA64 processor
16220 lt_prog_compiler_static_FC='-Bstatic'
16221 else
16222 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
16223 fi
16224 ;;
16225
16226 mingw* | cygwin* | pw32* | os2* | cegcc*)
16227 # This hack is so that the source file can tell whether it is being
16228 # built for inclusion in a dll (and should export symbols for example).
16229 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
16230 ;;
16231
16232 hpux9* | hpux10* | hpux11*)
16233 lt_prog_compiler_wl_FC='-Wl,'
16234 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16235 # not for PA HP-UX.
16236 case $host_cpu in
16237 hppa*64*|ia64*)
16238 # +Z the default
16239 ;;
16240 *)
16241 lt_prog_compiler_pic_FC='+Z'
16242 ;;
16243 esac
16244 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16245 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
16246 ;;
16247
16248 irix5* | irix6* | nonstopux*)
16249 lt_prog_compiler_wl_FC='-Wl,'
16250 # PIC (with -KPIC) is the default.
16251 lt_prog_compiler_static_FC='-non_shared'
16252 ;;
16253
16254 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16255 case $cc_basename in
16256 # old Intel for x86_64 which still supported -KPIC.
16257 ecc*)
16258 lt_prog_compiler_wl_FC='-Wl,'
16259 lt_prog_compiler_pic_FC='-KPIC'
16260 lt_prog_compiler_static_FC='-static'
16261 ;;
16262 # icc used to be incompatible with GCC.
16263 # ICC 10 doesn't accept -KPIC any more.
16264 icc* | ifort*)
16265 lt_prog_compiler_wl_FC='-Wl,'
16266 lt_prog_compiler_pic_FC='-fPIC'
16267 lt_prog_compiler_static_FC='-static'
16268 ;;
16269 # Lahey Fortran 8.1.
16270 lf95*)
16271 lt_prog_compiler_wl_FC='-Wl,'
16272 lt_prog_compiler_pic_FC='--shared'
16273 lt_prog_compiler_static_FC='--static'
16274 ;;
16275 nagfor*)
16276 # NAG Fortran compiler
16277 lt_prog_compiler_wl_FC='-Wl,-Wl,,'
16278 lt_prog_compiler_pic_FC='-PIC'
16279 lt_prog_compiler_static_FC='-Bstatic'
16280 ;;
16281 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16282 # Portland Group compilers (*not* the Pentium gcc compiler,
16283 # which looks to be a dead project)
16284 lt_prog_compiler_wl_FC='-Wl,'
16285 lt_prog_compiler_pic_FC='-fpic'
16286 lt_prog_compiler_static_FC='-Bstatic'
16287 ;;
16288 ccc*)
16289 lt_prog_compiler_wl_FC='-Wl,'
16290 # All Alpha code is PIC.
16291 lt_prog_compiler_static_FC='-non_shared'
16292 ;;
16293 xl* | bgxl* | bgf* | mpixl*)
16294 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16295 lt_prog_compiler_wl_FC='-Wl,'
16296 lt_prog_compiler_pic_FC='-qpic'
16297 lt_prog_compiler_static_FC='-qstaticlink'
16298 ;;
16299 *)
16300 case `$CC -V 2>&1 | sed 5q` in
16301 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16302 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16303 lt_prog_compiler_pic_FC='-KPIC'
16304 lt_prog_compiler_static_FC='-Bstatic'
16305 lt_prog_compiler_wl_FC=''
16306 ;;
16307 *Sun\ F* | *Sun*Fortran*)
16308 lt_prog_compiler_pic_FC='-KPIC'
16309 lt_prog_compiler_static_FC='-Bstatic'
16310 lt_prog_compiler_wl_FC='-Qoption ld '
16311 ;;
16312 *Sun\ C*)
16313 # Sun C 5.9
16314 lt_prog_compiler_pic_FC='-KPIC'
16315 lt_prog_compiler_static_FC='-Bstatic'
16316 lt_prog_compiler_wl_FC='-Wl,'
16317 ;;
16318 *Intel*\ [CF]*Compiler*)
16319 lt_prog_compiler_wl_FC='-Wl,'
16320 lt_prog_compiler_pic_FC='-fPIC'
16321 lt_prog_compiler_static_FC='-static'
16322 ;;
16323 *Portland\ Group*)
16324 lt_prog_compiler_wl_FC='-Wl,'
16325 lt_prog_compiler_pic_FC='-fpic'
16326 lt_prog_compiler_static_FC='-Bstatic'
16327 ;;
16328 esac
16329 ;;
16330 esac
16331 ;;
16332
16333 newsos6)
16334 lt_prog_compiler_pic_FC='-KPIC'
16335 lt_prog_compiler_static_FC='-Bstatic'
16336 ;;
16337
16338 *nto* | *qnx*)
16339 # QNX uses GNU C++, but need to define -shared option too, otherwise
16340 # it will coredump.
16341 lt_prog_compiler_pic_FC='-fPIC -shared'
16342 ;;
16343
16344 osf3* | osf4* | osf5*)
16345 lt_prog_compiler_wl_FC='-Wl,'
16346 # All OSF/1 code is PIC.
16347 lt_prog_compiler_static_FC='-non_shared'
16348 ;;
16349
16350 rdos*)
16351 lt_prog_compiler_static_FC='-non_shared'
16352 ;;
16353
16354 solaris*)
16355 lt_prog_compiler_pic_FC='-KPIC'
16356 lt_prog_compiler_static_FC='-Bstatic'
16357 case $cc_basename in
16358 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16359 lt_prog_compiler_wl_FC='-Qoption ld ';;
16360 *)
16361 lt_prog_compiler_wl_FC='-Wl,';;
16362 esac
16363 ;;
16364
16365 sunos4*)
16366 lt_prog_compiler_wl_FC='-Qoption ld '
16367 lt_prog_compiler_pic_FC='-PIC'
16368 lt_prog_compiler_static_FC='-Bstatic'
16369 ;;
16370
16371 sysv4 | sysv4.2uw2* | sysv4.3*)
16372 lt_prog_compiler_wl_FC='-Wl,'
16373 lt_prog_compiler_pic_FC='-KPIC'
16374 lt_prog_compiler_static_FC='-Bstatic'
16375 ;;
16376
16377 sysv4*MP*)
16378 if test -d /usr/nec ;then
16379 lt_prog_compiler_pic_FC='-Kconform_pic'
16380 lt_prog_compiler_static_FC='-Bstatic'
16381 fi
16382 ;;
16383
16384 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16385 lt_prog_compiler_wl_FC='-Wl,'
16386 lt_prog_compiler_pic_FC='-KPIC'
16387 lt_prog_compiler_static_FC='-Bstatic'
16388 ;;
16389
16390 unicos*)
16391 lt_prog_compiler_wl_FC='-Wl,'
16392 lt_prog_compiler_can_build_shared_FC=no
16393 ;;
16394
16395 uts4*)
16396 lt_prog_compiler_pic_FC='-pic'
16397 lt_prog_compiler_static_FC='-Bstatic'
16398 ;;
16399
16400 *)
16401 lt_prog_compiler_can_build_shared_FC=no
16402 ;;
16403 esac
16404 fi
16405
16406 case $host_os in
16407 # For platforms which do not support PIC, -DPIC is meaningless:
16408 *djgpp*)
16409 lt_prog_compiler_pic_FC=
16410 ;;
16411 *)
16412 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
16413 ;;
16414 esac
16415
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16417 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16418 if ${lt_cv_prog_compiler_pic_FC+:} false; then :
16419 $as_echo_n "(cached) " >&6
16420 else
16421 lt_cv_prog_compiler_pic_FC=$lt_prog_compiler_pic_FC
16422 fi
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_FC" >&5
16424 $as_echo "$lt_cv_prog_compiler_pic_FC" >&6; }
16425 lt_prog_compiler_pic_FC=$lt_cv_prog_compiler_pic_FC
16426
16427 #
16428 # Check to make sure the PIC flag actually works.
16429 #
16430 if test -n "$lt_prog_compiler_pic_FC"; then
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
16432 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
16433 if ${lt_cv_prog_compiler_pic_works_FC+:} false; then :
16434 $as_echo_n "(cached) " >&6
16435 else
16436 lt_cv_prog_compiler_pic_works_FC=no
16437 ac_outfile=conftest.$ac_objext
16438 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16439 lt_compiler_flag="$lt_prog_compiler_pic_FC"
16440 # Insert the option either (1) after the last *FLAGS variable, or
16441 # (2) before a word containing "conftest.", or (3) at the end.
16442 # Note that $ac_compile itself does not contain backslashes and begins
16443 # with a dollar sign (not a hyphen), so the echo should work correctly.
16444 # The option is referenced via a variable to avoid confusing sed.
16445 lt_compile=`echo "$ac_compile" | $SED \
16446 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16447 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16448 -e 's:$: $lt_compiler_flag:'`
16449 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16450 (eval "$lt_compile" 2>conftest.err)
16451 ac_status=$?
16452 cat conftest.err >&5
16453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16454 if (exit $ac_status) && test -s "$ac_outfile"; then
16455 # The compiler can only warn and ignore the option if not recognized
16456 # So say no if there are warnings other than the usual output.
16457 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16458 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16459 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16460 lt_cv_prog_compiler_pic_works_FC=yes
16461 fi
16462 fi
16463 $RM conftest*
16464
16465 fi
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
16467 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
16468
16469 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
16470 case $lt_prog_compiler_pic_FC in
16471 "" | " "*) ;;
16472 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
16473 esac
16474 else
16475 lt_prog_compiler_pic_FC=
16476 lt_prog_compiler_can_build_shared_FC=no
16477 fi
16478
16479 fi
16480
16481
16482
16483
16484
16485 #
16486 # Check to make sure the static flag actually works.
16487 #
16488 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16490 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16491 if ${lt_cv_prog_compiler_static_works_FC+:} false; then :
16492 $as_echo_n "(cached) " >&6
16493 else
16494 lt_cv_prog_compiler_static_works_FC=no
16495 save_LDFLAGS="$LDFLAGS"
16496 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16497 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16498 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16499 # The linker can only warn and ignore the option if not recognized
16500 # So say no if there are warnings
16501 if test -s conftest.err; then
16502 # Append any errors to the config.log.
16503 cat conftest.err 1>&5
16504 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16505 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16506 if diff conftest.exp conftest.er2 >/dev/null; then
16507 lt_cv_prog_compiler_static_works_FC=yes
16508 fi
16509 else
16510 lt_cv_prog_compiler_static_works_FC=yes
16511 fi
16512 fi
16513 $RM -r conftest*
16514 LDFLAGS="$save_LDFLAGS"
16515
16516 fi
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
16518 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
16519
16520 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
16521 :
16522 else
16523 lt_prog_compiler_static_FC=
16524 fi
16525
16526
16527
16528
16529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16530 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16531 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
16532 $as_echo_n "(cached) " >&6
16533 else
16534 lt_cv_prog_compiler_c_o_FC=no
16535 $RM -r conftest 2>/dev/null
16536 mkdir conftest
16537 cd conftest
16538 mkdir out
16539 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16540
16541 lt_compiler_flag="-o out/conftest2.$ac_objext"
16542 # Insert the option either (1) after the last *FLAGS variable, or
16543 # (2) before a word containing "conftest.", or (3) at the end.
16544 # Note that $ac_compile itself does not contain backslashes and begins
16545 # with a dollar sign (not a hyphen), so the echo should work correctly.
16546 lt_compile=`echo "$ac_compile" | $SED \
16547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549 -e 's:$: $lt_compiler_flag:'`
16550 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16551 (eval "$lt_compile" 2>out/conftest.err)
16552 ac_status=$?
16553 cat out/conftest.err >&5
16554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16555 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16556 then
16557 # The compiler can only warn and ignore the option if not recognized
16558 # So say no if there are warnings
16559 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16560 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16561 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16562 lt_cv_prog_compiler_c_o_FC=yes
16563 fi
16564 fi
16565 chmod u+w . 2>&5
16566 $RM conftest*
16567 # SGI C++ compiler will create directory out/ii_files/ for
16568 # template instantiation
16569 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16570 $RM out/* && rmdir out
16571 cd ..
16572 $RM -r conftest
16573 $RM conftest*
16574
16575 fi
16576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
16577 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
16578
16579
16580
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16582 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16583 if ${lt_cv_prog_compiler_c_o_FC+:} false; then :
16584 $as_echo_n "(cached) " >&6
16585 else
16586 lt_cv_prog_compiler_c_o_FC=no
16587 $RM -r conftest 2>/dev/null
16588 mkdir conftest
16589 cd conftest
16590 mkdir out
16591 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16592
16593 lt_compiler_flag="-o out/conftest2.$ac_objext"
16594 # Insert the option either (1) after the last *FLAGS variable, or
16595 # (2) before a word containing "conftest.", or (3) at the end.
16596 # Note that $ac_compile itself does not contain backslashes and begins
16597 # with a dollar sign (not a hyphen), so the echo should work correctly.
16598 lt_compile=`echo "$ac_compile" | $SED \
16599 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16600 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16601 -e 's:$: $lt_compiler_flag:'`
16602 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16603 (eval "$lt_compile" 2>out/conftest.err)
16604 ac_status=$?
16605 cat out/conftest.err >&5
16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16607 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16608 then
16609 # The compiler can only warn and ignore the option if not recognized
16610 # So say no if there are warnings
16611 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16612 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16613 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16614 lt_cv_prog_compiler_c_o_FC=yes
16615 fi
16616 fi
16617 chmod u+w . 2>&5
16618 $RM conftest*
16619 # SGI C++ compiler will create directory out/ii_files/ for
16620 # template instantiation
16621 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16622 $RM out/* && rmdir out
16623 cd ..
16624 $RM -r conftest
16625 $RM conftest*
16626
16627 fi
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
16629 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
16630
16631
16632
16633
16634 hard_links="nottested"
16635 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
16636 # do not overwrite the value of need_locks provided by the user
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16638 $as_echo_n "checking if we can lock with hard links... " >&6; }
16639 hard_links=yes
16640 $RM conftest*
16641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16642 touch conftest.a
16643 ln conftest.a conftest.b 2>&5 || hard_links=no
16644 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16646 $as_echo "$hard_links" >&6; }
16647 if test "$hard_links" = no; then
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16649 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16650 need_locks=warn
16651 fi
16652 else
16653 need_locks=no
16654 fi
16655
16656
16657
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16659 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16660
16661 runpath_var=
16662 allow_undefined_flag_FC=
16663 always_export_symbols_FC=no
16664 archive_cmds_FC=
16665 archive_expsym_cmds_FC=
16666 compiler_needs_object_FC=no
16667 enable_shared_with_static_runtimes_FC=no
16668 export_dynamic_flag_spec_FC=
16669 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16670 hardcode_automatic_FC=no
16671 hardcode_direct_FC=no
16672 hardcode_direct_absolute_FC=no
16673 hardcode_libdir_flag_spec_FC=
16674 hardcode_libdir_separator_FC=
16675 hardcode_minus_L_FC=no
16676 hardcode_shlibpath_var_FC=unsupported
16677 inherit_rpath_FC=no
16678 link_all_deplibs_FC=unknown
16679 module_cmds_FC=
16680 module_expsym_cmds_FC=
16681 old_archive_from_new_cmds_FC=
16682 old_archive_from_expsyms_cmds_FC=
16683 thread_safe_flag_spec_FC=
16684 whole_archive_flag_spec_FC=
16685 # include_expsyms should be a list of space-separated symbols to be *always*
16686 # included in the symbol list
16687 include_expsyms_FC=
16688 # exclude_expsyms can be an extended regexp of symbols to exclude
16689 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16690 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16691 # as well as any symbol that contains `d'.
16692 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16693 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16694 # platforms (ab)use it in PIC code, but their linkers get confused if
16695 # the symbol is explicitly referenced. Since portable code cannot
16696 # rely on this symbol name, it's probably fine to never include it in
16697 # preloaded symbol tables.
16698 # Exclude shared library initialization/finalization symbols.
16699 extract_expsyms_cmds=
16700
16701 case $host_os in
16702 cygwin* | mingw* | pw32* | cegcc*)
16703 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16704 # When not using gcc, we currently assume that we are using
16705 # Microsoft Visual C++.
16706 if test "$GCC" != yes; then
16707 with_gnu_ld=no
16708 fi
16709 ;;
16710 interix*)
16711 # we just hope/assume this is gcc and not c89 (= MSVC++)
16712 with_gnu_ld=yes
16713 ;;
16714 openbsd*)
16715 with_gnu_ld=no
16716 ;;
16717 esac
16718
16719 ld_shlibs_FC=yes
16720
16721 # On some targets, GNU ld is compatible enough with the native linker
16722 # that we're better off using the native interface for both.
16723 lt_use_gnu_ld_interface=no
16724 if test "$with_gnu_ld" = yes; then
16725 case $host_os in
16726 aix*)
16727 # The AIX port of GNU ld has always aspired to compatibility
16728 # with the native linker. However, as the warning in the GNU ld
16729 # block says, versions before 2.19.5* couldn't really create working
16730 # shared libraries, regardless of the interface used.
16731 case `$LD -v 2>&1` in
16732 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
16733 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
16734 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
16735 *)
16736 lt_use_gnu_ld_interface=yes
16737 ;;
16738 esac
16739 ;;
16740 *)
16741 lt_use_gnu_ld_interface=yes
16742 ;;
16743 esac
16744 fi
16745
16746 if test "$lt_use_gnu_ld_interface" = yes; then
16747 # If archive_cmds runs LD, not CC, wlarc should be empty
16748 wlarc='${wl}'
16749
16750 # Set some defaults for GNU ld with shared library support. These
16751 # are reset later if shared libraries are not supported. Putting them
16752 # here allows them to be overridden if necessary.
16753 runpath_var=LD_RUN_PATH
16754 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16755 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
16756 # ancient GNU ld didn't support --whole-archive et. al.
16757 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
16758 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16759 else
16760 whole_archive_flag_spec_FC=
16761 fi
16762 supports_anon_versioning=no
16763 case `$LD -v 2>&1` in
16764 *GNU\ gold*) supports_anon_versioning=yes ;;
16765 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16766 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16767 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16768 *\ 2.11.*) ;; # other 2.11 versions
16769 *) supports_anon_versioning=yes ;;
16770 esac
16771
16772 # See if GNU ld supports shared libraries.
16773 case $host_os in
16774 aix[3-9]*)
16775 # On AIX/PPC, the GNU linker is very broken
16776 if test "$host_cpu" != ia64; then
16777 ld_shlibs_FC=no
16778 cat <<_LT_EOF 1>&2
16779
16780 *** Warning: the GNU linker, at least up to release 2.19, is reported
16781 *** to be unable to reliably create shared libraries on AIX.
16782 *** Therefore, libtool is disabling shared libraries support. If you
16783 *** really care for shared libraries, you may want to install binutils
16784 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
16785 *** You will then need to restart the configuration process.
16786
16787 _LT_EOF
16788 fi
16789 ;;
16790
16791 amigaos*)
16792 case $host_cpu in
16793 powerpc)
16794 # see comment about AmigaOS4 .so support
16795 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16796 archive_expsym_cmds_FC=''
16797 ;;
16798 m68k)
16799 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)'
16800 hardcode_libdir_flag_spec_FC='-L$libdir'
16801 hardcode_minus_L_FC=yes
16802 ;;
16803 esac
16804 ;;
16805
16806 beos*)
16807 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16808 allow_undefined_flag_FC=unsupported
16809 # Joseph Beckenbach <[email protected]> says some releases of gcc
16810 # support --undefined. This deserves some investigation. FIXME
16811 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16812 else
16813 ld_shlibs_FC=no
16814 fi
16815 ;;
16816
16817 cygwin* | mingw* | pw32* | cegcc*)
16818 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
16819 # as there is no search path for DLLs.
16820 hardcode_libdir_flag_spec_FC='-L$libdir'
16821 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
16822 allow_undefined_flag_FC=unsupported
16823 always_export_symbols_FC=no
16824 enable_shared_with_static_runtimes_FC=yes
16825 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16826 exclude_expsyms_FC='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
16827
16828 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16829 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16830 # If the export-symbols file already is a .def file (1st line
16831 # is EXPORTS), use it as is; otherwise, prepend...
16832 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16833 cp $export_symbols $output_objdir/$soname.def;
16834 else
16835 echo EXPORTS > $output_objdir/$soname.def;
16836 cat $export_symbols >> $output_objdir/$soname.def;
16837 fi~
16838 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16839 else
16840 ld_shlibs_FC=no
16841 fi
16842 ;;
16843
16844 haiku*)
16845 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16846 link_all_deplibs_FC=yes
16847 ;;
16848
16849 interix[3-9]*)
16850 hardcode_direct_FC=no
16851 hardcode_shlibpath_var_FC=no
16852 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
16853 export_dynamic_flag_spec_FC='${wl}-E'
16854 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16855 # Instead, shared libraries are loaded at an image base (0x10000000 by
16856 # default) and relocated if they conflict, which is a slow very memory
16857 # consuming and fragmenting process. To avoid this, we pick a random,
16858 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16859 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16860 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'
16861 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'
16862 ;;
16863
16864 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
16865 tmp_diet=no
16866 if test "$host_os" = linux-dietlibc; then
16867 case $cc_basename in
16868 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
16869 esac
16870 fi
16871 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
16872 && test "$tmp_diet" = no
16873 then
16874 tmp_addflag=' $pic_flag'
16875 tmp_sharedflag='-shared'
16876 case $cc_basename,$host_cpu in
16877 pgcc*) # Portland Group C compiler
16878 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'
16879 tmp_addflag=' $pic_flag'
16880 ;;
16881 pgf77* | pgf90* | pgf95* | pgfortran*)
16882 # Portland Group f77 and f90 compilers
16883 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'
16884 tmp_addflag=' $pic_flag -Mnomain' ;;
16885 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16886 tmp_addflag=' -i_dynamic' ;;
16887 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16888 tmp_addflag=' -i_dynamic -nofor_main' ;;
16889 ifc* | ifort*) # Intel Fortran compiler
16890 tmp_addflag=' -nofor_main' ;;
16891 lf95*) # Lahey Fortran 8.1
16892 whole_archive_flag_spec_FC=
16893 tmp_sharedflag='--shared' ;;
16894 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
16895 tmp_sharedflag='-qmkshrobj'
16896 tmp_addflag= ;;
16897 nvcc*) # Cuda Compiler Driver 2.2
16898 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'
16899 compiler_needs_object_FC=yes
16900 ;;
16901 esac
16902 case `$CC -V 2>&1 | sed 5q` in
16903 *Sun\ C*) # Sun C 5.9
16904 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'
16905 compiler_needs_object_FC=yes
16906 tmp_sharedflag='-G' ;;
16907 *Sun\ F*) # Sun Fortran 8.3
16908 tmp_sharedflag='-G' ;;
16909 esac
16910 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16911
16912 if test "x$supports_anon_versioning" = xyes; then
16913 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
16914 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16915 echo "local: *; };" >> $output_objdir/$libname.ver~
16916 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16917 fi
16918
16919 case $cc_basename in
16920 xlf* | bgf* | bgxlf* | mpixlf*)
16921 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16922 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
16923 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16924 archive_cmds_FC='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
16925 if test "x$supports_anon_versioning" = xyes; then
16926 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
16927 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16928 echo "local: *; };" >> $output_objdir/$libname.ver~
16929 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16930 fi
16931 ;;
16932 esac
16933 else
16934 ld_shlibs_FC=no
16935 fi
16936 ;;
16937
16938 netbsd*)
16939 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16940 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16941 wlarc=
16942 else
16943 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16944 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16945 fi
16946 ;;
16947
16948 solaris*)
16949 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16950 ld_shlibs_FC=no
16951 cat <<_LT_EOF 1>&2
16952
16953 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16954 *** create shared libraries on Solaris systems. Therefore, libtool
16955 *** is disabling shared libraries support. We urge you to upgrade GNU
16956 *** binutils to release 2.9.1 or newer. Another option is to modify
16957 *** your PATH or compiler configuration so that the native linker is
16958 *** used, and then restart.
16959
16960 _LT_EOF
16961 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16962 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16963 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16964 else
16965 ld_shlibs_FC=no
16966 fi
16967 ;;
16968
16969 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16970 case `$LD -v 2>&1` in
16971 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16972 ld_shlibs_FC=no
16973 cat <<_LT_EOF 1>&2
16974
16975 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16976 *** reliably create shared libraries on SCO systems. Therefore, libtool
16977 *** is disabling shared libraries support. We urge you to upgrade GNU
16978 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16979 *** your PATH or compiler configuration so that the native linker is
16980 *** used, and then restart.
16981
16982 _LT_EOF
16983 ;;
16984 *)
16985 # For security reasons, it is highly recommended that you always
16986 # use absolute paths for naming shared libraries, and exclude the
16987 # DT_RUNPATH tag from executables and libraries. But doing so
16988 # requires that you compile everything twice, which is a pain.
16989 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16990 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
16991 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16992 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16993 else
16994 ld_shlibs_FC=no
16995 fi
16996 ;;
16997 esac
16998 ;;
16999
17000 sunos4*)
17001 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17002 wlarc=
17003 hardcode_direct_FC=yes
17004 hardcode_shlibpath_var_FC=no
17005 ;;
17006
17007 *)
17008 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17009 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17010 archive_expsym_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17011 else
17012 ld_shlibs_FC=no
17013 fi
17014 ;;
17015 esac
17016
17017 if test "$ld_shlibs_FC" = no; then
17018 runpath_var=
17019 hardcode_libdir_flag_spec_FC=
17020 export_dynamic_flag_spec_FC=
17021 whole_archive_flag_spec_FC=
17022 fi
17023 else
17024 # PORTME fill in a description of your system's linker (not GNU ld)
17025 case $host_os in
17026 aix3*)
17027 allow_undefined_flag_FC=unsupported
17028 always_export_symbols_FC=yes
17029 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'
17030 # Note: this linker hardcodes the directories in LIBPATH if there
17031 # are no directories specified by -L.
17032 hardcode_minus_L_FC=yes
17033 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17034 # Neither direct hardcoding nor static linking is supported with a
17035 # broken collect2.
17036 hardcode_direct_FC=unsupported
17037 fi
17038 ;;
17039
17040 aix[4-9]*)
17041 if test "$host_cpu" = ia64; then
17042 # On IA64, the linker does run time linking by default, so we don't
17043 # have to do anything special.
17044 aix_use_runtimelinking=no
17045 exp_sym_flag='-Bexport'
17046 no_entry_flag=""
17047 else
17048 # If we're using GNU nm, then we don't want the "-C" option.
17049 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17050 # Also, AIX nm treats weak defined symbols like other global
17051 # defined symbols, whereas GNU nm marks them as "W".
17052 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17053 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'
17054 else
17055 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17056 fi
17057 aix_use_runtimelinking=no
17058
17059 # Test if we are trying to use run time linking or normal
17060 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17061 # need to do runtime linking.
17062 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17063 for ld_flag in $LDFLAGS; do
17064 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17065 aix_use_runtimelinking=yes
17066 break
17067 fi
17068 done
17069 ;;
17070 esac
17071
17072 exp_sym_flag='-bexport'
17073 no_entry_flag='-bnoentry'
17074 fi
17075
17076 # When large executables or shared objects are built, AIX ld can
17077 # have problems creating the table of contents. If linking a library
17078 # or program results in "error TOC overflow" add -mminimal-toc to
17079 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17080 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17081
17082 archive_cmds_FC=''
17083 hardcode_direct_FC=yes
17084 hardcode_direct_absolute_FC=yes
17085 hardcode_libdir_separator_FC=':'
17086 link_all_deplibs_FC=yes
17087 file_list_spec_FC='${wl}-f,'
17088
17089 if test "$GCC" = yes; then
17090 case $host_os in aix4.[012]|aix4.[012].*)
17091 # We only want to do this on AIX 4.2 and lower, the check
17092 # below for broken collect2 doesn't work under 4.3+
17093 collect2name=`${CC} -print-prog-name=collect2`
17094 if test -f "$collect2name" &&
17095 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17096 then
17097 # We have reworked collect2
17098 :
17099 else
17100 # We have old collect2
17101 hardcode_direct_FC=unsupported
17102 # It fails to find uninstalled libraries when the uninstalled
17103 # path is not listed in the libpath. Setting hardcode_minus_L
17104 # to unsupported forces relinking
17105 hardcode_minus_L_FC=yes
17106 hardcode_libdir_flag_spec_FC='-L$libdir'
17107 hardcode_libdir_separator_FC=
17108 fi
17109 ;;
17110 esac
17111 shared_flag='-shared'
17112 if test "$aix_use_runtimelinking" = yes; then
17113 shared_flag="$shared_flag "'${wl}-G'
17114 fi
17115 else
17116 # not using gcc
17117 if test "$host_cpu" = ia64; then
17118 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17119 # chokes on -Wl,-G. The following line is correct:
17120 shared_flag='-G'
17121 else
17122 if test "$aix_use_runtimelinking" = yes; then
17123 shared_flag='${wl}-G'
17124 else
17125 shared_flag='${wl}-bM:SRE'
17126 fi
17127 fi
17128 fi
17129
17130 export_dynamic_flag_spec_FC='${wl}-bexpall'
17131 # It seems that -bexpall does not export symbols beginning with
17132 # underscore (_), so it is better to generate a list of symbols to export.
17133 always_export_symbols_FC=yes
17134 if test "$aix_use_runtimelinking" = yes; then
17135 # Warning - without using the other runtime loading flags (-brtl),
17136 # -berok will link without error, but may produce a broken library.
17137 allow_undefined_flag_FC='-berok'
17138 # Determine the default libpath from the value encoded in an
17139 # empty executable.
17140 if test "${lt_cv_aix_libpath+set}" = set; then
17141 aix_libpath=$lt_cv_aix_libpath
17142 else
17143 if ${lt_cv_aix_libpath__FC+:} false; then :
17144 $as_echo_n "(cached) " >&6
17145 else
17146 cat > conftest.$ac_ext <<_ACEOF
17147 program main
17148
17149 end
17150 _ACEOF
17151 if ac_fn_fc_try_link "$LINENO"; then :
17152
17153 lt_aix_libpath_sed='
17154 /Import File Strings/,/^$/ {
17155 /^0/ {
17156 s/^0 *\([^ ]*\) *$/\1/
17157 p
17158 }
17159 }'
17160 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17161 # Check for a 64-bit object if we didn't find anything.
17162 if test -z "$lt_cv_aix_libpath__FC"; then
17163 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17164 fi
17165 fi
17166 rm -f core conftest.err conftest.$ac_objext \
17167 conftest$ac_exeext conftest.$ac_ext
17168 if test -z "$lt_cv_aix_libpath__FC"; then
17169 lt_cv_aix_libpath__FC="/usr/lib:/lib"
17170 fi
17171
17172 fi
17173
17174 aix_libpath=$lt_cv_aix_libpath__FC
17175 fi
17176
17177 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
17178 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"
17179 else
17180 if test "$host_cpu" = ia64; then
17181 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
17182 allow_undefined_flag_FC="-z nodefs"
17183 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"
17184 else
17185 # Determine the default libpath from the value encoded in an
17186 # empty executable.
17187 if test "${lt_cv_aix_libpath+set}" = set; then
17188 aix_libpath=$lt_cv_aix_libpath
17189 else
17190 if ${lt_cv_aix_libpath__FC+:} false; then :
17191 $as_echo_n "(cached) " >&6
17192 else
17193 cat > conftest.$ac_ext <<_ACEOF
17194 program main
17195
17196 end
17197 _ACEOF
17198 if ac_fn_fc_try_link "$LINENO"; then :
17199
17200 lt_aix_libpath_sed='
17201 /Import File Strings/,/^$/ {
17202 /^0/ {
17203 s/^0 *\([^ ]*\) *$/\1/
17204 p
17205 }
17206 }'
17207 lt_cv_aix_libpath__FC=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17208 # Check for a 64-bit object if we didn't find anything.
17209 if test -z "$lt_cv_aix_libpath__FC"; then
17210 lt_cv_aix_libpath__FC=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17211 fi
17212 fi
17213 rm -f core conftest.err conftest.$ac_objext \
17214 conftest$ac_exeext conftest.$ac_ext
17215 if test -z "$lt_cv_aix_libpath__FC"; then
17216 lt_cv_aix_libpath__FC="/usr/lib:/lib"
17217 fi
17218
17219 fi
17220
17221 aix_libpath=$lt_cv_aix_libpath__FC
17222 fi
17223
17224 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
17225 # Warning - without using the other run time loading flags,
17226 # -berok will link without error, but may produce a broken library.
17227 no_undefined_flag_FC=' ${wl}-bernotok'
17228 allow_undefined_flag_FC=' ${wl}-berok'
17229 if test "$with_gnu_ld" = yes; then
17230 # We only use this code for GNU lds that support --whole-archive.
17231 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17232 else
17233 # Exported symbols can be pulled into shared objects from archives
17234 whole_archive_flag_spec_FC='$convenience'
17235 fi
17236 archive_cmds_need_lc_FC=yes
17237 # This is similar to how AIX traditionally builds its shared libraries.
17238 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'
17239 fi
17240 fi
17241 ;;
17242
17243 amigaos*)
17244 case $host_cpu in
17245 powerpc)
17246 # see comment about AmigaOS4 .so support
17247 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17248 archive_expsym_cmds_FC=''
17249 ;;
17250 m68k)
17251 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)'
17252 hardcode_libdir_flag_spec_FC='-L$libdir'
17253 hardcode_minus_L_FC=yes
17254 ;;
17255 esac
17256 ;;
17257
17258 bsdi[45]*)
17259 export_dynamic_flag_spec_FC=-rdynamic
17260 ;;
17261
17262 cygwin* | mingw* | pw32* | cegcc*)
17263 # When not using gcc, we currently assume that we are using
17264 # Microsoft Visual C++.
17265 # hardcode_libdir_flag_spec is actually meaningless, as there is
17266 # no search path for DLLs.
17267 case $cc_basename in
17268 cl*)
17269 # Native MSVC
17270 hardcode_libdir_flag_spec_FC=' '
17271 allow_undefined_flag_FC=unsupported
17272 always_export_symbols_FC=yes
17273 file_list_spec_FC='@'
17274 # Tell ltmain to make .lib files, not .a files.
17275 libext=lib
17276 # Tell ltmain to make .dll files, not .so files.
17277 shrext_cmds=".dll"
17278 # FIXME: Setting linknames here is a bad hack.
17279 archive_cmds_FC='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17280 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17281 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17282 else
17283 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17284 fi~
17285 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
17286 linknames='
17287 # The linker will not automatically build a static lib if we build a DLL.
17288 # _LT_TAGVAR(old_archive_from_new_cmds, FC)='true'
17289 enable_shared_with_static_runtimes_FC=yes
17290 exclude_expsyms_FC='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17291 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17292 # Don't use ranlib
17293 old_postinstall_cmds_FC='chmod 644 $oldlib'
17294 postlink_cmds_FC='lt_outputfile="@OUTPUT@"~
17295 lt_tool_outputfile="@TOOL_OUTPUT@"~
17296 case $lt_outputfile in
17297 *.exe|*.EXE) ;;
17298 *)
17299 lt_outputfile="$lt_outputfile.exe"
17300 lt_tool_outputfile="$lt_tool_outputfile.exe"
17301 ;;
17302 esac~
17303 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17304 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17305 $RM "$lt_outputfile.manifest";
17306 fi'
17307 ;;
17308 *)
17309 # Assume MSVC wrapper
17310 hardcode_libdir_flag_spec_FC=' '
17311 allow_undefined_flag_FC=unsupported
17312 # Tell ltmain to make .lib files, not .a files.
17313 libext=lib
17314 # Tell ltmain to make .dll files, not .so files.
17315 shrext_cmds=".dll"
17316 # FIXME: Setting linknames here is a bad hack.
17317 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17318 # The linker will automatically build a .lib file if we build a DLL.
17319 old_archive_from_new_cmds_FC='true'
17320 # FIXME: Should let the user specify the lib program.
17321 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
17322 enable_shared_with_static_runtimes_FC=yes
17323 ;;
17324 esac
17325 ;;
17326
17327 darwin* | rhapsody*)
17328
17329
17330 archive_cmds_need_lc_FC=no
17331 hardcode_direct_FC=no
17332 hardcode_automatic_FC=yes
17333 hardcode_shlibpath_var_FC=unsupported
17334 if test "$lt_cv_ld_force_load" = "yes"; then
17335 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\"`'
17336 compiler_needs_object_FC=yes
17337 else
17338 whole_archive_flag_spec_FC=''
17339 fi
17340 link_all_deplibs_FC=yes
17341 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
17342 case $cc_basename in
17343 ifort*) _lt_dar_can_shared=yes ;;
17344 *) _lt_dar_can_shared=$GCC ;;
17345 esac
17346 if test "$_lt_dar_can_shared" = "yes"; then
17347 output_verbose_link_cmd=func_echo_all
17348 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}"
17349 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17350 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}"
17351 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}"
17352
17353 else
17354 ld_shlibs_FC=no
17355 fi
17356
17357 ;;
17358
17359 dgux*)
17360 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17361 hardcode_libdir_flag_spec_FC='-L$libdir'
17362 hardcode_shlibpath_var_FC=no
17363 ;;
17364
17365 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17366 # support. Future versions do this automatically, but an explicit c++rt0.o
17367 # does not break anything, and helps significantly (at the cost of a little
17368 # extra space).
17369 freebsd2.2*)
17370 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17371 hardcode_libdir_flag_spec_FC='-R$libdir'
17372 hardcode_direct_FC=yes
17373 hardcode_shlibpath_var_FC=no
17374 ;;
17375
17376 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17377 freebsd2.*)
17378 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17379 hardcode_direct_FC=yes
17380 hardcode_minus_L_FC=yes
17381 hardcode_shlibpath_var_FC=no
17382 ;;
17383
17384 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17385 freebsd* | dragonfly*)
17386 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17387 hardcode_libdir_flag_spec_FC='-R$libdir'
17388 hardcode_direct_FC=yes
17389 hardcode_shlibpath_var_FC=no
17390 ;;
17391
17392 hpux9*)
17393 if test "$GCC" = yes; then
17394 archive_cmds_FC='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17395 else
17396 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'
17397 fi
17398 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17399 hardcode_libdir_separator_FC=:
17400 hardcode_direct_FC=yes
17401
17402 # hardcode_minus_L: Not really in the search PATH,
17403 # but as the default location of the library.
17404 hardcode_minus_L_FC=yes
17405 export_dynamic_flag_spec_FC='${wl}-E'
17406 ;;
17407
17408 hpux10*)
17409 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17410 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17411 else
17412 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17413 fi
17414 if test "$with_gnu_ld" = no; then
17415 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17416 hardcode_libdir_separator_FC=:
17417 hardcode_direct_FC=yes
17418 hardcode_direct_absolute_FC=yes
17419 export_dynamic_flag_spec_FC='${wl}-E'
17420 # hardcode_minus_L: Not really in the search PATH,
17421 # but as the default location of the library.
17422 hardcode_minus_L_FC=yes
17423 fi
17424 ;;
17425
17426 hpux11*)
17427 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17428 case $host_cpu in
17429 hppa*64*)
17430 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17431 ;;
17432 ia64*)
17433 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17434 ;;
17435 *)
17436 archive_cmds_FC='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17437 ;;
17438 esac
17439 else
17440 case $host_cpu in
17441 hppa*64*)
17442 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17443 ;;
17444 ia64*)
17445 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17446 ;;
17447 *)
17448 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17449 ;;
17450 esac
17451 fi
17452 if test "$with_gnu_ld" = no; then
17453 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
17454 hardcode_libdir_separator_FC=:
17455
17456 case $host_cpu in
17457 hppa*64*|ia64*)
17458 hardcode_direct_FC=no
17459 hardcode_shlibpath_var_FC=no
17460 ;;
17461 *)
17462 hardcode_direct_FC=yes
17463 hardcode_direct_absolute_FC=yes
17464 export_dynamic_flag_spec_FC='${wl}-E'
17465
17466 # hardcode_minus_L: Not really in the search PATH,
17467 # but as the default location of the library.
17468 hardcode_minus_L_FC=yes
17469 ;;
17470 esac
17471 fi
17472 ;;
17473
17474 irix5* | irix6* | nonstopux*)
17475 if test "$GCC" = yes; then
17476 archive_cmds_FC='$CC -shared $pic_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'
17477 # Try to use the -exported_symbol ld option, if it does not
17478 # work, assume that -exports_file does not work either and
17479 # implicitly export all symbols.
17480 # This should be the same for all languages, so no per-tag cache variable.
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17482 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17483 if ${lt_cv_irix_exported_symbol+:} false; then :
17484 $as_echo_n "(cached) " >&6
17485 else
17486 save_LDFLAGS="$LDFLAGS"
17487 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17488 cat > conftest.$ac_ext <<_ACEOF
17489
17490 subroutine foo
17491 end
17492 _ACEOF
17493 if ac_fn_fc_try_link "$LINENO"; then :
17494 lt_cv_irix_exported_symbol=yes
17495 else
17496 lt_cv_irix_exported_symbol=no
17497 fi
17498 rm -f core conftest.err conftest.$ac_objext \
17499 conftest$ac_exeext conftest.$ac_ext
17500 LDFLAGS="$save_LDFLAGS"
17501 fi
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17503 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
17504 if test "$lt_cv_irix_exported_symbol" = yes; then
17505 archive_expsym_cmds_FC='$CC -shared $pic_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 ${wl}-exports_file ${wl}$export_symbols -o $lib'
17506 fi
17507 else
17508 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'
17509 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'
17510 fi
17511 archive_cmds_need_lc_FC='no'
17512 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17513 hardcode_libdir_separator_FC=:
17514 inherit_rpath_FC=yes
17515 link_all_deplibs_FC=yes
17516 ;;
17517
17518 netbsd*)
17519 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17520 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17521 else
17522 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17523 fi
17524 hardcode_libdir_flag_spec_FC='-R$libdir'
17525 hardcode_direct_FC=yes
17526 hardcode_shlibpath_var_FC=no
17527 ;;
17528
17529 newsos6)
17530 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17531 hardcode_direct_FC=yes
17532 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17533 hardcode_libdir_separator_FC=:
17534 hardcode_shlibpath_var_FC=no
17535 ;;
17536
17537 *nto* | *qnx*)
17538 ;;
17539
17540 openbsd*)
17541 if test -f /usr/libexec/ld.so; then
17542 hardcode_direct_FC=yes
17543 hardcode_shlibpath_var_FC=no
17544 hardcode_direct_absolute_FC=yes
17545 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17546 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17547 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17548 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
17549 export_dynamic_flag_spec_FC='${wl}-E'
17550 else
17551 case $host_os in
17552 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17553 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17554 hardcode_libdir_flag_spec_FC='-R$libdir'
17555 ;;
17556 *)
17557 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17558 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
17559 ;;
17560 esac
17561 fi
17562 else
17563 ld_shlibs_FC=no
17564 fi
17565 ;;
17566
17567 os2*)
17568 hardcode_libdir_flag_spec_FC='-L$libdir'
17569 hardcode_minus_L_FC=yes
17570 allow_undefined_flag_FC=unsupported
17571 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'
17572 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17573 ;;
17574
17575 osf3*)
17576 if test "$GCC" = yes; then
17577 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
17578 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'
17579 else
17580 allow_undefined_flag_FC=' -expect_unresolved \*'
17581 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'
17582 fi
17583 archive_cmds_need_lc_FC='no'
17584 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17585 hardcode_libdir_separator_FC=:
17586 ;;
17587
17588 osf4* | osf5*) # as osf3* with the addition of -msym flag
17589 if test "$GCC" = yes; then
17590 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
17591 archive_cmds_FC='$CC -shared${allow_undefined_flag} $pic_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'
17592 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
17593 else
17594 allow_undefined_flag_FC=' -expect_unresolved \*'
17595 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'
17596 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~
17597 $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'
17598
17599 # Both c and cxx compiler support -rpath directly
17600 hardcode_libdir_flag_spec_FC='-rpath $libdir'
17601 fi
17602 archive_cmds_need_lc_FC='no'
17603 hardcode_libdir_separator_FC=:
17604 ;;
17605
17606 solaris*)
17607 no_undefined_flag_FC=' -z defs'
17608 if test "$GCC" = yes; then
17609 wlarc='${wl}'
17610 archive_cmds_FC='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17612 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17613 else
17614 case `$CC -V 2>&1` in
17615 *"Compilers 5.0"*)
17616 wlarc=''
17617 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17619 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
17620 ;;
17621 *)
17622 wlarc='${wl}'
17623 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
17624 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
17625 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
17626 ;;
17627 esac
17628 fi
17629 hardcode_libdir_flag_spec_FC='-R$libdir'
17630 hardcode_shlibpath_var_FC=no
17631 case $host_os in
17632 solaris2.[0-5] | solaris2.[0-5].*) ;;
17633 *)
17634 # The compiler driver will combine and reorder linker options,
17635 # but understands `-z linker_flag'. GCC discards it without `$wl',
17636 # but is careful enough not to reorder.
17637 # Supported since Solaris 2.6 (maybe 2.5.1?)
17638 if test "$GCC" = yes; then
17639 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17640 else
17641 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
17642 fi
17643 ;;
17644 esac
17645 link_all_deplibs_FC=yes
17646 ;;
17647
17648 sunos4*)
17649 if test "x$host_vendor" = xsequent; then
17650 # Use $CC to link under sequent, because it throws in some extra .o
17651 # files that make .init and .fini sections work.
17652 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17653 else
17654 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17655 fi
17656 hardcode_libdir_flag_spec_FC='-L$libdir'
17657 hardcode_direct_FC=yes
17658 hardcode_minus_L_FC=yes
17659 hardcode_shlibpath_var_FC=no
17660 ;;
17661
17662 sysv4)
17663 case $host_vendor in
17664 sni)
17665 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17666 hardcode_direct_FC=yes # is this really true???
17667 ;;
17668 siemens)
17669 ## LD is ld it makes a PLAMLIB
17670 ## CC just makes a GrossModule.
17671 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17672 reload_cmds_FC='$CC -r -o $output$reload_objs'
17673 hardcode_direct_FC=no
17674 ;;
17675 motorola)
17676 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17677 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
17678 ;;
17679 esac
17680 runpath_var='LD_RUN_PATH'
17681 hardcode_shlibpath_var_FC=no
17682 ;;
17683
17684 sysv4.3*)
17685 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17686 hardcode_shlibpath_var_FC=no
17687 export_dynamic_flag_spec_FC='-Bexport'
17688 ;;
17689
17690 sysv4*MP*)
17691 if test -d /usr/nec; then
17692 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17693 hardcode_shlibpath_var_FC=no
17694 runpath_var=LD_RUN_PATH
17695 hardcode_runpath_var=yes
17696 ld_shlibs_FC=yes
17697 fi
17698 ;;
17699
17700 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17701 no_undefined_flag_FC='${wl}-z,text'
17702 archive_cmds_need_lc_FC=no
17703 hardcode_shlibpath_var_FC=no
17704 runpath_var='LD_RUN_PATH'
17705
17706 if test "$GCC" = yes; then
17707 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17708 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17709 else
17710 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17711 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17712 fi
17713 ;;
17714
17715 sysv5* | sco3.2v5* | sco5v6*)
17716 # Note: We can NOT use -z defs as we might desire, because we do not
17717 # link with -lc, and that would cause any symbols used from libc to
17718 # always be unresolved, which means just about no library would
17719 # ever link correctly. If we're not using GNU ld we use -z text
17720 # though, which does catch some bad symbols but isn't as heavy-handed
17721 # as -z defs.
17722 no_undefined_flag_FC='${wl}-z,text'
17723 allow_undefined_flag_FC='${wl}-z,nodefs'
17724 archive_cmds_need_lc_FC=no
17725 hardcode_shlibpath_var_FC=no
17726 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
17727 hardcode_libdir_separator_FC=':'
17728 link_all_deplibs_FC=yes
17729 export_dynamic_flag_spec_FC='${wl}-Bexport'
17730 runpath_var='LD_RUN_PATH'
17731
17732 if test "$GCC" = yes; then
17733 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17734 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17735 else
17736 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17737 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17738 fi
17739 ;;
17740
17741 uts4*)
17742 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17743 hardcode_libdir_flag_spec_FC='-L$libdir'
17744 hardcode_shlibpath_var_FC=no
17745 ;;
17746
17747 *)
17748 ld_shlibs_FC=no
17749 ;;
17750 esac
17751
17752 if test x$host_vendor = xsni; then
17753 case $host in
17754 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17755 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
17756 ;;
17757 esac
17758 fi
17759 fi
17760
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
17762 $as_echo "$ld_shlibs_FC" >&6; }
17763 test "$ld_shlibs_FC" = no && can_build_shared=no
17764
17765 with_gnu_ld_FC=$with_gnu_ld
17766
17767
17768
17769
17770
17771
17772 #
17773 # Do we need to explicitly link libc?
17774 #
17775 case "x$archive_cmds_need_lc_FC" in
17776 x|xyes)
17777 # Assume -lc should be added
17778 archive_cmds_need_lc_FC=yes
17779
17780 if test "$enable_shared" = yes && test "$GCC" = yes; then
17781 case $archive_cmds_FC in
17782 *'~'*)
17783 # FIXME: we may have to deal with multi-command sequences.
17784 ;;
17785 '$CC '*)
17786 # Test whether the compiler implicitly links with -lc since on some
17787 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17788 # to ld, don't add -lc before -lgcc.
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17790 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17791 if ${lt_cv_archive_cmds_need_lc_FC+:} false; then :
17792 $as_echo_n "(cached) " >&6
17793 else
17794 $RM conftest*
17795 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17796
17797 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17798 (eval $ac_compile) 2>&5
17799 ac_status=$?
17800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17801 test $ac_status = 0; } 2>conftest.err; then
17802 soname=conftest
17803 lib=conftest
17804 libobjs=conftest.$ac_objext
17805 deplibs=
17806 wl=$lt_prog_compiler_wl_FC
17807 pic_flag=$lt_prog_compiler_pic_FC
17808 compiler_flags=-v
17809 linker_flags=-v
17810 verstring=
17811 output_objdir=.
17812 libname=conftest
17813 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
17814 allow_undefined_flag_FC=
17815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17816 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17817 ac_status=$?
17818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17819 test $ac_status = 0; }
17820 then
17821 lt_cv_archive_cmds_need_lc_FC=no
17822 else
17823 lt_cv_archive_cmds_need_lc_FC=yes
17824 fi
17825 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
17826 else
17827 cat conftest.err 1>&5
17828 fi
17829 $RM conftest*
17830
17831 fi
17832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
17833 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
17834 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
17835 ;;
17836 esac
17837 fi
17838 ;;
17839 esac
17840
17841
17842
17843
17844
17845
17846
17847
17848
17849
17850
17851
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868
17869
17870
17871
17872
17873
17874
17875
17876
17877
17878
17879
17880
17881
17882
17883
17884
17885
17886
17887
17888
17889
17890
17891
17892
17893
17894
17895
17896
17897
17898
17899
17900
17901
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17903 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17904
17905 library_names_spec=
17906 libname_spec='lib$name'
17907 soname_spec=
17908 shrext_cmds=".so"
17909 postinstall_cmds=
17910 postuninstall_cmds=
17911 finish_cmds=
17912 finish_eval=
17913 shlibpath_var=
17914 shlibpath_overrides_runpath=unknown
17915 version_type=none
17916 dynamic_linker="$host_os ld.so"
17917 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17918 need_lib_prefix=unknown
17919 hardcode_into_libs=no
17920
17921 # when you set need_version to no, make sure it does not cause -set_version
17922 # flags to be left without arguments
17923 need_version=unknown
17924
17925 case $host_os in
17926 aix3*)
17927 version_type=linux # correct to gnu/linux during the next big refactor
17928 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17929 shlibpath_var=LIBPATH
17930
17931 # AIX 3 has no versioning support, so we append a major version to the name.
17932 soname_spec='${libname}${release}${shared_ext}$major'
17933 ;;
17934
17935 aix[4-9]*)
17936 version_type=linux # correct to gnu/linux during the next big refactor
17937 need_lib_prefix=no
17938 need_version=no
17939 hardcode_into_libs=yes
17940 if test "$host_cpu" = ia64; then
17941 # AIX 5 supports IA64
17942 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17943 shlibpath_var=LD_LIBRARY_PATH
17944 else
17945 # With GCC up to 2.95.x, collect2 would create an import file
17946 # for dependence libraries. The import file would start with
17947 # the line `#! .'. This would cause the generated library to
17948 # depend on `.', always an invalid library. This was fixed in
17949 # development snapshots of GCC prior to 3.0.
17950 case $host_os in
17951 aix4 | aix4.[01] | aix4.[01].*)
17952 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17953 echo ' yes '
17954 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17955 :
17956 else
17957 can_build_shared=no
17958 fi
17959 ;;
17960 esac
17961 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17962 # soname into executable. Probably we can add versioning support to
17963 # collect2, so additional links can be useful in future.
17964 if test "$aix_use_runtimelinking" = yes; then
17965 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17966 # instead of lib<name>.a to let people know that these are not
17967 # typical AIX shared libraries.
17968 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17969 else
17970 # We preserve .a as extension for shared libraries through AIX4.2
17971 # and later when we are not doing run time linking.
17972 library_names_spec='${libname}${release}.a $libname.a'
17973 soname_spec='${libname}${release}${shared_ext}$major'
17974 fi
17975 shlibpath_var=LIBPATH
17976 fi
17977 ;;
17978
17979 amigaos*)
17980 case $host_cpu in
17981 powerpc)
17982 # Since July 2007 AmigaOS4 officially supports .so libraries.
17983 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 ;;
17986 m68k)
17987 library_names_spec='$libname.ixlibrary $libname.a'
17988 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17989 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'
17990 ;;
17991 esac
17992 ;;
17993
17994 beos*)
17995 library_names_spec='${libname}${shared_ext}'
17996 dynamic_linker="$host_os ld.so"
17997 shlibpath_var=LIBRARY_PATH
17998 ;;
17999
18000 bsdi[45]*)
18001 version_type=linux # correct to gnu/linux during the next big refactor
18002 need_version=no
18003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18004 soname_spec='${libname}${release}${shared_ext}$major'
18005 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18006 shlibpath_var=LD_LIBRARY_PATH
18007 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18008 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18009 # the default ld.so.conf also contains /usr/contrib/lib and
18010 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18011 # libtool to hard-code these into programs
18012 ;;
18013
18014 cygwin* | mingw* | pw32* | cegcc*)
18015 version_type=windows
18016 shrext_cmds=".dll"
18017 need_version=no
18018 need_lib_prefix=no
18019
18020 case $GCC,$cc_basename in
18021 yes,*)
18022 # gcc
18023 library_names_spec='$libname.dll.a'
18024 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18025 postinstall_cmds='base_file=`basename \${file}`~
18026 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18027 dldir=$destdir/`dirname \$dlpath`~
18028 test -d \$dldir || mkdir -p \$dldir~
18029 $install_prog $dir/$dlname \$dldir/$dlname~
18030 chmod a+x \$dldir/$dlname~
18031 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18032 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18033 fi'
18034 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18035 dlpath=$dir/\$dldll~
18036 $RM \$dlpath'
18037 shlibpath_overrides_runpath=yes
18038
18039 case $host_os in
18040 cygwin*)
18041 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18042 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18043
18044 ;;
18045 mingw* | cegcc*)
18046 # MinGW DLLs use traditional 'lib' prefix
18047 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18048 ;;
18049 pw32*)
18050 # pw32 DLLs use 'pw' prefix rather than 'lib'
18051 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18052 ;;
18053 esac
18054 dynamic_linker='Win32 ld.exe'
18055 ;;
18056
18057 *,cl*)
18058 # Native MSVC
18059 libname_spec='$name'
18060 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18061 library_names_spec='${libname}.dll.lib'
18062
18063 case $build_os in
18064 mingw*)
18065 sys_lib_search_path_spec=
18066 lt_save_ifs=$IFS
18067 IFS=';'
18068 for lt_path in $LIB
18069 do
18070 IFS=$lt_save_ifs
18071 # Let DOS variable expansion print the short 8.3 style file name.
18072 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18073 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18074 done
18075 IFS=$lt_save_ifs
18076 # Convert to MSYS style.
18077 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18078 ;;
18079 cygwin*)
18080 # Convert to unix form, then to dos form, then back to unix form
18081 # but this time dos style (no spaces!) so that the unix form looks
18082 # like /cygdrive/c/PROGRA~1:/cygdr...
18083 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18084 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18085 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18086 ;;
18087 *)
18088 sys_lib_search_path_spec="$LIB"
18089 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18090 # It is most probably a Windows format PATH.
18091 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18092 else
18093 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18094 fi
18095 # FIXME: find the short name or the path components, as spaces are
18096 # common. (e.g. "Program Files" -> "PROGRA~1")
18097 ;;
18098 esac
18099
18100 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18101 postinstall_cmds='base_file=`basename \${file}`~
18102 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18103 dldir=$destdir/`dirname \$dlpath`~
18104 test -d \$dldir || mkdir -p \$dldir~
18105 $install_prog $dir/$dlname \$dldir/$dlname'
18106 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18107 dlpath=$dir/\$dldll~
18108 $RM \$dlpath'
18109 shlibpath_overrides_runpath=yes
18110 dynamic_linker='Win32 link.exe'
18111 ;;
18112
18113 *)
18114 # Assume MSVC wrapper
18115 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18116 dynamic_linker='Win32 ld.exe'
18117 ;;
18118 esac
18119 # FIXME: first we should search . and the directory the executable is in
18120 shlibpath_var=PATH
18121 ;;
18122
18123 darwin* | rhapsody*)
18124 dynamic_linker="$host_os dyld"
18125 version_type=darwin
18126 need_lib_prefix=no
18127 need_version=no
18128 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18129 soname_spec='${libname}${release}${major}$shared_ext'
18130 shlibpath_overrides_runpath=yes
18131 shlibpath_var=DYLD_LIBRARY_PATH
18132 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18133
18134 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18135 ;;
18136
18137 dgux*)
18138 version_type=linux # correct to gnu/linux during the next big refactor
18139 need_lib_prefix=no
18140 need_version=no
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 ;;
18145
18146 freebsd* | dragonfly*)
18147 # DragonFly does not have aout. When/if they implement a new
18148 # versioning mechanism, adjust this.
18149 if test -x /usr/bin/objformat; then
18150 objformat=`/usr/bin/objformat`
18151 else
18152 case $host_os in
18153 freebsd[23].*) objformat=aout ;;
18154 *) objformat=elf ;;
18155 esac
18156 fi
18157 version_type=freebsd-$objformat
18158 case $version_type in
18159 freebsd-elf*)
18160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18161 need_version=no
18162 need_lib_prefix=no
18163 ;;
18164 freebsd-*)
18165 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18166 need_version=yes
18167 ;;
18168 esac
18169 shlibpath_var=LD_LIBRARY_PATH
18170 case $host_os in
18171 freebsd2.*)
18172 shlibpath_overrides_runpath=yes
18173 ;;
18174 freebsd3.[01]* | freebsdelf3.[01]*)
18175 shlibpath_overrides_runpath=yes
18176 hardcode_into_libs=yes
18177 ;;
18178 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18179 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18180 shlibpath_overrides_runpath=no
18181 hardcode_into_libs=yes
18182 ;;
18183 *) # from 4.6 on, and DragonFly
18184 shlibpath_overrides_runpath=yes
18185 hardcode_into_libs=yes
18186 ;;
18187 esac
18188 ;;
18189
18190 gnu*)
18191 version_type=linux # correct to gnu/linux during the next big refactor
18192 need_lib_prefix=no
18193 need_version=no
18194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18195 soname_spec='${libname}${release}${shared_ext}$major'
18196 shlibpath_var=LD_LIBRARY_PATH
18197 shlibpath_overrides_runpath=no
18198 hardcode_into_libs=yes
18199 ;;
18200
18201 haiku*)
18202 version_type=linux # correct to gnu/linux during the next big refactor
18203 need_lib_prefix=no
18204 need_version=no
18205 dynamic_linker="$host_os runtime_loader"
18206 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18207 soname_spec='${libname}${release}${shared_ext}$major'
18208 shlibpath_var=LIBRARY_PATH
18209 shlibpath_overrides_runpath=yes
18210 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18211 hardcode_into_libs=yes
18212 ;;
18213
18214 hpux9* | hpux10* | hpux11*)
18215 # Give a soname corresponding to the major version so that dld.sl refuses to
18216 # link against other versions.
18217 version_type=sunos
18218 need_lib_prefix=no
18219 need_version=no
18220 case $host_cpu in
18221 ia64*)
18222 shrext_cmds='.so'
18223 hardcode_into_libs=yes
18224 dynamic_linker="$host_os dld.so"
18225 shlibpath_var=LD_LIBRARY_PATH
18226 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18227 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18228 soname_spec='${libname}${release}${shared_ext}$major'
18229 if test "X$HPUX_IA64_MODE" = X32; then
18230 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18231 else
18232 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18233 fi
18234 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18235 ;;
18236 hppa*64*)
18237 shrext_cmds='.sl'
18238 hardcode_into_libs=yes
18239 dynamic_linker="$host_os dld.sl"
18240 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18241 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18243 soname_spec='${libname}${release}${shared_ext}$major'
18244 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18245 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18246 ;;
18247 *)
18248 shrext_cmds='.sl'
18249 dynamic_linker="$host_os dld.sl"
18250 shlibpath_var=SHLIB_PATH
18251 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 ;;
18255 esac
18256 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18257 postinstall_cmds='chmod 555 $lib'
18258 # or fails outright, so override atomically:
18259 install_override_mode=555
18260 ;;
18261
18262 interix[3-9]*)
18263 version_type=linux # correct to gnu/linux during the next big refactor
18264 need_lib_prefix=no
18265 need_version=no
18266 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18267 soname_spec='${libname}${release}${shared_ext}$major'
18268 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18269 shlibpath_var=LD_LIBRARY_PATH
18270 shlibpath_overrides_runpath=no
18271 hardcode_into_libs=yes
18272 ;;
18273
18274 irix5* | irix6* | nonstopux*)
18275 case $host_os in
18276 nonstopux*) version_type=nonstopux ;;
18277 *)
18278 if test "$lt_cv_prog_gnu_ld" = yes; then
18279 version_type=linux # correct to gnu/linux during the next big refactor
18280 else
18281 version_type=irix
18282 fi ;;
18283 esac
18284 need_lib_prefix=no
18285 need_version=no
18286 soname_spec='${libname}${release}${shared_ext}$major'
18287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18288 case $host_os in
18289 irix5* | nonstopux*)
18290 libsuff= shlibsuff=
18291 ;;
18292 *)
18293 case $LD in # libtool.m4 will add one of these switches to LD
18294 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18295 libsuff= shlibsuff= libmagic=32-bit;;
18296 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18297 libsuff=32 shlibsuff=N32 libmagic=N32;;
18298 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18299 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18300 *) libsuff= shlibsuff= libmagic=never-match;;
18301 esac
18302 ;;
18303 esac
18304 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18305 shlibpath_overrides_runpath=no
18306 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18307 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18308 hardcode_into_libs=yes
18309 ;;
18310
18311 # No shared lib support for Linux oldld, aout, or coff.
18312 linux*oldld* | linux*aout* | linux*coff*)
18313 dynamic_linker=no
18314 ;;
18315
18316 # This must be glibc/ELF.
18317 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18318 version_type=linux # correct to gnu/linux during the next big refactor
18319 need_lib_prefix=no
18320 need_version=no
18321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18322 soname_spec='${libname}${release}${shared_ext}$major'
18323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18324 shlibpath_var=LD_LIBRARY_PATH
18325 shlibpath_overrides_runpath=no
18326
18327 # Some binutils ld are patched to set DT_RUNPATH
18328 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18329 $as_echo_n "(cached) " >&6
18330 else
18331 lt_cv_shlibpath_overrides_runpath=no
18332 save_LDFLAGS=$LDFLAGS
18333 save_libdir=$libdir
18334 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
18335 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
18336 cat > conftest.$ac_ext <<_ACEOF
18337 program main
18338
18339 end
18340 _ACEOF
18341 if ac_fn_fc_try_link "$LINENO"; then :
18342 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18343 lt_cv_shlibpath_overrides_runpath=yes
18344 fi
18345 fi
18346 rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18348 LDFLAGS=$save_LDFLAGS
18349 libdir=$save_libdir
18350
18351 fi
18352
18353 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18354
18355 # This implies no fast_install, which is unacceptable.
18356 # Some rework will be needed to allow for fast_install
18357 # before this can be enabled.
18358 hardcode_into_libs=yes
18359
18360 # Add ABI-specific directories to the system library path.
18361 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
18362
18363 # Append ld.so.conf contents to the search path
18364 if test -f /etc/ld.so.conf; then
18365 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' ' '`
18366 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18367
18368 fi
18369
18370 # We used to test for /lib/ld.so.1 and disable shared libraries on
18371 # powerpc, because MkLinux only supported shared libraries with the
18372 # GNU dynamic linker. Since this was broken with cross compilers,
18373 # most powerpc-linux boxes support dynamic linking these days and
18374 # people can always --disable-shared, the test was removed, and we
18375 # assume the GNU/Linux dynamic linker is in use.
18376 dynamic_linker='GNU/Linux ld.so'
18377 ;;
18378
18379 netbsd*)
18380 version_type=sunos
18381 need_lib_prefix=no
18382 need_version=no
18383 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18385 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18386 dynamic_linker='NetBSD (a.out) ld.so'
18387 else
18388 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18389 soname_spec='${libname}${release}${shared_ext}$major'
18390 dynamic_linker='NetBSD ld.elf_so'
18391 fi
18392 shlibpath_var=LD_LIBRARY_PATH
18393 shlibpath_overrides_runpath=yes
18394 hardcode_into_libs=yes
18395 ;;
18396
18397 newsos6)
18398 version_type=linux # correct to gnu/linux during the next big refactor
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18400 shlibpath_var=LD_LIBRARY_PATH
18401 shlibpath_overrides_runpath=yes
18402 ;;
18403
18404 *nto* | *qnx*)
18405 version_type=qnx
18406 need_lib_prefix=no
18407 need_version=no
18408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18409 soname_spec='${libname}${release}${shared_ext}$major'
18410 shlibpath_var=LD_LIBRARY_PATH
18411 shlibpath_overrides_runpath=no
18412 hardcode_into_libs=yes
18413 dynamic_linker='ldqnx.so'
18414 ;;
18415
18416 openbsd*)
18417 version_type=sunos
18418 sys_lib_dlsearch_path_spec="/usr/lib"
18419 need_lib_prefix=no
18420 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18421 case $host_os in
18422 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18423 *) need_version=no ;;
18424 esac
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18427 shlibpath_var=LD_LIBRARY_PATH
18428 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18429 case $host_os in
18430 openbsd2.[89] | openbsd2.[89].*)
18431 shlibpath_overrides_runpath=no
18432 ;;
18433 *)
18434 shlibpath_overrides_runpath=yes
18435 ;;
18436 esac
18437 else
18438 shlibpath_overrides_runpath=yes
18439 fi
18440 ;;
18441
18442 os2*)
18443 libname_spec='$name'
18444 shrext_cmds=".dll"
18445 need_lib_prefix=no
18446 library_names_spec='$libname${shared_ext} $libname.a'
18447 dynamic_linker='OS/2 ld.exe'
18448 shlibpath_var=LIBPATH
18449 ;;
18450
18451 osf3* | osf4* | osf5*)
18452 version_type=osf
18453 need_lib_prefix=no
18454 need_version=no
18455 soname_spec='${libname}${release}${shared_ext}$major'
18456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18457 shlibpath_var=LD_LIBRARY_PATH
18458 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18459 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18460 ;;
18461
18462 rdos*)
18463 dynamic_linker=no
18464 ;;
18465
18466 solaris*)
18467 version_type=linux # correct to gnu/linux during the next big refactor
18468 need_lib_prefix=no
18469 need_version=no
18470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18471 soname_spec='${libname}${release}${shared_ext}$major'
18472 shlibpath_var=LD_LIBRARY_PATH
18473 shlibpath_overrides_runpath=yes
18474 hardcode_into_libs=yes
18475 # ldd complains unless libraries are executable
18476 postinstall_cmds='chmod +x $lib'
18477 ;;
18478
18479 sunos4*)
18480 version_type=sunos
18481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18482 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18483 shlibpath_var=LD_LIBRARY_PATH
18484 shlibpath_overrides_runpath=yes
18485 if test "$with_gnu_ld" = yes; then
18486 need_lib_prefix=no
18487 fi
18488 need_version=yes
18489 ;;
18490
18491 sysv4 | sysv4.3*)
18492 version_type=linux # correct to gnu/linux during the next big refactor
18493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18494 soname_spec='${libname}${release}${shared_ext}$major'
18495 shlibpath_var=LD_LIBRARY_PATH
18496 case $host_vendor in
18497 sni)
18498 shlibpath_overrides_runpath=no
18499 need_lib_prefix=no
18500 runpath_var=LD_RUN_PATH
18501 ;;
18502 siemens)
18503 need_lib_prefix=no
18504 ;;
18505 motorola)
18506 need_lib_prefix=no
18507 need_version=no
18508 shlibpath_overrides_runpath=no
18509 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18510 ;;
18511 esac
18512 ;;
18513
18514 sysv4*MP*)
18515 if test -d /usr/nec ;then
18516 version_type=linux # correct to gnu/linux during the next big refactor
18517 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18518 soname_spec='$libname${shared_ext}.$major'
18519 shlibpath_var=LD_LIBRARY_PATH
18520 fi
18521 ;;
18522
18523 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18524 version_type=freebsd-elf
18525 need_lib_prefix=no
18526 need_version=no
18527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18528 soname_spec='${libname}${release}${shared_ext}$major'
18529 shlibpath_var=LD_LIBRARY_PATH
18530 shlibpath_overrides_runpath=yes
18531 hardcode_into_libs=yes
18532 if test "$with_gnu_ld" = yes; then
18533 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18534 else
18535 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18536 case $host_os in
18537 sco3.2v5*)
18538 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18539 ;;
18540 esac
18541 fi
18542 sys_lib_dlsearch_path_spec='/usr/lib'
18543 ;;
18544
18545 tpf*)
18546 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
18547 version_type=linux # correct to gnu/linux during the next big refactor
18548 need_lib_prefix=no
18549 need_version=no
18550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18551 shlibpath_var=LD_LIBRARY_PATH
18552 shlibpath_overrides_runpath=no
18553 hardcode_into_libs=yes
18554 ;;
18555
18556 uts4*)
18557 version_type=linux # correct to gnu/linux during the next big refactor
18558 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18559 soname_spec='${libname}${release}${shared_ext}$major'
18560 shlibpath_var=LD_LIBRARY_PATH
18561 ;;
18562
18563 *)
18564 dynamic_linker=no
18565 ;;
18566 esac
18567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18568 $as_echo "$dynamic_linker" >&6; }
18569 test "$dynamic_linker" = no && can_build_shared=no
18570
18571 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18572 if test "$GCC" = yes; then
18573 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18574 fi
18575
18576 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18577 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18578 fi
18579 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18580 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18581 fi
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602
18603
18604
18605
18606
18607
18608
18609
18610
18611
18612
18613
18614
18615
18616
18617
18618
18619
18620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18621 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18622 hardcode_action_FC=
18623 if test -n "$hardcode_libdir_flag_spec_FC" ||
18624 test -n "$runpath_var_FC" ||
18625 test "X$hardcode_automatic_FC" = "Xyes" ; then
18626
18627 # We can hardcode non-existent directories.
18628 if test "$hardcode_direct_FC" != no &&
18629 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18630 # have to relink, otherwise we might link with an installed library
18631 # when we should be linking with a yet-to-be-installed one
18632 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
18633 test "$hardcode_minus_L_FC" != no; then
18634 # Linking always hardcodes the temporary library directory.
18635 hardcode_action_FC=relink
18636 else
18637 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18638 hardcode_action_FC=immediate
18639 fi
18640 else
18641 # We cannot hardcode anything, or else we can only hardcode existing
18642 # directories.
18643 hardcode_action_FC=unsupported
18644 fi
18645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
18646 $as_echo "$hardcode_action_FC" >&6; }
18647
18648 if test "$hardcode_action_FC" = relink ||
18649 test "$inherit_rpath_FC" = yes; then
18650 # Fast installation is not supported
18651 enable_fast_install=no
18652 elif test "$shlibpath_overrides_runpath" = yes ||
18653 test "$enable_shared" = no; then
18654 # Fast installation is not necessary
18655 enable_fast_install=needless
18656 fi
18657
18658
18659
18660
18661
18662
18663
18664 fi # test -n "$compiler"
18665
18666 GCC=$lt_save_GCC
18667 CC=$lt_save_CC
18668 CFLAGS=$lt_save_CFLAGS
18669 fi # test "$_lt_disable_FC" != yes
18670
18671 ac_ext=c
18672 ac_cpp='$CPP $CPPFLAGS'
18673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18676
18677
18678
18679 # Check whether --enable-fortran was given.
18680 if test "${enable_fortran+set}" = set; then :
18681 enableval=$enable_fortran;
18682 fi
18683
18684
18685 # Check to see if explicitly disabled
18686
18687 if test "x$enable_fortran" != "xyes"; then :
18688
18689 FC=""
18690 F77=""
18691
18692 fi
18693
18694 if test -n "$FC"; then :
18695
18696 # The cast to long int works around a bug in the HP C Compiler
18697 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
18698 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
18699 # This bug is HP SR number 8606223364.
18700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int*" >&5
18701 $as_echo_n "checking size of int*... " >&6; }
18702 if ${ac_cv_sizeof_intp+:} false; then :
18703 $as_echo_n "(cached) " >&6
18704 else
18705 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int*))" "ac_cv_sizeof_intp" "$ac_includes_default"; then :
18706
18707 else
18708 if test "$ac_cv_type_intp" = yes; then
18709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18711 as_fn_error 77 "cannot compute sizeof (int*)
18712 See \`config.log' for more details" "$LINENO" 5; }
18713 else
18714 ac_cv_sizeof_intp=0
18715 fi
18716 fi
18717
18718 fi
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_intp" >&5
18720 $as_echo "$ac_cv_sizeof_intp" >&6; }
18721
18722
18723
18724 cat >>confdefs.h <<_ACEOF
18725 #define SIZEOF_INTP $ac_cv_sizeof_intp
18726 _ACEOF
18727
18728
18729 if test "x$ac_cv_sizeof_intp" == "x4"; then :
18730
18731 F2CFORTRAN_32PTR="yes"
18732
18733 else
18734
18735 { $as_echo "$as_me:${as_lineno-$LINENO}: Non-32 bit system; some fortran tests will be skipped" >&5
18736 $as_echo "$as_me: Non-32 bit system; some fortran tests will be skipped" >&6;}
18737
18738 fi
18739
18740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking fortran compiler" >&5
18741 $as_echo_n "checking fortran compiler... " >&6; }
18742 ac_ext=${ac_fc_srcext-f}
18743 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
18744 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
18745 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
18746
18747 cat > conftest.$ac_ext <<_ACEOF
18748
18749 program main
18750
18751 INTEGER :: I
18752 REAL :: R
18753 I=TRANSFER(R,I)
18754
18755 end
18756
18757 _ACEOF
18758 if ac_fn_fc_try_link "$LINENO"; then :
18759
18760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Fortran 90 code was successfully compiled; assume f90 or later" >&5
18761 $as_echo "Fortran 90 code was successfully compiled; assume f90 or later" >&6; }
18762 F2CFORTRAN_90="yes"
18763
18764 else
18765
18766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: Fortran 90 code format was not compiled; assume f77" >&5
18767 $as_echo "Fortran 90 code format was not compiled; assume f77" >&6; }
18768
18769 fi
18770 rm -f core conftest.err conftest.$ac_objext \
18771 conftest$ac_exeext conftest.$ac_ext
18772 ac_ext=c
18773 ac_cpp='$CPP $CPPFLAGS'
18774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18777
18778
18779 F2CFORTRAN_MACRO="yes"
18780 CPPFLAGS="$CPPFLAGS -Df2cFortran=1"
18781
18782 else
18783
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: Fortran compiler not found" >&5
18785 $as_echo "$as_me: Fortran compiler not found" >&6;}
18786 F2CFORTRAN_MACRO="no"
18787
18788 fi
18789
18790
18791
18792 ###################################
18793 # SZLIB checks
18794 ###################################
18795
18796
18797
18798 # Check whether --with-szlib was given.
18799 if test "${with_szlib+set}" = set; then :
18800 withval=$with_szlib;
18801 else
18802 withval=default
18803 fi
18804
18805
18806 if ## if withval==no szlib is disabled
18807 ##
18808 test "x$withval" == "xno"; then :
18809
18810 HAVE_LIBSZ="no"
18811
18812 elif ## Look for it, but do not abort if we can't find it
18813 ##
18814 test "x$withval" == "xdefault"; then :
18815
18816
18817
18818 inc_path=
18819
18820 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
18821
18822 saved_CPPFLAGS="$CPPFLAGS"
18823 if test -n "$inc_path"; then :
18824 CPPFLAGS="$CPPFLAGS -I$inc_path"
18825 fi
18826
18827 unset ac_cv_header_szlib_h
18828 for ac_header in szlib.h
18829 do :
18830 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
18831 if test "x$ac_cv_header_szlib_h" = xyes; then :
18832 cat >>confdefs.h <<_ACEOF
18833 #define HAVE_SZLIB_H 1
18834 _ACEOF
18835
18836 else
18837
18838 CPPFLAGS="$saved_CPPFLAGS"
18839
18840 fi
18841
18842 done
18843
18844
18845 fi
18846
18847 inc_path=/usr/local/include
18848
18849 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
18850
18851 saved_CPPFLAGS="$CPPFLAGS"
18852 if test -n "$inc_path"; then :
18853 CPPFLAGS="$CPPFLAGS -I$inc_path"
18854 fi
18855
18856 unset ac_cv_header_szlib_h
18857 for ac_header in szlib.h
18858 do :
18859 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
18860 if test "x$ac_cv_header_szlib_h" = xyes; then :
18861 cat >>confdefs.h <<_ACEOF
18862 #define HAVE_SZLIB_H 1
18863 _ACEOF
18864
18865 else
18866
18867 CPPFLAGS="$saved_CPPFLAGS"
18868
18869 fi
18870
18871 done
18872
18873
18874 fi
18875
18876 inc_path=/opt/local/include
18877
18878 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
18879
18880 saved_CPPFLAGS="$CPPFLAGS"
18881 if test -n "$inc_path"; then :
18882 CPPFLAGS="$CPPFLAGS -I$inc_path"
18883 fi
18884
18885 unset ac_cv_header_szlib_h
18886 for ac_header in szlib.h
18887 do :
18888 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
18889 if test "x$ac_cv_header_szlib_h" = xyes; then :
18890 cat >>confdefs.h <<_ACEOF
18891 #define HAVE_SZLIB_H 1
18892 _ACEOF
18893
18894 else
18895
18896 CPPFLAGS="$saved_CPPFLAGS"
18897
18898 fi
18899
18900 done
18901
18902
18903 fi
18904
18905 inc_path=/opt/local/lib/libaec/include
18906
18907 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
18908
18909 saved_CPPFLAGS="$CPPFLAGS"
18910 if test -n "$inc_path"; then :
18911 CPPFLAGS="$CPPFLAGS -I$inc_path"
18912 fi
18913
18914 unset ac_cv_header_szlib_h
18915 for ac_header in szlib.h
18916 do :
18917 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
18918 if test "x$ac_cv_header_szlib_h" = xyes; then :
18919 cat >>confdefs.h <<_ACEOF
18920 #define HAVE_SZLIB_H 1
18921 _ACEOF
18922
18923 else
18924
18925 CPPFLAGS="$saved_CPPFLAGS"
18926
18927 fi
18928
18929 done
18930
18931
18932 fi
18933
18934
18935
18936
18937 lib_path=
18938 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
18939
18940 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
18941 saved_LDFLAGS="$LDFLAGS"
18942
18943 if test -n "$lib_path"; then :
18944 LDFLAGS="$LDFLAGS -L$lib_path"
18945 fi
18946
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
18948 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
18949 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 ac_check_lib_save_LIBS=$LIBS
18953 LIBS="-lsz $LIBS"
18954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18955 /* end confdefs.h. */
18956
18957 /* Override any GCC internal prototype to avoid an error.
18958 Use char because int might match the return type of a GCC
18959 builtin and then its argument prototype would still apply. */
18960 #ifdef __cplusplus
18961 extern "C"
18962 #endif
18963 char SZ_BufftoBuffCompress ();
18964 int
18965 main ()
18966 {
18967 return SZ_BufftoBuffCompress ();
18968 ;
18969 return 0;
18970 }
18971 _ACEOF
18972 if ac_fn_c_try_link "$LINENO"; then :
18973 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
18974 else
18975 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
18976 fi
18977 rm -f core conftest.err conftest.$ac_objext \
18978 conftest$ac_exeext conftest.$ac_ext
18979 LIBS=$ac_check_lib_save_LIBS
18980 fi
18981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
18982 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
18983 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
18984
18985 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
18986 HAVE_LIBSZ="yes"
18987 lib_name=HAVE_LIBSZ
18988
18989 cat >>confdefs.h <<_ACEOF
18990 #define $lib_name 1
18991 _ACEOF
18992
18993 LIBS="-lsz $LIBS"
18994
18995 else
18996
18997 LDFLAGS="$saved_LDFLAGS"
18998 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
18999
19000 fi
19001
19002
19003 fi
19004
19005 lib_path=/usr/local/lib
19006 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19007
19008 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19009 saved_LDFLAGS="$LDFLAGS"
19010
19011 if test -n "$lib_path"; then :
19012 LDFLAGS="$LDFLAGS -L$lib_path"
19013 fi
19014
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19016 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19017 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19018 $as_echo_n "(cached) " >&6
19019 else
19020 ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lsz $LIBS"
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19024
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 char SZ_BufftoBuffCompress ();
19032 int
19033 main ()
19034 {
19035 return SZ_BufftoBuffCompress ();
19036 ;
19037 return 0;
19038 }
19039 _ACEOF
19040 if ac_fn_c_try_link "$LINENO"; then :
19041 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19042 else
19043 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19044 fi
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047 LIBS=$ac_check_lib_save_LIBS
19048 fi
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19050 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19051 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19052
19053 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19054 HAVE_LIBSZ="yes"
19055 lib_name=HAVE_LIBSZ
19056
19057 cat >>confdefs.h <<_ACEOF
19058 #define $lib_name 1
19059 _ACEOF
19060
19061 LIBS="-lsz $LIBS"
19062
19063 else
19064
19065 LDFLAGS="$saved_LDFLAGS"
19066 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19067
19068 fi
19069
19070
19071 fi
19072
19073 lib_path=/opt/local/lib
19074 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19075
19076 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19077 saved_LDFLAGS="$LDFLAGS"
19078
19079 if test -n "$lib_path"; then :
19080 LDFLAGS="$LDFLAGS -L$lib_path"
19081 fi
19082
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19084 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19085 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19086 $as_echo_n "(cached) " >&6
19087 else
19088 ac_check_lib_save_LIBS=$LIBS
19089 LIBS="-lsz $LIBS"
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19092
19093 /* Override any GCC internal prototype to avoid an error.
19094 Use char because int might match the return type of a GCC
19095 builtin and then its argument prototype would still apply. */
19096 #ifdef __cplusplus
19097 extern "C"
19098 #endif
19099 char SZ_BufftoBuffCompress ();
19100 int
19101 main ()
19102 {
19103 return SZ_BufftoBuffCompress ();
19104 ;
19105 return 0;
19106 }
19107 _ACEOF
19108 if ac_fn_c_try_link "$LINENO"; then :
19109 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19110 else
19111 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19112 fi
19113 rm -f core conftest.err conftest.$ac_objext \
19114 conftest$ac_exeext conftest.$ac_ext
19115 LIBS=$ac_check_lib_save_LIBS
19116 fi
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19118 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19119 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19120
19121 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19122 HAVE_LIBSZ="yes"
19123 lib_name=HAVE_LIBSZ
19124
19125 cat >>confdefs.h <<_ACEOF
19126 #define $lib_name 1
19127 _ACEOF
19128
19129 LIBS="-lsz $LIBS"
19130
19131 else
19132
19133 LDFLAGS="$saved_LDFLAGS"
19134 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19135
19136 fi
19137
19138
19139 fi
19140
19141 lib_path=/opt/local/lib/libaec/lib
19142 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19143
19144 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19145 saved_LDFLAGS="$LDFLAGS"
19146
19147 if test -n "$lib_path"; then :
19148 LDFLAGS="$LDFLAGS -L$lib_path"
19149 fi
19150
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19152 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19153 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 ac_check_lib_save_LIBS=$LIBS
19157 LIBS="-lsz $LIBS"
19158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19159 /* end confdefs.h. */
19160
19161 /* Override any GCC internal prototype to avoid an error.
19162 Use char because int might match the return type of a GCC
19163 builtin and then its argument prototype would still apply. */
19164 #ifdef __cplusplus
19165 extern "C"
19166 #endif
19167 char SZ_BufftoBuffCompress ();
19168 int
19169 main ()
19170 {
19171 return SZ_BufftoBuffCompress ();
19172 ;
19173 return 0;
19174 }
19175 _ACEOF
19176 if ac_fn_c_try_link "$LINENO"; then :
19177 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19178 else
19179 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19180 fi
19181 rm -f core conftest.err conftest.$ac_objext \
19182 conftest$ac_exeext conftest.$ac_ext
19183 LIBS=$ac_check_lib_save_LIBS
19184 fi
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19186 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19187 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19188
19189 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19190 HAVE_LIBSZ="yes"
19191 lib_name=HAVE_LIBSZ
19192
19193 cat >>confdefs.h <<_ACEOF
19194 #define $lib_name 1
19195 _ACEOF
19196
19197 LIBS="-lsz $LIBS"
19198
19199 else
19200
19201 LDFLAGS="$saved_LDFLAGS"
19202 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19203
19204 fi
19205
19206
19207 fi
19208
19209 lib_path=/usr/lib64
19210 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19211
19212 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19213 saved_LDFLAGS="$LDFLAGS"
19214
19215 if test -n "$lib_path"; then :
19216 LDFLAGS="$LDFLAGS -L$lib_path"
19217 fi
19218
19219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19220 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19221 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19222 $as_echo_n "(cached) " >&6
19223 else
19224 ac_check_lib_save_LIBS=$LIBS
19225 LIBS="-lsz $LIBS"
19226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19227 /* end confdefs.h. */
19228
19229 /* Override any GCC internal prototype to avoid an error.
19230 Use char because int might match the return type of a GCC
19231 builtin and then its argument prototype would still apply. */
19232 #ifdef __cplusplus
19233 extern "C"
19234 #endif
19235 char SZ_BufftoBuffCompress ();
19236 int
19237 main ()
19238 {
19239 return SZ_BufftoBuffCompress ();
19240 ;
19241 return 0;
19242 }
19243 _ACEOF
19244 if ac_fn_c_try_link "$LINENO"; then :
19245 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19246 else
19247 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19248 fi
19249 rm -f core conftest.err conftest.$ac_objext \
19250 conftest$ac_exeext conftest.$ac_ext
19251 LIBS=$ac_check_lib_save_LIBS
19252 fi
19253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19254 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19255 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19256
19257 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19258 HAVE_LIBSZ="yes"
19259 lib_name=HAVE_LIBSZ
19260
19261 cat >>confdefs.h <<_ACEOF
19262 #define $lib_name 1
19263 _ACEOF
19264
19265 LIBS="-lsz $LIBS"
19266
19267 else
19268
19269 LDFLAGS="$saved_LDFLAGS"
19270 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19271
19272 fi
19273
19274
19275 fi
19276
19277
19278
19279 elif ## if withval==yes We need to find szlib
19280 ##
19281 test "x$withval" == "xyes"; then :
19282
19283
19284
19285
19286 inc_path=
19287
19288 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
19289
19290 saved_CPPFLAGS="$CPPFLAGS"
19291 if test -n "$inc_path"; then :
19292 CPPFLAGS="$CPPFLAGS -I$inc_path"
19293 fi
19294
19295 unset ac_cv_header_szlib_h
19296 for ac_header in szlib.h
19297 do :
19298 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
19299 if test "x$ac_cv_header_szlib_h" = xyes; then :
19300 cat >>confdefs.h <<_ACEOF
19301 #define HAVE_SZLIB_H 1
19302 _ACEOF
19303
19304 else
19305
19306 CPPFLAGS="$saved_CPPFLAGS"
19307
19308 fi
19309
19310 done
19311
19312
19313 fi
19314
19315 inc_path=/usr/local/include
19316
19317 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
19318
19319 saved_CPPFLAGS="$CPPFLAGS"
19320 if test -n "$inc_path"; then :
19321 CPPFLAGS="$CPPFLAGS -I$inc_path"
19322 fi
19323
19324 unset ac_cv_header_szlib_h
19325 for ac_header in szlib.h
19326 do :
19327 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
19328 if test "x$ac_cv_header_szlib_h" = xyes; then :
19329 cat >>confdefs.h <<_ACEOF
19330 #define HAVE_SZLIB_H 1
19331 _ACEOF
19332
19333 else
19334
19335 CPPFLAGS="$saved_CPPFLAGS"
19336
19337 fi
19338
19339 done
19340
19341
19342 fi
19343
19344 inc_path=/opt/local/include
19345
19346 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
19347
19348 saved_CPPFLAGS="$CPPFLAGS"
19349 if test -n "$inc_path"; then :
19350 CPPFLAGS="$CPPFLAGS -I$inc_path"
19351 fi
19352
19353 unset ac_cv_header_szlib_h
19354 for ac_header in szlib.h
19355 do :
19356 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
19357 if test "x$ac_cv_header_szlib_h" = xyes; then :
19358 cat >>confdefs.h <<_ACEOF
19359 #define HAVE_SZLIB_H 1
19360 _ACEOF
19361
19362 else
19363
19364 CPPFLAGS="$saved_CPPFLAGS"
19365
19366 fi
19367
19368 done
19369
19370
19371 fi
19372
19373 inc_path=/opt/local/lib/libaec/include
19374
19375 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
19376
19377 saved_CPPFLAGS="$CPPFLAGS"
19378 if test -n "$inc_path"; then :
19379 CPPFLAGS="$CPPFLAGS -I$inc_path"
19380 fi
19381
19382 unset ac_cv_header_szlib_h
19383 for ac_header in szlib.h
19384 do :
19385 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
19386 if test "x$ac_cv_header_szlib_h" = xyes; then :
19387 cat >>confdefs.h <<_ACEOF
19388 #define HAVE_SZLIB_H 1
19389 _ACEOF
19390
19391 else
19392
19393 CPPFLAGS="$saved_CPPFLAGS"
19394
19395 fi
19396
19397 done
19398
19399
19400 fi
19401
19402
19403 if test "x$ac_cv_header_szlib_h" != "xyes"; then :
19404 as_fn_error $? "couldn't find szlib header" "$LINENO" 5
19405
19406 fi
19407
19408
19409
19410 lib_path=
19411 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19412
19413 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19414 saved_LDFLAGS="$LDFLAGS"
19415
19416 if test -n "$lib_path"; then :
19417 LDFLAGS="$LDFLAGS -L$lib_path"
19418 fi
19419
19420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19421 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19422 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19423 $as_echo_n "(cached) " >&6
19424 else
19425 ac_check_lib_save_LIBS=$LIBS
19426 LIBS="-lsz $LIBS"
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19429
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 char SZ_BufftoBuffCompress ();
19437 int
19438 main ()
19439 {
19440 return SZ_BufftoBuffCompress ();
19441 ;
19442 return 0;
19443 }
19444 _ACEOF
19445 if ac_fn_c_try_link "$LINENO"; then :
19446 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19447 else
19448 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19449 fi
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19453 fi
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19455 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19456 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19457
19458 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19459 HAVE_LIBSZ="yes"
19460 lib_name=HAVE_LIBSZ
19461
19462 cat >>confdefs.h <<_ACEOF
19463 #define $lib_name 1
19464 _ACEOF
19465
19466 LIBS="-lsz $LIBS"
19467
19468 else
19469
19470 LDFLAGS="$saved_LDFLAGS"
19471 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19472
19473 fi
19474
19475
19476 fi
19477
19478 lib_path=/usr/local/lib
19479 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19480
19481 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19482 saved_LDFLAGS="$LDFLAGS"
19483
19484 if test -n "$lib_path"; then :
19485 LDFLAGS="$LDFLAGS -L$lib_path"
19486 fi
19487
19488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19489 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19490 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19491 $as_echo_n "(cached) " >&6
19492 else
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lsz $LIBS"
19495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19496 /* end confdefs.h. */
19497
19498 /* Override any GCC internal prototype to avoid an error.
19499 Use char because int might match the return type of a GCC
19500 builtin and then its argument prototype would still apply. */
19501 #ifdef __cplusplus
19502 extern "C"
19503 #endif
19504 char SZ_BufftoBuffCompress ();
19505 int
19506 main ()
19507 {
19508 return SZ_BufftoBuffCompress ();
19509 ;
19510 return 0;
19511 }
19512 _ACEOF
19513 if ac_fn_c_try_link "$LINENO"; then :
19514 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19515 else
19516 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19517 fi
19518 rm -f core conftest.err conftest.$ac_objext \
19519 conftest$ac_exeext conftest.$ac_ext
19520 LIBS=$ac_check_lib_save_LIBS
19521 fi
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19523 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19524 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19525
19526 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19527 HAVE_LIBSZ="yes"
19528 lib_name=HAVE_LIBSZ
19529
19530 cat >>confdefs.h <<_ACEOF
19531 #define $lib_name 1
19532 _ACEOF
19533
19534 LIBS="-lsz $LIBS"
19535
19536 else
19537
19538 LDFLAGS="$saved_LDFLAGS"
19539 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19540
19541 fi
19542
19543
19544 fi
19545
19546 lib_path=/opt/local/lib
19547 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19548
19549 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19550 saved_LDFLAGS="$LDFLAGS"
19551
19552 if test -n "$lib_path"; then :
19553 LDFLAGS="$LDFLAGS -L$lib_path"
19554 fi
19555
19556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19557 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19558 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19559 $as_echo_n "(cached) " >&6
19560 else
19561 ac_check_lib_save_LIBS=$LIBS
19562 LIBS="-lsz $LIBS"
19563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19564 /* end confdefs.h. */
19565
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char SZ_BufftoBuffCompress ();
19573 int
19574 main ()
19575 {
19576 return SZ_BufftoBuffCompress ();
19577 ;
19578 return 0;
19579 }
19580 _ACEOF
19581 if ac_fn_c_try_link "$LINENO"; then :
19582 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19583 else
19584 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19585 fi
19586 rm -f core conftest.err conftest.$ac_objext \
19587 conftest$ac_exeext conftest.$ac_ext
19588 LIBS=$ac_check_lib_save_LIBS
19589 fi
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19591 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19592 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19593
19594 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19595 HAVE_LIBSZ="yes"
19596 lib_name=HAVE_LIBSZ
19597
19598 cat >>confdefs.h <<_ACEOF
19599 #define $lib_name 1
19600 _ACEOF
19601
19602 LIBS="-lsz $LIBS"
19603
19604 else
19605
19606 LDFLAGS="$saved_LDFLAGS"
19607 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19608
19609 fi
19610
19611
19612 fi
19613
19614 lib_path=/opt/local/lib/libaec/lib
19615 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19616
19617 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19618 saved_LDFLAGS="$LDFLAGS"
19619
19620 if test -n "$lib_path"; then :
19621 LDFLAGS="$LDFLAGS -L$lib_path"
19622 fi
19623
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19625 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19626 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19627 $as_echo_n "(cached) " >&6
19628 else
19629 ac_check_lib_save_LIBS=$LIBS
19630 LIBS="-lsz $LIBS"
19631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19632 /* end confdefs.h. */
19633
19634 /* Override any GCC internal prototype to avoid an error.
19635 Use char because int might match the return type of a GCC
19636 builtin and then its argument prototype would still apply. */
19637 #ifdef __cplusplus
19638 extern "C"
19639 #endif
19640 char SZ_BufftoBuffCompress ();
19641 int
19642 main ()
19643 {
19644 return SZ_BufftoBuffCompress ();
19645 ;
19646 return 0;
19647 }
19648 _ACEOF
19649 if ac_fn_c_try_link "$LINENO"; then :
19650 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19651 else
19652 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19653 fi
19654 rm -f core conftest.err conftest.$ac_objext \
19655 conftest$ac_exeext conftest.$ac_ext
19656 LIBS=$ac_check_lib_save_LIBS
19657 fi
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19659 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19660 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19661
19662 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19663 HAVE_LIBSZ="yes"
19664 lib_name=HAVE_LIBSZ
19665
19666 cat >>confdefs.h <<_ACEOF
19667 #define $lib_name 1
19668 _ACEOF
19669
19670 LIBS="-lsz $LIBS"
19671
19672 else
19673
19674 LDFLAGS="$saved_LDFLAGS"
19675 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19676
19677 fi
19678
19679
19680 fi
19681
19682 lib_path=/usr/lib64
19683 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" != "xyes"; then :
19684
19685 unset ac_cv_lib_sz_SZ_BufftoBuffCompress
19686 saved_LDFLAGS="$LDFLAGS"
19687
19688 if test -n "$lib_path"; then :
19689 LDFLAGS="$LDFLAGS -L$lib_path"
19690 fi
19691
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19693 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19694 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19695 $as_echo_n "(cached) " >&6
19696 else
19697 ac_check_lib_save_LIBS=$LIBS
19698 LIBS="-lsz $LIBS"
19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19700 /* end confdefs.h. */
19701
19702 /* Override any GCC internal prototype to avoid an error.
19703 Use char because int might match the return type of a GCC
19704 builtin and then its argument prototype would still apply. */
19705 #ifdef __cplusplus
19706 extern "C"
19707 #endif
19708 char SZ_BufftoBuffCompress ();
19709 int
19710 main ()
19711 {
19712 return SZ_BufftoBuffCompress ();
19713 ;
19714 return 0;
19715 }
19716 _ACEOF
19717 if ac_fn_c_try_link "$LINENO"; then :
19718 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19719 else
19720 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19721 fi
19722 rm -f core conftest.err conftest.$ac_objext \
19723 conftest$ac_exeext conftest.$ac_ext
19724 LIBS=$ac_check_lib_save_LIBS
19725 fi
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19727 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19728 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19729
19730 ac_cv_lib_sz_SZ_BufftoBuffCompress="yes"
19731 HAVE_LIBSZ="yes"
19732 lib_name=HAVE_LIBSZ
19733
19734 cat >>confdefs.h <<_ACEOF
19735 #define $lib_name 1
19736 _ACEOF
19737
19738 LIBS="-lsz $LIBS"
19739
19740 else
19741
19742 LDFLAGS="$saved_LDFLAGS"
19743 ac_cv_lib_sz_SZ_BufftoBuffCompress="no"
19744
19745 fi
19746
19747
19748 fi
19749
19750
19751 if test "x$HAVE_LIBSZ" != "xyes"; then :
19752 as_fn_error $? "couldn't find szlib library" "$LINENO" 5
19753
19754 fi
19755
19756 else
19757 ## Else
19758 ##
19759
19760 szlib_inc="`echo $withval |awk -F, '{print $1}'`"
19761 szlib_lib="`echo $withval |awk -F, '{print $2}'`"
19762 if test -z "$szlib_inc"; then :
19763
19764 # No options provided at all
19765
19766 else
19767
19768 # A single option provided - use it for both inc and lib, but add suffix
19769 if test -z "$szlib_lib"; then :
19770
19771 szlib_lib="$szlib_inc/lib"
19772 szlib_inc="$szlib_inc/include"
19773
19774 fi
19775 CPPFLAGS="$CPPFLAGS -I$szlib_inc"
19776 LDFLAGS="$LDFLAGS -L$szlib_lib"
19777
19778 fi
19779
19780 for ac_header in szlib.h
19781 do :
19782 ac_fn_c_check_header_mongrel "$LINENO" "szlib.h" "ac_cv_header_szlib_h" "$ac_includes_default"
19783 if test "x$ac_cv_header_szlib_h" = xyes; then :
19784 cat >>confdefs.h <<_ACEOF
19785 #define HAVE_SZLIB_H 1
19786 _ACEOF
19787
19788 else
19789
19790 as_fn_error $? "couldn't find szlib header file" "$LINENO" 5
19791
19792 fi
19793
19794 done
19795
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SZ_BufftoBuffCompress in -lsz" >&5
19797 $as_echo_n "checking for SZ_BufftoBuffCompress in -lsz... " >&6; }
19798 if ${ac_cv_lib_sz_SZ_BufftoBuffCompress+:} false; then :
19799 $as_echo_n "(cached) " >&6
19800 else
19801 ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lsz $LIBS"
19803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19804 /* end confdefs.h. */
19805
19806 /* Override any GCC internal prototype to avoid an error.
19807 Use char because int might match the return type of a GCC
19808 builtin and then its argument prototype would still apply. */
19809 #ifdef __cplusplus
19810 extern "C"
19811 #endif
19812 char SZ_BufftoBuffCompress ();
19813 int
19814 main ()
19815 {
19816 return SZ_BufftoBuffCompress ();
19817 ;
19818 return 0;
19819 }
19820 _ACEOF
19821 if ac_fn_c_try_link "$LINENO"; then :
19822 ac_cv_lib_sz_SZ_BufftoBuffCompress=yes
19823 else
19824 ac_cv_lib_sz_SZ_BufftoBuffCompress=no
19825 fi
19826 rm -f core conftest.err conftest.$ac_objext \
19827 conftest$ac_exeext conftest.$ac_ext
19828 LIBS=$ac_check_lib_save_LIBS
19829 fi
19830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sz_SZ_BufftoBuffCompress" >&5
19831 $as_echo "$ac_cv_lib_sz_SZ_BufftoBuffCompress" >&6; }
19832 if test "x$ac_cv_lib_sz_SZ_BufftoBuffCompress" = xyes; then :
19833 cat >>confdefs.h <<_ACEOF
19834 #define HAVE_LIBSZ 1
19835 _ACEOF
19836
19837 LIBS="-lsz $LIBS"
19838
19839 else
19840
19841 as_fn_error $? "couldn't find szlib library" "$LINENO" 5
19842
19843 fi
19844
19845
19846 HAVE_LIBSZ="yes"
19847
19848 fi
19849
19850
19851
19852 # If szlib is available, additional checks are required to determine the
19853 # available functionality. By default decoding is assumed. We are really just
19854 # interested in whether or not encoding is also enabled.
19855
19856 if test "x$HAVE_LIBSZ" == "xyes"; then :
19857
19858 # Check for encoding functionality
19859
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if szlib is functional" >&5
19861 $as_echo_n "checking if szlib is functional... " >&6; }
19862 if test "$cross_compiling" = yes; then :
19863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19865 as_fn_error $? "cannot run test program while cross compiling
19866 See \`config.log' for more details" "$LINENO" 5; }
19867 else
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19870
19871 #include <stddef.h>
19872 #include <szlib.h>
19873
19874 int main(void)
19875 {
19876 SZ_encoder_enabled();
19877 exit(0);
19878 }
19879
19880 _ACEOF
19881 if ac_fn_c_try_run "$LINENO"; then :
19882
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19884 $as_echo "yes" >&6; }
19885
19886 else
19887
19888 as_fn_error $? "szlib is not functional" "$LINENO" 5
19889
19890 fi
19891 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19892 conftest.$ac_objext conftest.beam conftest.$ac_ext
19893 fi
19894
19895
19896 $as_echo "#define HAVE_FILTER_SZIP 1" >>confdefs.h
19897
19898
19899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking szlib encoding" >&5
19900 $as_echo_n "checking szlib encoding... " >&6; }
19901 if test "$cross_compiling" = yes; then :
19902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19904 as_fn_error $? "cannot run test program while cross compiling
19905 See \`config.log' for more details" "$LINENO" 5; }
19906 else
19907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19908 /* end confdefs.h. */
19909
19910 #include <stddef.h>
19911 #include <szlib.h>
19912
19913 int main(void)
19914 {
19915 /* SZ_encoder_enabled returns 1 if encoder is present */
19916 if(SZ_encoder_enabled() == 1)
19917 exit(0);
19918 else
19919 exit(1);
19920 }
19921
19922 _ACEOF
19923 if ac_fn_c_try_run "$LINENO"; then :
19924
19925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19926 $as_echo "yes" >&6; }
19927
19928 $as_echo "#define HAVE_FILTER_SZIP_ENCODER 1" >>confdefs.h
19929
19930 USE_SZIP_ENCODER="yes"
19931
19932 else
19933
19934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19935 $as_echo "no" >&6; }
19936
19937 fi
19938 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19939 conftest.$ac_objext conftest.beam conftest.$ac_ext
19940 fi
19941
19942
19943 fi
19944
19945
19946
19947 ###################################
19948 # Check for HDF5 library
19949 ###################################
19950
19951 # Note that this is a required component - we cannot build HDF-EOS5 without it
19952
19953
19954 # Check whether --with-hdf5 was given.
19955 if test "${with_hdf5+set}" = set; then :
19956 withval=$with_hdf5;
19957 else
19958 withval=yes
19959 fi
19960
19961
19962
19963 if test "x$withval" == "xno"; then :
19964
19965 as_fn_error $? "HDF5 is a required dependency." "$LINENO" 5
19966
19967 elif # No options, so we must try and find the HDF4 library
19968
19969 test "x$withval" == "xyes"; then :
19970
19971 # Test some library locations to see if we can find the HDF libraries
19972
19973
19974
19975 lib_path=
19976 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
19977
19978 unset ac_cv_lib_hdf5_H5Fcreate
19979 saved_LDFLAGS="$LDFLAGS"
19980
19981 if test -n "$lib_path"; then :
19982 LDFLAGS="$LDFLAGS -L$lib_path"
19983 fi
19984
19985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
19986 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
19987 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
19988 $as_echo_n "(cached) " >&6
19989 else
19990 ac_check_lib_save_LIBS=$LIBS
19991 LIBS="-lhdf5 $LIBS"
19992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19993 /* end confdefs.h. */
19994
19995 /* Override any GCC internal prototype to avoid an error.
19996 Use char because int might match the return type of a GCC
19997 builtin and then its argument prototype would still apply. */
19998 #ifdef __cplusplus
19999 extern "C"
20000 #endif
20001 char H5Fcreate ();
20002 int
20003 main ()
20004 {
20005 return H5Fcreate ();
20006 ;
20007 return 0;
20008 }
20009 _ACEOF
20010 if ac_fn_c_try_link "$LINENO"; then :
20011 ac_cv_lib_hdf5_H5Fcreate=yes
20012 else
20013 ac_cv_lib_hdf5_H5Fcreate=no
20014 fi
20015 rm -f core conftest.err conftest.$ac_objext \
20016 conftest$ac_exeext conftest.$ac_ext
20017 LIBS=$ac_check_lib_save_LIBS
20018 fi
20019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20020 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20021 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20022
20023 ac_cv_lib_hdf5_H5Fcreate="yes"
20024 HAVE_LIBHDF5="yes"
20025 lib_name=HAVE_LIBHDF5
20026
20027 cat >>confdefs.h <<_ACEOF
20028 #define $lib_name 1
20029 _ACEOF
20030
20031 LIBS="-lhdf5 $LIBS"
20032
20033 else
20034
20035 LDFLAGS="$saved_LDFLAGS"
20036 ac_cv_lib_hdf5_H5Fcreate="no"
20037
20038 fi
20039
20040
20041 fi
20042
20043 lib_path=/usr/local/lib
20044 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20045
20046 unset ac_cv_lib_hdf5_H5Fcreate
20047 saved_LDFLAGS="$LDFLAGS"
20048
20049 if test -n "$lib_path"; then :
20050 LDFLAGS="$LDFLAGS -L$lib_path"
20051 fi
20052
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20054 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20055 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20056 $as_echo_n "(cached) " >&6
20057 else
20058 ac_check_lib_save_LIBS=$LIBS
20059 LIBS="-lhdf5 $LIBS"
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20062
20063 /* Override any GCC internal prototype to avoid an error.
20064 Use char because int might match the return type of a GCC
20065 builtin and then its argument prototype would still apply. */
20066 #ifdef __cplusplus
20067 extern "C"
20068 #endif
20069 char H5Fcreate ();
20070 int
20071 main ()
20072 {
20073 return H5Fcreate ();
20074 ;
20075 return 0;
20076 }
20077 _ACEOF
20078 if ac_fn_c_try_link "$LINENO"; then :
20079 ac_cv_lib_hdf5_H5Fcreate=yes
20080 else
20081 ac_cv_lib_hdf5_H5Fcreate=no
20082 fi
20083 rm -f core conftest.err conftest.$ac_objext \
20084 conftest$ac_exeext conftest.$ac_ext
20085 LIBS=$ac_check_lib_save_LIBS
20086 fi
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20088 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20089 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20090
20091 ac_cv_lib_hdf5_H5Fcreate="yes"
20092 HAVE_LIBHDF5="yes"
20093 lib_name=HAVE_LIBHDF5
20094
20095 cat >>confdefs.h <<_ACEOF
20096 #define $lib_name 1
20097 _ACEOF
20098
20099 LIBS="-lhdf5 $LIBS"
20100
20101 else
20102
20103 LDFLAGS="$saved_LDFLAGS"
20104 ac_cv_lib_hdf5_H5Fcreate="no"
20105
20106 fi
20107
20108
20109 fi
20110
20111 lib_path=/opt/local/lib
20112 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20113
20114 unset ac_cv_lib_hdf5_H5Fcreate
20115 saved_LDFLAGS="$LDFLAGS"
20116
20117 if test -n "$lib_path"; then :
20118 LDFLAGS="$LDFLAGS -L$lib_path"
20119 fi
20120
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20122 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20123 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lhdf5 $LIBS"
20128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20129 /* end confdefs.h. */
20130
20131 /* Override any GCC internal prototype to avoid an error.
20132 Use char because int might match the return type of a GCC
20133 builtin and then its argument prototype would still apply. */
20134 #ifdef __cplusplus
20135 extern "C"
20136 #endif
20137 char H5Fcreate ();
20138 int
20139 main ()
20140 {
20141 return H5Fcreate ();
20142 ;
20143 return 0;
20144 }
20145 _ACEOF
20146 if ac_fn_c_try_link "$LINENO"; then :
20147 ac_cv_lib_hdf5_H5Fcreate=yes
20148 else
20149 ac_cv_lib_hdf5_H5Fcreate=no
20150 fi
20151 rm -f core conftest.err conftest.$ac_objext \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20156 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20157 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20158
20159 ac_cv_lib_hdf5_H5Fcreate="yes"
20160 HAVE_LIBHDF5="yes"
20161 lib_name=HAVE_LIBHDF5
20162
20163 cat >>confdefs.h <<_ACEOF
20164 #define $lib_name 1
20165 _ACEOF
20166
20167 LIBS="-lhdf5 $LIBS"
20168
20169 else
20170
20171 LDFLAGS="$saved_LDFLAGS"
20172 ac_cv_lib_hdf5_H5Fcreate="no"
20173
20174 fi
20175
20176
20177 fi
20178
20179 lib_path=/usr/lib64
20180 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20181
20182 unset ac_cv_lib_hdf5_H5Fcreate
20183 saved_LDFLAGS="$LDFLAGS"
20184
20185 if test -n "$lib_path"; then :
20186 LDFLAGS="$LDFLAGS -L$lib_path"
20187 fi
20188
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20190 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20191 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20192 $as_echo_n "(cached) " >&6
20193 else
20194 ac_check_lib_save_LIBS=$LIBS
20195 LIBS="-lhdf5 $LIBS"
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h. */
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200 Use char because int might match the return type of a GCC
20201 builtin and then its argument prototype would still apply. */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char H5Fcreate ();
20206 int
20207 main ()
20208 {
20209 return H5Fcreate ();
20210 ;
20211 return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215 ac_cv_lib_hdf5_H5Fcreate=yes
20216 else
20217 ac_cv_lib_hdf5_H5Fcreate=no
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext \
20220 conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20222 fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20224 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20225 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20226
20227 ac_cv_lib_hdf5_H5Fcreate="yes"
20228 HAVE_LIBHDF5="yes"
20229 lib_name=HAVE_LIBHDF5
20230
20231 cat >>confdefs.h <<_ACEOF
20232 #define $lib_name 1
20233 _ACEOF
20234
20235 LIBS="-lhdf5 $LIBS"
20236
20237 else
20238
20239 LDFLAGS="$saved_LDFLAGS"
20240 ac_cv_lib_hdf5_H5Fcreate="no"
20241
20242 fi
20243
20244
20245 fi
20246
20247 lib_path=/usr/lib/x86_64-linux-gnu/hdf5/serial
20248 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20249
20250 unset ac_cv_lib_hdf5_H5Fcreate
20251 saved_LDFLAGS="$LDFLAGS"
20252
20253 if test -n "$lib_path"; then :
20254 LDFLAGS="$LDFLAGS -L$lib_path"
20255 fi
20256
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20258 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20259 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20260 $as_echo_n "(cached) " >&6
20261 else
20262 ac_check_lib_save_LIBS=$LIBS
20263 LIBS="-lhdf5 $LIBS"
20264 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265 /* end confdefs.h. */
20266
20267 /* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20270 #ifdef __cplusplus
20271 extern "C"
20272 #endif
20273 char H5Fcreate ();
20274 int
20275 main ()
20276 {
20277 return H5Fcreate ();
20278 ;
20279 return 0;
20280 }
20281 _ACEOF
20282 if ac_fn_c_try_link "$LINENO"; then :
20283 ac_cv_lib_hdf5_H5Fcreate=yes
20284 else
20285 ac_cv_lib_hdf5_H5Fcreate=no
20286 fi
20287 rm -f core conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20289 LIBS=$ac_check_lib_save_LIBS
20290 fi
20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20292 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20293 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20294
20295 ac_cv_lib_hdf5_H5Fcreate="yes"
20296 HAVE_LIBHDF5="yes"
20297 lib_name=HAVE_LIBHDF5
20298
20299 cat >>confdefs.h <<_ACEOF
20300 #define $lib_name 1
20301 _ACEOF
20302
20303 LIBS="-lhdf5 $LIBS"
20304
20305 else
20306
20307 LDFLAGS="$saved_LDFLAGS"
20308 ac_cv_lib_hdf5_H5Fcreate="no"
20309
20310 fi
20311
20312
20313 fi
20314
20315
20316
20317 # Check to see if we can find the HDF5 header file
20318
20319
20320
20321 inc_path=
20322
20323 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20324
20325 saved_CPPFLAGS="$CPPFLAGS"
20326 if test -n "$inc_path"; then :
20327 CPPFLAGS="$CPPFLAGS -I$inc_path"
20328 fi
20329
20330 unset ac_cv_header_hdf5_h
20331 for ac_header in hdf5.h
20332 do :
20333 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20334 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20335 cat >>confdefs.h <<_ACEOF
20336 #define HAVE_HDF5_H 1
20337 _ACEOF
20338
20339 else
20340
20341 CPPFLAGS="$saved_CPPFLAGS"
20342
20343 fi
20344
20345 done
20346
20347
20348 fi
20349
20350 inc_path=/usr/local/include
20351
20352 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20353
20354 saved_CPPFLAGS="$CPPFLAGS"
20355 if test -n "$inc_path"; then :
20356 CPPFLAGS="$CPPFLAGS -I$inc_path"
20357 fi
20358
20359 unset ac_cv_header_hdf5_h
20360 for ac_header in hdf5.h
20361 do :
20362 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20363 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20364 cat >>confdefs.h <<_ACEOF
20365 #define HAVE_HDF5_H 1
20366 _ACEOF
20367
20368 else
20369
20370 CPPFLAGS="$saved_CPPFLAGS"
20371
20372 fi
20373
20374 done
20375
20376
20377 fi
20378
20379 inc_path=/opt/local/include
20380
20381 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20382
20383 saved_CPPFLAGS="$CPPFLAGS"
20384 if test -n "$inc_path"; then :
20385 CPPFLAGS="$CPPFLAGS -I$inc_path"
20386 fi
20387
20388 unset ac_cv_header_hdf5_h
20389 for ac_header in hdf5.h
20390 do :
20391 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20392 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20393 cat >>confdefs.h <<_ACEOF
20394 #define HAVE_HDF5_H 1
20395 _ACEOF
20396
20397 else
20398
20399 CPPFLAGS="$saved_CPPFLAGS"
20400
20401 fi
20402
20403 done
20404
20405
20406 fi
20407
20408 inc_path=/usr/include/hdf5/serial
20409
20410 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20411
20412 saved_CPPFLAGS="$CPPFLAGS"
20413 if test -n "$inc_path"; then :
20414 CPPFLAGS="$CPPFLAGS -I$inc_path"
20415 fi
20416
20417 unset ac_cv_header_hdf5_h
20418 for ac_header in hdf5.h
20419 do :
20420 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20421 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20422 cat >>confdefs.h <<_ACEOF
20423 #define HAVE_HDF5_H 1
20424 _ACEOF
20425
20426 else
20427
20428 CPPFLAGS="$saved_CPPFLAGS"
20429
20430 fi
20431
20432 done
20433
20434
20435 fi
20436
20437
20438
20439 else
20440 # A user specified directory (one or two)
20441
20442
20443 hdf5_inc="`echo $withval |awk -F, '{print $1}'`"
20444 hdf5_lib="`echo $withval |awk -F, '{print $2}'`"
20445 if test -z "$hdf5_lib"; then :
20446
20447 hdf5_lib="$hdf5_inc/lib"
20448 hdf5_inc="$hdf5_inc/include"
20449
20450 fi
20451
20452
20453
20454 lib_path=
20455 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20456
20457 unset ac_cv_lib_hdf5_H5Fcreate
20458 saved_LDFLAGS="$LDFLAGS"
20459
20460 if test -n "$lib_path"; then :
20461 LDFLAGS="$LDFLAGS -L$lib_path"
20462 fi
20463
20464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20465 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20466 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20467 $as_echo_n "(cached) " >&6
20468 else
20469 ac_check_lib_save_LIBS=$LIBS
20470 LIBS="-lhdf5 $LIBS"
20471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20472 /* end confdefs.h. */
20473
20474 /* Override any GCC internal prototype to avoid an error.
20475 Use char because int might match the return type of a GCC
20476 builtin and then its argument prototype would still apply. */
20477 #ifdef __cplusplus
20478 extern "C"
20479 #endif
20480 char H5Fcreate ();
20481 int
20482 main ()
20483 {
20484 return H5Fcreate ();
20485 ;
20486 return 0;
20487 }
20488 _ACEOF
20489 if ac_fn_c_try_link "$LINENO"; then :
20490 ac_cv_lib_hdf5_H5Fcreate=yes
20491 else
20492 ac_cv_lib_hdf5_H5Fcreate=no
20493 fi
20494 rm -f core conftest.err conftest.$ac_objext \
20495 conftest$ac_exeext conftest.$ac_ext
20496 LIBS=$ac_check_lib_save_LIBS
20497 fi
20498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20499 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20500 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20501
20502 ac_cv_lib_hdf5_H5Fcreate="yes"
20503 HAVE_LIBHDF5="yes"
20504 lib_name=HAVE_LIBHDF5
20505
20506 cat >>confdefs.h <<_ACEOF
20507 #define $lib_name 1
20508 _ACEOF
20509
20510 LIBS="-lhdf5 $LIBS"
20511
20512 else
20513
20514 LDFLAGS="$saved_LDFLAGS"
20515 ac_cv_lib_hdf5_H5Fcreate="no"
20516
20517 fi
20518
20519
20520 fi
20521
20522 lib_path=$hdf5_lib
20523 if test "x$ac_cv_lib_hdf5_H5Fcreate" != "xyes"; then :
20524
20525 unset ac_cv_lib_hdf5_H5Fcreate
20526 saved_LDFLAGS="$LDFLAGS"
20527
20528 if test -n "$lib_path"; then :
20529 LDFLAGS="$LDFLAGS -L$lib_path"
20530 fi
20531
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5Fcreate in -lhdf5" >&5
20533 $as_echo_n "checking for H5Fcreate in -lhdf5... " >&6; }
20534 if ${ac_cv_lib_hdf5_H5Fcreate+:} false; then :
20535 $as_echo_n "(cached) " >&6
20536 else
20537 ac_check_lib_save_LIBS=$LIBS
20538 LIBS="-lhdf5 $LIBS"
20539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20540 /* end confdefs.h. */
20541
20542 /* Override any GCC internal prototype to avoid an error.
20543 Use char because int might match the return type of a GCC
20544 builtin and then its argument prototype would still apply. */
20545 #ifdef __cplusplus
20546 extern "C"
20547 #endif
20548 char H5Fcreate ();
20549 int
20550 main ()
20551 {
20552 return H5Fcreate ();
20553 ;
20554 return 0;
20555 }
20556 _ACEOF
20557 if ac_fn_c_try_link "$LINENO"; then :
20558 ac_cv_lib_hdf5_H5Fcreate=yes
20559 else
20560 ac_cv_lib_hdf5_H5Fcreate=no
20561 fi
20562 rm -f core conftest.err conftest.$ac_objext \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20565 fi
20566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_H5Fcreate" >&5
20567 $as_echo "$ac_cv_lib_hdf5_H5Fcreate" >&6; }
20568 if test "x$ac_cv_lib_hdf5_H5Fcreate" = xyes; then :
20569
20570 ac_cv_lib_hdf5_H5Fcreate="yes"
20571 HAVE_LIBHDF5="yes"
20572 lib_name=HAVE_LIBHDF5
20573
20574 cat >>confdefs.h <<_ACEOF
20575 #define $lib_name 1
20576 _ACEOF
20577
20578 LIBS="-lhdf5 $LIBS"
20579
20580 else
20581
20582 LDFLAGS="$saved_LDFLAGS"
20583 ac_cv_lib_hdf5_H5Fcreate="no"
20584
20585 fi
20586
20587
20588 fi
20589
20590
20591
20592
20593 inc_path=
20594
20595 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20596
20597 saved_CPPFLAGS="$CPPFLAGS"
20598 if test -n "$inc_path"; then :
20599 CPPFLAGS="$CPPFLAGS -I$inc_path"
20600 fi
20601
20602 unset ac_cv_header_hdf5_h
20603 for ac_header in hdf5.h
20604 do :
20605 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20606 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20607 cat >>confdefs.h <<_ACEOF
20608 #define HAVE_HDF5_H 1
20609 _ACEOF
20610
20611 else
20612
20613 CPPFLAGS="$saved_CPPFLAGS"
20614
20615 fi
20616
20617 done
20618
20619
20620 fi
20621
20622 inc_path=$hdf5_inc
20623
20624 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20625
20626 saved_CPPFLAGS="$CPPFLAGS"
20627 if test -n "$inc_path"; then :
20628 CPPFLAGS="$CPPFLAGS -I$inc_path"
20629 fi
20630
20631 unset ac_cv_header_hdf5_h
20632 for ac_header in hdf5.h
20633 do :
20634 ac_fn_c_check_header_mongrel "$LINENO" "hdf5.h" "ac_cv_header_hdf5_h" "$ac_includes_default"
20635 if test "x$ac_cv_header_hdf5_h" = xyes; then :
20636 cat >>confdefs.h <<_ACEOF
20637 #define HAVE_HDF5_H 1
20638 _ACEOF
20639
20640 else
20641
20642 CPPFLAGS="$saved_CPPFLAGS"
20643
20644 fi
20645
20646 done
20647
20648
20649 fi
20650
20651
20652
20653 fi
20654
20655 # Verify presence of all required headers and libraries
20656
20657 if test -z "$HAVE_LIBHDF5"; then :
20658 as_fn_error $? "unable to find HDF5 library" "$LINENO" 5
20659
20660 fi
20661 if test "x$ac_cv_header_hdf5_h" != "xyes"; then :
20662 as_fn_error $? "couldn't find HDF5 library header files" "$LINENO" 5
20663
20664 fi
20665
20666
20667 ###################################
20668 # Check for High Level HDF5 lib
20669 ###################################
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for H5DSset_label in -lhdf5_hl" >&5
20671 $as_echo_n "checking for H5DSset_label in -lhdf5_hl... " >&6; }
20672 if ${ac_cv_lib_hdf5_hl_H5DSset_label+:} false; then :
20673 $as_echo_n "(cached) " >&6
20674 else
20675 ac_check_lib_save_LIBS=$LIBS
20676 LIBS="-lhdf5_hl $LIBS"
20677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20678 /* end confdefs.h. */
20679
20680 /* Override any GCC internal prototype to avoid an error.
20681 Use char because int might match the return type of a GCC
20682 builtin and then its argument prototype would still apply. */
20683 #ifdef __cplusplus
20684 extern "C"
20685 #endif
20686 char H5DSset_label ();
20687 int
20688 main ()
20689 {
20690 return H5DSset_label ();
20691 ;
20692 return 0;
20693 }
20694 _ACEOF
20695 if ac_fn_c_try_link "$LINENO"; then :
20696 ac_cv_lib_hdf5_hl_H5DSset_label=yes
20697 else
20698 ac_cv_lib_hdf5_hl_H5DSset_label=no
20699 fi
20700 rm -f core conftest.err conftest.$ac_objext \
20701 conftest$ac_exeext conftest.$ac_ext
20702 LIBS=$ac_check_lib_save_LIBS
20703 fi
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hdf5_hl_H5DSset_label" >&5
20705 $as_echo "$ac_cv_lib_hdf5_hl_H5DSset_label" >&6; }
20706 if test "x$ac_cv_lib_hdf5_hl_H5DSset_label" = xyes; then :
20707 cat >>confdefs.h <<_ACEOF
20708 #define HAVE_LIBHDF5_HL 1
20709 _ACEOF
20710
20711 LIBS="-lhdf5_hl $LIBS"
20712
20713 fi
20714
20715
20716
20717
20718 ###################################
20719 # Check for thread safety in
20720 # HDF5 library
20721 ###################################
20722
20723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if HDF5 threadsafe mode is enabled" >&5
20724 $as_echo_n "checking if HDF5 threadsafe mode is enabled... " >&6; }
20725 if test "$cross_compiling" = yes; then :
20726 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20727 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20728 as_fn_error $? "cannot run test program while cross compiling
20729 See \`config.log' for more details" "$LINENO" 5; }
20730 else
20731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20732 /* end confdefs.h. */
20733
20734 #include <hdf5.h>
20735
20736 int
20737 main ()
20738 {
20739
20740 #ifdef H5_HAVE_THREADSAFE
20741 return 0;
20742 #else
20743 return 1;
20744 #endif
20745
20746 ;
20747 return 0;
20748 }
20749
20750 _ACEOF
20751 if ac_fn_c_try_run "$LINENO"; then :
20752
20753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20754 $as_echo "yes" >&6; }
20755 HDF5_THREADSAFE="yes"
20756 if test "x$ac_cv_lib_pthread_pthread_create" == "xno"; then :
20757
20758 as_fn_error $? "HDF5 is multi-threaded, but no threading library found" "$LINENO" 5
20759
20760 fi
20761
20762 else
20763
20764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20765 $as_echo "no" >&6; }
20766 HDF5_THREADSAFE="no"
20767
20768 fi
20769 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20770 conftest.$ac_objext conftest.beam conftest.$ac_ext
20771 fi
20772
20773
20774 # Record threadsafe status in config.h and for Makefiles
20775
20776 if test "x$HDF5_THREADSAFE" = "xyes"; then
20777
20778 $as_echo "#define _HDFEOS5_THREADSAFE 1" >>confdefs.h
20779
20780 fi
20781 if test "x$HDF5_THREADSAFE" = "xyes"; then
20782 HDF5_THREADSAFE_TRUE=
20783 HDF5_THREADSAFE_FALSE='#'
20784 else
20785 HDF5_THREADSAFE_TRUE='#'
20786 HDF5_THREADSAFE_FALSE=
20787 fi
20788
20789
20790
20791 ###################################
20792 # Check for H5free_memory in
20793 # HDF5 library
20794 ###################################
20795 for ac_func in H5free_memory
20796 do :
20797 ac_fn_c_check_func "$LINENO" "H5free_memory" "ac_cv_func_H5free_memory"
20798 if test "x$ac_cv_func_H5free_memory" = xyes; then :
20799 cat >>confdefs.h <<_ACEOF
20800 #define HAVE_H5FREE_MEMORY 1
20801 _ACEOF
20802
20803 fi
20804 done
20805
20806
20807 ###################################
20808 # Check for SZIP in HDF5 library
20809 ###################################
20810
20811 # At this point, we know we can link against hdf5.
20812
20813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hdf5 szip decoding filter" >&5
20814 $as_echo_n "checking for hdf5 szip decoding filter... " >&6; }
20815 if test "$cross_compiling" = yes; then :
20816 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20817 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20818 as_fn_error $? "cannot run test program while cross compiling
20819 See \`config.log' for more details" "$LINENO" 5; }
20820 else
20821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20823
20824 #include <H5Ipublic.h>
20825 #include <H5Zpublic.h>
20826
20827 int
20828 main ()
20829 {
20830
20831 herr_t ret;
20832 unsigned int flags = 0;
20833 int decoder = 0;
20834
20835 ret = H5Zget_filter_info(H5Z_FILTER_SZIP, &flags);
20836 if (ret < 0) exit(1);
20837 decoder = flags & H5Z_FILTER_CONFIG_DECODE_ENABLED;
20838 if (decoder)
20839 exit(0);
20840 else
20841 exit(1);
20842
20843 ;
20844 return 0;
20845 }
20846
20847 _ACEOF
20848 if ac_fn_c_try_run "$LINENO"; then :
20849
20850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20851 $as_echo "yes" >&6; }
20852
20853 # HDF5 supports decoding. We have to make sure szlib is included. In the case
20854 # of static library linkage, this would already have been verified (the program
20855 # wouldn't run), but shared object libraries might use lazy resolution, so we
20856 # verify
20857 if test "x$HAVE_LIBSZ" != "xyes"; then :
20858
20859 as_fn_error $? "HDF5 requires SZIP, please use --with-szlib" "$LINENO" 5
20860
20861 fi
20862
20863
20864 $as_echo "#define HAVE_HDF5_SZIP_DECODER 1" >>confdefs.h
20865
20866
20867 $as_echo "#define H5_HAVE_FILTER_SZIP 1" >>confdefs.h
20868
20869
20870 else
20871
20872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20873 $as_echo "no" >&6; }
20874
20875 fi
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20877 conftest.$ac_objext conftest.beam conftest.$ac_ext
20878 fi
20879
20880
20881
20882
20883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hdf5 szip encoding support" >&5
20884 $as_echo_n "checking for hdf5 szip encoding support... " >&6; }
20885 if test "$cross_compiling" = yes; then :
20886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20887 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20888 as_fn_error $? "cannot run test program while cross compiling
20889 See \`config.log' for more details" "$LINENO" 5; }
20890 else
20891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20892 /* end confdefs.h. */
20893
20894 #include <H5Ipublic.h>
20895 #include <H5Zpublic.h>
20896
20897 int
20898 main ()
20899 {
20900
20901 herr_t ret;
20902 unsigned int flags = 0;
20903 int encoder = 0;
20904
20905 ret = H5Zget_filter_info(H5Z_FILTER_SZIP, &flags);
20906 if (ret < 0) exit(1);
20907 encoder = flags & H5Z_FILTER_CONFIG_ENCODE_ENABLED;
20908 if (encoder)
20909 exit(0);
20910 else
20911 exit(1);
20912
20913 ;
20914 return 0;
20915 }
20916
20917 _ACEOF
20918 if ac_fn_c_try_run "$LINENO"; then :
20919
20920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20921 $as_echo "yes" >&6; }
20922 if test "x$USE_SZIP_ENCODER" != "xyes"; then :
20923
20924 as_fn_error $? "HDF5 requires SZIP with encoding support" "$LINENO" 5
20925
20926 fi
20927
20928 $as_echo "#define HAVE_HDF5_SZIP_ENCODER 1" >>confdefs.h
20929
20930
20931 else
20932
20933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20934 $as_echo "no" >&6; }
20935
20936 fi
20937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20938 conftest.$ac_objext conftest.beam conftest.$ac_ext
20939 fi
20940
20941
20942
20943
20944 ###################################
20945 # Enable/disable installation of
20946 # GCTP headers (usually not needed)
20947 ###################################
20948 # Check whether --enable-gctp-include was given.
20949 if test "${enable_gctp_include+set}" = set; then :
20950 enableval=$enable_gctp_include;
20951 fi
20952
20953
20954 if test "x$enable_gctp_include" == "xyes"; then
20955 GCTP_INCLUDE_CONDITIONAL_TRUE=
20956 GCTP_INCLUDE_CONDITIONAL_FALSE='#'
20957 else
20958 GCTP_INCLUDE_CONDITIONAL_TRUE='#'
20959 GCTP_INCLUDE_CONDITIONAL_FALSE=
20960 fi
20961
20962
20963
20964
20965
20966
20967 ###################################
20968 # Miscellaneous checks
20969 ###################################
20970
20971 CFLAGS=$CFLAGS
20972
20973 # Checks for programs.
20974 ac_ext=c
20975 ac_cpp='$CPP $CPPFLAGS'
20976 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20977 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20978 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20979 if test -n "$ac_tool_prefix"; then
20980 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
20981 set dummy ${ac_tool_prefix}gcc; ac_word=$2
20982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20983 $as_echo_n "checking for $ac_word... " >&6; }
20984 if ${ac_cv_prog_CC+:} false; then :
20985 $as_echo_n "(cached) " >&6
20986 else
20987 if test -n "$CC"; then
20988 ac_cv_prog_CC="$CC" # Let the user override the test.
20989 else
20990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20991 for as_dir in $PATH
20992 do
20993 IFS=$as_save_IFS
20994 test -z "$as_dir" && as_dir=.
20995 for ac_exec_ext in '' $ac_executable_extensions; do
20996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20997 ac_cv_prog_CC="${ac_tool_prefix}gcc"
20998 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20999 break 2
21000 fi
21001 done
21002 done
21003 IFS=$as_save_IFS
21004
21005 fi
21006 fi
21007 CC=$ac_cv_prog_CC
21008 if test -n "$CC"; then
21009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
21010 $as_echo "$CC" >&6; }
21011 else
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21013 $as_echo "no" >&6; }
21014 fi
21015
21016
21017 fi
21018 if test -z "$ac_cv_prog_CC"; then
21019 ac_ct_CC=$CC
21020 # Extract the first word of "gcc", so it can be a program name with args.
21021 set dummy gcc; ac_word=$2
21022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21023 $as_echo_n "checking for $ac_word... " >&6; }
21024 if ${ac_cv_prog_ac_ct_CC+:} false; then :
21025 $as_echo_n "(cached) " >&6
21026 else
21027 if test -n "$ac_ct_CC"; then
21028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21029 else
21030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21031 for as_dir in $PATH
21032 do
21033 IFS=$as_save_IFS
21034 test -z "$as_dir" && as_dir=.
21035 for ac_exec_ext in '' $ac_executable_extensions; do
21036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21037 ac_cv_prog_ac_ct_CC="gcc"
21038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21039 break 2
21040 fi
21041 done
21042 done
21043 IFS=$as_save_IFS
21044
21045 fi
21046 fi
21047 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21048 if test -n "$ac_ct_CC"; then
21049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
21050 $as_echo "$ac_ct_CC" >&6; }
21051 else
21052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21053 $as_echo "no" >&6; }
21054 fi
21055
21056 if test "x$ac_ct_CC" = x; then
21057 CC=""
21058 else
21059 case $cross_compiling:$ac_tool_warned in
21060 yes:)
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21062 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21063 ac_tool_warned=yes ;;
21064 esac
21065 CC=$ac_ct_CC
21066 fi
21067 else
21068 CC="$ac_cv_prog_CC"
21069 fi
21070
21071 if test -z "$CC"; then
21072 if test -n "$ac_tool_prefix"; then
21073 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
21074 set dummy ${ac_tool_prefix}cc; ac_word=$2
21075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21076 $as_echo_n "checking for $ac_word... " >&6; }
21077 if ${ac_cv_prog_CC+:} false; then :
21078 $as_echo_n "(cached) " >&6
21079 else
21080 if test -n "$CC"; then
21081 ac_cv_prog_CC="$CC" # Let the user override the test.
21082 else
21083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21084 for as_dir in $PATH
21085 do
21086 IFS=$as_save_IFS
21087 test -z "$as_dir" && as_dir=.
21088 for ac_exec_ext in '' $ac_executable_extensions; do
21089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21090 ac_cv_prog_CC="${ac_tool_prefix}cc"
21091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21092 break 2
21093 fi
21094 done
21095 done
21096 IFS=$as_save_IFS
21097
21098 fi
21099 fi
21100 CC=$ac_cv_prog_CC
21101 if test -n "$CC"; then
21102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
21103 $as_echo "$CC" >&6; }
21104 else
21105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21106 $as_echo "no" >&6; }
21107 fi
21108
21109
21110 fi
21111 fi
21112 if test -z "$CC"; then
21113 # Extract the first word of "cc", so it can be a program name with args.
21114 set dummy cc; ac_word=$2
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21116 $as_echo_n "checking for $ac_word... " >&6; }
21117 if ${ac_cv_prog_CC+:} false; then :
21118 $as_echo_n "(cached) " >&6
21119 else
21120 if test -n "$CC"; then
21121 ac_cv_prog_CC="$CC" # Let the user override the test.
21122 else
21123 ac_prog_rejected=no
21124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21125 for as_dir in $PATH
21126 do
21127 IFS=$as_save_IFS
21128 test -z "$as_dir" && as_dir=.
21129 for ac_exec_ext in '' $ac_executable_extensions; do
21130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21131 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
21132 ac_prog_rejected=yes
21133 continue
21134 fi
21135 ac_cv_prog_CC="cc"
21136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21137 break 2
21138 fi
21139 done
21140 done
21141 IFS=$as_save_IFS
21142
21143 if test $ac_prog_rejected = yes; then
21144 # We found a bogon in the path, so make sure we never use it.
21145 set dummy $ac_cv_prog_CC
21146 shift
21147 if test $# != 0; then
21148 # We chose a different compiler from the bogus one.
21149 # However, it has the same basename, so the bogon will be chosen
21150 # first if we set CC to just the basename; use the full file name.
21151 shift
21152 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
21153 fi
21154 fi
21155 fi
21156 fi
21157 CC=$ac_cv_prog_CC
21158 if test -n "$CC"; then
21159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
21160 $as_echo "$CC" >&6; }
21161 else
21162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21163 $as_echo "no" >&6; }
21164 fi
21165
21166
21167 fi
21168 if test -z "$CC"; then
21169 if test -n "$ac_tool_prefix"; then
21170 for ac_prog in cl.exe
21171 do
21172 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
21173 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
21174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21175 $as_echo_n "checking for $ac_word... " >&6; }
21176 if ${ac_cv_prog_CC+:} false; then :
21177 $as_echo_n "(cached) " >&6
21178 else
21179 if test -n "$CC"; then
21180 ac_cv_prog_CC="$CC" # Let the user override the test.
21181 else
21182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21183 for as_dir in $PATH
21184 do
21185 IFS=$as_save_IFS
21186 test -z "$as_dir" && as_dir=.
21187 for ac_exec_ext in '' $ac_executable_extensions; do
21188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21189 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
21190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21191 break 2
21192 fi
21193 done
21194 done
21195 IFS=$as_save_IFS
21196
21197 fi
21198 fi
21199 CC=$ac_cv_prog_CC
21200 if test -n "$CC"; then
21201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
21202 $as_echo "$CC" >&6; }
21203 else
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21205 $as_echo "no" >&6; }
21206 fi
21207
21208
21209 test -n "$CC" && break
21210 done
21211 fi
21212 if test -z "$CC"; then
21213 ac_ct_CC=$CC
21214 for ac_prog in cl.exe
21215 do
21216 # Extract the first word of "$ac_prog", so it can be a program name with args.
21217 set dummy $ac_prog; ac_word=$2
21218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21219 $as_echo_n "checking for $ac_word... " >&6; }
21220 if ${ac_cv_prog_ac_ct_CC+:} false; then :
21221 $as_echo_n "(cached) " >&6
21222 else
21223 if test -n "$ac_ct_CC"; then
21224 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
21225 else
21226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21227 for as_dir in $PATH
21228 do
21229 IFS=$as_save_IFS
21230 test -z "$as_dir" && as_dir=.
21231 for ac_exec_ext in '' $ac_executable_extensions; do
21232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21233 ac_cv_prog_ac_ct_CC="$ac_prog"
21234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21235 break 2
21236 fi
21237 done
21238 done
21239 IFS=$as_save_IFS
21240
21241 fi
21242 fi
21243 ac_ct_CC=$ac_cv_prog_ac_ct_CC
21244 if test -n "$ac_ct_CC"; then
21245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
21246 $as_echo "$ac_ct_CC" >&6; }
21247 else
21248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21249 $as_echo "no" >&6; }
21250 fi
21251
21252
21253 test -n "$ac_ct_CC" && break
21254 done
21255
21256 if test "x$ac_ct_CC" = x; then
21257 CC=""
21258 else
21259 case $cross_compiling:$ac_tool_warned in
21260 yes:)
21261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
21262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
21263 ac_tool_warned=yes ;;
21264 esac
21265 CC=$ac_ct_CC
21266 fi
21267 fi
21268
21269 fi
21270
21271
21272 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21273 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21274 as_fn_error $? "no acceptable C compiler found in \$PATH
21275 See \`config.log' for more details" "$LINENO" 5; }
21276
21277 # Provide some information about the compiler.
21278 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
21279 set X $ac_compile
21280 ac_compiler=$2
21281 for ac_option in --version -v -V -qversion; do
21282 { { ac_try="$ac_compiler $ac_option >&5"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
21288 $as_echo "$ac_try_echo"; } >&5
21289 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
21290 ac_status=$?
21291 if test -s conftest.err; then
21292 sed '10a\
21293 ... rest of stderr output deleted ...
21294 10q' conftest.err >conftest.er1
21295 cat conftest.er1 >&5
21296 fi
21297 rm -f conftest.er1 conftest.err
21298 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21299 test $ac_status = 0; }
21300 done
21301
21302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
21303 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
21304 if ${ac_cv_c_compiler_gnu+:} false; then :
21305 $as_echo_n "(cached) " >&6
21306 else
21307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21308 /* end confdefs.h. */
21309
21310 int
21311 main ()
21312 {
21313 #ifndef __GNUC__
21314 choke me
21315 #endif
21316
21317 ;
21318 return 0;
21319 }
21320 _ACEOF
21321 if ac_fn_c_try_compile "$LINENO"; then :
21322 ac_compiler_gnu=yes
21323 else
21324 ac_compiler_gnu=no
21325 fi
21326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21327 ac_cv_c_compiler_gnu=$ac_compiler_gnu
21328
21329 fi
21330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
21331 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
21332 if test $ac_compiler_gnu = yes; then
21333 GCC=yes
21334 else
21335 GCC=
21336 fi
21337 ac_test_CFLAGS=${CFLAGS+set}
21338 ac_save_CFLAGS=$CFLAGS
21339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
21340 $as_echo_n "checking whether $CC accepts -g... " >&6; }
21341 if ${ac_cv_prog_cc_g+:} false; then :
21342 $as_echo_n "(cached) " >&6
21343 else
21344 ac_save_c_werror_flag=$ac_c_werror_flag
21345 ac_c_werror_flag=yes
21346 ac_cv_prog_cc_g=no
21347 CFLAGS="-g"
21348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21349 /* end confdefs.h. */
21350
21351 int
21352 main ()
21353 {
21354
21355 ;
21356 return 0;
21357 }
21358 _ACEOF
21359 if ac_fn_c_try_compile "$LINENO"; then :
21360 ac_cv_prog_cc_g=yes
21361 else
21362 CFLAGS=""
21363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21364 /* end confdefs.h. */
21365
21366 int
21367 main ()
21368 {
21369
21370 ;
21371 return 0;
21372 }
21373 _ACEOF
21374 if ac_fn_c_try_compile "$LINENO"; then :
21375
21376 else
21377 ac_c_werror_flag=$ac_save_c_werror_flag
21378 CFLAGS="-g"
21379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21380 /* end confdefs.h. */
21381
21382 int
21383 main ()
21384 {
21385
21386 ;
21387 return 0;
21388 }
21389 _ACEOF
21390 if ac_fn_c_try_compile "$LINENO"; then :
21391 ac_cv_prog_cc_g=yes
21392 fi
21393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21394 fi
21395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21396 fi
21397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21398 ac_c_werror_flag=$ac_save_c_werror_flag
21399 fi
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
21401 $as_echo "$ac_cv_prog_cc_g" >&6; }
21402 if test "$ac_test_CFLAGS" = set; then
21403 CFLAGS=$ac_save_CFLAGS
21404 elif test $ac_cv_prog_cc_g = yes; then
21405 if test "$GCC" = yes; then
21406 CFLAGS="-g -O2"
21407 else
21408 CFLAGS="-g"
21409 fi
21410 else
21411 if test "$GCC" = yes; then
21412 CFLAGS="-O2"
21413 else
21414 CFLAGS=
21415 fi
21416 fi
21417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
21418 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
21419 if ${ac_cv_prog_cc_c89+:} false; then :
21420 $as_echo_n "(cached) " >&6
21421 else
21422 ac_cv_prog_cc_c89=no
21423 ac_save_CC=$CC
21424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21425 /* end confdefs.h. */
21426 #include <stdarg.h>
21427 #include <stdio.h>
21428 struct stat;
21429 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
21430 struct buf { int x; };
21431 FILE * (*rcsopen) (struct buf *, struct stat *, int);
21432 static char *e (p, i)
21433 char **p;
21434 int i;
21435 {
21436 return p[i];
21437 }
21438 static char *f (char * (*g) (char **, int), char **p, ...)
21439 {
21440 char *s;
21441 va_list v;
21442 va_start (v,p);
21443 s = g (p, va_arg (v,int));
21444 va_end (v);
21445 return s;
21446 }
21447
21448 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
21449 function prototypes and stuff, but not '\xHH' hex character constants.
21450 These don't provoke an error unfortunately, instead are silently treated
21451 as 'x'. The following induces an error, until -std is added to get
21452 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
21453 array size at least. It's necessary to write '\x00'==0 to get something
21454 that's true only with -std. */
21455 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
21456
21457 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
21458 inside strings and character constants. */
21459 #define FOO(x) 'x'
21460 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
21461
21462 int test (int i, double x);
21463 struct s1 {int (*f) (int a);};
21464 struct s2 {int (*f) (double a);};
21465 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
21466 int argc;
21467 char **argv;
21468 int
21469 main ()
21470 {
21471 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
21472 ;
21473 return 0;
21474 }
21475 _ACEOF
21476 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
21477 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
21478 do
21479 CC="$ac_save_CC $ac_arg"
21480 if ac_fn_c_try_compile "$LINENO"; then :
21481 ac_cv_prog_cc_c89=$ac_arg
21482 fi
21483 rm -f core conftest.err conftest.$ac_objext
21484 test "x$ac_cv_prog_cc_c89" != "xno" && break
21485 done
21486 rm -f conftest.$ac_ext
21487 CC=$ac_save_CC
21488
21489 fi
21490 # AC_CACHE_VAL
21491 case "x$ac_cv_prog_cc_c89" in
21492 x)
21493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
21494 $as_echo "none needed" >&6; } ;;
21495 xno)
21496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
21497 $as_echo "unsupported" >&6; } ;;
21498 *)
21499 CC="$CC $ac_cv_prog_cc_c89"
21500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
21501 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
21502 esac
21503 if test "x$ac_cv_prog_cc_c89" != xno; then :
21504
21505 fi
21506
21507 ac_ext=c
21508 ac_cpp='$CPP $CPPFLAGS'
21509 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21510 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21511 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21512
21513 depcc="$CC" am_compiler_list=
21514
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
21516 $as_echo_n "checking dependency style of $depcc... " >&6; }
21517 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
21518 $as_echo_n "(cached) " >&6
21519 else
21520 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
21521 # We make a subdir and do the tests there. Otherwise we can end up
21522 # making bogus files that we don't know about and never remove. For
21523 # instance it was reported that on HP-UX the gcc test will end up
21524 # making a dummy file named 'D' -- because '-MD' means "put the output
21525 # in D".
21526 rm -rf conftest.dir
21527 mkdir conftest.dir
21528 # Copy depcomp to subdir because otherwise we won't find it if we're
21529 # using a relative directory.
21530 cp "$am_depcomp" conftest.dir
21531 cd conftest.dir
21532 # We will build objects and dependencies in a subdirectory because
21533 # it helps to detect inapplicable dependency modes. For instance
21534 # both Tru64's cc and ICC support -MD to output dependencies as a
21535 # side effect of compilation, but ICC will put the dependencies in
21536 # the current directory while Tru64 will put them in the object
21537 # directory.
21538 mkdir sub
21539
21540 am_cv_CC_dependencies_compiler_type=none
21541 if test "$am_compiler_list" = ""; then
21542 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
21543 fi
21544 am__universal=false
21545 case " $depcc " in #(
21546 *\ -arch\ *\ -arch\ *) am__universal=true ;;
21547 esac
21548
21549 for depmode in $am_compiler_list; do
21550 # Setup a source with many dependencies, because some compilers
21551 # like to wrap large dependency lists on column 80 (with \), and
21552 # we should not choose a depcomp mode which is confused by this.
21553 #
21554 # We need to recreate these files for each test, as the compiler may
21555 # overwrite some of them when testing with obscure command lines.
21556 # This happens at least with the AIX C compiler.
21557 : > sub/conftest.c
21558 for i in 1 2 3 4 5 6; do
21559 echo '#include "conftst'$i'.h"' >> sub/conftest.c
21560 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
21561 # Solaris 10 /bin/sh.
21562 echo '/* dummy */' > sub/conftst$i.h
21563 done
21564 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
21565
21566 # We check with '-c' and '-o' for the sake of the "dashmstdout"
21567 # mode. It turns out that the SunPro C++ compiler does not properly
21568 # handle '-M -o', and we need to detect this. Also, some Intel
21569 # versions had trouble with output in subdirs.
21570 am__obj=sub/conftest.${OBJEXT-o}
21571 am__minus_obj="-o $am__obj"
21572 case $depmode in
21573 gcc)
21574 # This depmode causes a compiler race in universal mode.
21575 test "$am__universal" = false || continue
21576 ;;
21577 nosideeffect)
21578 # After this tag, mechanisms are not by side-effect, so they'll
21579 # only be used when explicitly requested.
21580 if test "x$enable_dependency_tracking" = xyes; then
21581 continue
21582 else
21583 break
21584 fi
21585 ;;
21586 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
21587 # This compiler won't grok '-c -o', but also, the minuso test has
21588 # not run yet. These depmodes are late enough in the game, and
21589 # so weak that their functioning should not be impacted.
21590 am__obj=conftest.${OBJEXT-o}
21591 am__minus_obj=
21592 ;;
21593 none) break ;;
21594 esac
21595 if depmode=$depmode \
21596 source=sub/conftest.c object=$am__obj \
21597 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
21598 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
21599 >/dev/null 2>conftest.err &&
21600 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
21601 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
21602 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
21603 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
21604 # icc doesn't choke on unknown options, it will just issue warnings
21605 # or remarks (even with -Werror). So we grep stderr for any message
21606 # that says an option was ignored or not supported.
21607 # When given -MP, icc 7.0 and 7.1 complain thusly:
21608 # icc: Command line warning: ignoring option '-M'; no argument required
21609 # The diagnosis changed in icc 8.0:
21610 # icc: Command line remark: option '-MP' not supported
21611 if (grep 'ignoring option' conftest.err ||
21612 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
21613 am_cv_CC_dependencies_compiler_type=$depmode
21614 break
21615 fi
21616 fi
21617 done
21618
21619 cd ..
21620 rm -rf conftest.dir
21621 else
21622 am_cv_CC_dependencies_compiler_type=none
21623 fi
21624
21625 fi
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
21627 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
21628 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
21629
21630 if
21631 test "x$enable_dependency_tracking" != xno \
21632 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
21633 am__fastdepCC_TRUE=
21634 am__fastdepCC_FALSE='#'
21635 else
21636 am__fastdepCC_TRUE='#'
21637 am__fastdepCC_FALSE=
21638 fi
21639
21640
21641
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
21643 $as_echo_n "checking whether ln -s works... " >&6; }
21644 LN_S=$as_ln_s
21645 if test "$LN_S" = "ln -s"; then
21646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21647 $as_echo "yes" >&6; }
21648 else
21649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
21650 $as_echo "no, using $LN_S" >&6; }
21651 fi
21652
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
21654 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
21655 set x ${MAKE-make}
21656 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
21657 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
21658 $as_echo_n "(cached) " >&6
21659 else
21660 cat >conftest.make <<\_ACEOF
21661 SHELL = /bin/sh
21662 all:
21663 @echo '@@@%%%=$(MAKE)=@@@%%%'
21664 _ACEOF
21665 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
21666 case `${MAKE-make} -f conftest.make 2>/dev/null` in
21667 *@@@%%%=?*=@@@%%%*)
21668 eval ac_cv_prog_make_${ac_make}_set=yes;;
21669 *)
21670 eval ac_cv_prog_make_${ac_make}_set=no;;
21671 esac
21672 rm -f conftest.make
21673 fi
21674 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
21675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21676 $as_echo "yes" >&6; }
21677 SET_MAKE=
21678 else
21679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21680 $as_echo "no" >&6; }
21681 SET_MAKE="MAKE=${MAKE-make}"
21682 fi
21683
21684
21685 # Checks for libraries.
21686
21687 # Checks for header files.
21688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
21689 $as_echo_n "checking for ANSI C header files... " >&6; }
21690 if ${ac_cv_header_stdc+:} false; then :
21691 $as_echo_n "(cached) " >&6
21692 else
21693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21694 /* end confdefs.h. */
21695 #include <stdlib.h>
21696 #include <stdarg.h>
21697 #include <string.h>
21698 #include <float.h>
21699
21700 int
21701 main ()
21702 {
21703
21704 ;
21705 return 0;
21706 }
21707 _ACEOF
21708 if ac_fn_c_try_compile "$LINENO"; then :
21709 ac_cv_header_stdc=yes
21710 else
21711 ac_cv_header_stdc=no
21712 fi
21713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21714
21715 if test $ac_cv_header_stdc = yes; then
21716 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21719 #include <string.h>
21720
21721 _ACEOF
21722 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21723 $EGREP "memchr" >/dev/null 2>&1; then :
21724
21725 else
21726 ac_cv_header_stdc=no
21727 fi
21728 rm -f conftest*
21729
21730 fi
21731
21732 if test $ac_cv_header_stdc = yes; then
21733 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21735 /* end confdefs.h. */
21736 #include <stdlib.h>
21737
21738 _ACEOF
21739 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21740 $EGREP "free" >/dev/null 2>&1; then :
21741
21742 else
21743 ac_cv_header_stdc=no
21744 fi
21745 rm -f conftest*
21746
21747 fi
21748
21749 if test $ac_cv_header_stdc = yes; then
21750 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21751 if test "$cross_compiling" = yes; then :
21752 :
21753 else
21754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21755 /* end confdefs.h. */
21756 #include <ctype.h>
21757 #include <stdlib.h>
21758 #if ((' ' & 0x0FF) == 0x020)
21759 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21760 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21761 #else
21762 # define ISLOWER(c) \
21763 (('a' <= (c) && (c) <= 'i') \
21764 || ('j' <= (c) && (c) <= 'r') \
21765 || ('s' <= (c) && (c) <= 'z'))
21766 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21767 #endif
21768
21769 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21770 int
21771 main ()
21772 {
21773 int i;
21774 for (i = 0; i < 256; i++)
21775 if (XOR (islower (i), ISLOWER (i))
21776 || toupper (i) != TOUPPER (i))
21777 return 2;
21778 return 0;
21779 }
21780 _ACEOF
21781 if ac_fn_c_try_run "$LINENO"; then :
21782
21783 else
21784 ac_cv_header_stdc=no
21785 fi
21786 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21787 conftest.$ac_objext conftest.beam conftest.$ac_ext
21788 fi
21789
21790 fi
21791 fi
21792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
21793 $as_echo "$ac_cv_header_stdc" >&6; }
21794 if test $ac_cv_header_stdc = yes; then
21795
21796 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
21797
21798 fi
21799
21800 for ac_header in limits.h malloc.h stdlib.h string.h
21801 do :
21802 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21803 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21804 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21805 cat >>confdefs.h <<_ACEOF
21806 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21807 _ACEOF
21808
21809 fi
21810
21811 done
21812
21813
21814 # Checks for typedefs, structures, and compiler characteristics.
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
21816 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
21817 if ${ac_cv_c_const+:} false; then :
21818 $as_echo_n "(cached) " >&6
21819 else
21820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21821 /* end confdefs.h. */
21822
21823 int
21824 main ()
21825 {
21826
21827 #ifndef __cplusplus
21828 /* Ultrix mips cc rejects this sort of thing. */
21829 typedef int charset[2];
21830 const charset cs = { 0, 0 };
21831 /* SunOS 4.1.1 cc rejects this. */
21832 char const *const *pcpcc;
21833 char **ppc;
21834 /* NEC SVR4.0.2 mips cc rejects this. */
21835 struct point {int x, y;};
21836 static struct point const zero = {0,0};
21837 /* AIX XL C 1.02.0.0 rejects this.
21838 It does not let you subtract one const X* pointer from another in
21839 an arm of an if-expression whose if-part is not a constant
21840 expression */
21841 const char *g = "string";
21842 pcpcc = &g + (g ? g-g : 0);
21843 /* HPUX 7.0 cc rejects these. */
21844 ++pcpcc;
21845 ppc = (char**) pcpcc;
21846 pcpcc = (char const *const *) ppc;
21847 { /* SCO 3.2v4 cc rejects this sort of thing. */
21848 char tx;
21849 char *t = &tx;
21850 char const *s = 0 ? (char *) 0 : (char const *) 0;
21851
21852 *t++ = 0;
21853 if (s) return 0;
21854 }
21855 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21856 int x[] = {25, 17};
21857 const int *foo = &x[0];
21858 ++foo;
21859 }
21860 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21861 typedef const int *iptr;
21862 iptr p = 0;
21863 ++p;
21864 }
21865 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
21866 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21867 struct s { int j; const int *ap[3]; } bx;
21868 struct s *b = &bx; b->j = 5;
21869 }
21870 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21871 const int foo = 10;
21872 if (!foo) return 0;
21873 }
21874 return !cs[0] && !zero.x;
21875 #endif
21876
21877 ;
21878 return 0;
21879 }
21880 _ACEOF
21881 if ac_fn_c_try_compile "$LINENO"; then :
21882 ac_cv_c_const=yes
21883 else
21884 ac_cv_c_const=no
21885 fi
21886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21887 fi
21888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
21889 $as_echo "$ac_cv_c_const" >&6; }
21890 if test $ac_cv_c_const = no; then
21891
21892 $as_echo "#define const /**/" >>confdefs.h
21893
21894 fi
21895
21896 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
21897 if test "x$ac_cv_type_off_t" = xyes; then :
21898
21899 else
21900
21901 cat >>confdefs.h <<_ACEOF
21902 #define off_t long int
21903 _ACEOF
21904
21905 fi
21906
21907 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
21908 if test "x$ac_cv_type_size_t" = xyes; then :
21909
21910 else
21911
21912 cat >>confdefs.h <<_ACEOF
21913 #define size_t unsigned int
21914 _ACEOF
21915
21916 fi
21917
21918
21919 # Checks for library functions.
21920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
21921 $as_echo_n "checking for working memcmp... " >&6; }
21922 if ${ac_cv_func_memcmp_working+:} false; then :
21923 $as_echo_n "(cached) " >&6
21924 else
21925 if test "$cross_compiling" = yes; then :
21926 ac_cv_func_memcmp_working=no
21927 else
21928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21929 /* end confdefs.h. */
21930 $ac_includes_default
21931 int
21932 main ()
21933 {
21934
21935 /* Some versions of memcmp are not 8-bit clean. */
21936 char c0 = '\100', c1 = '\200', c2 = '\201';
21937 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21938 return 1;
21939
21940 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21941 or more and with at least one buffer not starting on a 4-byte boundary.
21942 William Lewis provided this test program. */
21943 {
21944 char foo[21];
21945 char bar[21];
21946 int i;
21947 for (i = 0; i < 4; i++)
21948 {
21949 char *a = foo + i;
21950 char *b = bar + i;
21951 strcpy (a, "--------01111111");
21952 strcpy (b, "--------10000000");
21953 if (memcmp (a, b, 16) >= 0)
21954 return 1;
21955 }
21956 return 0;
21957 }
21958
21959 ;
21960 return 0;
21961 }
21962 _ACEOF
21963 if ac_fn_c_try_run "$LINENO"; then :
21964 ac_cv_func_memcmp_working=yes
21965 else
21966 ac_cv_func_memcmp_working=no
21967 fi
21968 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21969 conftest.$ac_objext conftest.beam conftest.$ac_ext
21970 fi
21971
21972 fi
21973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
21974 $as_echo "$ac_cv_func_memcmp_working" >&6; }
21975 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
21976 *" memcmp.$ac_objext "* ) ;;
21977 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
21978 ;;
21979 esac
21980
21981
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
21983 $as_echo_n "checking for error_at_line... " >&6; }
21984 if ${ac_cv_lib_error_at_line+:} false; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21988 /* end confdefs.h. */
21989 #include <error.h>
21990 int
21991 main ()
21992 {
21993 error_at_line (0, 0, "", 0, "an error occurred");
21994 ;
21995 return 0;
21996 }
21997 _ACEOF
21998 if ac_fn_c_try_link "$LINENO"; then :
21999 ac_cv_lib_error_at_line=yes
22000 else
22001 ac_cv_lib_error_at_line=no
22002 fi
22003 rm -f core conftest.err conftest.$ac_objext \
22004 conftest$ac_exeext conftest.$ac_ext
22005 fi
22006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
22007 $as_echo "$ac_cv_lib_error_at_line" >&6; }
22008 if test $ac_cv_lib_error_at_line = no; then
22009 case " $LIBOBJS " in
22010 *" error.$ac_objext "* ) ;;
22011 *) LIBOBJS="$LIBOBJS error.$ac_objext"
22012 ;;
22013 esac
22014
22015 fi
22016
22017 for ac_func in memchr memmove memset pow sqrt strchr strstr
22018 do :
22019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
22020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
22021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
22022 cat >>confdefs.h <<_ACEOF
22023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
22024 _ACEOF
22025
22026 fi
22027 done
22028
22029
22030
22031
22032 # Use version 1 of the hdf5 API
22033
22034
22035 $as_echo "#define H5_USE_16_API 1" >>confdefs.h
22036
22037
22038
22039 if test "x$F2CFORTRAN_MACRO" = "xyes"; then
22040 F2CFORTRAN_CONDITIONAL_TRUE=
22041 F2CFORTRAN_CONDITIONAL_FALSE='#'
22042 else
22043 F2CFORTRAN_CONDITIONAL_TRUE='#'
22044 F2CFORTRAN_CONDITIONAL_FALSE=
22045 fi
22046
22047 if test "x$F2CFORTRAN_90" = "xyes"; then
22048 F2CFORTRAN_90_CONDITIONAL_TRUE=
22049 F2CFORTRAN_90_CONDITIONAL_FALSE='#'
22050 else
22051 F2CFORTRAN_90_CONDITIONAL_TRUE='#'
22052 F2CFORTRAN_90_CONDITIONAL_FALSE=
22053 fi
22054
22055 if test "x$F2CFORTRAN_32PTR" = "xyes"; then
22056 F2CFORTRAN_32PTR_CONDITIONAL_TRUE=
22057 F2CFORTRAN_32PTR_CONDITIONAL_FALSE='#'
22058 else
22059 F2CFORTRAN_32PTR_CONDITIONAL_TRUE='#'
22060 F2CFORTRAN_32PTR_CONDITIONAL_FALSE=
22061 fi
22062
22063 if test "x$H5_HAVE_FILTER_SZIP" = "xyes"; then
22064 SZIP_ENCODER_CONDITIONAL_TRUE=
22065 SZIP_ENCODER_CONDITIONAL_FALSE='#'
22066 else
22067 SZIP_ENCODER_CONDITIONAL_TRUE='#'
22068 SZIP_ENCODER_CONDITIONAL_FALSE=
22069 fi
22070
22071
22072
22073 cat >confcache <<\_ACEOF
22074 # This file is a shell script that caches the results of configure
22075 # tests run on this system so they can be shared between configure
22076 # scripts and configure runs, see configure's option --config-cache.
22077 # It is not useful on other systems. If it contains results you don't
22078 # want to keep, you may remove or edit it.
22079 #
22080 # config.status only pays attention to the cache file if you give it
22081 # the --recheck option to rerun configure.
22082 #
22083 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22084 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22085 # following values.
22086
22087 _ACEOF
22088
22089 # The following way of writing the cache mishandles newlines in values,
22090 # but we know of no workaround that is simple, portable, and efficient.
22091 # So, we kill variables containing newlines.
22092 # Ultrix sh set writes to stderr and can't be redirected directly,
22093 # and sets the high bit in the cache file unless we assign to the vars.
22094 (
22095 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22096 eval ac_val=\$$ac_var
22097 case $ac_val in #(
22098 *${as_nl}*)
22099 case $ac_var in #(
22100 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22101 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22102 esac
22103 case $ac_var in #(
22104 _ | IFS | as_nl) ;; #(
22105 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22106 *) { eval $ac_var=; unset $ac_var;} ;;
22107 esac ;;
22108 esac
22109 done
22110
22111 (set) 2>&1 |
22112 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22113 *${as_nl}ac_space=\ *)
22114 # `set' does not quote correctly, so add quotes: double-quote
22115 # substitution turns \\\\ into \\, and sed turns \\ into \.
22116 sed -n \
22117 "s/'/'\\\\''/g;
22118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22119 ;; #(
22120 *)
22121 # `set' quotes correctly as required by POSIX, so do not add quotes.
22122 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22123 ;;
22124 esac |
22125 sort
22126 ) |
22127 sed '
22128 /^ac_cv_env_/b end
22129 t clear
22130 :clear
22131 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22132 t end
22133 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22134 :end' >>confcache
22135 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22136 if test -w "$cache_file"; then
22137 if test "x$cache_file" != "x/dev/null"; then
22138 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22139 $as_echo "$as_me: updating cache $cache_file" >&6;}
22140 if test ! -f "$cache_file" || test -h "$cache_file"; then
22141 cat confcache >"$cache_file"
22142 else
22143 case $cache_file in #(
22144 */* | ?:*)
22145 mv -f confcache "$cache_file"$$ &&
22146 mv -f "$cache_file"$$ "$cache_file" ;; #(
22147 *)
22148 mv -f confcache "$cache_file" ;;
22149 esac
22150 fi
22151 fi
22152 else
22153 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22154 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22155 fi
22156 fi
22157 rm -f confcache
22158
22159 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22160 # Let make expand exec_prefix.
22161 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22162
22163 DEFS=-DHAVE_CONFIG_H
22164
22165 ac_libobjs=
22166 ac_ltlibobjs=
22167 U=
22168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22169 # 1. Remove the extension, and $U if already installed.
22170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22171 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22173 # will be set to the directory where LIBOBJS objects are built.
22174 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22175 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22176 done
22177 LIBOBJS=$ac_libobjs
22178
22179 LTLIBOBJS=$ac_ltlibobjs
22180
22181
22182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22183 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22184 if test -n "$am_sleep_pid"; then
22185 # Hide warnings about reused PIDs.
22186 wait $am_sleep_pid 2>/dev/null
22187 fi
22188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22189 $as_echo "done" >&6; }
22190 if test -n "$EXEEXT"; then
22191 am__EXEEXT_TRUE=
22192 am__EXEEXT_FALSE='#'
22193 else
22194 am__EXEEXT_TRUE='#'
22195 am__EXEEXT_FALSE=
22196 fi
22197
22198 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22199 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22200 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22201 fi
22202 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22203 as_fn_error $? "conditional \"AMDEP\" was never defined.
22204 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22205 fi
22206 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22207 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22208 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22209 fi
22210
22211 if test -z "${HDF5_THREADSAFE_TRUE}" && test -z "${HDF5_THREADSAFE_FALSE}"; then
22212 as_fn_error $? "conditional \"HDF5_THREADSAFE\" was never defined.
22213 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22214 fi
22215 if test -z "${GCTP_INCLUDE_CONDITIONAL_TRUE}" && test -z "${GCTP_INCLUDE_CONDITIONAL_FALSE}"; then
22216 as_fn_error $? "conditional \"GCTP_INCLUDE_CONDITIONAL\" was never defined.
22217 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22218 fi
22219 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22220 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22221 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22222 fi
22223 if test -z "${F2CFORTRAN_CONDITIONAL_TRUE}" && test -z "${F2CFORTRAN_CONDITIONAL_FALSE}"; then
22224 as_fn_error $? "conditional \"F2CFORTRAN_CONDITIONAL\" was never defined.
22225 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22226 fi
22227 if test -z "${F2CFORTRAN_90_CONDITIONAL_TRUE}" && test -z "${F2CFORTRAN_90_CONDITIONAL_FALSE}"; then
22228 as_fn_error $? "conditional \"F2CFORTRAN_90_CONDITIONAL\" was never defined.
22229 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22230 fi
22231 if test -z "${F2CFORTRAN_32PTR_CONDITIONAL_TRUE}" && test -z "${F2CFORTRAN_32PTR_CONDITIONAL_FALSE}"; then
22232 as_fn_error $? "conditional \"F2CFORTRAN_32PTR_CONDITIONAL\" was never defined.
22233 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22234 fi
22235 if test -z "${SZIP_ENCODER_CONDITIONAL_TRUE}" && test -z "${SZIP_ENCODER_CONDITIONAL_FALSE}"; then
22236 as_fn_error $? "conditional \"SZIP_ENCODER_CONDITIONAL\" was never defined.
22237 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22238 fi
22239
22240 : "${CONFIG_STATUS=./config.status}"
22241 ac_write_fail=0
22242 ac_clean_files_save=$ac_clean_files
22243 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22245 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22246 as_write_fail=0
22247 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22248 #! $SHELL
22249 # Generated by $as_me.
22250 # Run this file to recreate the current configuration.
22251 # Compiler output produced by configure, useful for debugging
22252 # configure, is in config.log if it exists.
22253
22254 debug=false
22255 ac_cs_recheck=false
22256 ac_cs_silent=false
22257
22258 SHELL=\${CONFIG_SHELL-$SHELL}
22259 export SHELL
22260 _ASEOF
22261 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22262 ## -------------------- ##
22263 ## M4sh Initialization. ##
22264 ## -------------------- ##
22265
22266 # Be more Bourne compatible
22267 DUALCASE=1; export DUALCASE # for MKS sh
22268 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22269 emulate sh
22270 NULLCMD=:
22271 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22272 # is contrary to our usage. Disable this feature.
22273 alias -g '${1+"$@"}'='"$@"'
22274 setopt NO_GLOB_SUBST
22275 else
22276 case `(set -o) 2>/dev/null` in #(
22277 *posix*) :
22278 set -o posix ;; #(
22279 *) :
22280 ;;
22281 esac
22282 fi
22283
22284
22285 as_nl='
22286 '
22287 export as_nl
22288 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22289 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22290 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22291 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22292 # Prefer a ksh shell builtin over an external printf program on Solaris,
22293 # but without wasting forks for bash or zsh.
22294 if test -z "$BASH_VERSION$ZSH_VERSION" \
22295 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22296 as_echo='print -r --'
22297 as_echo_n='print -rn --'
22298 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22299 as_echo='printf %s\n'
22300 as_echo_n='printf %s'
22301 else
22302 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22303 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22304 as_echo_n='/usr/ucb/echo -n'
22305 else
22306 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22307 as_echo_n_body='eval
22308 arg=$1;
22309 case $arg in #(
22310 *"$as_nl"*)
22311 expr "X$arg" : "X\\(.*\\)$as_nl";
22312 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22313 esac;
22314 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22315 '
22316 export as_echo_n_body
22317 as_echo_n='sh -c $as_echo_n_body as_echo'
22318 fi
22319 export as_echo_body
22320 as_echo='sh -c $as_echo_body as_echo'
22321 fi
22322
22323 # The user is always right.
22324 if test "${PATH_SEPARATOR+set}" != set; then
22325 PATH_SEPARATOR=:
22326 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22327 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22328 PATH_SEPARATOR=';'
22329 }
22330 fi
22331
22332
22333 # IFS
22334 # We need space, tab and new line, in precisely that order. Quoting is
22335 # there to prevent editors from complaining about space-tab.
22336 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22337 # splitting by setting IFS to empty value.)
22338 IFS=" "" $as_nl"
22339
22340 # Find who we are. Look in the path if we contain no directory separator.
22341 as_myself=
22342 case $0 in #((
22343 *[\\/]* ) as_myself=$0 ;;
22344 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22345 for as_dir in $PATH
22346 do
22347 IFS=$as_save_IFS
22348 test -z "$as_dir" && as_dir=.
22349 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22350 done
22351 IFS=$as_save_IFS
22352
22353 ;;
22354 esac
22355 # We did not find ourselves, most probably we were run as `sh COMMAND'
22356 # in which case we are not to be found in the path.
22357 if test "x$as_myself" = x; then
22358 as_myself=$0
22359 fi
22360 if test ! -f "$as_myself"; then
22361 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22362 exit 1
22363 fi
22364
22365 # Unset variables that we do not need and which cause bugs (e.g. in
22366 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22367 # suppresses any "Segmentation fault" message there. '((' could
22368 # trigger a bug in pdksh 5.2.14.
22369 for as_var in BASH_ENV ENV MAIL MAILPATH
22370 do eval test x\${$as_var+set} = xset \
22371 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22372 done
22373 PS1='$ '
22374 PS2='> '
22375 PS4='+ '
22376
22377 # NLS nuisances.
22378 LC_ALL=C
22379 export LC_ALL
22380 LANGUAGE=C
22381 export LANGUAGE
22382
22383 # CDPATH.
22384 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22385
22386
22387 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22388 # ----------------------------------------
22389 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22390 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22391 # script with STATUS, using 1 if that was 0.
22392 as_fn_error ()
22393 {
22394 as_status=$1; test $as_status -eq 0 && as_status=1
22395 if test "$4"; then
22396 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22397 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22398 fi
22399 $as_echo "$as_me: error: $2" >&2
22400 as_fn_exit $as_status
22401 } # as_fn_error
22402
22403
22404 # as_fn_set_status STATUS
22405 # -----------------------
22406 # Set $? to STATUS, without forking.
22407 as_fn_set_status ()
22408 {
22409 return $1
22410 } # as_fn_set_status
22411
22412 # as_fn_exit STATUS
22413 # -----------------
22414 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22415 as_fn_exit ()
22416 {
22417 set +e
22418 as_fn_set_status $1
22419 exit $1
22420 } # as_fn_exit
22421
22422 # as_fn_unset VAR
22423 # ---------------
22424 # Portably unset VAR.
22425 as_fn_unset ()
22426 {
22427 { eval $1=; unset $1;}
22428 }
22429 as_unset=as_fn_unset
22430 # as_fn_append VAR VALUE
22431 # ----------------------
22432 # Append the text in VALUE to the end of the definition contained in VAR. Take
22433 # advantage of any shell optimizations that allow amortized linear growth over
22434 # repeated appends, instead of the typical quadratic growth present in naive
22435 # implementations.
22436 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22437 eval 'as_fn_append ()
22438 {
22439 eval $1+=\$2
22440 }'
22441 else
22442 as_fn_append ()
22443 {
22444 eval $1=\$$1\$2
22445 }
22446 fi # as_fn_append
22447
22448 # as_fn_arith ARG...
22449 # ------------------
22450 # Perform arithmetic evaluation on the ARGs, and store the result in the
22451 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22452 # must be portable across $(()) and expr.
22453 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22454 eval 'as_fn_arith ()
22455 {
22456 as_val=$(( $* ))
22457 }'
22458 else
22459 as_fn_arith ()
22460 {
22461 as_val=`expr "$@" || test $? -eq 1`
22462 }
22463 fi # as_fn_arith
22464
22465
22466 if expr a : '\(a\)' >/dev/null 2>&1 &&
22467 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22468 as_expr=expr
22469 else
22470 as_expr=false
22471 fi
22472
22473 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22474 as_basename=basename
22475 else
22476 as_basename=false
22477 fi
22478
22479 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22480 as_dirname=dirname
22481 else
22482 as_dirname=false
22483 fi
22484
22485 as_me=`$as_basename -- "$0" ||
22486 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22487 X"$0" : 'X\(//\)$' \| \
22488 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22489 $as_echo X/"$0" |
22490 sed '/^.*\/\([^/][^/]*\)\/*$/{
22491 s//\1/
22492 q
22493 }
22494 /^X\/\(\/\/\)$/{
22495 s//\1/
22496 q
22497 }
22498 /^X\/\(\/\).*/{
22499 s//\1/
22500 q
22501 }
22502 s/.*/./; q'`
22503
22504 # Avoid depending upon Character Ranges.
22505 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22506 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22507 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22508 as_cr_digits='0123456789'
22509 as_cr_alnum=$as_cr_Letters$as_cr_digits
22510
22511 ECHO_C= ECHO_N= ECHO_T=
22512 case `echo -n x` in #(((((
22513 -n*)
22514 case `echo 'xy\c'` in
22515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22516 xy) ECHO_C='\c';;
22517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22518 ECHO_T=' ';;
22519 esac;;
22520 *)
22521 ECHO_N='-n';;
22522 esac
22523
22524 rm -f conf$$ conf$$.exe conf$$.file
22525 if test -d conf$$.dir; then
22526 rm -f conf$$.dir/conf$$.file
22527 else
22528 rm -f conf$$.dir
22529 mkdir conf$$.dir 2>/dev/null
22530 fi
22531 if (echo >conf$$.file) 2>/dev/null; then
22532 if ln -s conf$$.file conf$$ 2>/dev/null; then
22533 as_ln_s='ln -s'
22534 # ... but there are two gotchas:
22535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22537 # In both cases, we have to default to `cp -pR'.
22538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22539 as_ln_s='cp -pR'
22540 elif ln conf$$.file conf$$ 2>/dev/null; then
22541 as_ln_s=ln
22542 else
22543 as_ln_s='cp -pR'
22544 fi
22545 else
22546 as_ln_s='cp -pR'
22547 fi
22548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22549 rmdir conf$$.dir 2>/dev/null
22550
22551
22552 # as_fn_mkdir_p
22553 # -------------
22554 # Create "$as_dir" as a directory, including parents if necessary.
22555 as_fn_mkdir_p ()
22556 {
22557
22558 case $as_dir in #(
22559 -*) as_dir=./$as_dir;;
22560 esac
22561 test -d "$as_dir" || eval $as_mkdir_p || {
22562 as_dirs=
22563 while :; do
22564 case $as_dir in #(
22565 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22566 *) as_qdir=$as_dir;;
22567 esac
22568 as_dirs="'$as_qdir' $as_dirs"
22569 as_dir=`$as_dirname -- "$as_dir" ||
22570 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22571 X"$as_dir" : 'X\(//\)[^/]' \| \
22572 X"$as_dir" : 'X\(//\)$' \| \
22573 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22574 $as_echo X"$as_dir" |
22575 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22576 s//\1/
22577 q
22578 }
22579 /^X\(\/\/\)[^/].*/{
22580 s//\1/
22581 q
22582 }
22583 /^X\(\/\/\)$/{
22584 s//\1/
22585 q
22586 }
22587 /^X\(\/\).*/{
22588 s//\1/
22589 q
22590 }
22591 s/.*/./; q'`
22592 test -d "$as_dir" && break
22593 done
22594 test -z "$as_dirs" || eval "mkdir $as_dirs"
22595 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22596
22597
22598 } # as_fn_mkdir_p
22599 if mkdir -p . 2>/dev/null; then
22600 as_mkdir_p='mkdir -p "$as_dir"'
22601 else
22602 test -d ./-p && rmdir ./-p
22603 as_mkdir_p=false
22604 fi
22605
22606
22607 # as_fn_executable_p FILE
22608 # -----------------------
22609 # Test if FILE is an executable regular file.
22610 as_fn_executable_p ()
22611 {
22612 test -f "$1" && test -x "$1"
22613 } # as_fn_executable_p
22614 as_test_x='test -x'
22615 as_executable_p=as_fn_executable_p
22616
22617 # Sed expression to map a string onto a valid CPP name.
22618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22619
22620 # Sed expression to map a string onto a valid variable name.
22621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22622
22623
22624 exec 6>&1
22625 ## ----------------------------------- ##
22626 ## Main body of $CONFIG_STATUS script. ##
22627 ## ----------------------------------- ##
22628 _ASEOF
22629 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22630
22631 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22632 # Save the log message, to keep $0 and so on meaningful, and to
22633 # report actual input values of CONFIG_FILES etc. instead of their
22634 # values after options handling.
22635 ac_log="
22636 This file was extended by hdf-eos5 $as_me 2.0, which was
22637 generated by GNU Autoconf 2.69. Invocation command line was
22638
22639 CONFIG_FILES = $CONFIG_FILES
22640 CONFIG_HEADERS = $CONFIG_HEADERS
22641 CONFIG_LINKS = $CONFIG_LINKS
22642 CONFIG_COMMANDS = $CONFIG_COMMANDS
22643 $ $0 $@
22644
22645 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22646 "
22647
22648 _ACEOF
22649
22650 case $ac_config_files in *"
22651 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22652 esac
22653
22654 case $ac_config_headers in *"
22655 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22656 esac
22657
22658
22659 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22660 # Files that config.status was made for.
22661 config_files="$ac_config_files"
22662 config_headers="$ac_config_headers"
22663 config_commands="$ac_config_commands"
22664
22665 _ACEOF
22666
22667 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22668 ac_cs_usage="\
22669 \`$as_me' instantiates files and other configuration actions
22670 from templates according to the current configuration. Unless the files
22671 and actions are specified as TAGs, all are instantiated by default.
22672
22673 Usage: $0 [OPTION]... [TAG]...
22674
22675 -h, --help print this help, then exit
22676 -V, --version print version number and configuration settings, then exit
22677 --config print configuration, then exit
22678 -q, --quiet, --silent
22679 do not print progress messages
22680 -d, --debug don't remove temporary files
22681 --recheck update $as_me by reconfiguring in the same conditions
22682 --file=FILE[:TEMPLATE]
22683 instantiate the configuration file FILE
22684 --header=FILE[:TEMPLATE]
22685 instantiate the configuration header FILE
22686
22687 Configuration files:
22688 $config_files
22689
22690 Configuration headers:
22691 $config_headers
22692
22693 Configuration commands:
22694 $config_commands
22695
22696 Report bugs to <[email protected]>."
22697
22698 _ACEOF
22699 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22700 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22701 ac_cs_version="\\
22702 hdf-eos5 config.status 2.0
22703 configured by $0, generated by GNU Autoconf 2.69,
22704 with options \\"\$ac_cs_config\\"
22705
22706 Copyright (C) 2012 Free Software Foundation, Inc.
22707 This config.status script is free software; the Free Software Foundation
22708 gives unlimited permission to copy, distribute and modify it."
22709
22710 ac_pwd='$ac_pwd'
22711 srcdir='$srcdir'
22712 INSTALL='$INSTALL'
22713 MKDIR_P='$MKDIR_P'
22714 AWK='$AWK'
22715 test -n "\$AWK" || AWK=awk
22716 _ACEOF
22717
22718 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22719 # The default lists apply if the user does not specify any file.
22720 ac_need_defaults=:
22721 while test $# != 0
22722 do
22723 case $1 in
22724 --*=?*)
22725 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22726 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22727 ac_shift=:
22728 ;;
22729 --*=)
22730 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22731 ac_optarg=
22732 ac_shift=:
22733 ;;
22734 *)
22735 ac_option=$1
22736 ac_optarg=$2
22737 ac_shift=shift
22738 ;;
22739 esac
22740
22741 case $ac_option in
22742 # Handling of the options.
22743 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22744 ac_cs_recheck=: ;;
22745 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22746 $as_echo "$ac_cs_version"; exit ;;
22747 --config | --confi | --conf | --con | --co | --c )
22748 $as_echo "$ac_cs_config"; exit ;;
22749 --debug | --debu | --deb | --de | --d | -d )
22750 debug=: ;;
22751 --file | --fil | --fi | --f )
22752 $ac_shift
22753 case $ac_optarg in
22754 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22755 '') as_fn_error $? "missing file argument" ;;
22756 esac
22757 as_fn_append CONFIG_FILES " '$ac_optarg'"
22758 ac_need_defaults=false;;
22759 --header | --heade | --head | --hea )
22760 $ac_shift
22761 case $ac_optarg in
22762 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22763 esac
22764 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22765 ac_need_defaults=false;;
22766 --he | --h)
22767 # Conflict between --help and --header
22768 as_fn_error $? "ambiguous option: \`$1'
22769 Try \`$0 --help' for more information.";;
22770 --help | --hel | -h )
22771 $as_echo "$ac_cs_usage"; exit ;;
22772 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22773 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22774 ac_cs_silent=: ;;
22775
22776 # This is an error.
22777 -*) as_fn_error $? "unrecognized option: \`$1'
22778 Try \`$0 --help' for more information." ;;
22779
22780 *) as_fn_append ac_config_targets " $1"
22781 ac_need_defaults=false ;;
22782
22783 esac
22784 shift
22785 done
22786
22787 ac_configure_extra_args=
22788
22789 if $ac_cs_silent; then
22790 exec 6>/dev/null
22791 ac_configure_extra_args="$ac_configure_extra_args --silent"
22792 fi
22793
22794 _ACEOF
22795 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22796 if \$ac_cs_recheck; then
22797 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22798 shift
22799 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22800 CONFIG_SHELL='$SHELL'
22801 export CONFIG_SHELL
22802 exec "\$@"
22803 fi
22804
22805 _ACEOF
22806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22807 exec 5>>config.log
22808 {
22809 echo
22810 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22811 ## Running $as_me. ##
22812 _ASBOX
22813 $as_echo "$ac_log"
22814 } >&5
22815
22816 _ACEOF
22817 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22818 #
22819 # INIT-COMMANDS
22820 #
22821 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22822
22823
22824 # The HP-UX ksh and POSIX shell print the target directory to stdout
22825 # if CDPATH is set.
22826 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22827
22828 sed_quote_subst='$sed_quote_subst'
22829 double_quote_subst='$double_quote_subst'
22830 delay_variable_subst='$delay_variable_subst'
22831 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22832 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22833 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22834 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22835 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22836 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22837 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22838 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22839 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
22840 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22841 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22842 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22843 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22844 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22845 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22846 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22847 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22848 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22849 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22850 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22851 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22852 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22853 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22854 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22855 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22856 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22857 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22858 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22859 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22860 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
22861 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
22862 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22863 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22864 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22865 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22866 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22867 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
22868 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
22869 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
22870 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
22871 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22872 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22873 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
22874 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22875 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22876 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22877 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22878 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22879 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22880 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22881 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22882 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22883 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22884 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22885 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22886 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22887 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"`'
22888 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
22889 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
22890 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22891 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22892 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22893 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22894 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22895 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22896 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22897 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22898 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
22899 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22900 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22901 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22902 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22903 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22904 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22905 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22906 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22907 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22908 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22909 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22910 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22911 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22912 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22913 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22914 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22915 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22916 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22917 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22918 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22919 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22920 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22921 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22922 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22923 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22924 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22925 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22926 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22927 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22928 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22929 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
22930 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
22931 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
22932 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
22933 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
22934 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
22935 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
22936 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
22937 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
22938 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
22939 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
22940 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
22941 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
22942 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
22943 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
22944 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
22945 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
22946 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
22947 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
22948 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22949 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22950 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
22951 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
22952 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
22953 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
22954 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
22955 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
22956 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
22957 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
22958 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
22959 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
22960 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
22961 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
22962 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
22963 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
22964 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
22965 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
22966 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
22967 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
22968 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
22969 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
22970 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
22971 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
22972 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
22973 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
22974 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
22975 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
22976 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
22977 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
22978 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
22979 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
22980 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
22981 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
22982 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
22983 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
22984 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
22985 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
22986 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
22987 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
22988 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
22989 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
22990 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
22991 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
22992 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
22993 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
22994 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
22995 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
22996 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
22997 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
22998 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
22999 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
23000 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
23001 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
23002 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
23003 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
23004 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
23005 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23006 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
23007 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
23008 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
23009 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
23010 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
23011 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
23012 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
23013 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23014 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
23015 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
23016 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
23017 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
23018 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
23019 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
23020 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
23021 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
23022 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
23023 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
23024 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
23025 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
23026 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
23027 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
23028 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
23029 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
23030 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
23031 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
23032 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
23033 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
23034 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
23035 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
23036 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
23037 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
23038 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
23039 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23040 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
23041 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
23042 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
23043 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23044 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
23045 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
23046 postlink_cmds_FC='`$ECHO "$postlink_cmds_FC" | $SED "$delay_single_quote_subst"`'
23047 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
23048 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
23049 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
23050 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
23051 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
23052 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
23053 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
23054 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
23055 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
23056 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
23057 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
23058 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
23059 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
23060 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
23061 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
23062 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
23063
23064 LTCC='$LTCC'
23065 LTCFLAGS='$LTCFLAGS'
23066 compiler='$compiler_DEFAULT'
23067
23068 # A function that is used when there is no print builtin or printf.
23069 func_fallback_echo ()
23070 {
23071 eval 'cat <<_LTECHO_EOF
23072 \$1
23073 _LTECHO_EOF'
23074 }
23075
23076 # Quote evaled strings.
23077 for var in SHELL \
23078 ECHO \
23079 PATH_SEPARATOR \
23080 SED \
23081 GREP \
23082 EGREP \
23083 FGREP \
23084 LD \
23085 NM \
23086 LN_S \
23087 lt_SP2NL \
23088 lt_NL2SP \
23089 reload_flag \
23090 OBJDUMP \
23091 deplibs_check_method \
23092 file_magic_cmd \
23093 file_magic_glob \
23094 want_nocaseglob \
23095 DLLTOOL \
23096 sharedlib_from_linklib_cmd \
23097 AR \
23098 AR_FLAGS \
23099 archiver_list_spec \
23100 STRIP \
23101 RANLIB \
23102 CC \
23103 CFLAGS \
23104 compiler \
23105 lt_cv_sys_global_symbol_pipe \
23106 lt_cv_sys_global_symbol_to_cdecl \
23107 lt_cv_sys_global_symbol_to_c_name_address \
23108 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23109 nm_file_list_spec \
23110 lt_prog_compiler_no_builtin_flag \
23111 lt_prog_compiler_pic \
23112 lt_prog_compiler_wl \
23113 lt_prog_compiler_static \
23114 lt_cv_prog_compiler_c_o \
23115 need_locks \
23116 MANIFEST_TOOL \
23117 DSYMUTIL \
23118 NMEDIT \
23119 LIPO \
23120 OTOOL \
23121 OTOOL64 \
23122 shrext_cmds \
23123 export_dynamic_flag_spec \
23124 whole_archive_flag_spec \
23125 compiler_needs_object \
23126 with_gnu_ld \
23127 allow_undefined_flag \
23128 no_undefined_flag \
23129 hardcode_libdir_flag_spec \
23130 hardcode_libdir_separator \
23131 exclude_expsyms \
23132 include_expsyms \
23133 file_list_spec \
23134 variables_saved_for_relink \
23135 libname_spec \
23136 library_names_spec \
23137 soname_spec \
23138 install_override_mode \
23139 finish_eval \
23140 old_striplib \
23141 striplib \
23142 compiler_lib_search_dirs \
23143 predep_objects \
23144 postdep_objects \
23145 predeps \
23146 postdeps \
23147 compiler_lib_search_path \
23148 LD_F77 \
23149 LD_FC \
23150 reload_flag_F77 \
23151 reload_flag_FC \
23152 compiler_F77 \
23153 compiler_FC \
23154 lt_prog_compiler_no_builtin_flag_F77 \
23155 lt_prog_compiler_no_builtin_flag_FC \
23156 lt_prog_compiler_pic_F77 \
23157 lt_prog_compiler_pic_FC \
23158 lt_prog_compiler_wl_F77 \
23159 lt_prog_compiler_wl_FC \
23160 lt_prog_compiler_static_F77 \
23161 lt_prog_compiler_static_FC \
23162 lt_cv_prog_compiler_c_o_F77 \
23163 lt_cv_prog_compiler_c_o_FC \
23164 export_dynamic_flag_spec_F77 \
23165 export_dynamic_flag_spec_FC \
23166 whole_archive_flag_spec_F77 \
23167 whole_archive_flag_spec_FC \
23168 compiler_needs_object_F77 \
23169 compiler_needs_object_FC \
23170 with_gnu_ld_F77 \
23171 with_gnu_ld_FC \
23172 allow_undefined_flag_F77 \
23173 allow_undefined_flag_FC \
23174 no_undefined_flag_F77 \
23175 no_undefined_flag_FC \
23176 hardcode_libdir_flag_spec_F77 \
23177 hardcode_libdir_flag_spec_FC \
23178 hardcode_libdir_separator_F77 \
23179 hardcode_libdir_separator_FC \
23180 exclude_expsyms_F77 \
23181 exclude_expsyms_FC \
23182 include_expsyms_F77 \
23183 include_expsyms_FC \
23184 file_list_spec_F77 \
23185 file_list_spec_FC \
23186 compiler_lib_search_dirs_F77 \
23187 compiler_lib_search_dirs_FC \
23188 predep_objects_F77 \
23189 predep_objects_FC \
23190 postdep_objects_F77 \
23191 postdep_objects_FC \
23192 predeps_F77 \
23193 predeps_FC \
23194 postdeps_F77 \
23195 postdeps_FC \
23196 compiler_lib_search_path_F77 \
23197 compiler_lib_search_path_FC; do
23198 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23199 *[\\\\\\\`\\"\\\$]*)
23200 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23201 ;;
23202 *)
23203 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23204 ;;
23205 esac
23206 done
23207
23208 # Double-quote double-evaled strings.
23209 for var in reload_cmds \
23210 old_postinstall_cmds \
23211 old_postuninstall_cmds \
23212 old_archive_cmds \
23213 extract_expsyms_cmds \
23214 old_archive_from_new_cmds \
23215 old_archive_from_expsyms_cmds \
23216 archive_cmds \
23217 archive_expsym_cmds \
23218 module_cmds \
23219 module_expsym_cmds \
23220 export_symbols_cmds \
23221 prelink_cmds \
23222 postlink_cmds \
23223 postinstall_cmds \
23224 postuninstall_cmds \
23225 finish_cmds \
23226 sys_lib_search_path_spec \
23227 sys_lib_dlsearch_path_spec \
23228 reload_cmds_F77 \
23229 reload_cmds_FC \
23230 old_archive_cmds_F77 \
23231 old_archive_cmds_FC \
23232 old_archive_from_new_cmds_F77 \
23233 old_archive_from_new_cmds_FC \
23234 old_archive_from_expsyms_cmds_F77 \
23235 old_archive_from_expsyms_cmds_FC \
23236 archive_cmds_F77 \
23237 archive_cmds_FC \
23238 archive_expsym_cmds_F77 \
23239 archive_expsym_cmds_FC \
23240 module_cmds_F77 \
23241 module_cmds_FC \
23242 module_expsym_cmds_F77 \
23243 module_expsym_cmds_FC \
23244 export_symbols_cmds_F77 \
23245 export_symbols_cmds_FC \
23246 prelink_cmds_F77 \
23247 prelink_cmds_FC \
23248 postlink_cmds_F77 \
23249 postlink_cmds_FC; do
23250 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23251 *[\\\\\\\`\\"\\\$]*)
23252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23253 ;;
23254 *)
23255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23256 ;;
23257 esac
23258 done
23259
23260 ac_aux_dir='$ac_aux_dir'
23261 xsi_shell='$xsi_shell'
23262 lt_shell_append='$lt_shell_append'
23263
23264 # See if we are running on zsh, and set the options which allow our
23265 # commands through without removal of \ escapes INIT.
23266 if test -n "\${ZSH_VERSION+set}" ; then
23267 setopt NO_GLOB_SUBST
23268 fi
23269
23270
23271 PACKAGE='$PACKAGE'
23272 VERSION='$VERSION'
23273 TIMESTAMP='$TIMESTAMP'
23274 RM='$RM'
23275 ofile='$ofile'
23276
23277
23278
23279
23280
23281
23282
23283
23284 _ACEOF
23285
23286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23287
23288 # Handling of arguments.
23289 for ac_config_target in $ac_config_targets
23290 do
23291 case $ac_config_target in
23292 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23293 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23294 "include/HE5_config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/HE5_config.h" ;;
23295 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23296 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
23297 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
23298 "gctp/Makefile") CONFIG_FILES="$CONFIG_FILES gctp/Makefile" ;;
23299 "gctp/include/Makefile") CONFIG_FILES="$CONFIG_FILES gctp/include/Makefile" ;;
23300 "gctp/src/Makefile") CONFIG_FILES="$CONFIG_FILES gctp/src/Makefile" ;;
23301 "samples/Makefile") CONFIG_FILES="$CONFIG_FILES samples/Makefile" ;;
23302 "testdrivers/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/Makefile" ;;
23303 "testdrivers/grid/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/grid/Makefile" ;;
23304 "testdrivers/point/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/point/Makefile" ;;
23305 "testdrivers/swath/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/swath/Makefile" ;;
23306 "testdrivers/za/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/za/Makefile" ;;
23307 "testdrivers/threads/Makefile") CONFIG_FILES="$CONFIG_FILES testdrivers/threads/Makefile" ;;
23308 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
23309
23310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23311 esac
23312 done
23313
23314
23315 # If the user did not use the arguments to specify the items to instantiate,
23316 # then the envvar interface is used. Set only those that are not.
23317 # We use the long form for the default assignment because of an extremely
23318 # bizarre bug on SunOS 4.1.3.
23319 if $ac_need_defaults; then
23320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23323 fi
23324
23325 # Have a temporary directory for convenience. Make it in the build tree
23326 # simply because there is no reason against having it here, and in addition,
23327 # creating and moving files from /tmp can sometimes cause problems.
23328 # Hook for its removal unless debugging.
23329 # Note that there is a small window in which the directory will not be cleaned:
23330 # after its creation but before its name has been assigned to `$tmp'.
23331 $debug ||
23332 {
23333 tmp= ac_tmp=
23334 trap 'exit_status=$?
23335 : "${ac_tmp:=$tmp}"
23336 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23337 ' 0
23338 trap 'as_fn_exit 1' 1 2 13 15
23339 }
23340 # Create a (secure) tmp directory for tmp files.
23341
23342 {
23343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23344 test -d "$tmp"
23345 } ||
23346 {
23347 tmp=./conf$$-$RANDOM
23348 (umask 077 && mkdir "$tmp")
23349 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23350 ac_tmp=$tmp
23351
23352 # Set up the scripts for CONFIG_FILES section.
23353 # No need to generate them if there are no CONFIG_FILES.
23354 # This happens for instance with `./config.status config.h'.
23355 if test -n "$CONFIG_FILES"; then
23356
23357
23358 ac_cr=`echo X | tr X '\015'`
23359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23360 # But we know of no other shell where ac_cr would be empty at this
23361 # point, so we can use a bashism as a fallback.
23362 if test "x$ac_cr" = x; then
23363 eval ac_cr=\$\'\\r\'
23364 fi
23365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23367 ac_cs_awk_cr='\\r'
23368 else
23369 ac_cs_awk_cr=$ac_cr
23370 fi
23371
23372 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23373 _ACEOF
23374
23375
23376 {
23377 echo "cat >conf$$subs.awk <<_ACEOF" &&
23378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23379 echo "_ACEOF"
23380 } >conf$$subs.sh ||
23381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23383 ac_delim='%!_!# '
23384 for ac_last_try in false false false false false :; do
23385 . ./conf$$subs.sh ||
23386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23387
23388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23389 if test $ac_delim_n = $ac_delim_num; then
23390 break
23391 elif $ac_last_try; then
23392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23393 else
23394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23395 fi
23396 done
23397 rm -f conf$$subs.sh
23398
23399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23400 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23401 _ACEOF
23402 sed -n '
23403 h
23404 s/^/S["/; s/!.*/"]=/
23405 p
23406 g
23407 s/^[^!]*!//
23408 :repl
23409 t repl
23410 s/'"$ac_delim"'$//
23411 t delim
23412 :nl
23413 h
23414 s/\(.\{148\}\)..*/\1/
23415 t more1
23416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23417 p
23418 n
23419 b repl
23420 :more1
23421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23422 p
23423 g
23424 s/.\{148\}//
23425 t nl
23426 :delim
23427 h
23428 s/\(.\{148\}\)..*/\1/
23429 t more2
23430 s/["\\]/\\&/g; s/^/"/; s/$/"/
23431 p
23432 b
23433 :more2
23434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23435 p
23436 g
23437 s/.\{148\}//
23438 t delim
23439 ' <conf$$subs.awk | sed '
23440 /^[^""]/{
23441 N
23442 s/\n//
23443 }
23444 ' >>$CONFIG_STATUS || ac_write_fail=1
23445 rm -f conf$$subs.awk
23446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23447 _ACAWK
23448 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23449 for (key in S) S_is_set[key] = 1
23450 FS = ""
23451
23452 }
23453 {
23454 line = $ 0
23455 nfields = split(line, field, "@")
23456 substed = 0
23457 len = length(field[1])
23458 for (i = 2; i < nfields; i++) {
23459 key = field[i]
23460 keylen = length(key)
23461 if (S_is_set[key]) {
23462 value = S[key]
23463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23464 len += length(value) + length(field[++i])
23465 substed = 1
23466 } else
23467 len += 1 + keylen
23468 }
23469
23470 print line
23471 }
23472
23473 _ACAWK
23474 _ACEOF
23475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23476 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23477 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23478 else
23479 cat
23480 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23481 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23482 _ACEOF
23483
23484 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23485 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23486 # trailing colons and then remove the whole line if VPATH becomes empty
23487 # (actually we leave an empty line to preserve line numbers).
23488 if test "x$srcdir" = x.; then
23489 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23490 h
23491 s///
23492 s/^/:/
23493 s/[ ]*$/:/
23494 s/:\$(srcdir):/:/g
23495 s/:\${srcdir}:/:/g
23496 s/:@srcdir@:/:/g
23497 s/^:*//
23498 s/:*$//
23499 x
23500 s/\(=[ ]*\).*/\1/
23501 G
23502 s/\n//
23503 s/^[^=]*=[ ]*$//
23504 }'
23505 fi
23506
23507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23508 fi # test -n "$CONFIG_FILES"
23509
23510 # Set up the scripts for CONFIG_HEADERS section.
23511 # No need to generate them if there are no CONFIG_HEADERS.
23512 # This happens for instance with `./config.status Makefile'.
23513 if test -n "$CONFIG_HEADERS"; then
23514 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23515 BEGIN {
23516 _ACEOF
23517
23518 # Transform confdefs.h into an awk script `defines.awk', embedded as
23519 # here-document in config.status, that substitutes the proper values into
23520 # config.h.in to produce config.h.
23521
23522 # Create a delimiter string that does not exist in confdefs.h, to ease
23523 # handling of long lines.
23524 ac_delim='%!_!# '
23525 for ac_last_try in false false :; do
23526 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23527 if test -z "$ac_tt"; then
23528 break
23529 elif $ac_last_try; then
23530 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23531 else
23532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23533 fi
23534 done
23535
23536 # For the awk script, D is an array of macro values keyed by name,
23537 # likewise P contains macro parameters if any. Preserve backslash
23538 # newline sequences.
23539
23540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23541 sed -n '
23542 s/.\{148\}/&'"$ac_delim"'/g
23543 t rset
23544 :rset
23545 s/^[ ]*#[ ]*define[ ][ ]*/ /
23546 t def
23547 d
23548 :def
23549 s/\\$//
23550 t bsnl
23551 s/["\\]/\\&/g
23552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23553 D["\1"]=" \3"/p
23554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23555 d
23556 :bsnl
23557 s/["\\]/\\&/g
23558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23559 D["\1"]=" \3\\\\\\n"\\/p
23560 t cont
23561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23562 t cont
23563 d
23564 :cont
23565 n
23566 s/.\{148\}/&'"$ac_delim"'/g
23567 t clear
23568 :clear
23569 s/\\$//
23570 t bsnlc
23571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23572 d
23573 :bsnlc
23574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23575 b cont
23576 ' <confdefs.h | sed '
23577 s/'"$ac_delim"'/"\\\
23578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23579
23580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23581 for (key in D) D_is_set[key] = 1
23582 FS = ""
23583 }
23584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23585 line = \$ 0
23586 split(line, arg, " ")
23587 if (arg[1] == "#") {
23588 defundef = arg[2]
23589 mac1 = arg[3]
23590 } else {
23591 defundef = substr(arg[1], 2)
23592 mac1 = arg[2]
23593 }
23594 split(mac1, mac2, "(") #)
23595 macro = mac2[1]
23596 prefix = substr(line, 1, index(line, defundef) - 1)
23597 if (D_is_set[macro]) {
23598 # Preserve the white space surrounding the "#".
23599 print prefix "define", macro P[macro] D[macro]
23600 next
23601 } else {
23602 # Replace #undef with comments. This is necessary, for example,
23603 # in the case of _POSIX_SOURCE, which is predefined and required
23604 # on some systems where configure will not decide to define it.
23605 if (defundef == "undef") {
23606 print "/*", prefix defundef, macro, "*/"
23607 next
23608 }
23609 }
23610 }
23611 { print }
23612 _ACAWK
23613 _ACEOF
23614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23615 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23616 fi # test -n "$CONFIG_HEADERS"
23617
23618
23619 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23620 shift
23621 for ac_tag
23622 do
23623 case $ac_tag in
23624 :[FHLC]) ac_mode=$ac_tag; continue;;
23625 esac
23626 case $ac_mode$ac_tag in
23627 :[FHL]*:*);;
23628 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23629 :[FH]-) ac_tag=-:-;;
23630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23631 esac
23632 ac_save_IFS=$IFS
23633 IFS=:
23634 set x $ac_tag
23635 IFS=$ac_save_IFS
23636 shift
23637 ac_file=$1
23638 shift
23639
23640 case $ac_mode in
23641 :L) ac_source=$1;;
23642 :[FH])
23643 ac_file_inputs=
23644 for ac_f
23645 do
23646 case $ac_f in
23647 -) ac_f="$ac_tmp/stdin";;
23648 *) # Look for the file first in the build tree, then in the source tree
23649 # (if the path is not absolute). The absolute path cannot be DOS-style,
23650 # because $ac_f cannot contain `:'.
23651 test -f "$ac_f" ||
23652 case $ac_f in
23653 [\\/$]*) false;;
23654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23655 esac ||
23656 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23657 esac
23658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23659 as_fn_append ac_file_inputs " '$ac_f'"
23660 done
23661
23662 # Let's still pretend it is `configure' which instantiates (i.e., don't
23663 # use $as_me), people would be surprised to read:
23664 # /* config.h. Generated by config.status. */
23665 configure_input='Generated from '`
23666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23667 `' by configure.'
23668 if test x"$ac_file" != x-; then
23669 configure_input="$ac_file. $configure_input"
23670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23671 $as_echo "$as_me: creating $ac_file" >&6;}
23672 fi
23673 # Neutralize special characters interpreted by sed in replacement strings.
23674 case $configure_input in #(
23675 *\&* | *\|* | *\\* )
23676 ac_sed_conf_input=`$as_echo "$configure_input" |
23677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23678 *) ac_sed_conf_input=$configure_input;;
23679 esac
23680
23681 case $ac_tag in
23682 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23684 esac
23685 ;;
23686 esac
23687
23688 ac_dir=`$as_dirname -- "$ac_file" ||
23689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23690 X"$ac_file" : 'X\(//\)[^/]' \| \
23691 X"$ac_file" : 'X\(//\)$' \| \
23692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23693 $as_echo X"$ac_file" |
23694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23695 s//\1/
23696 q
23697 }
23698 /^X\(\/\/\)[^/].*/{
23699 s//\1/
23700 q
23701 }
23702 /^X\(\/\/\)$/{
23703 s//\1/
23704 q
23705 }
23706 /^X\(\/\).*/{
23707 s//\1/
23708 q
23709 }
23710 s/.*/./; q'`
23711 as_dir="$ac_dir"; as_fn_mkdir_p
23712 ac_builddir=.
23713
23714 case "$ac_dir" in
23715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23716 *)
23717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23718 # A ".." for each directory in $ac_dir_suffix.
23719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23720 case $ac_top_builddir_sub in
23721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23723 esac ;;
23724 esac
23725 ac_abs_top_builddir=$ac_pwd
23726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23727 # for backward compatibility:
23728 ac_top_builddir=$ac_top_build_prefix
23729
23730 case $srcdir in
23731 .) # We are building in place.
23732 ac_srcdir=.
23733 ac_top_srcdir=$ac_top_builddir_sub
23734 ac_abs_top_srcdir=$ac_pwd ;;
23735 [\\/]* | ?:[\\/]* ) # Absolute name.
23736 ac_srcdir=$srcdir$ac_dir_suffix;
23737 ac_top_srcdir=$srcdir
23738 ac_abs_top_srcdir=$srcdir ;;
23739 *) # Relative name.
23740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23741 ac_top_srcdir=$ac_top_build_prefix$srcdir
23742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23743 esac
23744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23745
23746
23747 case $ac_mode in
23748 :F)
23749 #
23750 # CONFIG_FILE
23751 #
23752
23753 case $INSTALL in
23754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23756 esac
23757 ac_MKDIR_P=$MKDIR_P
23758 case $MKDIR_P in
23759 [\\/$]* | ?:[\\/]* ) ;;
23760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23761 esac
23762 _ACEOF
23763
23764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23765 # If the template does not know about datarootdir, expand it.
23766 # FIXME: This hack should be removed a few years after 2.60.
23767 ac_datarootdir_hack=; ac_datarootdir_seen=
23768 ac_sed_dataroot='
23769 /datarootdir/ {
23770 p
23771 q
23772 }
23773 /@datadir@/p
23774 /@docdir@/p
23775 /@infodir@/p
23776 /@localedir@/p
23777 /@mandir@/p'
23778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23779 *datarootdir*) ac_datarootdir_seen=yes;;
23780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23782 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23783 _ACEOF
23784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23785 ac_datarootdir_hack='
23786 s&@datadir@&$datadir&g
23787 s&@docdir@&$docdir&g
23788 s&@infodir@&$infodir&g
23789 s&@localedir@&$localedir&g
23790 s&@mandir@&$mandir&g
23791 s&\\\${datarootdir}&$datarootdir&g' ;;
23792 esac
23793 _ACEOF
23794
23795 # Neutralize VPATH when `$srcdir' = `.'.
23796 # Shell code in configure.ac might set extrasub.
23797 # FIXME: do we really want to maintain this feature?
23798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23799 ac_sed_extra="$ac_vpsub
23800 $extrasub
23801 _ACEOF
23802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23803 :t
23804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23805 s|@configure_input@|$ac_sed_conf_input|;t t
23806 s&@top_builddir@&$ac_top_builddir_sub&;t t
23807 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23808 s&@srcdir@&$ac_srcdir&;t t
23809 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23810 s&@top_srcdir@&$ac_top_srcdir&;t t
23811 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23812 s&@builddir@&$ac_builddir&;t t
23813 s&@abs_builddir@&$ac_abs_builddir&;t t
23814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23815 s&@INSTALL@&$ac_INSTALL&;t t
23816 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23817 $ac_datarootdir_hack
23818 "
23819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23821
23822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23825 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23827 which seems to be undefined. Please make sure it is defined" >&5
23828 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23829 which seems to be undefined. Please make sure it is defined" >&2;}
23830
23831 rm -f "$ac_tmp/stdin"
23832 case $ac_file in
23833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23835 esac \
23836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23837 ;;
23838 :H)
23839 #
23840 # CONFIG_HEADER
23841 #
23842 if test x"$ac_file" != x-; then
23843 {
23844 $as_echo "/* $configure_input */" \
23845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23846 } >"$ac_tmp/config.h" \
23847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23850 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23851 else
23852 rm -f "$ac_file"
23853 mv "$ac_tmp/config.h" "$ac_file" \
23854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23855 fi
23856 else
23857 $as_echo "/* $configure_input */" \
23858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23859 || as_fn_error $? "could not create -" "$LINENO" 5
23860 fi
23861 # Compute "$ac_file"'s index in $config_headers.
23862 _am_arg="$ac_file"
23863 _am_stamp_count=1
23864 for _am_header in $config_headers :; do
23865 case $_am_header in
23866 $_am_arg | $_am_arg:* )
23867 break ;;
23868 * )
23869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23870 esac
23871 done
23872 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23873 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23874 X"$_am_arg" : 'X\(//\)[^/]' \| \
23875 X"$_am_arg" : 'X\(//\)$' \| \
23876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23877 $as_echo X"$_am_arg" |
23878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23879 s//\1/
23880 q
23881 }
23882 /^X\(\/\/\)[^/].*/{
23883 s//\1/
23884 q
23885 }
23886 /^X\(\/\/\)$/{
23887 s//\1/
23888 q
23889 }
23890 /^X\(\/\).*/{
23891 s//\1/
23892 q
23893 }
23894 s/.*/./; q'`/stamp-h$_am_stamp_count
23895 ;;
23896
23897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23898 $as_echo "$as_me: executing $ac_file commands" >&6;}
23899 ;;
23900 esac
23901
23902
23903 case $ac_file$ac_mode in
23904 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23905 # Older Autoconf quotes --file arguments for eval, but not when files
23906 # are listed without --file. Let's play safe and only enable the eval
23907 # if we detect the quoting.
23908 case $CONFIG_FILES in
23909 *\'*) eval set x "$CONFIG_FILES" ;;
23910 *) set x $CONFIG_FILES ;;
23911 esac
23912 shift
23913 for mf
23914 do
23915 # Strip MF so we end up with the name of the file.
23916 mf=`echo "$mf" | sed -e 's/:.*$//'`
23917 # Check whether this is an Automake generated Makefile or not.
23918 # We used to match only the files named 'Makefile.in', but
23919 # some people rename them; so instead we look at the file content.
23920 # Grep'ing the first line is not enough: some people post-process
23921 # each Makefile.in and add a new line on top of each file to say so.
23922 # Grep'ing the whole file is not good either: AIX grep has a line
23923 # limit of 2048, but all sed's we know have understand at least 4000.
23924 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23925 dirpart=`$as_dirname -- "$mf" ||
23926 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23927 X"$mf" : 'X\(//\)[^/]' \| \
23928 X"$mf" : 'X\(//\)$' \| \
23929 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23930 $as_echo X"$mf" |
23931 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23932 s//\1/
23933 q
23934 }
23935 /^X\(\/\/\)[^/].*/{
23936 s//\1/
23937 q
23938 }
23939 /^X\(\/\/\)$/{
23940 s//\1/
23941 q
23942 }
23943 /^X\(\/\).*/{
23944 s//\1/
23945 q
23946 }
23947 s/.*/./; q'`
23948 else
23949 continue
23950 fi
23951 # Extract the definition of DEPDIR, am__include, and am__quote
23952 # from the Makefile without running 'make'.
23953 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23954 test -z "$DEPDIR" && continue
23955 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23956 test -z "$am__include" && continue
23957 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23958 # Find all dependency output files, they are included files with
23959 # $(DEPDIR) in their names. We invoke sed twice because it is the
23960 # simplest approach to changing $(DEPDIR) to its actual value in the
23961 # expansion.
23962 for file in `sed -n "
23963 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23964 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23965 # Make sure the directory exists.
23966 test -f "$dirpart/$file" && continue
23967 fdir=`$as_dirname -- "$file" ||
23968 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23969 X"$file" : 'X\(//\)[^/]' \| \
23970 X"$file" : 'X\(//\)$' \| \
23971 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23972 $as_echo X"$file" |
23973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23974 s//\1/
23975 q
23976 }
23977 /^X\(\/\/\)[^/].*/{
23978 s//\1/
23979 q
23980 }
23981 /^X\(\/\/\)$/{
23982 s//\1/
23983 q
23984 }
23985 /^X\(\/\).*/{
23986 s//\1/
23987 q
23988 }
23989 s/.*/./; q'`
23990 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23991 # echo "creating $dirpart/$file"
23992 echo '# dummy' > "$dirpart/$file"
23993 done
23994 done
23995 }
23996 ;;
23997 "libtool":C)
23998
23999 # See if we are running on zsh, and set the options which allow our
24000 # commands through without removal of \ escapes.
24001 if test -n "${ZSH_VERSION+set}" ; then
24002 setopt NO_GLOB_SUBST
24003 fi
24004
24005 cfgfile="${ofile}T"
24006 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24007 $RM "$cfgfile"
24008
24009 cat <<_LT_EOF >> "$cfgfile"
24010 #! $SHELL
24011
24012 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24013 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24014 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24015 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24016 #
24017 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24018 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
24019 # Foundation, Inc.
24020 # Written by Gordon Matzigkeit, 1996
24021 #
24022 # This file is part of GNU Libtool.
24023 #
24024 # GNU Libtool is free software; you can redistribute it and/or
24025 # modify it under the terms of the GNU General Public License as
24026 # published by the Free Software Foundation; either version 2 of
24027 # the License, or (at your option) any later version.
24028 #
24029 # As a special exception to the GNU General Public License,
24030 # if you distribute this file as part of a program or library that
24031 # is built using GNU Libtool, you may include this file under the
24032 # same distribution terms that you use for the rest of that program.
24033 #
24034 # GNU Libtool is distributed in the hope that it will be useful,
24035 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24036 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24037 # GNU General Public License for more details.
24038 #
24039 # You should have received a copy of the GNU General Public License
24040 # along with GNU Libtool; see the file COPYING. If not, a copy
24041 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24042 # obtained by writing to the Free Software Foundation, Inc.,
24043 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24044
24045
24046 # The names of the tagged configurations supported by this script.
24047 available_tags="F77 FC "
24048
24049 # ### BEGIN LIBTOOL CONFIG
24050
24051 # Whether or not to build shared libraries.
24052 build_libtool_libs=$enable_shared
24053
24054 # Which release of libtool.m4 was used?
24055 macro_version=$macro_version
24056 macro_revision=$macro_revision
24057
24058 # Whether or not to build static libraries.
24059 build_old_libs=$enable_static
24060
24061 # What type of objects to build.
24062 pic_mode=$pic_mode
24063
24064 # Whether or not to optimize for fast installation.
24065 fast_install=$enable_fast_install
24066
24067 # Shell to use when invoking shell scripts.
24068 SHELL=$lt_SHELL
24069
24070 # An echo program that protects backslashes.
24071 ECHO=$lt_ECHO
24072
24073 # The PATH separator for the build system.
24074 PATH_SEPARATOR=$lt_PATH_SEPARATOR
24075
24076 # The host system.
24077 host_alias=$host_alias
24078 host=$host
24079 host_os=$host_os
24080
24081 # The build system.
24082 build_alias=$build_alias
24083 build=$build
24084 build_os=$build_os
24085
24086 # A sed program that does not truncate output.
24087 SED=$lt_SED
24088
24089 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24090 Xsed="\$SED -e 1s/^X//"
24091
24092 # A grep program that handles long lines.
24093 GREP=$lt_GREP
24094
24095 # An ERE matcher.
24096 EGREP=$lt_EGREP
24097
24098 # A literal string matcher.
24099 FGREP=$lt_FGREP
24100
24101 # A BSD- or MS-compatible name lister.
24102 NM=$lt_NM
24103
24104 # Whether we need soft or hard links.
24105 LN_S=$lt_LN_S
24106
24107 # What is the maximum length of a command?
24108 max_cmd_len=$max_cmd_len
24109
24110 # Object file suffix (normally "o").
24111 objext=$ac_objext
24112
24113 # Executable file suffix (normally "").
24114 exeext=$exeext
24115
24116 # whether the shell understands "unset".
24117 lt_unset=$lt_unset
24118
24119 # turn spaces into newlines.
24120 SP2NL=$lt_lt_SP2NL
24121
24122 # turn newlines into spaces.
24123 NL2SP=$lt_lt_NL2SP
24124
24125 # convert \$build file names to \$host format.
24126 to_host_file_cmd=$lt_cv_to_host_file_cmd
24127
24128 # convert \$build files to toolchain format.
24129 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
24130
24131 # An object symbol dumper.
24132 OBJDUMP=$lt_OBJDUMP
24133
24134 # Method to check whether dependent libraries are shared objects.
24135 deplibs_check_method=$lt_deplibs_check_method
24136
24137 # Command to use when deplibs_check_method = "file_magic".
24138 file_magic_cmd=$lt_file_magic_cmd
24139
24140 # How to find potential files when deplibs_check_method = "file_magic".
24141 file_magic_glob=$lt_file_magic_glob
24142
24143 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
24144 want_nocaseglob=$lt_want_nocaseglob
24145
24146 # DLL creation program.
24147 DLLTOOL=$lt_DLLTOOL
24148
24149 # Command to associate shared and link libraries.
24150 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
24151
24152 # The archiver.
24153 AR=$lt_AR
24154
24155 # Flags to create an archive.
24156 AR_FLAGS=$lt_AR_FLAGS
24157
24158 # How to feed a file listing to the archiver.
24159 archiver_list_spec=$lt_archiver_list_spec
24160
24161 # A symbol stripping program.
24162 STRIP=$lt_STRIP
24163
24164 # Commands used to install an old-style archive.
24165 RANLIB=$lt_RANLIB
24166 old_postinstall_cmds=$lt_old_postinstall_cmds
24167 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24168
24169 # Whether to use a lock for old archive extraction.
24170 lock_old_archive_extraction=$lock_old_archive_extraction
24171
24172 # A C compiler.
24173 LTCC=$lt_CC
24174
24175 # LTCC compiler flags.
24176 LTCFLAGS=$lt_CFLAGS
24177
24178 # Take the output of nm and produce a listing of raw symbols and C names.
24179 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24180
24181 # Transform the output of nm in a proper C declaration.
24182 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24183
24184 # Transform the output of nm in a C name address pair.
24185 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24186
24187 # Transform the output of nm in a C name address pair when lib prefix is needed.
24188 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24189
24190 # Specify filename containing input files for \$NM.
24191 nm_file_list_spec=$lt_nm_file_list_spec
24192
24193 # The root where to search for dependent libraries,and in which our libraries should be installed.
24194 lt_sysroot=$lt_sysroot
24195
24196 # The name of the directory that contains temporary libtool files.
24197 objdir=$objdir
24198
24199 # Used to examine libraries when file_magic_cmd begins with "file".
24200 MAGIC_CMD=$MAGIC_CMD
24201
24202 # Must we lock files when doing compilation?
24203 need_locks=$lt_need_locks
24204
24205 # Manifest tool.
24206 MANIFEST_TOOL=$lt_MANIFEST_TOOL
24207
24208 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24209 DSYMUTIL=$lt_DSYMUTIL
24210
24211 # Tool to change global to local symbols on Mac OS X.
24212 NMEDIT=$lt_NMEDIT
24213
24214 # Tool to manipulate fat objects and archives on Mac OS X.
24215 LIPO=$lt_LIPO
24216
24217 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24218 OTOOL=$lt_OTOOL
24219
24220 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24221 OTOOL64=$lt_OTOOL64
24222
24223 # Old archive suffix (normally "a").
24224 libext=$libext
24225
24226 # Shared library suffix (normally ".so").
24227 shrext_cmds=$lt_shrext_cmds
24228
24229 # The commands to extract the exported symbol list from a shared archive.
24230 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24231
24232 # Variables whose values should be saved in libtool wrapper scripts and
24233 # restored at link time.
24234 variables_saved_for_relink=$lt_variables_saved_for_relink
24235
24236 # Do we need the "lib" prefix for modules?
24237 need_lib_prefix=$need_lib_prefix
24238
24239 # Do we need a version for libraries?
24240 need_version=$need_version
24241
24242 # Library versioning type.
24243 version_type=$version_type
24244
24245 # Shared library runtime path variable.
24246 runpath_var=$runpath_var
24247
24248 # Shared library path variable.
24249 shlibpath_var=$shlibpath_var
24250
24251 # Is shlibpath searched before the hard-coded library search path?
24252 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24253
24254 # Format of library name prefix.
24255 libname_spec=$lt_libname_spec
24256
24257 # List of archive names. First name is the real one, the rest are links.
24258 # The last name is the one that the linker finds with -lNAME
24259 library_names_spec=$lt_library_names_spec
24260
24261 # The coded name of the library, if different from the real name.
24262 soname_spec=$lt_soname_spec
24263
24264 # Permission mode override for installation of shared libraries.
24265 install_override_mode=$lt_install_override_mode
24266
24267 # Command to use after installation of a shared archive.
24268 postinstall_cmds=$lt_postinstall_cmds
24269
24270 # Command to use after uninstallation of a shared archive.
24271 postuninstall_cmds=$lt_postuninstall_cmds
24272
24273 # Commands used to finish a libtool library installation in a directory.
24274 finish_cmds=$lt_finish_cmds
24275
24276 # As "finish_cmds", except a single script fragment to be evaled but
24277 # not shown.
24278 finish_eval=$lt_finish_eval
24279
24280 # Whether we should hardcode library paths into libraries.
24281 hardcode_into_libs=$hardcode_into_libs
24282
24283 # Compile-time system search path for libraries.
24284 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24285
24286 # Run-time system search path for libraries.
24287 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24288
24289 # Whether dlopen is supported.
24290 dlopen_support=$enable_dlopen
24291
24292 # Whether dlopen of programs is supported.
24293 dlopen_self=$enable_dlopen_self
24294
24295 # Whether dlopen of statically linked programs is supported.
24296 dlopen_self_static=$enable_dlopen_self_static
24297
24298 # Commands to strip libraries.
24299 old_striplib=$lt_old_striplib
24300 striplib=$lt_striplib
24301
24302
24303 # The linker used to build libraries.
24304 LD=$lt_LD
24305
24306 # How to create reloadable object files.
24307 reload_flag=$lt_reload_flag
24308 reload_cmds=$lt_reload_cmds
24309
24310 # Commands used to build an old-style archive.
24311 old_archive_cmds=$lt_old_archive_cmds
24312
24313 # A language specific compiler.
24314 CC=$lt_compiler
24315
24316 # Is the compiler the GNU compiler?
24317 with_gcc=$GCC
24318
24319 # Compiler flag to turn off builtin functions.
24320 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24321
24322 # Additional compiler flags for building library objects.
24323 pic_flag=$lt_lt_prog_compiler_pic
24324
24325 # How to pass a linker flag through the compiler.
24326 wl=$lt_lt_prog_compiler_wl
24327
24328 # Compiler flag to prevent dynamic linking.
24329 link_static_flag=$lt_lt_prog_compiler_static
24330
24331 # Does compiler simultaneously support -c and -o options?
24332 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24333
24334 # Whether or not to add -lc for building shared libraries.
24335 build_libtool_need_lc=$archive_cmds_need_lc
24336
24337 # Whether or not to disallow shared libs when runtime libs are static.
24338 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24339
24340 # Compiler flag to allow reflexive dlopens.
24341 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24342
24343 # Compiler flag to generate shared objects directly from archives.
24344 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24345
24346 # Whether the compiler copes with passing no objects directly.
24347 compiler_needs_object=$lt_compiler_needs_object
24348
24349 # Create an old-style archive from a shared archive.
24350 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24351
24352 # Create a temporary old-style archive to link instead of a shared archive.
24353 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24354
24355 # Commands used to build a shared archive.
24356 archive_cmds=$lt_archive_cmds
24357 archive_expsym_cmds=$lt_archive_expsym_cmds
24358
24359 # Commands used to build a loadable module if different from building
24360 # a shared archive.
24361 module_cmds=$lt_module_cmds
24362 module_expsym_cmds=$lt_module_expsym_cmds
24363
24364 # Whether we are building with GNU ld or not.
24365 with_gnu_ld=$lt_with_gnu_ld
24366
24367 # Flag that allows shared libraries with undefined symbols to be built.
24368 allow_undefined_flag=$lt_allow_undefined_flag
24369
24370 # Flag that enforces no undefined symbols.
24371 no_undefined_flag=$lt_no_undefined_flag
24372
24373 # Flag to hardcode \$libdir into a binary during linking.
24374 # This must work even if \$libdir does not exist
24375 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24376
24377 # Whether we need a single "-rpath" flag with a separated argument.
24378 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24379
24380 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24381 # DIR into the resulting binary.
24382 hardcode_direct=$hardcode_direct
24383
24384 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24385 # DIR into the resulting binary and the resulting library dependency is
24386 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24387 # library is relocated.
24388 hardcode_direct_absolute=$hardcode_direct_absolute
24389
24390 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24391 # into the resulting binary.
24392 hardcode_minus_L=$hardcode_minus_L
24393
24394 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24395 # into the resulting binary.
24396 hardcode_shlibpath_var=$hardcode_shlibpath_var
24397
24398 # Set to "yes" if building a shared library automatically hardcodes DIR
24399 # into the library and all subsequent libraries and executables linked
24400 # against it.
24401 hardcode_automatic=$hardcode_automatic
24402
24403 # Set to yes if linker adds runtime paths of dependent libraries
24404 # to runtime path list.
24405 inherit_rpath=$inherit_rpath
24406
24407 # Whether libtool must link a program against all its dependency libraries.
24408 link_all_deplibs=$link_all_deplibs
24409
24410 # Set to "yes" if exported symbols are required.
24411 always_export_symbols=$always_export_symbols
24412
24413 # The commands to list exported symbols.
24414 export_symbols_cmds=$lt_export_symbols_cmds
24415
24416 # Symbols that should not be listed in the preloaded symbols.
24417 exclude_expsyms=$lt_exclude_expsyms
24418
24419 # Symbols that must always be exported.
24420 include_expsyms=$lt_include_expsyms
24421
24422 # Commands necessary for linking programs (against libraries) with templates.
24423 prelink_cmds=$lt_prelink_cmds
24424
24425 # Commands necessary for finishing linking programs.
24426 postlink_cmds=$lt_postlink_cmds
24427
24428 # Specify filename containing input files.
24429 file_list_spec=$lt_file_list_spec
24430
24431 # How to hardcode a shared library path into an executable.
24432 hardcode_action=$hardcode_action
24433
24434 # The directories searched by this compiler when creating a shared library.
24435 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24436
24437 # Dependencies to place before and after the objects being linked to
24438 # create a shared library.
24439 predep_objects=$lt_predep_objects
24440 postdep_objects=$lt_postdep_objects
24441 predeps=$lt_predeps
24442 postdeps=$lt_postdeps
24443
24444 # The library search path used internally by the compiler when linking
24445 # a shared library.
24446 compiler_lib_search_path=$lt_compiler_lib_search_path
24447
24448 # ### END LIBTOOL CONFIG
24449
24450 _LT_EOF
24451
24452 case $host_os in
24453 aix3*)
24454 cat <<\_LT_EOF >> "$cfgfile"
24455 # AIX sometimes has problems with the GCC collect2 program. For some
24456 # reason, if we set the COLLECT_NAMES environment variable, the problems
24457 # vanish in a puff of smoke.
24458 if test "X${COLLECT_NAMES+set}" != Xset; then
24459 COLLECT_NAMES=
24460 export COLLECT_NAMES
24461 fi
24462 _LT_EOF
24463 ;;
24464 esac
24465
24466
24467 ltmain="$ac_aux_dir/ltmain.sh"
24468
24469
24470 # We use sed instead of cat because bash on DJGPP gets confused if
24471 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24472 # text mode, it properly converts lines to CR/LF. This bash problem
24473 # is reportedly fixed, but why not run on old versions too?
24474 sed '$q' "$ltmain" >> "$cfgfile" \
24475 || (rm -f "$cfgfile"; exit 1)
24476
24477 if test x"$xsi_shell" = xyes; then
24478 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
24479 func_dirname ()\
24480 {\
24481 \ case ${1} in\
24482 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24483 \ * ) func_dirname_result="${3}" ;;\
24484 \ esac\
24485 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
24486 && mv -f "$cfgfile.tmp" "$cfgfile" \
24487 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24488 test 0 -eq $? || _lt_function_replace_fail=:
24489
24490
24491 sed -e '/^func_basename ()$/,/^} # func_basename /c\
24492 func_basename ()\
24493 {\
24494 \ func_basename_result="${1##*/}"\
24495 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
24496 && mv -f "$cfgfile.tmp" "$cfgfile" \
24497 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24498 test 0 -eq $? || _lt_function_replace_fail=:
24499
24500
24501 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
24502 func_dirname_and_basename ()\
24503 {\
24504 \ case ${1} in\
24505 \ */*) func_dirname_result="${1%/*}${2}" ;;\
24506 \ * ) func_dirname_result="${3}" ;;\
24507 \ esac\
24508 \ func_basename_result="${1##*/}"\
24509 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
24510 && mv -f "$cfgfile.tmp" "$cfgfile" \
24511 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24512 test 0 -eq $? || _lt_function_replace_fail=:
24513
24514
24515 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
24516 func_stripname ()\
24517 {\
24518 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
24519 \ # positional parameters, so assign one to ordinary parameter first.\
24520 \ func_stripname_result=${3}\
24521 \ func_stripname_result=${func_stripname_result#"${1}"}\
24522 \ func_stripname_result=${func_stripname_result%"${2}"}\
24523 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
24524 && mv -f "$cfgfile.tmp" "$cfgfile" \
24525 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24526 test 0 -eq $? || _lt_function_replace_fail=:
24527
24528
24529 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
24530 func_split_long_opt ()\
24531 {\
24532 \ func_split_long_opt_name=${1%%=*}\
24533 \ func_split_long_opt_arg=${1#*=}\
24534 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
24535 && mv -f "$cfgfile.tmp" "$cfgfile" \
24536 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24537 test 0 -eq $? || _lt_function_replace_fail=:
24538
24539
24540 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
24541 func_split_short_opt ()\
24542 {\
24543 \ func_split_short_opt_arg=${1#??}\
24544 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
24545 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
24546 && mv -f "$cfgfile.tmp" "$cfgfile" \
24547 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24548 test 0 -eq $? || _lt_function_replace_fail=:
24549
24550
24551 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
24552 func_lo2o ()\
24553 {\
24554 \ case ${1} in\
24555 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
24556 \ *) func_lo2o_result=${1} ;;\
24557 \ esac\
24558 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
24559 && mv -f "$cfgfile.tmp" "$cfgfile" \
24560 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24561 test 0 -eq $? || _lt_function_replace_fail=:
24562
24563
24564 sed -e '/^func_xform ()$/,/^} # func_xform /c\
24565 func_xform ()\
24566 {\
24567 func_xform_result=${1%.*}.lo\
24568 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
24569 && mv -f "$cfgfile.tmp" "$cfgfile" \
24570 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24571 test 0 -eq $? || _lt_function_replace_fail=:
24572
24573
24574 sed -e '/^func_arith ()$/,/^} # func_arith /c\
24575 func_arith ()\
24576 {\
24577 func_arith_result=$(( $* ))\
24578 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
24579 && mv -f "$cfgfile.tmp" "$cfgfile" \
24580 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24581 test 0 -eq $? || _lt_function_replace_fail=:
24582
24583
24584 sed -e '/^func_len ()$/,/^} # func_len /c\
24585 func_len ()\
24586 {\
24587 func_len_result=${#1}\
24588 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
24589 && mv -f "$cfgfile.tmp" "$cfgfile" \
24590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24591 test 0 -eq $? || _lt_function_replace_fail=:
24592
24593 fi
24594
24595 if test x"$lt_shell_append" = xyes; then
24596 sed -e '/^func_append ()$/,/^} # func_append /c\
24597 func_append ()\
24598 {\
24599 eval "${1}+=\\${2}"\
24600 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
24601 && mv -f "$cfgfile.tmp" "$cfgfile" \
24602 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24603 test 0 -eq $? || _lt_function_replace_fail=:
24604
24605
24606 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
24607 func_append_quoted ()\
24608 {\
24609 \ func_quote_for_eval "${2}"\
24610 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
24611 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
24612 && mv -f "$cfgfile.tmp" "$cfgfile" \
24613 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24614 test 0 -eq $? || _lt_function_replace_fail=:
24615
24616
24617 # Save a `func_append' function call where possible by direct use of '+='
24618 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
24619 && mv -f "$cfgfile.tmp" "$cfgfile" \
24620 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24621 test 0 -eq $? || _lt_function_replace_fail=:
24622 else
24623 # Save a `func_append' function call even when '+=' is not available
24624 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
24625 && mv -f "$cfgfile.tmp" "$cfgfile" \
24626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
24627 test 0 -eq $? || _lt_function_replace_fail=:
24628 fi
24629
24630 if test x"$_lt_function_replace_fail" = x":"; then
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
24632 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
24633 fi
24634
24635
24636 mv -f "$cfgfile" "$ofile" ||
24637 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24638 chmod +x "$ofile"
24639
24640
24641 cat <<_LT_EOF >> "$ofile"
24642
24643 # ### BEGIN LIBTOOL TAG CONFIG: F77
24644
24645 # The linker used to build libraries.
24646 LD=$lt_LD_F77
24647
24648 # How to create reloadable object files.
24649 reload_flag=$lt_reload_flag_F77
24650 reload_cmds=$lt_reload_cmds_F77
24651
24652 # Commands used to build an old-style archive.
24653 old_archive_cmds=$lt_old_archive_cmds_F77
24654
24655 # A language specific compiler.
24656 CC=$lt_compiler_F77
24657
24658 # Is the compiler the GNU compiler?
24659 with_gcc=$GCC_F77
24660
24661 # Compiler flag to turn off builtin functions.
24662 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
24663
24664 # Additional compiler flags for building library objects.
24665 pic_flag=$lt_lt_prog_compiler_pic_F77
24666
24667 # How to pass a linker flag through the compiler.
24668 wl=$lt_lt_prog_compiler_wl_F77
24669
24670 # Compiler flag to prevent dynamic linking.
24671 link_static_flag=$lt_lt_prog_compiler_static_F77
24672
24673 # Does compiler simultaneously support -c and -o options?
24674 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
24675
24676 # Whether or not to add -lc for building shared libraries.
24677 build_libtool_need_lc=$archive_cmds_need_lc_F77
24678
24679 # Whether or not to disallow shared libs when runtime libs are static.
24680 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
24681
24682 # Compiler flag to allow reflexive dlopens.
24683 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
24684
24685 # Compiler flag to generate shared objects directly from archives.
24686 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
24687
24688 # Whether the compiler copes with passing no objects directly.
24689 compiler_needs_object=$lt_compiler_needs_object_F77
24690
24691 # Create an old-style archive from a shared archive.
24692 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
24693
24694 # Create a temporary old-style archive to link instead of a shared archive.
24695 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
24696
24697 # Commands used to build a shared archive.
24698 archive_cmds=$lt_archive_cmds_F77
24699 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
24700
24701 # Commands used to build a loadable module if different from building
24702 # a shared archive.
24703 module_cmds=$lt_module_cmds_F77
24704 module_expsym_cmds=$lt_module_expsym_cmds_F77
24705
24706 # Whether we are building with GNU ld or not.
24707 with_gnu_ld=$lt_with_gnu_ld_F77
24708
24709 # Flag that allows shared libraries with undefined symbols to be built.
24710 allow_undefined_flag=$lt_allow_undefined_flag_F77
24711
24712 # Flag that enforces no undefined symbols.
24713 no_undefined_flag=$lt_no_undefined_flag_F77
24714
24715 # Flag to hardcode \$libdir into a binary during linking.
24716 # This must work even if \$libdir does not exist
24717 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
24718
24719 # Whether we need a single "-rpath" flag with a separated argument.
24720 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
24721
24722 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24723 # DIR into the resulting binary.
24724 hardcode_direct=$hardcode_direct_F77
24725
24726 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24727 # DIR into the resulting binary and the resulting library dependency is
24728 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24729 # library is relocated.
24730 hardcode_direct_absolute=$hardcode_direct_absolute_F77
24731
24732 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24733 # into the resulting binary.
24734 hardcode_minus_L=$hardcode_minus_L_F77
24735
24736 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24737 # into the resulting binary.
24738 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
24739
24740 # Set to "yes" if building a shared library automatically hardcodes DIR
24741 # into the library and all subsequent libraries and executables linked
24742 # against it.
24743 hardcode_automatic=$hardcode_automatic_F77
24744
24745 # Set to yes if linker adds runtime paths of dependent libraries
24746 # to runtime path list.
24747 inherit_rpath=$inherit_rpath_F77
24748
24749 # Whether libtool must link a program against all its dependency libraries.
24750 link_all_deplibs=$link_all_deplibs_F77
24751
24752 # Set to "yes" if exported symbols are required.
24753 always_export_symbols=$always_export_symbols_F77
24754
24755 # The commands to list exported symbols.
24756 export_symbols_cmds=$lt_export_symbols_cmds_F77
24757
24758 # Symbols that should not be listed in the preloaded symbols.
24759 exclude_expsyms=$lt_exclude_expsyms_F77
24760
24761 # Symbols that must always be exported.
24762 include_expsyms=$lt_include_expsyms_F77
24763
24764 # Commands necessary for linking programs (against libraries) with templates.
24765 prelink_cmds=$lt_prelink_cmds_F77
24766
24767 # Commands necessary for finishing linking programs.
24768 postlink_cmds=$lt_postlink_cmds_F77
24769
24770 # Specify filename containing input files.
24771 file_list_spec=$lt_file_list_spec_F77
24772
24773 # How to hardcode a shared library path into an executable.
24774 hardcode_action=$hardcode_action_F77
24775
24776 # The directories searched by this compiler when creating a shared library.
24777 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
24778
24779 # Dependencies to place before and after the objects being linked to
24780 # create a shared library.
24781 predep_objects=$lt_predep_objects_F77
24782 postdep_objects=$lt_postdep_objects_F77
24783 predeps=$lt_predeps_F77
24784 postdeps=$lt_postdeps_F77
24785
24786 # The library search path used internally by the compiler when linking
24787 # a shared library.
24788 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
24789
24790 # ### END LIBTOOL TAG CONFIG: F77
24791 _LT_EOF
24792
24793
24794 cat <<_LT_EOF >> "$ofile"
24795
24796 # ### BEGIN LIBTOOL TAG CONFIG: FC
24797
24798 # The linker used to build libraries.
24799 LD=$lt_LD_FC
24800
24801 # How to create reloadable object files.
24802 reload_flag=$lt_reload_flag_FC
24803 reload_cmds=$lt_reload_cmds_FC
24804
24805 # Commands used to build an old-style archive.
24806 old_archive_cmds=$lt_old_archive_cmds_FC
24807
24808 # A language specific compiler.
24809 CC=$lt_compiler_FC
24810
24811 # Is the compiler the GNU compiler?
24812 with_gcc=$GCC_FC
24813
24814 # Compiler flag to turn off builtin functions.
24815 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
24816
24817 # Additional compiler flags for building library objects.
24818 pic_flag=$lt_lt_prog_compiler_pic_FC
24819
24820 # How to pass a linker flag through the compiler.
24821 wl=$lt_lt_prog_compiler_wl_FC
24822
24823 # Compiler flag to prevent dynamic linking.
24824 link_static_flag=$lt_lt_prog_compiler_static_FC
24825
24826 # Does compiler simultaneously support -c and -o options?
24827 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
24828
24829 # Whether or not to add -lc for building shared libraries.
24830 build_libtool_need_lc=$archive_cmds_need_lc_FC
24831
24832 # Whether or not to disallow shared libs when runtime libs are static.
24833 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
24834
24835 # Compiler flag to allow reflexive dlopens.
24836 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
24837
24838 # Compiler flag to generate shared objects directly from archives.
24839 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
24840
24841 # Whether the compiler copes with passing no objects directly.
24842 compiler_needs_object=$lt_compiler_needs_object_FC
24843
24844 # Create an old-style archive from a shared archive.
24845 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
24846
24847 # Create a temporary old-style archive to link instead of a shared archive.
24848 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
24849
24850 # Commands used to build a shared archive.
24851 archive_cmds=$lt_archive_cmds_FC
24852 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
24853
24854 # Commands used to build a loadable module if different from building
24855 # a shared archive.
24856 module_cmds=$lt_module_cmds_FC
24857 module_expsym_cmds=$lt_module_expsym_cmds_FC
24858
24859 # Whether we are building with GNU ld or not.
24860 with_gnu_ld=$lt_with_gnu_ld_FC
24861
24862 # Flag that allows shared libraries with undefined symbols to be built.
24863 allow_undefined_flag=$lt_allow_undefined_flag_FC
24864
24865 # Flag that enforces no undefined symbols.
24866 no_undefined_flag=$lt_no_undefined_flag_FC
24867
24868 # Flag to hardcode \$libdir into a binary during linking.
24869 # This must work even if \$libdir does not exist
24870 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
24871
24872 # Whether we need a single "-rpath" flag with a separated argument.
24873 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
24874
24875 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24876 # DIR into the resulting binary.
24877 hardcode_direct=$hardcode_direct_FC
24878
24879 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24880 # DIR into the resulting binary and the resulting library dependency is
24881 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24882 # library is relocated.
24883 hardcode_direct_absolute=$hardcode_direct_absolute_FC
24884
24885 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24886 # into the resulting binary.
24887 hardcode_minus_L=$hardcode_minus_L_FC
24888
24889 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24890 # into the resulting binary.
24891 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
24892
24893 # Set to "yes" if building a shared library automatically hardcodes DIR
24894 # into the library and all subsequent libraries and executables linked
24895 # against it.
24896 hardcode_automatic=$hardcode_automatic_FC
24897
24898 # Set to yes if linker adds runtime paths of dependent libraries
24899 # to runtime path list.
24900 inherit_rpath=$inherit_rpath_FC
24901
24902 # Whether libtool must link a program against all its dependency libraries.
24903 link_all_deplibs=$link_all_deplibs_FC
24904
24905 # Set to "yes" if exported symbols are required.
24906 always_export_symbols=$always_export_symbols_FC
24907
24908 # The commands to list exported symbols.
24909 export_symbols_cmds=$lt_export_symbols_cmds_FC
24910
24911 # Symbols that should not be listed in the preloaded symbols.
24912 exclude_expsyms=$lt_exclude_expsyms_FC
24913
24914 # Symbols that must always be exported.
24915 include_expsyms=$lt_include_expsyms_FC
24916
24917 # Commands necessary for linking programs (against libraries) with templates.
24918 prelink_cmds=$lt_prelink_cmds_FC
24919
24920 # Commands necessary for finishing linking programs.
24921 postlink_cmds=$lt_postlink_cmds_FC
24922
24923 # Specify filename containing input files.
24924 file_list_spec=$lt_file_list_spec_FC
24925
24926 # How to hardcode a shared library path into an executable.
24927 hardcode_action=$hardcode_action_FC
24928
24929 # The directories searched by this compiler when creating a shared library.
24930 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
24931
24932 # Dependencies to place before and after the objects being linked to
24933 # create a shared library.
24934 predep_objects=$lt_predep_objects_FC
24935 postdep_objects=$lt_postdep_objects_FC
24936 predeps=$lt_predeps_FC
24937 postdeps=$lt_postdeps_FC
24938
24939 # The library search path used internally by the compiler when linking
24940 # a shared library.
24941 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
24942
24943 # ### END LIBTOOL TAG CONFIG: FC
24944 _LT_EOF
24945
24946 ;;
24947
24948 esac
24949 done # for ac_tag
24950
24951
24952 as_fn_exit 0
24953 _ACEOF
24954 ac_clean_files=$ac_clean_files_save
24955
24956 test $ac_write_fail = 0 ||
24957 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24958
24959
24960 # configure is writing to config.log, and then calls config.status.
24961 # config.status does its own redirection, appending to config.log.
24962 # Unfortunately, on DOS this fails, as config.log is still kept open
24963 # by configure, so config.status won't be able to write to it; its
24964 # output is simply discarded. So we exec the FD to /dev/null,
24965 # effectively closing config.log, so it can be properly (re)opened and
24966 # appended to by config.status. When coming back to configure, we
24967 # need to make the FD available again.
24968 if test "$no_create" != yes; then
24969 ac_cs_success=:
24970 ac_config_status_args=
24971 test "$silent" = yes &&
24972 ac_config_status_args="$ac_config_status_args --quiet"
24973 exec 5>/dev/null
24974 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24975 exec 5>>config.log
24976 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24977 # would make configure fail if this is the last instruction.
24978 $ac_cs_success || as_fn_exit 1
24979 fi
24980 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24982 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
24983 fi
24984
24985
24986
24987 ###################################
24988 # SUMMARY
24989 ###################################
24990
24991 { $as_echo "$as_me:${as_lineno-$LINENO}: ------------------------------------------" >&5
24992 $as_echo "$as_me: ------------------------------------------" >&6;}
24993 { $as_echo "$as_me:${as_lineno-$LINENO}: Configuration Summary" >&5
24994 $as_echo "$as_me: Configuration Summary" >&6;}
24995 { $as_echo "$as_me:${as_lineno-$LINENO}: ------------------------------------------" >&5
24996 $as_echo "$as_me: ------------------------------------------" >&6;}
24997
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
24999 $as_echo "$as_me: " >&6;}
25000 { $as_echo "$as_me:${as_lineno-$LINENO}: CC: $CC" >&5
25001 $as_echo "$as_me: CC: $CC" >&6;}
25002 { $as_echo "$as_me:${as_lineno-$LINENO}: FC: $FC" >&5
25003 $as_echo "$as_me: FC: $FC" >&6;}
25004 { $as_echo "$as_me:${as_lineno-$LINENO}: F77: $F77" >&5
25005 $as_echo "$as_me: F77: $F77" >&6;}
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: C flags: $CFLAGS" >&5
25007 $as_echo "$as_me: C flags: $CFLAGS" >&6;}
25008 { $as_echo "$as_me:${as_lineno-$LINENO}: CPP flags: $CPPFLAGS" >&5
25009 $as_echo "$as_me: CPP flags: $CPPFLAGS" >&6;}
25010 { $as_echo "$as_me:${as_lineno-$LINENO}: LD flags: $LDFLAGS" >&5
25011 $as_echo "$as_me: LD flags: $LDFLAGS" >&6;}
25012 { $as_echo "$as_me:${as_lineno-$LINENO}: LIB flags: $LIBS" >&5
25013 $as_echo "$as_me: LIB flags: $LIBS" >&6;}