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 libccp4 8.0.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
32
33
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
71
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
80
81
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
88
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
101
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
113
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
125
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
131
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
182
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
189
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
214
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
244
245
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
267
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell [email protected] about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
289
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
301
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
309
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
319
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
325
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
364
365
366 } # as_fn_mkdir_p
367
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
392
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
409
410
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
426
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
433
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
439
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
445
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
464
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
471
472
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
495
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
507
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
520
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
547
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
554
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
557
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
560
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
563
564 SHELL=${CONFIG_SHELL-/bin/sh}
565
566
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
569
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
574
575 #
576 # Initializations.
577 #
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
586
587 # Identity of this package.
588 PACKAGE_NAME='libccp4'
589 PACKAGE_TARNAME='libccp4'
590 PACKAGE_VERSION='8.0.0'
591 PACKAGE_STRING='libccp4 8.0.0'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
594
595 ac_unique_file="ccp4/cmtzlib.c"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
631
632 ac_subst_vars='am__EXEEXT_FALSE
633 am__EXEEXT_TRUE
634 LTLIBOBJS
635 LIBOBJS
636 M4_ARG
637 GNU_FORTRAN_FALSE
638 GNU_FORTRAN_TRUE
639 M4
640 ac_ct_F77
641 FFLAGS
642 F77
643 FORTRAN_LIB_FALSE
644 FORTRAN_LIB_TRUE
645 MAINT
646 MAINTAINER_MODE_FALSE
647 MAINTAINER_MODE_TRUE
648 CXXCPP
649 am__fastdepCXX_FALSE
650 am__fastdepCXX_TRUE
651 CXXDEPMODE
652 ac_ct_CXX
653 CXXFLAGS
654 CXX
655 CPP
656 OTOOL64
657 OTOOL
658 LIPO
659 NMEDIT
660 DSYMUTIL
661 MANIFEST_TOOL
662 RANLIB
663 LN_S
664 NM
665 ac_ct_DUMPBIN
666 DUMPBIN
667 LD
668 FGREP
669 EGREP
670 GREP
671 SED
672 host_os
673 host_vendor
674 host_cpu
675 host
676 build_os
677 build_vendor
678 build_cpu
679 build
680 LIBTOOL
681 OBJDUMP
682 DLLTOOL
683 AS
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
700 CC
701 ac_ct_AR
702 AR
703 AM_BACKSLASH
704 AM_DEFAULT_VERBOSITY
705 AM_DEFAULT_V
706 AM_V
707 am__untar
708 am__tar
709 AMTAR
710 am__leading_dot
711 SET_MAKE
712 AWK
713 mkdir_p
714 MKDIR_P
715 INSTALL_STRIP_PROGRAM
716 STRIP
717 install_sh
718 MAKEINFO
719 AUTOHEADER
720 AUTOMAKE
721 AUTOCONF
722 ACLOCAL
723 VERSION
724 PACKAGE
725 CYGPATH_W
726 am__isrc
727 INSTALL_DATA
728 INSTALL_SCRIPT
729 INSTALL_PROGRAM
730 target_alias
731 host_alias
732 build_alias
733 LIBS
734 ECHO_T
735 ECHO_N
736 ECHO_C
737 DEFS
738 mandir
739 localedir
740 libdir
741 psdir
742 pdfdir
743 dvidir
744 htmldir
745 infodir
746 docdir
747 oldincludedir
748 includedir
749 localstatedir
750 sharedstatedir
751 sysconfdir
752 datadir
753 datarootdir
754 libexecdir
755 sbindir
756 bindir
757 program_transform_name
758 prefix
759 exec_prefix
760 PACKAGE_URL
761 PACKAGE_BUGREPORT
762 PACKAGE_STRING
763 PACKAGE_VERSION
764 PACKAGE_TARNAME
765 PACKAGE_NAME
766 PATH_SEPARATOR
767 SHELL'
768 ac_subst_files=''
769 ac_user_opts='
770 enable_option_checking
771 enable_silent_rules
772 enable_dependency_tracking
773 enable_shared
774 enable_static
775 with_pic
776 enable_fast_install
777 with_gnu_ld
778 with_sysroot
779 enable_libtool_lock
780 enable_maintainer_mode
781 enable_fortran
782 '
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
786 CC
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
791 CPP
792 CXX
793 CXXFLAGS
794 CCC
795 CXXCPP
796 F77
797 FFLAGS'
798
799
800 # Initialize some variables set by options.
801 ac_init_help=
802 ac_init_version=false
803 ac_unrecognized_opts=
804 ac_unrecognized_sep=
805 # The variables have the same names as the options, with
806 # dashes changed to underlines.
807 cache_file=/dev/null
808 exec_prefix=NONE
809 no_create=
810 no_recursion=
811 prefix=NONE
812 program_prefix=NONE
813 program_suffix=NONE
814 program_transform_name=s,x,x,
815 silent=
816 site=
817 srcdir=
818 verbose=
819 x_includes=NONE
820 x_libraries=NONE
821
822 # Installation directory options.
823 # These are left unexpanded so users can "make install exec_prefix=/foo"
824 # and all the variables that are supposed to be based on exec_prefix
825 # by default will actually change.
826 # Use braces instead of parens because sh, perl, etc. also accept them.
827 # (The list follows the same order as the GNU Coding Standards.)
828 bindir='${exec_prefix}/bin'
829 sbindir='${exec_prefix}/sbin'
830 libexecdir='${exec_prefix}/libexec'
831 datarootdir='${prefix}/share'
832 datadir='${datarootdir}'
833 sysconfdir='${prefix}/etc'
834 sharedstatedir='${prefix}/com'
835 localstatedir='${prefix}/var'
836 includedir='${prefix}/include'
837 oldincludedir='/usr/include'
838 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
839 infodir='${datarootdir}/info'
840 htmldir='${docdir}'
841 dvidir='${docdir}'
842 pdfdir='${docdir}'
843 psdir='${docdir}'
844 libdir='${exec_prefix}/lib'
845 localedir='${datarootdir}/locale'
846 mandir='${datarootdir}/man'
847
848 ac_prev=
849 ac_dashdash=
850 for ac_option
851 do
852 # If the previous option needs an argument, assign it.
853 if test -n "$ac_prev"; then
854 eval $ac_prev=\$ac_option
855 ac_prev=
856 continue
857 fi
858
859 case $ac_option in
860 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
861 *=) ac_optarg= ;;
862 *) ac_optarg=yes ;;
863 esac
864
865 # Accept the important Cygnus configure options, so we can diagnose typos.
866
867 case $ac_dashdash$ac_option in
868 --)
869 ac_dashdash=yes ;;
870
871 -bindir | --bindir | --bindi | --bind | --bin | --bi)
872 ac_prev=bindir ;;
873 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
874 bindir=$ac_optarg ;;
875
876 -build | --build | --buil | --bui | --bu)
877 ac_prev=build_alias ;;
878 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
879 build_alias=$ac_optarg ;;
880
881 -cache-file | --cache-file | --cache-fil | --cache-fi \
882 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
883 ac_prev=cache_file ;;
884 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
885 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
886 cache_file=$ac_optarg ;;
887
888 --config-cache | -C)
889 cache_file=config.cache ;;
890
891 -datadir | --datadir | --datadi | --datad)
892 ac_prev=datadir ;;
893 -datadir=* | --datadir=* | --datadi=* | --datad=*)
894 datadir=$ac_optarg ;;
895
896 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
897 | --dataroo | --dataro | --datar)
898 ac_prev=datarootdir ;;
899 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
900 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
901 datarootdir=$ac_optarg ;;
902
903 -disable-* | --disable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
911 *"
912 "enable_$ac_useropt"
913 "*) ;;
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
916 esac
917 eval enable_$ac_useropt=no ;;
918
919 -docdir | --docdir | --docdi | --doc | --do)
920 ac_prev=docdir ;;
921 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
922 docdir=$ac_optarg ;;
923
924 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
925 ac_prev=dvidir ;;
926 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
927 dvidir=$ac_optarg ;;
928
929 -enable-* | --enable-*)
930 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
931 # Reject names that are not valid shell variable names.
932 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
933 as_fn_error $? "invalid feature name: $ac_useropt"
934 ac_useropt_orig=$ac_useropt
935 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
936 case $ac_user_opts in
937 *"
938 "enable_$ac_useropt"
939 "*) ;;
940 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
941 ac_unrecognized_sep=', ';;
942 esac
943 eval enable_$ac_useropt=\$ac_optarg ;;
944
945 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
946 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
947 | --exec | --exe | --ex)
948 ac_prev=exec_prefix ;;
949 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
950 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
951 | --exec=* | --exe=* | --ex=*)
952 exec_prefix=$ac_optarg ;;
953
954 -gas | --gas | --ga | --g)
955 # Obsolete; use --with-gas.
956 with_gas=yes ;;
957
958 -help | --help | --hel | --he | -h)
959 ac_init_help=long ;;
960 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
961 ac_init_help=recursive ;;
962 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
963 ac_init_help=short ;;
964
965 -host | --host | --hos | --ho)
966 ac_prev=host_alias ;;
967 -host=* | --host=* | --hos=* | --ho=*)
968 host_alias=$ac_optarg ;;
969
970 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
971 ac_prev=htmldir ;;
972 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
973 | --ht=*)
974 htmldir=$ac_optarg ;;
975
976 -includedir | --includedir | --includedi | --included | --include \
977 | --includ | --inclu | --incl | --inc)
978 ac_prev=includedir ;;
979 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
980 | --includ=* | --inclu=* | --incl=* | --inc=*)
981 includedir=$ac_optarg ;;
982
983 -infodir | --infodir | --infodi | --infod | --info | --inf)
984 ac_prev=infodir ;;
985 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
986 infodir=$ac_optarg ;;
987
988 -libdir | --libdir | --libdi | --libd)
989 ac_prev=libdir ;;
990 -libdir=* | --libdir=* | --libdi=* | --libd=*)
991 libdir=$ac_optarg ;;
992
993 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
994 | --libexe | --libex | --libe)
995 ac_prev=libexecdir ;;
996 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
997 | --libexe=* | --libex=* | --libe=*)
998 libexecdir=$ac_optarg ;;
999
1000 -localedir | --localedir | --localedi | --localed | --locale)
1001 ac_prev=localedir ;;
1002 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1003 localedir=$ac_optarg ;;
1004
1005 -localstatedir | --localstatedir | --localstatedi | --localstated \
1006 | --localstate | --localstat | --localsta | --localst | --locals)
1007 ac_prev=localstatedir ;;
1008 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1009 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1010 localstatedir=$ac_optarg ;;
1011
1012 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1013 ac_prev=mandir ;;
1014 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1015 mandir=$ac_optarg ;;
1016
1017 -nfp | --nfp | --nf)
1018 # Obsolete; use --without-fp.
1019 with_fp=no ;;
1020
1021 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1022 | --no-cr | --no-c | -n)
1023 no_create=yes ;;
1024
1025 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1026 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1027 no_recursion=yes ;;
1028
1029 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1030 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1031 | --oldin | --oldi | --old | --ol | --o)
1032 ac_prev=oldincludedir ;;
1033 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1034 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1035 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1036 oldincludedir=$ac_optarg ;;
1037
1038 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1039 ac_prev=prefix ;;
1040 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1041 prefix=$ac_optarg ;;
1042
1043 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1044 | --program-pre | --program-pr | --program-p)
1045 ac_prev=program_prefix ;;
1046 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1047 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1048 program_prefix=$ac_optarg ;;
1049
1050 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1051 | --program-suf | --program-su | --program-s)
1052 ac_prev=program_suffix ;;
1053 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1054 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1055 program_suffix=$ac_optarg ;;
1056
1057 -program-transform-name | --program-transform-name \
1058 | --program-transform-nam | --program-transform-na \
1059 | --program-transform-n | --program-transform- \
1060 | --program-transform | --program-transfor \
1061 | --program-transfo | --program-transf \
1062 | --program-trans | --program-tran \
1063 | --progr-tra | --program-tr | --program-t)
1064 ac_prev=program_transform_name ;;
1065 -program-transform-name=* | --program-transform-name=* \
1066 | --program-transform-nam=* | --program-transform-na=* \
1067 | --program-transform-n=* | --program-transform-=* \
1068 | --program-transform=* | --program-transfor=* \
1069 | --program-transfo=* | --program-transf=* \
1070 | --program-trans=* | --program-tran=* \
1071 | --progr-tra=* | --program-tr=* | --program-t=*)
1072 program_transform_name=$ac_optarg ;;
1073
1074 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1075 ac_prev=pdfdir ;;
1076 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1077 pdfdir=$ac_optarg ;;
1078
1079 -psdir | --psdir | --psdi | --psd | --ps)
1080 ac_prev=psdir ;;
1081 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1082 psdir=$ac_optarg ;;
1083
1084 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1085 | -silent | --silent | --silen | --sile | --sil)
1086 silent=yes ;;
1087
1088 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1089 ac_prev=sbindir ;;
1090 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1091 | --sbi=* | --sb=*)
1092 sbindir=$ac_optarg ;;
1093
1094 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1095 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1096 | --sharedst | --shareds | --shared | --share | --shar \
1097 | --sha | --sh)
1098 ac_prev=sharedstatedir ;;
1099 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1100 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1101 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1102 | --sha=* | --sh=*)
1103 sharedstatedir=$ac_optarg ;;
1104
1105 -site | --site | --sit)
1106 ac_prev=site ;;
1107 -site=* | --site=* | --sit=*)
1108 site=$ac_optarg ;;
1109
1110 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1111 ac_prev=srcdir ;;
1112 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1113 srcdir=$ac_optarg ;;
1114
1115 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1116 | --syscon | --sysco | --sysc | --sys | --sy)
1117 ac_prev=sysconfdir ;;
1118 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1119 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1120 sysconfdir=$ac_optarg ;;
1121
1122 -target | --target | --targe | --targ | --tar | --ta | --t)
1123 ac_prev=target_alias ;;
1124 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1125 target_alias=$ac_optarg ;;
1126
1127 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1128 verbose=yes ;;
1129
1130 -version | --version | --versio | --versi | --vers | -V)
1131 ac_init_version=: ;;
1132
1133 -with-* | --with-*)
1134 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1135 # Reject names that are not valid shell variable names.
1136 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1137 as_fn_error $? "invalid package name: $ac_useropt"
1138 ac_useropt_orig=$ac_useropt
1139 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1140 case $ac_user_opts in
1141 *"
1142 "with_$ac_useropt"
1143 "*) ;;
1144 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1145 ac_unrecognized_sep=', ';;
1146 esac
1147 eval with_$ac_useropt=\$ac_optarg ;;
1148
1149 -without-* | --without-*)
1150 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1151 # Reject names that are not valid shell variable names.
1152 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1153 as_fn_error $? "invalid package name: $ac_useropt"
1154 ac_useropt_orig=$ac_useropt
1155 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1156 case $ac_user_opts in
1157 *"
1158 "with_$ac_useropt"
1159 "*) ;;
1160 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1161 ac_unrecognized_sep=', ';;
1162 esac
1163 eval with_$ac_useropt=no ;;
1164
1165 --x)
1166 # Obsolete; use --with-x.
1167 with_x=yes ;;
1168
1169 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1170 | --x-incl | --x-inc | --x-in | --x-i)
1171 ac_prev=x_includes ;;
1172 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1173 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1174 x_includes=$ac_optarg ;;
1175
1176 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1177 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1178 ac_prev=x_libraries ;;
1179 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1180 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1181 x_libraries=$ac_optarg ;;
1182
1183 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1184 Try \`$0 --help' for more information"
1185 ;;
1186
1187 *=*)
1188 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1189 # Reject names that are not valid shell variable names.
1190 case $ac_envvar in #(
1191 '' | [0-9]* | *[!_$as_cr_alnum]* )
1192 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1193 esac
1194 eval $ac_envvar=\$ac_optarg
1195 export $ac_envvar ;;
1196
1197 *)
1198 # FIXME: should be removed in autoconf 3.0.
1199 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1200 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1201 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1202 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1203 ;;
1204
1205 esac
1206 done
1207
1208 if test -n "$ac_prev"; then
1209 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1210 as_fn_error $? "missing argument to $ac_option"
1211 fi
1212
1213 if test -n "$ac_unrecognized_opts"; then
1214 case $enable_option_checking in
1215 no) ;;
1216 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1217 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1218 esac
1219 fi
1220
1221 # Check all directory arguments for consistency.
1222 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1223 datadir sysconfdir sharedstatedir localstatedir includedir \
1224 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1225 libdir localedir mandir
1226 do
1227 eval ac_val=\$$ac_var
1228 # Remove trailing slashes.
1229 case $ac_val in
1230 */ )
1231 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1232 eval $ac_var=\$ac_val;;
1233 esac
1234 # Be sure to have absolute directory names.
1235 case $ac_val in
1236 [\\/$]* | ?:[\\/]* ) continue;;
1237 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1238 esac
1239 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1240 done
1241
1242 # There might be people who depend on the old broken behavior: `$host'
1243 # used to hold the argument of --host etc.
1244 # FIXME: To remove some day.
1245 build=$build_alias
1246 host=$host_alias
1247 target=$target_alias
1248
1249 # FIXME: To remove some day.
1250 if test "x$host_alias" != x; then
1251 if test "x$build_alias" = x; then
1252 cross_compiling=maybe
1253 elif test "x$build_alias" != "x$host_alias"; then
1254 cross_compiling=yes
1255 fi
1256 fi
1257
1258 ac_tool_prefix=
1259 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1260
1261 test "$silent" = yes && exec 6>/dev/null
1262
1263
1264 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1265 ac_ls_di=`ls -di .` &&
1266 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1267 as_fn_error $? "working directory cannot be determined"
1268 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1269 as_fn_error $? "pwd does not report name of working directory"
1270
1271
1272 # Find the source files, if location was not specified.
1273 if test -z "$srcdir"; then
1274 ac_srcdir_defaulted=yes
1275 # Try the directory containing this script, then the parent directory.
1276 ac_confdir=`$as_dirname -- "$as_myself" ||
1277 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1278 X"$as_myself" : 'X\(//\)[^/]' \| \
1279 X"$as_myself" : 'X\(//\)$' \| \
1280 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1281 $as_echo X"$as_myself" |
1282 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1283 s//\1/
1284 q
1285 }
1286 /^X\(\/\/\)[^/].*/{
1287 s//\1/
1288 q
1289 }
1290 /^X\(\/\/\)$/{
1291 s//\1/
1292 q
1293 }
1294 /^X\(\/\).*/{
1295 s//\1/
1296 q
1297 }
1298 s/.*/./; q'`
1299 srcdir=$ac_confdir
1300 if test ! -r "$srcdir/$ac_unique_file"; then
1301 srcdir=..
1302 fi
1303 else
1304 ac_srcdir_defaulted=no
1305 fi
1306 if test ! -r "$srcdir/$ac_unique_file"; then
1307 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1308 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1309 fi
1310 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1311 ac_abs_confdir=`(
1312 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1313 pwd)`
1314 # When building in place, set srcdir=.
1315 if test "$ac_abs_confdir" = "$ac_pwd"; then
1316 srcdir=.
1317 fi
1318 # Remove unnecessary trailing slashes from srcdir.
1319 # Double slashes in file names in object file debugging info
1320 # mess up M-x gdb in Emacs.
1321 case $srcdir in
1322 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1323 esac
1324 for ac_var in $ac_precious_vars; do
1325 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1326 eval ac_env_${ac_var}_value=\$${ac_var}
1327 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1328 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1329 done
1330
1331 #
1332 # Report the --help message.
1333 #
1334 if test "$ac_init_help" = "long"; then
1335 # Omit some internal or obsolete options to make the list less imposing.
1336 # This message is too long to be a string in the A/UX 3.1 sh.
1337 cat <<_ACEOF
1338 \`configure' configures libccp4 8.0.0 to adapt to many kinds of systems.
1339
1340 Usage: $0 [OPTION]... [VAR=VALUE]...
1341
1342 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1343 VAR=VALUE. See below for descriptions of some of the useful variables.
1344
1345 Defaults for the options are specified in brackets.
1346
1347 Configuration:
1348 -h, --help display this help and exit
1349 --help=short display options specific to this package
1350 --help=recursive display the short help of all the included packages
1351 -V, --version display version information and exit
1352 -q, --quiet, --silent do not print \`checking ...' messages
1353 --cache-file=FILE cache test results in FILE [disabled]
1354 -C, --config-cache alias for \`--cache-file=config.cache'
1355 -n, --no-create do not create output files
1356 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1357
1358 Installation directories:
1359 --prefix=PREFIX install architecture-independent files in PREFIX
1360 [$ac_default_prefix]
1361 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1362 [PREFIX]
1363
1364 By default, \`make install' will install all the files in
1365 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1366 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1367 for instance \`--prefix=\$HOME'.
1368
1369 For better control, use the options below.
1370
1371 Fine tuning of the installation directories:
1372 --bindir=DIR user executables [EPREFIX/bin]
1373 --sbindir=DIR system admin executables [EPREFIX/sbin]
1374 --libexecdir=DIR program executables [EPREFIX/libexec]
1375 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1376 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1377 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1378 --libdir=DIR object code libraries [EPREFIX/lib]
1379 --includedir=DIR C header files [PREFIX/include]
1380 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1381 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1382 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1383 --infodir=DIR info documentation [DATAROOTDIR/info]
1384 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1385 --mandir=DIR man documentation [DATAROOTDIR/man]
1386 --docdir=DIR documentation root [DATAROOTDIR/doc/libccp4]
1387 --htmldir=DIR html documentation [DOCDIR]
1388 --dvidir=DIR dvi documentation [DOCDIR]
1389 --pdfdir=DIR pdf documentation [DOCDIR]
1390 --psdir=DIR ps documentation [DOCDIR]
1391 _ACEOF
1392
1393 cat <<\_ACEOF
1394
1395 Program names:
1396 --program-prefix=PREFIX prepend PREFIX to installed program names
1397 --program-suffix=SUFFIX append SUFFIX to installed program names
1398 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1399
1400 System types:
1401 --build=BUILD configure for building on BUILD [guessed]
1402 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1403 _ACEOF
1404 fi
1405
1406 if test -n "$ac_init_help"; then
1407 case $ac_init_help in
1408 short | recursive ) echo "Configuration of libccp4 8.0.0:";;
1409 esac
1410 cat <<\_ACEOF
1411
1412 Optional Features:
1413 --disable-option-checking ignore unrecognized --enable/--with options
1414 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1415 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1416 --enable-silent-rules less verbose build output (undo: "make V=1")
1417 --disable-silent-rules verbose build output (undo: "make V=0")
1418 --enable-dependency-tracking
1419 do not reject slow dependency extractors
1420 --disable-dependency-tracking
1421 speeds up one-time build
1422 --enable-shared[=PKGS] build shared libraries [default=no]
1423 --enable-static[=PKGS] build static libraries [default=yes]
1424 --enable-fast-install[=PKGS]
1425 optimize for fast installation [default=yes]
1426 --disable-libtool-lock avoid locking (might break parallel builds)
1427 --enable-maintainer-mode
1428 enable make rules and dependencies not useful (and
1429 sometimes confusing) to the casual installer
1430 --disable-fortran do not compile fortran API
1431
1432 Optional Packages:
1433 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1434 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1435 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1436 both]
1437 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1438 --with-sysroot=DIR Search for dependent libraries within DIR
1439 (or the compiler's sysroot if not specified).
1440
1441 Some influential environment variables:
1442 CC C compiler command
1443 CFLAGS C compiler flags
1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1445 nonstandard directory <lib dir>
1446 LIBS libraries to pass to the linker, e.g. -l<library>
1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1448 you have headers in a nonstandard directory <include dir>
1449 CPP C preprocessor
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 CXXCPP C++ preprocessor
1453 F77 Fortran 77 compiler command
1454 FFLAGS Fortran 77 compiler flags
1455
1456 Use these variables to override the choices made by `configure' or to help
1457 it to find libraries and programs with nonstandard names/locations.
1458
1459 Report bugs to the package provider.
1460 _ACEOF
1461 ac_status=$?
1462 fi
1463
1464 if test "$ac_init_help" = "recursive"; then
1465 # If there are subdirs, report their specific --help.
1466 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1467 test -d "$ac_dir" ||
1468 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1469 continue
1470 ac_builddir=.
1471
1472 case "$ac_dir" in
1473 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1474 *)
1475 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1476 # A ".." for each directory in $ac_dir_suffix.
1477 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1478 case $ac_top_builddir_sub in
1479 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1480 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1481 esac ;;
1482 esac
1483 ac_abs_top_builddir=$ac_pwd
1484 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1485 # for backward compatibility:
1486 ac_top_builddir=$ac_top_build_prefix
1487
1488 case $srcdir in
1489 .) # We are building in place.
1490 ac_srcdir=.
1491 ac_top_srcdir=$ac_top_builddir_sub
1492 ac_abs_top_srcdir=$ac_pwd ;;
1493 [\\/]* | ?:[\\/]* ) # Absolute name.
1494 ac_srcdir=$srcdir$ac_dir_suffix;
1495 ac_top_srcdir=$srcdir
1496 ac_abs_top_srcdir=$srcdir ;;
1497 *) # Relative name.
1498 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_build_prefix$srcdir
1500 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1501 esac
1502 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1503
1504 cd "$ac_dir" || { ac_status=$?; continue; }
1505 # Check for guested configure.
1506 if test -f "$ac_srcdir/configure.gnu"; then
1507 echo &&
1508 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1509 elif test -f "$ac_srcdir/configure"; then
1510 echo &&
1511 $SHELL "$ac_srcdir/configure" --help=recursive
1512 else
1513 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1514 fi || ac_status=$?
1515 cd "$ac_pwd" || { ac_status=$?; break; }
1516 done
1517 fi
1518
1519 test -n "$ac_init_help" && exit $ac_status
1520 if $ac_init_version; then
1521 cat <<\_ACEOF
1522 libccp4 configure 8.0.0
1523 generated by GNU Autoconf 2.69
1524
1525 Copyright (C) 2012 Free Software Foundation, Inc.
1526 This configure script is free software; the Free Software Foundation
1527 gives unlimited permission to copy, distribute and modify it.
1528 _ACEOF
1529 exit
1530 fi
1531
1532 ## ------------------------ ##
1533 ## Autoconf initialization. ##
1534 ## ------------------------ ##
1535
1536 # ac_fn_c_try_compile LINENO
1537 # --------------------------
1538 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1539 ac_fn_c_try_compile ()
1540 {
1541 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1542 rm -f conftest.$ac_objext
1543 if { { ac_try="$ac_compile"
1544 case "(($ac_try" in
1545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1546 *) ac_try_echo=$ac_try;;
1547 esac
1548 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1549 $as_echo "$ac_try_echo"; } >&5
1550 (eval "$ac_compile") 2>conftest.err
1551 ac_status=$?
1552 if test -s conftest.err; then
1553 grep -v '^ *+' conftest.err >conftest.er1
1554 cat conftest.er1 >&5
1555 mv -f conftest.er1 conftest.err
1556 fi
1557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1558 test $ac_status = 0; } && {
1559 test -z "$ac_c_werror_flag" ||
1560 test ! -s conftest.err
1561 } && test -s conftest.$ac_objext; then :
1562 ac_retval=0
1563 else
1564 $as_echo "$as_me: failed program was:" >&5
1565 sed 's/^/| /' conftest.$ac_ext >&5
1566
1567 ac_retval=1
1568 fi
1569 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1570 as_fn_set_status $ac_retval
1571
1572 } # ac_fn_c_try_compile
1573
1574 # ac_fn_c_try_link LINENO
1575 # -----------------------
1576 # Try to link conftest.$ac_ext, and return whether this succeeded.
1577 ac_fn_c_try_link ()
1578 {
1579 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1580 rm -f conftest.$ac_objext conftest$ac_exeext
1581 if { { ac_try="$ac_link"
1582 case "(($ac_try" in
1583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1584 *) ac_try_echo=$ac_try;;
1585 esac
1586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1587 $as_echo "$ac_try_echo"; } >&5
1588 (eval "$ac_link") 2>conftest.err
1589 ac_status=$?
1590 if test -s conftest.err; then
1591 grep -v '^ *+' conftest.err >conftest.er1
1592 cat conftest.er1 >&5
1593 mv -f conftest.er1 conftest.err
1594 fi
1595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1596 test $ac_status = 0; } && {
1597 test -z "$ac_c_werror_flag" ||
1598 test ! -s conftest.err
1599 } && test -s conftest$ac_exeext && {
1600 test "$cross_compiling" = yes ||
1601 test -x conftest$ac_exeext
1602 }; then :
1603 ac_retval=0
1604 else
1605 $as_echo "$as_me: failed program was:" >&5
1606 sed 's/^/| /' conftest.$ac_ext >&5
1607
1608 ac_retval=1
1609 fi
1610 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1611 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1612 # interfere with the next link command; also delete a directory that is
1613 # left behind by Apple's compiler. We do this before executing the actions.
1614 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1615 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1616 as_fn_set_status $ac_retval
1617
1618 } # ac_fn_c_try_link
1619
1620 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1621 # -------------------------------------------------------
1622 # Tests whether HEADER exists and can be compiled using the include files in
1623 # INCLUDES, setting the cache variable VAR accordingly.
1624 ac_fn_c_check_header_compile ()
1625 {
1626 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1628 $as_echo_n "checking for $2... " >&6; }
1629 if eval \${$3+:} false; then :
1630 $as_echo_n "(cached) " >&6
1631 else
1632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1633 /* end confdefs.h. */
1634 $4
1635 #include <$2>
1636 _ACEOF
1637 if ac_fn_c_try_compile "$LINENO"; then :
1638 eval "$3=yes"
1639 else
1640 eval "$3=no"
1641 fi
1642 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1643 fi
1644 eval ac_res=\$$3
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1646 $as_echo "$ac_res" >&6; }
1647 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1648
1649 } # ac_fn_c_check_header_compile
1650
1651 # ac_fn_c_try_cpp LINENO
1652 # ----------------------
1653 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1654 ac_fn_c_try_cpp ()
1655 {
1656 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657 if { { ac_try="$ac_cpp conftest.$ac_ext"
1658 case "(($ac_try" in
1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1660 *) ac_try_echo=$ac_try;;
1661 esac
1662 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1663 $as_echo "$ac_try_echo"; } >&5
1664 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1665 ac_status=$?
1666 if test -s conftest.err; then
1667 grep -v '^ *+' conftest.err >conftest.er1
1668 cat conftest.er1 >&5
1669 mv -f conftest.er1 conftest.err
1670 fi
1671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1672 test $ac_status = 0; } > conftest.i && {
1673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1674 test ! -s conftest.err
1675 }; then :
1676 ac_retval=0
1677 else
1678 $as_echo "$as_me: failed program was:" >&5
1679 sed 's/^/| /' conftest.$ac_ext >&5
1680
1681 ac_retval=1
1682 fi
1683 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1684 as_fn_set_status $ac_retval
1685
1686 } # ac_fn_c_try_cpp
1687
1688 # ac_fn_c_try_run LINENO
1689 # ----------------------
1690 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1691 # that executables *can* be run.
1692 ac_fn_c_try_run ()
1693 {
1694 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695 if { { ac_try="$ac_link"
1696 case "(($ac_try" in
1697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698 *) ac_try_echo=$ac_try;;
1699 esac
1700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701 $as_echo "$ac_try_echo"; } >&5
1702 (eval "$ac_link") 2>&5
1703 ac_status=$?
1704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1705 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1706 { { case "(($ac_try" in
1707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1708 *) ac_try_echo=$ac_try;;
1709 esac
1710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1711 $as_echo "$ac_try_echo"; } >&5
1712 (eval "$ac_try") 2>&5
1713 ac_status=$?
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; }; }; then :
1716 ac_retval=0
1717 else
1718 $as_echo "$as_me: program exited with status $ac_status" >&5
1719 $as_echo "$as_me: failed program was:" >&5
1720 sed 's/^/| /' conftest.$ac_ext >&5
1721
1722 ac_retval=$ac_status
1723 fi
1724 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1725 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 as_fn_set_status $ac_retval
1727
1728 } # ac_fn_c_try_run
1729
1730 # ac_fn_c_check_func LINENO FUNC VAR
1731 # ----------------------------------
1732 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1733 ac_fn_c_check_func ()
1734 {
1735 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1737 $as_echo_n "checking for $2... " >&6; }
1738 if eval \${$3+:} false; then :
1739 $as_echo_n "(cached) " >&6
1740 else
1741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1742 /* end confdefs.h. */
1743 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1745 #define $2 innocuous_$2
1746
1747 /* System header to define __stub macros and hopefully few prototypes,
1748 which can conflict with char $2 (); below.
1749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1750 <limits.h> exists even on freestanding compilers. */
1751
1752 #ifdef __STDC__
1753 # include <limits.h>
1754 #else
1755 # include <assert.h>
1756 #endif
1757
1758 #undef $2
1759
1760 /* Override any GCC internal prototype to avoid an error.
1761 Use char because int might match the return type of a GCC
1762 builtin and then its argument prototype would still apply. */
1763 #ifdef __cplusplus
1764 extern "C"
1765 #endif
1766 char $2 ();
1767 /* The GNU C library defines this for functions which it implements
1768 to always fail with ENOSYS. Some functions are actually named
1769 something starting with __ and the normal name is an alias. */
1770 #if defined __stub_$2 || defined __stub___$2
1771 choke me
1772 #endif
1773
1774 int
1775 main ()
1776 {
1777 return $2 ();
1778 ;
1779 return 0;
1780 }
1781 _ACEOF
1782 if ac_fn_c_try_link "$LINENO"; then :
1783 eval "$3=yes"
1784 else
1785 eval "$3=no"
1786 fi
1787 rm -f core conftest.err conftest.$ac_objext \
1788 conftest$ac_exeext conftest.$ac_ext
1789 fi
1790 eval ac_res=\$$3
1791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792 $as_echo "$ac_res" >&6; }
1793 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1794
1795 } # ac_fn_c_check_func
1796
1797 # ac_fn_cxx_try_compile LINENO
1798 # ----------------------------
1799 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1800 ac_fn_cxx_try_compile ()
1801 {
1802 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803 rm -f conftest.$ac_objext
1804 if { { ac_try="$ac_compile"
1805 case "(($ac_try" in
1806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807 *) ac_try_echo=$ac_try;;
1808 esac
1809 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810 $as_echo "$ac_try_echo"; } >&5
1811 (eval "$ac_compile") 2>conftest.err
1812 ac_status=$?
1813 if test -s conftest.err; then
1814 grep -v '^ *+' conftest.err >conftest.er1
1815 cat conftest.er1 >&5
1816 mv -f conftest.er1 conftest.err
1817 fi
1818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819 test $ac_status = 0; } && {
1820 test -z "$ac_cxx_werror_flag" ||
1821 test ! -s conftest.err
1822 } && test -s conftest.$ac_objext; then :
1823 ac_retval=0
1824 else
1825 $as_echo "$as_me: failed program was:" >&5
1826 sed 's/^/| /' conftest.$ac_ext >&5
1827
1828 ac_retval=1
1829 fi
1830 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1831 as_fn_set_status $ac_retval
1832
1833 } # ac_fn_cxx_try_compile
1834
1835 # ac_fn_cxx_try_cpp LINENO
1836 # ------------------------
1837 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1838 ac_fn_cxx_try_cpp ()
1839 {
1840 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1841 if { { ac_try="$ac_cpp conftest.$ac_ext"
1842 case "(($ac_try" in
1843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1844 *) ac_try_echo=$ac_try;;
1845 esac
1846 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1847 $as_echo "$ac_try_echo"; } >&5
1848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1849 ac_status=$?
1850 if test -s conftest.err; then
1851 grep -v '^ *+' conftest.err >conftest.er1
1852 cat conftest.er1 >&5
1853 mv -f conftest.er1 conftest.err
1854 fi
1855 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1856 test $ac_status = 0; } > conftest.i && {
1857 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1858 test ! -s conftest.err
1859 }; then :
1860 ac_retval=0
1861 else
1862 $as_echo "$as_me: failed program was:" >&5
1863 sed 's/^/| /' conftest.$ac_ext >&5
1864
1865 ac_retval=1
1866 fi
1867 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1868 as_fn_set_status $ac_retval
1869
1870 } # ac_fn_cxx_try_cpp
1871
1872 # ac_fn_cxx_try_link LINENO
1873 # -------------------------
1874 # Try to link conftest.$ac_ext, and return whether this succeeded.
1875 ac_fn_cxx_try_link ()
1876 {
1877 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1878 rm -f conftest.$ac_objext conftest$ac_exeext
1879 if { { ac_try="$ac_link"
1880 case "(($ac_try" in
1881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1882 *) ac_try_echo=$ac_try;;
1883 esac
1884 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1885 $as_echo "$ac_try_echo"; } >&5
1886 (eval "$ac_link") 2>conftest.err
1887 ac_status=$?
1888 if test -s conftest.err; then
1889 grep -v '^ *+' conftest.err >conftest.er1
1890 cat conftest.er1 >&5
1891 mv -f conftest.er1 conftest.err
1892 fi
1893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1894 test $ac_status = 0; } && {
1895 test -z "$ac_cxx_werror_flag" ||
1896 test ! -s conftest.err
1897 } && test -s conftest$ac_exeext && {
1898 test "$cross_compiling" = yes ||
1899 test -x conftest$ac_exeext
1900 }; then :
1901 ac_retval=0
1902 else
1903 $as_echo "$as_me: failed program was:" >&5
1904 sed 's/^/| /' conftest.$ac_ext >&5
1905
1906 ac_retval=1
1907 fi
1908 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1909 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1910 # interfere with the next link command; also delete a directory that is
1911 # left behind by Apple's compiler. We do this before executing the actions.
1912 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914 as_fn_set_status $ac_retval
1915
1916 } # ac_fn_cxx_try_link
1917
1918 # ac_fn_f77_try_compile LINENO
1919 # ----------------------------
1920 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1921 ac_fn_f77_try_compile ()
1922 {
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 rm -f conftest.$ac_objext
1925 if { { ac_try="$ac_compile"
1926 case "(($ac_try" in
1927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1928 *) ac_try_echo=$ac_try;;
1929 esac
1930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1931 $as_echo "$ac_try_echo"; } >&5
1932 (eval "$ac_compile") 2>conftest.err
1933 ac_status=$?
1934 if test -s conftest.err; then
1935 grep -v '^ *+' conftest.err >conftest.er1
1936 cat conftest.er1 >&5
1937 mv -f conftest.er1 conftest.err
1938 fi
1939 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1940 test $ac_status = 0; } && {
1941 test -z "$ac_f77_werror_flag" ||
1942 test ! -s conftest.err
1943 } && test -s conftest.$ac_objext; then :
1944 ac_retval=0
1945 else
1946 $as_echo "$as_me: failed program was:" >&5
1947 sed 's/^/| /' conftest.$ac_ext >&5
1948
1949 ac_retval=1
1950 fi
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1952 as_fn_set_status $ac_retval
1953
1954 } # ac_fn_f77_try_compile
1955
1956 # ac_fn_f77_try_link LINENO
1957 # -------------------------
1958 # Try to link conftest.$ac_ext, and return whether this succeeded.
1959 ac_fn_f77_try_link ()
1960 {
1961 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1962 rm -f conftest.$ac_objext conftest$ac_exeext
1963 if { { ac_try="$ac_link"
1964 case "(($ac_try" in
1965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1966 *) ac_try_echo=$ac_try;;
1967 esac
1968 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1969 $as_echo "$ac_try_echo"; } >&5
1970 (eval "$ac_link") 2>conftest.err
1971 ac_status=$?
1972 if test -s conftest.err; then
1973 grep -v '^ *+' conftest.err >conftest.er1
1974 cat conftest.er1 >&5
1975 mv -f conftest.er1 conftest.err
1976 fi
1977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1978 test $ac_status = 0; } && {
1979 test -z "$ac_f77_werror_flag" ||
1980 test ! -s conftest.err
1981 } && test -s conftest$ac_exeext && {
1982 test "$cross_compiling" = yes ||
1983 test -x conftest$ac_exeext
1984 }; then :
1985 ac_retval=0
1986 else
1987 $as_echo "$as_me: failed program was:" >&5
1988 sed 's/^/| /' conftest.$ac_ext >&5
1989
1990 ac_retval=1
1991 fi
1992 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1993 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1994 # interfere with the next link command; also delete a directory that is
1995 # left behind by Apple's compiler. We do this before executing the actions.
1996 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1997 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 as_fn_set_status $ac_retval
1999
2000 } # ac_fn_f77_try_link
2001 cat >config.log <<_ACEOF
2002 This file contains any messages produced by compilers while
2003 running configure, to aid debugging if configure makes a mistake.
2004
2005 It was created by libccp4 $as_me 8.0.0, which was
2006 generated by GNU Autoconf 2.69. Invocation command line was
2007
2008 $ $0 $@
2009
2010 _ACEOF
2011 exec 5>>config.log
2012 {
2013 cat <<_ASUNAME
2014 ## --------- ##
2015 ## Platform. ##
2016 ## --------- ##
2017
2018 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2019 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2020 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2021 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2022 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2023
2024 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2025 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2026
2027 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2028 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2029 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2030 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2031 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2032 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2033 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2034
2035 _ASUNAME
2036
2037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2038 for as_dir in $PATH
2039 do
2040 IFS=$as_save_IFS
2041 test -z "$as_dir" && as_dir=.
2042 $as_echo "PATH: $as_dir"
2043 done
2044 IFS=$as_save_IFS
2045
2046 } >&5
2047
2048 cat >&5 <<_ACEOF
2049
2050
2051 ## ----------- ##
2052 ## Core tests. ##
2053 ## ----------- ##
2054
2055 _ACEOF
2056
2057
2058 # Keep a trace of the command line.
2059 # Strip out --no-create and --no-recursion so they do not pile up.
2060 # Strip out --silent because we don't want to record it for future runs.
2061 # Also quote any args containing shell meta-characters.
2062 # Make two passes to allow for proper duplicate-argument suppression.
2063 ac_configure_args=
2064 ac_configure_args0=
2065 ac_configure_args1=
2066 ac_must_keep_next=false
2067 for ac_pass in 1 2
2068 do
2069 for ac_arg
2070 do
2071 case $ac_arg in
2072 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2073 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2074 | -silent | --silent | --silen | --sile | --sil)
2075 continue ;;
2076 *\'*)
2077 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2078 esac
2079 case $ac_pass in
2080 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2081 2)
2082 as_fn_append ac_configure_args1 " '$ac_arg'"
2083 if test $ac_must_keep_next = true; then
2084 ac_must_keep_next=false # Got value, back to normal.
2085 else
2086 case $ac_arg in
2087 *=* | --config-cache | -C | -disable-* | --disable-* \
2088 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2089 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2090 | -with-* | --with-* | -without-* | --without-* | --x)
2091 case "$ac_configure_args0 " in
2092 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2093 esac
2094 ;;
2095 -* ) ac_must_keep_next=true ;;
2096 esac
2097 fi
2098 as_fn_append ac_configure_args " '$ac_arg'"
2099 ;;
2100 esac
2101 done
2102 done
2103 { ac_configure_args0=; unset ac_configure_args0;}
2104 { ac_configure_args1=; unset ac_configure_args1;}
2105
2106 # When interrupted or exit'd, cleanup temporary files, and complete
2107 # config.log. We remove comments because anyway the quotes in there
2108 # would cause problems or look ugly.
2109 # WARNING: Use '\'' to represent an apostrophe within the trap.
2110 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2111 trap 'exit_status=$?
2112 # Save into config.log some information that might help in debugging.
2113 {
2114 echo
2115
2116 $as_echo "## ---------------- ##
2117 ## Cache variables. ##
2118 ## ---------------- ##"
2119 echo
2120 # The following way of writing the cache mishandles newlines in values,
2121 (
2122 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2123 eval ac_val=\$$ac_var
2124 case $ac_val in #(
2125 *${as_nl}*)
2126 case $ac_var in #(
2127 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2128 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2129 esac
2130 case $ac_var in #(
2131 _ | IFS | as_nl) ;; #(
2132 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2133 *) { eval $ac_var=; unset $ac_var;} ;;
2134 esac ;;
2135 esac
2136 done
2137 (set) 2>&1 |
2138 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2139 *${as_nl}ac_space=\ *)
2140 sed -n \
2141 "s/'\''/'\''\\\\'\'''\''/g;
2142 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2143 ;; #(
2144 *)
2145 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2146 ;;
2147 esac |
2148 sort
2149 )
2150 echo
2151
2152 $as_echo "## ----------------- ##
2153 ## Output variables. ##
2154 ## ----------------- ##"
2155 echo
2156 for ac_var in $ac_subst_vars
2157 do
2158 eval ac_val=\$$ac_var
2159 case $ac_val in
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2161 esac
2162 $as_echo "$ac_var='\''$ac_val'\''"
2163 done | sort
2164 echo
2165
2166 if test -n "$ac_subst_files"; then
2167 $as_echo "## ------------------- ##
2168 ## File substitutions. ##
2169 ## ------------------- ##"
2170 echo
2171 for ac_var in $ac_subst_files
2172 do
2173 eval ac_val=\$$ac_var
2174 case $ac_val in
2175 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2176 esac
2177 $as_echo "$ac_var='\''$ac_val'\''"
2178 done | sort
2179 echo
2180 fi
2181
2182 if test -s confdefs.h; then
2183 $as_echo "## ----------- ##
2184 ## confdefs.h. ##
2185 ## ----------- ##"
2186 echo
2187 cat confdefs.h
2188 echo
2189 fi
2190 test "$ac_signal" != 0 &&
2191 $as_echo "$as_me: caught signal $ac_signal"
2192 $as_echo "$as_me: exit $exit_status"
2193 } >&5
2194 rm -f core *.core core.conftest.* &&
2195 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2196 exit $exit_status
2197 ' 0
2198 for ac_signal in 1 2 13 15; do
2199 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2200 done
2201 ac_signal=0
2202
2203 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2204 rm -f -r conftest* confdefs.h
2205
2206 $as_echo "/* confdefs.h */" > confdefs.h
2207
2208 # Predefined preprocessor variables.
2209
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_NAME "$PACKAGE_NAME"
2212 _ACEOF
2213
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2216 _ACEOF
2217
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2220 _ACEOF
2221
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_STRING "$PACKAGE_STRING"
2224 _ACEOF
2225
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2228 _ACEOF
2229
2230 cat >>confdefs.h <<_ACEOF
2231 #define PACKAGE_URL "$PACKAGE_URL"
2232 _ACEOF
2233
2234
2235 # Let the site file select an alternate cache file if it wants to.
2236 # Prefer an explicitly selected file to automatically selected ones.
2237 ac_site_file1=NONE
2238 ac_site_file2=NONE
2239 if test -n "$CONFIG_SITE"; then
2240 # We do not want a PATH search for config.site.
2241 case $CONFIG_SITE in #((
2242 -*) ac_site_file1=./$CONFIG_SITE;;
2243 */*) ac_site_file1=$CONFIG_SITE;;
2244 *) ac_site_file1=./$CONFIG_SITE;;
2245 esac
2246 elif test "x$prefix" != xNONE; then
2247 ac_site_file1=$prefix/share/config.site
2248 ac_site_file2=$prefix/etc/config.site
2249 else
2250 ac_site_file1=$ac_default_prefix/share/config.site
2251 ac_site_file2=$ac_default_prefix/etc/config.site
2252 fi
2253 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2254 do
2255 test "x$ac_site_file" = xNONE && continue
2256 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2258 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2259 sed 's/^/| /' "$ac_site_file" >&5
2260 . "$ac_site_file" \
2261 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2263 as_fn_error $? "failed to load site script $ac_site_file
2264 See \`config.log' for more details" "$LINENO" 5; }
2265 fi
2266 done
2267
2268 if test -r "$cache_file"; then
2269 # Some versions of bash will fail to source /dev/null (special files
2270 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2271 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2273 $as_echo "$as_me: loading cache $cache_file" >&6;}
2274 case $cache_file in
2275 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2276 *) . "./$cache_file";;
2277 esac
2278 fi
2279 else
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2281 $as_echo "$as_me: creating cache $cache_file" >&6;}
2282 >$cache_file
2283 fi
2284
2285 # Check that the precious variables saved in the cache have kept the same
2286 # value.
2287 ac_cache_corrupted=false
2288 for ac_var in $ac_precious_vars; do
2289 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2290 eval ac_new_set=\$ac_env_${ac_var}_set
2291 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2292 eval ac_new_val=\$ac_env_${ac_var}_value
2293 case $ac_old_set,$ac_new_set in
2294 set,)
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2296 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2297 ac_cache_corrupted=: ;;
2298 ,set)
2299 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2300 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2301 ac_cache_corrupted=: ;;
2302 ,);;
2303 *)
2304 if test "x$ac_old_val" != "x$ac_new_val"; then
2305 # differences in whitespace do not lead to failure.
2306 ac_old_val_w=`echo x $ac_old_val`
2307 ac_new_val_w=`echo x $ac_new_val`
2308 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2310 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2311 ac_cache_corrupted=:
2312 else
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2314 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2315 eval $ac_var=\$ac_old_val
2316 fi
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2318 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2320 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2321 fi;;
2322 esac
2323 # Pass precious variables to config.status.
2324 if test "$ac_new_set" = set; then
2325 case $ac_new_val in
2326 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2327 *) ac_arg=$ac_var=$ac_new_val ;;
2328 esac
2329 case " $ac_configure_args " in
2330 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2331 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2332 esac
2333 fi
2334 done
2335 if $ac_cache_corrupted; then
2336 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2338 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2339 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2340 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341 fi
2342 ## -------------------- ##
2343 ## Main body of script. ##
2344 ## -------------------- ##
2345
2346 ac_ext=c
2347 ac_cpp='$CPP $CPPFLAGS'
2348 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2349 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2350 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351
2352 # keep version in sync with ccp4/ccp4_program.h
2353
2354 ac_aux_dir=
2355 for ac_dir in build-aux "$srcdir"/build-aux; do
2356 if test -f "$ac_dir/install-sh"; then
2357 ac_aux_dir=$ac_dir
2358 ac_install_sh="$ac_aux_dir/install-sh -c"
2359 break
2360 elif test -f "$ac_dir/install.sh"; then
2361 ac_aux_dir=$ac_dir
2362 ac_install_sh="$ac_aux_dir/install.sh -c"
2363 break
2364 elif test -f "$ac_dir/shtool"; then
2365 ac_aux_dir=$ac_dir
2366 ac_install_sh="$ac_aux_dir/shtool install -c"
2367 break
2368 fi
2369 done
2370 if test -z "$ac_aux_dir"; then
2371 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2372 fi
2373
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2381
2382
2383
2384
2385 ac_config_headers="$ac_config_headers config.h"
2386
2387 am__api_version='1.13'
2388
2389 # Find a good install program. We prefer a C program (faster),
2390 # so one script is as good as another. But avoid the broken or
2391 # incompatible versions:
2392 # SysV /etc/install, /usr/sbin/install
2393 # SunOS /usr/etc/install
2394 # IRIX /sbin/install
2395 # AIX /bin/install
2396 # AmigaOS /C/install, which installs bootblocks on floppy discs
2397 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2398 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2399 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2400 # OS/2's system install, which has a completely different semantic
2401 # ./install, which can be erroneously created by make from ./install.sh.
2402 # Reject install programs that cannot install multiple files.
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2404 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2405 if test -z "$INSTALL"; then
2406 if ${ac_cv_path_install+:} false; then :
2407 $as_echo_n "(cached) " >&6
2408 else
2409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2410 for as_dir in $PATH
2411 do
2412 IFS=$as_save_IFS
2413 test -z "$as_dir" && as_dir=.
2414 # Account for people who put trailing slashes in PATH elements.
2415 case $as_dir/ in #((
2416 ./ | .// | /[cC]/* | \
2417 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2418 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2419 /usr/ucb/* ) ;;
2420 *)
2421 # OSF1 and SCO ODT 3.0 have their own names for install.
2422 # Don't use installbsd from OSF since it installs stuff as root
2423 # by default.
2424 for ac_prog in ginstall scoinst install; do
2425 for ac_exec_ext in '' $ac_executable_extensions; do
2426 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2427 if test $ac_prog = install &&
2428 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2429 # AIX install. It has an incompatible calling convention.
2430 :
2431 elif test $ac_prog = install &&
2432 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2433 # program-specific install script used by HP pwplus--don't use.
2434 :
2435 else
2436 rm -rf conftest.one conftest.two conftest.dir
2437 echo one > conftest.one
2438 echo two > conftest.two
2439 mkdir conftest.dir
2440 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2441 test -s conftest.one && test -s conftest.two &&
2442 test -s conftest.dir/conftest.one &&
2443 test -s conftest.dir/conftest.two
2444 then
2445 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2446 break 3
2447 fi
2448 fi
2449 fi
2450 done
2451 done
2452 ;;
2453 esac
2454
2455 done
2456 IFS=$as_save_IFS
2457
2458 rm -rf conftest.one conftest.two conftest.dir
2459
2460 fi
2461 if test "${ac_cv_path_install+set}" = set; then
2462 INSTALL=$ac_cv_path_install
2463 else
2464 # As a last resort, use the slow shell script. Don't cache a
2465 # value for INSTALL within a source directory, because that will
2466 # break other packages using the cache if that directory is
2467 # removed, or if the value is a relative name.
2468 INSTALL=$ac_install_sh
2469 fi
2470 fi
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2472 $as_echo "$INSTALL" >&6; }
2473
2474 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2475 # It thinks the first close brace ends the variable substitution.
2476 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2477
2478 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2479
2480 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2481
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2483 $as_echo_n "checking whether build environment is sane... " >&6; }
2484 # Reject unsafe characters in $srcdir or the absolute working directory
2485 # name. Accept space and tab only in the latter.
2486 am_lf='
2487 '
2488 case `pwd` in
2489 *[\\\"\#\$\&\'\`$am_lf]*)
2490 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2491 esac
2492 case $srcdir in
2493 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2494 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2495 esac
2496
2497 # Do 'set' in a subshell so we don't clobber the current shell's
2498 # arguments. Must try -L first in case configure is actually a
2499 # symlink; some systems play weird games with the mod time of symlinks
2500 # (eg FreeBSD returns the mod time of the symlink's containing
2501 # directory).
2502 if (
2503 am_has_slept=no
2504 for am_try in 1 2; do
2505 echo "timestamp, slept: $am_has_slept" > conftest.file
2506 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2507 if test "$*" = "X"; then
2508 # -L didn't work.
2509 set X `ls -t "$srcdir/configure" conftest.file`
2510 fi
2511 if test "$*" != "X $srcdir/configure conftest.file" \
2512 && test "$*" != "X conftest.file $srcdir/configure"; then
2513
2514 # If neither matched, then we have a broken ls. This can happen
2515 # if, for instance, CONFIG_SHELL is bash and it inherits a
2516 # broken ls alias from the environment. This has actually
2517 # happened. Such a system could not be considered "sane".
2518 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2519 alias in your environment" "$LINENO" 5
2520 fi
2521 if test "$2" = conftest.file || test $am_try -eq 2; then
2522 break
2523 fi
2524 # Just in case.
2525 sleep 1
2526 am_has_slept=yes
2527 done
2528 test "$2" = conftest.file
2529 )
2530 then
2531 # Ok.
2532 :
2533 else
2534 as_fn_error $? "newly created file is older than distributed files!
2535 Check your system clock" "$LINENO" 5
2536 fi
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2538 $as_echo "yes" >&6; }
2539 # If we didn't sleep, we still need to ensure time stamps of config.status and
2540 # generated files are strictly newer.
2541 am_sleep_pid=
2542 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2543 ( sleep 1 ) &
2544 am_sleep_pid=$!
2545 fi
2546
2547 rm -f conftest.file
2548
2549 test "$program_prefix" != NONE &&
2550 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2551 # Use a double $ so make ignores it.
2552 test "$program_suffix" != NONE &&
2553 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2554 # Double any \ or $.
2555 # By default was `s,x,x', remove it if useless.
2556 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2557 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2558
2559 # expand $ac_aux_dir to an absolute path
2560 am_aux_dir=`cd $ac_aux_dir && pwd`
2561
2562 if test x"${MISSING+set}" != xset; then
2563 case $am_aux_dir in
2564 *\ * | *\ *)
2565 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2566 *)
2567 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2568 esac
2569 fi
2570 # Use eval to expand $SHELL
2571 if eval "$MISSING --is-lightweight"; then
2572 am_missing_run="$MISSING "
2573 else
2574 am_missing_run=
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2576 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2577 fi
2578
2579 if test x"${install_sh}" != xset; then
2580 case $am_aux_dir in
2581 *\ * | *\ *)
2582 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2583 *)
2584 install_sh="\${SHELL} $am_aux_dir/install-sh"
2585 esac
2586 fi
2587
2588 # Installed binaries are usually stripped using 'strip' when the user
2589 # run "make install-strip". However 'strip' might not be the right
2590 # tool to use in cross-compilation environments, therefore Automake
2591 # will honor the 'STRIP' environment variable to overrule this program.
2592 if test "$cross_compiling" != no; then
2593 if test -n "$ac_tool_prefix"; then
2594 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2595 set dummy ${ac_tool_prefix}strip; ac_word=$2
2596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2597 $as_echo_n "checking for $ac_word... " >&6; }
2598 if ${ac_cv_prog_STRIP+:} false; then :
2599 $as_echo_n "(cached) " >&6
2600 else
2601 if test -n "$STRIP"; then
2602 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2603 else
2604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2605 for as_dir in $PATH
2606 do
2607 IFS=$as_save_IFS
2608 test -z "$as_dir" && as_dir=.
2609 for ac_exec_ext in '' $ac_executable_extensions; do
2610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2611 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2613 break 2
2614 fi
2615 done
2616 done
2617 IFS=$as_save_IFS
2618
2619 fi
2620 fi
2621 STRIP=$ac_cv_prog_STRIP
2622 if test -n "$STRIP"; then
2623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2624 $as_echo "$STRIP" >&6; }
2625 else
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2627 $as_echo "no" >&6; }
2628 fi
2629
2630
2631 fi
2632 if test -z "$ac_cv_prog_STRIP"; then
2633 ac_ct_STRIP=$STRIP
2634 # Extract the first word of "strip", so it can be a program name with args.
2635 set dummy strip; ac_word=$2
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2637 $as_echo_n "checking for $ac_word... " >&6; }
2638 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2639 $as_echo_n "(cached) " >&6
2640 else
2641 if test -n "$ac_ct_STRIP"; then
2642 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2643 else
2644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2645 for as_dir in $PATH
2646 do
2647 IFS=$as_save_IFS
2648 test -z "$as_dir" && as_dir=.
2649 for ac_exec_ext in '' $ac_executable_extensions; do
2650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2651 ac_cv_prog_ac_ct_STRIP="strip"
2652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2653 break 2
2654 fi
2655 done
2656 done
2657 IFS=$as_save_IFS
2658
2659 fi
2660 fi
2661 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2662 if test -n "$ac_ct_STRIP"; then
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2664 $as_echo "$ac_ct_STRIP" >&6; }
2665 else
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2667 $as_echo "no" >&6; }
2668 fi
2669
2670 if test "x$ac_ct_STRIP" = x; then
2671 STRIP=":"
2672 else
2673 case $cross_compiling:$ac_tool_warned in
2674 yes:)
2675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2677 ac_tool_warned=yes ;;
2678 esac
2679 STRIP=$ac_ct_STRIP
2680 fi
2681 else
2682 STRIP="$ac_cv_prog_STRIP"
2683 fi
2684
2685 fi
2686 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2687
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2689 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2690 if test -z "$MKDIR_P"; then
2691 if ${ac_cv_path_mkdir+:} false; then :
2692 $as_echo_n "(cached) " >&6
2693 else
2694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2695 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2696 do
2697 IFS=$as_save_IFS
2698 test -z "$as_dir" && as_dir=.
2699 for ac_prog in mkdir gmkdir; do
2700 for ac_exec_ext in '' $ac_executable_extensions; do
2701 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2702 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2703 'mkdir (GNU coreutils) '* | \
2704 'mkdir (coreutils) '* | \
2705 'mkdir (fileutils) '4.1*)
2706 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2707 break 3;;
2708 esac
2709 done
2710 done
2711 done
2712 IFS=$as_save_IFS
2713
2714 fi
2715
2716 test -d ./--version && rmdir ./--version
2717 if test "${ac_cv_path_mkdir+set}" = set; then
2718 MKDIR_P="$ac_cv_path_mkdir -p"
2719 else
2720 # As a last resort, use the slow shell script. Don't cache a
2721 # value for MKDIR_P within a source directory, because that will
2722 # break other packages using the cache if that directory is
2723 # removed, or if the value is a relative name.
2724 MKDIR_P="$ac_install_sh -d"
2725 fi
2726 fi
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2728 $as_echo "$MKDIR_P" >&6; }
2729
2730 for ac_prog in gawk mawk nawk awk
2731 do
2732 # Extract the first word of "$ac_prog", so it can be a program name with args.
2733 set dummy $ac_prog; ac_word=$2
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2735 $as_echo_n "checking for $ac_word... " >&6; }
2736 if ${ac_cv_prog_AWK+:} false; then :
2737 $as_echo_n "(cached) " >&6
2738 else
2739 if test -n "$AWK"; then
2740 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2741 else
2742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2743 for as_dir in $PATH
2744 do
2745 IFS=$as_save_IFS
2746 test -z "$as_dir" && as_dir=.
2747 for ac_exec_ext in '' $ac_executable_extensions; do
2748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2749 ac_cv_prog_AWK="$ac_prog"
2750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2751 break 2
2752 fi
2753 done
2754 done
2755 IFS=$as_save_IFS
2756
2757 fi
2758 fi
2759 AWK=$ac_cv_prog_AWK
2760 if test -n "$AWK"; then
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2762 $as_echo "$AWK" >&6; }
2763 else
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2765 $as_echo "no" >&6; }
2766 fi
2767
2768
2769 test -n "$AWK" && break
2770 done
2771
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2773 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2774 set x ${MAKE-make}
2775 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2776 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2777 $as_echo_n "(cached) " >&6
2778 else
2779 cat >conftest.make <<\_ACEOF
2780 SHELL = /bin/sh
2781 all:
2782 @echo '@@@%%%=$(MAKE)=@@@%%%'
2783 _ACEOF
2784 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2785 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2786 *@@@%%%=?*=@@@%%%*)
2787 eval ac_cv_prog_make_${ac_make}_set=yes;;
2788 *)
2789 eval ac_cv_prog_make_${ac_make}_set=no;;
2790 esac
2791 rm -f conftest.make
2792 fi
2793 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2795 $as_echo "yes" >&6; }
2796 SET_MAKE=
2797 else
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2799 $as_echo "no" >&6; }
2800 SET_MAKE="MAKE=${MAKE-make}"
2801 fi
2802
2803 rm -rf .tst 2>/dev/null
2804 mkdir .tst 2>/dev/null
2805 if test -d .tst; then
2806 am__leading_dot=.
2807 else
2808 am__leading_dot=_
2809 fi
2810 rmdir .tst 2>/dev/null
2811
2812 # Check whether --enable-silent-rules was given.
2813 if test "${enable_silent_rules+set}" = set; then :
2814 enableval=$enable_silent_rules;
2815 fi
2816
2817 case $enable_silent_rules in # (((
2818 yes) AM_DEFAULT_VERBOSITY=0;;
2819 no) AM_DEFAULT_VERBOSITY=1;;
2820 *) AM_DEFAULT_VERBOSITY=1;;
2821 esac
2822 am_make=${MAKE-make}
2823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2824 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2825 if ${am_cv_make_support_nested_variables+:} false; then :
2826 $as_echo_n "(cached) " >&6
2827 else
2828 if $as_echo 'TRUE=$(BAR$(V))
2829 BAR0=false
2830 BAR1=true
2831 V=1
2832 am__doit:
2833 @$(TRUE)
2834 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2835 am_cv_make_support_nested_variables=yes
2836 else
2837 am_cv_make_support_nested_variables=no
2838 fi
2839 fi
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2841 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2842 if test $am_cv_make_support_nested_variables = yes; then
2843 AM_V='$(V)'
2844 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2845 else
2846 AM_V=$AM_DEFAULT_VERBOSITY
2847 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2848 fi
2849 AM_BACKSLASH='\'
2850
2851 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2852 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2853 # is not polluted with repeated "-I."
2854 am__isrc=' -I$(srcdir)'
2855 # test to see if srcdir already configured
2856 if test -f $srcdir/config.status; then
2857 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2858 fi
2859 fi
2860
2861 # test whether we have cygpath
2862 if test -z "$CYGPATH_W"; then
2863 if (cygpath --version) >/dev/null 2>/dev/null; then
2864 CYGPATH_W='cygpath -w'
2865 else
2866 CYGPATH_W=echo
2867 fi
2868 fi
2869
2870
2871 # Define the identity of the package.
2872 PACKAGE='libccp4'
2873 VERSION='8.0.0'
2874
2875
2876 cat >>confdefs.h <<_ACEOF
2877 #define PACKAGE "$PACKAGE"
2878 _ACEOF
2879
2880
2881 cat >>confdefs.h <<_ACEOF
2882 #define VERSION "$VERSION"
2883 _ACEOF
2884
2885 # Some tools Automake needs.
2886
2887 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2888
2889
2890 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2891
2892
2893 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2894
2895
2896 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2897
2898
2899 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2900
2901 # For better backward compatibility. To be removed once Automake 1.9.x
2902 # dies out for good. For more background, see:
2903 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2904 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2905 mkdir_p='$(MKDIR_P)'
2906
2907 # We need awk for the "check" target. The system "awk" is bad on
2908 # some platforms.
2909 # Always define AMTAR for backward compatibility. Yes, it's still used
2910 # in the wild :-( We should find a proper way to deprecate it ...
2911 AMTAR='$${TAR-tar}'
2912
2913
2914 # We'll loop over all known methods to create a tar archive until one works.
2915 _am_tools='gnutar pax cpio none'
2916
2917 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2918
2919
2920
2921
2922
2923
2924 DEPDIR="${am__leading_dot}deps"
2925
2926 ac_config_commands="$ac_config_commands depfiles"
2927
2928
2929 am_make=${MAKE-make}
2930 cat > confinc << 'END'
2931 am__doit:
2932 @echo this is the am__doit target
2933 .PHONY: am__doit
2934 END
2935 # If we don't find an include directive, just comment out the code.
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
2937 $as_echo_n "checking for style of include used by $am_make... " >&6; }
2938 am__include="#"
2939 am__quote=
2940 _am_result=none
2941 # First try GNU make style include.
2942 echo "include confinc" > confmf
2943 # Ignore all kinds of additional output from 'make'.
2944 case `$am_make -s -f confmf 2> /dev/null` in #(
2945 *the\ am__doit\ target*)
2946 am__include=include
2947 am__quote=
2948 _am_result=GNU
2949 ;;
2950 esac
2951 # Now try BSD make style include.
2952 if test "$am__include" = "#"; then
2953 echo '.include "confinc"' > confmf
2954 case `$am_make -s -f confmf 2> /dev/null` in #(
2955 *the\ am__doit\ target*)
2956 am__include=.include
2957 am__quote="\""
2958 _am_result=BSD
2959 ;;
2960 esac
2961 fi
2962
2963
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
2965 $as_echo "$_am_result" >&6; }
2966 rm -f confinc confmf
2967
2968 # Check whether --enable-dependency-tracking was given.
2969 if test "${enable_dependency_tracking+set}" = set; then :
2970 enableval=$enable_dependency_tracking;
2971 fi
2972
2973 if test "x$enable_dependency_tracking" != xno; then
2974 am_depcomp="$ac_aux_dir/depcomp"
2975 AMDEPBACKSLASH='\'
2976 am__nodep='_no'
2977 fi
2978 if test "x$enable_dependency_tracking" != xno; then
2979 AMDEP_TRUE=
2980 AMDEP_FALSE='#'
2981 else
2982 AMDEP_TRUE='#'
2983 AMDEP_FALSE=
2984 fi
2985
2986
2987 ac_ext=c
2988 ac_cpp='$CPP $CPPFLAGS'
2989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2992 if test -n "$ac_tool_prefix"; then
2993 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2994 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2996 $as_echo_n "checking for $ac_word... " >&6; }
2997 if ${ac_cv_prog_CC+:} false; then :
2998 $as_echo_n "(cached) " >&6
2999 else
3000 if test -n "$CC"; then
3001 ac_cv_prog_CC="$CC" # Let the user override the test.
3002 else
3003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3004 for as_dir in $PATH
3005 do
3006 IFS=$as_save_IFS
3007 test -z "$as_dir" && as_dir=.
3008 for ac_exec_ext in '' $ac_executable_extensions; do
3009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3010 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3012 break 2
3013 fi
3014 done
3015 done
3016 IFS=$as_save_IFS
3017
3018 fi
3019 fi
3020 CC=$ac_cv_prog_CC
3021 if test -n "$CC"; then
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3023 $as_echo "$CC" >&6; }
3024 else
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3026 $as_echo "no" >&6; }
3027 fi
3028
3029
3030 fi
3031 if test -z "$ac_cv_prog_CC"; then
3032 ac_ct_CC=$CC
3033 # Extract the first word of "gcc", so it can be a program name with args.
3034 set dummy gcc; 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_ac_ct_CC+:} false; then :
3038 $as_echo_n "(cached) " >&6
3039 else
3040 if test -n "$ac_ct_CC"; then
3041 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # 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_ac_ct_CC="gcc"
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 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3061 if test -n "$ac_ct_CC"; then
3062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3063 $as_echo "$ac_ct_CC" >&6; }
3064 else
3065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3066 $as_echo "no" >&6; }
3067 fi
3068
3069 if test "x$ac_ct_CC" = x; then
3070 CC=""
3071 else
3072 case $cross_compiling:$ac_tool_warned in
3073 yes:)
3074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3076 ac_tool_warned=yes ;;
3077 esac
3078 CC=$ac_ct_CC
3079 fi
3080 else
3081 CC="$ac_cv_prog_CC"
3082 fi
3083
3084 if test -z "$CC"; then
3085 if test -n "$ac_tool_prefix"; then
3086 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3087 set dummy ${ac_tool_prefix}cc; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3098 do
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="${ac_tool_prefix}cc"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3106 fi
3107 done
3108 done
3109 IFS=$as_save_IFS
3110
3111 fi
3112 fi
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3120 fi
3121
3122
3123 fi
3124 fi
3125 if test -z "$CC"; then
3126 # Extract the first word of "cc", so it can be a program name with args.
3127 set dummy cc; ac_word=$2
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3129 $as_echo_n "checking for $ac_word... " >&6; }
3130 if ${ac_cv_prog_CC+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test -n "$CC"; then
3134 ac_cv_prog_CC="$CC" # Let the user override the test.
3135 else
3136 ac_prog_rejected=no
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_exec_ext in '' $ac_executable_extensions; do
3143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3144 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3145 ac_prog_rejected=yes
3146 continue
3147 fi
3148 ac_cv_prog_CC="cc"
3149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3150 break 2
3151 fi
3152 done
3153 done
3154 IFS=$as_save_IFS
3155
3156 if test $ac_prog_rejected = yes; then
3157 # We found a bogon in the path, so make sure we never use it.
3158 set dummy $ac_cv_prog_CC
3159 shift
3160 if test $# != 0; then
3161 # We chose a different compiler from the bogus one.
3162 # However, it has the same basename, so the bogon will be chosen
3163 # first if we set CC to just the basename; use the full file name.
3164 shift
3165 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3166 fi
3167 fi
3168 fi
3169 fi
3170 CC=$ac_cv_prog_CC
3171 if test -n "$CC"; then
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3173 $as_echo "$CC" >&6; }
3174 else
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3176 $as_echo "no" >&6; }
3177 fi
3178
3179
3180 fi
3181 if test -z "$CC"; then
3182 if test -n "$ac_tool_prefix"; then
3183 for ac_prog in cl.exe
3184 do
3185 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3186 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3188 $as_echo_n "checking for $ac_word... " >&6; }
3189 if ${ac_cv_prog_CC+:} false; then :
3190 $as_echo_n "(cached) " >&6
3191 else
3192 if test -n "$CC"; then
3193 ac_cv_prog_CC="$CC" # Let the user override the test.
3194 else
3195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3196 for as_dir in $PATH
3197 do
3198 IFS=$as_save_IFS
3199 test -z "$as_dir" && as_dir=.
3200 for ac_exec_ext in '' $ac_executable_extensions; do
3201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3202 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3204 break 2
3205 fi
3206 done
3207 done
3208 IFS=$as_save_IFS
3209
3210 fi
3211 fi
3212 CC=$ac_cv_prog_CC
3213 if test -n "$CC"; then
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3215 $as_echo "$CC" >&6; }
3216 else
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3218 $as_echo "no" >&6; }
3219 fi
3220
3221
3222 test -n "$CC" && break
3223 done
3224 fi
3225 if test -z "$CC"; then
3226 ac_ct_CC=$CC
3227 for ac_prog in cl.exe
3228 do
3229 # Extract the first word of "$ac_prog", so it can be a program name with args.
3230 set dummy $ac_prog; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 if test -n "$ac_ct_CC"; then
3237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3238 else
3239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3240 for as_dir in $PATH
3241 do
3242 IFS=$as_save_IFS
3243 test -z "$as_dir" && as_dir=.
3244 for ac_exec_ext in '' $ac_executable_extensions; do
3245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3246 ac_cv_prog_ac_ct_CC="$ac_prog"
3247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3248 break 2
3249 fi
3250 done
3251 done
3252 IFS=$as_save_IFS
3253
3254 fi
3255 fi
3256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3257 if test -n "$ac_ct_CC"; then
3258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3259 $as_echo "$ac_ct_CC" >&6; }
3260 else
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3262 $as_echo "no" >&6; }
3263 fi
3264
3265
3266 test -n "$ac_ct_CC" && break
3267 done
3268
3269 if test "x$ac_ct_CC" = x; then
3270 CC=""
3271 else
3272 case $cross_compiling:$ac_tool_warned in
3273 yes:)
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3275 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3276 ac_tool_warned=yes ;;
3277 esac
3278 CC=$ac_ct_CC
3279 fi
3280 fi
3281
3282 fi
3283
3284
3285 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3286 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3287 as_fn_error $? "no acceptable C compiler found in \$PATH
3288 See \`config.log' for more details" "$LINENO" 5; }
3289
3290 # Provide some information about the compiler.
3291 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3292 set X $ac_compile
3293 ac_compiler=$2
3294 for ac_option in --version -v -V -qversion; do
3295 { { ac_try="$ac_compiler $ac_option >&5"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3301 $as_echo "$ac_try_echo"; } >&5
3302 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3303 ac_status=$?
3304 if test -s conftest.err; then
3305 sed '10a\
3306 ... rest of stderr output deleted ...
3307 10q' conftest.err >conftest.er1
3308 cat conftest.er1 >&5
3309 fi
3310 rm -f conftest.er1 conftest.err
3311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3312 test $ac_status = 0; }
3313 done
3314
3315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3316 /* end confdefs.h. */
3317
3318 int
3319 main ()
3320 {
3321
3322 ;
3323 return 0;
3324 }
3325 _ACEOF
3326 ac_clean_files_save=$ac_clean_files
3327 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3328 # Try to create an executable without -o first, disregard a.out.
3329 # It will help us diagnose broken compilers, and finding out an intuition
3330 # of exeext.
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3332 $as_echo_n "checking whether the C compiler works... " >&6; }
3333 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3334
3335 # The possible output files:
3336 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3337
3338 ac_rmfiles=
3339 for ac_file in $ac_files
3340 do
3341 case $ac_file in
3342 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3343 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3344 esac
3345 done
3346 rm -f $ac_rmfiles
3347
3348 if { { ac_try="$ac_link_default"
3349 case "(($ac_try" in
3350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3351 *) ac_try_echo=$ac_try;;
3352 esac
3353 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3354 $as_echo "$ac_try_echo"; } >&5
3355 (eval "$ac_link_default") 2>&5
3356 ac_status=$?
3357 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3358 test $ac_status = 0; }; then :
3359 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3360 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3361 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3362 # so that the user can short-circuit this test for compilers unknown to
3363 # Autoconf.
3364 for ac_file in $ac_files ''
3365 do
3366 test -f "$ac_file" || continue
3367 case $ac_file in
3368 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3369 ;;
3370 [ab].out )
3371 # We found the default executable, but exeext='' is most
3372 # certainly right.
3373 break;;
3374 *.* )
3375 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3376 then :; else
3377 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3378 fi
3379 # We set ac_cv_exeext here because the later test for it is not
3380 # safe: cross compilers may not add the suffix if given an `-o'
3381 # argument, so we may need to know it at that point already.
3382 # Even if this section looks crufty: it has the advantage of
3383 # actually working.
3384 break;;
3385 * )
3386 break;;
3387 esac
3388 done
3389 test "$ac_cv_exeext" = no && ac_cv_exeext=
3390
3391 else
3392 ac_file=''
3393 fi
3394 if test -z "$ac_file"; then :
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3396 $as_echo "no" >&6; }
3397 $as_echo "$as_me: failed program was:" >&5
3398 sed 's/^/| /' conftest.$ac_ext >&5
3399
3400 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3401 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3402 as_fn_error 77 "C compiler cannot create executables
3403 See \`config.log' for more details" "$LINENO" 5; }
3404 else
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3406 $as_echo "yes" >&6; }
3407 fi
3408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3409 $as_echo_n "checking for C compiler default output file name... " >&6; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3411 $as_echo "$ac_file" >&6; }
3412 ac_exeext=$ac_cv_exeext
3413
3414 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3415 ac_clean_files=$ac_clean_files_save
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3417 $as_echo_n "checking for suffix of executables... " >&6; }
3418 if { { ac_try="$ac_link"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_link") 2>&5
3426 ac_status=$?
3427 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3428 test $ac_status = 0; }; then :
3429 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3430 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3431 # work properly (i.e., refer to `conftest.exe'), while it won't with
3432 # `rm'.
3433 for ac_file in conftest.exe conftest conftest.*; do
3434 test -f "$ac_file" || continue
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3438 break;;
3439 * ) break;;
3440 esac
3441 done
3442 else
3443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3444 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3445 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3446 See \`config.log' for more details" "$LINENO" 5; }
3447 fi
3448 rm -f conftest conftest$ac_cv_exeext
3449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3450 $as_echo "$ac_cv_exeext" >&6; }
3451
3452 rm -f conftest.$ac_ext
3453 EXEEXT=$ac_cv_exeext
3454 ac_exeext=$EXEEXT
3455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3456 /* end confdefs.h. */
3457 #include <stdio.h>
3458 int
3459 main ()
3460 {
3461 FILE *f = fopen ("conftest.out", "w");
3462 return ferror (f) || fclose (f) != 0;
3463
3464 ;
3465 return 0;
3466 }
3467 _ACEOF
3468 ac_clean_files="$ac_clean_files conftest.out"
3469 # Check that the compiler produces executables we can run. If not, either
3470 # the compiler is broken, or we cross compile.
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3472 $as_echo_n "checking whether we are cross compiling... " >&6; }
3473 if test "$cross_compiling" != yes; then
3474 { { ac_try="$ac_link"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3480 $as_echo "$ac_try_echo"; } >&5
3481 (eval "$ac_link") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3484 test $ac_status = 0; }
3485 if { ac_try='./conftest$ac_cv_exeext'
3486 { { case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3491 $as_echo "$ac_try_echo"; } >&5
3492 (eval "$ac_try") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3495 test $ac_status = 0; }; }; then
3496 cross_compiling=no
3497 else
3498 if test "$cross_compiling" = maybe; then
3499 cross_compiling=yes
3500 else
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error $? "cannot run C compiled programs.
3504 If you meant to cross compile, use \`--host'.
3505 See \`config.log' for more details" "$LINENO" 5; }
3506 fi
3507 fi
3508 fi
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3510 $as_echo "$cross_compiling" >&6; }
3511
3512 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3513 ac_clean_files=$ac_clean_files_save
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3515 $as_echo_n "checking for suffix of object files... " >&6; }
3516 if ${ac_cv_objext+:} false; then :
3517 $as_echo_n "(cached) " >&6
3518 else
3519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.o conftest.obj
3531 if { { ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3537 $as_echo "$ac_try_echo"; } >&5
3538 (eval "$ac_compile") 2>&5
3539 ac_status=$?
3540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3541 test $ac_status = 0; }; then :
3542 for ac_file in conftest.o conftest.obj conftest.*; do
3543 test -f "$ac_file" || continue;
3544 case $ac_file in
3545 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3546 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3547 break;;
3548 esac
3549 done
3550 else
3551 $as_echo "$as_me: failed program was:" >&5
3552 sed 's/^/| /' conftest.$ac_ext >&5
3553
3554 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3555 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3556 as_fn_error $? "cannot compute suffix of object files: cannot compile
3557 See \`config.log' for more details" "$LINENO" 5; }
3558 fi
3559 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3560 fi
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3562 $as_echo "$ac_cv_objext" >&6; }
3563 OBJEXT=$ac_cv_objext
3564 ac_objext=$OBJEXT
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3566 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3567 if ${ac_cv_c_compiler_gnu+:} false; then :
3568 $as_echo_n "(cached) " >&6
3569 else
3570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3571 /* end confdefs.h. */
3572
3573 int
3574 main ()
3575 {
3576 #ifndef __GNUC__
3577 choke me
3578 #endif
3579
3580 ;
3581 return 0;
3582 }
3583 _ACEOF
3584 if ac_fn_c_try_compile "$LINENO"; then :
3585 ac_compiler_gnu=yes
3586 else
3587 ac_compiler_gnu=no
3588 fi
3589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3591
3592 fi
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3594 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3595 if test $ac_compiler_gnu = yes; then
3596 GCC=yes
3597 else
3598 GCC=
3599 fi
3600 ac_test_CFLAGS=${CFLAGS+set}
3601 ac_save_CFLAGS=$CFLAGS
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3603 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3604 if ${ac_cv_prog_cc_g+:} false; then :
3605 $as_echo_n "(cached) " >&6
3606 else
3607 ac_save_c_werror_flag=$ac_c_werror_flag
3608 ac_c_werror_flag=yes
3609 ac_cv_prog_cc_g=no
3610 CFLAGS="-g"
3611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 if ac_fn_c_try_compile "$LINENO"; then :
3623 ac_cv_prog_cc_g=yes
3624 else
3625 CFLAGS=""
3626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3627 /* end confdefs.h. */
3628
3629 int
3630 main ()
3631 {
3632
3633 ;
3634 return 0;
3635 }
3636 _ACEOF
3637 if ac_fn_c_try_compile "$LINENO"; then :
3638
3639 else
3640 ac_c_werror_flag=$ac_save_c_werror_flag
3641 CFLAGS="-g"
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 if ac_fn_c_try_compile "$LINENO"; then :
3654 ac_cv_prog_cc_g=yes
3655 fi
3656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3657 fi
3658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3659 fi
3660 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3661 ac_c_werror_flag=$ac_save_c_werror_flag
3662 fi
3663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3664 $as_echo "$ac_cv_prog_cc_g" >&6; }
3665 if test "$ac_test_CFLAGS" = set; then
3666 CFLAGS=$ac_save_CFLAGS
3667 elif test $ac_cv_prog_cc_g = yes; then
3668 if test "$GCC" = yes; then
3669 CFLAGS="-g -O2"
3670 else
3671 CFLAGS="-g"
3672 fi
3673 else
3674 if test "$GCC" = yes; then
3675 CFLAGS="-O2"
3676 else
3677 CFLAGS=
3678 fi
3679 fi
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3681 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3682 if ${ac_cv_prog_cc_c89+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684 else
3685 ac_cv_prog_cc_c89=no
3686 ac_save_CC=$CC
3687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3688 /* end confdefs.h. */
3689 #include <stdarg.h>
3690 #include <stdio.h>
3691 struct stat;
3692 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3693 struct buf { int x; };
3694 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3695 static char *e (p, i)
3696 char **p;
3697 int i;
3698 {
3699 return p[i];
3700 }
3701 static char *f (char * (*g) (char **, int), char **p, ...)
3702 {
3703 char *s;
3704 va_list v;
3705 va_start (v,p);
3706 s = g (p, va_arg (v,int));
3707 va_end (v);
3708 return s;
3709 }
3710
3711 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3712 function prototypes and stuff, but not '\xHH' hex character constants.
3713 These don't provoke an error unfortunately, instead are silently treated
3714 as 'x'. The following induces an error, until -std is added to get
3715 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3716 array size at least. It's necessary to write '\x00'==0 to get something
3717 that's true only with -std. */
3718 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3719
3720 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3721 inside strings and character constants. */
3722 #define FOO(x) 'x'
3723 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3724
3725 int test (int i, double x);
3726 struct s1 {int (*f) (int a);};
3727 struct s2 {int (*f) (double a);};
3728 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3729 int argc;
3730 char **argv;
3731 int
3732 main ()
3733 {
3734 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3735 ;
3736 return 0;
3737 }
3738 _ACEOF
3739 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3740 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3741 do
3742 CC="$ac_save_CC $ac_arg"
3743 if ac_fn_c_try_compile "$LINENO"; then :
3744 ac_cv_prog_cc_c89=$ac_arg
3745 fi
3746 rm -f core conftest.err conftest.$ac_objext
3747 test "x$ac_cv_prog_cc_c89" != "xno" && break
3748 done
3749 rm -f conftest.$ac_ext
3750 CC=$ac_save_CC
3751
3752 fi
3753 # AC_CACHE_VAL
3754 case "x$ac_cv_prog_cc_c89" in
3755 x)
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3757 $as_echo "none needed" >&6; } ;;
3758 xno)
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3760 $as_echo "unsupported" >&6; } ;;
3761 *)
3762 CC="$CC $ac_cv_prog_cc_c89"
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3764 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3765 esac
3766 if test "x$ac_cv_prog_cc_c89" != xno; then :
3767
3768 fi
3769
3770 ac_ext=c
3771 ac_cpp='$CPP $CPPFLAGS'
3772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3775
3776 depcc="$CC" am_compiler_list=
3777
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3779 $as_echo_n "checking dependency style of $depcc... " >&6; }
3780 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3781 $as_echo_n "(cached) " >&6
3782 else
3783 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3784 # We make a subdir and do the tests there. Otherwise we can end up
3785 # making bogus files that we don't know about and never remove. For
3786 # instance it was reported that on HP-UX the gcc test will end up
3787 # making a dummy file named 'D' -- because '-MD' means "put the output
3788 # in D".
3789 rm -rf conftest.dir
3790 mkdir conftest.dir
3791 # Copy depcomp to subdir because otherwise we won't find it if we're
3792 # using a relative directory.
3793 cp "$am_depcomp" conftest.dir
3794 cd conftest.dir
3795 # We will build objects and dependencies in a subdirectory because
3796 # it helps to detect inapplicable dependency modes. For instance
3797 # both Tru64's cc and ICC support -MD to output dependencies as a
3798 # side effect of compilation, but ICC will put the dependencies in
3799 # the current directory while Tru64 will put them in the object
3800 # directory.
3801 mkdir sub
3802
3803 am_cv_CC_dependencies_compiler_type=none
3804 if test "$am_compiler_list" = ""; then
3805 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3806 fi
3807 am__universal=false
3808 case " $depcc " in #(
3809 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3810 esac
3811
3812 for depmode in $am_compiler_list; do
3813 # Setup a source with many dependencies, because some compilers
3814 # like to wrap large dependency lists on column 80 (with \), and
3815 # we should not choose a depcomp mode which is confused by this.
3816 #
3817 # We need to recreate these files for each test, as the compiler may
3818 # overwrite some of them when testing with obscure command lines.
3819 # This happens at least with the AIX C compiler.
3820 : > sub/conftest.c
3821 for i in 1 2 3 4 5 6; do
3822 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3823 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3824 # Solaris 10 /bin/sh.
3825 echo '/* dummy */' > sub/conftst$i.h
3826 done
3827 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3828
3829 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3830 # mode. It turns out that the SunPro C++ compiler does not properly
3831 # handle '-M -o', and we need to detect this. Also, some Intel
3832 # versions had trouble with output in subdirs.
3833 am__obj=sub/conftest.${OBJEXT-o}
3834 am__minus_obj="-o $am__obj"
3835 case $depmode in
3836 gcc)
3837 # This depmode causes a compiler race in universal mode.
3838 test "$am__universal" = false || continue
3839 ;;
3840 nosideeffect)
3841 # After this tag, mechanisms are not by side-effect, so they'll
3842 # only be used when explicitly requested.
3843 if test "x$enable_dependency_tracking" = xyes; then
3844 continue
3845 else
3846 break
3847 fi
3848 ;;
3849 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3850 # This compiler won't grok '-c -o', but also, the minuso test has
3851 # not run yet. These depmodes are late enough in the game, and
3852 # so weak that their functioning should not be impacted.
3853 am__obj=conftest.${OBJEXT-o}
3854 am__minus_obj=
3855 ;;
3856 none) break ;;
3857 esac
3858 if depmode=$depmode \
3859 source=sub/conftest.c object=$am__obj \
3860 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3861 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3862 >/dev/null 2>conftest.err &&
3863 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3864 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3865 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3866 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3867 # icc doesn't choke on unknown options, it will just issue warnings
3868 # or remarks (even with -Werror). So we grep stderr for any message
3869 # that says an option was ignored or not supported.
3870 # When given -MP, icc 7.0 and 7.1 complain thusly:
3871 # icc: Command line warning: ignoring option '-M'; no argument required
3872 # The diagnosis changed in icc 8.0:
3873 # icc: Command line remark: option '-MP' not supported
3874 if (grep 'ignoring option' conftest.err ||
3875 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3876 am_cv_CC_dependencies_compiler_type=$depmode
3877 break
3878 fi
3879 fi
3880 done
3881
3882 cd ..
3883 rm -rf conftest.dir
3884 else
3885 am_cv_CC_dependencies_compiler_type=none
3886 fi
3887
3888 fi
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3890 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3891 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3892
3893 if
3894 test "x$enable_dependency_tracking" != xno \
3895 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3896 am__fastdepCC_TRUE=
3897 am__fastdepCC_FALSE='#'
3898 else
3899 am__fastdepCC_TRUE='#'
3900 am__fastdepCC_FALSE=
3901 fi
3902
3903
3904
3905 if test -n "$ac_tool_prefix"; then
3906 for ac_prog in ar lib "link -lib"
3907 do
3908 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3909 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_prog_AR+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 if test -n "$AR"; then
3916 ac_cv_prog_AR="$AR" # Let the user override the test.
3917 else
3918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919 for as_dir in $PATH
3920 do
3921 IFS=$as_save_IFS
3922 test -z "$as_dir" && as_dir=.
3923 for ac_exec_ext in '' $ac_executable_extensions; do
3924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3925 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
3926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3927 break 2
3928 fi
3929 done
3930 done
3931 IFS=$as_save_IFS
3932
3933 fi
3934 fi
3935 AR=$ac_cv_prog_AR
3936 if test -n "$AR"; then
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3938 $as_echo "$AR" >&6; }
3939 else
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3941 $as_echo "no" >&6; }
3942 fi
3943
3944
3945 test -n "$AR" && break
3946 done
3947 fi
3948 if test -z "$AR"; then
3949 ac_ct_AR=$AR
3950 for ac_prog in ar lib "link -lib"
3951 do
3952 # Extract the first word of "$ac_prog", so it can be a program name with args.
3953 set dummy $ac_prog; ac_word=$2
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3955 $as_echo_n "checking for $ac_word... " >&6; }
3956 if ${ac_cv_prog_ac_ct_AR+:} false; then :
3957 $as_echo_n "(cached) " >&6
3958 else
3959 if test -n "$ac_ct_AR"; then
3960 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
3961 else
3962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3963 for as_dir in $PATH
3964 do
3965 IFS=$as_save_IFS
3966 test -z "$as_dir" && as_dir=.
3967 for ac_exec_ext in '' $ac_executable_extensions; do
3968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3969 ac_cv_prog_ac_ct_AR="$ac_prog"
3970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3971 break 2
3972 fi
3973 done
3974 done
3975 IFS=$as_save_IFS
3976
3977 fi
3978 fi
3979 ac_ct_AR=$ac_cv_prog_ac_ct_AR
3980 if test -n "$ac_ct_AR"; then
3981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
3982 $as_echo "$ac_ct_AR" >&6; }
3983 else
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3985 $as_echo "no" >&6; }
3986 fi
3987
3988
3989 test -n "$ac_ct_AR" && break
3990 done
3991
3992 if test "x$ac_ct_AR" = x; then
3993 AR="false"
3994 else
3995 case $cross_compiling:$ac_tool_warned in
3996 yes:)
3997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3999 ac_tool_warned=yes ;;
4000 esac
4001 AR=$ac_ct_AR
4002 fi
4003 fi
4004
4005 : ${AR=ar}
4006
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
4008 $as_echo_n "checking the archiver ($AR) interface... " >&6; }
4009 if ${am_cv_ar_interface+:} false; then :
4010 $as_echo_n "(cached) " >&6
4011 else
4012 am_cv_ar_interface=ar
4013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4014 /* end confdefs.h. */
4015 int some_variable = 0;
4016 _ACEOF
4017 if ac_fn_c_try_compile "$LINENO"; then :
4018 am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
4019 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4020 (eval $am_ar_try) 2>&5
4021 ac_status=$?
4022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4023 test $ac_status = 0; }
4024 if test "$ac_status" -eq 0; then
4025 am_cv_ar_interface=ar
4026 else
4027 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
4028 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
4029 (eval $am_ar_try) 2>&5
4030 ac_status=$?
4031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4032 test $ac_status = 0; }
4033 if test "$ac_status" -eq 0; then
4034 am_cv_ar_interface=lib
4035 else
4036 am_cv_ar_interface=unknown
4037 fi
4038 fi
4039 rm -f conftest.lib libconftest.a
4040
4041 fi
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043
4044 fi
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
4046 $as_echo "$am_cv_ar_interface" >&6; }
4047
4048 case $am_cv_ar_interface in
4049 ar)
4050 ;;
4051 lib)
4052 # Microsoft lib, so override with the ar-lib wrapper script.
4053 # FIXME: It is wrong to rewrite AR.
4054 # But if we don't then we get into trouble of one sort or another.
4055 # A longer-term fix would be to have automake use am__AR in this case,
4056 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
4057 # similar.
4058 AR="$am_aux_dir/ar-lib $AR"
4059 ;;
4060 unknown)
4061 as_fn_error $? "could not determine $AR interface" "$LINENO" 5
4062 ;;
4063 esac
4064
4065 case `pwd` in
4066 *\ * | *\ *)
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4068 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4069 esac
4070
4071
4072
4073 macro_version='2.4.2'
4074 macro_revision='1.3337'
4075
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088 ltmain="$ac_aux_dir/ltmain.sh"
4089
4090 # Make sure we can run config.sub.
4091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4092 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4093
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4095 $as_echo_n "checking build system type... " >&6; }
4096 if ${ac_cv_build+:} false; then :
4097 $as_echo_n "(cached) " >&6
4098 else
4099 ac_build_alias=$build_alias
4100 test "x$ac_build_alias" = x &&
4101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4102 test "x$ac_build_alias" = x &&
4103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4106
4107 fi
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4109 $as_echo "$ac_cv_build" >&6; }
4110 case $ac_cv_build in
4111 *-*-*) ;;
4112 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4113 esac
4114 build=$ac_cv_build
4115 ac_save_IFS=$IFS; IFS='-'
4116 set x $ac_cv_build
4117 shift
4118 build_cpu=$1
4119 build_vendor=$2
4120 shift; shift
4121 # Remember, the first character of IFS is used to create $*,
4122 # except with old shells:
4123 build_os=$*
4124 IFS=$ac_save_IFS
4125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4126
4127
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4129 $as_echo_n "checking host system type... " >&6; }
4130 if ${ac_cv_host+:} false; then :
4131 $as_echo_n "(cached) " >&6
4132 else
4133 if test "x$host_alias" = x; then
4134 ac_cv_host=$ac_cv_build
4135 else
4136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4138 fi
4139
4140 fi
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4142 $as_echo "$ac_cv_host" >&6; }
4143 case $ac_cv_host in
4144 *-*-*) ;;
4145 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4146 esac
4147 host=$ac_cv_host
4148 ac_save_IFS=$IFS; IFS='-'
4149 set x $ac_cv_host
4150 shift
4151 host_cpu=$1
4152 host_vendor=$2
4153 shift; shift
4154 # Remember, the first character of IFS is used to create $*,
4155 # except with old shells:
4156 host_os=$*
4157 IFS=$ac_save_IFS
4158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4159
4160
4161 # Backslashify metacharacters that are still active within
4162 # double-quoted strings.
4163 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4164
4165 # Same as above, but do not quote variable references.
4166 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4167
4168 # Sed substitution to delay expansion of an escaped shell variable in a
4169 # double_quote_subst'ed string.
4170 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4171
4172 # Sed substitution to delay expansion of an escaped single quote.
4173 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4174
4175 # Sed substitution to avoid accidental globbing in evaled expressions
4176 no_glob_subst='s/\*/\\\*/g'
4177
4178 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4179 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4180 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4181
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4183 $as_echo_n "checking how to print strings... " >&6; }
4184 # Test print first, because it will be a builtin if present.
4185 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4186 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4187 ECHO='print -r --'
4188 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4189 ECHO='printf %s\n'
4190 else
4191 # Use this function as a fallback that always works.
4192 func_fallback_echo ()
4193 {
4194 eval 'cat <<_LTECHO_EOF
4195 $1
4196 _LTECHO_EOF'
4197 }
4198 ECHO='func_fallback_echo'
4199 fi
4200
4201 # func_echo_all arg...
4202 # Invoke $ECHO with all args, space-separated.
4203 func_echo_all ()
4204 {
4205 $ECHO ""
4206 }
4207
4208 case "$ECHO" in
4209 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4210 $as_echo "printf" >&6; } ;;
4211 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4212 $as_echo "print -r" >&6; } ;;
4213 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4214 $as_echo "cat" >&6; } ;;
4215 esac
4216
4217
4218
4219
4220
4221
4222
4223
4224
4225
4226
4227
4228
4229
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4231 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4232 if ${ac_cv_path_SED+:} false; then :
4233 $as_echo_n "(cached) " >&6
4234 else
4235 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4236 for ac_i in 1 2 3 4 5 6 7; do
4237 ac_script="$ac_script$as_nl$ac_script"
4238 done
4239 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4240 { ac_script=; unset ac_script;}
4241 if test -z "$SED"; then
4242 ac_path_SED_found=false
4243 # Loop through the user's path and test for each of PROGNAME-LIST
4244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4245 for as_dir in $PATH
4246 do
4247 IFS=$as_save_IFS
4248 test -z "$as_dir" && as_dir=.
4249 for ac_prog in sed gsed; do
4250 for ac_exec_ext in '' $ac_executable_extensions; do
4251 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4252 as_fn_executable_p "$ac_path_SED" || continue
4253 # Check for GNU ac_path_SED and select it if it is found.
4254 # Check for GNU $ac_path_SED
4255 case `"$ac_path_SED" --version 2>&1` in
4256 *GNU*)
4257 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4258 *)
4259 ac_count=0
4260 $as_echo_n 0123456789 >"conftest.in"
4261 while :
4262 do
4263 cat "conftest.in" "conftest.in" >"conftest.tmp"
4264 mv "conftest.tmp" "conftest.in"
4265 cp "conftest.in" "conftest.nl"
4266 $as_echo '' >> "conftest.nl"
4267 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4269 as_fn_arith $ac_count + 1 && ac_count=$as_val
4270 if test $ac_count -gt ${ac_path_SED_max-0}; then
4271 # Best one so far, save it but keep looking for a better one
4272 ac_cv_path_SED="$ac_path_SED"
4273 ac_path_SED_max=$ac_count
4274 fi
4275 # 10*(2^10) chars as input seems more than enough
4276 test $ac_count -gt 10 && break
4277 done
4278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4279 esac
4280
4281 $ac_path_SED_found && break 3
4282 done
4283 done
4284 done
4285 IFS=$as_save_IFS
4286 if test -z "$ac_cv_path_SED"; then
4287 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4288 fi
4289 else
4290 ac_cv_path_SED=$SED
4291 fi
4292
4293 fi
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4295 $as_echo "$ac_cv_path_SED" >&6; }
4296 SED="$ac_cv_path_SED"
4297 rm -f conftest.sed
4298
4299 test -z "$SED" && SED=sed
4300 Xsed="$SED -e 1s/^X//"
4301
4302
4303
4304
4305
4306
4307
4308
4309
4310
4311
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4313 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4314 if ${ac_cv_path_GREP+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316 else
4317 if test -z "$GREP"; then
4318 ac_path_GREP_found=false
4319 # Loop through the user's path and test for each of PROGNAME-LIST
4320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4321 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4322 do
4323 IFS=$as_save_IFS
4324 test -z "$as_dir" && as_dir=.
4325 for ac_prog in grep ggrep; do
4326 for ac_exec_ext in '' $ac_executable_extensions; do
4327 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4328 as_fn_executable_p "$ac_path_GREP" || continue
4329 # Check for GNU ac_path_GREP and select it if it is found.
4330 # Check for GNU $ac_path_GREP
4331 case `"$ac_path_GREP" --version 2>&1` in
4332 *GNU*)
4333 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4334 *)
4335 ac_count=0
4336 $as_echo_n 0123456789 >"conftest.in"
4337 while :
4338 do
4339 cat "conftest.in" "conftest.in" >"conftest.tmp"
4340 mv "conftest.tmp" "conftest.in"
4341 cp "conftest.in" "conftest.nl"
4342 $as_echo 'GREP' >> "conftest.nl"
4343 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4344 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4345 as_fn_arith $ac_count + 1 && ac_count=$as_val
4346 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4347 # Best one so far, save it but keep looking for a better one
4348 ac_cv_path_GREP="$ac_path_GREP"
4349 ac_path_GREP_max=$ac_count
4350 fi
4351 # 10*(2^10) chars as input seems more than enough
4352 test $ac_count -gt 10 && break
4353 done
4354 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4355 esac
4356
4357 $ac_path_GREP_found && break 3
4358 done
4359 done
4360 done
4361 IFS=$as_save_IFS
4362 if test -z "$ac_cv_path_GREP"; then
4363 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4364 fi
4365 else
4366 ac_cv_path_GREP=$GREP
4367 fi
4368
4369 fi
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4371 $as_echo "$ac_cv_path_GREP" >&6; }
4372 GREP="$ac_cv_path_GREP"
4373
4374
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4376 $as_echo_n "checking for egrep... " >&6; }
4377 if ${ac_cv_path_EGREP+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4381 then ac_cv_path_EGREP="$GREP -E"
4382 else
4383 if test -z "$EGREP"; then
4384 ac_path_EGREP_found=false
4385 # Loop through the user's path and test for each of PROGNAME-LIST
4386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4387 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4388 do
4389 IFS=$as_save_IFS
4390 test -z "$as_dir" && as_dir=.
4391 for ac_prog in egrep; do
4392 for ac_exec_ext in '' $ac_executable_extensions; do
4393 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4394 as_fn_executable_p "$ac_path_EGREP" || continue
4395 # Check for GNU ac_path_EGREP and select it if it is found.
4396 # Check for GNU $ac_path_EGREP
4397 case `"$ac_path_EGREP" --version 2>&1` in
4398 *GNU*)
4399 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4400 *)
4401 ac_count=0
4402 $as_echo_n 0123456789 >"conftest.in"
4403 while :
4404 do
4405 cat "conftest.in" "conftest.in" >"conftest.tmp"
4406 mv "conftest.tmp" "conftest.in"
4407 cp "conftest.in" "conftest.nl"
4408 $as_echo 'EGREP' >> "conftest.nl"
4409 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4410 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4411 as_fn_arith $ac_count + 1 && ac_count=$as_val
4412 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4413 # Best one so far, save it but keep looking for a better one
4414 ac_cv_path_EGREP="$ac_path_EGREP"
4415 ac_path_EGREP_max=$ac_count
4416 fi
4417 # 10*(2^10) chars as input seems more than enough
4418 test $ac_count -gt 10 && break
4419 done
4420 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4421 esac
4422
4423 $ac_path_EGREP_found && break 3
4424 done
4425 done
4426 done
4427 IFS=$as_save_IFS
4428 if test -z "$ac_cv_path_EGREP"; then
4429 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4430 fi
4431 else
4432 ac_cv_path_EGREP=$EGREP
4433 fi
4434
4435 fi
4436 fi
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4438 $as_echo "$ac_cv_path_EGREP" >&6; }
4439 EGREP="$ac_cv_path_EGREP"
4440
4441
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4443 $as_echo_n "checking for fgrep... " >&6; }
4444 if ${ac_cv_path_FGREP+:} false; then :
4445 $as_echo_n "(cached) " >&6
4446 else
4447 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4448 then ac_cv_path_FGREP="$GREP -F"
4449 else
4450 if test -z "$FGREP"; then
4451 ac_path_FGREP_found=false
4452 # Loop through the user's path and test for each of PROGNAME-LIST
4453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4454 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4455 do
4456 IFS=$as_save_IFS
4457 test -z "$as_dir" && as_dir=.
4458 for ac_prog in fgrep; do
4459 for ac_exec_ext in '' $ac_executable_extensions; do
4460 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4461 as_fn_executable_p "$ac_path_FGREP" || continue
4462 # Check for GNU ac_path_FGREP and select it if it is found.
4463 # Check for GNU $ac_path_FGREP
4464 case `"$ac_path_FGREP" --version 2>&1` in
4465 *GNU*)
4466 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4467 *)
4468 ac_count=0
4469 $as_echo_n 0123456789 >"conftest.in"
4470 while :
4471 do
4472 cat "conftest.in" "conftest.in" >"conftest.tmp"
4473 mv "conftest.tmp" "conftest.in"
4474 cp "conftest.in" "conftest.nl"
4475 $as_echo 'FGREP' >> "conftest.nl"
4476 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4478 as_fn_arith $ac_count + 1 && ac_count=$as_val
4479 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4480 # Best one so far, save it but keep looking for a better one
4481 ac_cv_path_FGREP="$ac_path_FGREP"
4482 ac_path_FGREP_max=$ac_count
4483 fi
4484 # 10*(2^10) chars as input seems more than enough
4485 test $ac_count -gt 10 && break
4486 done
4487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4488 esac
4489
4490 $ac_path_FGREP_found && break 3
4491 done
4492 done
4493 done
4494 IFS=$as_save_IFS
4495 if test -z "$ac_cv_path_FGREP"; then
4496 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4497 fi
4498 else
4499 ac_cv_path_FGREP=$FGREP
4500 fi
4501
4502 fi
4503 fi
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4505 $as_echo "$ac_cv_path_FGREP" >&6; }
4506 FGREP="$ac_cv_path_FGREP"
4507
4508
4509 test -z "$GREP" && GREP=grep
4510
4511
4512
4513
4514
4515
4516
4517
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528
4529 # Check whether --with-gnu-ld was given.
4530 if test "${with_gnu_ld+set}" = set; then :
4531 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4532 else
4533 with_gnu_ld=no
4534 fi
4535
4536 ac_prog=ld
4537 if test "$GCC" = yes; then
4538 # Check if gcc -print-prog-name=ld gives a path.
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4540 $as_echo_n "checking for ld used by $CC... " >&6; }
4541 case $host in
4542 *-*-mingw*)
4543 # gcc leaves a trailing carriage return which upsets mingw
4544 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4545 *)
4546 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4547 esac
4548 case $ac_prog in
4549 # Accept absolute paths.
4550 [\\/]* | ?:[\\/]*)
4551 re_direlt='/[^/][^/]*/\.\./'
4552 # Canonicalize the pathname of ld
4553 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4554 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4555 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4556 done
4557 test -z "$LD" && LD="$ac_prog"
4558 ;;
4559 "")
4560 # If it fails, then pretend we aren't using GCC.
4561 ac_prog=ld
4562 ;;
4563 *)
4564 # If it is relative, then search for the first ld in PATH.
4565 with_gnu_ld=unknown
4566 ;;
4567 esac
4568 elif test "$with_gnu_ld" = yes; then
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4570 $as_echo_n "checking for GNU ld... " >&6; }
4571 else
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4573 $as_echo_n "checking for non-GNU ld... " >&6; }
4574 fi
4575 if ${lt_cv_path_LD+:} false; then :
4576 $as_echo_n "(cached) " >&6
4577 else
4578 if test -z "$LD"; then
4579 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4580 for ac_dir in $PATH; do
4581 IFS="$lt_save_ifs"
4582 test -z "$ac_dir" && ac_dir=.
4583 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4584 lt_cv_path_LD="$ac_dir/$ac_prog"
4585 # Check to see if the program is GNU ld. I'd rather use --version,
4586 # but apparently some variants of GNU ld only accept -v.
4587 # Break only if it was the GNU/non-GNU ld that we prefer.
4588 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4589 *GNU* | *'with BFD'*)
4590 test "$with_gnu_ld" != no && break
4591 ;;
4592 *)
4593 test "$with_gnu_ld" != yes && break
4594 ;;
4595 esac
4596 fi
4597 done
4598 IFS="$lt_save_ifs"
4599 else
4600 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4601 fi
4602 fi
4603
4604 LD="$lt_cv_path_LD"
4605 if test -n "$LD"; then
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4607 $as_echo "$LD" >&6; }
4608 else
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4610 $as_echo "no" >&6; }
4611 fi
4612 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4614 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4615 if ${lt_cv_prog_gnu_ld+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617 else
4618 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4619 case `$LD -v 2>&1 </dev/null` in
4620 *GNU* | *'with BFD'*)
4621 lt_cv_prog_gnu_ld=yes
4622 ;;
4623 *)
4624 lt_cv_prog_gnu_ld=no
4625 ;;
4626 esac
4627 fi
4628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4629 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4630 with_gnu_ld=$lt_cv_prog_gnu_ld
4631
4632
4633
4634
4635
4636
4637
4638
4639
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4641 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4642 if ${lt_cv_path_NM+:} false; then :
4643 $as_echo_n "(cached) " >&6
4644 else
4645 if test -n "$NM"; then
4646 # Let the user override the test.
4647 lt_cv_path_NM="$NM"
4648 else
4649 lt_nm_to_check="${ac_tool_prefix}nm"
4650 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4651 lt_nm_to_check="$lt_nm_to_check nm"
4652 fi
4653 for lt_tmp_nm in $lt_nm_to_check; do
4654 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4655 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4656 IFS="$lt_save_ifs"
4657 test -z "$ac_dir" && ac_dir=.
4658 tmp_nm="$ac_dir/$lt_tmp_nm"
4659 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4660 # Check to see if the nm accepts a BSD-compat flag.
4661 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4662 # nm: unknown option "B" ignored
4663 # Tru64's nm complains that /dev/null is an invalid object file
4664 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4665 */dev/null* | *'Invalid file or object type'*)
4666 lt_cv_path_NM="$tmp_nm -B"
4667 break
4668 ;;
4669 *)
4670 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4671 */dev/null*)
4672 lt_cv_path_NM="$tmp_nm -p"
4673 break
4674 ;;
4675 *)
4676 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4677 continue # so that we can try to find one that supports BSD flags
4678 ;;
4679 esac
4680 ;;
4681 esac
4682 fi
4683 done
4684 IFS="$lt_save_ifs"
4685 done
4686 : ${lt_cv_path_NM=no}
4687 fi
4688 fi
4689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4690 $as_echo "$lt_cv_path_NM" >&6; }
4691 if test "$lt_cv_path_NM" != "no"; then
4692 NM="$lt_cv_path_NM"
4693 else
4694 # Didn't find any BSD compatible name lister, look for dumpbin.
4695 if test -n "$DUMPBIN"; then :
4696 # Let the user override the test.
4697 else
4698 if test -n "$ac_tool_prefix"; then
4699 for ac_prog in dumpbin "link -dump"
4700 do
4701 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4702 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4704 $as_echo_n "checking for $ac_word... " >&6; }
4705 if ${ac_cv_prog_DUMPBIN+:} false; then :
4706 $as_echo_n "(cached) " >&6
4707 else
4708 if test -n "$DUMPBIN"; then
4709 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4710 else
4711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4712 for as_dir in $PATH
4713 do
4714 IFS=$as_save_IFS
4715 test -z "$as_dir" && as_dir=.
4716 for ac_exec_ext in '' $ac_executable_extensions; do
4717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4718 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4719 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4720 break 2
4721 fi
4722 done
4723 done
4724 IFS=$as_save_IFS
4725
4726 fi
4727 fi
4728 DUMPBIN=$ac_cv_prog_DUMPBIN
4729 if test -n "$DUMPBIN"; then
4730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4731 $as_echo "$DUMPBIN" >&6; }
4732 else
4733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4734 $as_echo "no" >&6; }
4735 fi
4736
4737
4738 test -n "$DUMPBIN" && break
4739 done
4740 fi
4741 if test -z "$DUMPBIN"; then
4742 ac_ct_DUMPBIN=$DUMPBIN
4743 for ac_prog in dumpbin "link -dump"
4744 do
4745 # Extract the first word of "$ac_prog", so it can be a program name with args.
4746 set dummy $ac_prog; ac_word=$2
4747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4748 $as_echo_n "checking for $ac_word... " >&6; }
4749 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4750 $as_echo_n "(cached) " >&6
4751 else
4752 if test -n "$ac_ct_DUMPBIN"; then
4753 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
4754 else
4755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4756 for as_dir in $PATH
4757 do
4758 IFS=$as_save_IFS
4759 test -z "$as_dir" && as_dir=.
4760 for ac_exec_ext in '' $ac_executable_extensions; do
4761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4762 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
4763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4764 break 2
4765 fi
4766 done
4767 done
4768 IFS=$as_save_IFS
4769
4770 fi
4771 fi
4772 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
4773 if test -n "$ac_ct_DUMPBIN"; then
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
4775 $as_echo "$ac_ct_DUMPBIN" >&6; }
4776 else
4777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4778 $as_echo "no" >&6; }
4779 fi
4780
4781
4782 test -n "$ac_ct_DUMPBIN" && break
4783 done
4784
4785 if test "x$ac_ct_DUMPBIN" = x; then
4786 DUMPBIN=":"
4787 else
4788 case $cross_compiling:$ac_tool_warned in
4789 yes:)
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4791 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4792 ac_tool_warned=yes ;;
4793 esac
4794 DUMPBIN=$ac_ct_DUMPBIN
4795 fi
4796 fi
4797
4798 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
4799 *COFF*)
4800 DUMPBIN="$DUMPBIN -symbols"
4801 ;;
4802 *)
4803 DUMPBIN=:
4804 ;;
4805 esac
4806 fi
4807
4808 if test "$DUMPBIN" != ":"; then
4809 NM="$DUMPBIN"
4810 fi
4811 fi
4812 test -z "$NM" && NM=nm
4813
4814
4815
4816
4817
4818
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
4820 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
4821 if ${lt_cv_nm_interface+:} false; then :
4822 $as_echo_n "(cached) " >&6
4823 else
4824 lt_cv_nm_interface="BSD nm"
4825 echo "int some_variable = 0;" > conftest.$ac_ext
4826 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
4827 (eval "$ac_compile" 2>conftest.err)
4828 cat conftest.err >&5
4829 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
4830 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
4831 cat conftest.err >&5
4832 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
4833 cat conftest.out >&5
4834 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
4835 lt_cv_nm_interface="MS dumpbin"
4836 fi
4837 rm -f conftest*
4838 fi
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
4840 $as_echo "$lt_cv_nm_interface" >&6; }
4841
4842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4843 $as_echo_n "checking whether ln -s works... " >&6; }
4844 LN_S=$as_ln_s
4845 if test "$LN_S" = "ln -s"; then
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4847 $as_echo "yes" >&6; }
4848 else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4850 $as_echo "no, using $LN_S" >&6; }
4851 fi
4852
4853 # find the maximum length of command line arguments
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
4855 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
4856 if ${lt_cv_sys_max_cmd_len+:} false; then :
4857 $as_echo_n "(cached) " >&6
4858 else
4859 i=0
4860 teststring="ABCD"
4861
4862 case $build_os in
4863 msdosdjgpp*)
4864 # On DJGPP, this test can blow up pretty badly due to problems in libc
4865 # (any single argument exceeding 2000 bytes causes a buffer overrun
4866 # during glob expansion). Even if it were fixed, the result of this
4867 # check would be larger than it should be.
4868 lt_cv_sys_max_cmd_len=12288; # 12K is about right
4869 ;;
4870
4871 gnu*)
4872 # Under GNU Hurd, this test is not required because there is
4873 # no limit to the length of command line arguments.
4874 # Libtool will interpret -1 as no limit whatsoever
4875 lt_cv_sys_max_cmd_len=-1;
4876 ;;
4877
4878 cygwin* | mingw* | cegcc*)
4879 # On Win9x/ME, this test blows up -- it succeeds, but takes
4880 # about 5 minutes as the teststring grows exponentially.
4881 # Worse, since 9x/ME are not pre-emptively multitasking,
4882 # you end up with a "frozen" computer, even though with patience
4883 # the test eventually succeeds (with a max line length of 256k).
4884 # Instead, let's just punt: use the minimum linelength reported by
4885 # all of the supported platforms: 8192 (on NT/2K/XP).
4886 lt_cv_sys_max_cmd_len=8192;
4887 ;;
4888
4889 mint*)
4890 # On MiNT this can take a long time and run out of memory.
4891 lt_cv_sys_max_cmd_len=8192;
4892 ;;
4893
4894 amigaos*)
4895 # On AmigaOS with pdksh, this test takes hours, literally.
4896 # So we just punt and use a minimum line length of 8192.
4897 lt_cv_sys_max_cmd_len=8192;
4898 ;;
4899
4900 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
4901 # This has been around since 386BSD, at least. Likely further.
4902 if test -x /sbin/sysctl; then
4903 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
4904 elif test -x /usr/sbin/sysctl; then
4905 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
4906 else
4907 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
4908 fi
4909 # And add a safety zone
4910 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4911 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4912 ;;
4913
4914 interix*)
4915 # We know the value 262144 and hardcode it with a safety zone (like BSD)
4916 lt_cv_sys_max_cmd_len=196608
4917 ;;
4918
4919 os2*)
4920 # The test takes a long time on OS/2.
4921 lt_cv_sys_max_cmd_len=8192
4922 ;;
4923
4924 osf*)
4925 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
4926 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
4927 # nice to cause kernel panics so lets avoid the loop below.
4928 # First set a reasonable default.
4929 lt_cv_sys_max_cmd_len=16384
4930 #
4931 if test -x /sbin/sysconfig; then
4932 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
4933 *1*) lt_cv_sys_max_cmd_len=-1 ;;
4934 esac
4935 fi
4936 ;;
4937 sco3.2v5*)
4938 lt_cv_sys_max_cmd_len=102400
4939 ;;
4940 sysv5* | sco5v6* | sysv4.2uw2*)
4941 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
4942 if test -n "$kargmax"; then
4943 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
4944 else
4945 lt_cv_sys_max_cmd_len=32768
4946 fi
4947 ;;
4948 *)
4949 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
4950 if test -n "$lt_cv_sys_max_cmd_len"; then
4951 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
4953 else
4954 # Make teststring a little bigger before we do anything with it.
4955 # a 1K string should be a reasonable start.
4956 for i in 1 2 3 4 5 6 7 8 ; do
4957 teststring=$teststring$teststring
4958 done
4959 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
4960 # If test is not a shell built-in, we'll probably end up computing a
4961 # maximum length that is only half of the actual maximum length, but
4962 # we can't tell.
4963 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
4964 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
4965 test $i != 17 # 1/2 MB should be enough
4966 do
4967 i=`expr $i + 1`
4968 teststring=$teststring$teststring
4969 done
4970 # Only check the string length outside the loop.
4971 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
4972 teststring=
4973 # Add a significant safety factor because C++ compilers can tack on
4974 # massive amounts of additional arguments before passing them to the
4975 # linker. It appears as though 1/2 is a usable value.
4976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
4977 fi
4978 ;;
4979 esac
4980
4981 fi
4982
4983 if test -n $lt_cv_sys_max_cmd_len ; then
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
4985 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
4986 else
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
4988 $as_echo "none" >&6; }
4989 fi
4990 max_cmd_len=$lt_cv_sys_max_cmd_len
4991
4992
4993
4994
4995
4996
4997 : ${CP="cp -f"}
4998 : ${MV="mv -f"}
4999 : ${RM="rm -f"}
5000
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5002 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5003 # Try some XSI features
5004 xsi_shell=no
5005 ( _lt_dummy="a/b/c"
5006 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5007 = c,a/b,b/c, \
5008 && eval 'test $(( 1 + 1 )) -eq 2 \
5009 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5010 && xsi_shell=yes
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5012 $as_echo "$xsi_shell" >&6; }
5013
5014
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5016 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5017 lt_shell_append=no
5018 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5019 >/dev/null 2>&1 \
5020 && lt_shell_append=yes
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5022 $as_echo "$lt_shell_append" >&6; }
5023
5024
5025 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5026 lt_unset=unset
5027 else
5028 lt_unset=false
5029 fi
5030
5031
5032
5033
5034
5035 # test EBCDIC or ASCII
5036 case `echo X|tr X '\101'` in
5037 A) # ASCII based system
5038 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5039 lt_SP2NL='tr \040 \012'
5040 lt_NL2SP='tr \015\012 \040\040'
5041 ;;
5042 *) # EBCDIC based system
5043 lt_SP2NL='tr \100 \n'
5044 lt_NL2SP='tr \r\n \100\100'
5045 ;;
5046 esac
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5057 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5058 if ${lt_cv_to_host_file_cmd+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 case $host in
5062 *-*-mingw* )
5063 case $build in
5064 *-*-mingw* ) # actually msys
5065 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5066 ;;
5067 *-*-cygwin* )
5068 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5069 ;;
5070 * ) # otherwise, assume *nix
5071 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5072 ;;
5073 esac
5074 ;;
5075 *-*-cygwin* )
5076 case $build in
5077 *-*-mingw* ) # actually msys
5078 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5079 ;;
5080 *-*-cygwin* )
5081 lt_cv_to_host_file_cmd=func_convert_file_noop
5082 ;;
5083 * ) # otherwise, assume *nix
5084 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5085 ;;
5086 esac
5087 ;;
5088 * ) # unhandled hosts (and "normal" native builds)
5089 lt_cv_to_host_file_cmd=func_convert_file_noop
5090 ;;
5091 esac
5092
5093 fi
5094
5095 to_host_file_cmd=$lt_cv_to_host_file_cmd
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5097 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5098
5099
5100
5101
5102
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5104 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5105 if ${lt_cv_to_tool_file_cmd+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 #assume ordinary cross tools, or native build.
5109 lt_cv_to_tool_file_cmd=func_convert_file_noop
5110 case $host in
5111 *-*-mingw* )
5112 case $build in
5113 *-*-mingw* ) # actually msys
5114 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5115 ;;
5116 esac
5117 ;;
5118 esac
5119
5120 fi
5121
5122 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5124 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5125
5126
5127
5128
5129
5130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5131 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5132 if ${lt_cv_ld_reload_flag+:} false; then :
5133 $as_echo_n "(cached) " >&6
5134 else
5135 lt_cv_ld_reload_flag='-r'
5136 fi
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5138 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5139 reload_flag=$lt_cv_ld_reload_flag
5140 case $reload_flag in
5141 "" | " "*) ;;
5142 *) reload_flag=" $reload_flag" ;;
5143 esac
5144 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5145 case $host_os in
5146 cygwin* | mingw* | pw32* | cegcc*)
5147 if test "$GCC" != yes; then
5148 reload_cmds=false
5149 fi
5150 ;;
5151 darwin*)
5152 if test "$GCC" = yes; then
5153 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5154 else
5155 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5156 fi
5157 ;;
5158 esac
5159
5160
5161
5162
5163
5164
5165
5166
5167
5168 if test -n "$ac_tool_prefix"; then
5169 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5170 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5172 $as_echo_n "checking for $ac_word... " >&6; }
5173 if ${ac_cv_prog_OBJDUMP+:} false; then :
5174 $as_echo_n "(cached) " >&6
5175 else
5176 if test -n "$OBJDUMP"; then
5177 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5178 else
5179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5180 for as_dir in $PATH
5181 do
5182 IFS=$as_save_IFS
5183 test -z "$as_dir" && as_dir=.
5184 for ac_exec_ext in '' $ac_executable_extensions; do
5185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5186 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 break 2
5189 fi
5190 done
5191 done
5192 IFS=$as_save_IFS
5193
5194 fi
5195 fi
5196 OBJDUMP=$ac_cv_prog_OBJDUMP
5197 if test -n "$OBJDUMP"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5199 $as_echo "$OBJDUMP" >&6; }
5200 else
5201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5202 $as_echo "no" >&6; }
5203 fi
5204
5205
5206 fi
5207 if test -z "$ac_cv_prog_OBJDUMP"; then
5208 ac_ct_OBJDUMP=$OBJDUMP
5209 # Extract the first word of "objdump", so it can be a program name with args.
5210 set dummy objdump; ac_word=$2
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5212 $as_echo_n "checking for $ac_word... " >&6; }
5213 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 if test -n "$ac_ct_OBJDUMP"; then
5217 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5218 else
5219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5220 for as_dir in $PATH
5221 do
5222 IFS=$as_save_IFS
5223 test -z "$as_dir" && as_dir=.
5224 for ac_exec_ext in '' $ac_executable_extensions; do
5225 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5226 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5228 break 2
5229 fi
5230 done
5231 done
5232 IFS=$as_save_IFS
5233
5234 fi
5235 fi
5236 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5237 if test -n "$ac_ct_OBJDUMP"; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5239 $as_echo "$ac_ct_OBJDUMP" >&6; }
5240 else
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5242 $as_echo "no" >&6; }
5243 fi
5244
5245 if test "x$ac_ct_OBJDUMP" = x; then
5246 OBJDUMP="false"
5247 else
5248 case $cross_compiling:$ac_tool_warned in
5249 yes:)
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5251 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5252 ac_tool_warned=yes ;;
5253 esac
5254 OBJDUMP=$ac_ct_OBJDUMP
5255 fi
5256 else
5257 OBJDUMP="$ac_cv_prog_OBJDUMP"
5258 fi
5259
5260 test -z "$OBJDUMP" && OBJDUMP=objdump
5261
5262
5263
5264
5265
5266
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5268 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5269 if ${lt_cv_deplibs_check_method+:} false; then :
5270 $as_echo_n "(cached) " >&6
5271 else
5272 lt_cv_file_magic_cmd='$MAGIC_CMD'
5273 lt_cv_file_magic_test_file=
5274 lt_cv_deplibs_check_method='unknown'
5275 # Need to set the preceding variable on all platforms that support
5276 # interlibrary dependencies.
5277 # 'none' -- dependencies not supported.
5278 # `unknown' -- same as none, but documents that we really don't know.
5279 # 'pass_all' -- all dependencies passed with no checks.
5280 # 'test_compile' -- check by making test program.
5281 # 'file_magic [[regex]]' -- check by looking for files in library path
5282 # which responds to the $file_magic_cmd with a given extended regex.
5283 # If you have `file' or equivalent on your system and you're not sure
5284 # whether `pass_all' will *always* work, you probably want this one.
5285
5286 case $host_os in
5287 aix[4-9]*)
5288 lt_cv_deplibs_check_method=pass_all
5289 ;;
5290
5291 beos*)
5292 lt_cv_deplibs_check_method=pass_all
5293 ;;
5294
5295 bsdi[45]*)
5296 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5297 lt_cv_file_magic_cmd='/usr/bin/file -L'
5298 lt_cv_file_magic_test_file=/shlib/libc.so
5299 ;;
5300
5301 cygwin*)
5302 # func_win32_libid is a shell function defined in ltmain.sh
5303 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5304 lt_cv_file_magic_cmd='func_win32_libid'
5305 ;;
5306
5307 mingw* | pw32*)
5308 # Base MSYS/MinGW do not provide the 'file' command needed by
5309 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5310 # unless we find 'file', for example because we are cross-compiling.
5311 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5312 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5313 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5314 lt_cv_file_magic_cmd='func_win32_libid'
5315 else
5316 # Keep this pattern in sync with the one in func_win32_libid.
5317 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5318 lt_cv_file_magic_cmd='$OBJDUMP -f'
5319 fi
5320 ;;
5321
5322 cegcc*)
5323 # use the weaker test based on 'objdump'. See mingw*.
5324 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5325 lt_cv_file_magic_cmd='$OBJDUMP -f'
5326 ;;
5327
5328 darwin* | rhapsody*)
5329 lt_cv_deplibs_check_method=pass_all
5330 ;;
5331
5332 freebsd* | dragonfly*)
5333 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5334 case $host_cpu in
5335 i*86 )
5336 # Not sure whether the presence of OpenBSD here was a mistake.
5337 # Let's accept both of them until this is cleared up.
5338 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5339 lt_cv_file_magic_cmd=/usr/bin/file
5340 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5341 ;;
5342 esac
5343 else
5344 lt_cv_deplibs_check_method=pass_all
5345 fi
5346 ;;
5347
5348 gnu*)
5349 lt_cv_deplibs_check_method=pass_all
5350 ;;
5351
5352 haiku*)
5353 lt_cv_deplibs_check_method=pass_all
5354 ;;
5355
5356 hpux10.20* | hpux11*)
5357 lt_cv_file_magic_cmd=/usr/bin/file
5358 case $host_cpu in
5359 ia64*)
5360 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5361 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5362 ;;
5363 hppa*64*)
5364 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]'
5365 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5366 ;;
5367 *)
5368 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5369 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5370 ;;
5371 esac
5372 ;;
5373
5374 interix[3-9]*)
5375 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5376 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5377 ;;
5378
5379 irix5* | irix6* | nonstopux*)
5380 case $LD in
5381 *-32|*"-32 ") libmagic=32-bit;;
5382 *-n32|*"-n32 ") libmagic=N32;;
5383 *-64|*"-64 ") libmagic=64-bit;;
5384 *) libmagic=never-match;;
5385 esac
5386 lt_cv_deplibs_check_method=pass_all
5387 ;;
5388
5389 # This must be glibc/ELF.
5390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5391 lt_cv_deplibs_check_method=pass_all
5392 ;;
5393
5394 netbsd*)
5395 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5396 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5397 else
5398 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5399 fi
5400 ;;
5401
5402 newos6*)
5403 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5404 lt_cv_file_magic_cmd=/usr/bin/file
5405 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5406 ;;
5407
5408 *nto* | *qnx*)
5409 lt_cv_deplibs_check_method=pass_all
5410 ;;
5411
5412 openbsd*)
5413 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5414 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5415 else
5416 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5417 fi
5418 ;;
5419
5420 osf3* | osf4* | osf5*)
5421 lt_cv_deplibs_check_method=pass_all
5422 ;;
5423
5424 rdos*)
5425 lt_cv_deplibs_check_method=pass_all
5426 ;;
5427
5428 solaris*)
5429 lt_cv_deplibs_check_method=pass_all
5430 ;;
5431
5432 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5433 lt_cv_deplibs_check_method=pass_all
5434 ;;
5435
5436 sysv4 | sysv4.3*)
5437 case $host_vendor in
5438 motorola)
5439 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]'
5440 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5441 ;;
5442 ncr)
5443 lt_cv_deplibs_check_method=pass_all
5444 ;;
5445 sequent)
5446 lt_cv_file_magic_cmd='/bin/file'
5447 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5448 ;;
5449 sni)
5450 lt_cv_file_magic_cmd='/bin/file'
5451 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5452 lt_cv_file_magic_test_file=/lib/libc.so
5453 ;;
5454 siemens)
5455 lt_cv_deplibs_check_method=pass_all
5456 ;;
5457 pc)
5458 lt_cv_deplibs_check_method=pass_all
5459 ;;
5460 esac
5461 ;;
5462
5463 tpf*)
5464 lt_cv_deplibs_check_method=pass_all
5465 ;;
5466 esac
5467
5468 fi
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5470 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5471
5472 file_magic_glob=
5473 want_nocaseglob=no
5474 if test "$build" = "$host"; then
5475 case $host_os in
5476 mingw* | pw32*)
5477 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5478 want_nocaseglob=yes
5479 else
5480 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5481 fi
5482 ;;
5483 esac
5484 fi
5485
5486 file_magic_cmd=$lt_cv_file_magic_cmd
5487 deplibs_check_method=$lt_cv_deplibs_check_method
5488 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5489
5490
5491
5492
5493
5494
5495
5496
5497
5498
5499
5500
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510
5511 if test -n "$ac_tool_prefix"; then
5512 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5513 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5515 $as_echo_n "checking for $ac_word... " >&6; }
5516 if ${ac_cv_prog_DLLTOOL+:} false; then :
5517 $as_echo_n "(cached) " >&6
5518 else
5519 if test -n "$DLLTOOL"; then
5520 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5521 else
5522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 for as_dir in $PATH
5524 do
5525 IFS=$as_save_IFS
5526 test -z "$as_dir" && as_dir=.
5527 for ac_exec_ext in '' $ac_executable_extensions; do
5528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5529 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5531 break 2
5532 fi
5533 done
5534 done
5535 IFS=$as_save_IFS
5536
5537 fi
5538 fi
5539 DLLTOOL=$ac_cv_prog_DLLTOOL
5540 if test -n "$DLLTOOL"; then
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5542 $as_echo "$DLLTOOL" >&6; }
5543 else
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5545 $as_echo "no" >&6; }
5546 fi
5547
5548
5549 fi
5550 if test -z "$ac_cv_prog_DLLTOOL"; then
5551 ac_ct_DLLTOOL=$DLLTOOL
5552 # Extract the first word of "dlltool", so it can be a program name with args.
5553 set dummy dlltool; ac_word=$2
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5555 $as_echo_n "checking for $ac_word... " >&6; }
5556 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5557 $as_echo_n "(cached) " >&6
5558 else
5559 if test -n "$ac_ct_DLLTOOL"; then
5560 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5561 else
5562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 for as_dir in $PATH
5564 do
5565 IFS=$as_save_IFS
5566 test -z "$as_dir" && as_dir=.
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5569 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5571 break 2
5572 fi
5573 done
5574 done
5575 IFS=$as_save_IFS
5576
5577 fi
5578 fi
5579 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5580 if test -n "$ac_ct_DLLTOOL"; then
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5582 $as_echo "$ac_ct_DLLTOOL" >&6; }
5583 else
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5585 $as_echo "no" >&6; }
5586 fi
5587
5588 if test "x$ac_ct_DLLTOOL" = x; then
5589 DLLTOOL="false"
5590 else
5591 case $cross_compiling:$ac_tool_warned in
5592 yes:)
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5594 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5595 ac_tool_warned=yes ;;
5596 esac
5597 DLLTOOL=$ac_ct_DLLTOOL
5598 fi
5599 else
5600 DLLTOOL="$ac_cv_prog_DLLTOOL"
5601 fi
5602
5603 test -z "$DLLTOOL" && DLLTOOL=dlltool
5604
5605
5606
5607
5608
5609
5610
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5612 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5613 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5614 $as_echo_n "(cached) " >&6
5615 else
5616 lt_cv_sharedlib_from_linklib_cmd='unknown'
5617
5618 case $host_os in
5619 cygwin* | mingw* | pw32* | cegcc*)
5620 # two different shell functions defined in ltmain.sh
5621 # decide which to use based on capabilities of $DLLTOOL
5622 case `$DLLTOOL --help 2>&1` in
5623 *--identify-strict*)
5624 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5625 ;;
5626 *)
5627 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5628 ;;
5629 esac
5630 ;;
5631 *)
5632 # fallback: assume linklib IS sharedlib
5633 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5634 ;;
5635 esac
5636
5637 fi
5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5639 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5640 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5641 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5642
5643
5644
5645
5646
5647
5648
5649 if test -n "$ac_tool_prefix"; then
5650 for ac_prog in ar
5651 do
5652 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5653 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5655 $as_echo_n "checking for $ac_word... " >&6; }
5656 if ${ac_cv_prog_AR+:} false; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 if test -n "$AR"; then
5660 ac_cv_prog_AR="$AR" # Let the user override the test.
5661 else
5662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5663 for as_dir in $PATH
5664 do
5665 IFS=$as_save_IFS
5666 test -z "$as_dir" && as_dir=.
5667 for ac_exec_ext in '' $ac_executable_extensions; do
5668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5669 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5671 break 2
5672 fi
5673 done
5674 done
5675 IFS=$as_save_IFS
5676
5677 fi
5678 fi
5679 AR=$ac_cv_prog_AR
5680 if test -n "$AR"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5682 $as_echo "$AR" >&6; }
5683 else
5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5685 $as_echo "no" >&6; }
5686 fi
5687
5688
5689 test -n "$AR" && break
5690 done
5691 fi
5692 if test -z "$AR"; then
5693 ac_ct_AR=$AR
5694 for ac_prog in ar
5695 do
5696 # Extract the first word of "$ac_prog", so it can be a program name with args.
5697 set dummy $ac_prog; ac_word=$2
5698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5699 $as_echo_n "checking for $ac_word... " >&6; }
5700 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5701 $as_echo_n "(cached) " >&6
5702 else
5703 if test -n "$ac_ct_AR"; then
5704 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5705 else
5706 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5707 for as_dir in $PATH
5708 do
5709 IFS=$as_save_IFS
5710 test -z "$as_dir" && as_dir=.
5711 for ac_exec_ext in '' $ac_executable_extensions; do
5712 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5713 ac_cv_prog_ac_ct_AR="$ac_prog"
5714 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5715 break 2
5716 fi
5717 done
5718 done
5719 IFS=$as_save_IFS
5720
5721 fi
5722 fi
5723 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5724 if test -n "$ac_ct_AR"; then
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5726 $as_echo "$ac_ct_AR" >&6; }
5727 else
5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5729 $as_echo "no" >&6; }
5730 fi
5731
5732
5733 test -n "$ac_ct_AR" && break
5734 done
5735
5736 if test "x$ac_ct_AR" = x; then
5737 AR="false"
5738 else
5739 case $cross_compiling:$ac_tool_warned in
5740 yes:)
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5743 ac_tool_warned=yes ;;
5744 esac
5745 AR=$ac_ct_AR
5746 fi
5747 fi
5748
5749 : ${AR=ar}
5750 : ${AR_FLAGS=cru}
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
5763 $as_echo_n "checking for archiver @FILE support... " >&6; }
5764 if ${lt_cv_ar_at_file+:} false; then :
5765 $as_echo_n "(cached) " >&6
5766 else
5767 lt_cv_ar_at_file=no
5768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5769 /* end confdefs.h. */
5770
5771 int
5772 main ()
5773 {
5774
5775 ;
5776 return 0;
5777 }
5778 _ACEOF
5779 if ac_fn_c_try_compile "$LINENO"; then :
5780 echo conftest.$ac_objext > conftest.lst
5781 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
5782 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5783 (eval $lt_ar_try) 2>&5
5784 ac_status=$?
5785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5786 test $ac_status = 0; }
5787 if test "$ac_status" -eq 0; then
5788 # Ensure the archiver fails upon bogus file names.
5789 rm -f conftest.$ac_objext libconftest.a
5790 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
5791 (eval $lt_ar_try) 2>&5
5792 ac_status=$?
5793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5794 test $ac_status = 0; }
5795 if test "$ac_status" -ne 0; then
5796 lt_cv_ar_at_file=@
5797 fi
5798 fi
5799 rm -f conftest.* libconftest.a
5800
5801 fi
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803
5804 fi
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
5806 $as_echo "$lt_cv_ar_at_file" >&6; }
5807
5808 if test "x$lt_cv_ar_at_file" = xno; then
5809 archiver_list_spec=
5810 else
5811 archiver_list_spec=$lt_cv_ar_at_file
5812 fi
5813
5814
5815
5816
5817
5818
5819
5820 if test -n "$ac_tool_prefix"; then
5821 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5822 set dummy ${ac_tool_prefix}strip; ac_word=$2
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5824 $as_echo_n "checking for $ac_word... " >&6; }
5825 if ${ac_cv_prog_STRIP+:} false; then :
5826 $as_echo_n "(cached) " >&6
5827 else
5828 if test -n "$STRIP"; then
5829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5830 else
5831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5832 for as_dir in $PATH
5833 do
5834 IFS=$as_save_IFS
5835 test -z "$as_dir" && as_dir=.
5836 for ac_exec_ext in '' $ac_executable_extensions; do
5837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5838 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5840 break 2
5841 fi
5842 done
5843 done
5844 IFS=$as_save_IFS
5845
5846 fi
5847 fi
5848 STRIP=$ac_cv_prog_STRIP
5849 if test -n "$STRIP"; then
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5851 $as_echo "$STRIP" >&6; }
5852 else
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5854 $as_echo "no" >&6; }
5855 fi
5856
5857
5858 fi
5859 if test -z "$ac_cv_prog_STRIP"; then
5860 ac_ct_STRIP=$STRIP
5861 # Extract the first word of "strip", so it can be a program name with args.
5862 set dummy strip; ac_word=$2
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5864 $as_echo_n "checking for $ac_word... " >&6; }
5865 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 if test -n "$ac_ct_STRIP"; then
5869 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5870 else
5871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874 IFS=$as_save_IFS
5875 test -z "$as_dir" && as_dir=.
5876 for ac_exec_ext in '' $ac_executable_extensions; do
5877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5878 ac_cv_prog_ac_ct_STRIP="strip"
5879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5880 break 2
5881 fi
5882 done
5883 done
5884 IFS=$as_save_IFS
5885
5886 fi
5887 fi
5888 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
5889 if test -n "$ac_ct_STRIP"; then
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
5891 $as_echo "$ac_ct_STRIP" >&6; }
5892 else
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5894 $as_echo "no" >&6; }
5895 fi
5896
5897 if test "x$ac_ct_STRIP" = x; then
5898 STRIP=":"
5899 else
5900 case $cross_compiling:$ac_tool_warned in
5901 yes:)
5902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5904 ac_tool_warned=yes ;;
5905 esac
5906 STRIP=$ac_ct_STRIP
5907 fi
5908 else
5909 STRIP="$ac_cv_prog_STRIP"
5910 fi
5911
5912 test -z "$STRIP" && STRIP=:
5913
5914
5915
5916
5917
5918
5919 if test -n "$ac_tool_prefix"; then
5920 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5921 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5923 $as_echo_n "checking for $ac_word... " >&6; }
5924 if ${ac_cv_prog_RANLIB+:} false; then :
5925 $as_echo_n "(cached) " >&6
5926 else
5927 if test -n "$RANLIB"; then
5928 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5929 else
5930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5931 for as_dir in $PATH
5932 do
5933 IFS=$as_save_IFS
5934 test -z "$as_dir" && as_dir=.
5935 for ac_exec_ext in '' $ac_executable_extensions; do
5936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5937 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5939 break 2
5940 fi
5941 done
5942 done
5943 IFS=$as_save_IFS
5944
5945 fi
5946 fi
5947 RANLIB=$ac_cv_prog_RANLIB
5948 if test -n "$RANLIB"; then
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5950 $as_echo "$RANLIB" >&6; }
5951 else
5952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5953 $as_echo "no" >&6; }
5954 fi
5955
5956
5957 fi
5958 if test -z "$ac_cv_prog_RANLIB"; then
5959 ac_ct_RANLIB=$RANLIB
5960 # Extract the first word of "ranlib", so it can be a program name with args.
5961 set dummy ranlib; ac_word=$2
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5963 $as_echo_n "checking for $ac_word... " >&6; }
5964 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
5965 $as_echo_n "(cached) " >&6
5966 else
5967 if test -n "$ac_ct_RANLIB"; then
5968 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5969 else
5970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5971 for as_dir in $PATH
5972 do
5973 IFS=$as_save_IFS
5974 test -z "$as_dir" && as_dir=.
5975 for ac_exec_ext in '' $ac_executable_extensions; do
5976 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5977 ac_cv_prog_ac_ct_RANLIB="ranlib"
5978 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5979 break 2
5980 fi
5981 done
5982 done
5983 IFS=$as_save_IFS
5984
5985 fi
5986 fi
5987 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5988 if test -n "$ac_ct_RANLIB"; then
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5990 $as_echo "$ac_ct_RANLIB" >&6; }
5991 else
5992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5993 $as_echo "no" >&6; }
5994 fi
5995
5996 if test "x$ac_ct_RANLIB" = x; then
5997 RANLIB=":"
5998 else
5999 case $cross_compiling:$ac_tool_warned in
6000 yes:)
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6002 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6003 ac_tool_warned=yes ;;
6004 esac
6005 RANLIB=$ac_ct_RANLIB
6006 fi
6007 else
6008 RANLIB="$ac_cv_prog_RANLIB"
6009 fi
6010
6011 test -z "$RANLIB" && RANLIB=:
6012
6013
6014
6015
6016
6017
6018 # Determine commands to create old-style static archives.
6019 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6020 old_postinstall_cmds='chmod 644 $oldlib'
6021 old_postuninstall_cmds=
6022
6023 if test -n "$RANLIB"; then
6024 case $host_os in
6025 openbsd*)
6026 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6027 ;;
6028 *)
6029 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6030 ;;
6031 esac
6032 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6033 fi
6034
6035 case $host_os in
6036 darwin*)
6037 lock_old_archive_extraction=yes ;;
6038 *)
6039 lock_old_archive_extraction=no ;;
6040 esac
6041
6042
6043
6044
6045
6046
6047
6048
6049
6050
6051
6052
6053
6054
6055
6056
6057
6058
6059
6060
6061
6062
6063
6064
6065
6066
6067
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 # If no C compiler was specified, use CC.
6081 LTCC=${LTCC-"$CC"}
6082
6083 # If no C compiler flags were specified, use CFLAGS.
6084 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6085
6086 # Allow CC to be a program name with arguments.
6087 compiler=$CC
6088
6089
6090 # Check for command to grab the raw symbol name followed by C symbol from nm.
6091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6092 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6093 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095 else
6096
6097 # These are sane defaults that work on at least a few old systems.
6098 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6099
6100 # Character class describing NM global symbol codes.
6101 symcode='[BCDEGRST]'
6102
6103 # Regexp to match symbols that can be accessed directly from C.
6104 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6105
6106 # Define system-specific variables.
6107 case $host_os in
6108 aix*)
6109 symcode='[BCDT]'
6110 ;;
6111 cygwin* | mingw* | pw32* | cegcc*)
6112 symcode='[ABCDGISTW]'
6113 ;;
6114 hpux*)
6115 if test "$host_cpu" = ia64; then
6116 symcode='[ABCDEGRST]'
6117 fi
6118 ;;
6119 irix* | nonstopux*)
6120 symcode='[BCDEGRST]'
6121 ;;
6122 osf*)
6123 symcode='[BCDEGQRST]'
6124 ;;
6125 solaris*)
6126 symcode='[BDRT]'
6127 ;;
6128 sco3.2v5*)
6129 symcode='[DT]'
6130 ;;
6131 sysv4.2uw2*)
6132 symcode='[DT]'
6133 ;;
6134 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6135 symcode='[ABDT]'
6136 ;;
6137 sysv4)
6138 symcode='[DFNSTU]'
6139 ;;
6140 esac
6141
6142 # If we're using GNU nm, then use its standard symbol codes.
6143 case `$NM -V 2>&1` in
6144 *GNU* | *'with BFD'*)
6145 symcode='[ABCDGIRSTW]' ;;
6146 esac
6147
6148 # Transform an extracted symbol line into a proper C declaration.
6149 # Some systems (esp. on ia64) link data and code symbols differently,
6150 # so use this general approach.
6151 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6152
6153 # Transform an extracted symbol line into symbol name and symbol address
6154 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6155 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'"
6156
6157 # Handle CRLF in mingw tool chain
6158 opt_cr=
6159 case $build_os in
6160 mingw*)
6161 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6162 ;;
6163 esac
6164
6165 # Try without a prefix underscore, then with it.
6166 for ac_symprfx in "" "_"; do
6167
6168 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6169 symxfrm="\\1 $ac_symprfx\\2 \\2"
6170
6171 # Write the raw and C identifiers.
6172 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6173 # Fake it for dumpbin and say T for any non-static function
6174 # and D for any global variable.
6175 # Also find C++ and __fastcall symbols from MSVC++,
6176 # which start with @ or ?.
6177 lt_cv_sys_global_symbol_pipe="$AWK '"\
6178 " {last_section=section; section=\$ 3};"\
6179 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6180 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6181 " \$ 0!~/External *\|/{next};"\
6182 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6183 " {if(hide[section]) next};"\
6184 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6185 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6186 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6187 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6188 " ' prfx=^$ac_symprfx"
6189 else
6190 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6191 fi
6192 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6193
6194 # Check to see that the pipe works correctly.
6195 pipe_works=no
6196
6197 rm -f conftest*
6198 cat > conftest.$ac_ext <<_LT_EOF
6199 #ifdef __cplusplus
6200 extern "C" {
6201 #endif
6202 char nm_test_var;
6203 void nm_test_func(void);
6204 void nm_test_func(void){}
6205 #ifdef __cplusplus
6206 }
6207 #endif
6208 int main(){nm_test_var='a';nm_test_func();return(0);}
6209 _LT_EOF
6210
6211 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6212 (eval $ac_compile) 2>&5
6213 ac_status=$?
6214 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6215 test $ac_status = 0; }; then
6216 # Now try to grab the symbols.
6217 nlist=conftest.nm
6218 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6219 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6220 ac_status=$?
6221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6222 test $ac_status = 0; } && test -s "$nlist"; then
6223 # Try sorting and uniquifying the output.
6224 if sort "$nlist" | uniq > "$nlist"T; then
6225 mv -f "$nlist"T "$nlist"
6226 else
6227 rm -f "$nlist"T
6228 fi
6229
6230 # Make sure that we snagged all the symbols we need.
6231 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6232 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6233 cat <<_LT_EOF > conftest.$ac_ext
6234 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6235 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6236 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6237 relocations are performed -- see ld's documentation on pseudo-relocs. */
6238 # define LT_DLSYM_CONST
6239 #elif defined(__osf__)
6240 /* This system does not cope well with relocations in const data. */
6241 # define LT_DLSYM_CONST
6242 #else
6243 # define LT_DLSYM_CONST const
6244 #endif
6245
6246 #ifdef __cplusplus
6247 extern "C" {
6248 #endif
6249
6250 _LT_EOF
6251 # Now generate the symbol file.
6252 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6253
6254 cat <<_LT_EOF >> conftest.$ac_ext
6255
6256 /* The mapping between symbol names and symbols. */
6257 LT_DLSYM_CONST struct {
6258 const char *name;
6259 void *address;
6260 }
6261 lt__PROGRAM__LTX_preloaded_symbols[] =
6262 {
6263 { "@PROGRAM@", (void *) 0 },
6264 _LT_EOF
6265 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6266 cat <<\_LT_EOF >> conftest.$ac_ext
6267 {0, (void *) 0}
6268 };
6269
6270 /* This works around a problem in FreeBSD linker */
6271 #ifdef FREEBSD_WORKAROUND
6272 static const void *lt_preloaded_setup() {
6273 return lt__PROGRAM__LTX_preloaded_symbols;
6274 }
6275 #endif
6276
6277 #ifdef __cplusplus
6278 }
6279 #endif
6280 _LT_EOF
6281 # Now try linking the two files.
6282 mv conftest.$ac_objext conftstm.$ac_objext
6283 lt_globsym_save_LIBS=$LIBS
6284 lt_globsym_save_CFLAGS=$CFLAGS
6285 LIBS="conftstm.$ac_objext"
6286 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6287 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6288 (eval $ac_link) 2>&5
6289 ac_status=$?
6290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6291 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6292 pipe_works=yes
6293 fi
6294 LIBS=$lt_globsym_save_LIBS
6295 CFLAGS=$lt_globsym_save_CFLAGS
6296 else
6297 echo "cannot find nm_test_func in $nlist" >&5
6298 fi
6299 else
6300 echo "cannot find nm_test_var in $nlist" >&5
6301 fi
6302 else
6303 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6304 fi
6305 else
6306 echo "$progname: failed program was:" >&5
6307 cat conftest.$ac_ext >&5
6308 fi
6309 rm -rf conftest* conftst*
6310
6311 # Do not use the global_symbol_pipe unless it works.
6312 if test "$pipe_works" = yes; then
6313 break
6314 else
6315 lt_cv_sys_global_symbol_pipe=
6316 fi
6317 done
6318
6319 fi
6320
6321 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6322 lt_cv_sys_global_symbol_to_cdecl=
6323 fi
6324 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6326 $as_echo "failed" >&6; }
6327 else
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6329 $as_echo "ok" >&6; }
6330 fi
6331
6332 # Response file support.
6333 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6334 nm_file_list_spec='@'
6335 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6336 nm_file_list_spec='@'
6337 fi
6338
6339
6340
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350
6351
6352
6353
6354
6355
6356
6357
6358
6359
6360
6361
6362
6363
6364
6365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6366 $as_echo_n "checking for sysroot... " >&6; }
6367
6368 # Check whether --with-sysroot was given.
6369 if test "${with_sysroot+set}" = set; then :
6370 withval=$with_sysroot;
6371 else
6372 with_sysroot=no
6373 fi
6374
6375
6376 lt_sysroot=
6377 case ${with_sysroot} in #(
6378 yes)
6379 if test "$GCC" = yes; then
6380 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6381 fi
6382 ;; #(
6383 /*)
6384 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6385 ;; #(
6386 no|'')
6387 ;; #(
6388 *)
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6390 $as_echo "${with_sysroot}" >&6; }
6391 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6392 ;;
6393 esac
6394
6395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6396 $as_echo "${lt_sysroot:-no}" >&6; }
6397
6398
6399
6400
6401
6402 # Check whether --enable-libtool-lock was given.
6403 if test "${enable_libtool_lock+set}" = set; then :
6404 enableval=$enable_libtool_lock;
6405 fi
6406
6407 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6408
6409 # Some flags need to be propagated to the compiler or linker for good
6410 # libtool support.
6411 case $host in
6412 ia64-*-hpux*)
6413 # Find out which ABI we are using.
6414 echo 'int i;' > conftest.$ac_ext
6415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6416 (eval $ac_compile) 2>&5
6417 ac_status=$?
6418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6419 test $ac_status = 0; }; then
6420 case `/usr/bin/file conftest.$ac_objext` in
6421 *ELF-32*)
6422 HPUX_IA64_MODE="32"
6423 ;;
6424 *ELF-64*)
6425 HPUX_IA64_MODE="64"
6426 ;;
6427 esac
6428 fi
6429 rm -rf conftest*
6430 ;;
6431 *-*-irix6*)
6432 # Find out which ABI we are using.
6433 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6435 (eval $ac_compile) 2>&5
6436 ac_status=$?
6437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6438 test $ac_status = 0; }; then
6439 if test "$lt_cv_prog_gnu_ld" = yes; then
6440 case `/usr/bin/file conftest.$ac_objext` in
6441 *32-bit*)
6442 LD="${LD-ld} -melf32bsmip"
6443 ;;
6444 *N32*)
6445 LD="${LD-ld} -melf32bmipn32"
6446 ;;
6447 *64-bit*)
6448 LD="${LD-ld} -melf64bmip"
6449 ;;
6450 esac
6451 else
6452 case `/usr/bin/file conftest.$ac_objext` in
6453 *32-bit*)
6454 LD="${LD-ld} -32"
6455 ;;
6456 *N32*)
6457 LD="${LD-ld} -n32"
6458 ;;
6459 *64-bit*)
6460 LD="${LD-ld} -64"
6461 ;;
6462 esac
6463 fi
6464 fi
6465 rm -rf conftest*
6466 ;;
6467
6468 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6469 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6470 # Find out which ABI we are using.
6471 echo 'int i;' > conftest.$ac_ext
6472 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6473 (eval $ac_compile) 2>&5
6474 ac_status=$?
6475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6476 test $ac_status = 0; }; then
6477 case `/usr/bin/file conftest.o` in
6478 *32-bit*)
6479 case $host in
6480 x86_64-*kfreebsd*-gnu)
6481 LD="${LD-ld} -m elf_i386_fbsd"
6482 ;;
6483 x86_64-*linux*)
6484 LD="${LD-ld} -m elf_i386"
6485 ;;
6486 ppc64-*linux*|powerpc64-*linux*)
6487 LD="${LD-ld} -m elf32ppclinux"
6488 ;;
6489 s390x-*linux*)
6490 LD="${LD-ld} -m elf_s390"
6491 ;;
6492 sparc64-*linux*)
6493 LD="${LD-ld} -m elf32_sparc"
6494 ;;
6495 esac
6496 ;;
6497 *64-bit*)
6498 case $host in
6499 x86_64-*kfreebsd*-gnu)
6500 LD="${LD-ld} -m elf_x86_64_fbsd"
6501 ;;
6502 x86_64-*linux*)
6503 LD="${LD-ld} -m elf_x86_64"
6504 ;;
6505 ppc*-*linux*|powerpc*-*linux*)
6506 LD="${LD-ld} -m elf64ppc"
6507 ;;
6508 s390*-*linux*|s390*-*tpf*)
6509 LD="${LD-ld} -m elf64_s390"
6510 ;;
6511 sparc*-*linux*)
6512 LD="${LD-ld} -m elf64_sparc"
6513 ;;
6514 esac
6515 ;;
6516 esac
6517 fi
6518 rm -rf conftest*
6519 ;;
6520
6521 *-*-sco3.2v5*)
6522 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6523 SAVE_CFLAGS="$CFLAGS"
6524 CFLAGS="$CFLAGS -belf"
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6526 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6527 if ${lt_cv_cc_needs_belf+:} false; then :
6528 $as_echo_n "(cached) " >&6
6529 else
6530 ac_ext=c
6531 ac_cpp='$CPP $CPPFLAGS'
6532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6535
6536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6537 /* end confdefs.h. */
6538
6539 int
6540 main ()
6541 {
6542
6543 ;
6544 return 0;
6545 }
6546 _ACEOF
6547 if ac_fn_c_try_link "$LINENO"; then :
6548 lt_cv_cc_needs_belf=yes
6549 else
6550 lt_cv_cc_needs_belf=no
6551 fi
6552 rm -f core conftest.err conftest.$ac_objext \
6553 conftest$ac_exeext conftest.$ac_ext
6554 ac_ext=c
6555 ac_cpp='$CPP $CPPFLAGS'
6556 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6557 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6558 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6559
6560 fi
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6562 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6563 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6564 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6565 CFLAGS="$SAVE_CFLAGS"
6566 fi
6567 ;;
6568 *-*solaris*)
6569 # Find out which ABI we are using.
6570 echo 'int i;' > conftest.$ac_ext
6571 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6572 (eval $ac_compile) 2>&5
6573 ac_status=$?
6574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6575 test $ac_status = 0; }; then
6576 case `/usr/bin/file conftest.o` in
6577 *64-bit*)
6578 case $lt_cv_prog_gnu_ld in
6579 yes*)
6580 case $host in
6581 i?86-*-solaris*)
6582 LD="${LD-ld} -m elf_x86_64"
6583 ;;
6584 sparc*-*-solaris*)
6585 LD="${LD-ld} -m elf64_sparc"
6586 ;;
6587 esac
6588 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6589 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6590 LD="${LD-ld}_sol2"
6591 fi
6592 ;;
6593 *)
6594 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6595 LD="${LD-ld} -64"
6596 fi
6597 ;;
6598 esac
6599 ;;
6600 esac
6601 fi
6602 rm -rf conftest*
6603 ;;
6604 esac
6605
6606 need_locks="$enable_libtool_lock"
6607
6608 if test -n "$ac_tool_prefix"; then
6609 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6610 set dummy ${ac_tool_prefix}mt; ac_word=$2
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6612 $as_echo_n "checking for $ac_word... " >&6; }
6613 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6614 $as_echo_n "(cached) " >&6
6615 else
6616 if test -n "$MANIFEST_TOOL"; then
6617 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6618 else
6619 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6620 for as_dir in $PATH
6621 do
6622 IFS=$as_save_IFS
6623 test -z "$as_dir" && as_dir=.
6624 for ac_exec_ext in '' $ac_executable_extensions; do
6625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6626 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6628 break 2
6629 fi
6630 done
6631 done
6632 IFS=$as_save_IFS
6633
6634 fi
6635 fi
6636 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6637 if test -n "$MANIFEST_TOOL"; then
6638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6639 $as_echo "$MANIFEST_TOOL" >&6; }
6640 else
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6642 $as_echo "no" >&6; }
6643 fi
6644
6645
6646 fi
6647 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6648 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6649 # Extract the first word of "mt", so it can be a program name with args.
6650 set dummy mt; ac_word=$2
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$ac_ct_MANIFEST_TOOL"; then
6657 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6666 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6677 if test -n "$ac_ct_MANIFEST_TOOL"; then
6678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6679 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6680 else
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6686 MANIFEST_TOOL=":"
6687 else
6688 case $cross_compiling:$ac_tool_warned in
6689 yes:)
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6691 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6692 ac_tool_warned=yes ;;
6693 esac
6694 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
6695 fi
6696 else
6697 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
6698 fi
6699
6700 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
6701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
6702 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
6703 if ${lt_cv_path_mainfest_tool+:} false; then :
6704 $as_echo_n "(cached) " >&6
6705 else
6706 lt_cv_path_mainfest_tool=no
6707 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
6708 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
6709 cat conftest.err >&5
6710 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
6711 lt_cv_path_mainfest_tool=yes
6712 fi
6713 rm -f conftest*
6714 fi
6715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
6716 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
6717 if test "x$lt_cv_path_mainfest_tool" != xyes; then
6718 MANIFEST_TOOL=:
6719 fi
6720
6721
6722
6723
6724
6725
6726 case $host_os in
6727 rhapsody* | darwin*)
6728 if test -n "$ac_tool_prefix"; then
6729 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6730 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6732 $as_echo_n "checking for $ac_word... " >&6; }
6733 if ${ac_cv_prog_DSYMUTIL+:} false; then :
6734 $as_echo_n "(cached) " >&6
6735 else
6736 if test -n "$DSYMUTIL"; then
6737 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6738 else
6739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6740 for as_dir in $PATH
6741 do
6742 IFS=$as_save_IFS
6743 test -z "$as_dir" && as_dir=.
6744 for ac_exec_ext in '' $ac_executable_extensions; do
6745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6746 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6748 break 2
6749 fi
6750 done
6751 done
6752 IFS=$as_save_IFS
6753
6754 fi
6755 fi
6756 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6757 if test -n "$DSYMUTIL"; then
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
6759 $as_echo "$DSYMUTIL" >&6; }
6760 else
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6762 $as_echo "no" >&6; }
6763 fi
6764
6765
6766 fi
6767 if test -z "$ac_cv_prog_DSYMUTIL"; then
6768 ac_ct_DSYMUTIL=$DSYMUTIL
6769 # Extract the first word of "dsymutil", so it can be a program name with args.
6770 set dummy dsymutil; ac_word=$2
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6772 $as_echo_n "checking for $ac_word... " >&6; }
6773 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
6774 $as_echo_n "(cached) " >&6
6775 else
6776 if test -n "$ac_ct_DSYMUTIL"; then
6777 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6778 else
6779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6780 for as_dir in $PATH
6781 do
6782 IFS=$as_save_IFS
6783 test -z "$as_dir" && as_dir=.
6784 for ac_exec_ext in '' $ac_executable_extensions; do
6785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6786 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 break 2
6789 fi
6790 done
6791 done
6792 IFS=$as_save_IFS
6793
6794 fi
6795 fi
6796 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6797 if test -n "$ac_ct_DSYMUTIL"; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
6799 $as_echo "$ac_ct_DSYMUTIL" >&6; }
6800 else
6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6802 $as_echo "no" >&6; }
6803 fi
6804
6805 if test "x$ac_ct_DSYMUTIL" = x; then
6806 DSYMUTIL=":"
6807 else
6808 case $cross_compiling:$ac_tool_warned in
6809 yes:)
6810 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6811 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6812 ac_tool_warned=yes ;;
6813 esac
6814 DSYMUTIL=$ac_ct_DSYMUTIL
6815 fi
6816 else
6817 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6818 fi
6819
6820 if test -n "$ac_tool_prefix"; then
6821 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6822 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6824 $as_echo_n "checking for $ac_word... " >&6; }
6825 if ${ac_cv_prog_NMEDIT+:} false; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6828 if test -n "$NMEDIT"; then
6829 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6830 else
6831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6832 for as_dir in $PATH
6833 do
6834 IFS=$as_save_IFS
6835 test -z "$as_dir" && as_dir=.
6836 for ac_exec_ext in '' $ac_executable_extensions; do
6837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6838 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6839 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6840 break 2
6841 fi
6842 done
6843 done
6844 IFS=$as_save_IFS
6845
6846 fi
6847 fi
6848 NMEDIT=$ac_cv_prog_NMEDIT
6849 if test -n "$NMEDIT"; then
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
6851 $as_echo "$NMEDIT" >&6; }
6852 else
6853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6854 $as_echo "no" >&6; }
6855 fi
6856
6857
6858 fi
6859 if test -z "$ac_cv_prog_NMEDIT"; then
6860 ac_ct_NMEDIT=$NMEDIT
6861 # Extract the first word of "nmedit", so it can be a program name with args.
6862 set dummy nmedit; ac_word=$2
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6864 $as_echo_n "checking for $ac_word... " >&6; }
6865 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 if test -n "$ac_ct_NMEDIT"; then
6869 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6870 else
6871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6872 for as_dir in $PATH
6873 do
6874 IFS=$as_save_IFS
6875 test -z "$as_dir" && as_dir=.
6876 for ac_exec_ext in '' $ac_executable_extensions; do
6877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6878 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6880 break 2
6881 fi
6882 done
6883 done
6884 IFS=$as_save_IFS
6885
6886 fi
6887 fi
6888 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6889 if test -n "$ac_ct_NMEDIT"; then
6890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
6891 $as_echo "$ac_ct_NMEDIT" >&6; }
6892 else
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6894 $as_echo "no" >&6; }
6895 fi
6896
6897 if test "x$ac_ct_NMEDIT" = x; then
6898 NMEDIT=":"
6899 else
6900 case $cross_compiling:$ac_tool_warned in
6901 yes:)
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6903 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6904 ac_tool_warned=yes ;;
6905 esac
6906 NMEDIT=$ac_ct_NMEDIT
6907 fi
6908 else
6909 NMEDIT="$ac_cv_prog_NMEDIT"
6910 fi
6911
6912 if test -n "$ac_tool_prefix"; then
6913 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
6914 set dummy ${ac_tool_prefix}lipo; ac_word=$2
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6916 $as_echo_n "checking for $ac_word... " >&6; }
6917 if ${ac_cv_prog_LIPO+:} false; then :
6918 $as_echo_n "(cached) " >&6
6919 else
6920 if test -n "$LIPO"; then
6921 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
6922 else
6923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6924 for as_dir in $PATH
6925 do
6926 IFS=$as_save_IFS
6927 test -z "$as_dir" && as_dir=.
6928 for ac_exec_ext in '' $ac_executable_extensions; do
6929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6930 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
6931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6932 break 2
6933 fi
6934 done
6935 done
6936 IFS=$as_save_IFS
6937
6938 fi
6939 fi
6940 LIPO=$ac_cv_prog_LIPO
6941 if test -n "$LIPO"; then
6942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
6943 $as_echo "$LIPO" >&6; }
6944 else
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6946 $as_echo "no" >&6; }
6947 fi
6948
6949
6950 fi
6951 if test -z "$ac_cv_prog_LIPO"; then
6952 ac_ct_LIPO=$LIPO
6953 # Extract the first word of "lipo", so it can be a program name with args.
6954 set dummy lipo; ac_word=$2
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6956 $as_echo_n "checking for $ac_word... " >&6; }
6957 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
6958 $as_echo_n "(cached) " >&6
6959 else
6960 if test -n "$ac_ct_LIPO"; then
6961 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
6962 else
6963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6964 for as_dir in $PATH
6965 do
6966 IFS=$as_save_IFS
6967 test -z "$as_dir" && as_dir=.
6968 for ac_exec_ext in '' $ac_executable_extensions; do
6969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6970 ac_cv_prog_ac_ct_LIPO="lipo"
6971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6972 break 2
6973 fi
6974 done
6975 done
6976 IFS=$as_save_IFS
6977
6978 fi
6979 fi
6980 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
6981 if test -n "$ac_ct_LIPO"; then
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
6983 $as_echo "$ac_ct_LIPO" >&6; }
6984 else
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6986 $as_echo "no" >&6; }
6987 fi
6988
6989 if test "x$ac_ct_LIPO" = x; then
6990 LIPO=":"
6991 else
6992 case $cross_compiling:$ac_tool_warned in
6993 yes:)
6994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6996 ac_tool_warned=yes ;;
6997 esac
6998 LIPO=$ac_ct_LIPO
6999 fi
7000 else
7001 LIPO="$ac_cv_prog_LIPO"
7002 fi
7003
7004 if test -n "$ac_tool_prefix"; then
7005 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7006 set dummy ${ac_tool_prefix}otool; ac_word=$2
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7008 $as_echo_n "checking for $ac_word... " >&6; }
7009 if ${ac_cv_prog_OTOOL+:} false; then :
7010 $as_echo_n "(cached) " >&6
7011 else
7012 if test -n "$OTOOL"; then
7013 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7014 else
7015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018 IFS=$as_save_IFS
7019 test -z "$as_dir" && as_dir=.
7020 for ac_exec_ext in '' $ac_executable_extensions; do
7021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7022 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7024 break 2
7025 fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030 fi
7031 fi
7032 OTOOL=$ac_cv_prog_OTOOL
7033 if test -n "$OTOOL"; then
7034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7035 $as_echo "$OTOOL" >&6; }
7036 else
7037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7038 $as_echo "no" >&6; }
7039 fi
7040
7041
7042 fi
7043 if test -z "$ac_cv_prog_OTOOL"; then
7044 ac_ct_OTOOL=$OTOOL
7045 # Extract the first word of "otool", so it can be a program name with args.
7046 set dummy otool; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$ac_ct_OTOOL"; then
7053 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_ac_ct_OTOOL="otool"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7065 fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7073 if test -n "$ac_ct_OTOOL"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7075 $as_echo "$ac_ct_OTOOL" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7079 fi
7080
7081 if test "x$ac_ct_OTOOL" = x; then
7082 OTOOL=":"
7083 else
7084 case $cross_compiling:$ac_tool_warned in
7085 yes:)
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7087 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7088 ac_tool_warned=yes ;;
7089 esac
7090 OTOOL=$ac_ct_OTOOL
7091 fi
7092 else
7093 OTOOL="$ac_cv_prog_OTOOL"
7094 fi
7095
7096 if test -n "$ac_tool_prefix"; then
7097 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7098 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7100 $as_echo_n "checking for $ac_word... " >&6; }
7101 if ${ac_cv_prog_OTOOL64+:} false; then :
7102 $as_echo_n "(cached) " >&6
7103 else
7104 if test -n "$OTOOL64"; then
7105 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7106 else
7107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7108 for as_dir in $PATH
7109 do
7110 IFS=$as_save_IFS
7111 test -z "$as_dir" && as_dir=.
7112 for ac_exec_ext in '' $ac_executable_extensions; do
7113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7114 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7116 break 2
7117 fi
7118 done
7119 done
7120 IFS=$as_save_IFS
7121
7122 fi
7123 fi
7124 OTOOL64=$ac_cv_prog_OTOOL64
7125 if test -n "$OTOOL64"; then
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7127 $as_echo "$OTOOL64" >&6; }
7128 else
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7130 $as_echo "no" >&6; }
7131 fi
7132
7133
7134 fi
7135 if test -z "$ac_cv_prog_OTOOL64"; then
7136 ac_ct_OTOOL64=$OTOOL64
7137 # Extract the first word of "otool64", so it can be a program name with args.
7138 set dummy otool64; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$ac_ct_OTOOL64"; then
7145 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7149 do
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_ac_ct_OTOOL64="otool64"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7157 fi
7158 done
7159 done
7160 IFS=$as_save_IFS
7161
7162 fi
7163 fi
7164 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7165 if test -n "$ac_ct_OTOOL64"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7167 $as_echo "$ac_ct_OTOOL64" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7171 fi
7172
7173 if test "x$ac_ct_OTOOL64" = x; then
7174 OTOOL64=":"
7175 else
7176 case $cross_compiling:$ac_tool_warned in
7177 yes:)
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7179 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7180 ac_tool_warned=yes ;;
7181 esac
7182 OTOOL64=$ac_ct_OTOOL64
7183 fi
7184 else
7185 OTOOL64="$ac_cv_prog_OTOOL64"
7186 fi
7187
7188
7189
7190
7191
7192
7193
7194
7195
7196
7197
7198
7199
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7215 $as_echo_n "checking for -single_module linker flag... " >&6; }
7216 if ${lt_cv_apple_cc_single_mod+:} false; then :
7217 $as_echo_n "(cached) " >&6
7218 else
7219 lt_cv_apple_cc_single_mod=no
7220 if test -z "${LT_MULTI_MODULE}"; then
7221 # By default we will add the -single_module flag. You can override
7222 # by either setting the environment variable LT_MULTI_MODULE
7223 # non-empty at configure time, or by adding -multi_module to the
7224 # link flags.
7225 rm -rf libconftest.dylib*
7226 echo "int foo(void){return 1;}" > conftest.c
7227 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7228 -dynamiclib -Wl,-single_module conftest.c" >&5
7229 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7230 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7231 _lt_result=$?
7232 # If there is a non-empty error log, and "single_module"
7233 # appears in it, assume the flag caused a linker warning
7234 if test -s conftest.err && $GREP single_module conftest.err; then
7235 cat conftest.err >&5
7236 # Otherwise, if the output was created with a 0 exit code from
7237 # the compiler, it worked.
7238 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7239 lt_cv_apple_cc_single_mod=yes
7240 else
7241 cat conftest.err >&5
7242 fi
7243 rm -rf libconftest.dylib*
7244 rm -f conftest.*
7245 fi
7246 fi
7247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7248 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7249
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7251 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7252 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7253 $as_echo_n "(cached) " >&6
7254 else
7255 lt_cv_ld_exported_symbols_list=no
7256 save_LDFLAGS=$LDFLAGS
7257 echo "_main" > conftest.sym
7258 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7260 /* end confdefs.h. */
7261
7262 int
7263 main ()
7264 {
7265
7266 ;
7267 return 0;
7268 }
7269 _ACEOF
7270 if ac_fn_c_try_link "$LINENO"; then :
7271 lt_cv_ld_exported_symbols_list=yes
7272 else
7273 lt_cv_ld_exported_symbols_list=no
7274 fi
7275 rm -f core conftest.err conftest.$ac_objext \
7276 conftest$ac_exeext conftest.$ac_ext
7277 LDFLAGS="$save_LDFLAGS"
7278
7279 fi
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7281 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7282
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7284 $as_echo_n "checking for -force_load linker flag... " >&6; }
7285 if ${lt_cv_ld_force_load+:} false; then :
7286 $as_echo_n "(cached) " >&6
7287 else
7288 lt_cv_ld_force_load=no
7289 cat > conftest.c << _LT_EOF
7290 int forced_loaded() { return 2;}
7291 _LT_EOF
7292 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7293 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7294 echo "$AR cru libconftest.a conftest.o" >&5
7295 $AR cru libconftest.a conftest.o 2>&5
7296 echo "$RANLIB libconftest.a" >&5
7297 $RANLIB libconftest.a 2>&5
7298 cat > conftest.c << _LT_EOF
7299 int main() { return 0;}
7300 _LT_EOF
7301 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7302 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7303 _lt_result=$?
7304 if test -s conftest.err && $GREP force_load conftest.err; then
7305 cat conftest.err >&5
7306 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7307 lt_cv_ld_force_load=yes
7308 else
7309 cat conftest.err >&5
7310 fi
7311 rm -f conftest.err libconftest.a conftest conftest.c
7312 rm -rf conftest.dSYM
7313
7314 fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7316 $as_echo "$lt_cv_ld_force_load" >&6; }
7317 case $host_os in
7318 rhapsody* | darwin1.[012])
7319 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7320 darwin1.*)
7321 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7322 darwin*) # darwin 5.x on
7323 # if running on 10.5 or later, the deployment target defaults
7324 # to the OS version, if on x86, and 10.4, the deployment
7325 # target defaults to 10.4. Don't you love it?
7326 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7327 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7328 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7329 10.[012]*)
7330 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7331 10.*)
7332 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7333 esac
7334 ;;
7335 esac
7336 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7337 _lt_dar_single_mod='$single_module'
7338 fi
7339 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7340 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7341 else
7342 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7343 fi
7344 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7345 _lt_dsymutil='~$DSYMUTIL $lib || :'
7346 else
7347 _lt_dsymutil=
7348 fi
7349 ;;
7350 esac
7351
7352 ac_ext=c
7353 ac_cpp='$CPP $CPPFLAGS'
7354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7358 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7359 # On Suns, sometimes $CPP names a directory.
7360 if test -n "$CPP" && test -d "$CPP"; then
7361 CPP=
7362 fi
7363 if test -z "$CPP"; then
7364 if ${ac_cv_prog_CPP+:} false; then :
7365 $as_echo_n "(cached) " >&6
7366 else
7367 # Double quotes because CPP needs to be expanded
7368 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7369 do
7370 ac_preproc_ok=false
7371 for ac_c_preproc_warn_flag in '' yes
7372 do
7373 # Use a header file that comes with gcc, so configuring glibc
7374 # with a fresh cross-compiler works.
7375 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7376 # <limits.h> exists even on freestanding compilers.
7377 # On the NeXT, cc -E runs the code through the compiler's parser,
7378 # not just through cpp. "Syntax error" is here to catch this case.
7379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7380 /* end confdefs.h. */
7381 #ifdef __STDC__
7382 # include <limits.h>
7383 #else
7384 # include <assert.h>
7385 #endif
7386 Syntax error
7387 _ACEOF
7388 if ac_fn_c_try_cpp "$LINENO"; then :
7389
7390 else
7391 # Broken: fails on valid input.
7392 continue
7393 fi
7394 rm -f conftest.err conftest.i conftest.$ac_ext
7395
7396 # OK, works on sane cases. Now check whether nonexistent headers
7397 # can be detected and how.
7398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7399 /* end confdefs.h. */
7400 #include <ac_nonexistent.h>
7401 _ACEOF
7402 if ac_fn_c_try_cpp "$LINENO"; then :
7403 # Broken: success on invalid input.
7404 continue
7405 else
7406 # Passes both tests.
7407 ac_preproc_ok=:
7408 break
7409 fi
7410 rm -f conftest.err conftest.i conftest.$ac_ext
7411
7412 done
7413 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7414 rm -f conftest.i conftest.err conftest.$ac_ext
7415 if $ac_preproc_ok; then :
7416 break
7417 fi
7418
7419 done
7420 ac_cv_prog_CPP=$CPP
7421
7422 fi
7423 CPP=$ac_cv_prog_CPP
7424 else
7425 ac_cv_prog_CPP=$CPP
7426 fi
7427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7428 $as_echo "$CPP" >&6; }
7429 ac_preproc_ok=false
7430 for ac_c_preproc_warn_flag in '' yes
7431 do
7432 # Use a header file that comes with gcc, so configuring glibc
7433 # with a fresh cross-compiler works.
7434 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7435 # <limits.h> exists even on freestanding compilers.
7436 # On the NeXT, cc -E runs the code through the compiler's parser,
7437 # not just through cpp. "Syntax error" is here to catch this case.
7438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7439 /* end confdefs.h. */
7440 #ifdef __STDC__
7441 # include <limits.h>
7442 #else
7443 # include <assert.h>
7444 #endif
7445 Syntax error
7446 _ACEOF
7447 if ac_fn_c_try_cpp "$LINENO"; then :
7448
7449 else
7450 # Broken: fails on valid input.
7451 continue
7452 fi
7453 rm -f conftest.err conftest.i conftest.$ac_ext
7454
7455 # OK, works on sane cases. Now check whether nonexistent headers
7456 # can be detected and how.
7457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7458 /* end confdefs.h. */
7459 #include <ac_nonexistent.h>
7460 _ACEOF
7461 if ac_fn_c_try_cpp "$LINENO"; then :
7462 # Broken: success on invalid input.
7463 continue
7464 else
7465 # Passes both tests.
7466 ac_preproc_ok=:
7467 break
7468 fi
7469 rm -f conftest.err conftest.i conftest.$ac_ext
7470
7471 done
7472 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7473 rm -f conftest.i conftest.err conftest.$ac_ext
7474 if $ac_preproc_ok; then :
7475
7476 else
7477 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7478 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7479 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7480 See \`config.log' for more details" "$LINENO" 5; }
7481 fi
7482
7483 ac_ext=c
7484 ac_cpp='$CPP $CPPFLAGS'
7485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7488
7489
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7491 $as_echo_n "checking for ANSI C header files... " >&6; }
7492 if ${ac_cv_header_stdc+:} false; then :
7493 $as_echo_n "(cached) " >&6
7494 else
7495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7496 /* end confdefs.h. */
7497 #include <stdlib.h>
7498 #include <stdarg.h>
7499 #include <string.h>
7500 #include <float.h>
7501
7502 int
7503 main ()
7504 {
7505
7506 ;
7507 return 0;
7508 }
7509 _ACEOF
7510 if ac_fn_c_try_compile "$LINENO"; then :
7511 ac_cv_header_stdc=yes
7512 else
7513 ac_cv_header_stdc=no
7514 fi
7515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7516
7517 if test $ac_cv_header_stdc = yes; then
7518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7520 /* end confdefs.h. */
7521 #include <string.h>
7522
7523 _ACEOF
7524 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7525 $EGREP "memchr" >/dev/null 2>&1; then :
7526
7527 else
7528 ac_cv_header_stdc=no
7529 fi
7530 rm -f conftest*
7531
7532 fi
7533
7534 if test $ac_cv_header_stdc = yes; then
7535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7537 /* end confdefs.h. */
7538 #include <stdlib.h>
7539
7540 _ACEOF
7541 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7542 $EGREP "free" >/dev/null 2>&1; then :
7543
7544 else
7545 ac_cv_header_stdc=no
7546 fi
7547 rm -f conftest*
7548
7549 fi
7550
7551 if test $ac_cv_header_stdc = yes; then
7552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7553 if test "$cross_compiling" = yes; then :
7554 :
7555 else
7556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7557 /* end confdefs.h. */
7558 #include <ctype.h>
7559 #include <stdlib.h>
7560 #if ((' ' & 0x0FF) == 0x020)
7561 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7562 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7563 #else
7564 # define ISLOWER(c) \
7565 (('a' <= (c) && (c) <= 'i') \
7566 || ('j' <= (c) && (c) <= 'r') \
7567 || ('s' <= (c) && (c) <= 'z'))
7568 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7569 #endif
7570
7571 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7572 int
7573 main ()
7574 {
7575 int i;
7576 for (i = 0; i < 256; i++)
7577 if (XOR (islower (i), ISLOWER (i))
7578 || toupper (i) != TOUPPER (i))
7579 return 2;
7580 return 0;
7581 }
7582 _ACEOF
7583 if ac_fn_c_try_run "$LINENO"; then :
7584
7585 else
7586 ac_cv_header_stdc=no
7587 fi
7588 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7589 conftest.$ac_objext conftest.beam conftest.$ac_ext
7590 fi
7591
7592 fi
7593 fi
7594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7595 $as_echo "$ac_cv_header_stdc" >&6; }
7596 if test $ac_cv_header_stdc = yes; then
7597
7598 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7599
7600 fi
7601
7602 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7603 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7604 inttypes.h stdint.h unistd.h
7605 do :
7606 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7607 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7608 "
7609 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7610 cat >>confdefs.h <<_ACEOF
7611 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7612 _ACEOF
7613
7614 fi
7615
7616 done
7617
7618
7619 for ac_header in dlfcn.h
7620 do :
7621 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7622 "
7623 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7624 cat >>confdefs.h <<_ACEOF
7625 #define HAVE_DLFCN_H 1
7626 _ACEOF
7627
7628 fi
7629
7630 done
7631
7632
7633
7634
7635
7636 # Set options
7637 # Check whether --enable-shared was given.
7638 if test "${enable_shared+set}" = set; then :
7639 enableval=$enable_shared; p=${PACKAGE-default}
7640 case $enableval in
7641 yes) enable_shared=yes ;;
7642 no) enable_shared=no ;;
7643 *)
7644 enable_shared=no
7645 # Look at the argument we got. We use all the common list separators.
7646 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7647 for pkg in $enableval; do
7648 IFS="$lt_save_ifs"
7649 if test "X$pkg" = "X$p"; then
7650 enable_shared=yes
7651 fi
7652 done
7653 IFS="$lt_save_ifs"
7654 ;;
7655 esac
7656 else
7657 enable_shared=no
7658 fi
7659
7660
7661
7662
7663
7664
7665
7666 enable_win32_dll=yes
7667
7668 case $host in
7669 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
7670 if test -n "$ac_tool_prefix"; then
7671 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7672 set dummy ${ac_tool_prefix}as; ac_word=$2
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7674 $as_echo_n "checking for $ac_word... " >&6; }
7675 if ${ac_cv_prog_AS+:} false; then :
7676 $as_echo_n "(cached) " >&6
7677 else
7678 if test -n "$AS"; then
7679 ac_cv_prog_AS="$AS" # Let the user override the test.
7680 else
7681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7682 for as_dir in $PATH
7683 do
7684 IFS=$as_save_IFS
7685 test -z "$as_dir" && as_dir=.
7686 for ac_exec_ext in '' $ac_executable_extensions; do
7687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7688 ac_cv_prog_AS="${ac_tool_prefix}as"
7689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7690 break 2
7691 fi
7692 done
7693 done
7694 IFS=$as_save_IFS
7695
7696 fi
7697 fi
7698 AS=$ac_cv_prog_AS
7699 if test -n "$AS"; then
7700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7701 $as_echo "$AS" >&6; }
7702 else
7703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7704 $as_echo "no" >&6; }
7705 fi
7706
7707
7708 fi
7709 if test -z "$ac_cv_prog_AS"; then
7710 ac_ct_AS=$AS
7711 # Extract the first word of "as", so it can be a program name with args.
7712 set dummy as; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_prog_ac_ct_AS+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 if test -n "$ac_ct_AS"; then
7719 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7720 else
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7723 do
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_prog_ac_ct_AS="as"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7731 fi
7732 done
7733 done
7734 IFS=$as_save_IFS
7735
7736 fi
7737 fi
7738 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7739 if test -n "$ac_ct_AS"; then
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7741 $as_echo "$ac_ct_AS" >&6; }
7742 else
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7744 $as_echo "no" >&6; }
7745 fi
7746
7747 if test "x$ac_ct_AS" = x; then
7748 AS="false"
7749 else
7750 case $cross_compiling:$ac_tool_warned in
7751 yes:)
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7753 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7754 ac_tool_warned=yes ;;
7755 esac
7756 AS=$ac_ct_AS
7757 fi
7758 else
7759 AS="$ac_cv_prog_AS"
7760 fi
7761
7762 if test -n "$ac_tool_prefix"; then
7763 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7764 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7766 $as_echo_n "checking for $ac_word... " >&6; }
7767 if ${ac_cv_prog_DLLTOOL+:} false; then :
7768 $as_echo_n "(cached) " >&6
7769 else
7770 if test -n "$DLLTOOL"; then
7771 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7772 else
7773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7774 for as_dir in $PATH
7775 do
7776 IFS=$as_save_IFS
7777 test -z "$as_dir" && as_dir=.
7778 for ac_exec_ext in '' $ac_executable_extensions; do
7779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7780 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7781 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7782 break 2
7783 fi
7784 done
7785 done
7786 IFS=$as_save_IFS
7787
7788 fi
7789 fi
7790 DLLTOOL=$ac_cv_prog_DLLTOOL
7791 if test -n "$DLLTOOL"; then
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7793 $as_echo "$DLLTOOL" >&6; }
7794 else
7795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7796 $as_echo "no" >&6; }
7797 fi
7798
7799
7800 fi
7801 if test -z "$ac_cv_prog_DLLTOOL"; then
7802 ac_ct_DLLTOOL=$DLLTOOL
7803 # Extract the first word of "dlltool", so it can be a program name with args.
7804 set dummy dlltool; ac_word=$2
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7806 $as_echo_n "checking for $ac_word... " >&6; }
7807 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
7808 $as_echo_n "(cached) " >&6
7809 else
7810 if test -n "$ac_ct_DLLTOOL"; then
7811 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7812 else
7813 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7814 for as_dir in $PATH
7815 do
7816 IFS=$as_save_IFS
7817 test -z "$as_dir" && as_dir=.
7818 for ac_exec_ext in '' $ac_executable_extensions; do
7819 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7820 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7821 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7822 break 2
7823 fi
7824 done
7825 done
7826 IFS=$as_save_IFS
7827
7828 fi
7829 fi
7830 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7831 if test -n "$ac_ct_DLLTOOL"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7833 $as_echo "$ac_ct_DLLTOOL" >&6; }
7834 else
7835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7836 $as_echo "no" >&6; }
7837 fi
7838
7839 if test "x$ac_ct_DLLTOOL" = x; then
7840 DLLTOOL="false"
7841 else
7842 case $cross_compiling:$ac_tool_warned in
7843 yes:)
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7845 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7846 ac_tool_warned=yes ;;
7847 esac
7848 DLLTOOL=$ac_ct_DLLTOOL
7849 fi
7850 else
7851 DLLTOOL="$ac_cv_prog_DLLTOOL"
7852 fi
7853
7854 if test -n "$ac_tool_prefix"; then
7855 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7856 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7858 $as_echo_n "checking for $ac_word... " >&6; }
7859 if ${ac_cv_prog_OBJDUMP+:} false; then :
7860 $as_echo_n "(cached) " >&6
7861 else
7862 if test -n "$OBJDUMP"; then
7863 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7864 else
7865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7866 for as_dir in $PATH
7867 do
7868 IFS=$as_save_IFS
7869 test -z "$as_dir" && as_dir=.
7870 for ac_exec_ext in '' $ac_executable_extensions; do
7871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7872 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7874 break 2
7875 fi
7876 done
7877 done
7878 IFS=$as_save_IFS
7879
7880 fi
7881 fi
7882 OBJDUMP=$ac_cv_prog_OBJDUMP
7883 if test -n "$OBJDUMP"; then
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7885 $as_echo "$OBJDUMP" >&6; }
7886 else
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7888 $as_echo "no" >&6; }
7889 fi
7890
7891
7892 fi
7893 if test -z "$ac_cv_prog_OBJDUMP"; then
7894 ac_ct_OBJDUMP=$OBJDUMP
7895 # Extract the first word of "objdump", so it can be a program name with args.
7896 set dummy objdump; ac_word=$2
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7898 $as_echo_n "checking for $ac_word... " >&6; }
7899 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 if test -n "$ac_ct_OBJDUMP"; then
7903 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7904 else
7905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7906 for as_dir in $PATH
7907 do
7908 IFS=$as_save_IFS
7909 test -z "$as_dir" && as_dir=.
7910 for ac_exec_ext in '' $ac_executable_extensions; do
7911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7912 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7914 break 2
7915 fi
7916 done
7917 done
7918 IFS=$as_save_IFS
7919
7920 fi
7921 fi
7922 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7923 if test -n "$ac_ct_OBJDUMP"; then
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7925 $as_echo "$ac_ct_OBJDUMP" >&6; }
7926 else
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7928 $as_echo "no" >&6; }
7929 fi
7930
7931 if test "x$ac_ct_OBJDUMP" = x; then
7932 OBJDUMP="false"
7933 else
7934 case $cross_compiling:$ac_tool_warned in
7935 yes:)
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7937 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7938 ac_tool_warned=yes ;;
7939 esac
7940 OBJDUMP=$ac_ct_OBJDUMP
7941 fi
7942 else
7943 OBJDUMP="$ac_cv_prog_OBJDUMP"
7944 fi
7945
7946 ;;
7947 esac
7948
7949 test -z "$AS" && AS=as
7950
7951
7952
7953
7954
7955 test -z "$DLLTOOL" && DLLTOOL=dlltool
7956
7957
7958
7959
7960
7961 test -z "$OBJDUMP" && OBJDUMP=objdump
7962
7963
7964
7965
7966
7967
7968
7969 enable_dlopen=no
7970
7971
7972
7973
7974 # Check whether --enable-static was given.
7975 if test "${enable_static+set}" = set; then :
7976 enableval=$enable_static; p=${PACKAGE-default}
7977 case $enableval in
7978 yes) enable_static=yes ;;
7979 no) enable_static=no ;;
7980 *)
7981 enable_static=no
7982 # Look at the argument we got. We use all the common list separators.
7983 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7984 for pkg in $enableval; do
7985 IFS="$lt_save_ifs"
7986 if test "X$pkg" = "X$p"; then
7987 enable_static=yes
7988 fi
7989 done
7990 IFS="$lt_save_ifs"
7991 ;;
7992 esac
7993 else
7994 enable_static=yes
7995 fi
7996
7997
7998
7999
8000
8001
8002
8003
8004
8005
8006 # Check whether --with-pic was given.
8007 if test "${with_pic+set}" = set; then :
8008 withval=$with_pic; lt_p=${PACKAGE-default}
8009 case $withval in
8010 yes|no) pic_mode=$withval ;;
8011 *)
8012 pic_mode=default
8013 # Look at the argument we got. We use all the common list separators.
8014 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8015 for lt_pkg in $withval; do
8016 IFS="$lt_save_ifs"
8017 if test "X$lt_pkg" = "X$lt_p"; then
8018 pic_mode=yes
8019 fi
8020 done
8021 IFS="$lt_save_ifs"
8022 ;;
8023 esac
8024 else
8025 pic_mode=default
8026 fi
8027
8028
8029 test -z "$pic_mode" && pic_mode=default
8030
8031
8032
8033
8034
8035
8036
8037 # Check whether --enable-fast-install was given.
8038 if test "${enable_fast_install+set}" = set; then :
8039 enableval=$enable_fast_install; p=${PACKAGE-default}
8040 case $enableval in
8041 yes) enable_fast_install=yes ;;
8042 no) enable_fast_install=no ;;
8043 *)
8044 enable_fast_install=no
8045 # Look at the argument we got. We use all the common list separators.
8046 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8047 for pkg in $enableval; do
8048 IFS="$lt_save_ifs"
8049 if test "X$pkg" = "X$p"; then
8050 enable_fast_install=yes
8051 fi
8052 done
8053 IFS="$lt_save_ifs"
8054 ;;
8055 esac
8056 else
8057 enable_fast_install=yes
8058 fi
8059
8060
8061
8062
8063
8064
8065
8066
8067
8068
8069
8070 # This can be used to rebuild libtool when needed
8071 LIBTOOL_DEPS="$ltmain"
8072
8073 # Always use our own libtool.
8074 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8075
8076
8077
8078
8079
8080
8081
8082
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098
8099
8100
8101
8102
8103
8104
8105 test -z "$LN_S" && LN_S="ln -s"
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120 if test -n "${ZSH_VERSION+set}" ; then
8121 setopt NO_GLOB_SUBST
8122 fi
8123
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8125 $as_echo_n "checking for objdir... " >&6; }
8126 if ${lt_cv_objdir+:} false; then :
8127 $as_echo_n "(cached) " >&6
8128 else
8129 rm -f .libs 2>/dev/null
8130 mkdir .libs 2>/dev/null
8131 if test -d .libs; then
8132 lt_cv_objdir=.libs
8133 else
8134 # MS-DOS does not allow filenames that begin with a dot.
8135 lt_cv_objdir=_libs
8136 fi
8137 rmdir .libs 2>/dev/null
8138 fi
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8140 $as_echo "$lt_cv_objdir" >&6; }
8141 objdir=$lt_cv_objdir
8142
8143
8144
8145
8146
8147 cat >>confdefs.h <<_ACEOF
8148 #define LT_OBJDIR "$lt_cv_objdir/"
8149 _ACEOF
8150
8151
8152
8153
8154 case $host_os in
8155 aix3*)
8156 # AIX sometimes has problems with the GCC collect2 program. For some
8157 # reason, if we set the COLLECT_NAMES environment variable, the problems
8158 # vanish in a puff of smoke.
8159 if test "X${COLLECT_NAMES+set}" != Xset; then
8160 COLLECT_NAMES=
8161 export COLLECT_NAMES
8162 fi
8163 ;;
8164 esac
8165
8166 # Global variables:
8167 ofile=libtool
8168 can_build_shared=yes
8169
8170 # All known linkers require a `.a' archive for static linking (except MSVC,
8171 # which needs '.lib').
8172 libext=a
8173
8174 with_gnu_ld="$lt_cv_prog_gnu_ld"
8175
8176 old_CC="$CC"
8177 old_CFLAGS="$CFLAGS"
8178
8179 # Set sane defaults for various variables
8180 test -z "$CC" && CC=cc
8181 test -z "$LTCC" && LTCC=$CC
8182 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8183 test -z "$LD" && LD=ld
8184 test -z "$ac_objext" && ac_objext=o
8185
8186 for cc_temp in $compiler""; do
8187 case $cc_temp in
8188 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8189 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8190 \-*) ;;
8191 *) break;;
8192 esac
8193 done
8194 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8195
8196
8197 # Only perform the check for file, if the check method requires it
8198 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8199 case $deplibs_check_method in
8200 file_magic*)
8201 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8203 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8204 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 case $MAGIC_CMD in
8208 [\\/*] | ?:[\\/]*)
8209 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8210 ;;
8211 *)
8212 lt_save_MAGIC_CMD="$MAGIC_CMD"
8213 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8214 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8215 for ac_dir in $ac_dummy; do
8216 IFS="$lt_save_ifs"
8217 test -z "$ac_dir" && ac_dir=.
8218 if test -f $ac_dir/${ac_tool_prefix}file; then
8219 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8220 if test -n "$file_magic_test_file"; then
8221 case $deplibs_check_method in
8222 "file_magic "*)
8223 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8225 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8226 $EGREP "$file_magic_regex" > /dev/null; then
8227 :
8228 else
8229 cat <<_LT_EOF 1>&2
8230
8231 *** Warning: the command libtool uses to detect shared libraries,
8232 *** $file_magic_cmd, produces output that libtool cannot recognize.
8233 *** The result is that libtool may fail to recognize shared libraries
8234 *** as such. This will affect the creation of libtool libraries that
8235 *** depend on shared libraries, but programs linked with such libtool
8236 *** libraries will work regardless of this problem. Nevertheless, you
8237 *** may want to report the problem to your system manager and/or to
8238 *** [email protected]
8239
8240 _LT_EOF
8241 fi ;;
8242 esac
8243 fi
8244 break
8245 fi
8246 done
8247 IFS="$lt_save_ifs"
8248 MAGIC_CMD="$lt_save_MAGIC_CMD"
8249 ;;
8250 esac
8251 fi
8252
8253 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8254 if test -n "$MAGIC_CMD"; then
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8256 $as_echo "$MAGIC_CMD" >&6; }
8257 else
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }
8260 fi
8261
8262
8263
8264
8265
8266 if test -z "$lt_cv_path_MAGIC_CMD"; then
8267 if test -n "$ac_tool_prefix"; then
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8269 $as_echo_n "checking for file... " >&6; }
8270 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 case $MAGIC_CMD in
8274 [\\/*] | ?:[\\/]*)
8275 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8276 ;;
8277 *)
8278 lt_save_MAGIC_CMD="$MAGIC_CMD"
8279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8280 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8281 for ac_dir in $ac_dummy; do
8282 IFS="$lt_save_ifs"
8283 test -z "$ac_dir" && ac_dir=.
8284 if test -f $ac_dir/file; then
8285 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8286 if test -n "$file_magic_test_file"; then
8287 case $deplibs_check_method in
8288 "file_magic "*)
8289 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8290 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8291 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8292 $EGREP "$file_magic_regex" > /dev/null; then
8293 :
8294 else
8295 cat <<_LT_EOF 1>&2
8296
8297 *** Warning: the command libtool uses to detect shared libraries,
8298 *** $file_magic_cmd, produces output that libtool cannot recognize.
8299 *** The result is that libtool may fail to recognize shared libraries
8300 *** as such. This will affect the creation of libtool libraries that
8301 *** depend on shared libraries, but programs linked with such libtool
8302 *** libraries will work regardless of this problem. Nevertheless, you
8303 *** may want to report the problem to your system manager and/or to
8304 *** [email protected]
8305
8306 _LT_EOF
8307 fi ;;
8308 esac
8309 fi
8310 break
8311 fi
8312 done
8313 IFS="$lt_save_ifs"
8314 MAGIC_CMD="$lt_save_MAGIC_CMD"
8315 ;;
8316 esac
8317 fi
8318
8319 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8320 if test -n "$MAGIC_CMD"; then
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8322 $as_echo "$MAGIC_CMD" >&6; }
8323 else
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8325 $as_echo "no" >&6; }
8326 fi
8327
8328
8329 else
8330 MAGIC_CMD=:
8331 fi
8332 fi
8333
8334 fi
8335 ;;
8336 esac
8337
8338 # Use C for the default configuration in the libtool script
8339
8340 lt_save_CC="$CC"
8341 ac_ext=c
8342 ac_cpp='$CPP $CPPFLAGS'
8343 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8344 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8345 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8346
8347
8348 # Source file extension for C test sources.
8349 ac_ext=c
8350
8351 # Object file extension for compiled C test sources.
8352 objext=o
8353 objext=$objext
8354
8355 # Code to be used in simple compile tests
8356 lt_simple_compile_test_code="int some_variable = 0;"
8357
8358 # Code to be used in simple link tests
8359 lt_simple_link_test_code='int main(){return(0);}'
8360
8361
8362
8363
8364
8365
8366
8367 # If no C compiler was specified, use CC.
8368 LTCC=${LTCC-"$CC"}
8369
8370 # If no C compiler flags were specified, use CFLAGS.
8371 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8372
8373 # Allow CC to be a program name with arguments.
8374 compiler=$CC
8375
8376 # Save the default compiler, since it gets overwritten when the other
8377 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8378 compiler_DEFAULT=$CC
8379
8380 # save warnings/boilerplate of simple test code
8381 ac_outfile=conftest.$ac_objext
8382 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8383 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8384 _lt_compiler_boilerplate=`cat conftest.err`
8385 $RM conftest*
8386
8387 ac_outfile=conftest.$ac_objext
8388 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8389 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8390 _lt_linker_boilerplate=`cat conftest.err`
8391 $RM -r conftest*
8392
8393
8394 ## CAVEAT EMPTOR:
8395 ## There is no encapsulation within the following macros, do not change
8396 ## the running order or otherwise move them around unless you know exactly
8397 ## what you are doing...
8398 if test -n "$compiler"; then
8399
8400 lt_prog_compiler_no_builtin_flag=
8401
8402 if test "$GCC" = yes; then
8403 case $cc_basename in
8404 nvcc*)
8405 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8406 *)
8407 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8408 esac
8409
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8411 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8412 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8413 $as_echo_n "(cached) " >&6
8414 else
8415 lt_cv_prog_compiler_rtti_exceptions=no
8416 ac_outfile=conftest.$ac_objext
8417 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8418 lt_compiler_flag="-fno-rtti -fno-exceptions"
8419 # Insert the option either (1) after the last *FLAGS variable, or
8420 # (2) before a word containing "conftest.", or (3) at the end.
8421 # Note that $ac_compile itself does not contain backslashes and begins
8422 # with a dollar sign (not a hyphen), so the echo should work correctly.
8423 # The option is referenced via a variable to avoid confusing sed.
8424 lt_compile=`echo "$ac_compile" | $SED \
8425 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8426 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8427 -e 's:$: $lt_compiler_flag:'`
8428 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8429 (eval "$lt_compile" 2>conftest.err)
8430 ac_status=$?
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 if (exit $ac_status) && test -s "$ac_outfile"; then
8434 # The compiler can only warn and ignore the option if not recognized
8435 # So say no if there are warnings other than the usual output.
8436 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8437 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8438 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8439 lt_cv_prog_compiler_rtti_exceptions=yes
8440 fi
8441 fi
8442 $RM conftest*
8443
8444 fi
8445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8446 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8447
8448 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8449 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8450 else
8451 :
8452 fi
8453
8454 fi
8455
8456
8457
8458
8459
8460
8461 lt_prog_compiler_wl=
8462 lt_prog_compiler_pic=
8463 lt_prog_compiler_static=
8464
8465
8466 if test "$GCC" = yes; then
8467 lt_prog_compiler_wl='-Wl,'
8468 lt_prog_compiler_static='-static'
8469
8470 case $host_os in
8471 aix*)
8472 # All AIX code is PIC.
8473 if test "$host_cpu" = ia64; then
8474 # AIX 5 now supports IA64 processor
8475 lt_prog_compiler_static='-Bstatic'
8476 fi
8477 ;;
8478
8479 amigaos*)
8480 case $host_cpu in
8481 powerpc)
8482 # see comment about AmigaOS4 .so support
8483 lt_prog_compiler_pic='-fPIC'
8484 ;;
8485 m68k)
8486 # FIXME: we need at least 68020 code to build shared libraries, but
8487 # adding the `-m68020' flag to GCC prevents building anything better,
8488 # like `-m68040'.
8489 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8490 ;;
8491 esac
8492 ;;
8493
8494 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8495 # PIC is the default for these OSes.
8496 ;;
8497
8498 mingw* | cygwin* | pw32* | os2* | cegcc*)
8499 # This hack is so that the source file can tell whether it is being
8500 # built for inclusion in a dll (and should export symbols for example).
8501 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8502 # (--disable-auto-import) libraries
8503 lt_prog_compiler_pic='-DDLL_EXPORT'
8504 ;;
8505
8506 darwin* | rhapsody*)
8507 # PIC is the default on this platform
8508 # Common symbols not allowed in MH_DYLIB files
8509 lt_prog_compiler_pic='-fno-common'
8510 ;;
8511
8512 haiku*)
8513 # PIC is the default for Haiku.
8514 # The "-static" flag exists, but is broken.
8515 lt_prog_compiler_static=
8516 ;;
8517
8518 hpux*)
8519 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8520 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8521 # sets the default TLS model and affects inlining.
8522 case $host_cpu in
8523 hppa*64*)
8524 # +Z the default
8525 ;;
8526 *)
8527 lt_prog_compiler_pic='-fPIC'
8528 ;;
8529 esac
8530 ;;
8531
8532 interix[3-9]*)
8533 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8534 # Instead, we relocate shared libraries at runtime.
8535 ;;
8536
8537 msdosdjgpp*)
8538 # Just because we use GCC doesn't mean we suddenly get shared libraries
8539 # on systems that don't support them.
8540 lt_prog_compiler_can_build_shared=no
8541 enable_shared=no
8542 ;;
8543
8544 *nto* | *qnx*)
8545 # QNX uses GNU C++, but need to define -shared option too, otherwise
8546 # it will coredump.
8547 lt_prog_compiler_pic='-fPIC -shared'
8548 ;;
8549
8550 sysv4*MP*)
8551 if test -d /usr/nec; then
8552 lt_prog_compiler_pic=-Kconform_pic
8553 fi
8554 ;;
8555
8556 *)
8557 lt_prog_compiler_pic='-fPIC'
8558 ;;
8559 esac
8560
8561 case $cc_basename in
8562 nvcc*) # Cuda Compiler Driver 2.2
8563 lt_prog_compiler_wl='-Xlinker '
8564 if test -n "$lt_prog_compiler_pic"; then
8565 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8566 fi
8567 ;;
8568 esac
8569 else
8570 # PORTME Check for flag to pass linker flags through the system compiler.
8571 case $host_os in
8572 aix*)
8573 lt_prog_compiler_wl='-Wl,'
8574 if test "$host_cpu" = ia64; then
8575 # AIX 5 now supports IA64 processor
8576 lt_prog_compiler_static='-Bstatic'
8577 else
8578 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8579 fi
8580 ;;
8581
8582 mingw* | cygwin* | pw32* | os2* | cegcc*)
8583 # This hack is so that the source file can tell whether it is being
8584 # built for inclusion in a dll (and should export symbols for example).
8585 lt_prog_compiler_pic='-DDLL_EXPORT'
8586 ;;
8587
8588 hpux9* | hpux10* | hpux11*)
8589 lt_prog_compiler_wl='-Wl,'
8590 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8591 # not for PA HP-UX.
8592 case $host_cpu in
8593 hppa*64*|ia64*)
8594 # +Z the default
8595 ;;
8596 *)
8597 lt_prog_compiler_pic='+Z'
8598 ;;
8599 esac
8600 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8601 lt_prog_compiler_static='${wl}-a ${wl}archive'
8602 ;;
8603
8604 irix5* | irix6* | nonstopux*)
8605 lt_prog_compiler_wl='-Wl,'
8606 # PIC (with -KPIC) is the default.
8607 lt_prog_compiler_static='-non_shared'
8608 ;;
8609
8610 linux* | k*bsd*-gnu | kopensolaris*-gnu)
8611 case $cc_basename in
8612 # old Intel for x86_64 which still supported -KPIC.
8613 ecc*)
8614 lt_prog_compiler_wl='-Wl,'
8615 lt_prog_compiler_pic='-KPIC'
8616 lt_prog_compiler_static='-static'
8617 ;;
8618 # icc used to be incompatible with GCC.
8619 # ICC 10 doesn't accept -KPIC any more.
8620 icc* | ifort*)
8621 lt_prog_compiler_wl='-Wl,'
8622 lt_prog_compiler_pic='-fPIC'
8623 lt_prog_compiler_static='-static'
8624 ;;
8625 # Lahey Fortran 8.1.
8626 lf95*)
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='--shared'
8629 lt_prog_compiler_static='--static'
8630 ;;
8631 nagfor*)
8632 # NAG Fortran compiler
8633 lt_prog_compiler_wl='-Wl,-Wl,,'
8634 lt_prog_compiler_pic='-PIC'
8635 lt_prog_compiler_static='-Bstatic'
8636 ;;
8637 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8638 # Portland Group compilers (*not* the Pentium gcc compiler,
8639 # which looks to be a dead project)
8640 lt_prog_compiler_wl='-Wl,'
8641 lt_prog_compiler_pic='-fpic'
8642 lt_prog_compiler_static='-Bstatic'
8643 ;;
8644 ccc*)
8645 lt_prog_compiler_wl='-Wl,'
8646 # All Alpha code is PIC.
8647 lt_prog_compiler_static='-non_shared'
8648 ;;
8649 xl* | bgxl* | bgf* | mpixl*)
8650 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8651 lt_prog_compiler_wl='-Wl,'
8652 lt_prog_compiler_pic='-qpic'
8653 lt_prog_compiler_static='-qstaticlink'
8654 ;;
8655 *)
8656 case `$CC -V 2>&1 | sed 5q` in
8657 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8658 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8659 lt_prog_compiler_pic='-KPIC'
8660 lt_prog_compiler_static='-Bstatic'
8661 lt_prog_compiler_wl=''
8662 ;;
8663 *Sun\ F* | *Sun*Fortran*)
8664 lt_prog_compiler_pic='-KPIC'
8665 lt_prog_compiler_static='-Bstatic'
8666 lt_prog_compiler_wl='-Qoption ld '
8667 ;;
8668 *Sun\ C*)
8669 # Sun C 5.9
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-Bstatic'
8672 lt_prog_compiler_wl='-Wl,'
8673 ;;
8674 *Intel*\ [CF]*Compiler*)
8675 lt_prog_compiler_wl='-Wl,'
8676 lt_prog_compiler_pic='-fPIC'
8677 lt_prog_compiler_static='-static'
8678 ;;
8679 *Portland\ Group*)
8680 lt_prog_compiler_wl='-Wl,'
8681 lt_prog_compiler_pic='-fpic'
8682 lt_prog_compiler_static='-Bstatic'
8683 ;;
8684 esac
8685 ;;
8686 esac
8687 ;;
8688
8689 newsos6)
8690 lt_prog_compiler_pic='-KPIC'
8691 lt_prog_compiler_static='-Bstatic'
8692 ;;
8693
8694 *nto* | *qnx*)
8695 # QNX uses GNU C++, but need to define -shared option too, otherwise
8696 # it will coredump.
8697 lt_prog_compiler_pic='-fPIC -shared'
8698 ;;
8699
8700 osf3* | osf4* | osf5*)
8701 lt_prog_compiler_wl='-Wl,'
8702 # All OSF/1 code is PIC.
8703 lt_prog_compiler_static='-non_shared'
8704 ;;
8705
8706 rdos*)
8707 lt_prog_compiler_static='-non_shared'
8708 ;;
8709
8710 solaris*)
8711 lt_prog_compiler_pic='-KPIC'
8712 lt_prog_compiler_static='-Bstatic'
8713 case $cc_basename in
8714 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8715 lt_prog_compiler_wl='-Qoption ld ';;
8716 *)
8717 lt_prog_compiler_wl='-Wl,';;
8718 esac
8719 ;;
8720
8721 sunos4*)
8722 lt_prog_compiler_wl='-Qoption ld '
8723 lt_prog_compiler_pic='-PIC'
8724 lt_prog_compiler_static='-Bstatic'
8725 ;;
8726
8727 sysv4 | sysv4.2uw2* | sysv4.3*)
8728 lt_prog_compiler_wl='-Wl,'
8729 lt_prog_compiler_pic='-KPIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 ;;
8732
8733 sysv4*MP*)
8734 if test -d /usr/nec ;then
8735 lt_prog_compiler_pic='-Kconform_pic'
8736 lt_prog_compiler_static='-Bstatic'
8737 fi
8738 ;;
8739
8740 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8741 lt_prog_compiler_wl='-Wl,'
8742 lt_prog_compiler_pic='-KPIC'
8743 lt_prog_compiler_static='-Bstatic'
8744 ;;
8745
8746 unicos*)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_can_build_shared=no
8749 ;;
8750
8751 uts4*)
8752 lt_prog_compiler_pic='-pic'
8753 lt_prog_compiler_static='-Bstatic'
8754 ;;
8755
8756 *)
8757 lt_prog_compiler_can_build_shared=no
8758 ;;
8759 esac
8760 fi
8761
8762 case $host_os in
8763 # For platforms which do not support PIC, -DPIC is meaningless:
8764 *djgpp*)
8765 lt_prog_compiler_pic=
8766 ;;
8767 *)
8768 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8769 ;;
8770 esac
8771
8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8773 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8774 if ${lt_cv_prog_compiler_pic+:} false; then :
8775 $as_echo_n "(cached) " >&6
8776 else
8777 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8778 fi
8779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8780 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8781 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8782
8783 #
8784 # Check to make sure the PIC flag actually works.
8785 #
8786 if test -n "$lt_prog_compiler_pic"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8788 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8789 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 lt_cv_prog_compiler_pic_works=no
8793 ac_outfile=conftest.$ac_objext
8794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8795 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8796 # Insert the option either (1) after the last *FLAGS variable, or
8797 # (2) before a word containing "conftest.", or (3) at the end.
8798 # Note that $ac_compile itself does not contain backslashes and begins
8799 # with a dollar sign (not a hyphen), so the echo should work correctly.
8800 # The option is referenced via a variable to avoid confusing sed.
8801 lt_compile=`echo "$ac_compile" | $SED \
8802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8804 -e 's:$: $lt_compiler_flag:'`
8805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8806 (eval "$lt_compile" 2>conftest.err)
8807 ac_status=$?
8808 cat conftest.err >&5
8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8810 if (exit $ac_status) && test -s "$ac_outfile"; then
8811 # The compiler can only warn and ignore the option if not recognized
8812 # So say no if there are warnings other than the usual output.
8813 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8814 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8815 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8816 lt_cv_prog_compiler_pic_works=yes
8817 fi
8818 fi
8819 $RM conftest*
8820
8821 fi
8822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8823 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8824
8825 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8826 case $lt_prog_compiler_pic in
8827 "" | " "*) ;;
8828 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8829 esac
8830 else
8831 lt_prog_compiler_pic=
8832 lt_prog_compiler_can_build_shared=no
8833 fi
8834
8835 fi
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846
8847 #
8848 # Check to make sure the static flag actually works.
8849 #
8850 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8852 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8853 if ${lt_cv_prog_compiler_static_works+:} false; then :
8854 $as_echo_n "(cached) " >&6
8855 else
8856 lt_cv_prog_compiler_static_works=no
8857 save_LDFLAGS="$LDFLAGS"
8858 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8859 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8860 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8861 # The linker can only warn and ignore the option if not recognized
8862 # So say no if there are warnings
8863 if test -s conftest.err; then
8864 # Append any errors to the config.log.
8865 cat conftest.err 1>&5
8866 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8867 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8868 if diff conftest.exp conftest.er2 >/dev/null; then
8869 lt_cv_prog_compiler_static_works=yes
8870 fi
8871 else
8872 lt_cv_prog_compiler_static_works=yes
8873 fi
8874 fi
8875 $RM -r conftest*
8876 LDFLAGS="$save_LDFLAGS"
8877
8878 fi
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8880 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8881
8882 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8883 :
8884 else
8885 lt_prog_compiler_static=
8886 fi
8887
8888
8889
8890
8891
8892
8893
8894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8895 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8896 if ${lt_cv_prog_compiler_c_o+:} false; then :
8897 $as_echo_n "(cached) " >&6
8898 else
8899 lt_cv_prog_compiler_c_o=no
8900 $RM -r conftest 2>/dev/null
8901 mkdir conftest
8902 cd conftest
8903 mkdir out
8904 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8905
8906 lt_compiler_flag="-o out/conftest2.$ac_objext"
8907 # Insert the option either (1) after the last *FLAGS variable, or
8908 # (2) before a word containing "conftest.", or (3) at the end.
8909 # Note that $ac_compile itself does not contain backslashes and begins
8910 # with a dollar sign (not a hyphen), so the echo should work correctly.
8911 lt_compile=`echo "$ac_compile" | $SED \
8912 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8913 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8914 -e 's:$: $lt_compiler_flag:'`
8915 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8916 (eval "$lt_compile" 2>out/conftest.err)
8917 ac_status=$?
8918 cat out/conftest.err >&5
8919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8921 then
8922 # The compiler can only warn and ignore the option if not recognized
8923 # So say no if there are warnings
8924 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8925 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8926 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8927 lt_cv_prog_compiler_c_o=yes
8928 fi
8929 fi
8930 chmod u+w . 2>&5
8931 $RM conftest*
8932 # SGI C++ compiler will create directory out/ii_files/ for
8933 # template instantiation
8934 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8935 $RM out/* && rmdir out
8936 cd ..
8937 $RM -r conftest
8938 $RM conftest*
8939
8940 fi
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8942 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8943
8944
8945
8946
8947
8948
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8950 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8951 if ${lt_cv_prog_compiler_c_o+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 lt_cv_prog_compiler_c_o=no
8955 $RM -r conftest 2>/dev/null
8956 mkdir conftest
8957 cd conftest
8958 mkdir out
8959 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8960
8961 lt_compiler_flag="-o out/conftest2.$ac_objext"
8962 # Insert the option either (1) after the last *FLAGS variable, or
8963 # (2) before a word containing "conftest.", or (3) at the end.
8964 # Note that $ac_compile itself does not contain backslashes and begins
8965 # with a dollar sign (not a hyphen), so the echo should work correctly.
8966 lt_compile=`echo "$ac_compile" | $SED \
8967 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8968 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8969 -e 's:$: $lt_compiler_flag:'`
8970 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8971 (eval "$lt_compile" 2>out/conftest.err)
8972 ac_status=$?
8973 cat out/conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8976 then
8977 # The compiler can only warn and ignore the option if not recognized
8978 # So say no if there are warnings
8979 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8980 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8981 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8982 lt_cv_prog_compiler_c_o=yes
8983 fi
8984 fi
8985 chmod u+w . 2>&5
8986 $RM conftest*
8987 # SGI C++ compiler will create directory out/ii_files/ for
8988 # template instantiation
8989 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8990 $RM out/* && rmdir out
8991 cd ..
8992 $RM -r conftest
8993 $RM conftest*
8994
8995 fi
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8997 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8998
8999
9000
9001
9002 hard_links="nottested"
9003 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9004 # do not overwrite the value of need_locks provided by the user
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9006 $as_echo_n "checking if we can lock with hard links... " >&6; }
9007 hard_links=yes
9008 $RM conftest*
9009 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9010 touch conftest.a
9011 ln conftest.a conftest.b 2>&5 || hard_links=no
9012 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9014 $as_echo "$hard_links" >&6; }
9015 if test "$hard_links" = no; then
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9017 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9018 need_locks=warn
9019 fi
9020 else
9021 need_locks=no
9022 fi
9023
9024
9025
9026
9027
9028
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9030 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9031
9032 runpath_var=
9033 allow_undefined_flag=
9034 always_export_symbols=no
9035 archive_cmds=
9036 archive_expsym_cmds=
9037 compiler_needs_object=no
9038 enable_shared_with_static_runtimes=no
9039 export_dynamic_flag_spec=
9040 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9041 hardcode_automatic=no
9042 hardcode_direct=no
9043 hardcode_direct_absolute=no
9044 hardcode_libdir_flag_spec=
9045 hardcode_libdir_separator=
9046 hardcode_minus_L=no
9047 hardcode_shlibpath_var=unsupported
9048 inherit_rpath=no
9049 link_all_deplibs=unknown
9050 module_cmds=
9051 module_expsym_cmds=
9052 old_archive_from_new_cmds=
9053 old_archive_from_expsyms_cmds=
9054 thread_safe_flag_spec=
9055 whole_archive_flag_spec=
9056 # include_expsyms should be a list of space-separated symbols to be *always*
9057 # included in the symbol list
9058 include_expsyms=
9059 # exclude_expsyms can be an extended regexp of symbols to exclude
9060 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9061 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9062 # as well as any symbol that contains `d'.
9063 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9064 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9065 # platforms (ab)use it in PIC code, but their linkers get confused if
9066 # the symbol is explicitly referenced. Since portable code cannot
9067 # rely on this symbol name, it's probably fine to never include it in
9068 # preloaded symbol tables.
9069 # Exclude shared library initialization/finalization symbols.
9070 extract_expsyms_cmds=
9071
9072 case $host_os in
9073 cygwin* | mingw* | pw32* | cegcc*)
9074 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9075 # When not using gcc, we currently assume that we are using
9076 # Microsoft Visual C++.
9077 if test "$GCC" != yes; then
9078 with_gnu_ld=no
9079 fi
9080 ;;
9081 interix*)
9082 # we just hope/assume this is gcc and not c89 (= MSVC++)
9083 with_gnu_ld=yes
9084 ;;
9085 openbsd*)
9086 with_gnu_ld=no
9087 ;;
9088 esac
9089
9090 ld_shlibs=yes
9091
9092 # On some targets, GNU ld is compatible enough with the native linker
9093 # that we're better off using the native interface for both.
9094 lt_use_gnu_ld_interface=no
9095 if test "$with_gnu_ld" = yes; then
9096 case $host_os in
9097 aix*)
9098 # The AIX port of GNU ld has always aspired to compatibility
9099 # with the native linker. However, as the warning in the GNU ld
9100 # block says, versions before 2.19.5* couldn't really create working
9101 # shared libraries, regardless of the interface used.
9102 case `$LD -v 2>&1` in
9103 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9104 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9105 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9106 *)
9107 lt_use_gnu_ld_interface=yes
9108 ;;
9109 esac
9110 ;;
9111 *)
9112 lt_use_gnu_ld_interface=yes
9113 ;;
9114 esac
9115 fi
9116
9117 if test "$lt_use_gnu_ld_interface" = yes; then
9118 # If archive_cmds runs LD, not CC, wlarc should be empty
9119 wlarc='${wl}'
9120
9121 # Set some defaults for GNU ld with shared library support. These
9122 # are reset later if shared libraries are not supported. Putting them
9123 # here allows them to be overridden if necessary.
9124 runpath_var=LD_RUN_PATH
9125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9126 export_dynamic_flag_spec='${wl}--export-dynamic'
9127 # ancient GNU ld didn't support --whole-archive et. al.
9128 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9129 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9130 else
9131 whole_archive_flag_spec=
9132 fi
9133 supports_anon_versioning=no
9134 case `$LD -v 2>&1` in
9135 *GNU\ gold*) supports_anon_versioning=yes ;;
9136 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9137 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9138 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9139 *\ 2.11.*) ;; # other 2.11 versions
9140 *) supports_anon_versioning=yes ;;
9141 esac
9142
9143 # See if GNU ld supports shared libraries.
9144 case $host_os in
9145 aix[3-9]*)
9146 # On AIX/PPC, the GNU linker is very broken
9147 if test "$host_cpu" != ia64; then
9148 ld_shlibs=no
9149 cat <<_LT_EOF 1>&2
9150
9151 *** Warning: the GNU linker, at least up to release 2.19, is reported
9152 *** to be unable to reliably create shared libraries on AIX.
9153 *** Therefore, libtool is disabling shared libraries support. If you
9154 *** really care for shared libraries, you may want to install binutils
9155 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9156 *** You will then need to restart the configuration process.
9157
9158 _LT_EOF
9159 fi
9160 ;;
9161
9162 amigaos*)
9163 case $host_cpu in
9164 powerpc)
9165 # see comment about AmigaOS4 .so support
9166 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9167 archive_expsym_cmds=''
9168 ;;
9169 m68k)
9170 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)'
9171 hardcode_libdir_flag_spec='-L$libdir'
9172 hardcode_minus_L=yes
9173 ;;
9174 esac
9175 ;;
9176
9177 beos*)
9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9179 allow_undefined_flag=unsupported
9180 # Joseph Beckenbach <[email protected]> says some releases of gcc
9181 # support --undefined. This deserves some investigation. FIXME
9182 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9183 else
9184 ld_shlibs=no
9185 fi
9186 ;;
9187
9188 cygwin* | mingw* | pw32* | cegcc*)
9189 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9190 # as there is no search path for DLLs.
9191 hardcode_libdir_flag_spec='-L$libdir'
9192 export_dynamic_flag_spec='${wl}--export-all-symbols'
9193 allow_undefined_flag=unsupported
9194 always_export_symbols=no
9195 enable_shared_with_static_runtimes=yes
9196 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'
9197 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9198
9199 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9201 # If the export-symbols file already is a .def file (1st line
9202 # is EXPORTS), use it as is; otherwise, prepend...
9203 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9204 cp $export_symbols $output_objdir/$soname.def;
9205 else
9206 echo EXPORTS > $output_objdir/$soname.def;
9207 cat $export_symbols >> $output_objdir/$soname.def;
9208 fi~
9209 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210 else
9211 ld_shlibs=no
9212 fi
9213 ;;
9214
9215 haiku*)
9216 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9217 link_all_deplibs=yes
9218 ;;
9219
9220 interix[3-9]*)
9221 hardcode_direct=no
9222 hardcode_shlibpath_var=no
9223 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9224 export_dynamic_flag_spec='${wl}-E'
9225 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9226 # Instead, shared libraries are loaded at an image base (0x10000000 by
9227 # default) and relocated if they conflict, which is a slow very memory
9228 # consuming and fragmenting process. To avoid this, we pick a random,
9229 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9230 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9231 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9232 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'
9233 ;;
9234
9235 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9236 tmp_diet=no
9237 if test "$host_os" = linux-dietlibc; then
9238 case $cc_basename in
9239 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9240 esac
9241 fi
9242 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9243 && test "$tmp_diet" = no
9244 then
9245 tmp_addflag=' $pic_flag'
9246 tmp_sharedflag='-shared'
9247 case $cc_basename,$host_cpu in
9248 pgcc*) # Portland Group C compiler
9249 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'
9250 tmp_addflag=' $pic_flag'
9251 ;;
9252 pgf77* | pgf90* | pgf95* | pgfortran*)
9253 # Portland Group f77 and f90 compilers
9254 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'
9255 tmp_addflag=' $pic_flag -Mnomain' ;;
9256 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9257 tmp_addflag=' -i_dynamic' ;;
9258 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9259 tmp_addflag=' -i_dynamic -nofor_main' ;;
9260 ifc* | ifort*) # Intel Fortran compiler
9261 tmp_addflag=' -nofor_main' ;;
9262 lf95*) # Lahey Fortran 8.1
9263 whole_archive_flag_spec=
9264 tmp_sharedflag='--shared' ;;
9265 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9266 tmp_sharedflag='-qmkshrobj'
9267 tmp_addflag= ;;
9268 nvcc*) # Cuda Compiler Driver 2.2
9269 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'
9270 compiler_needs_object=yes
9271 ;;
9272 esac
9273 case `$CC -V 2>&1 | sed 5q` in
9274 *Sun\ C*) # Sun C 5.9
9275 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'
9276 compiler_needs_object=yes
9277 tmp_sharedflag='-G' ;;
9278 *Sun\ F*) # Sun Fortran 8.3
9279 tmp_sharedflag='-G' ;;
9280 esac
9281 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9282
9283 if test "x$supports_anon_versioning" = xyes; then
9284 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9285 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9286 echo "local: *; };" >> $output_objdir/$libname.ver~
9287 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9288 fi
9289
9290 case $cc_basename in
9291 xlf* | bgf* | bgxlf* | mpixlf*)
9292 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9293 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9294 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9295 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9296 if test "x$supports_anon_versioning" = xyes; then
9297 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9298 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9299 echo "local: *; };" >> $output_objdir/$libname.ver~
9300 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9301 fi
9302 ;;
9303 esac
9304 else
9305 ld_shlibs=no
9306 fi
9307 ;;
9308
9309 netbsd*)
9310 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9311 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9312 wlarc=
9313 else
9314 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9315 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9316 fi
9317 ;;
9318
9319 solaris*)
9320 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9321 ld_shlibs=no
9322 cat <<_LT_EOF 1>&2
9323
9324 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9325 *** create shared libraries on Solaris systems. Therefore, libtool
9326 *** is disabling shared libraries support. We urge you to upgrade GNU
9327 *** binutils to release 2.9.1 or newer. Another option is to modify
9328 *** your PATH or compiler configuration so that the native linker is
9329 *** used, and then restart.
9330
9331 _LT_EOF
9332 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9333 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9334 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9335 else
9336 ld_shlibs=no
9337 fi
9338 ;;
9339
9340 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9341 case `$LD -v 2>&1` in
9342 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9343 ld_shlibs=no
9344 cat <<_LT_EOF 1>&2
9345
9346 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9347 *** reliably create shared libraries on SCO systems. Therefore, libtool
9348 *** is disabling shared libraries support. We urge you to upgrade GNU
9349 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9350 *** your PATH or compiler configuration so that the native linker is
9351 *** used, and then restart.
9352
9353 _LT_EOF
9354 ;;
9355 *)
9356 # For security reasons, it is highly recommended that you always
9357 # use absolute paths for naming shared libraries, and exclude the
9358 # DT_RUNPATH tag from executables and libraries. But doing so
9359 # requires that you compile everything twice, which is a pain.
9360 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9361 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9362 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9363 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9364 else
9365 ld_shlibs=no
9366 fi
9367 ;;
9368 esac
9369 ;;
9370
9371 sunos4*)
9372 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9373 wlarc=
9374 hardcode_direct=yes
9375 hardcode_shlibpath_var=no
9376 ;;
9377
9378 *)
9379 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9380 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9381 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9382 else
9383 ld_shlibs=no
9384 fi
9385 ;;
9386 esac
9387
9388 if test "$ld_shlibs" = no; then
9389 runpath_var=
9390 hardcode_libdir_flag_spec=
9391 export_dynamic_flag_spec=
9392 whole_archive_flag_spec=
9393 fi
9394 else
9395 # PORTME fill in a description of your system's linker (not GNU ld)
9396 case $host_os in
9397 aix3*)
9398 allow_undefined_flag=unsupported
9399 always_export_symbols=yes
9400 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'
9401 # Note: this linker hardcodes the directories in LIBPATH if there
9402 # are no directories specified by -L.
9403 hardcode_minus_L=yes
9404 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9405 # Neither direct hardcoding nor static linking is supported with a
9406 # broken collect2.
9407 hardcode_direct=unsupported
9408 fi
9409 ;;
9410
9411 aix[4-9]*)
9412 if test "$host_cpu" = ia64; then
9413 # On IA64, the linker does run time linking by default, so we don't
9414 # have to do anything special.
9415 aix_use_runtimelinking=no
9416 exp_sym_flag='-Bexport'
9417 no_entry_flag=""
9418 else
9419 # If we're using GNU nm, then we don't want the "-C" option.
9420 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9421 # Also, AIX nm treats weak defined symbols like other global
9422 # defined symbols, whereas GNU nm marks them as "W".
9423 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9424 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'
9425 else
9426 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'
9427 fi
9428 aix_use_runtimelinking=no
9429
9430 # Test if we are trying to use run time linking or normal
9431 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9432 # need to do runtime linking.
9433 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9434 for ld_flag in $LDFLAGS; do
9435 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9436 aix_use_runtimelinking=yes
9437 break
9438 fi
9439 done
9440 ;;
9441 esac
9442
9443 exp_sym_flag='-bexport'
9444 no_entry_flag='-bnoentry'
9445 fi
9446
9447 # When large executables or shared objects are built, AIX ld can
9448 # have problems creating the table of contents. If linking a library
9449 # or program results in "error TOC overflow" add -mminimal-toc to
9450 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9451 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9452
9453 archive_cmds=''
9454 hardcode_direct=yes
9455 hardcode_direct_absolute=yes
9456 hardcode_libdir_separator=':'
9457 link_all_deplibs=yes
9458 file_list_spec='${wl}-f,'
9459
9460 if test "$GCC" = yes; then
9461 case $host_os in aix4.[012]|aix4.[012].*)
9462 # We only want to do this on AIX 4.2 and lower, the check
9463 # below for broken collect2 doesn't work under 4.3+
9464 collect2name=`${CC} -print-prog-name=collect2`
9465 if test -f "$collect2name" &&
9466 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9467 then
9468 # We have reworked collect2
9469 :
9470 else
9471 # We have old collect2
9472 hardcode_direct=unsupported
9473 # It fails to find uninstalled libraries when the uninstalled
9474 # path is not listed in the libpath. Setting hardcode_minus_L
9475 # to unsupported forces relinking
9476 hardcode_minus_L=yes
9477 hardcode_libdir_flag_spec='-L$libdir'
9478 hardcode_libdir_separator=
9479 fi
9480 ;;
9481 esac
9482 shared_flag='-shared'
9483 if test "$aix_use_runtimelinking" = yes; then
9484 shared_flag="$shared_flag "'${wl}-G'
9485 fi
9486 else
9487 # not using gcc
9488 if test "$host_cpu" = ia64; then
9489 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9490 # chokes on -Wl,-G. The following line is correct:
9491 shared_flag='-G'
9492 else
9493 if test "$aix_use_runtimelinking" = yes; then
9494 shared_flag='${wl}-G'
9495 else
9496 shared_flag='${wl}-bM:SRE'
9497 fi
9498 fi
9499 fi
9500
9501 export_dynamic_flag_spec='${wl}-bexpall'
9502 # It seems that -bexpall does not export symbols beginning with
9503 # underscore (_), so it is better to generate a list of symbols to export.
9504 always_export_symbols=yes
9505 if test "$aix_use_runtimelinking" = yes; then
9506 # Warning - without using the other runtime loading flags (-brtl),
9507 # -berok will link without error, but may produce a broken library.
9508 allow_undefined_flag='-berok'
9509 # Determine the default libpath from the value encoded in an
9510 # empty executable.
9511 if test "${lt_cv_aix_libpath+set}" = set; then
9512 aix_libpath=$lt_cv_aix_libpath
9513 else
9514 if ${lt_cv_aix_libpath_+:} false; then :
9515 $as_echo_n "(cached) " >&6
9516 else
9517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9518 /* end confdefs.h. */
9519
9520 int
9521 main ()
9522 {
9523
9524 ;
9525 return 0;
9526 }
9527 _ACEOF
9528 if ac_fn_c_try_link "$LINENO"; then :
9529
9530 lt_aix_libpath_sed='
9531 /Import File Strings/,/^$/ {
9532 /^0/ {
9533 s/^0 *\([^ ]*\) *$/\1/
9534 p
9535 }
9536 }'
9537 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9538 # Check for a 64-bit object if we didn't find anything.
9539 if test -z "$lt_cv_aix_libpath_"; then
9540 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9541 fi
9542 fi
9543 rm -f core conftest.err conftest.$ac_objext \
9544 conftest$ac_exeext conftest.$ac_ext
9545 if test -z "$lt_cv_aix_libpath_"; then
9546 lt_cv_aix_libpath_="/usr/lib:/lib"
9547 fi
9548
9549 fi
9550
9551 aix_libpath=$lt_cv_aix_libpath_
9552 fi
9553
9554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9555 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"
9556 else
9557 if test "$host_cpu" = ia64; then
9558 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9559 allow_undefined_flag="-z nodefs"
9560 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"
9561 else
9562 # Determine the default libpath from the value encoded in an
9563 # empty executable.
9564 if test "${lt_cv_aix_libpath+set}" = set; then
9565 aix_libpath=$lt_cv_aix_libpath
9566 else
9567 if ${lt_cv_aix_libpath_+:} false; then :
9568 $as_echo_n "(cached) " >&6
9569 else
9570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9571 /* end confdefs.h. */
9572
9573 int
9574 main ()
9575 {
9576
9577 ;
9578 return 0;
9579 }
9580 _ACEOF
9581 if ac_fn_c_try_link "$LINENO"; then :
9582
9583 lt_aix_libpath_sed='
9584 /Import File Strings/,/^$/ {
9585 /^0/ {
9586 s/^0 *\([^ ]*\) *$/\1/
9587 p
9588 }
9589 }'
9590 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9591 # Check for a 64-bit object if we didn't find anything.
9592 if test -z "$lt_cv_aix_libpath_"; then
9593 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9594 fi
9595 fi
9596 rm -f core conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9598 if test -z "$lt_cv_aix_libpath_"; then
9599 lt_cv_aix_libpath_="/usr/lib:/lib"
9600 fi
9601
9602 fi
9603
9604 aix_libpath=$lt_cv_aix_libpath_
9605 fi
9606
9607 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9608 # Warning - without using the other run time loading flags,
9609 # -berok will link without error, but may produce a broken library.
9610 no_undefined_flag=' ${wl}-bernotok'
9611 allow_undefined_flag=' ${wl}-berok'
9612 if test "$with_gnu_ld" = yes; then
9613 # We only use this code for GNU lds that support --whole-archive.
9614 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9615 else
9616 # Exported symbols can be pulled into shared objects from archives
9617 whole_archive_flag_spec='$convenience'
9618 fi
9619 archive_cmds_need_lc=yes
9620 # This is similar to how AIX traditionally builds its shared libraries.
9621 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'
9622 fi
9623 fi
9624 ;;
9625
9626 amigaos*)
9627 case $host_cpu in
9628 powerpc)
9629 # see comment about AmigaOS4 .so support
9630 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9631 archive_expsym_cmds=''
9632 ;;
9633 m68k)
9634 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)'
9635 hardcode_libdir_flag_spec='-L$libdir'
9636 hardcode_minus_L=yes
9637 ;;
9638 esac
9639 ;;
9640
9641 bsdi[45]*)
9642 export_dynamic_flag_spec=-rdynamic
9643 ;;
9644
9645 cygwin* | mingw* | pw32* | cegcc*)
9646 # When not using gcc, we currently assume that we are using
9647 # Microsoft Visual C++.
9648 # hardcode_libdir_flag_spec is actually meaningless, as there is
9649 # no search path for DLLs.
9650 case $cc_basename in
9651 cl*)
9652 # Native MSVC
9653 hardcode_libdir_flag_spec=' '
9654 allow_undefined_flag=unsupported
9655 always_export_symbols=yes
9656 file_list_spec='@'
9657 # Tell ltmain to make .lib files, not .a files.
9658 libext=lib
9659 # Tell ltmain to make .dll files, not .so files.
9660 shrext_cmds=".dll"
9661 # FIXME: Setting linknames here is a bad hack.
9662 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9663 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9664 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9665 else
9666 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9667 fi~
9668 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" //link //DLL //IMPLIB:"$tool_output_objdir$libname.lib"~
9669 linknames='
9670 # The linker will not automatically build a static lib if we build a DLL.
9671 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9672 enable_shared_with_static_runtimes=yes
9673 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9674 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9675 # Don't use ranlib
9676 old_postinstall_cmds='chmod 644 $oldlib'
9677 postlink_cmds='lt_outputfile="@OUTPUT@"~
9678 lt_tool_outputfile="@TOOL_OUTPUT@"~
9679 case $lt_outputfile in
9680 *.exe|*.EXE) ;;
9681 *)
9682 lt_outputfile="$lt_outputfile.exe"
9683 lt_tool_outputfile="$lt_tool_outputfile.exe"
9684 ;;
9685 esac~
9686 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9687 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9688 $RM "$lt_outputfile.manifest";
9689 fi'
9690 ;;
9691 *)
9692 # Assume MSVC wrapper
9693 hardcode_libdir_flag_spec=' '
9694 allow_undefined_flag=unsupported
9695 # Tell ltmain to make .lib files, not .a files.
9696 libext=lib
9697 # Tell ltmain to make .dll files, not .so files.
9698 shrext_cmds=".dll"
9699 # FIXME: Setting linknames here is a bad hack.
9700 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9701 # The linker will automatically build a .lib file if we build a DLL.
9702 old_archive_from_new_cmds='true'
9703 # FIXME: Should let the user specify the lib program.
9704 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9705 enable_shared_with_static_runtimes=yes
9706 ;;
9707 esac
9708 ;;
9709
9710 darwin* | rhapsody*)
9711
9712
9713 archive_cmds_need_lc=no
9714 hardcode_direct=no
9715 hardcode_automatic=yes
9716 hardcode_shlibpath_var=unsupported
9717 if test "$lt_cv_ld_force_load" = "yes"; then
9718 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\"`'
9719
9720 else
9721 whole_archive_flag_spec=''
9722 fi
9723 link_all_deplibs=yes
9724 allow_undefined_flag="$_lt_dar_allow_undefined"
9725 case $cc_basename in
9726 ifort*) _lt_dar_can_shared=yes ;;
9727 *) _lt_dar_can_shared=$GCC ;;
9728 esac
9729 if test "$_lt_dar_can_shared" = "yes"; then
9730 output_verbose_link_cmd=func_echo_all
9731 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9732 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9733 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}"
9734 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}"
9735
9736 else
9737 ld_shlibs=no
9738 fi
9739
9740 ;;
9741
9742 dgux*)
9743 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9744 hardcode_libdir_flag_spec='-L$libdir'
9745 hardcode_shlibpath_var=no
9746 ;;
9747
9748 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9749 # support. Future versions do this automatically, but an explicit c++rt0.o
9750 # does not break anything, and helps significantly (at the cost of a little
9751 # extra space).
9752 freebsd2.2*)
9753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9754 hardcode_libdir_flag_spec='-R$libdir'
9755 hardcode_direct=yes
9756 hardcode_shlibpath_var=no
9757 ;;
9758
9759 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9760 freebsd2.*)
9761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9762 hardcode_direct=yes
9763 hardcode_minus_L=yes
9764 hardcode_shlibpath_var=no
9765 ;;
9766
9767 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9768 freebsd* | dragonfly*)
9769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9770 hardcode_libdir_flag_spec='-R$libdir'
9771 hardcode_direct=yes
9772 hardcode_shlibpath_var=no
9773 ;;
9774
9775 hpux9*)
9776 if test "$GCC" = yes; then
9777 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'
9778 else
9779 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'
9780 fi
9781 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9782 hardcode_libdir_separator=:
9783 hardcode_direct=yes
9784
9785 # hardcode_minus_L: Not really in the search PATH,
9786 # but as the default location of the library.
9787 hardcode_minus_L=yes
9788 export_dynamic_flag_spec='${wl}-E'
9789 ;;
9790
9791 hpux10*)
9792 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9793 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9794 else
9795 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9796 fi
9797 if test "$with_gnu_ld" = no; then
9798 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9799 hardcode_libdir_separator=:
9800 hardcode_direct=yes
9801 hardcode_direct_absolute=yes
9802 export_dynamic_flag_spec='${wl}-E'
9803 # hardcode_minus_L: Not really in the search PATH,
9804 # but as the default location of the library.
9805 hardcode_minus_L=yes
9806 fi
9807 ;;
9808
9809 hpux11*)
9810 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9811 case $host_cpu in
9812 hppa*64*)
9813 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9814 ;;
9815 ia64*)
9816 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9817 ;;
9818 *)
9819 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9820 ;;
9821 esac
9822 else
9823 case $host_cpu in
9824 hppa*64*)
9825 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9826 ;;
9827 ia64*)
9828 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9829 ;;
9830 *)
9831
9832 # Older versions of the 11.00 compiler do not understand -b yet
9833 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9835 $as_echo_n "checking if $CC understands -b... " >&6; }
9836 if ${lt_cv_prog_compiler__b+:} false; then :
9837 $as_echo_n "(cached) " >&6
9838 else
9839 lt_cv_prog_compiler__b=no
9840 save_LDFLAGS="$LDFLAGS"
9841 LDFLAGS="$LDFLAGS -b"
9842 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9843 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9844 # The linker can only warn and ignore the option if not recognized
9845 # So say no if there are warnings
9846 if test -s conftest.err; then
9847 # Append any errors to the config.log.
9848 cat conftest.err 1>&5
9849 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9850 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9851 if diff conftest.exp conftest.er2 >/dev/null; then
9852 lt_cv_prog_compiler__b=yes
9853 fi
9854 else
9855 lt_cv_prog_compiler__b=yes
9856 fi
9857 fi
9858 $RM -r conftest*
9859 LDFLAGS="$save_LDFLAGS"
9860
9861 fi
9862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9863 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9864
9865 if test x"$lt_cv_prog_compiler__b" = xyes; then
9866 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9867 else
9868 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9869 fi
9870
9871 ;;
9872 esac
9873 fi
9874 if test "$with_gnu_ld" = no; then
9875 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9876 hardcode_libdir_separator=:
9877
9878 case $host_cpu in
9879 hppa*64*|ia64*)
9880 hardcode_direct=no
9881 hardcode_shlibpath_var=no
9882 ;;
9883 *)
9884 hardcode_direct=yes
9885 hardcode_direct_absolute=yes
9886 export_dynamic_flag_spec='${wl}-E'
9887
9888 # hardcode_minus_L: Not really in the search PATH,
9889 # but as the default location of the library.
9890 hardcode_minus_L=yes
9891 ;;
9892 esac
9893 fi
9894 ;;
9895
9896 irix5* | irix6* | nonstopux*)
9897 if test "$GCC" = yes; then
9898 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'
9899 # Try to use the -exported_symbol ld option, if it does not
9900 # work, assume that -exports_file does not work either and
9901 # implicitly export all symbols.
9902 # This should be the same for all languages, so no per-tag cache variable.
9903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9904 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9905 if ${lt_cv_irix_exported_symbol+:} false; then :
9906 $as_echo_n "(cached) " >&6
9907 else
9908 save_LDFLAGS="$LDFLAGS"
9909 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9911 /* end confdefs.h. */
9912 int foo (void) { return 0; }
9913 _ACEOF
9914 if ac_fn_c_try_link "$LINENO"; then :
9915 lt_cv_irix_exported_symbol=yes
9916 else
9917 lt_cv_irix_exported_symbol=no
9918 fi
9919 rm -f core conftest.err conftest.$ac_objext \
9920 conftest$ac_exeext conftest.$ac_ext
9921 LDFLAGS="$save_LDFLAGS"
9922 fi
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9924 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9925 if test "$lt_cv_irix_exported_symbol" = yes; then
9926 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'
9927 fi
9928 else
9929 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'
9930 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'
9931 fi
9932 archive_cmds_need_lc='no'
9933 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9934 hardcode_libdir_separator=:
9935 inherit_rpath=yes
9936 link_all_deplibs=yes
9937 ;;
9938
9939 netbsd*)
9940 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9941 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9942 else
9943 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9944 fi
9945 hardcode_libdir_flag_spec='-R$libdir'
9946 hardcode_direct=yes
9947 hardcode_shlibpath_var=no
9948 ;;
9949
9950 newsos6)
9951 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9952 hardcode_direct=yes
9953 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9954 hardcode_libdir_separator=:
9955 hardcode_shlibpath_var=no
9956 ;;
9957
9958 *nto* | *qnx*)
9959 ;;
9960
9961 openbsd*)
9962 if test -f /usr/libexec/ld.so; then
9963 hardcode_direct=yes
9964 hardcode_shlibpath_var=no
9965 hardcode_direct_absolute=yes
9966 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9967 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9968 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9970 export_dynamic_flag_spec='${wl}-E'
9971 else
9972 case $host_os in
9973 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9974 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9975 hardcode_libdir_flag_spec='-R$libdir'
9976 ;;
9977 *)
9978 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9980 ;;
9981 esac
9982 fi
9983 else
9984 ld_shlibs=no
9985 fi
9986 ;;
9987
9988 os2*)
9989 hardcode_libdir_flag_spec='-L$libdir'
9990 hardcode_minus_L=yes
9991 allow_undefined_flag=unsupported
9992 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'
9993 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9994 ;;
9995
9996 osf3*)
9997 if test "$GCC" = yes; then
9998 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9999 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'
10000 else
10001 allow_undefined_flag=' -expect_unresolved \*'
10002 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'
10003 fi
10004 archive_cmds_need_lc='no'
10005 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10006 hardcode_libdir_separator=:
10007 ;;
10008
10009 osf4* | osf5*) # as osf3* with the addition of -msym flag
10010 if test "$GCC" = yes; then
10011 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10012 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'
10013 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10014 else
10015 allow_undefined_flag=' -expect_unresolved \*'
10016 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'
10017 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~
10018 $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'
10019
10020 # Both c and cxx compiler support -rpath directly
10021 hardcode_libdir_flag_spec='-rpath $libdir'
10022 fi
10023 archive_cmds_need_lc='no'
10024 hardcode_libdir_separator=:
10025 ;;
10026
10027 solaris*)
10028 no_undefined_flag=' -z defs'
10029 if test "$GCC" = yes; then
10030 wlarc='${wl}'
10031 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10032 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10033 $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'
10034 else
10035 case `$CC -V 2>&1` in
10036 *"Compilers 5.0"*)
10037 wlarc=''
10038 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10039 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10040 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10041 ;;
10042 *)
10043 wlarc='${wl}'
10044 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10045 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10046 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10047 ;;
10048 esac
10049 fi
10050 hardcode_libdir_flag_spec='-R$libdir'
10051 hardcode_shlibpath_var=no
10052 case $host_os in
10053 solaris2.[0-5] | solaris2.[0-5].*) ;;
10054 *)
10055 # The compiler driver will combine and reorder linker options,
10056 # but understands `-z linker_flag'. GCC discards it without `$wl',
10057 # but is careful enough not to reorder.
10058 # Supported since Solaris 2.6 (maybe 2.5.1?)
10059 if test "$GCC" = yes; then
10060 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10061 else
10062 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10063 fi
10064 ;;
10065 esac
10066 link_all_deplibs=yes
10067 ;;
10068
10069 sunos4*)
10070 if test "x$host_vendor" = xsequent; then
10071 # Use $CC to link under sequent, because it throws in some extra .o
10072 # files that make .init and .fini sections work.
10073 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10074 else
10075 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10076 fi
10077 hardcode_libdir_flag_spec='-L$libdir'
10078 hardcode_direct=yes
10079 hardcode_minus_L=yes
10080 hardcode_shlibpath_var=no
10081 ;;
10082
10083 sysv4)
10084 case $host_vendor in
10085 sni)
10086 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10087 hardcode_direct=yes # is this really true???
10088 ;;
10089 siemens)
10090 ## LD is ld it makes a PLAMLIB
10091 ## CC just makes a GrossModule.
10092 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10093 reload_cmds='$CC -r -o $output$reload_objs'
10094 hardcode_direct=no
10095 ;;
10096 motorola)
10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10098 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10099 ;;
10100 esac
10101 runpath_var='LD_RUN_PATH'
10102 hardcode_shlibpath_var=no
10103 ;;
10104
10105 sysv4.3*)
10106 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10107 hardcode_shlibpath_var=no
10108 export_dynamic_flag_spec='-Bexport'
10109 ;;
10110
10111 sysv4*MP*)
10112 if test -d /usr/nec; then
10113 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10114 hardcode_shlibpath_var=no
10115 runpath_var=LD_RUN_PATH
10116 hardcode_runpath_var=yes
10117 ld_shlibs=yes
10118 fi
10119 ;;
10120
10121 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10122 no_undefined_flag='${wl}-z,text'
10123 archive_cmds_need_lc=no
10124 hardcode_shlibpath_var=no
10125 runpath_var='LD_RUN_PATH'
10126
10127 if test "$GCC" = yes; then
10128 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10129 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10130 else
10131 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10132 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10133 fi
10134 ;;
10135
10136 sysv5* | sco3.2v5* | sco5v6*)
10137 # Note: We can NOT use -z defs as we might desire, because we do not
10138 # link with -lc, and that would cause any symbols used from libc to
10139 # always be unresolved, which means just about no library would
10140 # ever link correctly. If we're not using GNU ld we use -z text
10141 # though, which does catch some bad symbols but isn't as heavy-handed
10142 # as -z defs.
10143 no_undefined_flag='${wl}-z,text'
10144 allow_undefined_flag='${wl}-z,nodefs'
10145 archive_cmds_need_lc=no
10146 hardcode_shlibpath_var=no
10147 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10148 hardcode_libdir_separator=':'
10149 link_all_deplibs=yes
10150 export_dynamic_flag_spec='${wl}-Bexport'
10151 runpath_var='LD_RUN_PATH'
10152
10153 if test "$GCC" = yes; then
10154 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10156 else
10157 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10159 fi
10160 ;;
10161
10162 uts4*)
10163 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10164 hardcode_libdir_flag_spec='-L$libdir'
10165 hardcode_shlibpath_var=no
10166 ;;
10167
10168 *)
10169 ld_shlibs=no
10170 ;;
10171 esac
10172
10173 if test x$host_vendor = xsni; then
10174 case $host in
10175 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10176 export_dynamic_flag_spec='${wl}-Blargedynsym'
10177 ;;
10178 esac
10179 fi
10180 fi
10181
10182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10183 $as_echo "$ld_shlibs" >&6; }
10184 test "$ld_shlibs" = no && can_build_shared=no
10185
10186 with_gnu_ld=$with_gnu_ld
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202 #
10203 # Do we need to explicitly link libc?
10204 #
10205 case "x$archive_cmds_need_lc" in
10206 x|xyes)
10207 # Assume -lc should be added
10208 archive_cmds_need_lc=yes
10209
10210 if test "$enable_shared" = yes && test "$GCC" = yes; then
10211 case $archive_cmds in
10212 *'~'*)
10213 # FIXME: we may have to deal with multi-command sequences.
10214 ;;
10215 '$CC '*)
10216 # Test whether the compiler implicitly links with -lc since on some
10217 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10218 # to ld, don't add -lc before -lgcc.
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10220 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10221 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10222 $as_echo_n "(cached) " >&6
10223 else
10224 $RM conftest*
10225 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10226
10227 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10228 (eval $ac_compile) 2>&5
10229 ac_status=$?
10230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10231 test $ac_status = 0; } 2>conftest.err; then
10232 soname=conftest
10233 lib=conftest
10234 libobjs=conftest.$ac_objext
10235 deplibs=
10236 wl=$lt_prog_compiler_wl
10237 pic_flag=$lt_prog_compiler_pic
10238 compiler_flags=-v
10239 linker_flags=-v
10240 verstring=
10241 output_objdir=.
10242 libname=conftest
10243 lt_save_allow_undefined_flag=$allow_undefined_flag
10244 allow_undefined_flag=
10245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10246 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10247 ac_status=$?
10248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10249 test $ac_status = 0; }
10250 then
10251 lt_cv_archive_cmds_need_lc=no
10252 else
10253 lt_cv_archive_cmds_need_lc=yes
10254 fi
10255 allow_undefined_flag=$lt_save_allow_undefined_flag
10256 else
10257 cat conftest.err 1>&5
10258 fi
10259 $RM conftest*
10260
10261 fi
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10263 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10264 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10265 ;;
10266 esac
10267 fi
10268 ;;
10269 esac
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349
10350
10351
10352
10353
10354
10355
10356
10357
10358
10359
10360
10361
10362
10363
10364
10365
10366
10367
10368
10369
10370
10371
10372
10373
10374
10375
10376
10377
10378
10379
10380
10381
10382
10383
10384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411
10412
10413
10414
10415
10416
10417
10418
10419
10420
10421
10422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10423 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10424
10425 if test "$GCC" = yes; then
10426 case $host_os in
10427 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10428 *) lt_awk_arg="/^libraries:/" ;;
10429 esac
10430 case $host_os in
10431 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10432 *) lt_sed_strip_eq="s,=/,/,g" ;;
10433 esac
10434 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10435 case $lt_search_path_spec in
10436 *\;*)
10437 # if the path contains ";" then we assume it to be the separator
10438 # otherwise default to the standard path separator (i.e. ":") - it is
10439 # assumed that no part of a normal pathname contains ";" but that should
10440 # okay in the real world where ";" in dirpaths is itself problematic.
10441 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10442 ;;
10443 *)
10444 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10445 ;;
10446 esac
10447 # Ok, now we have the path, separated by spaces, we can step through it
10448 # and add multilib dir if necessary.
10449 lt_tmp_lt_search_path_spec=
10450 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10451 for lt_sys_path in $lt_search_path_spec; do
10452 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10453 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10454 else
10455 test -d "$lt_sys_path" && \
10456 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10457 fi
10458 done
10459 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10460 BEGIN {RS=" "; FS="/|\n";} {
10461 lt_foo="";
10462 lt_count=0;
10463 for (lt_i = NF; lt_i > 0; lt_i--) {
10464 if ($lt_i != "" && $lt_i != ".") {
10465 if ($lt_i == "..") {
10466 lt_count++;
10467 } else {
10468 if (lt_count == 0) {
10469 lt_foo="/" $lt_i lt_foo;
10470 } else {
10471 lt_count--;
10472 }
10473 }
10474 }
10475 }
10476 if (lt_foo != "") { lt_freq[lt_foo]++; }
10477 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10478 }'`
10479 # AWK program above erroneously prepends '/' to C:/dos/paths
10480 # for these hosts.
10481 case $host_os in
10482 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10483 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10484 esac
10485 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10486 else
10487 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10488 fi
10489 library_names_spec=
10490 libname_spec='lib$name'
10491 soname_spec=
10492 shrext_cmds=".so"
10493 postinstall_cmds=
10494 postuninstall_cmds=
10495 finish_cmds=
10496 finish_eval=
10497 shlibpath_var=
10498 shlibpath_overrides_runpath=unknown
10499 version_type=none
10500 dynamic_linker="$host_os ld.so"
10501 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10502 need_lib_prefix=unknown
10503 hardcode_into_libs=no
10504
10505 # when you set need_version to no, make sure it does not cause -set_version
10506 # flags to be left without arguments
10507 need_version=unknown
10508
10509 case $host_os in
10510 aix3*)
10511 version_type=linux # correct to gnu/linux during the next big refactor
10512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10513 shlibpath_var=LIBPATH
10514
10515 # AIX 3 has no versioning support, so we append a major version to the name.
10516 soname_spec='${libname}${release}${shared_ext}$major'
10517 ;;
10518
10519 aix[4-9]*)
10520 version_type=linux # correct to gnu/linux during the next big refactor
10521 need_lib_prefix=no
10522 need_version=no
10523 hardcode_into_libs=yes
10524 if test "$host_cpu" = ia64; then
10525 # AIX 5 supports IA64
10526 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10527 shlibpath_var=LD_LIBRARY_PATH
10528 else
10529 # With GCC up to 2.95.x, collect2 would create an import file
10530 # for dependence libraries. The import file would start with
10531 # the line `#! .'. This would cause the generated library to
10532 # depend on `.', always an invalid library. This was fixed in
10533 # development snapshots of GCC prior to 3.0.
10534 case $host_os in
10535 aix4 | aix4.[01] | aix4.[01].*)
10536 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10537 echo ' yes '
10538 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10539 :
10540 else
10541 can_build_shared=no
10542 fi
10543 ;;
10544 esac
10545 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10546 # soname into executable. Probably we can add versioning support to
10547 # collect2, so additional links can be useful in future.
10548 if test "$aix_use_runtimelinking" = yes; then
10549 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10550 # instead of lib<name>.a to let people know that these are not
10551 # typical AIX shared libraries.
10552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10553 else
10554 # We preserve .a as extension for shared libraries through AIX4.2
10555 # and later when we are not doing run time linking.
10556 library_names_spec='${libname}${release}.a $libname.a'
10557 soname_spec='${libname}${release}${shared_ext}$major'
10558 fi
10559 shlibpath_var=LIBPATH
10560 fi
10561 ;;
10562
10563 amigaos*)
10564 case $host_cpu in
10565 powerpc)
10566 # Since July 2007 AmigaOS4 officially supports .so libraries.
10567 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10569 ;;
10570 m68k)
10571 library_names_spec='$libname.ixlibrary $libname.a'
10572 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10573 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'
10574 ;;
10575 esac
10576 ;;
10577
10578 beos*)
10579 library_names_spec='${libname}${shared_ext}'
10580 dynamic_linker="$host_os ld.so"
10581 shlibpath_var=LIBRARY_PATH
10582 ;;
10583
10584 bsdi[45]*)
10585 version_type=linux # correct to gnu/linux during the next big refactor
10586 need_version=no
10587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10588 soname_spec='${libname}${release}${shared_ext}$major'
10589 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10590 shlibpath_var=LD_LIBRARY_PATH
10591 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10592 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10593 # the default ld.so.conf also contains /usr/contrib/lib and
10594 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10595 # libtool to hard-code these into programs
10596 ;;
10597
10598 cygwin* | mingw* | pw32* | cegcc*)
10599 version_type=windows
10600 shrext_cmds=".dll"
10601 need_version=no
10602 need_lib_prefix=no
10603
10604 case $GCC,$cc_basename in
10605 yes,*)
10606 # gcc
10607 library_names_spec='$libname.dll.a'
10608 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10609 postinstall_cmds='base_file=`basename \${file}`~
10610 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10611 dldir=$destdir/`dirname \$dlpath`~
10612 test -d \$dldir || mkdir -p \$dldir~
10613 $install_prog $dir/$dlname \$dldir/$dlname~
10614 chmod a+x \$dldir/$dlname~
10615 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10616 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10617 fi'
10618 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10619 dlpath=$dir/\$dldll~
10620 $RM \$dlpath'
10621 shlibpath_overrides_runpath=yes
10622
10623 case $host_os in
10624 cygwin*)
10625 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10626 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10627
10628 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10629 ;;
10630 mingw* | cegcc*)
10631 # MinGW DLLs use traditional 'lib' prefix
10632 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10633 ;;
10634 pw32*)
10635 # pw32 DLLs use 'pw' prefix rather than 'lib'
10636 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10637 ;;
10638 esac
10639 dynamic_linker='Win32 ld.exe'
10640 ;;
10641
10642 *,cl* | *,ifort*)
10643 # Native MSVC
10644 libname_spec='$name'
10645 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10646 library_names_spec='${libname}.lib'
10647
10648 case $build_os in
10649 mingw*)
10650 sys_lib_search_path_spec=
10651 lt_save_ifs=$IFS
10652 IFS=';'
10653 for lt_path in $LIB
10654 do
10655 IFS=$lt_save_ifs
10656 # Let DOS variable expansion print the short 8.3 style file name.
10657 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10658 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10659 done
10660 IFS=$lt_save_ifs
10661 # Convert to MSYS style.
10662 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10663 ;;
10664 cygwin*)
10665 # Convert to unix form, then to dos form, then back to unix form
10666 # but this time dos style (no spaces!) so that the unix form looks
10667 # like /cygdrive/c/PROGRA~1:/cygdr...
10668 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10669 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10670 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10671 ;;
10672 *)
10673 sys_lib_search_path_spec="$LIB"
10674 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10675 # It is most probably a Windows format PATH.
10676 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10677 else
10678 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10679 fi
10680 # FIXME: find the short name or the path components, as spaces are
10681 # common. (e.g. "Program Files" -> "PROGRA~1")
10682 ;;
10683 esac
10684
10685 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10686 postinstall_cmds='base_file=`basename \${file}`~
10687 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10688 dldir=$destdir/`dirname \$dlpath`~
10689 test -d \$dldir || mkdir -p \$dldir~
10690 $install_prog $dir/$dlname \$dldir/$dlname'
10691 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10692 dlpath=$dir/\$dldll~
10693 $RM \$dlpath'
10694 shlibpath_overrides_runpath=yes
10695 dynamic_linker='Win32 link.exe'
10696 ;;
10697
10698 *)
10699 # Assume MSVC wrapper
10700 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10701 dynamic_linker='Win32 ld.exe'
10702 ;;
10703 esac
10704 # FIXME: first we should search . and the directory the executable is in
10705 shlibpath_var=PATH
10706 ;;
10707
10708 darwin* | rhapsody*)
10709 dynamic_linker="$host_os dyld"
10710 version_type=darwin
10711 need_lib_prefix=no
10712 need_version=no
10713 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10714 soname_spec='${libname}${release}${major}$shared_ext'
10715 shlibpath_overrides_runpath=yes
10716 shlibpath_var=DYLD_LIBRARY_PATH
10717 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10718
10719 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10720 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10721 ;;
10722
10723 dgux*)
10724 version_type=linux # correct to gnu/linux during the next big refactor
10725 need_lib_prefix=no
10726 need_version=no
10727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10728 soname_spec='${libname}${release}${shared_ext}$major'
10729 shlibpath_var=LD_LIBRARY_PATH
10730 ;;
10731
10732 freebsd* | dragonfly*)
10733 # DragonFly does not have aout. When/if they implement a new
10734 # versioning mechanism, adjust this.
10735 if test -x /usr/bin/objformat; then
10736 objformat=`/usr/bin/objformat`
10737 else
10738 case $host_os in
10739 freebsd[23].*) objformat=aout ;;
10740 *) objformat=elf ;;
10741 esac
10742 fi
10743 version_type=freebsd-$objformat
10744 case $version_type in
10745 freebsd-elf*)
10746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10747 need_version=no
10748 need_lib_prefix=no
10749 ;;
10750 freebsd-*)
10751 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10752 need_version=yes
10753 ;;
10754 esac
10755 shlibpath_var=LD_LIBRARY_PATH
10756 case $host_os in
10757 freebsd2.*)
10758 shlibpath_overrides_runpath=yes
10759 ;;
10760 freebsd3.[01]* | freebsdelf3.[01]*)
10761 shlibpath_overrides_runpath=yes
10762 hardcode_into_libs=yes
10763 ;;
10764 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10765 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10766 shlibpath_overrides_runpath=no
10767 hardcode_into_libs=yes
10768 ;;
10769 *) # from 4.6 on, and DragonFly
10770 shlibpath_overrides_runpath=yes
10771 hardcode_into_libs=yes
10772 ;;
10773 esac
10774 ;;
10775
10776 gnu*)
10777 version_type=linux # correct to gnu/linux during the next big refactor
10778 need_lib_prefix=no
10779 need_version=no
10780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10781 soname_spec='${libname}${release}${shared_ext}$major'
10782 shlibpath_var=LD_LIBRARY_PATH
10783 shlibpath_overrides_runpath=no
10784 hardcode_into_libs=yes
10785 ;;
10786
10787 haiku*)
10788 version_type=linux # correct to gnu/linux during the next big refactor
10789 need_lib_prefix=no
10790 need_version=no
10791 dynamic_linker="$host_os runtime_loader"
10792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10793 soname_spec='${libname}${release}${shared_ext}$major'
10794 shlibpath_var=LIBRARY_PATH
10795 shlibpath_overrides_runpath=yes
10796 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10797 hardcode_into_libs=yes
10798 ;;
10799
10800 hpux9* | hpux10* | hpux11*)
10801 # Give a soname corresponding to the major version so that dld.sl refuses to
10802 # link against other versions.
10803 version_type=sunos
10804 need_lib_prefix=no
10805 need_version=no
10806 case $host_cpu in
10807 ia64*)
10808 shrext_cmds='.so'
10809 hardcode_into_libs=yes
10810 dynamic_linker="$host_os dld.so"
10811 shlibpath_var=LD_LIBRARY_PATH
10812 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10814 soname_spec='${libname}${release}${shared_ext}$major'
10815 if test "X$HPUX_IA64_MODE" = X32; then
10816 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10817 else
10818 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10819 fi
10820 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10821 ;;
10822 hppa*64*)
10823 shrext_cmds='.sl'
10824 hardcode_into_libs=yes
10825 dynamic_linker="$host_os dld.sl"
10826 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10827 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10829 soname_spec='${libname}${release}${shared_ext}$major'
10830 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10831 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10832 ;;
10833 *)
10834 shrext_cmds='.sl'
10835 dynamic_linker="$host_os dld.sl"
10836 shlibpath_var=SHLIB_PATH
10837 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10838 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10839 soname_spec='${libname}${release}${shared_ext}$major'
10840 ;;
10841 esac
10842 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10843 postinstall_cmds='chmod 555 $lib'
10844 # or fails outright, so override atomically:
10845 install_override_mode=555
10846 ;;
10847
10848 interix[3-9]*)
10849 version_type=linux # correct to gnu/linux during the next big refactor
10850 need_lib_prefix=no
10851 need_version=no
10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10853 soname_spec='${libname}${release}${shared_ext}$major'
10854 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10855 shlibpath_var=LD_LIBRARY_PATH
10856 shlibpath_overrides_runpath=no
10857 hardcode_into_libs=yes
10858 ;;
10859
10860 irix5* | irix6* | nonstopux*)
10861 case $host_os in
10862 nonstopux*) version_type=nonstopux ;;
10863 *)
10864 if test "$lt_cv_prog_gnu_ld" = yes; then
10865 version_type=linux # correct to gnu/linux during the next big refactor
10866 else
10867 version_type=irix
10868 fi ;;
10869 esac
10870 need_lib_prefix=no
10871 need_version=no
10872 soname_spec='${libname}${release}${shared_ext}$major'
10873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10874 case $host_os in
10875 irix5* | nonstopux*)
10876 libsuff= shlibsuff=
10877 ;;
10878 *)
10879 case $LD in # libtool.m4 will add one of these switches to LD
10880 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10881 libsuff= shlibsuff= libmagic=32-bit;;
10882 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10883 libsuff=32 shlibsuff=N32 libmagic=N32;;
10884 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10885 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10886 *) libsuff= shlibsuff= libmagic=never-match;;
10887 esac
10888 ;;
10889 esac
10890 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10891 shlibpath_overrides_runpath=no
10892 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10893 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10894 hardcode_into_libs=yes
10895 ;;
10896
10897 # No shared lib support for Linux oldld, aout, or coff.
10898 linux*oldld* | linux*aout* | linux*coff*)
10899 dynamic_linker=no
10900 ;;
10901
10902 # This must be glibc/ELF.
10903 linux* | k*bsd*-gnu | kopensolaris*-gnu)
10904 version_type=linux # correct to gnu/linux during the next big refactor
10905 need_lib_prefix=no
10906 need_version=no
10907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10908 soname_spec='${libname}${release}${shared_ext}$major'
10909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10910 shlibpath_var=LD_LIBRARY_PATH
10911 shlibpath_overrides_runpath=no
10912
10913 # Some binutils ld are patched to set DT_RUNPATH
10914 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10915 $as_echo_n "(cached) " >&6
10916 else
10917 lt_cv_shlibpath_overrides_runpath=no
10918 save_LDFLAGS=$LDFLAGS
10919 save_libdir=$libdir
10920 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10921 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10923 /* end confdefs.h. */
10924
10925 int
10926 main ()
10927 {
10928
10929 ;
10930 return 0;
10931 }
10932 _ACEOF
10933 if ac_fn_c_try_link "$LINENO"; then :
10934 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10935 lt_cv_shlibpath_overrides_runpath=yes
10936 fi
10937 fi
10938 rm -f core conftest.err conftest.$ac_objext \
10939 conftest$ac_exeext conftest.$ac_ext
10940 LDFLAGS=$save_LDFLAGS
10941 libdir=$save_libdir
10942
10943 fi
10944
10945 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10946
10947 # This implies no fast_install, which is unacceptable.
10948 # Some rework will be needed to allow for fast_install
10949 # before this can be enabled.
10950 hardcode_into_libs=yes
10951
10952 # Append ld.so.conf contents to the search path
10953 if test -f /etc/ld.so.conf; then
10954 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' ' '`
10955 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10956 fi
10957
10958 # We used to test for /lib/ld.so.1 and disable shared libraries on
10959 # powerpc, because MkLinux only supported shared libraries with the
10960 # GNU dynamic linker. Since this was broken with cross compilers,
10961 # most powerpc-linux boxes support dynamic linking these days and
10962 # people can always --disable-shared, the test was removed, and we
10963 # assume the GNU/Linux dynamic linker is in use.
10964 dynamic_linker='GNU/Linux ld.so'
10965 ;;
10966
10967 netbsd*)
10968 version_type=sunos
10969 need_lib_prefix=no
10970 need_version=no
10971 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10972 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10973 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10974 dynamic_linker='NetBSD (a.out) ld.so'
10975 else
10976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10977 soname_spec='${libname}${release}${shared_ext}$major'
10978 dynamic_linker='NetBSD ld.elf_so'
10979 fi
10980 shlibpath_var=LD_LIBRARY_PATH
10981 shlibpath_overrides_runpath=yes
10982 hardcode_into_libs=yes
10983 ;;
10984
10985 newsos6)
10986 version_type=linux # correct to gnu/linux during the next big refactor
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10988 shlibpath_var=LD_LIBRARY_PATH
10989 shlibpath_overrides_runpath=yes
10990 ;;
10991
10992 *nto* | *qnx*)
10993 version_type=qnx
10994 need_lib_prefix=no
10995 need_version=no
10996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10997 soname_spec='${libname}${release}${shared_ext}$major'
10998 shlibpath_var=LD_LIBRARY_PATH
10999 shlibpath_overrides_runpath=no
11000 hardcode_into_libs=yes
11001 dynamic_linker='ldqnx.so'
11002 ;;
11003
11004 openbsd*)
11005 version_type=sunos
11006 sys_lib_dlsearch_path_spec="/usr/lib"
11007 need_lib_prefix=no
11008 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11009 case $host_os in
11010 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11011 *) need_version=no ;;
11012 esac
11013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11014 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11015 shlibpath_var=LD_LIBRARY_PATH
11016 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11017 case $host_os in
11018 openbsd2.[89] | openbsd2.[89].*)
11019 shlibpath_overrides_runpath=no
11020 ;;
11021 *)
11022 shlibpath_overrides_runpath=yes
11023 ;;
11024 esac
11025 else
11026 shlibpath_overrides_runpath=yes
11027 fi
11028 ;;
11029
11030 os2*)
11031 libname_spec='$name'
11032 shrext_cmds=".dll"
11033 need_lib_prefix=no
11034 library_names_spec='$libname${shared_ext} $libname.a'
11035 dynamic_linker='OS/2 ld.exe'
11036 shlibpath_var=LIBPATH
11037 ;;
11038
11039 osf3* | osf4* | osf5*)
11040 version_type=osf
11041 need_lib_prefix=no
11042 need_version=no
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11045 shlibpath_var=LD_LIBRARY_PATH
11046 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11047 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11048 ;;
11049
11050 rdos*)
11051 dynamic_linker=no
11052 ;;
11053
11054 solaris*)
11055 version_type=linux # correct to gnu/linux during the next big refactor
11056 need_lib_prefix=no
11057 need_version=no
11058 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11059 soname_spec='${libname}${release}${shared_ext}$major'
11060 shlibpath_var=LD_LIBRARY_PATH
11061 shlibpath_overrides_runpath=yes
11062 hardcode_into_libs=yes
11063 # ldd complains unless libraries are executable
11064 postinstall_cmds='chmod +x $lib'
11065 ;;
11066
11067 sunos4*)
11068 version_type=sunos
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11070 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11073 if test "$with_gnu_ld" = yes; then
11074 need_lib_prefix=no
11075 fi
11076 need_version=yes
11077 ;;
11078
11079 sysv4 | sysv4.3*)
11080 version_type=linux # correct to gnu/linux during the next big refactor
11081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11082 soname_spec='${libname}${release}${shared_ext}$major'
11083 shlibpath_var=LD_LIBRARY_PATH
11084 case $host_vendor in
11085 sni)
11086 shlibpath_overrides_runpath=no
11087 need_lib_prefix=no
11088 runpath_var=LD_RUN_PATH
11089 ;;
11090 siemens)
11091 need_lib_prefix=no
11092 ;;
11093 motorola)
11094 need_lib_prefix=no
11095 need_version=no
11096 shlibpath_overrides_runpath=no
11097 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11098 ;;
11099 esac
11100 ;;
11101
11102 sysv4*MP*)
11103 if test -d /usr/nec ;then
11104 version_type=linux # correct to gnu/linux during the next big refactor
11105 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11106 soname_spec='$libname${shared_ext}.$major'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 fi
11109 ;;
11110
11111 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11112 version_type=freebsd-elf
11113 need_lib_prefix=no
11114 need_version=no
11115 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11116 soname_spec='${libname}${release}${shared_ext}$major'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 shlibpath_overrides_runpath=yes
11119 hardcode_into_libs=yes
11120 if test "$with_gnu_ld" = yes; then
11121 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11122 else
11123 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11124 case $host_os in
11125 sco3.2v5*)
11126 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11127 ;;
11128 esac
11129 fi
11130 sys_lib_dlsearch_path_spec='/usr/lib'
11131 ;;
11132
11133 tpf*)
11134 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11135 version_type=linux # correct to gnu/linux during the next big refactor
11136 need_lib_prefix=no
11137 need_version=no
11138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11139 shlibpath_var=LD_LIBRARY_PATH
11140 shlibpath_overrides_runpath=no
11141 hardcode_into_libs=yes
11142 ;;
11143
11144 uts4*)
11145 version_type=linux # correct to gnu/linux during the next big refactor
11146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11147 soname_spec='${libname}${release}${shared_ext}$major'
11148 shlibpath_var=LD_LIBRARY_PATH
11149 ;;
11150
11151 *)
11152 dynamic_linker=no
11153 ;;
11154 esac
11155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11156 $as_echo "$dynamic_linker" >&6; }
11157 test "$dynamic_linker" = no && can_build_shared=no
11158
11159 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11160 if test "$GCC" = yes; then
11161 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11162 fi
11163
11164 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11165 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11166 fi
11167 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11168 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11169 fi
11170
11171
11172
11173
11174
11175
11176
11177
11178
11179
11180
11181
11182
11183
11184
11185
11186
11187
11188
11189
11190
11191
11192
11193
11194
11195
11196
11197
11198
11199
11200
11201
11202
11203
11204
11205
11206
11207
11208
11209
11210
11211
11212
11213
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238
11239
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11263 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11264 hardcode_action=
11265 if test -n "$hardcode_libdir_flag_spec" ||
11266 test -n "$runpath_var" ||
11267 test "X$hardcode_automatic" = "Xyes" ; then
11268
11269 # We can hardcode non-existent directories.
11270 if test "$hardcode_direct" != no &&
11271 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11272 # have to relink, otherwise we might link with an installed library
11273 # when we should be linking with a yet-to-be-installed one
11274 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11275 test "$hardcode_minus_L" != no; then
11276 # Linking always hardcodes the temporary library directory.
11277 hardcode_action=relink
11278 else
11279 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11280 hardcode_action=immediate
11281 fi
11282 else
11283 # We cannot hardcode anything, or else we can only hardcode existing
11284 # directories.
11285 hardcode_action=unsupported
11286 fi
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11288 $as_echo "$hardcode_action" >&6; }
11289
11290 if test "$hardcode_action" = relink ||
11291 test "$inherit_rpath" = yes; then
11292 # Fast installation is not supported
11293 enable_fast_install=no
11294 elif test "$shlibpath_overrides_runpath" = yes ||
11295 test "$enable_shared" = no; then
11296 # Fast installation is not necessary
11297 enable_fast_install=needless
11298 fi
11299
11300
11301
11302
11303
11304
11305 if test "x$enable_dlopen" != xyes; then
11306 enable_dlopen=unknown
11307 enable_dlopen_self=unknown
11308 enable_dlopen_self_static=unknown
11309 else
11310 lt_cv_dlopen=no
11311 lt_cv_dlopen_libs=
11312
11313 case $host_os in
11314 beos*)
11315 lt_cv_dlopen="load_add_on"
11316 lt_cv_dlopen_libs=
11317 lt_cv_dlopen_self=yes
11318 ;;
11319
11320 mingw* | pw32* | cegcc*)
11321 lt_cv_dlopen="LoadLibrary"
11322 lt_cv_dlopen_libs=
11323 ;;
11324
11325 cygwin*)
11326 lt_cv_dlopen="dlopen"
11327 lt_cv_dlopen_libs=
11328 ;;
11329
11330 darwin*)
11331 # if libdl is installed we need to link against it
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11333 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11334 if ${ac_cv_lib_dl_dlopen+:} false; then :
11335 $as_echo_n "(cached) " >&6
11336 else
11337 ac_check_lib_save_LIBS=$LIBS
11338 LIBS="-ldl $LIBS"
11339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340 /* end confdefs.h. */
11341
11342 /* Override any GCC internal prototype to avoid an error.
11343 Use char because int might match the return type of a GCC
11344 builtin and then its argument prototype would still apply. */
11345 #ifdef __cplusplus
11346 extern "C"
11347 #endif
11348 char dlopen ();
11349 int
11350 main ()
11351 {
11352 return dlopen ();
11353 ;
11354 return 0;
11355 }
11356 _ACEOF
11357 if ac_fn_c_try_link "$LINENO"; then :
11358 ac_cv_lib_dl_dlopen=yes
11359 else
11360 ac_cv_lib_dl_dlopen=no
11361 fi
11362 rm -f core conftest.err conftest.$ac_objext \
11363 conftest$ac_exeext conftest.$ac_ext
11364 LIBS=$ac_check_lib_save_LIBS
11365 fi
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11367 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11368 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11369 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11370 else
11371
11372 lt_cv_dlopen="dyld"
11373 lt_cv_dlopen_libs=
11374 lt_cv_dlopen_self=yes
11375
11376 fi
11377
11378 ;;
11379
11380 *)
11381 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11382 if test "x$ac_cv_func_shl_load" = xyes; then :
11383 lt_cv_dlopen="shl_load"
11384 else
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11386 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11387 if ${ac_cv_lib_dld_shl_load+:} false; then :
11388 $as_echo_n "(cached) " >&6
11389 else
11390 ac_check_lib_save_LIBS=$LIBS
11391 LIBS="-ldld $LIBS"
11392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11393 /* end confdefs.h. */
11394
11395 /* Override any GCC internal prototype to avoid an error.
11396 Use char because int might match the return type of a GCC
11397 builtin and then its argument prototype would still apply. */
11398 #ifdef __cplusplus
11399 extern "C"
11400 #endif
11401 char shl_load ();
11402 int
11403 main ()
11404 {
11405 return shl_load ();
11406 ;
11407 return 0;
11408 }
11409 _ACEOF
11410 if ac_fn_c_try_link "$LINENO"; then :
11411 ac_cv_lib_dld_shl_load=yes
11412 else
11413 ac_cv_lib_dld_shl_load=no
11414 fi
11415 rm -f core conftest.err conftest.$ac_objext \
11416 conftest$ac_exeext conftest.$ac_ext
11417 LIBS=$ac_check_lib_save_LIBS
11418 fi
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11420 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11421 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11422 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11423 else
11424 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11425 if test "x$ac_cv_func_dlopen" = xyes; then :
11426 lt_cv_dlopen="dlopen"
11427 else
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11429 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11430 if ${ac_cv_lib_dl_dlopen+:} false; then :
11431 $as_echo_n "(cached) " >&6
11432 else
11433 ac_check_lib_save_LIBS=$LIBS
11434 LIBS="-ldl $LIBS"
11435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11436 /* end confdefs.h. */
11437
11438 /* Override any GCC internal prototype to avoid an error.
11439 Use char because int might match the return type of a GCC
11440 builtin and then its argument prototype would still apply. */
11441 #ifdef __cplusplus
11442 extern "C"
11443 #endif
11444 char dlopen ();
11445 int
11446 main ()
11447 {
11448 return dlopen ();
11449 ;
11450 return 0;
11451 }
11452 _ACEOF
11453 if ac_fn_c_try_link "$LINENO"; then :
11454 ac_cv_lib_dl_dlopen=yes
11455 else
11456 ac_cv_lib_dl_dlopen=no
11457 fi
11458 rm -f core conftest.err conftest.$ac_objext \
11459 conftest$ac_exeext conftest.$ac_ext
11460 LIBS=$ac_check_lib_save_LIBS
11461 fi
11462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11463 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11464 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11465 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11466 else
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11468 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11469 if ${ac_cv_lib_svld_dlopen+:} false; then :
11470 $as_echo_n "(cached) " >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lsvld $LIBS"
11474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11475 /* end confdefs.h. */
11476
11477 /* Override any GCC internal prototype to avoid an error.
11478 Use char because int might match the return type of a GCC
11479 builtin and then its argument prototype would still apply. */
11480 #ifdef __cplusplus
11481 extern "C"
11482 #endif
11483 char dlopen ();
11484 int
11485 main ()
11486 {
11487 return dlopen ();
11488 ;
11489 return 0;
11490 }
11491 _ACEOF
11492 if ac_fn_c_try_link "$LINENO"; then :
11493 ac_cv_lib_svld_dlopen=yes
11494 else
11495 ac_cv_lib_svld_dlopen=no
11496 fi
11497 rm -f core conftest.err conftest.$ac_objext \
11498 conftest$ac_exeext conftest.$ac_ext
11499 LIBS=$ac_check_lib_save_LIBS
11500 fi
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11502 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11503 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11504 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11505 else
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11507 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11508 if ${ac_cv_lib_dld_dld_link+:} false; then :
11509 $as_echo_n "(cached) " >&6
11510 else
11511 ac_check_lib_save_LIBS=$LIBS
11512 LIBS="-ldld $LIBS"
11513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11514 /* end confdefs.h. */
11515
11516 /* Override any GCC internal prototype to avoid an error.
11517 Use char because int might match the return type of a GCC
11518 builtin and then its argument prototype would still apply. */
11519 #ifdef __cplusplus
11520 extern "C"
11521 #endif
11522 char dld_link ();
11523 int
11524 main ()
11525 {
11526 return dld_link ();
11527 ;
11528 return 0;
11529 }
11530 _ACEOF
11531 if ac_fn_c_try_link "$LINENO"; then :
11532 ac_cv_lib_dld_dld_link=yes
11533 else
11534 ac_cv_lib_dld_dld_link=no
11535 fi
11536 rm -f core conftest.err conftest.$ac_objext \
11537 conftest$ac_exeext conftest.$ac_ext
11538 LIBS=$ac_check_lib_save_LIBS
11539 fi
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11541 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11542 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11543 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11544 fi
11545
11546
11547 fi
11548
11549
11550 fi
11551
11552
11553 fi
11554
11555
11556 fi
11557
11558
11559 fi
11560
11561 ;;
11562 esac
11563
11564 if test "x$lt_cv_dlopen" != xno; then
11565 enable_dlopen=yes
11566 else
11567 enable_dlopen=no
11568 fi
11569
11570 case $lt_cv_dlopen in
11571 dlopen)
11572 save_CPPFLAGS="$CPPFLAGS"
11573 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11574
11575 save_LDFLAGS="$LDFLAGS"
11576 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11577
11578 save_LIBS="$LIBS"
11579 LIBS="$lt_cv_dlopen_libs $LIBS"
11580
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11582 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11583 if ${lt_cv_dlopen_self+:} false; then :
11584 $as_echo_n "(cached) " >&6
11585 else
11586 if test "$cross_compiling" = yes; then :
11587 lt_cv_dlopen_self=cross
11588 else
11589 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11590 lt_status=$lt_dlunknown
11591 cat > conftest.$ac_ext <<_LT_EOF
11592 #line $LINENO "configure"
11593 #include "confdefs.h"
11594
11595 #if HAVE_DLFCN_H
11596 #include <dlfcn.h>
11597 #endif
11598
11599 #include <stdio.h>
11600
11601 #ifdef RTLD_GLOBAL
11602 # define LT_DLGLOBAL RTLD_GLOBAL
11603 #else
11604 # ifdef DL_GLOBAL
11605 # define LT_DLGLOBAL DL_GLOBAL
11606 # else
11607 # define LT_DLGLOBAL 0
11608 # endif
11609 #endif
11610
11611 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11612 find out it does not work in some platform. */
11613 #ifndef LT_DLLAZY_OR_NOW
11614 # ifdef RTLD_LAZY
11615 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11616 # else
11617 # ifdef DL_LAZY
11618 # define LT_DLLAZY_OR_NOW DL_LAZY
11619 # else
11620 # ifdef RTLD_NOW
11621 # define LT_DLLAZY_OR_NOW RTLD_NOW
11622 # else
11623 # ifdef DL_NOW
11624 # define LT_DLLAZY_OR_NOW DL_NOW
11625 # else
11626 # define LT_DLLAZY_OR_NOW 0
11627 # endif
11628 # endif
11629 # endif
11630 # endif
11631 #endif
11632
11633 /* When -fvisbility=hidden is used, assume the code has been annotated
11634 correspondingly for the symbols needed. */
11635 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11636 int fnord () __attribute__((visibility("default")));
11637 #endif
11638
11639 int fnord () { return 42; }
11640 int main ()
11641 {
11642 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11643 int status = $lt_dlunknown;
11644
11645 if (self)
11646 {
11647 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11648 else
11649 {
11650 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11651 else puts (dlerror ());
11652 }
11653 /* dlclose (self); */
11654 }
11655 else
11656 puts (dlerror ());
11657
11658 return status;
11659 }
11660 _LT_EOF
11661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11662 (eval $ac_link) 2>&5
11663 ac_status=$?
11664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11666 (./conftest; exit; ) >&5 2>/dev/null
11667 lt_status=$?
11668 case x$lt_status in
11669 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11670 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11671 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11672 esac
11673 else :
11674 # compilation failed
11675 lt_cv_dlopen_self=no
11676 fi
11677 fi
11678 rm -fr conftest*
11679
11680
11681 fi
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11683 $as_echo "$lt_cv_dlopen_self" >&6; }
11684
11685 if test "x$lt_cv_dlopen_self" = xyes; then
11686 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11688 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11689 if ${lt_cv_dlopen_self_static+:} false; then :
11690 $as_echo_n "(cached) " >&6
11691 else
11692 if test "$cross_compiling" = yes; then :
11693 lt_cv_dlopen_self_static=cross
11694 else
11695 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11696 lt_status=$lt_dlunknown
11697 cat > conftest.$ac_ext <<_LT_EOF
11698 #line $LINENO "configure"
11699 #include "confdefs.h"
11700
11701 #if HAVE_DLFCN_H
11702 #include <dlfcn.h>
11703 #endif
11704
11705 #include <stdio.h>
11706
11707 #ifdef RTLD_GLOBAL
11708 # define LT_DLGLOBAL RTLD_GLOBAL
11709 #else
11710 # ifdef DL_GLOBAL
11711 # define LT_DLGLOBAL DL_GLOBAL
11712 # else
11713 # define LT_DLGLOBAL 0
11714 # endif
11715 #endif
11716
11717 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11718 find out it does not work in some platform. */
11719 #ifndef LT_DLLAZY_OR_NOW
11720 # ifdef RTLD_LAZY
11721 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11722 # else
11723 # ifdef DL_LAZY
11724 # define LT_DLLAZY_OR_NOW DL_LAZY
11725 # else
11726 # ifdef RTLD_NOW
11727 # define LT_DLLAZY_OR_NOW RTLD_NOW
11728 # else
11729 # ifdef DL_NOW
11730 # define LT_DLLAZY_OR_NOW DL_NOW
11731 # else
11732 # define LT_DLLAZY_OR_NOW 0
11733 # endif
11734 # endif
11735 # endif
11736 # endif
11737 #endif
11738
11739 /* When -fvisbility=hidden is used, assume the code has been annotated
11740 correspondingly for the symbols needed. */
11741 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11742 int fnord () __attribute__((visibility("default")));
11743 #endif
11744
11745 int fnord () { return 42; }
11746 int main ()
11747 {
11748 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11749 int status = $lt_dlunknown;
11750
11751 if (self)
11752 {
11753 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11754 else
11755 {
11756 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11757 else puts (dlerror ());
11758 }
11759 /* dlclose (self); */
11760 }
11761 else
11762 puts (dlerror ());
11763
11764 return status;
11765 }
11766 _LT_EOF
11767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11768 (eval $ac_link) 2>&5
11769 ac_status=$?
11770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11771 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11772 (./conftest; exit; ) >&5 2>/dev/null
11773 lt_status=$?
11774 case x$lt_status in
11775 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11776 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11777 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11778 esac
11779 else :
11780 # compilation failed
11781 lt_cv_dlopen_self_static=no
11782 fi
11783 fi
11784 rm -fr conftest*
11785
11786
11787 fi
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11789 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11790 fi
11791
11792 CPPFLAGS="$save_CPPFLAGS"
11793 LDFLAGS="$save_LDFLAGS"
11794 LIBS="$save_LIBS"
11795 ;;
11796 esac
11797
11798 case $lt_cv_dlopen_self in
11799 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11800 *) enable_dlopen_self=unknown ;;
11801 esac
11802
11803 case $lt_cv_dlopen_self_static in
11804 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11805 *) enable_dlopen_self_static=unknown ;;
11806 esac
11807 fi
11808
11809
11810
11811
11812
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825 striplib=
11826 old_striplib=
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11828 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11829 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11830 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11831 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11833 $as_echo "yes" >&6; }
11834 else
11835 # FIXME - insert some real tests, host_os isn't really good enough
11836 case $host_os in
11837 darwin*)
11838 if test -n "$STRIP" ; then
11839 striplib="$STRIP -x"
11840 old_striplib="$STRIP -S"
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11842 $as_echo "yes" >&6; }
11843 else
11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11845 $as_echo "no" >&6; }
11846 fi
11847 ;;
11848 *)
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 ;;
11852 esac
11853 fi
11854
11855
11856
11857
11858
11859
11860
11861
11862
11863
11864
11865
11866 # Report which library types will actually be built
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11868 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11870 $as_echo "$can_build_shared" >&6; }
11871
11872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11873 $as_echo_n "checking whether to build shared libraries... " >&6; }
11874 test "$can_build_shared" = "no" && enable_shared=no
11875
11876 # On AIX, shared libraries and static libraries use the same namespace, and
11877 # are all built from PIC.
11878 case $host_os in
11879 aix3*)
11880 test "$enable_shared" = yes && enable_static=no
11881 if test -n "$RANLIB"; then
11882 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11883 postinstall_cmds='$RANLIB $lib'
11884 fi
11885 ;;
11886
11887 aix[4-9]*)
11888 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11889 test "$enable_shared" = yes && enable_static=no
11890 fi
11891 ;;
11892 esac
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11894 $as_echo "$enable_shared" >&6; }
11895
11896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11897 $as_echo_n "checking whether to build static libraries... " >&6; }
11898 # Make sure either enable_shared or enable_static is yes.
11899 test "$enable_shared" = yes || enable_static=yes
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11901 $as_echo "$enable_static" >&6; }
11902
11903
11904
11905
11906 fi
11907 ac_ext=c
11908 ac_cpp='$CPP $CPPFLAGS'
11909 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11910 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11911 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11912
11913 CC="$lt_save_CC"
11914
11915
11916
11917
11918
11919
11920
11921
11922
11923
11924
11925
11926
11927
11928
11929 ac_config_commands="$ac_config_commands libtool"
11930
11931
11932
11933
11934 # Only expand once:
11935
11936
11937
11938 ac_ext=c
11939 ac_cpp='$CPP $CPPFLAGS'
11940 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11941 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11942 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11943 if test -n "$ac_tool_prefix"; then
11944 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
11945 set dummy ${ac_tool_prefix}gcc; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11947 $as_echo_n "checking for $ac_word... " >&6; }
11948 if ${ac_cv_prog_CC+:} false; then :
11949 $as_echo_n "(cached) " >&6
11950 else
11951 if test -n "$CC"; then
11952 ac_cv_prog_CC="$CC" # Let the user override the test.
11953 else
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11956 do
11957 IFS=$as_save_IFS
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_prog_CC="${ac_tool_prefix}gcc"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11963 break 2
11964 fi
11965 done
11966 done
11967 IFS=$as_save_IFS
11968
11969 fi
11970 fi
11971 CC=$ac_cv_prog_CC
11972 if test -n "$CC"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
11974 $as_echo "$CC" >&6; }
11975 else
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11977 $as_echo "no" >&6; }
11978 fi
11979
11980
11981 fi
11982 if test -z "$ac_cv_prog_CC"; then
11983 ac_ct_CC=$CC
11984 # Extract the first word of "gcc", so it can be a program name with args.
11985 set dummy gcc; ac_word=$2
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11987 $as_echo_n "checking for $ac_word... " >&6; }
11988 if ${ac_cv_prog_ac_ct_CC+:} false; then :
11989 $as_echo_n "(cached) " >&6
11990 else
11991 if test -n "$ac_ct_CC"; then
11992 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
11993 else
11994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11995 for as_dir in $PATH
11996 do
11997 IFS=$as_save_IFS
11998 test -z "$as_dir" && as_dir=.
11999 for ac_exec_ext in '' $ac_executable_extensions; do
12000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12001 ac_cv_prog_ac_ct_CC="gcc"
12002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12003 break 2
12004 fi
12005 done
12006 done
12007 IFS=$as_save_IFS
12008
12009 fi
12010 fi
12011 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12012 if test -n "$ac_ct_CC"; then
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12014 $as_echo "$ac_ct_CC" >&6; }
12015 else
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12017 $as_echo "no" >&6; }
12018 fi
12019
12020 if test "x$ac_ct_CC" = x; then
12021 CC=""
12022 else
12023 case $cross_compiling:$ac_tool_warned in
12024 yes:)
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12026 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12027 ac_tool_warned=yes ;;
12028 esac
12029 CC=$ac_ct_CC
12030 fi
12031 else
12032 CC="$ac_cv_prog_CC"
12033 fi
12034
12035 if test -z "$CC"; then
12036 if test -n "$ac_tool_prefix"; then
12037 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12038 set dummy ${ac_tool_prefix}cc; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12040 $as_echo_n "checking for $ac_word... " >&6; }
12041 if ${ac_cv_prog_CC+:} false; then :
12042 $as_echo_n "(cached) " >&6
12043 else
12044 if test -n "$CC"; then
12045 ac_cv_prog_CC="$CC" # Let the user override the test.
12046 else
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12049 do
12050 IFS=$as_save_IFS
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054 ac_cv_prog_CC="${ac_tool_prefix}cc"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12056 break 2
12057 fi
12058 done
12059 done
12060 IFS=$as_save_IFS
12061
12062 fi
12063 fi
12064 CC=$ac_cv_prog_CC
12065 if test -n "$CC"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12067 $as_echo "$CC" >&6; }
12068 else
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12070 $as_echo "no" >&6; }
12071 fi
12072
12073
12074 fi
12075 fi
12076 if test -z "$CC"; then
12077 # Extract the first word of "cc", so it can be a program name with args.
12078 set dummy cc; ac_word=$2
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12080 $as_echo_n "checking for $ac_word... " >&6; }
12081 if ${ac_cv_prog_CC+:} false; then :
12082 $as_echo_n "(cached) " >&6
12083 else
12084 if test -n "$CC"; then
12085 ac_cv_prog_CC="$CC" # Let the user override the test.
12086 else
12087 ac_prog_rejected=no
12088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12089 for as_dir in $PATH
12090 do
12091 IFS=$as_save_IFS
12092 test -z "$as_dir" && as_dir=.
12093 for ac_exec_ext in '' $ac_executable_extensions; do
12094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12095 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12096 ac_prog_rejected=yes
12097 continue
12098 fi
12099 ac_cv_prog_CC="cc"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12101 break 2
12102 fi
12103 done
12104 done
12105 IFS=$as_save_IFS
12106
12107 if test $ac_prog_rejected = yes; then
12108 # We found a bogon in the path, so make sure we never use it.
12109 set dummy $ac_cv_prog_CC
12110 shift
12111 if test $# != 0; then
12112 # We chose a different compiler from the bogus one.
12113 # However, it has the same basename, so the bogon will be chosen
12114 # first if we set CC to just the basename; use the full file name.
12115 shift
12116 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12117 fi
12118 fi
12119 fi
12120 fi
12121 CC=$ac_cv_prog_CC
12122 if test -n "$CC"; then
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12124 $as_echo "$CC" >&6; }
12125 else
12126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127 $as_echo "no" >&6; }
12128 fi
12129
12130
12131 fi
12132 if test -z "$CC"; then
12133 if test -n "$ac_tool_prefix"; then
12134 for ac_prog in cl.exe
12135 do
12136 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12137 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12139 $as_echo_n "checking for $ac_word... " >&6; }
12140 if ${ac_cv_prog_CC+:} false; then :
12141 $as_echo_n "(cached) " >&6
12142 else
12143 if test -n "$CC"; then
12144 ac_cv_prog_CC="$CC" # Let the user override the test.
12145 else
12146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12147 for as_dir in $PATH
12148 do
12149 IFS=$as_save_IFS
12150 test -z "$as_dir" && as_dir=.
12151 for ac_exec_ext in '' $ac_executable_extensions; do
12152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12153 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12155 break 2
12156 fi
12157 done
12158 done
12159 IFS=$as_save_IFS
12160
12161 fi
12162 fi
12163 CC=$ac_cv_prog_CC
12164 if test -n "$CC"; then
12165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12166 $as_echo "$CC" >&6; }
12167 else
12168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12169 $as_echo "no" >&6; }
12170 fi
12171
12172
12173 test -n "$CC" && break
12174 done
12175 fi
12176 if test -z "$CC"; then
12177 ac_ct_CC=$CC
12178 for ac_prog in cl.exe
12179 do
12180 # Extract the first word of "$ac_prog", so it can be a program name with args.
12181 set dummy $ac_prog; ac_word=$2
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12183 $as_echo_n "checking for $ac_word... " >&6; }
12184 if ${ac_cv_prog_ac_ct_CC+:} false; then :
12185 $as_echo_n "(cached) " >&6
12186 else
12187 if test -n "$ac_ct_CC"; then
12188 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12189 else
12190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12191 for as_dir in $PATH
12192 do
12193 IFS=$as_save_IFS
12194 test -z "$as_dir" && as_dir=.
12195 for ac_exec_ext in '' $ac_executable_extensions; do
12196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12197 ac_cv_prog_ac_ct_CC="$ac_prog"
12198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12199 break 2
12200 fi
12201 done
12202 done
12203 IFS=$as_save_IFS
12204
12205 fi
12206 fi
12207 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12208 if test -n "$ac_ct_CC"; then
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12210 $as_echo "$ac_ct_CC" >&6; }
12211 else
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12213 $as_echo "no" >&6; }
12214 fi
12215
12216
12217 test -n "$ac_ct_CC" && break
12218 done
12219
12220 if test "x$ac_ct_CC" = x; then
12221 CC=""
12222 else
12223 case $cross_compiling:$ac_tool_warned in
12224 yes:)
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12227 ac_tool_warned=yes ;;
12228 esac
12229 CC=$ac_ct_CC
12230 fi
12231 fi
12232
12233 fi
12234
12235
12236 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12238 as_fn_error $? "no acceptable C compiler found in \$PATH
12239 See \`config.log' for more details" "$LINENO" 5; }
12240
12241 # Provide some information about the compiler.
12242 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12243 set X $ac_compile
12244 ac_compiler=$2
12245 for ac_option in --version -v -V -qversion; do
12246 { { ac_try="$ac_compiler $ac_option >&5"
12247 case "(($ac_try" in
12248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12249 *) ac_try_echo=$ac_try;;
12250 esac
12251 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12252 $as_echo "$ac_try_echo"; } >&5
12253 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12254 ac_status=$?
12255 if test -s conftest.err; then
12256 sed '10a\
12257 ... rest of stderr output deleted ...
12258 10q' conftest.err >conftest.er1
12259 cat conftest.er1 >&5
12260 fi
12261 rm -f conftest.er1 conftest.err
12262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12263 test $ac_status = 0; }
12264 done
12265
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12267 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12268 if ${ac_cv_c_compiler_gnu+:} false; then :
12269 $as_echo_n "(cached) " >&6
12270 else
12271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12272 /* end confdefs.h. */
12273
12274 int
12275 main ()
12276 {
12277 #ifndef __GNUC__
12278 choke me
12279 #endif
12280
12281 ;
12282 return 0;
12283 }
12284 _ACEOF
12285 if ac_fn_c_try_compile "$LINENO"; then :
12286 ac_compiler_gnu=yes
12287 else
12288 ac_compiler_gnu=no
12289 fi
12290 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12291 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12292
12293 fi
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12295 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12296 if test $ac_compiler_gnu = yes; then
12297 GCC=yes
12298 else
12299 GCC=
12300 fi
12301 ac_test_CFLAGS=${CFLAGS+set}
12302 ac_save_CFLAGS=$CFLAGS
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12304 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12305 if ${ac_cv_prog_cc_g+:} false; then :
12306 $as_echo_n "(cached) " >&6
12307 else
12308 ac_save_c_werror_flag=$ac_c_werror_flag
12309 ac_c_werror_flag=yes
12310 ac_cv_prog_cc_g=no
12311 CFLAGS="-g"
12312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12313 /* end confdefs.h. */
12314
12315 int
12316 main ()
12317 {
12318
12319 ;
12320 return 0;
12321 }
12322 _ACEOF
12323 if ac_fn_c_try_compile "$LINENO"; then :
12324 ac_cv_prog_cc_g=yes
12325 else
12326 CFLAGS=""
12327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12328 /* end confdefs.h. */
12329
12330 int
12331 main ()
12332 {
12333
12334 ;
12335 return 0;
12336 }
12337 _ACEOF
12338 if ac_fn_c_try_compile "$LINENO"; then :
12339
12340 else
12341 ac_c_werror_flag=$ac_save_c_werror_flag
12342 CFLAGS="-g"
12343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12344 /* end confdefs.h. */
12345
12346 int
12347 main ()
12348 {
12349
12350 ;
12351 return 0;
12352 }
12353 _ACEOF
12354 if ac_fn_c_try_compile "$LINENO"; then :
12355 ac_cv_prog_cc_g=yes
12356 fi
12357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12358 fi
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12360 fi
12361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 ac_c_werror_flag=$ac_save_c_werror_flag
12363 fi
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12365 $as_echo "$ac_cv_prog_cc_g" >&6; }
12366 if test "$ac_test_CFLAGS" = set; then
12367 CFLAGS=$ac_save_CFLAGS
12368 elif test $ac_cv_prog_cc_g = yes; then
12369 if test "$GCC" = yes; then
12370 CFLAGS="-g -O2"
12371 else
12372 CFLAGS="-g"
12373 fi
12374 else
12375 if test "$GCC" = yes; then
12376 CFLAGS="-O2"
12377 else
12378 CFLAGS=
12379 fi
12380 fi
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12382 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12383 if ${ac_cv_prog_cc_c89+:} false; then :
12384 $as_echo_n "(cached) " >&6
12385 else
12386 ac_cv_prog_cc_c89=no
12387 ac_save_CC=$CC
12388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12389 /* end confdefs.h. */
12390 #include <stdarg.h>
12391 #include <stdio.h>
12392 struct stat;
12393 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
12394 struct buf { int x; };
12395 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12396 static char *e (p, i)
12397 char **p;
12398 int i;
12399 {
12400 return p[i];
12401 }
12402 static char *f (char * (*g) (char **, int), char **p, ...)
12403 {
12404 char *s;
12405 va_list v;
12406 va_start (v,p);
12407 s = g (p, va_arg (v,int));
12408 va_end (v);
12409 return s;
12410 }
12411
12412 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
12413 function prototypes and stuff, but not '\xHH' hex character constants.
12414 These don't provoke an error unfortunately, instead are silently treated
12415 as 'x'. The following induces an error, until -std is added to get
12416 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
12417 array size at least. It's necessary to write '\x00'==0 to get something
12418 that's true only with -std. */
12419 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12420
12421 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12422 inside strings and character constants. */
12423 #define FOO(x) 'x'
12424 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12425
12426 int test (int i, double x);
12427 struct s1 {int (*f) (int a);};
12428 struct s2 {int (*f) (double a);};
12429 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12430 int argc;
12431 char **argv;
12432 int
12433 main ()
12434 {
12435 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
12436 ;
12437 return 0;
12438 }
12439 _ACEOF
12440 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12441 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12442 do
12443 CC="$ac_save_CC $ac_arg"
12444 if ac_fn_c_try_compile "$LINENO"; then :
12445 ac_cv_prog_cc_c89=$ac_arg
12446 fi
12447 rm -f core conftest.err conftest.$ac_objext
12448 test "x$ac_cv_prog_cc_c89" != "xno" && break
12449 done
12450 rm -f conftest.$ac_ext
12451 CC=$ac_save_CC
12452
12453 fi
12454 # AC_CACHE_VAL
12455 case "x$ac_cv_prog_cc_c89" in
12456 x)
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12458 $as_echo "none needed" >&6; } ;;
12459 xno)
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12461 $as_echo "unsupported" >&6; } ;;
12462 *)
12463 CC="$CC $ac_cv_prog_cc_c89"
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12465 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12466 esac
12467 if test "x$ac_cv_prog_cc_c89" != xno; then :
12468
12469 fi
12470
12471 ac_ext=c
12472 ac_cpp='$CPP $CPPFLAGS'
12473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12476
12477 depcc="$CC" am_compiler_list=
12478
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12480 $as_echo_n "checking dependency style of $depcc... " >&6; }
12481 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12485 # We make a subdir and do the tests there. Otherwise we can end up
12486 # making bogus files that we don't know about and never remove. For
12487 # instance it was reported that on HP-UX the gcc test will end up
12488 # making a dummy file named 'D' -- because '-MD' means "put the output
12489 # in D".
12490 rm -rf conftest.dir
12491 mkdir conftest.dir
12492 # Copy depcomp to subdir because otherwise we won't find it if we're
12493 # using a relative directory.
12494 cp "$am_depcomp" conftest.dir
12495 cd conftest.dir
12496 # We will build objects and dependencies in a subdirectory because
12497 # it helps to detect inapplicable dependency modes. For instance
12498 # both Tru64's cc and ICC support -MD to output dependencies as a
12499 # side effect of compilation, but ICC will put the dependencies in
12500 # the current directory while Tru64 will put them in the object
12501 # directory.
12502 mkdir sub
12503
12504 am_cv_CC_dependencies_compiler_type=none
12505 if test "$am_compiler_list" = ""; then
12506 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12507 fi
12508 am__universal=false
12509 case " $depcc " in #(
12510 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12511 esac
12512
12513 for depmode in $am_compiler_list; do
12514 # Setup a source with many dependencies, because some compilers
12515 # like to wrap large dependency lists on column 80 (with \), and
12516 # we should not choose a depcomp mode which is confused by this.
12517 #
12518 # We need to recreate these files for each test, as the compiler may
12519 # overwrite some of them when testing with obscure command lines.
12520 # This happens at least with the AIX C compiler.
12521 : > sub/conftest.c
12522 for i in 1 2 3 4 5 6; do
12523 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12524 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12525 # Solaris 10 /bin/sh.
12526 echo '/* dummy */' > sub/conftst$i.h
12527 done
12528 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12529
12530 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12531 # mode. It turns out that the SunPro C++ compiler does not properly
12532 # handle '-M -o', and we need to detect this. Also, some Intel
12533 # versions had trouble with output in subdirs.
12534 am__obj=sub/conftest.${OBJEXT-o}
12535 am__minus_obj="-o $am__obj"
12536 case $depmode in
12537 gcc)
12538 # This depmode causes a compiler race in universal mode.
12539 test "$am__universal" = false || continue
12540 ;;
12541 nosideeffect)
12542 # After this tag, mechanisms are not by side-effect, so they'll
12543 # only be used when explicitly requested.
12544 if test "x$enable_dependency_tracking" = xyes; then
12545 continue
12546 else
12547 break
12548 fi
12549 ;;
12550 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12551 # This compiler won't grok '-c -o', but also, the minuso test has
12552 # not run yet. These depmodes are late enough in the game, and
12553 # so weak that their functioning should not be impacted.
12554 am__obj=conftest.${OBJEXT-o}
12555 am__minus_obj=
12556 ;;
12557 none) break ;;
12558 esac
12559 if depmode=$depmode \
12560 source=sub/conftest.c object=$am__obj \
12561 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12562 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12563 >/dev/null 2>conftest.err &&
12564 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12565 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12566 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12567 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12568 # icc doesn't choke on unknown options, it will just issue warnings
12569 # or remarks (even with -Werror). So we grep stderr for any message
12570 # that says an option was ignored or not supported.
12571 # When given -MP, icc 7.0 and 7.1 complain thusly:
12572 # icc: Command line warning: ignoring option '-M'; no argument required
12573 # The diagnosis changed in icc 8.0:
12574 # icc: Command line remark: option '-MP' not supported
12575 if (grep 'ignoring option' conftest.err ||
12576 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12577 am_cv_CC_dependencies_compiler_type=$depmode
12578 break
12579 fi
12580 fi
12581 done
12582
12583 cd ..
12584 rm -rf conftest.dir
12585 else
12586 am_cv_CC_dependencies_compiler_type=none
12587 fi
12588
12589 fi
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12591 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12592 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12593
12594 if
12595 test "x$enable_dependency_tracking" != xno \
12596 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12597 am__fastdepCC_TRUE=
12598 am__fastdepCC_FALSE='#'
12599 else
12600 am__fastdepCC_TRUE='#'
12601 am__fastdepCC_FALSE=
12602 fi
12603
12604
12605 ac_ext=cpp
12606 ac_cpp='$CXXCPP $CPPFLAGS'
12607 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12608 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12609 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12610 if test -z "$CXX"; then
12611 if test -n "$CCC"; then
12612 CXX=$CCC
12613 else
12614 if test -n "$ac_tool_prefix"; then
12615 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12616 do
12617 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12618 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12620 $as_echo_n "checking for $ac_word... " >&6; }
12621 if ${ac_cv_prog_CXX+:} false; then :
12622 $as_echo_n "(cached) " >&6
12623 else
12624 if test -n "$CXX"; then
12625 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12626 else
12627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12628 for as_dir in $PATH
12629 do
12630 IFS=$as_save_IFS
12631 test -z "$as_dir" && as_dir=.
12632 for ac_exec_ext in '' $ac_executable_extensions; do
12633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12634 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12636 break 2
12637 fi
12638 done
12639 done
12640 IFS=$as_save_IFS
12641
12642 fi
12643 fi
12644 CXX=$ac_cv_prog_CXX
12645 if test -n "$CXX"; then
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12647 $as_echo "$CXX" >&6; }
12648 else
12649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12650 $as_echo "no" >&6; }
12651 fi
12652
12653
12654 test -n "$CXX" && break
12655 done
12656 fi
12657 if test -z "$CXX"; then
12658 ac_ct_CXX=$CXX
12659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12660 do
12661 # Extract the first word of "$ac_prog", so it can be a program name with args.
12662 set dummy $ac_prog; ac_word=$2
12663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12664 $as_echo_n "checking for $ac_word... " >&6; }
12665 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12666 $as_echo_n "(cached) " >&6
12667 else
12668 if test -n "$ac_ct_CXX"; then
12669 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12670 else
12671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12672 for as_dir in $PATH
12673 do
12674 IFS=$as_save_IFS
12675 test -z "$as_dir" && as_dir=.
12676 for ac_exec_ext in '' $ac_executable_extensions; do
12677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12678 ac_cv_prog_ac_ct_CXX="$ac_prog"
12679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12680 break 2
12681 fi
12682 done
12683 done
12684 IFS=$as_save_IFS
12685
12686 fi
12687 fi
12688 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12689 if test -n "$ac_ct_CXX"; then
12690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12691 $as_echo "$ac_ct_CXX" >&6; }
12692 else
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12694 $as_echo "no" >&6; }
12695 fi
12696
12697
12698 test -n "$ac_ct_CXX" && break
12699 done
12700
12701 if test "x$ac_ct_CXX" = x; then
12702 CXX="g++"
12703 else
12704 case $cross_compiling:$ac_tool_warned in
12705 yes:)
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12707 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12708 ac_tool_warned=yes ;;
12709 esac
12710 CXX=$ac_ct_CXX
12711 fi
12712 fi
12713
12714 fi
12715 fi
12716 # Provide some information about the compiler.
12717 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12718 set X $ac_compile
12719 ac_compiler=$2
12720 for ac_option in --version -v -V -qversion; do
12721 { { ac_try="$ac_compiler $ac_option >&5"
12722 case "(($ac_try" in
12723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12724 *) ac_try_echo=$ac_try;;
12725 esac
12726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12727 $as_echo "$ac_try_echo"; } >&5
12728 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12729 ac_status=$?
12730 if test -s conftest.err; then
12731 sed '10a\
12732 ... rest of stderr output deleted ...
12733 10q' conftest.err >conftest.er1
12734 cat conftest.er1 >&5
12735 fi
12736 rm -f conftest.er1 conftest.err
12737 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12738 test $ac_status = 0; }
12739 done
12740
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12742 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12743 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12744 $as_echo_n "(cached) " >&6
12745 else
12746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12747 /* end confdefs.h. */
12748
12749 int
12750 main ()
12751 {
12752 #ifndef __GNUC__
12753 choke me
12754 #endif
12755
12756 ;
12757 return 0;
12758 }
12759 _ACEOF
12760 if ac_fn_cxx_try_compile "$LINENO"; then :
12761 ac_compiler_gnu=yes
12762 else
12763 ac_compiler_gnu=no
12764 fi
12765 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12766 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12767
12768 fi
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12770 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12771 if test $ac_compiler_gnu = yes; then
12772 GXX=yes
12773 else
12774 GXX=
12775 fi
12776 ac_test_CXXFLAGS=${CXXFLAGS+set}
12777 ac_save_CXXFLAGS=$CXXFLAGS
12778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12779 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
12780 if ${ac_cv_prog_cxx_g+:} false; then :
12781 $as_echo_n "(cached) " >&6
12782 else
12783 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12784 ac_cxx_werror_flag=yes
12785 ac_cv_prog_cxx_g=no
12786 CXXFLAGS="-g"
12787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12788 /* end confdefs.h. */
12789
12790 int
12791 main ()
12792 {
12793
12794 ;
12795 return 0;
12796 }
12797 _ACEOF
12798 if ac_fn_cxx_try_compile "$LINENO"; then :
12799 ac_cv_prog_cxx_g=yes
12800 else
12801 CXXFLAGS=""
12802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12803 /* end confdefs.h. */
12804
12805 int
12806 main ()
12807 {
12808
12809 ;
12810 return 0;
12811 }
12812 _ACEOF
12813 if ac_fn_cxx_try_compile "$LINENO"; then :
12814
12815 else
12816 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12817 CXXFLAGS="-g"
12818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12819 /* end confdefs.h. */
12820
12821 int
12822 main ()
12823 {
12824
12825 ;
12826 return 0;
12827 }
12828 _ACEOF
12829 if ac_fn_cxx_try_compile "$LINENO"; then :
12830 ac_cv_prog_cxx_g=yes
12831 fi
12832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12833 fi
12834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12835 fi
12836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12837 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12838 fi
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12840 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12841 if test "$ac_test_CXXFLAGS" = set; then
12842 CXXFLAGS=$ac_save_CXXFLAGS
12843 elif test $ac_cv_prog_cxx_g = yes; then
12844 if test "$GXX" = yes; then
12845 CXXFLAGS="-g -O2"
12846 else
12847 CXXFLAGS="-g"
12848 fi
12849 else
12850 if test "$GXX" = yes; then
12851 CXXFLAGS="-O2"
12852 else
12853 CXXFLAGS=
12854 fi
12855 fi
12856 ac_ext=c
12857 ac_cpp='$CPP $CPPFLAGS'
12858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12861
12862 depcc="$CXX" am_compiler_list=
12863
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12865 $as_echo_n "checking dependency style of $depcc... " >&6; }
12866 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12867 $as_echo_n "(cached) " >&6
12868 else
12869 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12870 # We make a subdir and do the tests there. Otherwise we can end up
12871 # making bogus files that we don't know about and never remove. For
12872 # instance it was reported that on HP-UX the gcc test will end up
12873 # making a dummy file named 'D' -- because '-MD' means "put the output
12874 # in D".
12875 rm -rf conftest.dir
12876 mkdir conftest.dir
12877 # Copy depcomp to subdir because otherwise we won't find it if we're
12878 # using a relative directory.
12879 cp "$am_depcomp" conftest.dir
12880 cd conftest.dir
12881 # We will build objects and dependencies in a subdirectory because
12882 # it helps to detect inapplicable dependency modes. For instance
12883 # both Tru64's cc and ICC support -MD to output dependencies as a
12884 # side effect of compilation, but ICC will put the dependencies in
12885 # the current directory while Tru64 will put them in the object
12886 # directory.
12887 mkdir sub
12888
12889 am_cv_CXX_dependencies_compiler_type=none
12890 if test "$am_compiler_list" = ""; then
12891 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12892 fi
12893 am__universal=false
12894 case " $depcc " in #(
12895 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12896 esac
12897
12898 for depmode in $am_compiler_list; do
12899 # Setup a source with many dependencies, because some compilers
12900 # like to wrap large dependency lists on column 80 (with \), and
12901 # we should not choose a depcomp mode which is confused by this.
12902 #
12903 # We need to recreate these files for each test, as the compiler may
12904 # overwrite some of them when testing with obscure command lines.
12905 # This happens at least with the AIX C compiler.
12906 : > sub/conftest.c
12907 for i in 1 2 3 4 5 6; do
12908 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12909 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12910 # Solaris 10 /bin/sh.
12911 echo '/* dummy */' > sub/conftst$i.h
12912 done
12913 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12914
12915 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12916 # mode. It turns out that the SunPro C++ compiler does not properly
12917 # handle '-M -o', and we need to detect this. Also, some Intel
12918 # versions had trouble with output in subdirs.
12919 am__obj=sub/conftest.${OBJEXT-o}
12920 am__minus_obj="-o $am__obj"
12921 case $depmode in
12922 gcc)
12923 # This depmode causes a compiler race in universal mode.
12924 test "$am__universal" = false || continue
12925 ;;
12926 nosideeffect)
12927 # After this tag, mechanisms are not by side-effect, so they'll
12928 # only be used when explicitly requested.
12929 if test "x$enable_dependency_tracking" = xyes; then
12930 continue
12931 else
12932 break
12933 fi
12934 ;;
12935 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12936 # This compiler won't grok '-c -o', but also, the minuso test has
12937 # not run yet. These depmodes are late enough in the game, and
12938 # so weak that their functioning should not be impacted.
12939 am__obj=conftest.${OBJEXT-o}
12940 am__minus_obj=
12941 ;;
12942 none) break ;;
12943 esac
12944 if depmode=$depmode \
12945 source=sub/conftest.c object=$am__obj \
12946 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12947 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12948 >/dev/null 2>conftest.err &&
12949 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12950 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12951 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12952 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12953 # icc doesn't choke on unknown options, it will just issue warnings
12954 # or remarks (even with -Werror). So we grep stderr for any message
12955 # that says an option was ignored or not supported.
12956 # When given -MP, icc 7.0 and 7.1 complain thusly:
12957 # icc: Command line warning: ignoring option '-M'; no argument required
12958 # The diagnosis changed in icc 8.0:
12959 # icc: Command line remark: option '-MP' not supported
12960 if (grep 'ignoring option' conftest.err ||
12961 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12962 am_cv_CXX_dependencies_compiler_type=$depmode
12963 break
12964 fi
12965 fi
12966 done
12967
12968 cd ..
12969 rm -rf conftest.dir
12970 else
12971 am_cv_CXX_dependencies_compiler_type=none
12972 fi
12973
12974 fi
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12976 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12977 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12978
12979 if
12980 test "x$enable_dependency_tracking" != xno \
12981 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12982 am__fastdepCXX_TRUE=
12983 am__fastdepCXX_FALSE='#'
12984 else
12985 am__fastdepCXX_TRUE='#'
12986 am__fastdepCXX_FALSE=
12987 fi
12988
12989
12990
12991
12992 func_stripname_cnf ()
12993 {
12994 case ${2} in
12995 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12996 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12997 esac
12998 } # func_stripname_cnf
12999
13000 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13001 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13002 (test "X$CXX" != "Xg++"))) ; then
13003 ac_ext=cpp
13004 ac_cpp='$CXXCPP $CPPFLAGS'
13005 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13006 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13007 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13009 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13010 if test -z "$CXXCPP"; then
13011 if ${ac_cv_prog_CXXCPP+:} false; then :
13012 $as_echo_n "(cached) " >&6
13013 else
13014 # Double quotes because CXXCPP needs to be expanded
13015 for CXXCPP in "$CXX -E" "/lib/cpp"
13016 do
13017 ac_preproc_ok=false
13018 for ac_cxx_preproc_warn_flag in '' yes
13019 do
13020 # Use a header file that comes with gcc, so configuring glibc
13021 # with a fresh cross-compiler works.
13022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023 # <limits.h> exists even on freestanding compilers.
13024 # On the NeXT, cc -E runs the code through the compiler's parser,
13025 # not just through cpp. "Syntax error" is here to catch this case.
13026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13027 /* end confdefs.h. */
13028 #ifdef __STDC__
13029 # include <limits.h>
13030 #else
13031 # include <assert.h>
13032 #endif
13033 Syntax error
13034 _ACEOF
13035 if ac_fn_cxx_try_cpp "$LINENO"; then :
13036
13037 else
13038 # Broken: fails on valid input.
13039 continue
13040 fi
13041 rm -f conftest.err conftest.i conftest.$ac_ext
13042
13043 # OK, works on sane cases. Now check whether nonexistent headers
13044 # can be detected and how.
13045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13046 /* end confdefs.h. */
13047 #include <ac_nonexistent.h>
13048 _ACEOF
13049 if ac_fn_cxx_try_cpp "$LINENO"; then :
13050 # Broken: success on invalid input.
13051 continue
13052 else
13053 # Passes both tests.
13054 ac_preproc_ok=:
13055 break
13056 fi
13057 rm -f conftest.err conftest.i conftest.$ac_ext
13058
13059 done
13060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13061 rm -f conftest.i conftest.err conftest.$ac_ext
13062 if $ac_preproc_ok; then :
13063 break
13064 fi
13065
13066 done
13067 ac_cv_prog_CXXCPP=$CXXCPP
13068
13069 fi
13070 CXXCPP=$ac_cv_prog_CXXCPP
13071 else
13072 ac_cv_prog_CXXCPP=$CXXCPP
13073 fi
13074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13075 $as_echo "$CXXCPP" >&6; }
13076 ac_preproc_ok=false
13077 for ac_cxx_preproc_warn_flag in '' yes
13078 do
13079 # Use a header file that comes with gcc, so configuring glibc
13080 # with a fresh cross-compiler works.
13081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13082 # <limits.h> exists even on freestanding compilers.
13083 # On the NeXT, cc -E runs the code through the compiler's parser,
13084 # not just through cpp. "Syntax error" is here to catch this case.
13085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13086 /* end confdefs.h. */
13087 #ifdef __STDC__
13088 # include <limits.h>
13089 #else
13090 # include <assert.h>
13091 #endif
13092 Syntax error
13093 _ACEOF
13094 if ac_fn_cxx_try_cpp "$LINENO"; then :
13095
13096 else
13097 # Broken: fails on valid input.
13098 continue
13099 fi
13100 rm -f conftest.err conftest.i conftest.$ac_ext
13101
13102 # OK, works on sane cases. Now check whether nonexistent headers
13103 # can be detected and how.
13104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13105 /* end confdefs.h. */
13106 #include <ac_nonexistent.h>
13107 _ACEOF
13108 if ac_fn_cxx_try_cpp "$LINENO"; then :
13109 # Broken: success on invalid input.
13110 continue
13111 else
13112 # Passes both tests.
13113 ac_preproc_ok=:
13114 break
13115 fi
13116 rm -f conftest.err conftest.i conftest.$ac_ext
13117
13118 done
13119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13120 rm -f conftest.i conftest.err conftest.$ac_ext
13121 if $ac_preproc_ok; then :
13122
13123 else
13124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13126 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13127 See \`config.log' for more details" "$LINENO" 5; }
13128 fi
13129
13130 ac_ext=c
13131 ac_cpp='$CPP $CPPFLAGS'
13132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13135
13136 else
13137 _lt_caught_CXX_error=yes
13138 fi
13139
13140 ac_ext=cpp
13141 ac_cpp='$CXXCPP $CPPFLAGS'
13142 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13143 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13144 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13145
13146 archive_cmds_need_lc_CXX=no
13147 allow_undefined_flag_CXX=
13148 always_export_symbols_CXX=no
13149 archive_expsym_cmds_CXX=
13150 compiler_needs_object_CXX=no
13151 export_dynamic_flag_spec_CXX=
13152 hardcode_direct_CXX=no
13153 hardcode_direct_absolute_CXX=no
13154 hardcode_libdir_flag_spec_CXX=
13155 hardcode_libdir_separator_CXX=
13156 hardcode_minus_L_CXX=no
13157 hardcode_shlibpath_var_CXX=unsupported
13158 hardcode_automatic_CXX=no
13159 inherit_rpath_CXX=no
13160 module_cmds_CXX=
13161 module_expsym_cmds_CXX=
13162 link_all_deplibs_CXX=unknown
13163 old_archive_cmds_CXX=$old_archive_cmds
13164 reload_flag_CXX=$reload_flag
13165 reload_cmds_CXX=$reload_cmds
13166 no_undefined_flag_CXX=
13167 whole_archive_flag_spec_CXX=
13168 enable_shared_with_static_runtimes_CXX=no
13169
13170 # Source file extension for C++ test sources.
13171 ac_ext=cpp
13172
13173 # Object file extension for compiled C++ test sources.
13174 objext=o
13175 objext_CXX=$objext
13176
13177 # No sense in running all these tests if we already determined that
13178 # the CXX compiler isn't working. Some variables (like enable_shared)
13179 # are currently assumed to apply to all compilers on this platform,
13180 # and will be corrupted by setting them based on a non-working compiler.
13181 if test "$_lt_caught_CXX_error" != yes; then
13182 # Code to be used in simple compile tests
13183 lt_simple_compile_test_code="int some_variable = 0;"
13184
13185 # Code to be used in simple link tests
13186 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13187
13188 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13189
13190
13191
13192
13193
13194
13195 # If no C compiler was specified, use CC.
13196 LTCC=${LTCC-"$CC"}
13197
13198 # If no C compiler flags were specified, use CFLAGS.
13199 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13200
13201 # Allow CC to be a program name with arguments.
13202 compiler=$CC
13203
13204
13205 # save warnings/boilerplate of simple test code
13206 ac_outfile=conftest.$ac_objext
13207 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13208 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13209 _lt_compiler_boilerplate=`cat conftest.err`
13210 $RM conftest*
13211
13212 ac_outfile=conftest.$ac_objext
13213 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13214 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13215 _lt_linker_boilerplate=`cat conftest.err`
13216 $RM -r conftest*
13217
13218
13219 # Allow CC to be a program name with arguments.
13220 lt_save_CC=$CC
13221 lt_save_CFLAGS=$CFLAGS
13222 lt_save_LD=$LD
13223 lt_save_GCC=$GCC
13224 GCC=$GXX
13225 lt_save_with_gnu_ld=$with_gnu_ld
13226 lt_save_path_LD=$lt_cv_path_LD
13227 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13228 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13229 else
13230 $as_unset lt_cv_prog_gnu_ld
13231 fi
13232 if test -n "${lt_cv_path_LDCXX+set}"; then
13233 lt_cv_path_LD=$lt_cv_path_LDCXX
13234 else
13235 $as_unset lt_cv_path_LD
13236 fi
13237 test -z "${LDCXX+set}" || LD=$LDCXX
13238 CC=${CXX-"c++"}
13239 CFLAGS=$CXXFLAGS
13240 compiler=$CC
13241 compiler_CXX=$CC
13242 for cc_temp in $compiler""; do
13243 case $cc_temp in
13244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13246 \-*) ;;
13247 *) break;;
13248 esac
13249 done
13250 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13251
13252
13253 if test -n "$compiler"; then
13254 # We don't want -fno-exception when compiling C++ code, so set the
13255 # no_builtin_flag separately
13256 if test "$GXX" = yes; then
13257 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13258 else
13259 lt_prog_compiler_no_builtin_flag_CXX=
13260 fi
13261
13262 if test "$GXX" = yes; then
13263 # Set up default GNU C++ configuration
13264
13265
13266
13267 # Check whether --with-gnu-ld was given.
13268 if test "${with_gnu_ld+set}" = set; then :
13269 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13270 else
13271 with_gnu_ld=no
13272 fi
13273
13274 ac_prog=ld
13275 if test "$GCC" = yes; then
13276 # Check if gcc -print-prog-name=ld gives a path.
13277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13278 $as_echo_n "checking for ld used by $CC... " >&6; }
13279 case $host in
13280 *-*-mingw*)
13281 # gcc leaves a trailing carriage return which upsets mingw
13282 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13283 *)
13284 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13285 esac
13286 case $ac_prog in
13287 # Accept absolute paths.
13288 [\\/]* | ?:[\\/]*)
13289 re_direlt='/[^/][^/]*/\.\./'
13290 # Canonicalize the pathname of ld
13291 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13292 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13293 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13294 done
13295 test -z "$LD" && LD="$ac_prog"
13296 ;;
13297 "")
13298 # If it fails, then pretend we aren't using GCC.
13299 ac_prog=ld
13300 ;;
13301 *)
13302 # If it is relative, then search for the first ld in PATH.
13303 with_gnu_ld=unknown
13304 ;;
13305 esac
13306 elif test "$with_gnu_ld" = yes; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13308 $as_echo_n "checking for GNU ld... " >&6; }
13309 else
13310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13311 $as_echo_n "checking for non-GNU ld... " >&6; }
13312 fi
13313 if ${lt_cv_path_LD+:} false; then :
13314 $as_echo_n "(cached) " >&6
13315 else
13316 if test -z "$LD"; then
13317 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13318 for ac_dir in $PATH; do
13319 IFS="$lt_save_ifs"
13320 test -z "$ac_dir" && ac_dir=.
13321 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13322 lt_cv_path_LD="$ac_dir/$ac_prog"
13323 # Check to see if the program is GNU ld. I'd rather use --version,
13324 # but apparently some variants of GNU ld only accept -v.
13325 # Break only if it was the GNU/non-GNU ld that we prefer.
13326 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13327 *GNU* | *'with BFD'*)
13328 test "$with_gnu_ld" != no && break
13329 ;;
13330 *)
13331 test "$with_gnu_ld" != yes && break
13332 ;;
13333 esac
13334 fi
13335 done
13336 IFS="$lt_save_ifs"
13337 else
13338 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13339 fi
13340 fi
13341
13342 LD="$lt_cv_path_LD"
13343 if test -n "$LD"; then
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13345 $as_echo "$LD" >&6; }
13346 else
13347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13348 $as_echo "no" >&6; }
13349 fi
13350 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13352 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13353 if ${lt_cv_prog_gnu_ld+:} false; then :
13354 $as_echo_n "(cached) " >&6
13355 else
13356 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13357 case `$LD -v 2>&1 </dev/null` in
13358 *GNU* | *'with BFD'*)
13359 lt_cv_prog_gnu_ld=yes
13360 ;;
13361 *)
13362 lt_cv_prog_gnu_ld=no
13363 ;;
13364 esac
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13367 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13368 with_gnu_ld=$lt_cv_prog_gnu_ld
13369
13370
13371
13372
13373
13374
13375
13376 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13377 # archiving commands below assume that GNU ld is being used.
13378 if test "$with_gnu_ld" = yes; then
13379 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13380 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13381
13382 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13383 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13384
13385 # If archive_cmds runs LD, not CC, wlarc should be empty
13386 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13387 # investigate it a little bit more. (MM)
13388 wlarc='${wl}'
13389
13390 # ancient GNU ld didn't support --whole-archive et. al.
13391 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13392 $GREP 'no-whole-archive' > /dev/null; then
13393 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13394 else
13395 whole_archive_flag_spec_CXX=
13396 fi
13397 else
13398 with_gnu_ld=no
13399 wlarc=
13400
13401 # A generic and very simple default shared library creation
13402 # command for GNU C++ for the case where it uses the native
13403 # linker, instead of GNU ld. If possible, this setting should
13404 # overridden to take advantage of the native linker features on
13405 # the platform it is being used on.
13406 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13407 fi
13408
13409 # Commands to make compiler produce verbose output that lists
13410 # what "hidden" libraries, object files and flags are used when
13411 # linking a shared library.
13412 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13413
13414 else
13415 GXX=no
13416 with_gnu_ld=no
13417 wlarc=
13418 fi
13419
13420 # PORTME: fill in a description of your system's C++ link characteristics
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13422 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13423 ld_shlibs_CXX=yes
13424 case $host_os in
13425 aix3*)
13426 # FIXME: insert proper C++ library support
13427 ld_shlibs_CXX=no
13428 ;;
13429 aix[4-9]*)
13430 if test "$host_cpu" = ia64; then
13431 # On IA64, the linker does run time linking by default, so we don't
13432 # have to do anything special.
13433 aix_use_runtimelinking=no
13434 exp_sym_flag='-Bexport'
13435 no_entry_flag=""
13436 else
13437 aix_use_runtimelinking=no
13438
13439 # Test if we are trying to use run time linking or normal
13440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13441 # need to do runtime linking.
13442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13443 for ld_flag in $LDFLAGS; do
13444 case $ld_flag in
13445 *-brtl*)
13446 aix_use_runtimelinking=yes
13447 break
13448 ;;
13449 esac
13450 done
13451 ;;
13452 esac
13453
13454 exp_sym_flag='-bexport'
13455 no_entry_flag='-bnoentry'
13456 fi
13457
13458 # When large executables or shared objects are built, AIX ld can
13459 # have problems creating the table of contents. If linking a library
13460 # or program results in "error TOC overflow" add -mminimal-toc to
13461 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13462 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13463
13464 archive_cmds_CXX=''
13465 hardcode_direct_CXX=yes
13466 hardcode_direct_absolute_CXX=yes
13467 hardcode_libdir_separator_CXX=':'
13468 link_all_deplibs_CXX=yes
13469 file_list_spec_CXX='${wl}-f,'
13470
13471 if test "$GXX" = yes; then
13472 case $host_os in aix4.[012]|aix4.[012].*)
13473 # We only want to do this on AIX 4.2 and lower, the check
13474 # below for broken collect2 doesn't work under 4.3+
13475 collect2name=`${CC} -print-prog-name=collect2`
13476 if test -f "$collect2name" &&
13477 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13478 then
13479 # We have reworked collect2
13480 :
13481 else
13482 # We have old collect2
13483 hardcode_direct_CXX=unsupported
13484 # It fails to find uninstalled libraries when the uninstalled
13485 # path is not listed in the libpath. Setting hardcode_minus_L
13486 # to unsupported forces relinking
13487 hardcode_minus_L_CXX=yes
13488 hardcode_libdir_flag_spec_CXX='-L$libdir'
13489 hardcode_libdir_separator_CXX=
13490 fi
13491 esac
13492 shared_flag='-shared'
13493 if test "$aix_use_runtimelinking" = yes; then
13494 shared_flag="$shared_flag "'${wl}-G'
13495 fi
13496 else
13497 # not using gcc
13498 if test "$host_cpu" = ia64; then
13499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13500 # chokes on -Wl,-G. The following line is correct:
13501 shared_flag='-G'
13502 else
13503 if test "$aix_use_runtimelinking" = yes; then
13504 shared_flag='${wl}-G'
13505 else
13506 shared_flag='${wl}-bM:SRE'
13507 fi
13508 fi
13509 fi
13510
13511 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13512 # It seems that -bexpall does not export symbols beginning with
13513 # underscore (_), so it is better to generate a list of symbols to
13514 # export.
13515 always_export_symbols_CXX=yes
13516 if test "$aix_use_runtimelinking" = yes; then
13517 # Warning - without using the other runtime loading flags (-brtl),
13518 # -berok will link without error, but may produce a broken library.
13519 allow_undefined_flag_CXX='-berok'
13520 # Determine the default libpath from the value encoded in an empty
13521 # executable.
13522 if test "${lt_cv_aix_libpath+set}" = set; then
13523 aix_libpath=$lt_cv_aix_libpath
13524 else
13525 if ${lt_cv_aix_libpath__CXX+:} false; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13530
13531 int
13532 main ()
13533 {
13534
13535 ;
13536 return 0;
13537 }
13538 _ACEOF
13539 if ac_fn_cxx_try_link "$LINENO"; then :
13540
13541 lt_aix_libpath_sed='
13542 /Import File Strings/,/^$/ {
13543 /^0/ {
13544 s/^0 *\([^ ]*\) *$/\1/
13545 p
13546 }
13547 }'
13548 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13549 # Check for a 64-bit object if we didn't find anything.
13550 if test -z "$lt_cv_aix_libpath__CXX"; then
13551 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13552 fi
13553 fi
13554 rm -f core conftest.err conftest.$ac_objext \
13555 conftest$ac_exeext conftest.$ac_ext
13556 if test -z "$lt_cv_aix_libpath__CXX"; then
13557 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13558 fi
13559
13560 fi
13561
13562 aix_libpath=$lt_cv_aix_libpath__CXX
13563 fi
13564
13565 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13566
13567 archive_expsym_cmds_CXX='$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"
13568 else
13569 if test "$host_cpu" = ia64; then
13570 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13571 allow_undefined_flag_CXX="-z nodefs"
13572 archive_expsym_cmds_CXX="\$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"
13573 else
13574 # Determine the default libpath from the value encoded in an
13575 # empty executable.
13576 if test "${lt_cv_aix_libpath+set}" = set; then
13577 aix_libpath=$lt_cv_aix_libpath
13578 else
13579 if ${lt_cv_aix_libpath__CXX+:} false; then :
13580 $as_echo_n "(cached) " >&6
13581 else
13582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13583 /* end confdefs.h. */
13584
13585 int
13586 main ()
13587 {
13588
13589 ;
13590 return 0;
13591 }
13592 _ACEOF
13593 if ac_fn_cxx_try_link "$LINENO"; then :
13594
13595 lt_aix_libpath_sed='
13596 /Import File Strings/,/^$/ {
13597 /^0/ {
13598 s/^0 *\([^ ]*\) *$/\1/
13599 p
13600 }
13601 }'
13602 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13603 # Check for a 64-bit object if we didn't find anything.
13604 if test -z "$lt_cv_aix_libpath__CXX"; then
13605 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13606 fi
13607 fi
13608 rm -f core conftest.err conftest.$ac_objext \
13609 conftest$ac_exeext conftest.$ac_ext
13610 if test -z "$lt_cv_aix_libpath__CXX"; then
13611 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13612 fi
13613
13614 fi
13615
13616 aix_libpath=$lt_cv_aix_libpath__CXX
13617 fi
13618
13619 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13620 # Warning - without using the other run time loading flags,
13621 # -berok will link without error, but may produce a broken library.
13622 no_undefined_flag_CXX=' ${wl}-bernotok'
13623 allow_undefined_flag_CXX=' ${wl}-berok'
13624 if test "$with_gnu_ld" = yes; then
13625 # We only use this code for GNU lds that support --whole-archive.
13626 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13627 else
13628 # Exported symbols can be pulled into shared objects from archives
13629 whole_archive_flag_spec_CXX='$convenience'
13630 fi
13631 archive_cmds_need_lc_CXX=yes
13632 # This is similar to how AIX traditionally builds its shared
13633 # libraries.
13634 archive_expsym_cmds_CXX="\$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'
13635 fi
13636 fi
13637 ;;
13638
13639 beos*)
13640 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13641 allow_undefined_flag_CXX=unsupported
13642 # Joseph Beckenbach <[email protected]> says some releases of gcc
13643 # support --undefined. This deserves some investigation. FIXME
13644 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13645 else
13646 ld_shlibs_CXX=no
13647 fi
13648 ;;
13649
13650 chorus*)
13651 case $cc_basename in
13652 *)
13653 # FIXME: insert proper C++ library support
13654 ld_shlibs_CXX=no
13655 ;;
13656 esac
13657 ;;
13658
13659 cygwin* | mingw* | pw32* | cegcc*)
13660 case $GXX,$cc_basename in
13661 ,cl* | no,cl*)
13662 # Native MSVC
13663 # hardcode_libdir_flag_spec is actually meaningless, as there is
13664 # no search path for DLLs.
13665 hardcode_libdir_flag_spec_CXX=' '
13666 allow_undefined_flag_CXX=unsupported
13667 always_export_symbols_CXX=yes
13668 file_list_spec_CXX='@'
13669 # Tell ltmain to make .lib files, not .a files.
13670 libext=lib
13671 # Tell ltmain to make .dll files, not .so files.
13672 shrext_cmds=".dll"
13673 # FIXME: Setting linknames here is a bad hack.
13674 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13675 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13676 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13677 else
13678 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13679 fi~
13680 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" //link //DLL //IMPLIB:"$tool_output_objdir$libname.lib"~
13681 linknames='
13682 # The linker will not automatically build a static lib if we build a DLL.
13683 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13684 enable_shared_with_static_runtimes_CXX=yes
13685 # Don't use ranlib
13686 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13687 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13688 lt_tool_outputfile="@TOOL_OUTPUT@"~
13689 case $lt_outputfile in
13690 *.exe|*.EXE) ;;
13691 *)
13692 lt_outputfile="$lt_outputfile.exe"
13693 lt_tool_outputfile="$lt_tool_outputfile.exe"
13694 ;;
13695 esac~
13696 func_to_tool_file "$lt_outputfile"~
13697 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13698 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13699 $RM "$lt_outputfile.manifest";
13700 fi'
13701 ;;
13702 *)
13703 # g++
13704 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13705 # as there is no search path for DLLs.
13706 hardcode_libdir_flag_spec_CXX='-L$libdir'
13707 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13708 allow_undefined_flag_CXX=unsupported
13709 always_export_symbols_CXX=no
13710 enable_shared_with_static_runtimes_CXX=yes
13711
13712 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13714 # If the export-symbols file already is a .def file (1st line
13715 # is EXPORTS), use it as is; otherwise, prepend...
13716 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13717 cp $export_symbols $output_objdir/$soname.def;
13718 else
13719 echo EXPORTS > $output_objdir/$soname.def;
13720 cat $export_symbols >> $output_objdir/$soname.def;
13721 fi~
13722 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13723 else
13724 ld_shlibs_CXX=no
13725 fi
13726 ;;
13727 esac
13728 ;;
13729 darwin* | rhapsody*)
13730
13731
13732 archive_cmds_need_lc_CXX=no
13733 hardcode_direct_CXX=no
13734 hardcode_automatic_CXX=yes
13735 hardcode_shlibpath_var_CXX=unsupported
13736 if test "$lt_cv_ld_force_load" = "yes"; then
13737 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
13738
13739 else
13740 whole_archive_flag_spec_CXX=''
13741 fi
13742 link_all_deplibs_CXX=yes
13743 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13744 case $cc_basename in
13745 ifort*) _lt_dar_can_shared=yes ;;
13746 *) _lt_dar_can_shared=$GCC ;;
13747 esac
13748 if test "$_lt_dar_can_shared" = "yes"; then
13749 output_verbose_link_cmd=func_echo_all
13750 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13751 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13752 archive_expsym_cmds_CXX="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}"
13753 module_expsym_cmds_CXX="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}"
13754 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13755 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13756 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13757 fi
13758
13759 else
13760 ld_shlibs_CXX=no
13761 fi
13762
13763 ;;
13764
13765 dgux*)
13766 case $cc_basename in
13767 ec++*)
13768 # FIXME: insert proper C++ library support
13769 ld_shlibs_CXX=no
13770 ;;
13771 ghcx*)
13772 # Green Hills C++ Compiler
13773 # FIXME: insert proper C++ library support
13774 ld_shlibs_CXX=no
13775 ;;
13776 *)
13777 # FIXME: insert proper C++ library support
13778 ld_shlibs_CXX=no
13779 ;;
13780 esac
13781 ;;
13782
13783 freebsd2.*)
13784 # C++ shared libraries reported to be fairly broken before
13785 # switch to ELF
13786 ld_shlibs_CXX=no
13787 ;;
13788
13789 freebsd-elf*)
13790 archive_cmds_need_lc_CXX=no
13791 ;;
13792
13793 freebsd* | dragonfly*)
13794 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13795 # conventions
13796 ld_shlibs_CXX=yes
13797 ;;
13798
13799 gnu*)
13800 ;;
13801
13802 haiku*)
13803 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13804 link_all_deplibs_CXX=yes
13805 ;;
13806
13807 hpux9*)
13808 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13809 hardcode_libdir_separator_CXX=:
13810 export_dynamic_flag_spec_CXX='${wl}-E'
13811 hardcode_direct_CXX=yes
13812 hardcode_minus_L_CXX=yes # Not in the search PATH,
13813 # but as the default
13814 # location of the library.
13815
13816 case $cc_basename in
13817 CC*)
13818 # FIXME: insert proper C++ library support
13819 ld_shlibs_CXX=no
13820 ;;
13821 aCC*)
13822 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13823 # Commands to make compiler produce verbose output that lists
13824 # what "hidden" libraries, object files and flags are used when
13825 # linking a shared library.
13826 #
13827 # There doesn't appear to be a way to prevent this compiler from
13828 # explicitly linking system object files so we need to strip them
13829 # from the output so that they don't get included in the library
13830 # dependencies.
13831 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13832 ;;
13833 *)
13834 if test "$GXX" = yes; then
13835 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13836 else
13837 # FIXME: insert proper C++ library support
13838 ld_shlibs_CXX=no
13839 fi
13840 ;;
13841 esac
13842 ;;
13843
13844 hpux10*|hpux11*)
13845 if test $with_gnu_ld = no; then
13846 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13847 hardcode_libdir_separator_CXX=:
13848
13849 case $host_cpu in
13850 hppa*64*|ia64*)
13851 ;;
13852 *)
13853 export_dynamic_flag_spec_CXX='${wl}-E'
13854 ;;
13855 esac
13856 fi
13857 case $host_cpu in
13858 hppa*64*|ia64*)
13859 hardcode_direct_CXX=no
13860 hardcode_shlibpath_var_CXX=no
13861 ;;
13862 *)
13863 hardcode_direct_CXX=yes
13864 hardcode_direct_absolute_CXX=yes
13865 hardcode_minus_L_CXX=yes # Not in the search PATH,
13866 # but as the default
13867 # location of the library.
13868 ;;
13869 esac
13870
13871 case $cc_basename in
13872 CC*)
13873 # FIXME: insert proper C++ library support
13874 ld_shlibs_CXX=no
13875 ;;
13876 aCC*)
13877 case $host_cpu in
13878 hppa*64*)
13879 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13880 ;;
13881 ia64*)
13882 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13883 ;;
13884 *)
13885 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13886 ;;
13887 esac
13888 # Commands to make compiler produce verbose output that lists
13889 # what "hidden" libraries, object files and flags are used when
13890 # linking a shared library.
13891 #
13892 # There doesn't appear to be a way to prevent this compiler from
13893 # explicitly linking system object files so we need to strip them
13894 # from the output so that they don't get included in the library
13895 # dependencies.
13896 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13897 ;;
13898 *)
13899 if test "$GXX" = yes; then
13900 if test $with_gnu_ld = no; then
13901 case $host_cpu in
13902 hppa*64*)
13903 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13904 ;;
13905 ia64*)
13906 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13907 ;;
13908 *)
13909 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13910 ;;
13911 esac
13912 fi
13913 else
13914 # FIXME: insert proper C++ library support
13915 ld_shlibs_CXX=no
13916 fi
13917 ;;
13918 esac
13919 ;;
13920
13921 interix[3-9]*)
13922 hardcode_direct_CXX=no
13923 hardcode_shlibpath_var_CXX=no
13924 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13925 export_dynamic_flag_spec_CXX='${wl}-E'
13926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13927 # Instead, shared libraries are loaded at an image base (0x10000000 by
13928 # default) and relocated if they conflict, which is a slow very memory
13929 # consuming and fragmenting process. To avoid this, we pick a random,
13930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13932 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
13933 archive_expsym_cmds_CXX='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'
13934 ;;
13935 irix5* | irix6*)
13936 case $cc_basename in
13937 CC*)
13938 # SGI C++
13939 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
13940
13941 # Archives containing C++ object files must be created using
13942 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13943 # necessary to make sure instantiated templates are included
13944 # in the archive.
13945 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13946 ;;
13947 *)
13948 if test "$GXX" = yes; then
13949 if test "$with_gnu_ld" = no; then
13950 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
13951 else
13952 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13953 fi
13954 fi
13955 link_all_deplibs_CXX=yes
13956 ;;
13957 esac
13958 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13959 hardcode_libdir_separator_CXX=:
13960 inherit_rpath_CXX=yes
13961 ;;
13962
13963 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13964 case $cc_basename in
13965 KCC*)
13966 # Kuck and Associates, Inc. (KAI) C++ Compiler
13967
13968 # KCC will only create a shared library if the output file
13969 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13970 # to its proper name (with version) after linking.
13971 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
13972 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
13973 # Commands to make compiler produce verbose output that lists
13974 # what "hidden" libraries, object files and flags are used when
13975 # linking a shared library.
13976 #
13977 # There doesn't appear to be a way to prevent this compiler from
13978 # explicitly linking system object files so we need to strip them
13979 # from the output so that they don't get included in the library
13980 # dependencies.
13981 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13982
13983 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13984 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13985
13986 # Archives containing C++ object files must be created using
13987 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13988 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13989 ;;
13990 icpc* | ecpc* )
13991 # Intel C++
13992 with_gnu_ld=yes
13993 # version 8.0 and above of icpc choke on multiply defined symbols
13994 # if we add $predep_objects and $postdep_objects, however 7.1 and
13995 # earlier do not add the objects themselves.
13996 case `$CC -V 2>&1` in
13997 *"Version 7."*)
13998 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13999 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14000 ;;
14001 *) # Version 8.0 or newer
14002 tmp_idyn=
14003 case $host_cpu in
14004 ia64*) tmp_idyn=' -i_dynamic';;
14005 esac
14006 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14007 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14008 ;;
14009 esac
14010 archive_cmds_need_lc_CXX=no
14011 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14012 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14013 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14014 ;;
14015 pgCC* | pgcpp*)
14016 # Portland Group C++ compiler
14017 case `$CC -V` in
14018 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14019 prelink_cmds_CXX='tpldir=Template.dir~
14020 rm -rf $tpldir~
14021 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14022 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14023 old_archive_cmds_CXX='tpldir=Template.dir~
14024 rm -rf $tpldir~
14025 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14026 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14027 $RANLIB $oldlib'
14028 archive_cmds_CXX='tpldir=Template.dir~
14029 rm -rf $tpldir~
14030 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14031 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14032 archive_expsym_cmds_CXX='tpldir=Template.dir~
14033 rm -rf $tpldir~
14034 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14035 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14036 ;;
14037 *) # Version 6 and above use weak symbols
14038 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14039 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14040 ;;
14041 esac
14042
14043 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14044 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14045 whole_archive_flag_spec_CXX='${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'
14046 ;;
14047 cxx*)
14048 # Compaq C++
14049 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14050 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14051
14052 runpath_var=LD_RUN_PATH
14053 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14054 hardcode_libdir_separator_CXX=:
14055
14056 # Commands to make compiler produce verbose output that lists
14057 # what "hidden" libraries, object files and flags are used when
14058 # linking a shared library.
14059 #
14060 # There doesn't appear to be a way to prevent this compiler from
14061 # explicitly linking system object files so we need to strip them
14062 # from the output so that they don't get included in the library
14063 # dependencies.
14064 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14065 ;;
14066 xl* | mpixl* | bgxl*)
14067 # IBM XL 8.0 on PPC, with GNU ld
14068 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14069 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14070 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14071 if test "x$supports_anon_versioning" = xyes; then
14072 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14073 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14074 echo "local: *; };" >> $output_objdir/$libname.ver~
14075 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14076 fi
14077 ;;
14078 *)
14079 case `$CC -V 2>&1 | sed 5q` in
14080 *Sun\ C*)
14081 # Sun C++ 5.9
14082 no_undefined_flag_CXX=' -zdefs'
14083 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14084 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14085 hardcode_libdir_flag_spec_CXX='-R$libdir'
14086 whole_archive_flag_spec_CXX='${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'
14087 compiler_needs_object_CXX=yes
14088
14089 # Not sure whether something based on
14090 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14091 # would be better.
14092 output_verbose_link_cmd='func_echo_all'
14093
14094 # Archives containing C++ object files must be created using
14095 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14096 # necessary to make sure instantiated templates are included
14097 # in the archive.
14098 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14099 ;;
14100 esac
14101 ;;
14102 esac
14103 ;;
14104
14105 lynxos*)
14106 # FIXME: insert proper C++ library support
14107 ld_shlibs_CXX=no
14108 ;;
14109
14110 m88k*)
14111 # FIXME: insert proper C++ library support
14112 ld_shlibs_CXX=no
14113 ;;
14114
14115 mvs*)
14116 case $cc_basename in
14117 cxx*)
14118 # FIXME: insert proper C++ library support
14119 ld_shlibs_CXX=no
14120 ;;
14121 *)
14122 # FIXME: insert proper C++ library support
14123 ld_shlibs_CXX=no
14124 ;;
14125 esac
14126 ;;
14127
14128 netbsd*)
14129 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14130 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14131 wlarc=
14132 hardcode_libdir_flag_spec_CXX='-R$libdir'
14133 hardcode_direct_CXX=yes
14134 hardcode_shlibpath_var_CXX=no
14135 fi
14136 # Workaround some broken pre-1.5 toolchains
14137 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14138 ;;
14139
14140 *nto* | *qnx*)
14141 ld_shlibs_CXX=yes
14142 ;;
14143
14144 openbsd2*)
14145 # C++ shared libraries are fairly broken
14146 ld_shlibs_CXX=no
14147 ;;
14148
14149 openbsd*)
14150 if test -f /usr/libexec/ld.so; then
14151 hardcode_direct_CXX=yes
14152 hardcode_shlibpath_var_CXX=no
14153 hardcode_direct_absolute_CXX=yes
14154 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14155 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14156 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14157 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14158 export_dynamic_flag_spec_CXX='${wl}-E'
14159 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14160 fi
14161 output_verbose_link_cmd=func_echo_all
14162 else
14163 ld_shlibs_CXX=no
14164 fi
14165 ;;
14166
14167 osf3* | osf4* | osf5*)
14168 case $cc_basename in
14169 KCC*)
14170 # Kuck and Associates, Inc. (KAI) C++ Compiler
14171
14172 # KCC will only create a shared library if the output file
14173 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14174 # to its proper name (with version) after linking.
14175 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14176
14177 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14178 hardcode_libdir_separator_CXX=:
14179
14180 # Archives containing C++ object files must be created using
14181 # the KAI C++ compiler.
14182 case $host in
14183 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14184 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14185 esac
14186 ;;
14187 RCC*)
14188 # Rational C++ 2.4.1
14189 # FIXME: insert proper C++ library support
14190 ld_shlibs_CXX=no
14191 ;;
14192 cxx*)
14193 case $host in
14194 osf3*)
14195 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14196 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14197 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14198 ;;
14199 *)
14200 allow_undefined_flag_CXX=' -expect_unresolved \*'
14201 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14202 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14203 echo "-hidden">> $lib.exp~
14204 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14205 $RM $lib.exp'
14206 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14207 ;;
14208 esac
14209
14210 hardcode_libdir_separator_CXX=:
14211
14212 # Commands to make compiler produce verbose output that lists
14213 # what "hidden" libraries, object files and flags are used when
14214 # linking a shared library.
14215 #
14216 # There doesn't appear to be a way to prevent this compiler from
14217 # explicitly linking system object files so we need to strip them
14218 # from the output so that they don't get included in the library
14219 # dependencies.
14220 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14221 ;;
14222 *)
14223 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14224 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14225 case $host in
14226 osf3*)
14227 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14228 ;;
14229 *)
14230 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
14231 ;;
14232 esac
14233
14234 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14235 hardcode_libdir_separator_CXX=:
14236
14237 # Commands to make compiler produce verbose output that lists
14238 # what "hidden" libraries, object files and flags are used when
14239 # linking a shared library.
14240 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14241
14242 else
14243 # FIXME: insert proper C++ library support
14244 ld_shlibs_CXX=no
14245 fi
14246 ;;
14247 esac
14248 ;;
14249
14250 psos*)
14251 # FIXME: insert proper C++ library support
14252 ld_shlibs_CXX=no
14253 ;;
14254
14255 sunos4*)
14256 case $cc_basename in
14257 CC*)
14258 # Sun C++ 4.x
14259 # FIXME: insert proper C++ library support
14260 ld_shlibs_CXX=no
14261 ;;
14262 lcc*)
14263 # Lucid
14264 # FIXME: insert proper C++ library support
14265 ld_shlibs_CXX=no
14266 ;;
14267 *)
14268 # FIXME: insert proper C++ library support
14269 ld_shlibs_CXX=no
14270 ;;
14271 esac
14272 ;;
14273
14274 solaris*)
14275 case $cc_basename in
14276 CC* | sunCC*)
14277 # Sun C++ 4.2, 5.x and Centerline C++
14278 archive_cmds_need_lc_CXX=yes
14279 no_undefined_flag_CXX=' -zdefs'
14280 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14281 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14282 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14283
14284 hardcode_libdir_flag_spec_CXX='-R$libdir'
14285 hardcode_shlibpath_var_CXX=no
14286 case $host_os in
14287 solaris2.[0-5] | solaris2.[0-5].*) ;;
14288 *)
14289 # The compiler driver will combine and reorder linker options,
14290 # but understands `-z linker_flag'.
14291 # Supported since Solaris 2.6 (maybe 2.5.1?)
14292 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14293 ;;
14294 esac
14295 link_all_deplibs_CXX=yes
14296
14297 output_verbose_link_cmd='func_echo_all'
14298
14299 # Archives containing C++ object files must be created using
14300 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14301 # necessary to make sure instantiated templates are included
14302 # in the archive.
14303 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14304 ;;
14305 gcx*)
14306 # Green Hills C++ Compiler
14307 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14308
14309 # The C++ compiler must be used to create the archive.
14310 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14311 ;;
14312 *)
14313 # GNU C++ compiler with Solaris linker
14314 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14315 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14316 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14317 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14318 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14319 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14320
14321 # Commands to make compiler produce verbose output that lists
14322 # what "hidden" libraries, object files and flags are used when
14323 # linking a shared library.
14324 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14325 else
14326 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14327 # platform.
14328 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14329 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14330 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14331
14332 # Commands to make compiler produce verbose output that lists
14333 # what "hidden" libraries, object files and flags are used when
14334 # linking a shared library.
14335 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14336 fi
14337
14338 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14339 case $host_os in
14340 solaris2.[0-5] | solaris2.[0-5].*) ;;
14341 *)
14342 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14343 ;;
14344 esac
14345 fi
14346 ;;
14347 esac
14348 ;;
14349
14350 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14351 no_undefined_flag_CXX='${wl}-z,text'
14352 archive_cmds_need_lc_CXX=no
14353 hardcode_shlibpath_var_CXX=no
14354 runpath_var='LD_RUN_PATH'
14355
14356 case $cc_basename in
14357 CC*)
14358 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14360 ;;
14361 *)
14362 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14363 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14364 ;;
14365 esac
14366 ;;
14367
14368 sysv5* | sco3.2v5* | sco5v6*)
14369 # Note: We can NOT use -z defs as we might desire, because we do not
14370 # link with -lc, and that would cause any symbols used from libc to
14371 # always be unresolved, which means just about no library would
14372 # ever link correctly. If we're not using GNU ld we use -z text
14373 # though, which does catch some bad symbols but isn't as heavy-handed
14374 # as -z defs.
14375 no_undefined_flag_CXX='${wl}-z,text'
14376 allow_undefined_flag_CXX='${wl}-z,nodefs'
14377 archive_cmds_need_lc_CXX=no
14378 hardcode_shlibpath_var_CXX=no
14379 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14380 hardcode_libdir_separator_CXX=':'
14381 link_all_deplibs_CXX=yes
14382 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14383 runpath_var='LD_RUN_PATH'
14384
14385 case $cc_basename in
14386 CC*)
14387 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14388 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14389 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14390 '"$old_archive_cmds_CXX"
14391 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14392 '"$reload_cmds_CXX"
14393 ;;
14394 *)
14395 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14396 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14397 ;;
14398 esac
14399 ;;
14400
14401 tandem*)
14402 case $cc_basename in
14403 NCC*)
14404 # NonStop-UX NCC 3.20
14405 # FIXME: insert proper C++ library support
14406 ld_shlibs_CXX=no
14407 ;;
14408 *)
14409 # FIXME: insert proper C++ library support
14410 ld_shlibs_CXX=no
14411 ;;
14412 esac
14413 ;;
14414
14415 vxworks*)
14416 # FIXME: insert proper C++ library support
14417 ld_shlibs_CXX=no
14418 ;;
14419
14420 *)
14421 # FIXME: insert proper C++ library support
14422 ld_shlibs_CXX=no
14423 ;;
14424 esac
14425
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14427 $as_echo "$ld_shlibs_CXX" >&6; }
14428 test "$ld_shlibs_CXX" = no && can_build_shared=no
14429
14430 GCC_CXX="$GXX"
14431 LD_CXX="$LD"
14432
14433 ## CAVEAT EMPTOR:
14434 ## There is no encapsulation within the following macros, do not change
14435 ## the running order or otherwise move them around unless you know exactly
14436 ## what you are doing...
14437 # Dependencies to place before and after the object being linked:
14438 predep_objects_CXX=
14439 postdep_objects_CXX=
14440 predeps_CXX=
14441 postdeps_CXX=
14442 compiler_lib_search_path_CXX=
14443
14444 cat > conftest.$ac_ext <<_LT_EOF
14445 class Foo
14446 {
14447 public:
14448 Foo (void) { a = 0; }
14449 private:
14450 int a;
14451 };
14452 _LT_EOF
14453
14454
14455 _lt_libdeps_save_CFLAGS=$CFLAGS
14456 case "$CC $CFLAGS " in #(
14457 *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14458 *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14459 *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
14460 esac
14461
14462 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14463 (eval $ac_compile) 2>&5
14464 ac_status=$?
14465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14466 test $ac_status = 0; }; then
14467 # Parse the compiler output and extract the necessary
14468 # objects, libraries and library flags.
14469
14470 # Sentinel used to keep track of whether or not we are before
14471 # the conftest object file.
14472 pre_test_object_deps_done=no
14473
14474 for p in `eval "$output_verbose_link_cmd"`; do
14475 case ${prev}${p} in
14476
14477 -L* | -R* | -l*)
14478 # Some compilers place space between "-{L,R}" and the path.
14479 # Remove the space.
14480 if test $p = "-L" ||
14481 test $p = "-R"; then
14482 prev=$p
14483 continue
14484 fi
14485
14486 # Expand the sysroot to ease extracting the directories later.
14487 if test -z "$prev"; then
14488 case $p in
14489 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14490 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14491 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14492 esac
14493 fi
14494 case $p in
14495 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14496 esac
14497 if test "$pre_test_object_deps_done" = no; then
14498 case ${prev} in
14499 -L | -R)
14500 # Internal compiler library paths should come after those
14501 # provided the user. The postdeps already come after the
14502 # user supplied libs so there is no need to process them.
14503 if test -z "$compiler_lib_search_path_CXX"; then
14504 compiler_lib_search_path_CXX="${prev}${p}"
14505 else
14506 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14507 fi
14508 ;;
14509 # The "-l" case would never come before the object being
14510 # linked, so don't bother handling this case.
14511 esac
14512 else
14513 if test -z "$postdeps_CXX"; then
14514 postdeps_CXX="${prev}${p}"
14515 else
14516 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14517 fi
14518 fi
14519 prev=
14520 ;;
14521
14522 *.lto.$objext) ;; # Ignore GCC LTO objects
14523 *.$objext)
14524 # This assumes that the test object file only shows up
14525 # once in the compiler output.
14526 if test "$p" = "conftest.$objext"; then
14527 pre_test_object_deps_done=yes
14528 continue
14529 fi
14530
14531 if test "$pre_test_object_deps_done" = no; then
14532 if test -z "$predep_objects_CXX"; then
14533 predep_objects_CXX="$p"
14534 else
14535 predep_objects_CXX="$predep_objects_CXX $p"
14536 fi
14537 else
14538 if test -z "$postdep_objects_CXX"; then
14539 postdep_objects_CXX="$p"
14540 else
14541 postdep_objects_CXX="$postdep_objects_CXX $p"
14542 fi
14543 fi
14544 ;;
14545
14546 *) ;; # Ignore the rest.
14547
14548 esac
14549 done
14550
14551 # Clean up.
14552 rm -f a.out a.exe
14553 else
14554 echo "libtool.m4: error: problem compiling CXX test program"
14555 fi
14556
14557 $RM -f confest.$objext
14558 CFLAGS=$_lt_libdeps_save_CFLAGS
14559
14560 # PORTME: override above test on systems where it is broken
14561 case $host_os in
14562 interix[3-9]*)
14563 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14564 # hack all around it, let's just trust "g++" to DTRT.
14565 predep_objects_CXX=
14566 postdep_objects_CXX=
14567 postdeps_CXX=
14568 ;;
14569
14570 linux*)
14571 case `$CC -V 2>&1 | sed 5q` in
14572 *Sun\ C*)
14573 # Sun C++ 5.9
14574
14575 # The more standards-conforming stlport4 library is
14576 # incompatible with the Cstd library. Avoid specifying
14577 # it if it's in CXXFLAGS. Ignore libCrun as
14578 # -library=stlport4 depends on it.
14579 case " $CXX $CXXFLAGS " in
14580 *" -library=stlport4 "*)
14581 solaris_use_stlport4=yes
14582 ;;
14583 esac
14584
14585 if test "$solaris_use_stlport4" != yes; then
14586 postdeps_CXX='-library=Cstd -library=Crun'
14587 fi
14588 ;;
14589 esac
14590 ;;
14591
14592 solaris*)
14593 case $cc_basename in
14594 CC* | sunCC*)
14595 # The more standards-conforming stlport4 library is
14596 # incompatible with the Cstd library. Avoid specifying
14597 # it if it's in CXXFLAGS. Ignore libCrun as
14598 # -library=stlport4 depends on it.
14599 case " $CXX $CXXFLAGS " in
14600 *" -library=stlport4 "*)
14601 solaris_use_stlport4=yes
14602 ;;
14603 esac
14604
14605 # Adding this requires a known-good setup of shared libraries for
14606 # Sun compiler versions before 5.6, else PIC objects from an old
14607 # archive will be linked into the output, leading to subtle bugs.
14608 if test "$solaris_use_stlport4" != yes; then
14609 postdeps_CXX='-library=Cstd -library=Crun'
14610 fi
14611 ;;
14612 esac
14613 ;;
14614 esac
14615
14616
14617 case " $postdeps_CXX " in
14618 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14619 esac
14620 compiler_lib_search_dirs_CXX=
14621 if test -n "${compiler_lib_search_path_CXX}"; then
14622 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14623 fi
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655 lt_prog_compiler_wl_CXX=
14656 lt_prog_compiler_pic_CXX=
14657 lt_prog_compiler_static_CXX=
14658
14659
14660 # C++ specific cases for pic, static, wl, etc.
14661 if test "$GXX" = yes; then
14662 lt_prog_compiler_wl_CXX='-Wl,'
14663 lt_prog_compiler_static_CXX='-static'
14664
14665 case $host_os in
14666 aix*)
14667 # All AIX code is PIC.
14668 if test "$host_cpu" = ia64; then
14669 # AIX 5 now supports IA64 processor
14670 lt_prog_compiler_static_CXX='-Bstatic'
14671 fi
14672 ;;
14673
14674 amigaos*)
14675 case $host_cpu in
14676 powerpc)
14677 # see comment about AmigaOS4 .so support
14678 lt_prog_compiler_pic_CXX='-fPIC'
14679 ;;
14680 m68k)
14681 # FIXME: we need at least 68020 code to build shared libraries, but
14682 # adding the `-m68020' flag to GCC prevents building anything better,
14683 # like `-m68040'.
14684 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14685 ;;
14686 esac
14687 ;;
14688
14689 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14690 # PIC is the default for these OSes.
14691 ;;
14692 mingw* | cygwin* | os2* | pw32* | cegcc*)
14693 # This hack is so that the source file can tell whether it is being
14694 # built for inclusion in a dll (and should export symbols for example).
14695 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14696 # (--disable-auto-import) libraries
14697 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14698 ;;
14699 darwin* | rhapsody*)
14700 # PIC is the default on this platform
14701 # Common symbols not allowed in MH_DYLIB files
14702 lt_prog_compiler_pic_CXX='-fno-common'
14703 ;;
14704 *djgpp*)
14705 # DJGPP does not support shared libraries at all
14706 lt_prog_compiler_pic_CXX=
14707 ;;
14708 haiku*)
14709 # PIC is the default for Haiku.
14710 # The "-static" flag exists, but is broken.
14711 lt_prog_compiler_static_CXX=
14712 ;;
14713 interix[3-9]*)
14714 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14715 # Instead, we relocate shared libraries at runtime.
14716 ;;
14717 sysv4*MP*)
14718 if test -d /usr/nec; then
14719 lt_prog_compiler_pic_CXX=-Kconform_pic
14720 fi
14721 ;;
14722 hpux*)
14723 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14724 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14725 # sets the default TLS model and affects inlining.
14726 case $host_cpu in
14727 hppa*64*)
14728 ;;
14729 *)
14730 lt_prog_compiler_pic_CXX='-fPIC'
14731 ;;
14732 esac
14733 ;;
14734 *qnx* | *nto*)
14735 # QNX uses GNU C++, but need to define -shared option too, otherwise
14736 # it will coredump.
14737 lt_prog_compiler_pic_CXX='-fPIC -shared'
14738 ;;
14739 *)
14740 lt_prog_compiler_pic_CXX='-fPIC'
14741 ;;
14742 esac
14743 else
14744 case $host_os in
14745 aix[4-9]*)
14746 # All AIX code is PIC.
14747 if test "$host_cpu" = ia64; then
14748 # AIX 5 now supports IA64 processor
14749 lt_prog_compiler_static_CXX='-Bstatic'
14750 else
14751 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14752 fi
14753 ;;
14754 chorus*)
14755 case $cc_basename in
14756 cxch68*)
14757 # Green Hills C++ Compiler
14758 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14759 ;;
14760 esac
14761 ;;
14762 mingw* | cygwin* | os2* | pw32* | cegcc*)
14763 # This hack is so that the source file can tell whether it is being
14764 # built for inclusion in a dll (and should export symbols for example).
14765 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14766 ;;
14767 dgux*)
14768 case $cc_basename in
14769 ec++*)
14770 lt_prog_compiler_pic_CXX='-KPIC'
14771 ;;
14772 ghcx*)
14773 # Green Hills C++ Compiler
14774 lt_prog_compiler_pic_CXX='-pic'
14775 ;;
14776 *)
14777 ;;
14778 esac
14779 ;;
14780 freebsd* | dragonfly*)
14781 # FreeBSD uses GNU C++
14782 ;;
14783 hpux9* | hpux10* | hpux11*)
14784 case $cc_basename in
14785 CC*)
14786 lt_prog_compiler_wl_CXX='-Wl,'
14787 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14788 if test "$host_cpu" != ia64; then
14789 lt_prog_compiler_pic_CXX='+Z'
14790 fi
14791 ;;
14792 aCC*)
14793 lt_prog_compiler_wl_CXX='-Wl,'
14794 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14795 case $host_cpu in
14796 hppa*64*|ia64*)
14797 # +Z the default
14798 ;;
14799 *)
14800 lt_prog_compiler_pic_CXX='+Z'
14801 ;;
14802 esac
14803 ;;
14804 *)
14805 ;;
14806 esac
14807 ;;
14808 interix*)
14809 # This is c89, which is MS Visual C++ (no shared libs)
14810 # Anyone wants to do a port?
14811 ;;
14812 irix5* | irix6* | nonstopux*)
14813 case $cc_basename in
14814 CC*)
14815 lt_prog_compiler_wl_CXX='-Wl,'
14816 lt_prog_compiler_static_CXX='-non_shared'
14817 # CC pic flag -KPIC is the default.
14818 ;;
14819 *)
14820 ;;
14821 esac
14822 ;;
14823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14824 case $cc_basename in
14825 KCC*)
14826 # KAI C++ Compiler
14827 lt_prog_compiler_wl_CXX='--backend -Wl,'
14828 lt_prog_compiler_pic_CXX='-fPIC'
14829 ;;
14830 ecpc* )
14831 # old Intel C++ for x86_64 which still supported -KPIC.
14832 lt_prog_compiler_wl_CXX='-Wl,'
14833 lt_prog_compiler_pic_CXX='-KPIC'
14834 lt_prog_compiler_static_CXX='-static'
14835 ;;
14836 icpc* )
14837 # Intel C++, used to be incompatible with GCC.
14838 # ICC 10 doesn't accept -KPIC any more.
14839 lt_prog_compiler_wl_CXX='-Wl,'
14840 lt_prog_compiler_pic_CXX='-fPIC'
14841 lt_prog_compiler_static_CXX='-static'
14842 ;;
14843 pgCC* | pgcpp*)
14844 # Portland Group C++ compiler
14845 lt_prog_compiler_wl_CXX='-Wl,'
14846 lt_prog_compiler_pic_CXX='-fpic'
14847 lt_prog_compiler_static_CXX='-Bstatic'
14848 ;;
14849 cxx*)
14850 # Compaq C++
14851 # Make sure the PIC flag is empty. It appears that all Alpha
14852 # Linux and Compaq Tru64 Unix objects are PIC.
14853 lt_prog_compiler_pic_CXX=
14854 lt_prog_compiler_static_CXX='-non_shared'
14855 ;;
14856 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14857 # IBM XL 8.0, 9.0 on PPC and BlueGene
14858 lt_prog_compiler_wl_CXX='-Wl,'
14859 lt_prog_compiler_pic_CXX='-qpic'
14860 lt_prog_compiler_static_CXX='-qstaticlink'
14861 ;;
14862 *)
14863 case `$CC -V 2>&1 | sed 5q` in
14864 *Sun\ C*)
14865 # Sun C++ 5.9
14866 lt_prog_compiler_pic_CXX='-KPIC'
14867 lt_prog_compiler_static_CXX='-Bstatic'
14868 lt_prog_compiler_wl_CXX='-Qoption ld '
14869 ;;
14870 esac
14871 ;;
14872 esac
14873 ;;
14874 lynxos*)
14875 ;;
14876 m88k*)
14877 ;;
14878 mvs*)
14879 case $cc_basename in
14880 cxx*)
14881 lt_prog_compiler_pic_CXX='-W c,exportall'
14882 ;;
14883 *)
14884 ;;
14885 esac
14886 ;;
14887 netbsd*)
14888 ;;
14889 *qnx* | *nto*)
14890 # QNX uses GNU C++, but need to define -shared option too, otherwise
14891 # it will coredump.
14892 lt_prog_compiler_pic_CXX='-fPIC -shared'
14893 ;;
14894 osf3* | osf4* | osf5*)
14895 case $cc_basename in
14896 KCC*)
14897 lt_prog_compiler_wl_CXX='--backend -Wl,'
14898 ;;
14899 RCC*)
14900 # Rational C++ 2.4.1
14901 lt_prog_compiler_pic_CXX='-pic'
14902 ;;
14903 cxx*)
14904 # Digital/Compaq C++
14905 lt_prog_compiler_wl_CXX='-Wl,'
14906 # Make sure the PIC flag is empty. It appears that all Alpha
14907 # Linux and Compaq Tru64 Unix objects are PIC.
14908 lt_prog_compiler_pic_CXX=
14909 lt_prog_compiler_static_CXX='-non_shared'
14910 ;;
14911 *)
14912 ;;
14913 esac
14914 ;;
14915 psos*)
14916 ;;
14917 solaris*)
14918 case $cc_basename in
14919 CC* | sunCC*)
14920 # Sun C++ 4.2, 5.x and Centerline C++
14921 lt_prog_compiler_pic_CXX='-KPIC'
14922 lt_prog_compiler_static_CXX='-Bstatic'
14923 lt_prog_compiler_wl_CXX='-Qoption ld '
14924 ;;
14925 gcx*)
14926 # Green Hills C++ Compiler
14927 lt_prog_compiler_pic_CXX='-PIC'
14928 ;;
14929 *)
14930 ;;
14931 esac
14932 ;;
14933 sunos4*)
14934 case $cc_basename in
14935 CC*)
14936 # Sun C++ 4.x
14937 lt_prog_compiler_pic_CXX='-pic'
14938 lt_prog_compiler_static_CXX='-Bstatic'
14939 ;;
14940 lcc*)
14941 # Lucid
14942 lt_prog_compiler_pic_CXX='-pic'
14943 ;;
14944 *)
14945 ;;
14946 esac
14947 ;;
14948 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14949 case $cc_basename in
14950 CC*)
14951 lt_prog_compiler_wl_CXX='-Wl,'
14952 lt_prog_compiler_pic_CXX='-KPIC'
14953 lt_prog_compiler_static_CXX='-Bstatic'
14954 ;;
14955 esac
14956 ;;
14957 tandem*)
14958 case $cc_basename in
14959 NCC*)
14960 # NonStop-UX NCC 3.20
14961 lt_prog_compiler_pic_CXX='-KPIC'
14962 ;;
14963 *)
14964 ;;
14965 esac
14966 ;;
14967 vxworks*)
14968 ;;
14969 *)
14970 lt_prog_compiler_can_build_shared_CXX=no
14971 ;;
14972 esac
14973 fi
14974
14975 case $host_os in
14976 # For platforms which do not support PIC, -DPIC is meaningless:
14977 *djgpp*)
14978 lt_prog_compiler_pic_CXX=
14979 ;;
14980 *)
14981 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14982 ;;
14983 esac
14984
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14986 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14987 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14988 $as_echo_n "(cached) " >&6
14989 else
14990 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14991 fi
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14993 $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14994 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14995
14996 #
14997 # Check to make sure the PIC flag actually works.
14998 #
14999 if test -n "$lt_prog_compiler_pic_CXX"; then
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15001 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15002 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15003 $as_echo_n "(cached) " >&6
15004 else
15005 lt_cv_prog_compiler_pic_works_CXX=no
15006 ac_outfile=conftest.$ac_objext
15007 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15008 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15009 # Insert the option either (1) after the last *FLAGS variable, or
15010 # (2) before a word containing "conftest.", or (3) at the end.
15011 # Note that $ac_compile itself does not contain backslashes and begins
15012 # with a dollar sign (not a hyphen), so the echo should work correctly.
15013 # The option is referenced via a variable to avoid confusing sed.
15014 lt_compile=`echo "$ac_compile" | $SED \
15015 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15016 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15017 -e 's:$: $lt_compiler_flag:'`
15018 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15019 (eval "$lt_compile" 2>conftest.err)
15020 ac_status=$?
15021 cat conftest.err >&5
15022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15023 if (exit $ac_status) && test -s "$ac_outfile"; then
15024 # The compiler can only warn and ignore the option if not recognized
15025 # So say no if there are warnings other than the usual output.
15026 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15027 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15028 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15029 lt_cv_prog_compiler_pic_works_CXX=yes
15030 fi
15031 fi
15032 $RM conftest*
15033
15034 fi
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15036 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15037
15038 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15039 case $lt_prog_compiler_pic_CXX in
15040 "" | " "*) ;;
15041 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15042 esac
15043 else
15044 lt_prog_compiler_pic_CXX=
15045 lt_prog_compiler_can_build_shared_CXX=no
15046 fi
15047
15048 fi
15049
15050
15051
15052
15053
15054 #
15055 # Check to make sure the static flag actually works.
15056 #
15057 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15059 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15060 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15061 $as_echo_n "(cached) " >&6
15062 else
15063 lt_cv_prog_compiler_static_works_CXX=no
15064 save_LDFLAGS="$LDFLAGS"
15065 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15066 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15067 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15068 # The linker can only warn and ignore the option if not recognized
15069 # So say no if there are warnings
15070 if test -s conftest.err; then
15071 # Append any errors to the config.log.
15072 cat conftest.err 1>&5
15073 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15074 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15075 if diff conftest.exp conftest.er2 >/dev/null; then
15076 lt_cv_prog_compiler_static_works_CXX=yes
15077 fi
15078 else
15079 lt_cv_prog_compiler_static_works_CXX=yes
15080 fi
15081 fi
15082 $RM -r conftest*
15083 LDFLAGS="$save_LDFLAGS"
15084
15085 fi
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15087 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15088
15089 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15090 :
15091 else
15092 lt_prog_compiler_static_CXX=
15093 fi
15094
15095
15096
15097
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15099 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15100 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15101 $as_echo_n "(cached) " >&6
15102 else
15103 lt_cv_prog_compiler_c_o_CXX=no
15104 $RM -r conftest 2>/dev/null
15105 mkdir conftest
15106 cd conftest
15107 mkdir out
15108 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15109
15110 lt_compiler_flag="-o out/conftest2.$ac_objext"
15111 # Insert the option either (1) after the last *FLAGS variable, or
15112 # (2) before a word containing "conftest.", or (3) at the end.
15113 # Note that $ac_compile itself does not contain backslashes and begins
15114 # with a dollar sign (not a hyphen), so the echo should work correctly.
15115 lt_compile=`echo "$ac_compile" | $SED \
15116 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15117 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15118 -e 's:$: $lt_compiler_flag:'`
15119 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15120 (eval "$lt_compile" 2>out/conftest.err)
15121 ac_status=$?
15122 cat out/conftest.err >&5
15123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15124 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15125 then
15126 # The compiler can only warn and ignore the option if not recognized
15127 # So say no if there are warnings
15128 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15129 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15130 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15131 lt_cv_prog_compiler_c_o_CXX=yes
15132 fi
15133 fi
15134 chmod u+w . 2>&5
15135 $RM conftest*
15136 # SGI C++ compiler will create directory out/ii_files/ for
15137 # template instantiation
15138 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15139 $RM out/* && rmdir out
15140 cd ..
15141 $RM -r conftest
15142 $RM conftest*
15143
15144 fi
15145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15146 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15147
15148
15149
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15151 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15152 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15153 $as_echo_n "(cached) " >&6
15154 else
15155 lt_cv_prog_compiler_c_o_CXX=no
15156 $RM -r conftest 2>/dev/null
15157 mkdir conftest
15158 cd conftest
15159 mkdir out
15160 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15161
15162 lt_compiler_flag="-o out/conftest2.$ac_objext"
15163 # Insert the option either (1) after the last *FLAGS variable, or
15164 # (2) before a word containing "conftest.", or (3) at the end.
15165 # Note that $ac_compile itself does not contain backslashes and begins
15166 # with a dollar sign (not a hyphen), so the echo should work correctly.
15167 lt_compile=`echo "$ac_compile" | $SED \
15168 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15169 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15170 -e 's:$: $lt_compiler_flag:'`
15171 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15172 (eval "$lt_compile" 2>out/conftest.err)
15173 ac_status=$?
15174 cat out/conftest.err >&5
15175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15176 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15177 then
15178 # The compiler can only warn and ignore the option if not recognized
15179 # So say no if there are warnings
15180 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15181 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15182 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15183 lt_cv_prog_compiler_c_o_CXX=yes
15184 fi
15185 fi
15186 chmod u+w . 2>&5
15187 $RM conftest*
15188 # SGI C++ compiler will create directory out/ii_files/ for
15189 # template instantiation
15190 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15191 $RM out/* && rmdir out
15192 cd ..
15193 $RM -r conftest
15194 $RM conftest*
15195
15196 fi
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15198 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15199
15200
15201
15202
15203 hard_links="nottested"
15204 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15205 # do not overwrite the value of need_locks provided by the user
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15207 $as_echo_n "checking if we can lock with hard links... " >&6; }
15208 hard_links=yes
15209 $RM conftest*
15210 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15211 touch conftest.a
15212 ln conftest.a conftest.b 2>&5 || hard_links=no
15213 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15215 $as_echo "$hard_links" >&6; }
15216 if test "$hard_links" = no; then
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15218 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15219 need_locks=warn
15220 fi
15221 else
15222 need_locks=no
15223 fi
15224
15225
15226
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15228 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15229
15230 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15231 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15232 case $host_os in
15233 aix[4-9]*)
15234 # If we're using GNU nm, then we don't want the "-C" option.
15235 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15236 # Also, AIX nm treats weak defined symbols like other global defined
15237 # symbols, whereas GNU nm marks them as "W".
15238 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15239 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15240 else
15241 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15242 fi
15243 ;;
15244 pw32*)
15245 export_symbols_cmds_CXX="$ltdll_cmds"
15246 ;;
15247 cygwin* | mingw* | cegcc*)
15248 case $cc_basename in
15249 cl*)
15250 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15251 ;;
15252 *)
15253 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15254 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15255 ;;
15256 esac
15257 ;;
15258 *)
15259 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15260 ;;
15261 esac
15262
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15264 $as_echo "$ld_shlibs_CXX" >&6; }
15265 test "$ld_shlibs_CXX" = no && can_build_shared=no
15266
15267 with_gnu_ld_CXX=$with_gnu_ld
15268
15269
15270
15271
15272
15273
15274 #
15275 # Do we need to explicitly link libc?
15276 #
15277 case "x$archive_cmds_need_lc_CXX" in
15278 x|xyes)
15279 # Assume -lc should be added
15280 archive_cmds_need_lc_CXX=yes
15281
15282 if test "$enable_shared" = yes && test "$GCC" = yes; then
15283 case $archive_cmds_CXX in
15284 *'~'*)
15285 # FIXME: we may have to deal with multi-command sequences.
15286 ;;
15287 '$CC '*)
15288 # Test whether the compiler implicitly links with -lc since on some
15289 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15290 # to ld, don't add -lc before -lgcc.
15291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15292 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15293 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15294 $as_echo_n "(cached) " >&6
15295 else
15296 $RM conftest*
15297 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15298
15299 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15300 (eval $ac_compile) 2>&5
15301 ac_status=$?
15302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15303 test $ac_status = 0; } 2>conftest.err; then
15304 soname=conftest
15305 lib=conftest
15306 libobjs=conftest.$ac_objext
15307 deplibs=
15308 wl=$lt_prog_compiler_wl_CXX
15309 pic_flag=$lt_prog_compiler_pic_CXX
15310 compiler_flags=-v
15311 linker_flags=-v
15312 verstring=
15313 output_objdir=.
15314 libname=conftest
15315 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15316 allow_undefined_flag_CXX=
15317 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15318 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15319 ac_status=$?
15320 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15321 test $ac_status = 0; }
15322 then
15323 lt_cv_archive_cmds_need_lc_CXX=no
15324 else
15325 lt_cv_archive_cmds_need_lc_CXX=yes
15326 fi
15327 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15328 else
15329 cat conftest.err 1>&5
15330 fi
15331 $RM conftest*
15332
15333 fi
15334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15335 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15336 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15337 ;;
15338 esac
15339 fi
15340 ;;
15341 esac
15342
15343
15344
15345
15346
15347
15348
15349
15350
15351
15352
15353
15354
15355
15356
15357
15358
15359
15360
15361
15362
15363
15364
15365
15366
15367
15368
15369
15370
15371
15372
15373
15374
15375
15376
15377
15378
15379
15380
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390
15391
15392
15393
15394
15395
15396
15397
15398
15399
15400
15401
15402
15403
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15405 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15406
15407 library_names_spec=
15408 libname_spec='lib$name'
15409 soname_spec=
15410 shrext_cmds=".so"
15411 postinstall_cmds=
15412 postuninstall_cmds=
15413 finish_cmds=
15414 finish_eval=
15415 shlibpath_var=
15416 shlibpath_overrides_runpath=unknown
15417 version_type=none
15418 dynamic_linker="$host_os ld.so"
15419 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15420 need_lib_prefix=unknown
15421 hardcode_into_libs=no
15422
15423 # when you set need_version to no, make sure it does not cause -set_version
15424 # flags to be left without arguments
15425 need_version=unknown
15426 $as_echo_n "host os $host_os $cc_basename " >&6;
15427
15428 case $host_os in
15429 aix3*)
15430 version_type=linux # correct to gnu/linux during the next big refactor
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15432 shlibpath_var=LIBPATH
15433
15434 # AIX 3 has no versioning support, so we append a major version to the name.
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 ;;
15437
15438 aix[4-9]*)
15439 version_type=linux # correct to gnu/linux during the next big refactor
15440 need_lib_prefix=no
15441 need_version=no
15442 hardcode_into_libs=yes
15443 if test "$host_cpu" = ia64; then
15444 # AIX 5 supports IA64
15445 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15446 shlibpath_var=LD_LIBRARY_PATH
15447 else
15448 # With GCC up to 2.95.x, collect2 would create an import file
15449 # for dependence libraries. The import file would start with
15450 # the line `#! .'. This would cause the generated library to
15451 # depend on `.', always an invalid library. This was fixed in
15452 # development snapshots of GCC prior to 3.0.
15453 case $host_os in
15454 aix4 | aix4.[01] | aix4.[01].*)
15455 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15456 echo ' yes '
15457 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15458 :
15459 else
15460 can_build_shared=no
15461 fi
15462 ;;
15463 esac
15464 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15465 # soname into executable. Probably we can add versioning support to
15466 # collect2, so additional links can be useful in future.
15467 if test "$aix_use_runtimelinking" = yes; then
15468 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15469 # instead of lib<name>.a to let people know that these are not
15470 # typical AIX shared libraries.
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 else
15473 # We preserve .a as extension for shared libraries through AIX4.2
15474 # and later when we are not doing run time linking.
15475 library_names_spec='${libname}${release}.a $libname.a'
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 fi
15478 shlibpath_var=LIBPATH
15479 fi
15480 ;;
15481
15482 amigaos*)
15483 case $host_cpu in
15484 powerpc)
15485 # Since July 2007 AmigaOS4 officially supports .so libraries.
15486 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15488 ;;
15489 m68k)
15490 library_names_spec='$libname.ixlibrary $libname.a'
15491 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15492 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'
15493 ;;
15494 esac
15495 ;;
15496
15497 beos*)
15498 library_names_spec='${libname}${shared_ext}'
15499 dynamic_linker="$host_os ld.so"
15500 shlibpath_var=LIBRARY_PATH
15501 ;;
15502
15503 bsdi[45]*)
15504 version_type=linux # correct to gnu/linux during the next big refactor
15505 need_version=no
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 soname_spec='${libname}${release}${shared_ext}$major'
15508 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15509 shlibpath_var=LD_LIBRARY_PATH
15510 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15511 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15512 # the default ld.so.conf also contains /usr/contrib/lib and
15513 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15514 # libtool to hard-code these into programs
15515 ;;
15516
15517 cygwin* | mingw* | pw32* | cegcc*)
15518 version_type=windows
15519 shrext_cmds=".dll"
15520 need_version=no
15521 need_lib_prefix=no
15522
15523 case $GCC,$cc_basename in
15524 yes,*)
15525 # gcc
15526 library_names_spec='$libname.dll.a'
15527 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15528 postinstall_cmds='base_file=`basename \${file}`~
15529 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15530 dldir=$destdir/`dirname \$dlpath`~
15531 test -d \$dldir || mkdir -p \$dldir~
15532 $install_prog $dir/$dlname \$dldir/$dlname~
15533 chmod a+x \$dldir/$dlname~
15534 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15535 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15536 fi'
15537 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15538 dlpath=$dir/\$dldll~
15539 $RM \$dlpath'
15540 shlibpath_overrides_runpath=yes
15541
15542 case $host_os in
15543 cygwin*)
15544 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15545 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15546
15547 ;;
15548 mingw* | cegcc*)
15549 # MinGW DLLs use traditional 'lib' prefix
15550 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15551 ;;
15552 pw32*)
15553 # pw32 DLLs use 'pw' prefix rather than 'lib'
15554 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15555 ;;
15556 esac
15557 dynamic_linker='Win32 ld.exe'
15558 ;;
15559
15560 *,cl* | *,ifort*)
15561 # Native MSVC
15562 libname_spec='$name'
15563 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15564 library_names_spec='${libname}.lib'
15565
15566 case $build_os in
15567 mingw*)
15568 sys_lib_search_path_spec=
15569 lt_save_ifs=$IFS
15570 IFS=';'
15571 for lt_path in $LIB
15572 do
15573 IFS=$lt_save_ifs
15574 # Let DOS variable expansion print the short 8.3 style file name.
15575 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15576 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15577 done
15578 IFS=$lt_save_ifs
15579 # Convert to MSYS style.
15580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15581 ;;
15582 cygwin*)
15583 # Convert to unix form, then to dos form, then back to unix form
15584 # but this time dos style (no spaces!) so that the unix form looks
15585 # like /cygdrive/c/PROGRA~1:/cygdr...
15586 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15587 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15588 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15589 ;;
15590 *)
15591 sys_lib_search_path_spec="$LIB"
15592 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15593 # It is most probably a Windows format PATH.
15594 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15595 else
15596 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15597 fi
15598 # FIXME: find the short name or the path components, as spaces are
15599 # common. (e.g. "Program Files" -> "PROGRA~1")
15600 ;;
15601 esac
15602
15603 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15604 postinstall_cmds='base_file=`basename \${file}`~
15605 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15606 dldir=$destdir/`dirname \$dlpath`~
15607 test -d \$dldir || mkdir -p \$dldir~
15608 $install_prog $dir/$dlname \$dldir/$dlname'
15609 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15610 dlpath=$dir/\$dldll~
15611 $RM \$dlpath'
15612 shlibpath_overrides_runpath=yes
15613 dynamic_linker='Win32 link.exe'
15614 ;;
15615
15616 *)
15617 # Assume MSVC wrapper
15618 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15619 dynamic_linker='Win32 ld.exe'
15620 ;;
15621 esac
15622 # FIXME: first we should search . and the directory the executable is in
15623 shlibpath_var=PATH
15624 ;;
15625
15626 darwin* | rhapsody*)
15627 dynamic_linker="$host_os dyld"
15628 version_type=darwin
15629 need_lib_prefix=no
15630 need_version=no
15631 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15632 soname_spec='${libname}${release}${major}$shared_ext'
15633 shlibpath_overrides_runpath=yes
15634 shlibpath_var=DYLD_LIBRARY_PATH
15635 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15636
15637 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15638 ;;
15639
15640 dgux*)
15641 version_type=linux # correct to gnu/linux during the next big refactor
15642 need_lib_prefix=no
15643 need_version=no
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 ;;
15648
15649 freebsd* | dragonfly*)
15650 # DragonFly does not have aout. When/if they implement a new
15651 # versioning mechanism, adjust this.
15652 if test -x /usr/bin/objformat; then
15653 objformat=`/usr/bin/objformat`
15654 else
15655 case $host_os in
15656 freebsd[23].*) objformat=aout ;;
15657 *) objformat=elf ;;
15658 esac
15659 fi
15660 version_type=freebsd-$objformat
15661 case $version_type in
15662 freebsd-elf*)
15663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15664 need_version=no
15665 need_lib_prefix=no
15666 ;;
15667 freebsd-*)
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15669 need_version=yes
15670 ;;
15671 esac
15672 shlibpath_var=LD_LIBRARY_PATH
15673 case $host_os in
15674 freebsd2.*)
15675 shlibpath_overrides_runpath=yes
15676 ;;
15677 freebsd3.[01]* | freebsdelf3.[01]*)
15678 shlibpath_overrides_runpath=yes
15679 hardcode_into_libs=yes
15680 ;;
15681 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15682 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15683 shlibpath_overrides_runpath=no
15684 hardcode_into_libs=yes
15685 ;;
15686 *) # from 4.6 on, and DragonFly
15687 shlibpath_overrides_runpath=yes
15688 hardcode_into_libs=yes
15689 ;;
15690 esac
15691 ;;
15692
15693 gnu*)
15694 version_type=linux # correct to gnu/linux during the next big refactor
15695 need_lib_prefix=no
15696 need_version=no
15697 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15698 soname_spec='${libname}${release}${shared_ext}$major'
15699 shlibpath_var=LD_LIBRARY_PATH
15700 shlibpath_overrides_runpath=no
15701 hardcode_into_libs=yes
15702 ;;
15703
15704 haiku*)
15705 version_type=linux # correct to gnu/linux during the next big refactor
15706 need_lib_prefix=no
15707 need_version=no
15708 dynamic_linker="$host_os runtime_loader"
15709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15710 soname_spec='${libname}${release}${shared_ext}$major'
15711 shlibpath_var=LIBRARY_PATH
15712 shlibpath_overrides_runpath=yes
15713 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15714 hardcode_into_libs=yes
15715 ;;
15716
15717 hpux9* | hpux10* | hpux11*)
15718 # Give a soname corresponding to the major version so that dld.sl refuses to
15719 # link against other versions.
15720 version_type=sunos
15721 need_lib_prefix=no
15722 need_version=no
15723 case $host_cpu in
15724 ia64*)
15725 shrext_cmds='.so'
15726 hardcode_into_libs=yes
15727 dynamic_linker="$host_os dld.so"
15728 shlibpath_var=LD_LIBRARY_PATH
15729 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15731 soname_spec='${libname}${release}${shared_ext}$major'
15732 if test "X$HPUX_IA64_MODE" = X32; then
15733 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15734 else
15735 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15736 fi
15737 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15738 ;;
15739 hppa*64*)
15740 shrext_cmds='.sl'
15741 hardcode_into_libs=yes
15742 dynamic_linker="$host_os dld.sl"
15743 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15744 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15747 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15748 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15749 ;;
15750 *)
15751 shrext_cmds='.sl'
15752 dynamic_linker="$host_os dld.sl"
15753 shlibpath_var=SHLIB_PATH
15754 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15756 soname_spec='${libname}${release}${shared_ext}$major'
15757 ;;
15758 esac
15759 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15760 postinstall_cmds='chmod 555 $lib'
15761 # or fails outright, so override atomically:
15762 install_override_mode=555
15763 ;;
15764
15765 interix[3-9]*)
15766 version_type=linux # correct to gnu/linux during the next big refactor
15767 need_lib_prefix=no
15768 need_version=no
15769 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15772 shlibpath_var=LD_LIBRARY_PATH
15773 shlibpath_overrides_runpath=no
15774 hardcode_into_libs=yes
15775 ;;
15776
15777 irix5* | irix6* | nonstopux*)
15778 case $host_os in
15779 nonstopux*) version_type=nonstopux ;;
15780 *)
15781 if test "$lt_cv_prog_gnu_ld" = yes; then
15782 version_type=linux # correct to gnu/linux during the next big refactor
15783 else
15784 version_type=irix
15785 fi ;;
15786 esac
15787 need_lib_prefix=no
15788 need_version=no
15789 soname_spec='${libname}${release}${shared_ext}$major'
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15791 case $host_os in
15792 irix5* | nonstopux*)
15793 libsuff= shlibsuff=
15794 ;;
15795 *)
15796 case $LD in # libtool.m4 will add one of these switches to LD
15797 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15798 libsuff= shlibsuff= libmagic=32-bit;;
15799 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15800 libsuff=32 shlibsuff=N32 libmagic=N32;;
15801 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15802 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15803 *) libsuff= shlibsuff= libmagic=never-match;;
15804 esac
15805 ;;
15806 esac
15807 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15808 shlibpath_overrides_runpath=no
15809 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15810 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15811 hardcode_into_libs=yes
15812 ;;
15813
15814 # No shared lib support for Linux oldld, aout, or coff.
15815 linux*oldld* | linux*aout* | linux*coff*)
15816 dynamic_linker=no
15817 ;;
15818
15819 # This must be glibc/ELF.
15820 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15821 version_type=linux # correct to gnu/linux during the next big refactor
15822 need_lib_prefix=no
15823 need_version=no
15824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15825 soname_spec='${libname}${release}${shared_ext}$major'
15826 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15827 shlibpath_var=LD_LIBRARY_PATH
15828 shlibpath_overrides_runpath=no
15829
15830 # Some binutils ld are patched to set DT_RUNPATH
15831 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15832 $as_echo_n "(cached) " >&6
15833 else
15834 lt_cv_shlibpath_overrides_runpath=no
15835 save_LDFLAGS=$LDFLAGS
15836 save_libdir=$libdir
15837 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15838 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841
15842 int
15843 main ()
15844 {
15845
15846 ;
15847 return 0;
15848 }
15849 _ACEOF
15850 if ac_fn_cxx_try_link "$LINENO"; then :
15851 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15852 lt_cv_shlibpath_overrides_runpath=yes
15853 fi
15854 fi
15855 rm -f core conftest.err conftest.$ac_objext \
15856 conftest$ac_exeext conftest.$ac_ext
15857 LDFLAGS=$save_LDFLAGS
15858 libdir=$save_libdir
15859
15860 fi
15861
15862 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15863
15864 # This implies no fast_install, which is unacceptable.
15865 # Some rework will be needed to allow for fast_install
15866 # before this can be enabled.
15867 hardcode_into_libs=yes
15868
15869 # Append ld.so.conf contents to the search path
15870 if test -f /etc/ld.so.conf; then
15871 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' ' '`
15872 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15873 fi
15874
15875 # We used to test for /lib/ld.so.1 and disable shared libraries on
15876 # powerpc, because MkLinux only supported shared libraries with the
15877 # GNU dynamic linker. Since this was broken with cross compilers,
15878 # most powerpc-linux boxes support dynamic linking these days and
15879 # people can always --disable-shared, the test was removed, and we
15880 # assume the GNU/Linux dynamic linker is in use.
15881 dynamic_linker='GNU/Linux ld.so'
15882 ;;
15883
15884 netbsd*)
15885 version_type=sunos
15886 need_lib_prefix=no
15887 need_version=no
15888 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15890 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15891 dynamic_linker='NetBSD (a.out) ld.so'
15892 else
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 dynamic_linker='NetBSD ld.elf_so'
15896 fi
15897 shlibpath_var=LD_LIBRARY_PATH
15898 shlibpath_overrides_runpath=yes
15899 hardcode_into_libs=yes
15900 ;;
15901
15902 newsos6)
15903 version_type=linux # correct to gnu/linux during the next big refactor
15904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15905 shlibpath_var=LD_LIBRARY_PATH
15906 shlibpath_overrides_runpath=yes
15907 ;;
15908
15909 *nto* | *qnx*)
15910 version_type=qnx
15911 need_lib_prefix=no
15912 need_version=no
15913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15914 soname_spec='${libname}${release}${shared_ext}$major'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=no
15917 hardcode_into_libs=yes
15918 dynamic_linker='ldqnx.so'
15919 ;;
15920
15921 openbsd*)
15922 version_type=sunos
15923 sys_lib_dlsearch_path_spec="/usr/lib"
15924 need_lib_prefix=no
15925 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15926 case $host_os in
15927 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15928 *) need_version=no ;;
15929 esac
15930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15931 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15932 shlibpath_var=LD_LIBRARY_PATH
15933 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15934 case $host_os in
15935 openbsd2.[89] | openbsd2.[89].*)
15936 shlibpath_overrides_runpath=no
15937 ;;
15938 *)
15939 shlibpath_overrides_runpath=yes
15940 ;;
15941 esac
15942 else
15943 shlibpath_overrides_runpath=yes
15944 fi
15945 ;;
15946
15947 os2*)
15948 libname_spec='$name'
15949 shrext_cmds=".dll"
15950 need_lib_prefix=no
15951 library_names_spec='$libname${shared_ext} $libname.a'
15952 dynamic_linker='OS/2 ld.exe'
15953 shlibpath_var=LIBPATH
15954 ;;
15955
15956 osf3* | osf4* | osf5*)
15957 version_type=osf
15958 need_lib_prefix=no
15959 need_version=no
15960 soname_spec='${libname}${release}${shared_ext}$major'
15961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15962 shlibpath_var=LD_LIBRARY_PATH
15963 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15964 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15965 ;;
15966
15967 rdos*)
15968 dynamic_linker=no
15969 ;;
15970
15971 solaris*)
15972 version_type=linux # correct to gnu/linux during the next big refactor
15973 need_lib_prefix=no
15974 need_version=no
15975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15976 soname_spec='${libname}${release}${shared_ext}$major'
15977 shlibpath_var=LD_LIBRARY_PATH
15978 shlibpath_overrides_runpath=yes
15979 hardcode_into_libs=yes
15980 # ldd complains unless libraries are executable
15981 postinstall_cmds='chmod +x $lib'
15982 ;;
15983
15984 sunos4*)
15985 version_type=sunos
15986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15987 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15988 shlibpath_var=LD_LIBRARY_PATH
15989 shlibpath_overrides_runpath=yes
15990 if test "$with_gnu_ld" = yes; then
15991 need_lib_prefix=no
15992 fi
15993 need_version=yes
15994 ;;
15995
15996 sysv4 | sysv4.3*)
15997 version_type=linux # correct to gnu/linux during the next big refactor
15998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15999 soname_spec='${libname}${release}${shared_ext}$major'
16000 shlibpath_var=LD_LIBRARY_PATH
16001 case $host_vendor in
16002 sni)
16003 shlibpath_overrides_runpath=no
16004 need_lib_prefix=no
16005 runpath_var=LD_RUN_PATH
16006 ;;
16007 siemens)
16008 need_lib_prefix=no
16009 ;;
16010 motorola)
16011 need_lib_prefix=no
16012 need_version=no
16013 shlibpath_overrides_runpath=no
16014 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16015 ;;
16016 esac
16017 ;;
16018
16019 sysv4*MP*)
16020 if test -d /usr/nec ;then
16021 version_type=linux # correct to gnu/linux during the next big refactor
16022 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16023 soname_spec='$libname${shared_ext}.$major'
16024 shlibpath_var=LD_LIBRARY_PATH
16025 fi
16026 ;;
16027
16028 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16029 version_type=freebsd-elf
16030 need_lib_prefix=no
16031 need_version=no
16032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16033 soname_spec='${libname}${release}${shared_ext}$major'
16034 shlibpath_var=LD_LIBRARY_PATH
16035 shlibpath_overrides_runpath=yes
16036 hardcode_into_libs=yes
16037 if test "$with_gnu_ld" = yes; then
16038 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16039 else
16040 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16041 case $host_os in
16042 sco3.2v5*)
16043 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16044 ;;
16045 esac
16046 fi
16047 sys_lib_dlsearch_path_spec='/usr/lib'
16048 ;;
16049
16050 tpf*)
16051 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16052 version_type=linux # correct to gnu/linux during the next big refactor
16053 need_lib_prefix=no
16054 need_version=no
16055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16056 shlibpath_var=LD_LIBRARY_PATH
16057 shlibpath_overrides_runpath=no
16058 hardcode_into_libs=yes
16059 ;;
16060
16061 uts4*)
16062 version_type=linux # correct to gnu/linux during the next big refactor
16063 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16064 soname_spec='${libname}${release}${shared_ext}$major'
16065 shlibpath_var=LD_LIBRARY_PATH
16066 ;;
16067
16068 *)
16069 dynamic_linker=no
16070 ;;
16071 esac
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16073 $as_echo "$dynamic_linker" >&6; }
16074 test "$dynamic_linker" = no && can_build_shared=no
16075
16076 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16077 if test "$GCC" = yes; then
16078 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16079 fi
16080
16081 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16082 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16083 fi
16084 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16085 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16086 fi
16087
16088
16089
16090
16091
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111
16112
16113
16114
16115
16116
16117
16118
16119
16120
16121
16122
16123
16124
16125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16126 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16127 hardcode_action_CXX=
16128 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16129 test -n "$runpath_var_CXX" ||
16130 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16131
16132 # We can hardcode non-existent directories.
16133 if test "$hardcode_direct_CXX" != no &&
16134 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16135 # have to relink, otherwise we might link with an installed library
16136 # when we should be linking with a yet-to-be-installed one
16137 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16138 test "$hardcode_minus_L_CXX" != no; then
16139 # Linking always hardcodes the temporary library directory.
16140 hardcode_action_CXX=relink
16141 else
16142 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16143 hardcode_action_CXX=immediate
16144 fi
16145 else
16146 # We cannot hardcode anything, or else we can only hardcode existing
16147 # directories.
16148 hardcode_action_CXX=unsupported
16149 fi
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16151 $as_echo "$hardcode_action_CXX" >&6; }
16152
16153 if test "$hardcode_action_CXX" = relink ||
16154 test "$inherit_rpath_CXX" = yes; then
16155 # Fast installation is not supported
16156 enable_fast_install=no
16157 elif test "$shlibpath_overrides_runpath" = yes ||
16158 test "$enable_shared" = no; then
16159 # Fast installation is not necessary
16160 enable_fast_install=needless
16161 fi
16162
16163
16164
16165
16166
16167
16168
16169 fi # test -n "$compiler"
16170
16171 CC=$lt_save_CC
16172 CFLAGS=$lt_save_CFLAGS
16173 LDCXX=$LD
16174 LD=$lt_save_LD
16175 GCC=$lt_save_GCC
16176 with_gnu_ld=$lt_save_with_gnu_ld
16177 lt_cv_path_LDCXX=$lt_cv_path_LD
16178 lt_cv_path_LD=$lt_save_path_LD
16179 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16180 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16181 fi # test "$_lt_caught_CXX_error" != yes
16182
16183 ac_ext=c
16184 ac_cpp='$CPP $CPPFLAGS'
16185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16188
16189
16190
16191
16192
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
16194 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
16195 # Check whether --enable-maintainer-mode was given.
16196 if test "${enable_maintainer_mode+set}" = set; then :
16197 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
16198 else
16199 USE_MAINTAINER_MODE=no
16200 fi
16201
16202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
16203 $as_echo "$USE_MAINTAINER_MODE" >&6; }
16204 if test $USE_MAINTAINER_MODE = yes; then
16205 MAINTAINER_MODE_TRUE=
16206 MAINTAINER_MODE_FALSE='#'
16207 else
16208 MAINTAINER_MODE_TRUE='#'
16209 MAINTAINER_MODE_FALSE=
16210 fi
16211
16212 MAINT=$MAINTAINER_MODE_TRUE
16213
16214
16215 # Check whether --enable-fortran was given.
16216 if test "${enable_fortran+set}" = set; then :
16217 enableval=$enable_fortran;
16218 fi
16219
16220
16221 if test "x$enable_fortran" != xno ; then
16222 FORTRAN_LIB_TRUE=
16223 FORTRAN_LIB_FALSE='#'
16224 else
16225 FORTRAN_LIB_TRUE='#'
16226 FORTRAN_LIB_FALSE=
16227 fi
16228
16229
16230 if test "x$enable_fortran" != "xno"; then
16231 # sorting_main.f (mix of F77 and F90) cannot be compiled with g77
16232 ac_ext=f
16233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16236 if test -n "$ac_tool_prefix"; then
16237 for ac_prog in xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
16238 do
16239 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16240 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16242 $as_echo_n "checking for $ac_word... " >&6; }
16243 if ${ac_cv_prog_F77+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 if test -n "$F77"; then
16247 ac_cv_prog_F77="$F77" # Let the user override the test.
16248 else
16249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16250 for as_dir in $PATH
16251 do
16252 IFS=$as_save_IFS
16253 test -z "$as_dir" && as_dir=.
16254 for ac_exec_ext in '' $ac_executable_extensions; do
16255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16256 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
16257 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16258 break 2
16259 fi
16260 done
16261 done
16262 IFS=$as_save_IFS
16263
16264 fi
16265 fi
16266 F77=$ac_cv_prog_F77
16267 if test -n "$F77"; then
16268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
16269 $as_echo "$F77" >&6; }
16270 else
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16272 $as_echo "no" >&6; }
16273 fi
16274
16275
16276 test -n "$F77" && break
16277 done
16278 fi
16279 if test -z "$F77"; then
16280 ac_ct_F77=$F77
16281 for ac_prog in xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77
16282 do
16283 # Extract the first word of "$ac_prog", so it can be a program name with args.
16284 set dummy $ac_prog; ac_word=$2
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16286 $as_echo_n "checking for $ac_word... " >&6; }
16287 if ${ac_cv_prog_ac_ct_F77+:} false; then :
16288 $as_echo_n "(cached) " >&6
16289 else
16290 if test -n "$ac_ct_F77"; then
16291 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
16292 else
16293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16294 for as_dir in $PATH
16295 do
16296 IFS=$as_save_IFS
16297 test -z "$as_dir" && as_dir=.
16298 for ac_exec_ext in '' $ac_executable_extensions; do
16299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16300 ac_cv_prog_ac_ct_F77="$ac_prog"
16301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16302 break 2
16303 fi
16304 done
16305 done
16306 IFS=$as_save_IFS
16307
16308 fi
16309 fi
16310 ac_ct_F77=$ac_cv_prog_ac_ct_F77
16311 if test -n "$ac_ct_F77"; then
16312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
16313 $as_echo "$ac_ct_F77" >&6; }
16314 else
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16316 $as_echo "no" >&6; }
16317 fi
16318
16319
16320 test -n "$ac_ct_F77" && break
16321 done
16322
16323 if test "x$ac_ct_F77" = x; then
16324 F77=""
16325 else
16326 case $cross_compiling:$ac_tool_warned in
16327 yes:)
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16329 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16330 ac_tool_warned=yes ;;
16331 esac
16332 F77=$ac_ct_F77
16333 fi
16334 fi
16335
16336
16337 # Provide some information about the compiler.
16338 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
16339 set X $ac_compile
16340 ac_compiler=$2
16341 for ac_option in --version -v -V -qversion; do
16342 { { ac_try="$ac_compiler $ac_option >&5"
16343 case "(($ac_try" in
16344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16345 *) ac_try_echo=$ac_try;;
16346 esac
16347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16348 $as_echo "$ac_try_echo"; } >&5
16349 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16350 ac_status=$?
16351 if test -s conftest.err; then
16352 sed '10a\
16353 ... rest of stderr output deleted ...
16354 10q' conftest.err >conftest.er1
16355 cat conftest.er1 >&5
16356 fi
16357 rm -f conftest.er1 conftest.err
16358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16359 test $ac_status = 0; }
16360 done
16361 rm -f a.out
16362
16363 # If we don't use `.F' as extension, the preprocessor is not run on the
16364 # input file. (Note that this only needs to work for GNU compilers.)
16365 ac_save_ext=$ac_ext
16366 ac_ext=F
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
16368 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
16369 if ${ac_cv_f77_compiler_gnu+:} false; then :
16370 $as_echo_n "(cached) " >&6
16371 else
16372 cat > conftest.$ac_ext <<_ACEOF
16373 program main
16374 #ifndef __GNUC__
16375 choke me
16376 #endif
16377
16378 end
16379 _ACEOF
16380 if ac_fn_f77_try_compile "$LINENO"; then :
16381 ac_compiler_gnu=yes
16382 else
16383 ac_compiler_gnu=no
16384 fi
16385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16386 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
16387
16388 fi
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
16390 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
16391 ac_ext=$ac_save_ext
16392 ac_test_FFLAGS=${FFLAGS+set}
16393 ac_save_FFLAGS=$FFLAGS
16394 FFLAGS=
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
16396 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
16397 if ${ac_cv_prog_f77_g+:} false; then :
16398 $as_echo_n "(cached) " >&6
16399 else
16400 FFLAGS=-g
16401 cat > conftest.$ac_ext <<_ACEOF
16402 program main
16403
16404 end
16405 _ACEOF
16406 if ac_fn_f77_try_compile "$LINENO"; then :
16407 ac_cv_prog_f77_g=yes
16408 else
16409 ac_cv_prog_f77_g=no
16410 fi
16411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412
16413 fi
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
16415 $as_echo "$ac_cv_prog_f77_g" >&6; }
16416 if test "$ac_test_FFLAGS" = set; then
16417 FFLAGS=$ac_save_FFLAGS
16418 elif test $ac_cv_prog_f77_g = yes; then
16419 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16420 FFLAGS="-g -O2"
16421 else
16422 FFLAGS="-g"
16423 fi
16424 else
16425 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
16426 FFLAGS="-O2"
16427 else
16428 FFLAGS=
16429 fi
16430 fi
16431
16432 if test $ac_compiler_gnu = yes; then
16433 G77=yes
16434 else
16435 G77=
16436 fi
16437 ac_ext=c
16438 ac_cpp='$CPP $CPPFLAGS'
16439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16442
16443 ac_ext=f
16444 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
16445 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16446 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
16447
16448 if test -z "$F77" || test "X$F77" = "Xno"; then
16449 _lt_disable_F77=yes
16450 fi
16451
16452 archive_cmds_need_lc_F77=no
16453 allow_undefined_flag_F77=
16454 always_export_symbols_F77=no
16455 archive_expsym_cmds_F77=
16456 export_dynamic_flag_spec_F77=
16457 hardcode_direct_F77=no
16458 hardcode_direct_absolute_F77=no
16459 hardcode_libdir_flag_spec_F77=
16460 hardcode_libdir_separator_F77=
16461 hardcode_minus_L_F77=no
16462 hardcode_automatic_F77=no
16463 inherit_rpath_F77=no
16464 module_cmds_F77=
16465 module_expsym_cmds_F77=
16466 link_all_deplibs_F77=unknown
16467 old_archive_cmds_F77=$old_archive_cmds
16468 reload_flag_F77=$reload_flag
16469 reload_cmds_F77=$reload_cmds
16470 no_undefined_flag_F77=
16471 whole_archive_flag_spec_F77=
16472 enable_shared_with_static_runtimes_F77=no
16473
16474 # Source file extension for f77 test sources.
16475 ac_ext=f
16476
16477 # Object file extension for compiled f77 test sources.
16478 objext=o
16479 objext_F77=$objext
16480
16481 # No sense in running all these tests if we already determined that
16482 # the F77 compiler isn't working. Some variables (like enable_shared)
16483 # are currently assumed to apply to all compilers on this platform,
16484 # and will be corrupted by setting them based on a non-working compiler.
16485 if test "$_lt_disable_F77" != yes; then
16486 # Code to be used in simple compile tests
16487 lt_simple_compile_test_code="\
16488 subroutine t
16489 return
16490 end
16491 "
16492
16493 # Code to be used in simple link tests
16494 lt_simple_link_test_code="\
16495 program t
16496 end
16497 "
16498
16499 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16500
16501
16502
16503
16504
16505
16506 # If no C compiler was specified, use CC.
16507 LTCC=${LTCC-"$CC"}
16508
16509 # If no C compiler flags were specified, use CFLAGS.
16510 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16511
16512 # Allow CC to be a program name with arguments.
16513 compiler=$CC
16514
16515
16516 # save warnings/boilerplate of simple test code
16517 ac_outfile=conftest.$ac_objext
16518 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16519 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16520 _lt_compiler_boilerplate=`cat conftest.err`
16521 $RM conftest*
16522
16523 ac_outfile=conftest.$ac_objext
16524 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16525 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16526 _lt_linker_boilerplate=`cat conftest.err`
16527 $RM -r conftest*
16528
16529
16530 # Allow CC to be a program name with arguments.
16531 lt_save_CC="$CC"
16532 lt_save_GCC=$GCC
16533 lt_save_CFLAGS=$CFLAGS
16534 CC=${F77-"f77"}
16535 CFLAGS=$FFLAGS
16536 compiler=$CC
16537 compiler_F77=$CC
16538 for cc_temp in $compiler""; do
16539 case $cc_temp in
16540 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16541 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16542 \-*) ;;
16543 *) break;;
16544 esac
16545 done
16546 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
16547
16548 GCC=$G77
16549 if test -n "$compiler"; then
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
16551 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
16553 $as_echo "$can_build_shared" >&6; }
16554
16555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
16556 $as_echo_n "checking whether to build shared libraries... " >&6; }
16557 test "$can_build_shared" = "no" && enable_shared=no
16558
16559 # On AIX, shared libraries and static libraries use the same namespace, and
16560 # are all built from PIC.
16561 case $host_os in
16562 aix3*)
16563 test "$enable_shared" = yes && enable_static=no
16564 if test -n "$RANLIB"; then
16565 archive_cmds="$archive_cmds~\$RANLIB \$lib"
16566 postinstall_cmds='$RANLIB $lib'
16567 fi
16568 ;;
16569 aix[4-9]*)
16570 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
16571 test "$enable_shared" = yes && enable_static=no
16572 fi
16573 ;;
16574 esac
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
16576 $as_echo "$enable_shared" >&6; }
16577
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
16579 $as_echo_n "checking whether to build static libraries... " >&6; }
16580 # Make sure either enable_shared or enable_static is yes.
16581 test "$enable_shared" = yes || enable_static=yes
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
16583 $as_echo "$enable_static" >&6; }
16584
16585 GCC_F77="$G77"
16586 LD_F77="$LD"
16587
16588 ## CAVEAT EMPTOR:
16589 ## There is no encapsulation within the following macros, do not change
16590 ## the running order or otherwise move them around unless you know exactly
16591 ## what you are doing...
16592 lt_prog_compiler_wl_F77=
16593 lt_prog_compiler_pic_F77=
16594 lt_prog_compiler_static_F77=
16595
16596
16597 if test "$GCC" = yes; then
16598 lt_prog_compiler_wl_F77='-Wl,'
16599 lt_prog_compiler_static_F77='-static'
16600
16601 case $host_os in
16602 aix*)
16603 # All AIX code is PIC.
16604 if test "$host_cpu" = ia64; then
16605 # AIX 5 now supports IA64 processor
16606 lt_prog_compiler_static_F77='-Bstatic'
16607 fi
16608 ;;
16609
16610 amigaos*)
16611 case $host_cpu in
16612 powerpc)
16613 # see comment about AmigaOS4 .so support
16614 lt_prog_compiler_pic_F77='-fPIC'
16615 ;;
16616 m68k)
16617 # FIXME: we need at least 68020 code to build shared libraries, but
16618 # adding the `-m68020' flag to GCC prevents building anything better,
16619 # like `-m68040'.
16620 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
16621 ;;
16622 esac
16623 ;;
16624
16625 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16626 # PIC is the default for these OSes.
16627 ;;
16628
16629 mingw* | cygwin* | pw32* | os2* | cegcc*)
16630 # This hack is so that the source file can tell whether it is being
16631 # built for inclusion in a dll (and should export symbols for example).
16632 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16633 # (--disable-auto-import) libraries
16634 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16635 ;;
16636
16637 darwin* | rhapsody*)
16638 # PIC is the default on this platform
16639 # Common symbols not allowed in MH_DYLIB files
16640 lt_prog_compiler_pic_F77='-fno-common'
16641 ;;
16642
16643 haiku*)
16644 # PIC is the default for Haiku.
16645 # The "-static" flag exists, but is broken.
16646 lt_prog_compiler_static_F77=
16647 ;;
16648
16649 hpux*)
16650 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16651 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16652 # sets the default TLS model and affects inlining.
16653 case $host_cpu in
16654 hppa*64*)
16655 # +Z the default
16656 ;;
16657 *)
16658 lt_prog_compiler_pic_F77='-fPIC'
16659 ;;
16660 esac
16661 ;;
16662
16663 interix[3-9]*)
16664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16665 # Instead, we relocate shared libraries at runtime.
16666 ;;
16667
16668 msdosdjgpp*)
16669 # Just because we use GCC doesn't mean we suddenly get shared libraries
16670 # on systems that don't support them.
16671 lt_prog_compiler_can_build_shared_F77=no
16672 enable_shared=no
16673 ;;
16674
16675 *nto* | *qnx*)
16676 # QNX uses GNU C++, but need to define -shared option too, otherwise
16677 # it will coredump.
16678 lt_prog_compiler_pic_F77='-fPIC -shared'
16679 ;;
16680
16681 sysv4*MP*)
16682 if test -d /usr/nec; then
16683 lt_prog_compiler_pic_F77=-Kconform_pic
16684 fi
16685 ;;
16686
16687 *)
16688 lt_prog_compiler_pic_F77='-fPIC'
16689 ;;
16690 esac
16691
16692 case $cc_basename in
16693 nvcc*) # Cuda Compiler Driver 2.2
16694 lt_prog_compiler_wl_F77='-Xlinker '
16695 if test -n "$lt_prog_compiler_pic_F77"; then
16696 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77"
16697 fi
16698 ;;
16699 esac
16700 else
16701 # PORTME Check for flag to pass linker flags through the system compiler.
16702 case $host_os in
16703 aix*)
16704 lt_prog_compiler_wl_F77='-Wl,'
16705 if test "$host_cpu" = ia64; then
16706 # AIX 5 now supports IA64 processor
16707 lt_prog_compiler_static_F77='-Bstatic'
16708 else
16709 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
16710 fi
16711 ;;
16712
16713 mingw* | cygwin* | pw32* | os2* | cegcc*)
16714 # This hack is so that the source file can tell whether it is being
16715 # built for inclusion in a dll (and should export symbols for example).
16716 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
16717 ;;
16718
16719 hpux9* | hpux10* | hpux11*)
16720 lt_prog_compiler_wl_F77='-Wl,'
16721 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16722 # not for PA HP-UX.
16723 case $host_cpu in
16724 hppa*64*|ia64*)
16725 # +Z the default
16726 ;;
16727 *)
16728 lt_prog_compiler_pic_F77='+Z'
16729 ;;
16730 esac
16731 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16732 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
16733 ;;
16734
16735 irix5* | irix6* | nonstopux*)
16736 lt_prog_compiler_wl_F77='-Wl,'
16737 # PIC (with -KPIC) is the default.
16738 lt_prog_compiler_static_F77='-non_shared'
16739 ;;
16740
16741 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16742 case $cc_basename in
16743 # old Intel for x86_64 which still supported -KPIC.
16744 ecc*)
16745 lt_prog_compiler_wl_F77='-Wl,'
16746 lt_prog_compiler_pic_F77='-KPIC'
16747 lt_prog_compiler_static_F77='-static'
16748 ;;
16749 # icc used to be incompatible with GCC.
16750 # ICC 10 doesn't accept -KPIC any more.
16751 icc* | ifort*)
16752 lt_prog_compiler_wl_F77='-Wl,'
16753 lt_prog_compiler_pic_F77='-fPIC'
16754 lt_prog_compiler_static_F77='-static'
16755 ;;
16756 # Lahey Fortran 8.1.
16757 lf95*)
16758 lt_prog_compiler_wl_F77='-Wl,'
16759 lt_prog_compiler_pic_F77='--shared'
16760 lt_prog_compiler_static_F77='--static'
16761 ;;
16762 nagfor*)
16763 # NAG Fortran compiler
16764 lt_prog_compiler_wl_F77='-Wl,-Wl,,'
16765 lt_prog_compiler_pic_F77='-PIC'
16766 lt_prog_compiler_static_F77='-Bstatic'
16767 ;;
16768 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
16769 # Portland Group compilers (*not* the Pentium gcc compiler,
16770 # which looks to be a dead project)
16771 lt_prog_compiler_wl_F77='-Wl,'
16772 lt_prog_compiler_pic_F77='-fpic'
16773 lt_prog_compiler_static_F77='-Bstatic'
16774 ;;
16775 ccc*)
16776 lt_prog_compiler_wl_F77='-Wl,'
16777 # All Alpha code is PIC.
16778 lt_prog_compiler_static_F77='-non_shared'
16779 ;;
16780 xl* | bgxl* | bgf* | mpixl*)
16781 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
16782 lt_prog_compiler_wl_F77='-Wl,'
16783 lt_prog_compiler_pic_F77='-qpic'
16784 lt_prog_compiler_static_F77='-qstaticlink'
16785 ;;
16786 *)
16787 case `$CC -V 2>&1 | sed 5q` in
16788 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
16789 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16790 lt_prog_compiler_pic_F77='-KPIC'
16791 lt_prog_compiler_static_F77='-Bstatic'
16792 lt_prog_compiler_wl_F77=''
16793 ;;
16794 *Sun\ F* | *Sun*Fortran*)
16795 lt_prog_compiler_pic_F77='-KPIC'
16796 lt_prog_compiler_static_F77='-Bstatic'
16797 lt_prog_compiler_wl_F77='-Qoption ld '
16798 ;;
16799 *Sun\ C*)
16800 # Sun C 5.9
16801 lt_prog_compiler_pic_F77='-KPIC'
16802 lt_prog_compiler_static_F77='-Bstatic'
16803 lt_prog_compiler_wl_F77='-Wl,'
16804 ;;
16805 *Intel*\ [CF]*Compiler*)
16806 lt_prog_compiler_wl_F77='-Wl,'
16807 lt_prog_compiler_pic_F77='-fPIC'
16808 lt_prog_compiler_static_F77='-static'
16809 ;;
16810 *Portland\ Group*)
16811 lt_prog_compiler_wl_F77='-Wl,'
16812 lt_prog_compiler_pic_F77='-fpic'
16813 lt_prog_compiler_static_F77='-Bstatic'
16814 ;;
16815 esac
16816 ;;
16817 esac
16818 ;;
16819
16820 newsos6)
16821 lt_prog_compiler_pic_F77='-KPIC'
16822 lt_prog_compiler_static_F77='-Bstatic'
16823 ;;
16824
16825 *nto* | *qnx*)
16826 # QNX uses GNU C++, but need to define -shared option too, otherwise
16827 # it will coredump.
16828 lt_prog_compiler_pic_F77='-fPIC -shared'
16829 ;;
16830
16831 osf3* | osf4* | osf5*)
16832 lt_prog_compiler_wl_F77='-Wl,'
16833 # All OSF/1 code is PIC.
16834 lt_prog_compiler_static_F77='-non_shared'
16835 ;;
16836
16837 rdos*)
16838 lt_prog_compiler_static_F77='-non_shared'
16839 ;;
16840
16841 solaris*)
16842 lt_prog_compiler_pic_F77='-KPIC'
16843 lt_prog_compiler_static_F77='-Bstatic'
16844 case $cc_basename in
16845 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
16846 lt_prog_compiler_wl_F77='-Qoption ld ';;
16847 *)
16848 lt_prog_compiler_wl_F77='-Wl,';;
16849 esac
16850 ;;
16851
16852 sunos4*)
16853 lt_prog_compiler_wl_F77='-Qoption ld '
16854 lt_prog_compiler_pic_F77='-PIC'
16855 lt_prog_compiler_static_F77='-Bstatic'
16856 ;;
16857
16858 sysv4 | sysv4.2uw2* | sysv4.3*)
16859 lt_prog_compiler_wl_F77='-Wl,'
16860 lt_prog_compiler_pic_F77='-KPIC'
16861 lt_prog_compiler_static_F77='-Bstatic'
16862 ;;
16863
16864 sysv4*MP*)
16865 if test -d /usr/nec ;then
16866 lt_prog_compiler_pic_F77='-Kconform_pic'
16867 lt_prog_compiler_static_F77='-Bstatic'
16868 fi
16869 ;;
16870
16871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16872 lt_prog_compiler_wl_F77='-Wl,'
16873 lt_prog_compiler_pic_F77='-KPIC'
16874 lt_prog_compiler_static_F77='-Bstatic'
16875 ;;
16876
16877 unicos*)
16878 lt_prog_compiler_wl_F77='-Wl,'
16879 lt_prog_compiler_can_build_shared_F77=no
16880 ;;
16881
16882 uts4*)
16883 lt_prog_compiler_pic_F77='-pic'
16884 lt_prog_compiler_static_F77='-Bstatic'
16885 ;;
16886
16887 *)
16888 lt_prog_compiler_can_build_shared_F77=no
16889 ;;
16890 esac
16891 fi
16892
16893 case $host_os in
16894 # For platforms which do not support PIC, -DPIC is meaningless:
16895 *djgpp*)
16896 lt_prog_compiler_pic_F77=
16897 ;;
16898 *)
16899 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
16900 ;;
16901 esac
16902
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16904 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16905 if ${lt_cv_prog_compiler_pic_F77+:} false; then :
16906 $as_echo_n "(cached) " >&6
16907 else
16908 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77
16909 fi
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5
16911 $as_echo "$lt_cv_prog_compiler_pic_F77" >&6; }
16912 lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77
16913
16914 #
16915 # Check to make sure the PIC flag actually works.
16916 #
16917 if test -n "$lt_prog_compiler_pic_F77"; then
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
16919 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
16920 if ${lt_cv_prog_compiler_pic_works_F77+:} false; then :
16921 $as_echo_n "(cached) " >&6
16922 else
16923 lt_cv_prog_compiler_pic_works_F77=no
16924 ac_outfile=conftest.$ac_objext
16925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16926 lt_compiler_flag="$lt_prog_compiler_pic_F77"
16927 # Insert the option either (1) after the last *FLAGS variable, or
16928 # (2) before a word containing "conftest.", or (3) at the end.
16929 # Note that $ac_compile itself does not contain backslashes and begins
16930 # with a dollar sign (not a hyphen), so the echo should work correctly.
16931 # The option is referenced via a variable to avoid confusing sed.
16932 lt_compile=`echo "$ac_compile" | $SED \
16933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16935 -e 's:$: $lt_compiler_flag:'`
16936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16937 (eval "$lt_compile" 2>conftest.err)
16938 ac_status=$?
16939 cat conftest.err >&5
16940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16941 if (exit $ac_status) && test -s "$ac_outfile"; then
16942 # The compiler can only warn and ignore the option if not recognized
16943 # So say no if there are warnings other than the usual output.
16944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16947 lt_cv_prog_compiler_pic_works_F77=yes
16948 fi
16949 fi
16950 $RM conftest*
16951
16952 fi
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
16954 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
16955
16956 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
16957 case $lt_prog_compiler_pic_F77 in
16958 "" | " "*) ;;
16959 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
16960 esac
16961 else
16962 lt_prog_compiler_pic_F77=
16963 lt_prog_compiler_can_build_shared_F77=no
16964 fi
16965
16966 fi
16967
16968
16969
16970
16971
16972 #
16973 # Check to make sure the static flag actually works.
16974 #
16975 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
16976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16977 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16978 if ${lt_cv_prog_compiler_static_works_F77+:} false; then :
16979 $as_echo_n "(cached) " >&6
16980 else
16981 lt_cv_prog_compiler_static_works_F77=no
16982 save_LDFLAGS="$LDFLAGS"
16983 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16984 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16985 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16986 # The linker can only warn and ignore the option if not recognized
16987 # So say no if there are warnings
16988 if test -s conftest.err; then
16989 # Append any errors to the config.log.
16990 cat conftest.err 1>&5
16991 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16992 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16993 if diff conftest.exp conftest.er2 >/dev/null; then
16994 lt_cv_prog_compiler_static_works_F77=yes
16995 fi
16996 else
16997 lt_cv_prog_compiler_static_works_F77=yes
16998 fi
16999 fi
17000 $RM -r conftest*
17001 LDFLAGS="$save_LDFLAGS"
17002
17003 fi
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
17005 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
17006
17007 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
17008 :
17009 else
17010 lt_prog_compiler_static_F77=
17011 fi
17012
17013
17014
17015
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17017 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17018 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
17019 $as_echo_n "(cached) " >&6
17020 else
17021 lt_cv_prog_compiler_c_o_F77=no
17022 $RM -r conftest 2>/dev/null
17023 mkdir conftest
17024 cd conftest
17025 mkdir out
17026 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17027
17028 lt_compiler_flag="-o out/conftest2.$ac_objext"
17029 # Insert the option either (1) after the last *FLAGS variable, or
17030 # (2) before a word containing "conftest.", or (3) at the end.
17031 # Note that $ac_compile itself does not contain backslashes and begins
17032 # with a dollar sign (not a hyphen), so the echo should work correctly.
17033 lt_compile=`echo "$ac_compile" | $SED \
17034 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17035 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17036 -e 's:$: $lt_compiler_flag:'`
17037 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17038 (eval "$lt_compile" 2>out/conftest.err)
17039 ac_status=$?
17040 cat out/conftest.err >&5
17041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17042 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17043 then
17044 # The compiler can only warn and ignore the option if not recognized
17045 # So say no if there are warnings
17046 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17047 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17048 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17049 lt_cv_prog_compiler_c_o_F77=yes
17050 fi
17051 fi
17052 chmod u+w . 2>&5
17053 $RM conftest*
17054 # SGI C++ compiler will create directory out/ii_files/ for
17055 # template instantiation
17056 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17057 $RM out/* && rmdir out
17058 cd ..
17059 $RM -r conftest
17060 $RM conftest*
17061
17062 fi
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17064 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17065
17066
17067
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17069 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17070 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
17071 $as_echo_n "(cached) " >&6
17072 else
17073 lt_cv_prog_compiler_c_o_F77=no
17074 $RM -r conftest 2>/dev/null
17075 mkdir conftest
17076 cd conftest
17077 mkdir out
17078 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17079
17080 lt_compiler_flag="-o out/conftest2.$ac_objext"
17081 # Insert the option either (1) after the last *FLAGS variable, or
17082 # (2) before a word containing "conftest.", or (3) at the end.
17083 # Note that $ac_compile itself does not contain backslashes and begins
17084 # with a dollar sign (not a hyphen), so the echo should work correctly.
17085 lt_compile=`echo "$ac_compile" | $SED \
17086 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17087 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17088 -e 's:$: $lt_compiler_flag:'`
17089 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17090 (eval "$lt_compile" 2>out/conftest.err)
17091 ac_status=$?
17092 cat out/conftest.err >&5
17093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17094 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17095 then
17096 # The compiler can only warn and ignore the option if not recognized
17097 # So say no if there are warnings
17098 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17099 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17100 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17101 lt_cv_prog_compiler_c_o_F77=yes
17102 fi
17103 fi
17104 chmod u+w . 2>&5
17105 $RM conftest*
17106 # SGI C++ compiler will create directory out/ii_files/ for
17107 # template instantiation
17108 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17109 $RM out/* && rmdir out
17110 cd ..
17111 $RM -r conftest
17112 $RM conftest*
17113
17114 fi
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
17116 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
17117
17118
17119
17120
17121 hard_links="nottested"
17122 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
17123 # do not overwrite the value of need_locks provided by the user
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17125 $as_echo_n "checking if we can lock with hard links... " >&6; }
17126 hard_links=yes
17127 $RM conftest*
17128 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17129 touch conftest.a
17130 ln conftest.a conftest.b 2>&5 || hard_links=no
17131 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17133 $as_echo "$hard_links" >&6; }
17134 if test "$hard_links" = no; then
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17136 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17137 need_locks=warn
17138 fi
17139 else
17140 need_locks=no
17141 fi
17142
17143
17144
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17146 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17147
17148 runpath_var=
17149 allow_undefined_flag_F77=
17150 always_export_symbols_F77=no
17151 archive_cmds_F77=
17152 archive_expsym_cmds_F77=
17153 compiler_needs_object_F77=no
17154 enable_shared_with_static_runtimes_F77=no
17155 export_dynamic_flag_spec_F77=
17156 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17157 hardcode_automatic_F77=no
17158 hardcode_direct_F77=no
17159 hardcode_direct_absolute_F77=no
17160 hardcode_libdir_flag_spec_F77=
17161 hardcode_libdir_separator_F77=
17162 hardcode_minus_L_F77=no
17163 hardcode_shlibpath_var_F77=unsupported
17164 inherit_rpath_F77=no
17165 link_all_deplibs_F77=unknown
17166 module_cmds_F77=
17167 module_expsym_cmds_F77=
17168 old_archive_from_new_cmds_F77=
17169 old_archive_from_expsyms_cmds_F77=
17170 thread_safe_flag_spec_F77=
17171 whole_archive_flag_spec_F77=
17172 # include_expsyms should be a list of space-separated symbols to be *always*
17173 # included in the symbol list
17174 include_expsyms_F77=
17175 # exclude_expsyms can be an extended regexp of symbols to exclude
17176 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17177 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17178 # as well as any symbol that contains `d'.
17179 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17180 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17181 # platforms (ab)use it in PIC code, but their linkers get confused if
17182 # the symbol is explicitly referenced. Since portable code cannot
17183 # rely on this symbol name, it's probably fine to never include it in
17184 # preloaded symbol tables.
17185 # Exclude shared library initialization/finalization symbols.
17186 extract_expsyms_cmds=
17187
17188 case $host_os in
17189 cygwin* | mingw* | pw32* | cegcc*)
17190 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17191 # When not using gcc, we currently assume that we are using
17192 # Microsoft Visual C++.
17193 if test "$GCC" != yes; then
17194 with_gnu_ld=no
17195 fi
17196 ;;
17197 interix*)
17198 # we just hope/assume this is gcc and not c89 (= MSVC++)
17199 with_gnu_ld=yes
17200 ;;
17201 openbsd*)
17202 with_gnu_ld=no
17203 ;;
17204 esac
17205
17206 ld_shlibs_F77=yes
17207
17208 # On some targets, GNU ld is compatible enough with the native linker
17209 # that we're better off using the native interface for both.
17210 lt_use_gnu_ld_interface=no
17211 if test "$with_gnu_ld" = yes; then
17212 case $host_os in
17213 aix*)
17214 # The AIX port of GNU ld has always aspired to compatibility
17215 # with the native linker. However, as the warning in the GNU ld
17216 # block says, versions before 2.19.5* couldn't really create working
17217 # shared libraries, regardless of the interface used.
17218 case `$LD -v 2>&1` in
17219 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
17220 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
17221 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
17222 *)
17223 lt_use_gnu_ld_interface=yes
17224 ;;
17225 esac
17226 ;;
17227 *)
17228 lt_use_gnu_ld_interface=yes
17229 ;;
17230 esac
17231 fi
17232
17233 if test "$lt_use_gnu_ld_interface" = yes; then
17234 # If archive_cmds runs LD, not CC, wlarc should be empty
17235 wlarc='${wl}'
17236
17237 # Set some defaults for GNU ld with shared library support. These
17238 # are reset later if shared libraries are not supported. Putting them
17239 # here allows them to be overridden if necessary.
17240 runpath_var=LD_RUN_PATH
17241 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17242 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
17243 # ancient GNU ld didn't support --whole-archive et. al.
17244 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
17245 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17246 else
17247 whole_archive_flag_spec_F77=
17248 fi
17249 supports_anon_versioning=no
17250 case `$LD -v 2>&1` in
17251 *GNU\ gold*) supports_anon_versioning=yes ;;
17252 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17253 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17254 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17255 *\ 2.11.*) ;; # other 2.11 versions
17256 *) supports_anon_versioning=yes ;;
17257 esac
17258
17259 # See if GNU ld supports shared libraries.
17260 case $host_os in
17261 aix[3-9]*)
17262 # On AIX/PPC, the GNU linker is very broken
17263 if test "$host_cpu" != ia64; then
17264 ld_shlibs_F77=no
17265 cat <<_LT_EOF 1>&2
17266
17267 *** Warning: the GNU linker, at least up to release 2.19, is reported
17268 *** to be unable to reliably create shared libraries on AIX.
17269 *** Therefore, libtool is disabling shared libraries support. If you
17270 *** really care for shared libraries, you may want to install binutils
17271 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
17272 *** You will then need to restart the configuration process.
17273
17274 _LT_EOF
17275 fi
17276 ;;
17277
17278 amigaos*)
17279 case $host_cpu in
17280 powerpc)
17281 # see comment about AmigaOS4 .so support
17282 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17283 archive_expsym_cmds_F77=''
17284 ;;
17285 m68k)
17286 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)'
17287 hardcode_libdir_flag_spec_F77='-L$libdir'
17288 hardcode_minus_L_F77=yes
17289 ;;
17290 esac
17291 ;;
17292
17293 beos*)
17294 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17295 allow_undefined_flag_F77=unsupported
17296 # Joseph Beckenbach <[email protected]> says some releases of gcc
17297 # support --undefined. This deserves some investigation. FIXME
17298 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17299 else
17300 ld_shlibs_F77=no
17301 fi
17302 ;;
17303
17304 cygwin* | mingw* | pw32* | cegcc*)
17305 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
17306 # as there is no search path for DLLs.
17307 hardcode_libdir_flag_spec_F77='-L$libdir'
17308 export_dynamic_flag_spec_F77='${wl}--export-all-symbols'
17309 allow_undefined_flag_F77=unsupported
17310 always_export_symbols_F77=no
17311 enable_shared_with_static_runtimes_F77=yes
17312 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'
17313 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17314
17315 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
17316 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17317 # If the export-symbols file already is a .def file (1st line
17318 # is EXPORTS), use it as is; otherwise, prepend...
17319 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17320 cp $export_symbols $output_objdir/$soname.def;
17321 else
17322 echo EXPORTS > $output_objdir/$soname.def;
17323 cat $export_symbols >> $output_objdir/$soname.def;
17324 fi~
17325 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17326 else
17327 ld_shlibs_F77=no
17328 fi
17329 ;;
17330
17331 haiku*)
17332 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17333 link_all_deplibs_F77=yes
17334 ;;
17335
17336 interix[3-9]*)
17337 hardcode_direct_F77=no
17338 hardcode_shlibpath_var_F77=no
17339 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
17340 export_dynamic_flag_spec_F77='${wl}-E'
17341 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17342 # Instead, shared libraries are loaded at an image base (0x10000000 by
17343 # default) and relocated if they conflict, which is a slow very memory
17344 # consuming and fragmenting process. To avoid this, we pick a random,
17345 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17346 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17347 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'
17348 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'
17349 ;;
17350
17351 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
17352 tmp_diet=no
17353 if test "$host_os" = linux-dietlibc; then
17354 case $cc_basename in
17355 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
17356 esac
17357 fi
17358 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
17359 && test "$tmp_diet" = no
17360 then
17361 tmp_addflag=' $pic_flag'
17362 tmp_sharedflag='-shared'
17363 case $cc_basename,$host_cpu in
17364 pgcc*) # Portland Group C compiler
17365 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'
17366 tmp_addflag=' $pic_flag'
17367 ;;
17368 pgf77* | pgf90* | pgf95* | pgfortran*)
17369 # Portland Group f77 and f90 compilers
17370 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'
17371 tmp_addflag=' $pic_flag -Mnomain' ;;
17372 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17373 tmp_addflag=' -i_dynamic' ;;
17374 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17375 tmp_addflag=' -i_dynamic -nofor_main' ;;
17376 ifc* | ifort*) # Intel Fortran compiler
17377 tmp_addflag=' -nofor_main' ;;
17378 lf95*) # Lahey Fortran 8.1
17379 whole_archive_flag_spec_F77=
17380 tmp_sharedflag='--shared' ;;
17381 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
17382 tmp_sharedflag='-qmkshrobj'
17383 tmp_addflag= ;;
17384 nvcc*) # Cuda Compiler Driver 2.2
17385 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'
17386 compiler_needs_object_F77=yes
17387 ;;
17388 esac
17389 case `$CC -V 2>&1 | sed 5q` in
17390 *Sun\ C*) # Sun C 5.9
17391 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'
17392 compiler_needs_object_F77=yes
17393 tmp_sharedflag='-G' ;;
17394 *Sun\ F*) # Sun Fortran 8.3
17395 tmp_sharedflag='-G' ;;
17396 esac
17397 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17398
17399 if test "x$supports_anon_versioning" = xyes; then
17400 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17402 echo "local: *; };" >> $output_objdir/$libname.ver~
17403 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17404 fi
17405
17406 case $cc_basename in
17407 xlf* | bgf* | bgxlf* | mpixlf*)
17408 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
17409 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
17410 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17411 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
17412 if test "x$supports_anon_versioning" = xyes; then
17413 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
17414 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17415 echo "local: *; };" >> $output_objdir/$libname.ver~
17416 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
17417 fi
17418 ;;
17419 esac
17420 else
17421 ld_shlibs_F77=no
17422 fi
17423 ;;
17424
17425 netbsd*)
17426 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17427 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17428 wlarc=
17429 else
17430 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17431 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'
17432 fi
17433 ;;
17434
17435 solaris*)
17436 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
17437 ld_shlibs_F77=no
17438 cat <<_LT_EOF 1>&2
17439
17440 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17441 *** create shared libraries on Solaris systems. Therefore, libtool
17442 *** is disabling shared libraries support. We urge you to upgrade GNU
17443 *** binutils to release 2.9.1 or newer. Another option is to modify
17444 *** your PATH or compiler configuration so that the native linker is
17445 *** used, and then restart.
17446
17447 _LT_EOF
17448 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17449 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17450 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'
17451 else
17452 ld_shlibs_F77=no
17453 fi
17454 ;;
17455
17456 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17457 case `$LD -v 2>&1` in
17458 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17459 ld_shlibs_F77=no
17460 cat <<_LT_EOF 1>&2
17461
17462 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17463 *** reliably create shared libraries on SCO systems. Therefore, libtool
17464 *** is disabling shared libraries support. We urge you to upgrade GNU
17465 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17466 *** your PATH or compiler configuration so that the native linker is
17467 *** used, and then restart.
17468
17469 _LT_EOF
17470 ;;
17471 *)
17472 # For security reasons, it is highly recommended that you always
17473 # use absolute paths for naming shared libraries, and exclude the
17474 # DT_RUNPATH tag from executables and libraries. But doing so
17475 # requires that you compile everything twice, which is a pain.
17476 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17477 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
17478 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17479 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17480 else
17481 ld_shlibs_F77=no
17482 fi
17483 ;;
17484 esac
17485 ;;
17486
17487 sunos4*)
17488 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17489 wlarc=
17490 hardcode_direct_F77=yes
17491 hardcode_shlibpath_var_F77=no
17492 ;;
17493
17494 *)
17495 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
17496 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17497 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'
17498 else
17499 ld_shlibs_F77=no
17500 fi
17501 ;;
17502 esac
17503
17504 if test "$ld_shlibs_F77" = no; then
17505 runpath_var=
17506 hardcode_libdir_flag_spec_F77=
17507 export_dynamic_flag_spec_F77=
17508 whole_archive_flag_spec_F77=
17509 fi
17510 else
17511 # PORTME fill in a description of your system's linker (not GNU ld)
17512 case $host_os in
17513 aix3*)
17514 allow_undefined_flag_F77=unsupported
17515 always_export_symbols_F77=yes
17516 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'
17517 # Note: this linker hardcodes the directories in LIBPATH if there
17518 # are no directories specified by -L.
17519 hardcode_minus_L_F77=yes
17520 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17521 # Neither direct hardcoding nor static linking is supported with a
17522 # broken collect2.
17523 hardcode_direct_F77=unsupported
17524 fi
17525 ;;
17526
17527 aix[4-9]*)
17528 if test "$host_cpu" = ia64; then
17529 # On IA64, the linker does run time linking by default, so we don't
17530 # have to do anything special.
17531 aix_use_runtimelinking=no
17532 exp_sym_flag='-Bexport'
17533 no_entry_flag=""
17534 else
17535 # If we're using GNU nm, then we don't want the "-C" option.
17536 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17537 # Also, AIX nm treats weak defined symbols like other global
17538 # defined symbols, whereas GNU nm marks them as "W".
17539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17540 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'
17541 else
17542 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'
17543 fi
17544 aix_use_runtimelinking=no
17545
17546 # Test if we are trying to use run time linking or normal
17547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17548 # need to do runtime linking.
17549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17550 for ld_flag in $LDFLAGS; do
17551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17552 aix_use_runtimelinking=yes
17553 break
17554 fi
17555 done
17556 ;;
17557 esac
17558
17559 exp_sym_flag='-bexport'
17560 no_entry_flag='-bnoentry'
17561 fi
17562
17563 # When large executables or shared objects are built, AIX ld can
17564 # have problems creating the table of contents. If linking a library
17565 # or program results in "error TOC overflow" add -mminimal-toc to
17566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17568
17569 archive_cmds_F77=''
17570 hardcode_direct_F77=yes
17571 hardcode_direct_absolute_F77=yes
17572 hardcode_libdir_separator_F77=':'
17573 link_all_deplibs_F77=yes
17574 file_list_spec_F77='${wl}-f,'
17575
17576 if test "$GCC" = yes; then
17577 case $host_os in aix4.[012]|aix4.[012].*)
17578 # We only want to do this on AIX 4.2 and lower, the check
17579 # below for broken collect2 doesn't work under 4.3+
17580 collect2name=`${CC} -print-prog-name=collect2`
17581 if test -f "$collect2name" &&
17582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17583 then
17584 # We have reworked collect2
17585 :
17586 else
17587 # We have old collect2
17588 hardcode_direct_F77=unsupported
17589 # It fails to find uninstalled libraries when the uninstalled
17590 # path is not listed in the libpath. Setting hardcode_minus_L
17591 # to unsupported forces relinking
17592 hardcode_minus_L_F77=yes
17593 hardcode_libdir_flag_spec_F77='-L$libdir'
17594 hardcode_libdir_separator_F77=
17595 fi
17596 ;;
17597 esac
17598 shared_flag='-shared'
17599 if test "$aix_use_runtimelinking" = yes; then
17600 shared_flag="$shared_flag "'${wl}-G'
17601 fi
17602 else
17603 # not using gcc
17604 if test "$host_cpu" = ia64; then
17605 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17606 # chokes on -Wl,-G. The following line is correct:
17607 shared_flag='-G'
17608 else
17609 if test "$aix_use_runtimelinking" = yes; then
17610 shared_flag='${wl}-G'
17611 else
17612 shared_flag='${wl}-bM:SRE'
17613 fi
17614 fi
17615 fi
17616
17617 export_dynamic_flag_spec_F77='${wl}-bexpall'
17618 # It seems that -bexpall does not export symbols beginning with
17619 # underscore (_), so it is better to generate a list of symbols to export.
17620 always_export_symbols_F77=yes
17621 if test "$aix_use_runtimelinking" = yes; then
17622 # Warning - without using the other runtime loading flags (-brtl),
17623 # -berok will link without error, but may produce a broken library.
17624 allow_undefined_flag_F77='-berok'
17625 # Determine the default libpath from the value encoded in an
17626 # empty executable.
17627 if test "${lt_cv_aix_libpath+set}" = set; then
17628 aix_libpath=$lt_cv_aix_libpath
17629 else
17630 if ${lt_cv_aix_libpath__F77+:} false; then :
17631 $as_echo_n "(cached) " >&6
17632 else
17633 cat > conftest.$ac_ext <<_ACEOF
17634 program main
17635
17636 end
17637 _ACEOF
17638 if ac_fn_f77_try_link "$LINENO"; then :
17639
17640 lt_aix_libpath_sed='
17641 /Import File Strings/,/^$/ {
17642 /^0/ {
17643 s/^0 *\([^ ]*\) *$/\1/
17644 p
17645 }
17646 }'
17647 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17648 # Check for a 64-bit object if we didn't find anything.
17649 if test -z "$lt_cv_aix_libpath__F77"; then
17650 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17651 fi
17652 fi
17653 rm -f core conftest.err conftest.$ac_objext \
17654 conftest$ac_exeext conftest.$ac_ext
17655 if test -z "$lt_cv_aix_libpath__F77"; then
17656 lt_cv_aix_libpath__F77="/usr/lib:/lib"
17657 fi
17658
17659 fi
17660
17661 aix_libpath=$lt_cv_aix_libpath__F77
17662 fi
17663
17664 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17665 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"
17666 else
17667 if test "$host_cpu" = ia64; then
17668 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
17669 allow_undefined_flag_F77="-z nodefs"
17670 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"
17671 else
17672 # Determine the default libpath from the value encoded in an
17673 # empty executable.
17674 if test "${lt_cv_aix_libpath+set}" = set; then
17675 aix_libpath=$lt_cv_aix_libpath
17676 else
17677 if ${lt_cv_aix_libpath__F77+:} false; then :
17678 $as_echo_n "(cached) " >&6
17679 else
17680 cat > conftest.$ac_ext <<_ACEOF
17681 program main
17682
17683 end
17684 _ACEOF
17685 if ac_fn_f77_try_link "$LINENO"; then :
17686
17687 lt_aix_libpath_sed='
17688 /Import File Strings/,/^$/ {
17689 /^0/ {
17690 s/^0 *\([^ ]*\) *$/\1/
17691 p
17692 }
17693 }'
17694 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17695 # Check for a 64-bit object if we didn't find anything.
17696 if test -z "$lt_cv_aix_libpath__F77"; then
17697 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17698 fi
17699 fi
17700 rm -f core conftest.err conftest.$ac_objext \
17701 conftest$ac_exeext conftest.$ac_ext
17702 if test -z "$lt_cv_aix_libpath__F77"; then
17703 lt_cv_aix_libpath__F77="/usr/lib:/lib"
17704 fi
17705
17706 fi
17707
17708 aix_libpath=$lt_cv_aix_libpath__F77
17709 fi
17710
17711 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
17712 # Warning - without using the other run time loading flags,
17713 # -berok will link without error, but may produce a broken library.
17714 no_undefined_flag_F77=' ${wl}-bernotok'
17715 allow_undefined_flag_F77=' ${wl}-berok'
17716 if test "$with_gnu_ld" = yes; then
17717 # We only use this code for GNU lds that support --whole-archive.
17718 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
17719 else
17720 # Exported symbols can be pulled into shared objects from archives
17721 whole_archive_flag_spec_F77='$convenience'
17722 fi
17723 archive_cmds_need_lc_F77=yes
17724 # This is similar to how AIX traditionally builds its shared libraries.
17725 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'
17726 fi
17727 fi
17728 ;;
17729
17730 amigaos*)
17731 case $host_cpu in
17732 powerpc)
17733 # see comment about AmigaOS4 .so support
17734 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17735 archive_expsym_cmds_F77=''
17736 ;;
17737 m68k)
17738 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)'
17739 hardcode_libdir_flag_spec_F77='-L$libdir'
17740 hardcode_minus_L_F77=yes
17741 ;;
17742 esac
17743 ;;
17744
17745 bsdi[45]*)
17746 export_dynamic_flag_spec_F77=-rdynamic
17747 ;;
17748
17749 cygwin* | mingw* | pw32* | cegcc*)
17750 # When not using gcc, we currently assume that we are using
17751 # Microsoft Visual C++.
17752 # hardcode_libdir_flag_spec is actually meaningless, as there is
17753 # no search path for DLLs.
17754 case $cc_basename in
17755 cl* | ifort*)
17756 # Native MSVC
17757 hardcode_libdir_flag_spec_F77=' '
17758 allow_undefined_flag_F77=unsupported
17759 always_export_symbols_F77=yes
17760 file_list_spec_F77='@'
17761 # Tell ltmain to make .lib files, not .a files.
17762 libext=lib
17763 # Tell ltmain to make .dll files, not .so files.
17764 shrext_cmds=".dll"
17765 # FIXME: Setting linknames here is a bad hack.
17766 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
17767 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17768 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
17769 else
17770 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
17771 fi~
17772 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" //link //DLL //IMPLIB:"$tool_output_objdir$libname.lib"~
17773 linknames='
17774 # The linker will not automatically build a static lib if we build a DLL.
17775 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true'
17776 enable_shared_with_static_runtimes_F77=yes
17777 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17778 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17779 # Don't use ranlib
17780 old_postinstall_cmds_F77='chmod 644 $oldlib'
17781 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~
17782 lt_tool_outputfile="@TOOL_OUTPUT@"~
17783 case $lt_outputfile in
17784 *.exe|*.EXE) ;;
17785 *)
17786 lt_outputfile="$lt_outputfile.exe"
17787 lt_tool_outputfile="$lt_tool_outputfile.exe"
17788 ;;
17789 esac~
17790 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
17791 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
17792 $RM "$lt_outputfile.manifest";
17793 fi'
17794 ;;
17795 *)
17796 # Assume MSVC wrapper
17797 hardcode_libdir_flag_spec_F77=' '
17798 allow_undefined_flag_F77=unsupported
17799 # Tell ltmain to make .lib files, not .a files.
17800 libext=lib
17801 # Tell ltmain to make .dll files, not .so files.
17802 shrext_cmds=".dll"
17803 # FIXME: Setting linknames here is a bad hack.
17804 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
17805 # The linker will automatically build a .lib file if we build a DLL.
17806 old_archive_from_new_cmds_F77='true'
17807 # FIXME: Should let the user specify the lib program.
17808 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
17809 enable_shared_with_static_runtimes_F77=yes
17810 ;;
17811 esac
17812 ;;
17813
17814 darwin* | rhapsody*)
17815
17816
17817 archive_cmds_need_lc_F77=no
17818 hardcode_direct_F77=no
17819 hardcode_automatic_F77=yes
17820 hardcode_shlibpath_var_F77=unsupported
17821 if test "$lt_cv_ld_force_load" = "yes"; then
17822 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\"`'
17823 compiler_needs_object_F77=yes
17824 else
17825 whole_archive_flag_spec_F77=''
17826 fi
17827 link_all_deplibs_F77=yes
17828 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
17829 case $cc_basename in
17830 ifort*) _lt_dar_can_shared=yes ;;
17831 *) _lt_dar_can_shared=$GCC ;;
17832 esac
17833 if test "$_lt_dar_can_shared" = "yes"; then
17834 output_verbose_link_cmd=func_echo_all
17835 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}"
17836 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17837 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}"
17838 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}"
17839
17840 else
17841 ld_shlibs_F77=no
17842 fi
17843
17844 ;;
17845
17846 dgux*)
17847 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17848 hardcode_libdir_flag_spec_F77='-L$libdir'
17849 hardcode_shlibpath_var_F77=no
17850 ;;
17851
17852 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17853 # support. Future versions do this automatically, but an explicit c++rt0.o
17854 # does not break anything, and helps significantly (at the cost of a little
17855 # extra space).
17856 freebsd2.2*)
17857 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17858 hardcode_libdir_flag_spec_F77='-R$libdir'
17859 hardcode_direct_F77=yes
17860 hardcode_shlibpath_var_F77=no
17861 ;;
17862
17863 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17864 freebsd2.*)
17865 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17866 hardcode_direct_F77=yes
17867 hardcode_minus_L_F77=yes
17868 hardcode_shlibpath_var_F77=no
17869 ;;
17870
17871 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17872 freebsd* | dragonfly*)
17873 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17874 hardcode_libdir_flag_spec_F77='-R$libdir'
17875 hardcode_direct_F77=yes
17876 hardcode_shlibpath_var_F77=no
17877 ;;
17878
17879 hpux9*)
17880 if test "$GCC" = yes; then
17881 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'
17882 else
17883 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'
17884 fi
17885 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17886 hardcode_libdir_separator_F77=:
17887 hardcode_direct_F77=yes
17888
17889 # hardcode_minus_L: Not really in the search PATH,
17890 # but as the default location of the library.
17891 hardcode_minus_L_F77=yes
17892 export_dynamic_flag_spec_F77='${wl}-E'
17893 ;;
17894
17895 hpux10*)
17896 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17897 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17898 else
17899 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17900 fi
17901 if test "$with_gnu_ld" = no; then
17902 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17903 hardcode_libdir_separator_F77=:
17904 hardcode_direct_F77=yes
17905 hardcode_direct_absolute_F77=yes
17906 export_dynamic_flag_spec_F77='${wl}-E'
17907 # hardcode_minus_L: Not really in the search PATH,
17908 # but as the default location of the library.
17909 hardcode_minus_L_F77=yes
17910 fi
17911 ;;
17912
17913 hpux11*)
17914 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
17915 case $host_cpu in
17916 hppa*64*)
17917 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17918 ;;
17919 ia64*)
17920 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17921 ;;
17922 *)
17923 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17924 ;;
17925 esac
17926 else
17927 case $host_cpu in
17928 hppa*64*)
17929 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17930 ;;
17931 ia64*)
17932 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17933 ;;
17934 *)
17935 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17936 ;;
17937 esac
17938 fi
17939 if test "$with_gnu_ld" = no; then
17940 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
17941 hardcode_libdir_separator_F77=:
17942
17943 case $host_cpu in
17944 hppa*64*|ia64*)
17945 hardcode_direct_F77=no
17946 hardcode_shlibpath_var_F77=no
17947 ;;
17948 *)
17949 hardcode_direct_F77=yes
17950 hardcode_direct_absolute_F77=yes
17951 export_dynamic_flag_spec_F77='${wl}-E'
17952
17953 # hardcode_minus_L: Not really in the search PATH,
17954 # but as the default location of the library.
17955 hardcode_minus_L_F77=yes
17956 ;;
17957 esac
17958 fi
17959 ;;
17960
17961 irix5* | irix6* | nonstopux*)
17962 if test "$GCC" = yes; then
17963 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'
17964 # Try to use the -exported_symbol ld option, if it does not
17965 # work, assume that -exports_file does not work either and
17966 # implicitly export all symbols.
17967 # This should be the same for all languages, so no per-tag cache variable.
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
17969 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
17970 if ${lt_cv_irix_exported_symbol+:} false; then :
17971 $as_echo_n "(cached) " >&6
17972 else
17973 save_LDFLAGS="$LDFLAGS"
17974 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
17975 cat > conftest.$ac_ext <<_ACEOF
17976
17977 subroutine foo
17978 end
17979 _ACEOF
17980 if ac_fn_f77_try_link "$LINENO"; then :
17981 lt_cv_irix_exported_symbol=yes
17982 else
17983 lt_cv_irix_exported_symbol=no
17984 fi
17985 rm -f core conftest.err conftest.$ac_objext \
17986 conftest$ac_exeext conftest.$ac_ext
17987 LDFLAGS="$save_LDFLAGS"
17988 fi
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
17990 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
17991 if test "$lt_cv_irix_exported_symbol" = yes; then
17992 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'
17993 fi
17994 else
17995 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'
17996 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'
17997 fi
17998 archive_cmds_need_lc_F77='no'
17999 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18000 hardcode_libdir_separator_F77=:
18001 inherit_rpath_F77=yes
18002 link_all_deplibs_F77=yes
18003 ;;
18004
18005 netbsd*)
18006 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18007 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18008 else
18009 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18010 fi
18011 hardcode_libdir_flag_spec_F77='-R$libdir'
18012 hardcode_direct_F77=yes
18013 hardcode_shlibpath_var_F77=no
18014 ;;
18015
18016 newsos6)
18017 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18018 hardcode_direct_F77=yes
18019 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18020 hardcode_libdir_separator_F77=:
18021 hardcode_shlibpath_var_F77=no
18022 ;;
18023
18024 *nto* | *qnx*)
18025 ;;
18026
18027 openbsd*)
18028 if test -f /usr/libexec/ld.so; then
18029 hardcode_direct_F77=yes
18030 hardcode_shlibpath_var_F77=no
18031 hardcode_direct_absolute_F77=yes
18032 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18033 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18034 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18035 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18036 export_dynamic_flag_spec_F77='${wl}-E'
18037 else
18038 case $host_os in
18039 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18040 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18041 hardcode_libdir_flag_spec_F77='-R$libdir'
18042 ;;
18043 *)
18044 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18045 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18046 ;;
18047 esac
18048 fi
18049 else
18050 ld_shlibs_F77=no
18051 fi
18052 ;;
18053
18054 os2*)
18055 hardcode_libdir_flag_spec_F77='-L$libdir'
18056 hardcode_minus_L_F77=yes
18057 allow_undefined_flag_F77=unsupported
18058 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'
18059 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18060 ;;
18061
18062 osf3*)
18063 if test "$GCC" = yes; then
18064 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18065 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'
18066 else
18067 allow_undefined_flag_F77=' -expect_unresolved \*'
18068 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'
18069 fi
18070 archive_cmds_need_lc_F77='no'
18071 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18072 hardcode_libdir_separator_F77=:
18073 ;;
18074
18075 osf4* | osf5*) # as osf3* with the addition of -msym flag
18076 if test "$GCC" = yes; then
18077 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
18078 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'
18079 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18080 else
18081 allow_undefined_flag_F77=' -expect_unresolved \*'
18082 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'
18083 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~
18084 $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'
18085
18086 # Both c and cxx compiler support -rpath directly
18087 hardcode_libdir_flag_spec_F77='-rpath $libdir'
18088 fi
18089 archive_cmds_need_lc_F77='no'
18090 hardcode_libdir_separator_F77=:
18091 ;;
18092
18093 solaris*)
18094 no_undefined_flag_F77=' -z defs'
18095 if test "$GCC" = yes; then
18096 wlarc='${wl}'
18097 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18098 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18099 $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'
18100 else
18101 case `$CC -V 2>&1` in
18102 *"Compilers 5.0"*)
18103 wlarc=''
18104 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18105 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18106 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
18107 ;;
18108 *)
18109 wlarc='${wl}'
18110 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
18111 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18112 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
18113 ;;
18114 esac
18115 fi
18116 hardcode_libdir_flag_spec_F77='-R$libdir'
18117 hardcode_shlibpath_var_F77=no
18118 case $host_os in
18119 solaris2.[0-5] | solaris2.[0-5].*) ;;
18120 *)
18121 # The compiler driver will combine and reorder linker options,
18122 # but understands `-z linker_flag'. GCC discards it without `$wl',
18123 # but is careful enough not to reorder.
18124 # Supported since Solaris 2.6 (maybe 2.5.1?)
18125 if test "$GCC" = yes; then
18126 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18127 else
18128 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
18129 fi
18130 ;;
18131 esac
18132 link_all_deplibs_F77=yes
18133 ;;
18134
18135 sunos4*)
18136 if test "x$host_vendor" = xsequent; then
18137 # Use $CC to link under sequent, because it throws in some extra .o
18138 # files that make .init and .fini sections work.
18139 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18140 else
18141 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18142 fi
18143 hardcode_libdir_flag_spec_F77='-L$libdir'
18144 hardcode_direct_F77=yes
18145 hardcode_minus_L_F77=yes
18146 hardcode_shlibpath_var_F77=no
18147 ;;
18148
18149 sysv4)
18150 case $host_vendor in
18151 sni)
18152 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18153 hardcode_direct_F77=yes # is this really true???
18154 ;;
18155 siemens)
18156 ## LD is ld it makes a PLAMLIB
18157 ## CC just makes a GrossModule.
18158 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18159 reload_cmds_F77='$CC -r -o $output$reload_objs'
18160 hardcode_direct_F77=no
18161 ;;
18162 motorola)
18163 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18164 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
18165 ;;
18166 esac
18167 runpath_var='LD_RUN_PATH'
18168 hardcode_shlibpath_var_F77=no
18169 ;;
18170
18171 sysv4.3*)
18172 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18173 hardcode_shlibpath_var_F77=no
18174 export_dynamic_flag_spec_F77='-Bexport'
18175 ;;
18176
18177 sysv4*MP*)
18178 if test -d /usr/nec; then
18179 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18180 hardcode_shlibpath_var_F77=no
18181 runpath_var=LD_RUN_PATH
18182 hardcode_runpath_var=yes
18183 ld_shlibs_F77=yes
18184 fi
18185 ;;
18186
18187 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18188 no_undefined_flag_F77='${wl}-z,text'
18189 archive_cmds_need_lc_F77=no
18190 hardcode_shlibpath_var_F77=no
18191 runpath_var='LD_RUN_PATH'
18192
18193 if test "$GCC" = yes; then
18194 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18195 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18196 else
18197 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18198 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18199 fi
18200 ;;
18201
18202 sysv5* | sco3.2v5* | sco5v6*)
18203 # Note: We can NOT use -z defs as we might desire, because we do not
18204 # link with -lc, and that would cause any symbols used from libc to
18205 # always be unresolved, which means just about no library would
18206 # ever link correctly. If we're not using GNU ld we use -z text
18207 # though, which does catch some bad symbols but isn't as heavy-handed
18208 # as -z defs.
18209 no_undefined_flag_F77='${wl}-z,text'
18210 allow_undefined_flag_F77='${wl}-z,nodefs'
18211 archive_cmds_need_lc_F77=no
18212 hardcode_shlibpath_var_F77=no
18213 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
18214 hardcode_libdir_separator_F77=':'
18215 link_all_deplibs_F77=yes
18216 export_dynamic_flag_spec_F77='${wl}-Bexport'
18217 runpath_var='LD_RUN_PATH'
18218
18219 if test "$GCC" = yes; then
18220 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18222 else
18223 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18224 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 fi
18226 ;;
18227
18228 uts4*)
18229 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18230 hardcode_libdir_flag_spec_F77='-L$libdir'
18231 hardcode_shlibpath_var_F77=no
18232 ;;
18233
18234 *)
18235 ld_shlibs_F77=no
18236 ;;
18237 esac
18238
18239 if test x$host_vendor = xsni; then
18240 case $host in
18241 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18242 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
18243 ;;
18244 esac
18245 fi
18246 fi
18247
18248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
18249 $as_echo "$ld_shlibs_F77" >&6; }
18250 test "$ld_shlibs_F77" = no && can_build_shared=no
18251
18252 with_gnu_ld_F77=$with_gnu_ld
18253
18254
18255
18256
18257
18258
18259 #
18260 # Do we need to explicitly link libc?
18261 #
18262 case "x$archive_cmds_need_lc_F77" in
18263 x|xyes)
18264 # Assume -lc should be added
18265 archive_cmds_need_lc_F77=yes
18266
18267 if test "$enable_shared" = yes && test "$GCC" = yes; then
18268 case $archive_cmds_F77 in
18269 *'~'*)
18270 # FIXME: we may have to deal with multi-command sequences.
18271 ;;
18272 '$CC '*)
18273 # Test whether the compiler implicitly links with -lc since on some
18274 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18275 # to ld, don't add -lc before -lgcc.
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
18277 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18278 if ${lt_cv_archive_cmds_need_lc_F77+:} false; then :
18279 $as_echo_n "(cached) " >&6
18280 else
18281 $RM conftest*
18282 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18283
18284 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18285 (eval $ac_compile) 2>&5
18286 ac_status=$?
18287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18288 test $ac_status = 0; } 2>conftest.err; then
18289 soname=conftest
18290 lib=conftest
18291 libobjs=conftest.$ac_objext
18292 deplibs=
18293 wl=$lt_prog_compiler_wl_F77
18294 pic_flag=$lt_prog_compiler_pic_F77
18295 compiler_flags=-v
18296 linker_flags=-v
18297 verstring=
18298 output_objdir=.
18299 libname=conftest
18300 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
18301 allow_undefined_flag_F77=
18302 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
18303 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
18304 ac_status=$?
18305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18306 test $ac_status = 0; }
18307 then
18308 lt_cv_archive_cmds_need_lc_F77=no
18309 else
18310 lt_cv_archive_cmds_need_lc_F77=yes
18311 fi
18312 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
18313 else
18314 cat conftest.err 1>&5
18315 fi
18316 $RM conftest*
18317
18318 fi
18319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5
18320 $as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; }
18321 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77
18322 ;;
18323 esac
18324 fi
18325 ;;
18326 esac
18327
18328
18329
18330
18331
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343
18344
18345
18346
18347
18348
18349
18350
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367
18368
18369
18370
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387
18388
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
18390 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18391
18392 library_names_spec=
18393 libname_spec='lib$name'
18394 soname_spec=
18395 shrext_cmds=".so"
18396 postinstall_cmds=
18397 postuninstall_cmds=
18398 finish_cmds=
18399 finish_eval=
18400 shlibpath_var=
18401 shlibpath_overrides_runpath=unknown
18402 version_type=none
18403 dynamic_linker="$host_os ld.so"
18404 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18405 need_lib_prefix=unknown
18406 hardcode_into_libs=no
18407
18408 # when you set need_version to no, make sure it does not cause -set_version
18409 # flags to be left without arguments
18410 need_version=unknown
18411
18412 case $host_os in
18413 aix3*)
18414 version_type=linux # correct to gnu/linux during the next big refactor
18415 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18416 shlibpath_var=LIBPATH
18417
18418 # AIX 3 has no versioning support, so we append a major version to the name.
18419 soname_spec='${libname}${release}${shared_ext}$major'
18420 ;;
18421
18422 aix[4-9]*)
18423 version_type=linux # correct to gnu/linux during the next big refactor
18424 need_lib_prefix=no
18425 need_version=no
18426 hardcode_into_libs=yes
18427 if test "$host_cpu" = ia64; then
18428 # AIX 5 supports IA64
18429 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18430 shlibpath_var=LD_LIBRARY_PATH
18431 else
18432 # With GCC up to 2.95.x, collect2 would create an import file
18433 # for dependence libraries. The import file would start with
18434 # the line `#! .'. This would cause the generated library to
18435 # depend on `.', always an invalid library. This was fixed in
18436 # development snapshots of GCC prior to 3.0.
18437 case $host_os in
18438 aix4 | aix4.[01] | aix4.[01].*)
18439 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18440 echo ' yes '
18441 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
18442 :
18443 else
18444 can_build_shared=no
18445 fi
18446 ;;
18447 esac
18448 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18449 # soname into executable. Probably we can add versioning support to
18450 # collect2, so additional links can be useful in future.
18451 if test "$aix_use_runtimelinking" = yes; then
18452 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18453 # instead of lib<name>.a to let people know that these are not
18454 # typical AIX shared libraries.
18455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18456 else
18457 # We preserve .a as extension for shared libraries through AIX4.2
18458 # and later when we are not doing run time linking.
18459 library_names_spec='${libname}${release}.a $libname.a'
18460 soname_spec='${libname}${release}${shared_ext}$major'
18461 fi
18462 shlibpath_var=LIBPATH
18463 fi
18464 ;;
18465
18466 amigaos*)
18467 case $host_cpu in
18468 powerpc)
18469 # Since July 2007 AmigaOS4 officially supports .so libraries.
18470 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
18471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18472 ;;
18473 m68k)
18474 library_names_spec='$libname.ixlibrary $libname.a'
18475 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18476 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'
18477 ;;
18478 esac
18479 ;;
18480
18481 beos*)
18482 library_names_spec='${libname}${shared_ext}'
18483 dynamic_linker="$host_os ld.so"
18484 shlibpath_var=LIBRARY_PATH
18485 ;;
18486
18487 bsdi[45]*)
18488 version_type=linux # correct to gnu/linux during the next big refactor
18489 need_version=no
18490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18493 shlibpath_var=LD_LIBRARY_PATH
18494 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18495 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18496 # the default ld.so.conf also contains /usr/contrib/lib and
18497 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18498 # libtool to hard-code these into programs
18499 ;;
18500
18501 cygwin* | mingw* | pw32* | cegcc*)
18502 version_type=windows
18503 shrext_cmds=".dll"
18504 need_version=no
18505 need_lib_prefix=no
18506
18507 case $GCC,$cc_basename in
18508 yes,*)
18509 # gcc
18510 library_names_spec='$libname.dll.a'
18511 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18512 postinstall_cmds='base_file=`basename \${file}`~
18513 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18514 dldir=$destdir/`dirname \$dlpath`~
18515 test -d \$dldir || mkdir -p \$dldir~
18516 $install_prog $dir/$dlname \$dldir/$dlname~
18517 chmod a+x \$dldir/$dlname~
18518 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18519 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18520 fi'
18521 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18522 dlpath=$dir/\$dldll~
18523 $RM \$dlpath'
18524 shlibpath_overrides_runpath=yes
18525
18526 case $host_os in
18527 cygwin*)
18528 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18529 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18530
18531 ;;
18532 mingw* | cegcc*)
18533 # MinGW DLLs use traditional 'lib' prefix
18534 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18535 ;;
18536 pw32*)
18537 # pw32 DLLs use 'pw' prefix rather than 'lib'
18538 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18539 ;;
18540 esac
18541 dynamic_linker='Win32 ld.exe'
18542 ;;
18543
18544 *,cl* | *,ifort*)
18545 # Native MSVC
18546 libname_spec='$name'
18547 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18548 library_names_spec='${libname}.lib'
18549
18550 case $build_os in
18551 mingw*)
18552 sys_lib_search_path_spec=
18553 lt_save_ifs=$IFS
18554 IFS=';'
18555 for lt_path in $LIB
18556 do
18557 IFS=$lt_save_ifs
18558 # Let DOS variable expansion print the short 8.3 style file name.
18559 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18560 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18561 done
18562 IFS=$lt_save_ifs
18563 # Convert to MSYS style.
18564 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18565 ;;
18566 cygwin*)
18567 # Convert to unix form, then to dos form, then back to unix form
18568 # but this time dos style (no spaces!) so that the unix form looks
18569 # like /cygdrive/c/PROGRA~1:/cygdr...
18570 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18571 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18572 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18573 ;;
18574 *)
18575 sys_lib_search_path_spec="$LIB"
18576 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18577 # It is most probably a Windows format PATH.
18578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18579 else
18580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18581 fi
18582 # FIXME2: find the short name or the path components, as spaces are
18583 # common. (e.g. "Program Files" -> "PROGRA~1")
18584 ;;
18585 esac
18586
18587 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18588 postinstall_cmds='base_file=`basename \${file}`~
18589 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
18590 dldir=$destdir/`dirname \$dlpath`~
18591 test -d \$dldir || mkdir -p \$dldir~
18592 $install_prog $dir/$dlname \$dldir/$dlname'
18593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18594 dlpath=$dir/\$dldll~
18595 $RM \$dlpath'
18596 shlibpath_overrides_runpath=yes
18597 dynamic_linker='Win32 link.exe'
18598 ;;
18599
18600 *)
18601 # Assume MSVC wrapper
18602 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18603 dynamic_linker='Win32 ld.exe'
18604 ;;
18605 esac
18606 # FIXME: first we should search . and the directory the executable is in
18607 shlibpath_var=PATH
18608 ;;
18609
18610 darwin* | rhapsody*)
18611 dynamic_linker="$host_os dyld"
18612 version_type=darwin
18613 need_lib_prefix=no
18614 need_version=no
18615 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18616 soname_spec='${libname}${release}${major}$shared_ext'
18617 shlibpath_overrides_runpath=yes
18618 shlibpath_var=DYLD_LIBRARY_PATH
18619 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18620
18621 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18622 ;;
18623
18624 dgux*)
18625 version_type=linux # correct to gnu/linux during the next big refactor
18626 need_lib_prefix=no
18627 need_version=no
18628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18629 soname_spec='${libname}${release}${shared_ext}$major'
18630 shlibpath_var=LD_LIBRARY_PATH
18631 ;;
18632
18633 freebsd* | dragonfly*)
18634 # DragonFly does not have aout. When/if they implement a new
18635 # versioning mechanism, adjust this.
18636 if test -x /usr/bin/objformat; then
18637 objformat=`/usr/bin/objformat`
18638 else
18639 case $host_os in
18640 freebsd[23].*) objformat=aout ;;
18641 *) objformat=elf ;;
18642 esac
18643 fi
18644 version_type=freebsd-$objformat
18645 case $version_type in
18646 freebsd-elf*)
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18648 need_version=no
18649 need_lib_prefix=no
18650 ;;
18651 freebsd-*)
18652 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18653 need_version=yes
18654 ;;
18655 esac
18656 shlibpath_var=LD_LIBRARY_PATH
18657 case $host_os in
18658 freebsd2.*)
18659 shlibpath_overrides_runpath=yes
18660 ;;
18661 freebsd3.[01]* | freebsdelf3.[01]*)
18662 shlibpath_overrides_runpath=yes
18663 hardcode_into_libs=yes
18664 ;;
18665 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18666 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18667 shlibpath_overrides_runpath=no
18668 hardcode_into_libs=yes
18669 ;;
18670 *) # from 4.6 on, and DragonFly
18671 shlibpath_overrides_runpath=yes
18672 hardcode_into_libs=yes
18673 ;;
18674 esac
18675 ;;
18676
18677 gnu*)
18678 version_type=linux # correct to gnu/linux during the next big refactor
18679 need_lib_prefix=no
18680 need_version=no
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 shlibpath_var=LD_LIBRARY_PATH
18684 shlibpath_overrides_runpath=no
18685 hardcode_into_libs=yes
18686 ;;
18687
18688 haiku*)
18689 version_type=linux # correct to gnu/linux during the next big refactor
18690 need_lib_prefix=no
18691 need_version=no
18692 dynamic_linker="$host_os runtime_loader"
18693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18694 soname_spec='${libname}${release}${shared_ext}$major'
18695 shlibpath_var=LIBRARY_PATH
18696 shlibpath_overrides_runpath=yes
18697 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18698 hardcode_into_libs=yes
18699 ;;
18700
18701 hpux9* | hpux10* | hpux11*)
18702 # Give a soname corresponding to the major version so that dld.sl refuses to
18703 # link against other versions.
18704 version_type=sunos
18705 need_lib_prefix=no
18706 need_version=no
18707 case $host_cpu in
18708 ia64*)
18709 shrext_cmds='.so'
18710 hardcode_into_libs=yes
18711 dynamic_linker="$host_os dld.so"
18712 shlibpath_var=LD_LIBRARY_PATH
18713 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 if test "X$HPUX_IA64_MODE" = X32; then
18717 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18718 else
18719 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18720 fi
18721 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18722 ;;
18723 hppa*64*)
18724 shrext_cmds='.sl'
18725 hardcode_into_libs=yes
18726 dynamic_linker="$host_os dld.sl"
18727 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18728 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18730 soname_spec='${libname}${release}${shared_ext}$major'
18731 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18732 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18733 ;;
18734 *)
18735 shrext_cmds='.sl'
18736 dynamic_linker="$host_os dld.sl"
18737 shlibpath_var=SHLIB_PATH
18738 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18739 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18740 soname_spec='${libname}${release}${shared_ext}$major'
18741 ;;
18742 esac
18743 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18744 postinstall_cmds='chmod 555 $lib'
18745 # or fails outright, so override atomically:
18746 install_override_mode=555
18747 ;;
18748
18749 interix[3-9]*)
18750 version_type=linux # correct to gnu/linux during the next big refactor
18751 need_lib_prefix=no
18752 need_version=no
18753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18754 soname_spec='${libname}${release}${shared_ext}$major'
18755 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18756 shlibpath_var=LD_LIBRARY_PATH
18757 shlibpath_overrides_runpath=no
18758 hardcode_into_libs=yes
18759 ;;
18760
18761 irix5* | irix6* | nonstopux*)
18762 case $host_os in
18763 nonstopux*) version_type=nonstopux ;;
18764 *)
18765 if test "$lt_cv_prog_gnu_ld" = yes; then
18766 version_type=linux # correct to gnu/linux during the next big refactor
18767 else
18768 version_type=irix
18769 fi ;;
18770 esac
18771 need_lib_prefix=no
18772 need_version=no
18773 soname_spec='${libname}${release}${shared_ext}$major'
18774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18775 case $host_os in
18776 irix5* | nonstopux*)
18777 libsuff= shlibsuff=
18778 ;;
18779 *)
18780 case $LD in # libtool.m4 will add one of these switches to LD
18781 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18782 libsuff= shlibsuff= libmagic=32-bit;;
18783 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18784 libsuff=32 shlibsuff=N32 libmagic=N32;;
18785 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18786 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18787 *) libsuff= shlibsuff= libmagic=never-match;;
18788 esac
18789 ;;
18790 esac
18791 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18792 shlibpath_overrides_runpath=no
18793 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18794 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18795 hardcode_into_libs=yes
18796 ;;
18797
18798 # No shared lib support for Linux oldld, aout, or coff.
18799 linux*oldld* | linux*aout* | linux*coff*)
18800 dynamic_linker=no
18801 ;;
18802
18803 # This must be glibc/ELF.
18804 linux* | k*bsd*-gnu | kopensolaris*-gnu)
18805 version_type=linux # correct to gnu/linux during the next big refactor
18806 need_lib_prefix=no
18807 need_version=no
18808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18809 soname_spec='${libname}${release}${shared_ext}$major'
18810 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18811 shlibpath_var=LD_LIBRARY_PATH
18812 shlibpath_overrides_runpath=no
18813
18814 # Some binutils ld are patched to set DT_RUNPATH
18815 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18816 $as_echo_n "(cached) " >&6
18817 else
18818 lt_cv_shlibpath_overrides_runpath=no
18819 save_LDFLAGS=$LDFLAGS
18820 save_libdir=$libdir
18821 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
18822 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
18823 cat > conftest.$ac_ext <<_ACEOF
18824 program main
18825
18826 end
18827 _ACEOF
18828 if ac_fn_f77_try_link "$LINENO"; then :
18829 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18830 lt_cv_shlibpath_overrides_runpath=yes
18831 fi
18832 fi
18833 rm -f core conftest.err conftest.$ac_objext \
18834 conftest$ac_exeext conftest.$ac_ext
18835 LDFLAGS=$save_LDFLAGS
18836 libdir=$save_libdir
18837
18838 fi
18839
18840 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18841
18842 # This implies no fast_install, which is unacceptable.
18843 # Some rework will be needed to allow for fast_install
18844 # before this can be enabled.
18845 hardcode_into_libs=yes
18846
18847 # Append ld.so.conf contents to the search path
18848 if test -f /etc/ld.so.conf; then
18849 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' ' '`
18850 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18851 fi
18852
18853 # We used to test for /lib/ld.so.1 and disable shared libraries on
18854 # powerpc, because MkLinux only supported shared libraries with the
18855 # GNU dynamic linker. Since this was broken with cross compilers,
18856 # most powerpc-linux boxes support dynamic linking these days and
18857 # people can always --disable-shared, the test was removed, and we
18858 # assume the GNU/Linux dynamic linker is in use.
18859 dynamic_linker='GNU/Linux ld.so'
18860 ;;
18861
18862 netbsd*)
18863 version_type=sunos
18864 need_lib_prefix=no
18865 need_version=no
18866 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18867 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18868 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18869 dynamic_linker='NetBSD (a.out) ld.so'
18870 else
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 dynamic_linker='NetBSD ld.elf_so'
18874 fi
18875 shlibpath_var=LD_LIBRARY_PATH
18876 shlibpath_overrides_runpath=yes
18877 hardcode_into_libs=yes
18878 ;;
18879
18880 newsos6)
18881 version_type=linux # correct to gnu/linux during the next big refactor
18882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18883 shlibpath_var=LD_LIBRARY_PATH
18884 shlibpath_overrides_runpath=yes
18885 ;;
18886
18887 *nto* | *qnx*)
18888 version_type=qnx
18889 need_lib_prefix=no
18890 need_version=no
18891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18892 soname_spec='${libname}${release}${shared_ext}$major'
18893 shlibpath_var=LD_LIBRARY_PATH
18894 shlibpath_overrides_runpath=no
18895 hardcode_into_libs=yes
18896 dynamic_linker='ldqnx.so'
18897 ;;
18898
18899 openbsd*)
18900 version_type=sunos
18901 sys_lib_dlsearch_path_spec="/usr/lib"
18902 need_lib_prefix=no
18903 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18904 case $host_os in
18905 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18906 *) need_version=no ;;
18907 esac
18908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18909 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18910 shlibpath_var=LD_LIBRARY_PATH
18911 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18912 case $host_os in
18913 openbsd2.[89] | openbsd2.[89].*)
18914 shlibpath_overrides_runpath=no
18915 ;;
18916 *)
18917 shlibpath_overrides_runpath=yes
18918 ;;
18919 esac
18920 else
18921 shlibpath_overrides_runpath=yes
18922 fi
18923 ;;
18924
18925 os2*)
18926 libname_spec='$name'
18927 shrext_cmds=".dll"
18928 need_lib_prefix=no
18929 library_names_spec='$libname${shared_ext} $libname.a'
18930 dynamic_linker='OS/2 ld.exe'
18931 shlibpath_var=LIBPATH
18932 ;;
18933
18934 osf3* | osf4* | osf5*)
18935 version_type=osf
18936 need_lib_prefix=no
18937 need_version=no
18938 soname_spec='${libname}${release}${shared_ext}$major'
18939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18940 shlibpath_var=LD_LIBRARY_PATH
18941 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18942 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18943 ;;
18944
18945 rdos*)
18946 dynamic_linker=no
18947 ;;
18948
18949 solaris*)
18950 version_type=linux # correct to gnu/linux during the next big refactor
18951 need_lib_prefix=no
18952 need_version=no
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18954 soname_spec='${libname}${release}${shared_ext}$major'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 shlibpath_overrides_runpath=yes
18957 hardcode_into_libs=yes
18958 # ldd complains unless libraries are executable
18959 postinstall_cmds='chmod +x $lib'
18960 ;;
18961
18962 sunos4*)
18963 version_type=sunos
18964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18965 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18966 shlibpath_var=LD_LIBRARY_PATH
18967 shlibpath_overrides_runpath=yes
18968 if test "$with_gnu_ld" = yes; then
18969 need_lib_prefix=no
18970 fi
18971 need_version=yes
18972 ;;
18973
18974 sysv4 | sysv4.3*)
18975 version_type=linux # correct to gnu/linux during the next big refactor
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 case $host_vendor in
18980 sni)
18981 shlibpath_overrides_runpath=no
18982 need_lib_prefix=no
18983 runpath_var=LD_RUN_PATH
18984 ;;
18985 siemens)
18986 need_lib_prefix=no
18987 ;;
18988 motorola)
18989 need_lib_prefix=no
18990 need_version=no
18991 shlibpath_overrides_runpath=no
18992 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18993 ;;
18994 esac
18995 ;;
18996
18997 sysv4*MP*)
18998 if test -d /usr/nec ;then
18999 version_type=linux # correct to gnu/linux during the next big refactor
19000 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19001 soname_spec='$libname${shared_ext}.$major'
19002 shlibpath_var=LD_LIBRARY_PATH
19003 fi
19004 ;;
19005
19006 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19007 version_type=freebsd-elf
19008 need_lib_prefix=no
19009 need_version=no
19010 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19011 soname_spec='${libname}${release}${shared_ext}$major'
19012 shlibpath_var=LD_LIBRARY_PATH
19013 shlibpath_overrides_runpath=yes
19014 hardcode_into_libs=yes
19015 if test "$with_gnu_ld" = yes; then
19016 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19017 else
19018 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
19019 case $host_os in
19020 sco3.2v5*)
19021 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
19022 ;;
19023 esac
19024 fi
19025 sys_lib_dlsearch_path_spec='/usr/lib'
19026 ;;
19027
19028 tpf*)
19029 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
19030 version_type=linux # correct to gnu/linux during the next big refactor
19031 need_lib_prefix=no
19032 need_version=no
19033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19034 shlibpath_var=LD_LIBRARY_PATH
19035 shlibpath_overrides_runpath=no
19036 hardcode_into_libs=yes
19037 ;;
19038
19039 uts4*)
19040 version_type=linux # correct to gnu/linux during the next big refactor
19041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19042 soname_spec='${libname}${release}${shared_ext}$major'
19043 shlibpath_var=LD_LIBRARY_PATH
19044 ;;
19045
19046 *)
19047 dynamic_linker=no
19048 ;;
19049 esac
19050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
19051 $as_echo "$dynamic_linker" >&6; }
19052 test "$dynamic_linker" = no && can_build_shared=no
19053
19054 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19055 if test "$GCC" = yes; then
19056 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19057 fi
19058
19059 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
19060 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
19061 fi
19062 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
19063 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19064 fi
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083
19084
19085
19086
19087
19088
19089
19090
19091
19092
19093
19094
19095
19096
19097
19098
19099
19100
19101
19102
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
19104 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19105 hardcode_action_F77=
19106 if test -n "$hardcode_libdir_flag_spec_F77" ||
19107 test -n "$runpath_var_F77" ||
19108 test "X$hardcode_automatic_F77" = "Xyes" ; then
19109
19110 # We can hardcode non-existent directories.
19111 if test "$hardcode_direct_F77" != no &&
19112 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19113 # have to relink, otherwise we might link with an installed library
19114 # when we should be linking with a yet-to-be-installed one
19115 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
19116 test "$hardcode_minus_L_F77" != no; then
19117 # Linking always hardcodes the temporary library directory.
19118 hardcode_action_F77=relink
19119 else
19120 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19121 hardcode_action_F77=immediate
19122 fi
19123 else
19124 # We cannot hardcode anything, or else we can only hardcode existing
19125 # directories.
19126 hardcode_action_F77=unsupported
19127 fi
19128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
19129 $as_echo "$hardcode_action_F77" >&6; }
19130
19131 if test "$hardcode_action_F77" = relink ||
19132 test "$inherit_rpath_F77" = yes; then
19133 # Fast installation is not supported
19134 enable_fast_install=no
19135 elif test "$shlibpath_overrides_runpath" = yes ||
19136 test "$enable_shared" = no; then
19137 # Fast installation is not necessary
19138 enable_fast_install=needless
19139 fi
19140
19141
19142
19143
19144
19145
19146
19147 fi # test -n "$compiler"
19148
19149 GCC=$lt_save_GCC
19150 CC="$lt_save_CC"
19151 CFLAGS="$lt_save_CFLAGS"
19152 fi # test "$_lt_disable_F77" != yes
19153
19154 ac_ext=c
19155 ac_cpp='$CPP $CPPFLAGS'
19156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19159
19160
19161 # AC_PROG_F77 doesn't fail if compiler is not found, test it explicitely
19162 ac_ext=f
19163 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19164 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19165 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19166
19167 cat > conftest.$ac_ext <<_ACEOF
19168 program main
19169 write(*,*) 'hello'
19170 end
19171 _ACEOF
19172 if ac_fn_f77_try_link "$LINENO"; then :
19173
19174 else
19175 as_fn_error $? "Fortran compiler not found." "$LINENO" 5
19176 fi
19177 rm -f core conftest.err conftest.$ac_objext \
19178 conftest$ac_exeext conftest.$ac_ext
19179 ac_ext=c
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185 # Extract the first word of "m4", so it can be a program name with args.
19186 set dummy m4; ac_word=$2
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19188 $as_echo_n "checking for $ac_word... " >&6; }
19189 if ${ac_cv_path_M4+:} false; then :
19190 $as_echo_n "(cached) " >&6
19191 else
19192 case $M4 in
19193 [\\/]* | ?:[\\/]*)
19194 ac_cv_path_M4="$M4" # Let the user override the test with a path.
19195 ;;
19196 *)
19197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19198 for as_dir in $PATH
19199 do
19200 IFS=$as_save_IFS
19201 test -z "$as_dir" && as_dir=.
19202 for ac_exec_ext in '' $ac_executable_extensions; do
19203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19204 ac_cv_path_M4="$as_dir/$ac_word$ac_exec_ext"
19205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19206 break 2
19207 fi
19208 done
19209 done
19210 IFS=$as_save_IFS
19211
19212 ;;
19213 esac
19214 fi
19215 M4=$ac_cv_path_M4
19216 if test -n "$M4"; then
19217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
19218 $as_echo "$M4" >&6; }
19219 else
19220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19221 $as_echo "no" >&6; }
19222 fi
19223
19224
19225 if test x"$M4" = "x"; then
19226 as_fn_error $? "m4 program not found." "$LINENO" 5
19227 fi
19228 # TODO: it'd be better to check for features rather than compilers,
19229 # but I'm afraid of changing this and unix.m4.
19230 cc_basename=`$ECHO "X$compiler_F77" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19231 case $host_os in
19232 linux*|mingw* )
19233 case $cc_basename,$host_cpu in
19234 ifort*)
19235 M4_ARG=${M4_ARG:-"-D_ifc=8"}
19236
19237 $as_echo "#define IFC 8" >>confdefs.h
19238
19239 ;;
19240 ifc*)
19241 M4_ARG=${M4_ARG:-"-D_efc=1"}
19242
19243 $as_echo "#define IFC 1" >>confdefs.h
19244
19245 ;;
19246 g77*)
19247 M4_ARG=${M4_ARG:-"-D_g77=1"}
19248
19249 $as_echo "#define G77 1" >>confdefs.h
19250
19251 ;;
19252 gfortran*)
19253 M4_ARG=${M4_ARG-"-D_gfort=1"}
19254
19255 $as_echo "#define GFORTRAN 1" >>confdefs.h
19256
19257 ;;
19258 xlf*)
19259 M4_ARG=${M4_ARG-"-D_xlf=1"} ;;
19260 pgf*) ;;
19261 esac
19262 ;;
19263 darwin* )
19264 case $cc_basename,$host_cpu in
19265 ifort*)
19266 M4_ARG=${M4_ARG:-"-D_ifc=8"}
19267
19268 $as_echo "#define IFC 8" >>confdefs.h
19269
19270 ;;
19271 ifc*)
19272 M4_ARG=${M4_ARG:-"-D_ifc=1"}
19273
19274 $as_echo "#define IFC 1" >>confdefs.h
19275
19276 ;;
19277 g77*)
19278 M4_ARG=${M4_ARG:-"-D_g77=1"}
19279
19280 $as_echo "#define G77 1" >>confdefs.h
19281
19282 ;;
19283 gfortran*)
19284 M4_ARG=${M4_ARG-"-D_gfort=1"}
19285
19286 $as_echo "#define GFORTRAN 1" >>confdefs.h
19287
19288 ;;
19289 xlf*)
19290 M4_ARG=${M4_ARG-"-D_xlf=1"} ;;
19291 esac
19292 ;;
19293 irix* )
19294 case $cc_basename,$host_cpu in
19295 f77* )
19296 M4_ARG=${M4_ARG:-"-D_sgi=1"}
19297 ;;
19298 f90*)
19299 M4_ARG=${M4_ARG:-"-D_sgi=1 -D_f90=1"}
19300 ;;
19301 esac
19302 esac
19303
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19306
19307 int
19308 main ()
19309 {
19310 return _WIN32;
19311 ;
19312 return 0;
19313 }
19314 _ACEOF
19315 if ac_fn_c_try_compile "$LINENO"; then :
19316 M4_ARG="$M4_ARG -D_windows=1"
19317 fi
19318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19319
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: fortran/unix.m4 will be processed with m4 $M4_ARG" >&5
19321 $as_echo "$as_me: fortran/unix.m4 will be processed with m4 $M4_ARG" >&6;}
19322
19323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing cos" >&5
19324 $as_echo_n "checking for library containing cos... " >&6; }
19325 if ${ac_cv_search_cos+:} false; then :
19326 $as_echo_n "(cached) " >&6
19327 else
19328 ac_func_search_save_LIBS=$LIBS
19329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19330 /* end confdefs.h. */
19331
19332 /* Override any GCC internal prototype to avoid an error.
19333 Use char because int might match the return type of a GCC
19334 builtin and then its argument prototype would still apply. */
19335 #ifdef __cplusplus
19336 extern "C"
19337 #endif
19338 char cos ();
19339 int
19340 main ()
19341 {
19342 return cos ();
19343 ;
19344 return 0;
19345 }
19346 _ACEOF
19347 for ac_lib in '' m; do
19348 if test -z "$ac_lib"; then
19349 ac_res="none required"
19350 else
19351 ac_res=-l$ac_lib
19352 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
19353 fi
19354 if ac_fn_c_try_link "$LINENO"; then :
19355 ac_cv_search_cos=$ac_res
19356 fi
19357 rm -f core conftest.err conftest.$ac_objext \
19358 conftest$ac_exeext
19359 if ${ac_cv_search_cos+:} false; then :
19360 break
19361 fi
19362 done
19363 if ${ac_cv_search_cos+:} false; then :
19364
19365 else
19366 ac_cv_search_cos=no
19367 fi
19368 rm conftest.$ac_ext
19369 LIBS=$ac_func_search_save_LIBS
19370 fi
19371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_cos" >&5
19372 $as_echo "$ac_cv_search_cos" >&6; }
19373 ac_res=$ac_cv_search_cos
19374 if test "$ac_res" != no; then :
19375 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19376
19377 else
19378 as_fn_error $? "math library not found." "$LINENO" 5
19379 fi
19380
19381 ac_ext=cpp
19382 ac_cpp='$CXXCPP $CPPFLAGS'
19383 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19384 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19385 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19386
19387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MMDB_CCIF_Init in -lmmdb2" >&5
19388 $as_echo_n "checking for MMDB_CCIF_Init in -lmmdb2... " >&6; }
19389 if ${ac_cv_lib_mmdb2_MMDB_CCIF_Init+:} false; then :
19390 $as_echo_n "(cached) " >&6
19391 else
19392 ac_check_lib_save_LIBS=$LIBS
19393 LIBS="-lmmdb2 $LIBS"
19394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19395 /* end confdefs.h. */
19396
19397 /* Override any GCC internal prototype to avoid an error.
19398 Use char because int might match the return type of a GCC
19399 builtin and then its argument prototype would still apply. */
19400 #ifdef __cplusplus
19401 extern "C"
19402 #endif
19403 char MMDB_CCIF_Init ();
19404 int
19405 main ()
19406 {
19407 return MMDB_CCIF_Init ();
19408 ;
19409 return 0;
19410 }
19411 _ACEOF
19412 if ac_fn_cxx_try_link "$LINENO"; then :
19413 ac_cv_lib_mmdb2_MMDB_CCIF_Init=yes
19414 else
19415 ac_cv_lib_mmdb2_MMDB_CCIF_Init=no
19416 fi
19417 rm -f core conftest.err conftest.$ac_objext \
19418 conftest$ac_exeext conftest.$ac_ext
19419 LIBS=$ac_check_lib_save_LIBS
19420 fi
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mmdb2_MMDB_CCIF_Init" >&5
19422 $as_echo "$ac_cv_lib_mmdb2_MMDB_CCIF_Init" >&6; }
19423 if test "x$ac_cv_lib_mmdb2_MMDB_CCIF_Init" = xyes; then :
19424 :
19425 else
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mmdb2 library not found." >&5
19427 $as_echo "$as_me: WARNING: mmdb2 library not found." >&2;}
19428 fi
19429
19430 ac_ext=c
19431 ac_cpp='$CPP $CPPFLAGS'
19432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19435
19436
19437 ac_ext=f
19438 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
19439 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19440 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
19441
19442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Fortran 77 compiler accepts -fallow-argument-mismatch" >&5
19443 $as_echo_n "checking whether Fortran 77 compiler accepts -fallow-argument-mismatch... " >&6; }
19444 if ${ax_cv_check_f77flags__Werror__fallow_argument_mismatch+:} false; then :
19445 $as_echo_n "(cached) " >&6
19446 else
19447
19448 ax_check_save_flags=$FFLAGS
19449 FFLAGS="$FFLAGS -Werror -fallow-argument-mismatch"
19450 cat > conftest.$ac_ext <<_ACEOF
19451 program main
19452
19453 end
19454 _ACEOF
19455 if ac_fn_f77_try_compile "$LINENO"; then :
19456 ax_cv_check_f77flags__Werror__fallow_argument_mismatch=yes
19457 else
19458 ax_cv_check_f77flags__Werror__fallow_argument_mismatch=no
19459 fi
19460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19461 FFLAGS=$ax_check_save_flags
19462 fi
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_f77flags__Werror__fallow_argument_mismatch" >&5
19464 $as_echo "$ax_cv_check_f77flags__Werror__fallow_argument_mismatch" >&6; }
19465 if test "x$ax_cv_check_f77flags__Werror__fallow_argument_mismatch" = xyes; then :
19466 FFLAGS="$AM_FFLAGS -fallow-argument-mismatch"
19467 else
19468 :
19469 fi
19470
19471 ac_ext=c
19472 ac_cpp='$CPP $CPPFLAGS'
19473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19476
19477
19478 fi #dnl fortran API elements
19479
19480 if test "x$G77" = "xyes"; then
19481 GNU_FORTRAN_TRUE=
19482 GNU_FORTRAN_FALSE='#'
19483 else
19484 GNU_FORTRAN_TRUE='#'
19485 GNU_FORTRAN_FALSE=
19486 fi
19487
19488
19489 # TODO: prefix or pkgdatadir can be changed after configure is run,
19490 # setting PACKAGE_ROOT here can fail, it would be better to set:
19491 # ccp4_libccp4c_la_CPPFLAGS= -DDATA_DIR=\"$(pkgdatadir)\"
19492 PACKAGE_ROOT=$prefix
19493 test "x$PACKAGE_ROOT" = xNONE && PACKAGE_ROOT=$ac_default_prefix
19494
19495 cat >>confdefs.h <<_ACEOF
19496 #define PACKAGE_ROOT "$PACKAGE_ROOT"
19497 _ACEOF
19498
19499
19500
19501
19502 ac_config_files="$ac_config_files Makefile ccp4c.pc ccp4f.pc"
19503
19504 cat >confcache <<\_ACEOF
19505 # This file is a shell script that caches the results of configure
19506 # tests run on this system so they can be shared between configure
19507 # scripts and configure runs, see configure's option --config-cache.
19508 # It is not useful on other systems. If it contains results you don't
19509 # want to keep, you may remove or edit it.
19510 #
19511 # config.status only pays attention to the cache file if you give it
19512 # the --recheck option to rerun configure.
19513 #
19514 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19515 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19516 # following values.
19517
19518 _ACEOF
19519
19520 # The following way of writing the cache mishandles newlines in values,
19521 # but we know of no workaround that is simple, portable, and efficient.
19522 # So, we kill variables containing newlines.
19523 # Ultrix sh set writes to stderr and can't be redirected directly,
19524 # and sets the high bit in the cache file unless we assign to the vars.
19525 (
19526 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19527 eval ac_val=\$$ac_var
19528 case $ac_val in #(
19529 *${as_nl}*)
19530 case $ac_var in #(
19531 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19532 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
19533 esac
19534 case $ac_var in #(
19535 _ | IFS | as_nl) ;; #(
19536 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19537 *) { eval $ac_var=; unset $ac_var;} ;;
19538 esac ;;
19539 esac
19540 done
19541
19542 (set) 2>&1 |
19543 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19544 *${as_nl}ac_space=\ *)
19545 # `set' does not quote correctly, so add quotes: double-quote
19546 # substitution turns \\\\ into \\, and sed turns \\ into \.
19547 sed -n \
19548 "s/'/'\\\\''/g;
19549 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19550 ;; #(
19551 *)
19552 # `set' quotes correctly as required by POSIX, so do not add quotes.
19553 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19554 ;;
19555 esac |
19556 sort
19557 ) |
19558 sed '
19559 /^ac_cv_env_/b end
19560 t clear
19561 :clear
19562 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19563 t end
19564 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19565 :end' >>confcache
19566 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19567 if test -w "$cache_file"; then
19568 if test "x$cache_file" != "x/dev/null"; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19570 $as_echo "$as_me: updating cache $cache_file" >&6;}
19571 if test ! -f "$cache_file" || test -h "$cache_file"; then
19572 cat confcache >"$cache_file"
19573 else
19574 case $cache_file in #(
19575 */* | ?:*)
19576 mv -f confcache "$cache_file"$$ &&
19577 mv -f "$cache_file"$$ "$cache_file" ;; #(
19578 *)
19579 mv -f confcache "$cache_file" ;;
19580 esac
19581 fi
19582 fi
19583 else
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19585 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
19586 fi
19587 fi
19588 rm -f confcache
19589
19590 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19591 # Let make expand exec_prefix.
19592 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19593
19594 DEFS=-DHAVE_CONFIG_H
19595
19596 ac_libobjs=
19597 ac_ltlibobjs=
19598 U=
19599 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19600 # 1. Remove the extension, and $U if already installed.
19601 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19602 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19603 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19604 # will be set to the directory where LIBOBJS objects are built.
19605 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19606 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19607 done
19608 LIBOBJS=$ac_libobjs
19609
19610 LTLIBOBJS=$ac_ltlibobjs
19611
19612
19613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
19614 $as_echo_n "checking that generated files are newer than configure... " >&6; }
19615 if test -n "$am_sleep_pid"; then
19616 # Hide warnings about reused PIDs.
19617 wait $am_sleep_pid 2>/dev/null
19618 fi
19619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
19620 $as_echo "done" >&6; }
19621 if test -n "$EXEEXT"; then
19622 am__EXEEXT_TRUE=
19623 am__EXEEXT_FALSE='#'
19624 else
19625 am__EXEEXT_TRUE='#'
19626 am__EXEEXT_FALSE=
19627 fi
19628
19629 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
19630 as_fn_error $? "conditional \"AMDEP\" was never defined.
19631 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19632 fi
19633 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19634 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19635 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19636 fi
19637 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
19638 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
19639 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19640 fi
19641 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
19642 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
19643 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19644 fi
19645 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
19646 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
19647 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19648 fi
19649 if test -z "${FORTRAN_LIB_TRUE}" && test -z "${FORTRAN_LIB_FALSE}"; then
19650 as_fn_error $? "conditional \"FORTRAN_LIB\" was never defined.
19651 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19652 fi
19653 if test -z "${GNU_FORTRAN_TRUE}" && test -z "${GNU_FORTRAN_FALSE}"; then
19654 as_fn_error $? "conditional \"GNU_FORTRAN\" was never defined.
19655 Usually this means the macro was only invoked conditionally." "$LINENO" 5
19656 fi
19657
19658 : "${CONFIG_STATUS=./config.status}"
19659 ac_write_fail=0
19660 ac_clean_files_save=$ac_clean_files
19661 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19662 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19663 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19664 as_write_fail=0
19665 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19666 #! $SHELL
19667 # Generated by $as_me.
19668 # Run this file to recreate the current configuration.
19669 # Compiler output produced by configure, useful for debugging
19670 # configure, is in config.log if it exists.
19671
19672 debug=false
19673 ac_cs_recheck=false
19674 ac_cs_silent=false
19675
19676 SHELL=\${CONFIG_SHELL-$SHELL}
19677 export SHELL
19678 _ASEOF
19679 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19680 ## -------------------- ##
19681 ## M4sh Initialization. ##
19682 ## -------------------- ##
19683
19684 # Be more Bourne compatible
19685 DUALCASE=1; export DUALCASE # for MKS sh
19686 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19687 emulate sh
19688 NULLCMD=:
19689 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19690 # is contrary to our usage. Disable this feature.
19691 alias -g '${1+"$@"}'='"$@"'
19692 setopt NO_GLOB_SUBST
19693 else
19694 case `(set -o) 2>/dev/null` in #(
19695 *posix*) :
19696 set -o posix ;; #(
19697 *) :
19698 ;;
19699 esac
19700 fi
19701
19702
19703 as_nl='
19704 '
19705 export as_nl
19706 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19707 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19708 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
19709 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19710 # Prefer a ksh shell builtin over an external printf program on Solaris,
19711 # but without wasting forks for bash or zsh.
19712 if test -z "$BASH_VERSION$ZSH_VERSION" \
19713 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
19714 as_echo='print -r --'
19715 as_echo_n='print -rn --'
19716 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
19717 as_echo='printf %s\n'
19718 as_echo_n='printf %s'
19719 else
19720 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19721 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
19722 as_echo_n='/usr/ucb/echo -n'
19723 else
19724 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
19725 as_echo_n_body='eval
19726 arg=$1;
19727 case $arg in #(
19728 *"$as_nl"*)
19729 expr "X$arg" : "X\\(.*\\)$as_nl";
19730 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19731 esac;
19732 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19733 '
19734 export as_echo_n_body
19735 as_echo_n='sh -c $as_echo_n_body as_echo'
19736 fi
19737 export as_echo_body
19738 as_echo='sh -c $as_echo_body as_echo'
19739 fi
19740
19741 # The user is always right.
19742 if test "${PATH_SEPARATOR+set}" != set; then
19743 PATH_SEPARATOR=:
19744 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
19745 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
19746 PATH_SEPARATOR=';'
19747 }
19748 fi
19749
19750
19751 # IFS
19752 # We need space, tab and new line, in precisely that order. Quoting is
19753 # there to prevent editors from complaining about space-tab.
19754 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19755 # splitting by setting IFS to empty value.)
19756 IFS=" "" $as_nl"
19757
19758 # Find who we are. Look in the path if we contain no directory separator.
19759 as_myself=
19760 case $0 in #((
19761 *[\\/]* ) as_myself=$0 ;;
19762 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19763 for as_dir in $PATH
19764 do
19765 IFS=$as_save_IFS
19766 test -z "$as_dir" && as_dir=.
19767 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
19768 done
19769 IFS=$as_save_IFS
19770
19771 ;;
19772 esac
19773 # We did not find ourselves, most probably we were run as `sh COMMAND'
19774 # in which case we are not to be found in the path.
19775 if test "x$as_myself" = x; then
19776 as_myself=$0
19777 fi
19778 if test ! -f "$as_myself"; then
19779 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19780 exit 1
19781 fi
19782
19783 # Unset variables that we do not need and which cause bugs (e.g. in
19784 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19785 # suppresses any "Segmentation fault" message there. '((' could
19786 # trigger a bug in pdksh 5.2.14.
19787 for as_var in BASH_ENV ENV MAIL MAILPATH
19788 do eval test x\${$as_var+set} = xset \
19789 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
19790 done
19791 PS1='$ '
19792 PS2='> '
19793 PS4='+ '
19794
19795 # NLS nuisances.
19796 LC_ALL=C
19797 export LC_ALL
19798 LANGUAGE=C
19799 export LANGUAGE
19800
19801 # CDPATH.
19802 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
19803
19804
19805 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19806 # ----------------------------------------
19807 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19808 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19809 # script with STATUS, using 1 if that was 0.
19810 as_fn_error ()
19811 {
19812 as_status=$1; test $as_status -eq 0 && as_status=1
19813 if test "$4"; then
19814 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
19815 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19816 fi
19817 $as_echo "$as_me: error: $2" >&2
19818 as_fn_exit $as_status
19819 } # as_fn_error
19820
19821
19822 # as_fn_set_status STATUS
19823 # -----------------------
19824 # Set $? to STATUS, without forking.
19825 as_fn_set_status ()
19826 {
19827 return $1
19828 } # as_fn_set_status
19829
19830 # as_fn_exit STATUS
19831 # -----------------
19832 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19833 as_fn_exit ()
19834 {
19835 set +e
19836 as_fn_set_status $1
19837 exit $1
19838 } # as_fn_exit
19839
19840 # as_fn_unset VAR
19841 # ---------------
19842 # Portably unset VAR.
19843 as_fn_unset ()
19844 {
19845 { eval $1=; unset $1;}
19846 }
19847 as_unset=as_fn_unset
19848 # as_fn_append VAR VALUE
19849 # ----------------------
19850 # Append the text in VALUE to the end of the definition contained in VAR. Take
19851 # advantage of any shell optimizations that allow amortized linear growth over
19852 # repeated appends, instead of the typical quadratic growth present in naive
19853 # implementations.
19854 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
19855 eval 'as_fn_append ()
19856 {
19857 eval $1+=\$2
19858 }'
19859 else
19860 as_fn_append ()
19861 {
19862 eval $1=\$$1\$2
19863 }
19864 fi # as_fn_append
19865
19866 # as_fn_arith ARG...
19867 # ------------------
19868 # Perform arithmetic evaluation on the ARGs, and store the result in the
19869 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19870 # must be portable across $(()) and expr.
19871 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
19872 eval 'as_fn_arith ()
19873 {
19874 as_val=$(( $* ))
19875 }'
19876 else
19877 as_fn_arith ()
19878 {
19879 as_val=`expr "$@" || test $? -eq 1`
19880 }
19881 fi # as_fn_arith
19882
19883
19884 if expr a : '\(a\)' >/dev/null 2>&1 &&
19885 test "X`expr 00001 : '.*\(...\)'`" = X001; then
19886 as_expr=expr
19887 else
19888 as_expr=false
19889 fi
19890
19891 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19892 as_basename=basename
19893 else
19894 as_basename=false
19895 fi
19896
19897 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
19898 as_dirname=dirname
19899 else
19900 as_dirname=false
19901 fi
19902
19903 as_me=`$as_basename -- "$0" ||
19904 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19905 X"$0" : 'X\(//\)$' \| \
19906 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19907 $as_echo X/"$0" |
19908 sed '/^.*\/\([^/][^/]*\)\/*$/{
19909 s//\1/
19910 q
19911 }
19912 /^X\/\(\/\/\)$/{
19913 s//\1/
19914 q
19915 }
19916 /^X\/\(\/\).*/{
19917 s//\1/
19918 q
19919 }
19920 s/.*/./; q'`
19921
19922 # Avoid depending upon Character Ranges.
19923 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
19924 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19925 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
19926 as_cr_digits='0123456789'
19927 as_cr_alnum=$as_cr_Letters$as_cr_digits
19928
19929 ECHO_C= ECHO_N= ECHO_T=
19930 case `echo -n x` in #(((((
19931 -n*)
19932 case `echo 'xy\c'` in
19933 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
19934 xy) ECHO_C='\c';;
19935 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
19936 ECHO_T=' ';;
19937 esac;;
19938 *)
19939 ECHO_N='-n';;
19940 esac
19941
19942 rm -f conf$$ conf$$.exe conf$$.file
19943 if test -d conf$$.dir; then
19944 rm -f conf$$.dir/conf$$.file
19945 else
19946 rm -f conf$$.dir
19947 mkdir conf$$.dir 2>/dev/null
19948 fi
19949 if (echo >conf$$.file) 2>/dev/null; then
19950 if ln -s conf$$.file conf$$ 2>/dev/null; then
19951 as_ln_s='ln -s'
19952 # ... but there are two gotchas:
19953 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19954 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19955 # In both cases, we have to default to `cp -pR'.
19956 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
19957 as_ln_s='cp -pR'
19958 elif ln conf$$.file conf$$ 2>/dev/null; then
19959 as_ln_s=ln
19960 else
19961 as_ln_s='cp -pR'
19962 fi
19963 else
19964 as_ln_s='cp -pR'
19965 fi
19966 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
19967 rmdir conf$$.dir 2>/dev/null
19968
19969
19970 # as_fn_mkdir_p
19971 # -------------
19972 # Create "$as_dir" as a directory, including parents if necessary.
19973 as_fn_mkdir_p ()
19974 {
19975
19976 case $as_dir in #(
19977 -*) as_dir=./$as_dir;;
19978 esac
19979 test -d "$as_dir" || eval $as_mkdir_p || {
19980 as_dirs=
19981 while :; do
19982 case $as_dir in #(
19983 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19984 *) as_qdir=$as_dir;;
19985 esac
19986 as_dirs="'$as_qdir' $as_dirs"
19987 as_dir=`$as_dirname -- "$as_dir" ||
19988 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19989 X"$as_dir" : 'X\(//\)[^/]' \| \
19990 X"$as_dir" : 'X\(//\)$' \| \
19991 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19992 $as_echo X"$as_dir" |
19993 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19994 s//\1/
19995 q
19996 }
19997 /^X\(\/\/\)[^/].*/{
19998 s//\1/
19999 q
20000 }
20001 /^X\(\/\/\)$/{
20002 s//\1/
20003 q
20004 }
20005 /^X\(\/\).*/{
20006 s//\1/
20007 q
20008 }
20009 s/.*/./; q'`
20010 test -d "$as_dir" && break
20011 done
20012 test -z "$as_dirs" || eval "mkdir $as_dirs"
20013 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20014
20015
20016 } # as_fn_mkdir_p
20017 if mkdir -p . 2>/dev/null; then
20018 as_mkdir_p='mkdir -p "$as_dir"'
20019 else
20020 test -d ./-p && rmdir ./-p
20021 as_mkdir_p=false
20022 fi
20023
20024
20025 # as_fn_executable_p FILE
20026 # -----------------------
20027 # Test if FILE is an executable regular file.
20028 as_fn_executable_p ()
20029 {
20030 test -f "$1" && test -x "$1"
20031 } # as_fn_executable_p
20032 as_test_x='test -x'
20033 as_executable_p=as_fn_executable_p
20034
20035 # Sed expression to map a string onto a valid CPP name.
20036 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20037
20038 # Sed expression to map a string onto a valid variable name.
20039 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20040
20041
20042 exec 6>&1
20043 ## ----------------------------------- ##
20044 ## Main body of $CONFIG_STATUS script. ##
20045 ## ----------------------------------- ##
20046 _ASEOF
20047 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20048
20049 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20050 # Save the log message, to keep $0 and so on meaningful, and to
20051 # report actual input values of CONFIG_FILES etc. instead of their
20052 # values after options handling.
20053 ac_log="
20054 This file was extended by libccp4 $as_me 8.0.0, which was
20055 generated by GNU Autoconf 2.69. Invocation command line was
20056
20057 CONFIG_FILES = $CONFIG_FILES
20058 CONFIG_HEADERS = $CONFIG_HEADERS
20059 CONFIG_LINKS = $CONFIG_LINKS
20060 CONFIG_COMMANDS = $CONFIG_COMMANDS
20061 $ $0 $@
20062
20063 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20064 "
20065
20066 _ACEOF
20067
20068 case $ac_config_files in *"
20069 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20070 esac
20071
20072 case $ac_config_headers in *"
20073 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20074 esac
20075
20076
20077 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20078 # Files that config.status was made for.
20079 config_files="$ac_config_files"
20080 config_headers="$ac_config_headers"
20081 config_commands="$ac_config_commands"
20082
20083 _ACEOF
20084
20085 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20086 ac_cs_usage="\
20087 \`$as_me' instantiates files and other configuration actions
20088 from templates according to the current configuration. Unless the files
20089 and actions are specified as TAGs, all are instantiated by default.
20090
20091 Usage: $0 [OPTION]... [TAG]...
20092
20093 -h, --help print this help, then exit
20094 -V, --version print version number and configuration settings, then exit
20095 --config print configuration, then exit
20096 -q, --quiet, --silent
20097 do not print progress messages
20098 -d, --debug don't remove temporary files
20099 --recheck update $as_me by reconfiguring in the same conditions
20100 --file=FILE[:TEMPLATE]
20101 instantiate the configuration file FILE
20102 --header=FILE[:TEMPLATE]
20103 instantiate the configuration header FILE
20104
20105 Configuration files:
20106 $config_files
20107
20108 Configuration headers:
20109 $config_headers
20110
20111 Configuration commands:
20112 $config_commands
20113
20114 Report bugs to the package provider."
20115
20116 _ACEOF
20117 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20118 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20119 ac_cs_version="\\
20120 libccp4 config.status 8.0.0
20121 configured by $0, generated by GNU Autoconf 2.69,
20122 with options \\"\$ac_cs_config\\"
20123
20124 Copyright (C) 2012 Free Software Foundation, Inc.
20125 This config.status script is free software; the Free Software Foundation
20126 gives unlimited permission to copy, distribute and modify it."
20127
20128 ac_pwd='$ac_pwd'
20129 srcdir='$srcdir'
20130 INSTALL='$INSTALL'
20131 MKDIR_P='$MKDIR_P'
20132 AWK='$AWK'
20133 test -n "\$AWK" || AWK=awk
20134 _ACEOF
20135
20136 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20137 # The default lists apply if the user does not specify any file.
20138 ac_need_defaults=:
20139 while test $# != 0
20140 do
20141 case $1 in
20142 --*=?*)
20143 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20144 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20145 ac_shift=:
20146 ;;
20147 --*=)
20148 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20149 ac_optarg=
20150 ac_shift=:
20151 ;;
20152 *)
20153 ac_option=$1
20154 ac_optarg=$2
20155 ac_shift=shift
20156 ;;
20157 esac
20158
20159 case $ac_option in
20160 # Handling of the options.
20161 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20162 ac_cs_recheck=: ;;
20163 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20164 $as_echo "$ac_cs_version"; exit ;;
20165 --config | --confi | --conf | --con | --co | --c )
20166 $as_echo "$ac_cs_config"; exit ;;
20167 --debug | --debu | --deb | --de | --d | -d )
20168 debug=: ;;
20169 --file | --fil | --fi | --f )
20170 $ac_shift
20171 case $ac_optarg in
20172 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20173 '') as_fn_error $? "missing file argument" ;;
20174 esac
20175 as_fn_append CONFIG_FILES " '$ac_optarg'"
20176 ac_need_defaults=false;;
20177 --header | --heade | --head | --hea )
20178 $ac_shift
20179 case $ac_optarg in
20180 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20181 esac
20182 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20183 ac_need_defaults=false;;
20184 --he | --h)
20185 # Conflict between --help and --header
20186 as_fn_error $? "ambiguous option: \`$1'
20187 Try \`$0 --help' for more information.";;
20188 --help | --hel | -h )
20189 $as_echo "$ac_cs_usage"; exit ;;
20190 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20191 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20192 ac_cs_silent=: ;;
20193
20194 # This is an error.
20195 -*) as_fn_error $? "unrecognized option: \`$1'
20196 Try \`$0 --help' for more information." ;;
20197
20198 *) as_fn_append ac_config_targets " $1"
20199 ac_need_defaults=false ;;
20200
20201 esac
20202 shift
20203 done
20204
20205 ac_configure_extra_args=
20206
20207 if $ac_cs_silent; then
20208 exec 6>/dev/null
20209 ac_configure_extra_args="$ac_configure_extra_args --silent"
20210 fi
20211
20212 _ACEOF
20213 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20214 if \$ac_cs_recheck; then
20215 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20216 shift
20217 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20218 CONFIG_SHELL='$SHELL'
20219 export CONFIG_SHELL
20220 exec "\$@"
20221 fi
20222
20223 _ACEOF
20224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20225 exec 5>>config.log
20226 {
20227 echo
20228 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20229 ## Running $as_me. ##
20230 _ASBOX
20231 $as_echo "$ac_log"
20232 } >&5
20233
20234 _ACEOF
20235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20236 #
20237 # INIT-COMMANDS
20238 #
20239 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20240
20241
20242 # The HP-UX ksh and POSIX shell print the target directory to stdout
20243 # if CDPATH is set.
20244 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20245
20246 sed_quote_subst='$sed_quote_subst'
20247 double_quote_subst='$double_quote_subst'
20248 delay_variable_subst='$delay_variable_subst'
20249 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20250 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20251 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20252 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20253 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20254 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20255 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20256 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20257 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20258 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20259 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20260 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20261 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20262 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20263 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20264 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20265 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20266 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20267 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20268 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20269 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20270 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20271 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20272 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20273 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20274 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20275 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20276 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20277 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20278 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20279 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20280 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20281 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20282 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20283 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20284 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20285 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20286 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20287 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20288 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20289 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20290 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20291 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20292 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20293 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20294 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20295 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20296 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20297 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20298 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20299 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20300 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20301 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20302 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20303 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20304 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20305 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20306 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"`'
20307 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20308 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20309 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20310 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20311 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20312 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20313 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20314 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20315 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20316 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20317 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20318 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20319 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20320 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20321 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20322 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20323 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20324 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20325 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20326 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20327 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20328 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20329 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20330 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20331 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20332 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20333 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20334 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20335 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20336 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20337 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20338 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20339 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20340 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20341 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20342 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20343 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20344 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20345 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20346 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20347 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20348 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20349 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20350 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20351 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20352 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20353 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20354 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20355 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20356 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20357 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20358 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20359 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20360 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20361 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20362 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20363 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20364 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20365 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20366 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20367 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20368 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20369 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20370 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20371 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20372 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20373 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20374 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20375 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20376 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20377 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20378 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20379 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20380 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20381 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20382 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20383 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20384 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20385 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20386 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20387 LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`'
20388 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20389 reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`'
20390 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20391 reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`'
20392 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20393 old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
20394 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20395 compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`'
20396 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20397 GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`'
20398 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20399 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`'
20400 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20401 lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`'
20402 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20403 lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`'
20404 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20405 lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`'
20406 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20407 lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`'
20408 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20409 archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`'
20410 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20411 enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`'
20412 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20413 export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20414 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20415 whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20416 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20417 compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`'
20418 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20419 old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`'
20420 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20421 old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`'
20422 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20423 archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`'
20424 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20425 archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
20426 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20427 module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`'
20428 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20429 module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`'
20430 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20431 with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`'
20432 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20433 allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
20434 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20435 no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`'
20436 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20437 hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`'
20438 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20439 hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`'
20440 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20441 hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`'
20442 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20443 hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`'
20444 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20445 hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`'
20446 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20447 hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`'
20448 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20449 hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`'
20450 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20451 inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`'
20452 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20453 link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`'
20454 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20455 always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`'
20456 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20457 export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`'
20458 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20459 exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`'
20460 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20461 include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`'
20462 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20463 prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`'
20464 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20465 postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`'
20466 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20467 file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`'
20468 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20469 hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`'
20470 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20471 compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`'
20472 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20473 predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`'
20474 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20475 postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`'
20476 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20477 predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`'
20478 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20479 postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`'
20480 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20481 compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`'
20482
20483 LTCC='$LTCC'
20484 LTCFLAGS='$LTCFLAGS'
20485 compiler='$compiler_DEFAULT'
20486
20487 # A function that is used when there is no print builtin or printf.
20488 func_fallback_echo ()
20489 {
20490 eval 'cat <<_LTECHO_EOF
20491 \$1
20492 _LTECHO_EOF'
20493 }
20494
20495 # Quote evaled strings.
20496 for var in AS \
20497 DLLTOOL \
20498 OBJDUMP \
20499 SHELL \
20500 ECHO \
20501 PATH_SEPARATOR \
20502 SED \
20503 GREP \
20504 EGREP \
20505 FGREP \
20506 LD \
20507 NM \
20508 LN_S \
20509 lt_SP2NL \
20510 lt_NL2SP \
20511 reload_flag \
20512 deplibs_check_method \
20513 file_magic_cmd \
20514 file_magic_glob \
20515 want_nocaseglob \
20516 sharedlib_from_linklib_cmd \
20517 AR \
20518 AR_FLAGS \
20519 archiver_list_spec \
20520 STRIP \
20521 RANLIB \
20522 CC \
20523 CFLAGS \
20524 compiler \
20525 lt_cv_sys_global_symbol_pipe \
20526 lt_cv_sys_global_symbol_to_cdecl \
20527 lt_cv_sys_global_symbol_to_c_name_address \
20528 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20529 nm_file_list_spec \
20530 lt_prog_compiler_no_builtin_flag \
20531 lt_prog_compiler_pic \
20532 lt_prog_compiler_wl \
20533 lt_prog_compiler_static \
20534 lt_cv_prog_compiler_c_o \
20535 need_locks \
20536 MANIFEST_TOOL \
20537 DSYMUTIL \
20538 NMEDIT \
20539 LIPO \
20540 OTOOL \
20541 OTOOL64 \
20542 shrext_cmds \
20543 export_dynamic_flag_spec \
20544 whole_archive_flag_spec \
20545 compiler_needs_object \
20546 with_gnu_ld \
20547 allow_undefined_flag \
20548 no_undefined_flag \
20549 hardcode_libdir_flag_spec \
20550 hardcode_libdir_separator \
20551 exclude_expsyms \
20552 include_expsyms \
20553 file_list_spec \
20554 variables_saved_for_relink \
20555 libname_spec \
20556 library_names_spec \
20557 soname_spec \
20558 install_override_mode \
20559 finish_eval \
20560 old_striplib \
20561 striplib \
20562 compiler_lib_search_dirs \
20563 predep_objects \
20564 postdep_objects \
20565 predeps \
20566 postdeps \
20567 compiler_lib_search_path \
20568 LD_CXX \
20569 LD_F77 \
20570 reload_flag_CXX \
20571 reload_flag_F77 \
20572 compiler_CXX \
20573 compiler_F77 \
20574 lt_prog_compiler_no_builtin_flag_CXX \
20575 lt_prog_compiler_no_builtin_flag_F77 \
20576 lt_prog_compiler_pic_CXX \
20577 lt_prog_compiler_pic_F77 \
20578 lt_prog_compiler_wl_CXX \
20579 lt_prog_compiler_wl_F77 \
20580 lt_prog_compiler_static_CXX \
20581 lt_prog_compiler_static_F77 \
20582 lt_cv_prog_compiler_c_o_CXX \
20583 lt_cv_prog_compiler_c_o_F77 \
20584 export_dynamic_flag_spec_CXX \
20585 export_dynamic_flag_spec_F77 \
20586 whole_archive_flag_spec_CXX \
20587 whole_archive_flag_spec_F77 \
20588 compiler_needs_object_CXX \
20589 compiler_needs_object_F77 \
20590 with_gnu_ld_CXX \
20591 with_gnu_ld_F77 \
20592 allow_undefined_flag_CXX \
20593 allow_undefined_flag_F77 \
20594 no_undefined_flag_CXX \
20595 no_undefined_flag_F77 \
20596 hardcode_libdir_flag_spec_CXX \
20597 hardcode_libdir_flag_spec_F77 \
20598 hardcode_libdir_separator_CXX \
20599 hardcode_libdir_separator_F77 \
20600 exclude_expsyms_CXX \
20601 exclude_expsyms_F77 \
20602 include_expsyms_CXX \
20603 include_expsyms_F77 \
20604 file_list_spec_CXX \
20605 file_list_spec_F77 \
20606 compiler_lib_search_dirs_CXX \
20607 compiler_lib_search_dirs_F77 \
20608 predep_objects_CXX \
20609 predep_objects_F77 \
20610 postdep_objects_CXX \
20611 postdep_objects_F77 \
20612 predeps_CXX \
20613 predeps_F77 \
20614 postdeps_CXX \
20615 postdeps_F77 \
20616 compiler_lib_search_path_CXX \
20617 compiler_lib_search_path_F77; do
20618 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20619 *[\\\\\\\`\\"\\\$]*)
20620 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20621 ;;
20622 *)
20623 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20624 ;;
20625 esac
20626 done
20627
20628 # Double-quote double-evaled strings.
20629 for var in reload_cmds \
20630 old_postinstall_cmds \
20631 old_postuninstall_cmds \
20632 old_archive_cmds \
20633 extract_expsyms_cmds \
20634 old_archive_from_new_cmds \
20635 old_archive_from_expsyms_cmds \
20636 archive_cmds \
20637 archive_expsym_cmds \
20638 module_cmds \
20639 module_expsym_cmds \
20640 export_symbols_cmds \
20641 prelink_cmds \
20642 postlink_cmds \
20643 postinstall_cmds \
20644 postuninstall_cmds \
20645 finish_cmds \
20646 sys_lib_search_path_spec \
20647 sys_lib_dlsearch_path_spec \
20648 reload_cmds_CXX \
20649 reload_cmds_F77 \
20650 old_archive_cmds_CXX \
20651 old_archive_cmds_F77 \
20652 old_archive_from_new_cmds_CXX \
20653 old_archive_from_new_cmds_F77 \
20654 old_archive_from_expsyms_cmds_CXX \
20655 old_archive_from_expsyms_cmds_F77 \
20656 archive_cmds_CXX \
20657 archive_cmds_F77 \
20658 archive_expsym_cmds_CXX \
20659 archive_expsym_cmds_F77 \
20660 module_cmds_CXX \
20661 module_cmds_F77 \
20662 module_expsym_cmds_CXX \
20663 module_expsym_cmds_F77 \
20664 export_symbols_cmds_CXX \
20665 export_symbols_cmds_F77 \
20666 prelink_cmds_CXX \
20667 prelink_cmds_F77 \
20668 postlink_cmds_CXX \
20669 postlink_cmds_F77; do
20670 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20671 *[\\\\\\\`\\"\\\$]*)
20672 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20673 ;;
20674 *)
20675 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20676 ;;
20677 esac
20678 done
20679
20680 ac_aux_dir='$ac_aux_dir'
20681 xsi_shell='$xsi_shell'
20682 lt_shell_append='$lt_shell_append'
20683
20684 # See if we are running on zsh, and set the options which allow our
20685 # commands through without removal of \ escapes INIT.
20686 if test -n "\${ZSH_VERSION+set}" ; then
20687 setopt NO_GLOB_SUBST
20688 fi
20689
20690
20691 PACKAGE='$PACKAGE'
20692 VERSION='$VERSION'
20693 TIMESTAMP='$TIMESTAMP'
20694 RM='$RM'
20695 ofile='$ofile'
20696
20697
20698
20699
20700
20701
20702
20703
20704 _ACEOF
20705
20706 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20707
20708 # Handling of arguments.
20709 for ac_config_target in $ac_config_targets
20710 do
20711 case $ac_config_target in
20712 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20713 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20714 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
20715 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20716 "ccp4c.pc") CONFIG_FILES="$CONFIG_FILES ccp4c.pc" ;;
20717 "ccp4f.pc") CONFIG_FILES="$CONFIG_FILES ccp4f.pc" ;;
20718
20719 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20720 esac
20721 done
20722
20723
20724 # If the user did not use the arguments to specify the items to instantiate,
20725 # then the envvar interface is used. Set only those that are not.
20726 # We use the long form for the default assignment because of an extremely
20727 # bizarre bug on SunOS 4.1.3.
20728 if $ac_need_defaults; then
20729 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20730 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20731 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20732 fi
20733
20734 # Have a temporary directory for convenience. Make it in the build tree
20735 # simply because there is no reason against having it here, and in addition,
20736 # creating and moving files from /tmp can sometimes cause problems.
20737 # Hook for its removal unless debugging.
20738 # Note that there is a small window in which the directory will not be cleaned:
20739 # after its creation but before its name has been assigned to `$tmp'.
20740 $debug ||
20741 {
20742 tmp= ac_tmp=
20743 trap 'exit_status=$?
20744 : "${ac_tmp:=$tmp}"
20745 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20746 ' 0
20747 trap 'as_fn_exit 1' 1 2 13 15
20748 }
20749 # Create a (secure) tmp directory for tmp files.
20750
20751 {
20752 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20753 test -d "$tmp"
20754 } ||
20755 {
20756 tmp=./conf$$-$RANDOM
20757 (umask 077 && mkdir "$tmp")
20758 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
20759 ac_tmp=$tmp
20760
20761 # Set up the scripts for CONFIG_FILES section.
20762 # No need to generate them if there are no CONFIG_FILES.
20763 # This happens for instance with `./config.status config.h'.
20764 if test -n "$CONFIG_FILES"; then
20765
20766
20767 ac_cr=`echo X | tr X '\015'`
20768 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20769 # But we know of no other shell where ac_cr would be empty at this
20770 # point, so we can use a bashism as a fallback.
20771 if test "x$ac_cr" = x; then
20772 eval ac_cr=\$\'\\r\'
20773 fi
20774 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20775 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20776 ac_cs_awk_cr='\\r'
20777 else
20778 ac_cs_awk_cr=$ac_cr
20779 fi
20780
20781 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20782 _ACEOF
20783
20784
20785 {
20786 echo "cat >conf$$subs.awk <<_ACEOF" &&
20787 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20788 echo "_ACEOF"
20789 } >conf$$subs.sh ||
20790 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20791 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20792 ac_delim='%!_!# '
20793 for ac_last_try in false false false false false :; do
20794 . ./conf$$subs.sh ||
20795 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20796
20797 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
20798 if test $ac_delim_n = $ac_delim_num; then
20799 break
20800 elif $ac_last_try; then
20801 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
20802 else
20803 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20804 fi
20805 done
20806 rm -f conf$$subs.sh
20807
20808 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20809 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
20810 _ACEOF
20811 sed -n '
20812 h
20813 s/^/S["/; s/!.*/"]=/
20814 p
20815 g
20816 s/^[^!]*!//
20817 :repl
20818 t repl
20819 s/'"$ac_delim"'$//
20820 t delim
20821 :nl
20822 h
20823 s/\(.\{148\}\)..*/\1/
20824 t more1
20825 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
20826 p
20827 n
20828 b repl
20829 :more1
20830 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20831 p
20832 g
20833 s/.\{148\}//
20834 t nl
20835 :delim
20836 h
20837 s/\(.\{148\}\)..*/\1/
20838 t more2
20839 s/["\\]/\\&/g; s/^/"/; s/$/"/
20840 p
20841 b
20842 :more2
20843 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
20844 p
20845 g
20846 s/.\{148\}//
20847 t delim
20848 ' <conf$$subs.awk | sed '
20849 /^[^""]/{
20850 N
20851 s/\n//
20852 }
20853 ' >>$CONFIG_STATUS || ac_write_fail=1
20854 rm -f conf$$subs.awk
20855 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20856 _ACAWK
20857 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
20858 for (key in S) S_is_set[key] = 1
20859 FS = ""
20860
20861 }
20862 {
20863 line = $ 0
20864 nfields = split(line, field, "@")
20865 substed = 0
20866 len = length(field[1])
20867 for (i = 2; i < nfields; i++) {
20868 key = field[i]
20869 keylen = length(key)
20870 if (S_is_set[key]) {
20871 value = S[key]
20872 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20873 len += length(value) + length(field[++i])
20874 substed = 1
20875 } else
20876 len += 1 + keylen
20877 }
20878
20879 print line
20880 }
20881
20882 _ACAWK
20883 _ACEOF
20884 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20885 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20886 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
20887 else
20888 cat
20889 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
20890 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
20891 _ACEOF
20892
20893 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20894 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
20895 # trailing colons and then remove the whole line if VPATH becomes empty
20896 # (actually we leave an empty line to preserve line numbers).
20897 if test "x$srcdir" = x.; then
20898 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20899 h
20900 s///
20901 s/^/:/
20902 s/[ ]*$/:/
20903 s/:\$(srcdir):/:/g
20904 s/:\${srcdir}:/:/g
20905 s/:@srcdir@:/:/g
20906 s/^:*//
20907 s/:*$//
20908 x
20909 s/\(=[ ]*\).*/\1/
20910 G
20911 s/\n//
20912 s/^[^=]*=[ ]*$//
20913 }'
20914 fi
20915
20916 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20917 fi # test -n "$CONFIG_FILES"
20918
20919 # Set up the scripts for CONFIG_HEADERS section.
20920 # No need to generate them if there are no CONFIG_HEADERS.
20921 # This happens for instance with `./config.status Makefile'.
20922 if test -n "$CONFIG_HEADERS"; then
20923 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
20924 BEGIN {
20925 _ACEOF
20926
20927 # Transform confdefs.h into an awk script `defines.awk', embedded as
20928 # here-document in config.status, that substitutes the proper values into
20929 # config.h.in to produce config.h.
20930
20931 # Create a delimiter string that does not exist in confdefs.h, to ease
20932 # handling of long lines.
20933 ac_delim='%!_!# '
20934 for ac_last_try in false false :; do
20935 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
20936 if test -z "$ac_tt"; then
20937 break
20938 elif $ac_last_try; then
20939 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
20940 else
20941 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20942 fi
20943 done
20944
20945 # For the awk script, D is an array of macro values keyed by name,
20946 # likewise P contains macro parameters if any. Preserve backslash
20947 # newline sequences.
20948
20949 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
20950 sed -n '
20951 s/.\{148\}/&'"$ac_delim"'/g
20952 t rset
20953 :rset
20954 s/^[ ]*#[ ]*define[ ][ ]*/ /
20955 t def
20956 d
20957 :def
20958 s/\\$//
20959 t bsnl
20960 s/["\\]/\\&/g
20961 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20962 D["\1"]=" \3"/p
20963 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
20964 d
20965 :bsnl
20966 s/["\\]/\\&/g
20967 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
20968 D["\1"]=" \3\\\\\\n"\\/p
20969 t cont
20970 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
20971 t cont
20972 d
20973 :cont
20974 n
20975 s/.\{148\}/&'"$ac_delim"'/g
20976 t clear
20977 :clear
20978 s/\\$//
20979 t bsnlc
20980 s/["\\]/\\&/g; s/^/"/; s/$/"/p
20981 d
20982 :bsnlc
20983 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
20984 b cont
20985 ' <confdefs.h | sed '
20986 s/'"$ac_delim"'/"\\\
20987 "/g' >>$CONFIG_STATUS || ac_write_fail=1
20988
20989 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20990 for (key in D) D_is_set[key] = 1
20991 FS = ""
20992 }
20993 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
20994 line = \$ 0
20995 split(line, arg, " ")
20996 if (arg[1] == "#") {
20997 defundef = arg[2]
20998 mac1 = arg[3]
20999 } else {
21000 defundef = substr(arg[1], 2)
21001 mac1 = arg[2]
21002 }
21003 split(mac1, mac2, "(") #)
21004 macro = mac2[1]
21005 prefix = substr(line, 1, index(line, defundef) - 1)
21006 if (D_is_set[macro]) {
21007 # Preserve the white space surrounding the "#".
21008 print prefix "define", macro P[macro] D[macro]
21009 next
21010 } else {
21011 # Replace #undef with comments. This is necessary, for example,
21012 # in the case of _POSIX_SOURCE, which is predefined and required
21013 # on some systems where configure will not decide to define it.
21014 if (defundef == "undef") {
21015 print "/*", prefix defundef, macro, "*/"
21016 next
21017 }
21018 }
21019 }
21020 { print }
21021 _ACAWK
21022 _ACEOF
21023 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21024 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21025 fi # test -n "$CONFIG_HEADERS"
21026
21027
21028 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21029 shift
21030 for ac_tag
21031 do
21032 case $ac_tag in
21033 :[FHLC]) ac_mode=$ac_tag; continue;;
21034 esac
21035 case $ac_mode$ac_tag in
21036 :[FHL]*:*);;
21037 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21038 :[FH]-) ac_tag=-:-;;
21039 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21040 esac
21041 ac_save_IFS=$IFS
21042 IFS=:
21043 set x $ac_tag
21044 IFS=$ac_save_IFS
21045 shift
21046 ac_file=$1
21047 shift
21048
21049 case $ac_mode in
21050 :L) ac_source=$1;;
21051 :[FH])
21052 ac_file_inputs=
21053 for ac_f
21054 do
21055 case $ac_f in
21056 -) ac_f="$ac_tmp/stdin";;
21057 *) # Look for the file first in the build tree, then in the source tree
21058 # (if the path is not absolute). The absolute path cannot be DOS-style,
21059 # because $ac_f cannot contain `:'.
21060 test -f "$ac_f" ||
21061 case $ac_f in
21062 [\\/$]*) false;;
21063 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21064 esac ||
21065 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21066 esac
21067 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21068 as_fn_append ac_file_inputs " '$ac_f'"
21069 done
21070
21071 # Let's still pretend it is `configure' which instantiates (i.e., don't
21072 # use $as_me), people would be surprised to read:
21073 # /* config.h. Generated by config.status. */
21074 configure_input='Generated from '`
21075 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21076 `' by configure.'
21077 if test x"$ac_file" != x-; then
21078 configure_input="$ac_file. $configure_input"
21079 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21080 $as_echo "$as_me: creating $ac_file" >&6;}
21081 fi
21082 # Neutralize special characters interpreted by sed in replacement strings.
21083 case $configure_input in #(
21084 *\&* | *\|* | *\\* )
21085 ac_sed_conf_input=`$as_echo "$configure_input" |
21086 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21087 *) ac_sed_conf_input=$configure_input;;
21088 esac
21089
21090 case $ac_tag in
21091 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21092 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21093 esac
21094 ;;
21095 esac
21096
21097 ac_dir=`$as_dirname -- "$ac_file" ||
21098 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21099 X"$ac_file" : 'X\(//\)[^/]' \| \
21100 X"$ac_file" : 'X\(//\)$' \| \
21101 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21102 $as_echo X"$ac_file" |
21103 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21104 s//\1/
21105 q
21106 }
21107 /^X\(\/\/\)[^/].*/{
21108 s//\1/
21109 q
21110 }
21111 /^X\(\/\/\)$/{
21112 s//\1/
21113 q
21114 }
21115 /^X\(\/\).*/{
21116 s//\1/
21117 q
21118 }
21119 s/.*/./; q'`
21120 as_dir="$ac_dir"; as_fn_mkdir_p
21121 ac_builddir=.
21122
21123 case "$ac_dir" in
21124 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21125 *)
21126 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21127 # A ".." for each directory in $ac_dir_suffix.
21128 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21129 case $ac_top_builddir_sub in
21130 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21131 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21132 esac ;;
21133 esac
21134 ac_abs_top_builddir=$ac_pwd
21135 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21136 # for backward compatibility:
21137 ac_top_builddir=$ac_top_build_prefix
21138
21139 case $srcdir in
21140 .) # We are building in place.
21141 ac_srcdir=.
21142 ac_top_srcdir=$ac_top_builddir_sub
21143 ac_abs_top_srcdir=$ac_pwd ;;
21144 [\\/]* | ?:[\\/]* ) # Absolute name.
21145 ac_srcdir=$srcdir$ac_dir_suffix;
21146 ac_top_srcdir=$srcdir
21147 ac_abs_top_srcdir=$srcdir ;;
21148 *) # Relative name.
21149 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21150 ac_top_srcdir=$ac_top_build_prefix$srcdir
21151 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21152 esac
21153 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21154
21155
21156 case $ac_mode in
21157 :F)
21158 #
21159 # CONFIG_FILE
21160 #
21161
21162 case $INSTALL in
21163 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21164 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21165 esac
21166 ac_MKDIR_P=$MKDIR_P
21167 case $MKDIR_P in
21168 [\\/$]* | ?:[\\/]* ) ;;
21169 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21170 esac
21171 _ACEOF
21172
21173 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21174 # If the template does not know about datarootdir, expand it.
21175 # FIXME: This hack should be removed a few years after 2.60.
21176 ac_datarootdir_hack=; ac_datarootdir_seen=
21177 ac_sed_dataroot='
21178 /datarootdir/ {
21179 p
21180 q
21181 }
21182 /@datadir@/p
21183 /@docdir@/p
21184 /@infodir@/p
21185 /@localedir@/p
21186 /@mandir@/p'
21187 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21188 *datarootdir*) ac_datarootdir_seen=yes;;
21189 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21190 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21191 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21192 _ACEOF
21193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21194 ac_datarootdir_hack='
21195 s&@datadir@&$datadir&g
21196 s&@docdir@&$docdir&g
21197 s&@infodir@&$infodir&g
21198 s&@localedir@&$localedir&g
21199 s&@mandir@&$mandir&g
21200 s&\\\${datarootdir}&$datarootdir&g' ;;
21201 esac
21202 _ACEOF
21203
21204 # Neutralize VPATH when `$srcdir' = `.'.
21205 # Shell code in configure.ac might set extrasub.
21206 # FIXME: do we really want to maintain this feature?
21207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21208 ac_sed_extra="$ac_vpsub
21209 $extrasub
21210 _ACEOF
21211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21212 :t
21213 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21214 s|@configure_input@|$ac_sed_conf_input|;t t
21215 s&@top_builddir@&$ac_top_builddir_sub&;t t
21216 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21217 s&@srcdir@&$ac_srcdir&;t t
21218 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21219 s&@top_srcdir@&$ac_top_srcdir&;t t
21220 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21221 s&@builddir@&$ac_builddir&;t t
21222 s&@abs_builddir@&$ac_abs_builddir&;t t
21223 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21224 s&@INSTALL@&$ac_INSTALL&;t t
21225 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21226 $ac_datarootdir_hack
21227 "
21228 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21229 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21230
21231 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21232 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21233 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21234 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21236 which seems to be undefined. Please make sure it is defined" >&5
21237 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21238 which seems to be undefined. Please make sure it is defined" >&2;}
21239
21240 rm -f "$ac_tmp/stdin"
21241 case $ac_file in
21242 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21243 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21244 esac \
21245 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21246 ;;
21247 :H)
21248 #
21249 # CONFIG_HEADER
21250 #
21251 if test x"$ac_file" != x-; then
21252 {
21253 $as_echo "/* $configure_input */" \
21254 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21255 } >"$ac_tmp/config.h" \
21256 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21257 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21258 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21259 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21260 else
21261 rm -f "$ac_file"
21262 mv "$ac_tmp/config.h" "$ac_file" \
21263 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21264 fi
21265 else
21266 $as_echo "/* $configure_input */" \
21267 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21268 || as_fn_error $? "could not create -" "$LINENO" 5
21269 fi
21270 # Compute "$ac_file"'s index in $config_headers.
21271 _am_arg="$ac_file"
21272 _am_stamp_count=1
21273 for _am_header in $config_headers :; do
21274 case $_am_header in
21275 $_am_arg | $_am_arg:* )
21276 break ;;
21277 * )
21278 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21279 esac
21280 done
21281 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21282 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21283 X"$_am_arg" : 'X\(//\)[^/]' \| \
21284 X"$_am_arg" : 'X\(//\)$' \| \
21285 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21286 $as_echo X"$_am_arg" |
21287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21288 s//\1/
21289 q
21290 }
21291 /^X\(\/\/\)[^/].*/{
21292 s//\1/
21293 q
21294 }
21295 /^X\(\/\/\)$/{
21296 s//\1/
21297 q
21298 }
21299 /^X\(\/\).*/{
21300 s//\1/
21301 q
21302 }
21303 s/.*/./; q'`/stamp-h$_am_stamp_count
21304 ;;
21305
21306 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21307 $as_echo "$as_me: executing $ac_file commands" >&6;}
21308 ;;
21309 esac
21310
21311
21312 case $ac_file$ac_mode in
21313 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21314 # Older Autoconf quotes --file arguments for eval, but not when files
21315 # are listed without --file. Let's play safe and only enable the eval
21316 # if we detect the quoting.
21317 case $CONFIG_FILES in
21318 *\'*) eval set x "$CONFIG_FILES" ;;
21319 *) set x $CONFIG_FILES ;;
21320 esac
21321 shift
21322 for mf
21323 do
21324 # Strip MF so we end up with the name of the file.
21325 mf=`echo "$mf" | sed -e 's/:.*$//'`
21326 # Check whether this is an Automake generated Makefile or not.
21327 # We used to match only the files named 'Makefile.in', but
21328 # some people rename them; so instead we look at the file content.
21329 # Grep'ing the first line is not enough: some people post-process
21330 # each Makefile.in and add a new line on top of each file to say so.
21331 # Grep'ing the whole file is not good either: AIX grep has a line
21332 # limit of 2048, but all sed's we know have understand at least 4000.
21333 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21334 dirpart=`$as_dirname -- "$mf" ||
21335 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21336 X"$mf" : 'X\(//\)[^/]' \| \
21337 X"$mf" : 'X\(//\)$' \| \
21338 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21339 $as_echo X"$mf" |
21340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21341 s//\1/
21342 q
21343 }
21344 /^X\(\/\/\)[^/].*/{
21345 s//\1/
21346 q
21347 }
21348 /^X\(\/\/\)$/{
21349 s//\1/
21350 q
21351 }
21352 /^X\(\/\).*/{
21353 s//\1/
21354 q
21355 }
21356 s/.*/./; q'`
21357 else
21358 continue
21359 fi
21360 # Extract the definition of DEPDIR, am__include, and am__quote
21361 # from the Makefile without running 'make'.
21362 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21363 test -z "$DEPDIR" && continue
21364 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21365 test -z "$am__include" && continue
21366 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21367 # Find all dependency output files, they are included files with
21368 # $(DEPDIR) in their names. We invoke sed twice because it is the
21369 # simplest approach to changing $(DEPDIR) to its actual value in the
21370 # expansion.
21371 for file in `sed -n "
21372 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21373 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21374 # Make sure the directory exists.
21375 test -f "$dirpart/$file" && continue
21376 fdir=`$as_dirname -- "$file" ||
21377 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21378 X"$file" : 'X\(//\)[^/]' \| \
21379 X"$file" : 'X\(//\)$' \| \
21380 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21381 $as_echo X"$file" |
21382 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21383 s//\1/
21384 q
21385 }
21386 /^X\(\/\/\)[^/].*/{
21387 s//\1/
21388 q
21389 }
21390 /^X\(\/\/\)$/{
21391 s//\1/
21392 q
21393 }
21394 /^X\(\/\).*/{
21395 s//\1/
21396 q
21397 }
21398 s/.*/./; q'`
21399 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21400 # echo "creating $dirpart/$file"
21401 echo '# dummy' > "$dirpart/$file"
21402 done
21403 done
21404 }
21405 ;;
21406 "libtool":C)
21407
21408 # See if we are running on zsh, and set the options which allow our
21409 # commands through without removal of \ escapes.
21410 if test -n "${ZSH_VERSION+set}" ; then
21411 setopt NO_GLOB_SUBST
21412 fi
21413
21414 cfgfile="${ofile}T"
21415 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21416 $RM "$cfgfile"
21417
21418 cat <<_LT_EOF >> "$cfgfile"
21419 #! $SHELL
21420
21421 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21422 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21423 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21424 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21425 #
21426 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21427 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21428 # Foundation, Inc.
21429 # Written by Gordon Matzigkeit, 1996
21430 #
21431 # This file is part of GNU Libtool.
21432 #
21433 # GNU Libtool is free software; you can redistribute it and/or
21434 # modify it under the terms of the GNU General Public License as
21435 # published by the Free Software Foundation; either version 2 of
21436 # the License, or (at your option) any later version.
21437 #
21438 # As a special exception to the GNU General Public License,
21439 # if you distribute this file as part of a program or library that
21440 # is built using GNU Libtool, you may include this file under the
21441 # same distribution terms that you use for the rest of that program.
21442 #
21443 # GNU Libtool is distributed in the hope that it will be useful,
21444 # but WITHOUT ANY WARRANTY; without even the implied warranty of
21445 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21446 # GNU General Public License for more details.
21447 #
21448 # You should have received a copy of the GNU General Public License
21449 # along with GNU Libtool; see the file COPYING. If not, a copy
21450 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21451 # obtained by writing to the Free Software Foundation, Inc.,
21452 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
21453
21454
21455 # The names of the tagged configurations supported by this script.
21456 available_tags="CXX F77 "
21457
21458 # ### BEGIN LIBTOOL CONFIG
21459
21460 # Which release of libtool.m4 was used?
21461 macro_version=$macro_version
21462 macro_revision=$macro_revision
21463
21464 # Whether or not to build shared libraries.
21465 build_libtool_libs=$enable_shared
21466
21467 # Assembler program.
21468 AS=$lt_AS
21469
21470 # DLL creation program.
21471 DLLTOOL=$lt_DLLTOOL
21472
21473 # Object dumper program.
21474 OBJDUMP=$lt_OBJDUMP
21475
21476 # Whether or not to build static libraries.
21477 build_old_libs=$enable_static
21478
21479 # What type of objects to build.
21480 pic_mode=$pic_mode
21481
21482 # Whether or not to optimize for fast installation.
21483 fast_install=$enable_fast_install
21484
21485 # Shell to use when invoking shell scripts.
21486 SHELL=$lt_SHELL
21487
21488 # An echo program that protects backslashes.
21489 ECHO=$lt_ECHO
21490
21491 # The PATH separator for the build system.
21492 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21493
21494 # The host system.
21495 host_alias=$host_alias
21496 host=$host
21497 host_os=$host_os
21498
21499 # The build system.
21500 build_alias=$build_alias
21501 build=$build
21502 build_os=$build_os
21503
21504 # A sed program that does not truncate output.
21505 SED=$lt_SED
21506
21507 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21508 Xsed="\$SED -e 1s/^X//"
21509
21510 # A grep program that handles long lines.
21511 GREP=$lt_GREP
21512
21513 # An ERE matcher.
21514 EGREP=$lt_EGREP
21515
21516 # A literal string matcher.
21517 FGREP=$lt_FGREP
21518
21519 # A BSD- or MS-compatible name lister.
21520 NM=$lt_NM
21521
21522 # Whether we need soft or hard links.
21523 LN_S=$lt_LN_S
21524
21525 # What is the maximum length of a command?
21526 max_cmd_len=$max_cmd_len
21527
21528 # Object file suffix (normally "o").
21529 objext=$ac_objext
21530
21531 # Executable file suffix (normally "").
21532 exeext=$exeext
21533
21534 # whether the shell understands "unset".
21535 lt_unset=$lt_unset
21536
21537 # turn spaces into newlines.
21538 SP2NL=$lt_lt_SP2NL
21539
21540 # turn newlines into spaces.
21541 NL2SP=$lt_lt_NL2SP
21542
21543 # convert \$build file names to \$host format.
21544 to_host_file_cmd=$lt_cv_to_host_file_cmd
21545
21546 # convert \$build files to toolchain format.
21547 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21548
21549 # Method to check whether dependent libraries are shared objects.
21550 deplibs_check_method=$lt_deplibs_check_method
21551
21552 # Command to use when deplibs_check_method = "file_magic".
21553 file_magic_cmd=$lt_file_magic_cmd
21554
21555 # How to find potential files when deplibs_check_method = "file_magic".
21556 file_magic_glob=$lt_file_magic_glob
21557
21558 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21559 want_nocaseglob=$lt_want_nocaseglob
21560
21561 # Command to associate shared and link libraries.
21562 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21563
21564 # The archiver.
21565 AR=$lt_AR
21566
21567 # Flags to create an archive.
21568 AR_FLAGS=$lt_AR_FLAGS
21569
21570 # How to feed a file listing to the archiver.
21571 archiver_list_spec=$lt_archiver_list_spec
21572
21573 # A symbol stripping program.
21574 STRIP=$lt_STRIP
21575
21576 # Commands used to install an old-style archive.
21577 RANLIB=$lt_RANLIB
21578 old_postinstall_cmds=$lt_old_postinstall_cmds
21579 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21580
21581 # Whether to use a lock for old archive extraction.
21582 lock_old_archive_extraction=$lock_old_archive_extraction
21583
21584 # A C compiler.
21585 LTCC=$lt_CC
21586
21587 # LTCC compiler flags.
21588 LTCFLAGS=$lt_CFLAGS
21589
21590 # Take the output of nm and produce a listing of raw symbols and C names.
21591 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21592
21593 # Transform the output of nm in a proper C declaration.
21594 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21595
21596 # Transform the output of nm in a C name address pair.
21597 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21598
21599 # Transform the output of nm in a C name address pair when lib prefix is needed.
21600 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21601
21602 # Specify filename containing input files for \$NM.
21603 nm_file_list_spec=$lt_nm_file_list_spec
21604
21605 # The root where to search for dependent libraries,and in which our libraries should be installed.
21606 lt_sysroot=$lt_sysroot
21607
21608 # The name of the directory that contains temporary libtool files.
21609 objdir=$objdir
21610
21611 # Used to examine libraries when file_magic_cmd begins with "file".
21612 MAGIC_CMD=$MAGIC_CMD
21613
21614 # Must we lock files when doing compilation?
21615 need_locks=$lt_need_locks
21616
21617 # Manifest tool.
21618 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21619
21620 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21621 DSYMUTIL=$lt_DSYMUTIL
21622
21623 # Tool to change global to local symbols on Mac OS X.
21624 NMEDIT=$lt_NMEDIT
21625
21626 # Tool to manipulate fat objects and archives on Mac OS X.
21627 LIPO=$lt_LIPO
21628
21629 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21630 OTOOL=$lt_OTOOL
21631
21632 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21633 OTOOL64=$lt_OTOOL64
21634
21635 # Old archive suffix (normally "a").
21636 libext=$libext
21637
21638 # Shared library suffix (normally ".so").
21639 shrext_cmds=$lt_shrext_cmds
21640
21641 # The commands to extract the exported symbol list from a shared archive.
21642 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21643
21644 # Variables whose values should be saved in libtool wrapper scripts and
21645 # restored at link time.
21646 variables_saved_for_relink=$lt_variables_saved_for_relink
21647
21648 # Do we need the "lib" prefix for modules?
21649 need_lib_prefix=$need_lib_prefix
21650
21651 # Do we need a version for libraries?
21652 need_version=$need_version
21653
21654 # Library versioning type.
21655 version_type=$version_type
21656
21657 # Shared library runtime path variable.
21658 runpath_var=$runpath_var
21659
21660 # Shared library path variable.
21661 shlibpath_var=$shlibpath_var
21662
21663 # Is shlibpath searched before the hard-coded library search path?
21664 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21665
21666 # Format of library name prefix.
21667 libname_spec=$lt_libname_spec
21668
21669 # List of archive names. First name is the real one, the rest are links.
21670 # The last name is the one that the linker finds with -lNAME
21671 library_names_spec=$lt_library_names_spec
21672
21673 # The coded name of the library, if different from the real name.
21674 soname_spec=$lt_soname_spec
21675
21676 # Permission mode override for installation of shared libraries.
21677 install_override_mode=$lt_install_override_mode
21678
21679 # Command to use after installation of a shared archive.
21680 postinstall_cmds=$lt_postinstall_cmds
21681
21682 # Command to use after uninstallation of a shared archive.
21683 postuninstall_cmds=$lt_postuninstall_cmds
21684
21685 # Commands used to finish a libtool library installation in a directory.
21686 finish_cmds=$lt_finish_cmds
21687
21688 # As "finish_cmds", except a single script fragment to be evaled but
21689 # not shown.
21690 finish_eval=$lt_finish_eval
21691
21692 # Whether we should hardcode library paths into libraries.
21693 hardcode_into_libs=$hardcode_into_libs
21694
21695 # Compile-time system search path for libraries.
21696 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21697
21698 # Run-time system search path for libraries.
21699 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21700
21701 # Whether dlopen is supported.
21702 dlopen_support=$enable_dlopen
21703
21704 # Whether dlopen of programs is supported.
21705 dlopen_self=$enable_dlopen_self
21706
21707 # Whether dlopen of statically linked programs is supported.
21708 dlopen_self_static=$enable_dlopen_self_static
21709
21710 # Commands to strip libraries.
21711 old_striplib=$lt_old_striplib
21712 striplib=$lt_striplib
21713
21714
21715 # The linker used to build libraries.
21716 LD=$lt_LD
21717
21718 # How to create reloadable object files.
21719 reload_flag=$lt_reload_flag
21720 reload_cmds=$lt_reload_cmds
21721
21722 # Commands used to build an old-style archive.
21723 old_archive_cmds=$lt_old_archive_cmds
21724
21725 # A language specific compiler.
21726 CC=$lt_compiler
21727
21728 # Is the compiler the GNU compiler?
21729 with_gcc=$GCC
21730
21731 # Compiler flag to turn off builtin functions.
21732 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
21733
21734 # Additional compiler flags for building library objects.
21735 pic_flag=$lt_lt_prog_compiler_pic
21736
21737 # How to pass a linker flag through the compiler.
21738 wl=$lt_lt_prog_compiler_wl
21739
21740 # Compiler flag to prevent dynamic linking.
21741 link_static_flag=$lt_lt_prog_compiler_static
21742
21743 # Does compiler simultaneously support -c and -o options?
21744 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
21745
21746 # Whether or not to add -lc for building shared libraries.
21747 build_libtool_need_lc=$archive_cmds_need_lc
21748
21749 # Whether or not to disallow shared libs when runtime libs are static.
21750 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
21751
21752 # Compiler flag to allow reflexive dlopens.
21753 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
21754
21755 # Compiler flag to generate shared objects directly from archives.
21756 whole_archive_flag_spec=$lt_whole_archive_flag_spec
21757
21758 # Whether the compiler copes with passing no objects directly.
21759 compiler_needs_object=$lt_compiler_needs_object
21760
21761 # Create an old-style archive from a shared archive.
21762 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
21763
21764 # Create a temporary old-style archive to link instead of a shared archive.
21765 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
21766
21767 # Commands used to build a shared archive.
21768 archive_cmds=$lt_archive_cmds
21769 archive_expsym_cmds=$lt_archive_expsym_cmds
21770
21771 # Commands used to build a loadable module if different from building
21772 # a shared archive.
21773 module_cmds=$lt_module_cmds
21774 module_expsym_cmds=$lt_module_expsym_cmds
21775
21776 # Whether we are building with GNU ld or not.
21777 with_gnu_ld=$lt_with_gnu_ld
21778
21779 # Flag that allows shared libraries with undefined symbols to be built.
21780 allow_undefined_flag=$lt_allow_undefined_flag
21781
21782 # Flag that enforces no undefined symbols.
21783 no_undefined_flag=$lt_no_undefined_flag
21784
21785 # Flag to hardcode \$libdir into a binary during linking.
21786 # This must work even if \$libdir does not exist
21787 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
21788
21789 # Whether we need a single "-rpath" flag with a separated argument.
21790 hardcode_libdir_separator=$lt_hardcode_libdir_separator
21791
21792 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21793 # DIR into the resulting binary.
21794 hardcode_direct=$hardcode_direct
21795
21796 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
21797 # DIR into the resulting binary and the resulting library dependency is
21798 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
21799 # library is relocated.
21800 hardcode_direct_absolute=$hardcode_direct_absolute
21801
21802 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
21803 # into the resulting binary.
21804 hardcode_minus_L=$hardcode_minus_L
21805
21806 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
21807 # into the resulting binary.
21808 hardcode_shlibpath_var=$hardcode_shlibpath_var
21809
21810 # Set to "yes" if building a shared library automatically hardcodes DIR
21811 # into the library and all subsequent libraries and executables linked
21812 # against it.
21813 hardcode_automatic=$hardcode_automatic
21814
21815 # Set to yes if linker adds runtime paths of dependent libraries
21816 # to runtime path list.
21817 inherit_rpath=$inherit_rpath
21818
21819 # Whether libtool must link a program against all its dependency libraries.
21820 link_all_deplibs=$link_all_deplibs
21821
21822 # Set to "yes" if exported symbols are required.
21823 always_export_symbols=$always_export_symbols
21824
21825 # The commands to list exported symbols.
21826 export_symbols_cmds=$lt_export_symbols_cmds
21827
21828 # Symbols that should not be listed in the preloaded symbols.
21829 exclude_expsyms=$lt_exclude_expsyms
21830
21831 # Symbols that must always be exported.
21832 include_expsyms=$lt_include_expsyms
21833
21834 # Commands necessary for linking programs (against libraries) with templates.
21835 prelink_cmds=$lt_prelink_cmds
21836
21837 # Commands necessary for finishing linking programs.
21838 postlink_cmds=$lt_postlink_cmds
21839
21840 # Specify filename containing input files.
21841 file_list_spec=$lt_file_list_spec
21842
21843 # How to hardcode a shared library path into an executable.
21844 hardcode_action=$hardcode_action
21845
21846 # The directories searched by this compiler when creating a shared library.
21847 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
21848
21849 # Dependencies to place before and after the objects being linked to
21850 # create a shared library.
21851 predep_objects=$lt_predep_objects
21852 postdep_objects=$lt_postdep_objects
21853 predeps=$lt_predeps
21854 postdeps=$lt_postdeps
21855
21856 # The library search path used internally by the compiler when linking
21857 # a shared library.
21858 compiler_lib_search_path=$lt_compiler_lib_search_path
21859
21860 # ### END LIBTOOL CONFIG
21861
21862 _LT_EOF
21863
21864 case $host_os in
21865 aix3*)
21866 cat <<\_LT_EOF >> "$cfgfile"
21867 # AIX sometimes has problems with the GCC collect2 program. For some
21868 # reason, if we set the COLLECT_NAMES environment variable, the problems
21869 # vanish in a puff of smoke.
21870 if test "X${COLLECT_NAMES+set}" != Xset; then
21871 COLLECT_NAMES=
21872 export COLLECT_NAMES
21873 fi
21874 _LT_EOF
21875 ;;
21876 esac
21877
21878
21879 ltmain="$ac_aux_dir/ltmain.sh"
21880
21881
21882 # We use sed instead of cat because bash on DJGPP gets confused if
21883 # if finds mixed CR/LF and LF-only lines. Since sed operates in
21884 # text mode, it properly converts lines to CR/LF. This bash problem
21885 # is reportedly fixed, but why not run on old versions too?
21886 sed '$q' "$ltmain" >> "$cfgfile" \
21887 || (rm -f "$cfgfile"; exit 1)
21888
21889 if test x"$xsi_shell" = xyes; then
21890 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
21891 func_dirname ()\
21892 {\
21893 \ case ${1} in\
21894 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21895 \ * ) func_dirname_result="${3}" ;;\
21896 \ esac\
21897 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
21898 && mv -f "$cfgfile.tmp" "$cfgfile" \
21899 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21900 test 0 -eq $? || _lt_function_replace_fail=:
21901
21902
21903 sed -e '/^func_basename ()$/,/^} # func_basename /c\
21904 func_basename ()\
21905 {\
21906 \ func_basename_result="${1##*/}"\
21907 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
21908 && mv -f "$cfgfile.tmp" "$cfgfile" \
21909 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21910 test 0 -eq $? || _lt_function_replace_fail=:
21911
21912
21913 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
21914 func_dirname_and_basename ()\
21915 {\
21916 \ case ${1} in\
21917 \ */*) func_dirname_result="${1%/*}${2}" ;;\
21918 \ * ) func_dirname_result="${3}" ;;\
21919 \ esac\
21920 \ func_basename_result="${1##*/}"\
21921 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
21922 && mv -f "$cfgfile.tmp" "$cfgfile" \
21923 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21924 test 0 -eq $? || _lt_function_replace_fail=:
21925
21926
21927 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
21928 func_stripname ()\
21929 {\
21930 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
21931 \ # positional parameters, so assign one to ordinary parameter first.\
21932 \ func_stripname_result=${3}\
21933 \ func_stripname_result=${func_stripname_result#"${1}"}\
21934 \ func_stripname_result=${func_stripname_result%"${2}"}\
21935 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
21936 && mv -f "$cfgfile.tmp" "$cfgfile" \
21937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21938 test 0 -eq $? || _lt_function_replace_fail=:
21939
21940
21941 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
21942 func_split_long_opt ()\
21943 {\
21944 \ func_split_long_opt_name=${1%%=*}\
21945 \ func_split_long_opt_arg=${1#*=}\
21946 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
21947 && mv -f "$cfgfile.tmp" "$cfgfile" \
21948 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21949 test 0 -eq $? || _lt_function_replace_fail=:
21950
21951
21952 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
21953 func_split_short_opt ()\
21954 {\
21955 \ func_split_short_opt_arg=${1#??}\
21956 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
21957 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
21958 && mv -f "$cfgfile.tmp" "$cfgfile" \
21959 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21960 test 0 -eq $? || _lt_function_replace_fail=:
21961
21962
21963 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
21964 func_lo2o ()\
21965 {\
21966 \ case ${1} in\
21967 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
21968 \ *) func_lo2o_result=${1} ;;\
21969 \ esac\
21970 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
21971 && mv -f "$cfgfile.tmp" "$cfgfile" \
21972 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21973 test 0 -eq $? || _lt_function_replace_fail=:
21974
21975
21976 sed -e '/^func_xform ()$/,/^} # func_xform /c\
21977 func_xform ()\
21978 {\
21979 func_xform_result=${1%.*}.lo\
21980 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
21981 && mv -f "$cfgfile.tmp" "$cfgfile" \
21982 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21983 test 0 -eq $? || _lt_function_replace_fail=:
21984
21985
21986 sed -e '/^func_arith ()$/,/^} # func_arith /c\
21987 func_arith ()\
21988 {\
21989 func_arith_result=$(( $* ))\
21990 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
21991 && mv -f "$cfgfile.tmp" "$cfgfile" \
21992 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
21993 test 0 -eq $? || _lt_function_replace_fail=:
21994
21995
21996 sed -e '/^func_len ()$/,/^} # func_len /c\
21997 func_len ()\
21998 {\
21999 func_len_result=${#1}\
22000 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22001 && mv -f "$cfgfile.tmp" "$cfgfile" \
22002 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22003 test 0 -eq $? || _lt_function_replace_fail=:
22004
22005 fi
22006
22007 if test x"$lt_shell_append" = xyes; then
22008 sed -e '/^func_append ()$/,/^} # func_append /c\
22009 func_append ()\
22010 {\
22011 eval "${1}+=\\${2}"\
22012 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22013 && mv -f "$cfgfile.tmp" "$cfgfile" \
22014 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22015 test 0 -eq $? || _lt_function_replace_fail=:
22016
22017
22018 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22019 func_append_quoted ()\
22020 {\
22021 \ func_quote_for_eval "${2}"\
22022 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22023 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22024 && mv -f "$cfgfile.tmp" "$cfgfile" \
22025 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22026 test 0 -eq $? || _lt_function_replace_fail=:
22027
22028
22029 # Save a `func_append' function call where possible by direct use of '+='
22030 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22031 && mv -f "$cfgfile.tmp" "$cfgfile" \
22032 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22033 test 0 -eq $? || _lt_function_replace_fail=:
22034 else
22035 # Save a `func_append' function call even when '+=' is not available
22036 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22037 && mv -f "$cfgfile.tmp" "$cfgfile" \
22038 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22039 test 0 -eq $? || _lt_function_replace_fail=:
22040 fi
22041
22042 if test x"$_lt_function_replace_fail" = x":"; then
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22044 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22045 fi
22046
22047
22048 mv -f "$cfgfile" "$ofile" ||
22049 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22050 chmod +x "$ofile"
22051
22052
22053 cat <<_LT_EOF >> "$ofile"
22054
22055 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22056
22057 # The linker used to build libraries.
22058 LD=$lt_LD_CXX
22059
22060 # How to create reloadable object files.
22061 reload_flag=$lt_reload_flag_CXX
22062 reload_cmds=$lt_reload_cmds_CXX
22063
22064 # Commands used to build an old-style archive.
22065 old_archive_cmds=$lt_old_archive_cmds_CXX
22066
22067 # A language specific compiler.
22068 CC=$lt_compiler_CXX
22069
22070 # Is the compiler the GNU compiler?
22071 with_gcc=$GCC_CXX
22072
22073 # Compiler flag to turn off builtin functions.
22074 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22075
22076 # Additional compiler flags for building library objects.
22077 pic_flag=$lt_lt_prog_compiler_pic_CXX
22078
22079 # How to pass a linker flag through the compiler.
22080 wl=$lt_lt_prog_compiler_wl_CXX
22081
22082 # Compiler flag to prevent dynamic linking.
22083 link_static_flag=$lt_lt_prog_compiler_static_CXX
22084
22085 # Does compiler simultaneously support -c and -o options?
22086 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22087
22088 # Whether or not to add -lc for building shared libraries.
22089 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22090
22091 # Whether or not to disallow shared libs when runtime libs are static.
22092 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22093
22094 # Compiler flag to allow reflexive dlopens.
22095 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22096
22097 # Compiler flag to generate shared objects directly from archives.
22098 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22099
22100 # Whether the compiler copes with passing no objects directly.
22101 compiler_needs_object=$lt_compiler_needs_object_CXX
22102
22103 # Create an old-style archive from a shared archive.
22104 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22105
22106 # Create a temporary old-style archive to link instead of a shared archive.
22107 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22108
22109 # Commands used to build a shared archive.
22110 archive_cmds=$lt_archive_cmds_CXX
22111 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22112
22113 # Commands used to build a loadable module if different from building
22114 # a shared archive.
22115 module_cmds=$lt_module_cmds_CXX
22116 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22117
22118 # Whether we are building with GNU ld or not.
22119 with_gnu_ld=$lt_with_gnu_ld_CXX
22120
22121 # Flag that allows shared libraries with undefined symbols to be built.
22122 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22123
22124 # Flag that enforces no undefined symbols.
22125 no_undefined_flag=$lt_no_undefined_flag_CXX
22126
22127 # Flag to hardcode \$libdir into a binary during linking.
22128 # This must work even if \$libdir does not exist
22129 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22130
22131 # Whether we need a single "-rpath" flag with a separated argument.
22132 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22133
22134 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22135 # DIR into the resulting binary.
22136 hardcode_direct=$hardcode_direct_CXX
22137
22138 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22139 # DIR into the resulting binary and the resulting library dependency is
22140 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22141 # library is relocated.
22142 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22143
22144 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22145 # into the resulting binary.
22146 hardcode_minus_L=$hardcode_minus_L_CXX
22147
22148 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22149 # into the resulting binary.
22150 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22151
22152 # Set to "yes" if building a shared library automatically hardcodes DIR
22153 # into the library and all subsequent libraries and executables linked
22154 # against it.
22155 hardcode_automatic=$hardcode_automatic_CXX
22156
22157 # Set to yes if linker adds runtime paths of dependent libraries
22158 # to runtime path list.
22159 inherit_rpath=$inherit_rpath_CXX
22160
22161 # Whether libtool must link a program against all its dependency libraries.
22162 link_all_deplibs=$link_all_deplibs_CXX
22163
22164 # Set to "yes" if exported symbols are required.
22165 always_export_symbols=$always_export_symbols_CXX
22166
22167 # The commands to list exported symbols.
22168 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22169
22170 # Symbols that should not be listed in the preloaded symbols.
22171 exclude_expsyms=$lt_exclude_expsyms_CXX
22172
22173 # Symbols that must always be exported.
22174 include_expsyms=$lt_include_expsyms_CXX
22175
22176 # Commands necessary for linking programs (against libraries) with templates.
22177 prelink_cmds=$lt_prelink_cmds_CXX
22178
22179 # Commands necessary for finishing linking programs.
22180 postlink_cmds=$lt_postlink_cmds_CXX
22181
22182 # Specify filename containing input files.
22183 file_list_spec=$lt_file_list_spec_CXX
22184
22185 # How to hardcode a shared library path into an executable.
22186 hardcode_action=$hardcode_action_CXX
22187
22188 # The directories searched by this compiler when creating a shared library.
22189 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22190
22191 # Dependencies to place before and after the objects being linked to
22192 # create a shared library.
22193 predep_objects=$lt_predep_objects_CXX
22194 postdep_objects=$lt_postdep_objects_CXX
22195 predeps=$lt_predeps_CXX
22196 postdeps=$lt_postdeps_CXX
22197
22198 # The library search path used internally by the compiler when linking
22199 # a shared library.
22200 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22201
22202 # ### END LIBTOOL TAG CONFIG: CXX
22203 _LT_EOF
22204
22205
22206 cat <<_LT_EOF >> "$ofile"
22207
22208 # ### BEGIN LIBTOOL TAG CONFIG: F77
22209
22210 # The linker used to build libraries.
22211 LD=$lt_LD_F77
22212
22213 # How to create reloadable object files.
22214 reload_flag=$lt_reload_flag_F77
22215 reload_cmds=$lt_reload_cmds_F77
22216
22217 # Commands used to build an old-style archive.
22218 old_archive_cmds=$lt_old_archive_cmds_F77
22219
22220 # A language specific compiler.
22221 CC=$lt_compiler_F77
22222
22223 # Is the compiler the GNU compiler?
22224 with_gcc=$GCC_F77
22225
22226 # Compiler flag to turn off builtin functions.
22227 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
22228
22229 # Additional compiler flags for building library objects.
22230 pic_flag=$lt_lt_prog_compiler_pic_F77
22231
22232 # How to pass a linker flag through the compiler.
22233 wl=$lt_lt_prog_compiler_wl_F77
22234
22235 # Compiler flag to prevent dynamic linking.
22236 link_static_flag=$lt_lt_prog_compiler_static_F77
22237
22238 # Does compiler simultaneously support -c and -o options?
22239 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
22240
22241 # Whether or not to add -lc for building shared libraries.
22242 build_libtool_need_lc=$archive_cmds_need_lc_F77
22243
22244 # Whether or not to disallow shared libs when runtime libs are static.
22245 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
22246
22247 # Compiler flag to allow reflexive dlopens.
22248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
22249
22250 # Compiler flag to generate shared objects directly from archives.
22251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
22252
22253 # Whether the compiler copes with passing no objects directly.
22254 compiler_needs_object=$lt_compiler_needs_object_F77
22255
22256 # Create an old-style archive from a shared archive.
22257 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
22258
22259 # Create a temporary old-style archive to link instead of a shared archive.
22260 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
22261
22262 # Commands used to build a shared archive.
22263 archive_cmds=$lt_archive_cmds_F77
22264 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
22265
22266 # Commands used to build a loadable module if different from building
22267 # a shared archive.
22268 module_cmds=$lt_module_cmds_F77
22269 module_expsym_cmds=$lt_module_expsym_cmds_F77
22270
22271 # Whether we are building with GNU ld or not.
22272 with_gnu_ld=$lt_with_gnu_ld_F77
22273
22274 # Flag that allows shared libraries with undefined symbols to be built.
22275 allow_undefined_flag=$lt_allow_undefined_flag_F77
22276
22277 # Flag that enforces no undefined symbols.
22278 no_undefined_flag=$lt_no_undefined_flag_F77
22279
22280 # Flag to hardcode \$libdir into a binary during linking.
22281 # This must work even if \$libdir does not exist
22282 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
22283
22284 # Whether we need a single "-rpath" flag with a separated argument.
22285 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
22286
22287 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22288 # DIR into the resulting binary.
22289 hardcode_direct=$hardcode_direct_F77
22290
22291 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22292 # DIR into the resulting binary and the resulting library dependency is
22293 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22294 # library is relocated.
22295 hardcode_direct_absolute=$hardcode_direct_absolute_F77
22296
22297 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22298 # into the resulting binary.
22299 hardcode_minus_L=$hardcode_minus_L_F77
22300
22301 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22302 # into the resulting binary.
22303 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
22304
22305 # Set to "yes" if building a shared library automatically hardcodes DIR
22306 # into the library and all subsequent libraries and executables linked
22307 # against it.
22308 hardcode_automatic=$hardcode_automatic_F77
22309
22310 # Set to yes if linker adds runtime paths of dependent libraries
22311 # to runtime path list.
22312 inherit_rpath=$inherit_rpath_F77
22313
22314 # Whether libtool must link a program against all its dependency libraries.
22315 link_all_deplibs=$link_all_deplibs_F77
22316
22317 # Set to "yes" if exported symbols are required.
22318 always_export_symbols=$always_export_symbols_F77
22319
22320 # The commands to list exported symbols.
22321 export_symbols_cmds=$lt_export_symbols_cmds_F77
22322
22323 # Symbols that should not be listed in the preloaded symbols.
22324 exclude_expsyms=$lt_exclude_expsyms_F77
22325
22326 # Symbols that must always be exported.
22327 include_expsyms=$lt_include_expsyms_F77
22328
22329 # Commands necessary for linking programs (against libraries) with templates.
22330 prelink_cmds=$lt_prelink_cmds_F77
22331
22332 # Commands necessary for finishing linking programs.
22333 postlink_cmds=$lt_postlink_cmds_F77
22334
22335 # Specify filename containing input files.
22336 file_list_spec=$lt_file_list_spec_F77
22337
22338 # How to hardcode a shared library path into an executable.
22339 hardcode_action=$hardcode_action_F77
22340
22341 # The directories searched by this compiler when creating a shared library.
22342 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
22343
22344 # Dependencies to place before and after the objects being linked to
22345 # create a shared library.
22346 predep_objects=$lt_predep_objects_F77
22347 postdep_objects=$lt_postdep_objects_F77
22348 predeps=$lt_predeps_F77
22349 postdeps=$lt_postdeps_F77
22350
22351 # The library search path used internally by the compiler when linking
22352 # a shared library.
22353 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
22354
22355 # ### END LIBTOOL TAG CONFIG: F77
22356 _LT_EOF
22357
22358 ;;
22359
22360 esac
22361 done # for ac_tag
22362
22363
22364 as_fn_exit 0
22365 _ACEOF
22366 ac_clean_files=$ac_clean_files_save
22367
22368 test $ac_write_fail = 0 ||
22369 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22370
22371
22372 # configure is writing to config.log, and then calls config.status.
22373 # config.status does its own redirection, appending to config.log.
22374 # Unfortunately, on DOS this fails, as config.log is still kept open
22375 # by configure, so config.status won't be able to write to it; its
22376 # output is simply discarded. So we exec the FD to /dev/null,
22377 # effectively closing config.log, so it can be properly (re)opened and
22378 # appended to by config.status. When coming back to configure, we
22379 # need to make the FD available again.
22380 if test "$no_create" != yes; then
22381 ac_cs_success=:
22382 ac_config_status_args=
22383 test "$silent" = yes &&
22384 ac_config_status_args="$ac_config_status_args --quiet"
22385 exec 5>/dev/null
22386 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22387 exec 5>>config.log
22388 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22389 # would make configure fail if this is the last instruction.
22390 $ac_cs_success || as_fn_exit 1
22391 fi
22392 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22394 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22395 fi
22396
22397