Debian Codegraph @

addons/opensmppbox/configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for opensmppbox svn.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
206 fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227 fi
228 fi
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
260 fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell [email protected] and [email protected]
270 $0: about your system, including any error possibly output
271 $0: before this message. Then install a modern shell, or
272 $0: manually run the script under such a shell if you do
273 $0: have one."
274 fi
275 exit 1
276 fi
277 fi
278 fi
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
284
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
292 {
293 { eval $1=; unset $1;}
294 }
295 as_unset=as_fn_unset
296
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
301 {
302 return $1
303 } # as_fn_set_status
304
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
309 {
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
314
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
319 {
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361 } # as_fn_mkdir_p
362
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
367 {
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381 else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386 fi # as_fn_append
387
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398 else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403 fi # as_fn_arith
404
405
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
412 {
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
421
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
427 fi
428
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
433 fi
434
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
439 fi
440
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501 }
502
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512 *)
513 ECHO_N='-n';;
514 esac
515
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522 fi
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537 else
538 as_ln_s='cp -pR'
539 fi
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
542
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548 fi
549
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
552
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561 # Check that we are running under the correct shell.
562 SHELL=${CONFIG_SHELL-/bin/sh}
563
564 case X$ECHO in
565 X*--fallback-echo)
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 ;;
569 esac
570
571 echo=${ECHO-echo}
572 if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
574 shift
575 elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
577 :
578 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
580 :
581 else
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
584 fi
585
586 if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
588 shift
589 cat <<EOF
590 $*
591 EOF
592 exit 0
593 fi
594
595 # The HP-UX ksh and POSIX shell print the target directory to stdout
596 # if CDPATH is set.
597 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
598
599 if test -z "$ECHO"; then
600 if test "X${echo_test_string+set}" != Xset; then
601 # find a string as large as possible, as long as the shell can cope with it
602 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
603 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
604 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
605 echo_test_string=`eval $cmd` &&
606 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
607 then
608 break
609 fi
610 done
611 fi
612
613 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
614 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
615 test "X$echo_testing_string" = "X$echo_test_string"; then
616 :
617 else
618 # The Solaris, AIX, and Digital Unix default echo programs unquote
619 # backslashes. This makes it impossible to quote backslashes using
620 # echo "$something" | sed 's/\\/\\\\/g'
621 #
622 # So, first we look for a working echo in the user's PATH.
623
624 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
625 for dir in $PATH /usr/ucb; do
626 IFS="$lt_save_ifs"
627 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
628 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
629 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
630 test "X$echo_testing_string" = "X$echo_test_string"; then
631 echo="$dir/echo"
632 break
633 fi
634 done
635 IFS="$lt_save_ifs"
636
637 if test "X$echo" = Xecho; then
638 # We didn't find a better echo, so look for alternatives.
639 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
640 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
641 test "X$echo_testing_string" = "X$echo_test_string"; then
642 # This shell has a builtin print -r that does the trick.
643 echo='print -r'
644 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
645 test "X$CONFIG_SHELL" != X/bin/ksh; then
646 # If we have ksh, try running configure again with it.
647 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
648 export ORIGINAL_CONFIG_SHELL
649 CONFIG_SHELL=/bin/ksh
650 export CONFIG_SHELL
651 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
652 else
653 # Try using printf.
654 echo='printf %s\n'
655 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # Cool, printf works
659 :
660 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
665 export CONFIG_SHELL
666 SHELL="$CONFIG_SHELL"
667 export SHELL
668 echo="$CONFIG_SHELL $0 --fallback-echo"
669 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
670 test "X$echo_testing_string" = 'X\t' &&
671 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
672 test "X$echo_testing_string" = "X$echo_test_string"; then
673 echo="$CONFIG_SHELL $0 --fallback-echo"
674 else
675 # maybe with a smaller string...
676 prev=:
677
678 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
679 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
680 then
681 break
682 fi
683 prev="$cmd"
684 done
685
686 if test "$prev" != 'sed 50q "$0"'; then
687 echo_test_string=`eval $prev`
688 export echo_test_string
689 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
690 else
691 # Oops. We lost completely, so just stick with echo.
692 echo=echo
693 fi
694 fi
695 fi
696 fi
697 fi
698 fi
699
700 # Copy echo and quote the copy suitably for passing to libtool from
701 # the Makefile, instead of quoting the original, which is used later.
702 ECHO=$echo
703 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705 fi
706
707
708
709
710 tagnames=${tagnames+${tagnames},}CXX
711
712 tagnames=${tagnames+${tagnames},}F77
713
714 test -n "$DJDIR" || exec 7<&0 </dev/null
715 exec 6>&1
716
717 # Name of the host.
718 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
719 # so uname gets run too.
720 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722 #
723 # Initializations.
724 #
725 ac_default_prefix=/usr/local
726 ac_clean_files=
727 ac_config_libobj_dir=.
728 LIBOBJS=
729 cross_compiling=no
730 subdirs=
731 MFLAGS=
732 MAKEFLAGS=
733
734 # Identity of this package.
735 PACKAGE_NAME='opensmppbox'
736 PACKAGE_TARNAME='opensmppbox'
737 PACKAGE_VERSION='svn'
738 PACKAGE_STRING='opensmppbox svn'
739 PACKAGE_BUGREPORT='[email protected]'
740 PACKAGE_URL=''
741
742 ac_unique_file="gw/opensmppbox.c"
743 # Factoring default headers for most tests.
744 ac_includes_default="\
745 #include <stdio.h>
746 #ifdef HAVE_SYS_TYPES_H
747 # include <sys/types.h>
748 #endif
749 #ifdef HAVE_SYS_STAT_H
750 # include <sys/stat.h>
751 #endif
752 #ifdef STDC_HEADERS
753 # include <stdlib.h>
754 # include <stddef.h>
755 #else
756 # ifdef HAVE_STDLIB_H
757 # include <stdlib.h>
758 # endif
759 #endif
760 #ifdef HAVE_STRING_H
761 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
762 # include <memory.h>
763 # endif
764 # include <string.h>
765 #endif
766 #ifdef HAVE_STRINGS_H
767 # include <strings.h>
768 #endif
769 #ifdef HAVE_INTTYPES_H
770 # include <inttypes.h>
771 #endif
772 #ifdef HAVE_STDINT_H
773 # include <stdint.h>
774 #endif
775 #ifdef HAVE_UNISTD_H
776 # include <unistd.h>
777 #endif"
778
779 ac_subst_vars='LTLIBOBJS
780 rpm_requires
781 rpm_suffix
782 GW_CONFIG
783 CTLIB_INCLUDE
784 CTLIB_LFLAGS
785 DOCDRAFTS
786 DOCSTARGET
787 XML_DCL
788 TEX_DSL
789 HTML_DSL
790 CONVERT
791 FIG2DEV
792 DVIPS
793 PDFJADETEX
794 JADETEX
795 JADE
796 OLDJADE
797 OPENSSL
798 LIBOBJS
799 INCLUDES
800 LIBTOOL
801 ac_ct_F77
802 FFLAGS
803 F77
804 CXXCPP
805 am__fastdepCXX_FALSE
806 am__fastdepCXX_TRUE
807 CXXDEPMODE
808 ac_ct_CXX
809 CXXFLAGS
810 CXX
811 CPP
812 RANLIB
813 AR
814 ECHO
815 LN_S
816 EGREP
817 GREP
818 SED
819 am__fastdepCC_FALSE
820 am__fastdepCC_TRUE
821 CCDEPMODE
822 AMDEPBACKSLASH
823 AMDEP_FALSE
824 AMDEP_TRUE
825 am__quote
826 am__include
827 DEPDIR
828 OBJEXT
829 EXEEXT
830 ac_ct_CC
831 CPPFLAGS
832 LDFLAGS
833 CFLAGS
834 CC
835 GW_VERSION
836 host_os
837 host_vendor
838 host_cpu
839 host
840 build_os
841 build_vendor
842 build_cpu
843 build
844 MAINT
845 MAINTAINER_MODE_FALSE
846 MAINTAINER_MODE_TRUE
847 am__untar
848 am__tar
849 AMTAR
850 am__leading_dot
851 SET_MAKE
852 AWK
853 mkdir_p
854 INSTALL_STRIP_PROGRAM
855 STRIP
856 install_sh
857 MAKEINFO
858 AUTOHEADER
859 AUTOMAKE
860 AUTOCONF
861 ACLOCAL
862 VERSION
863 PACKAGE
864 CYGPATH_W
865 INSTALL_DATA
866 INSTALL_SCRIPT
867 INSTALL_PROGRAM
868 target_alias
869 host_alias
870 build_alias
871 LIBS
872 ECHO_T
873 ECHO_N
874 ECHO_C
875 DEFS
876 mandir
877 localedir
878 libdir
879 psdir
880 pdfdir
881 dvidir
882 htmldir
883 infodir
884 docdir
885 oldincludedir
886 includedir
887 localstatedir
888 sharedstatedir
889 sysconfdir
890 datadir
891 datarootdir
892 libexecdir
893 sbindir
894 bindir
895 program_transform_name
896 prefix
897 exec_prefix
898 PACKAGE_URL
899 PACKAGE_BUGREPORT
900 PACKAGE_STRING
901 PACKAGE_VERSION
902 PACKAGE_TARNAME
903 PACKAGE_NAME
904 PATH_SEPARATOR
905 SHELL'
906 ac_subst_files=''
907 ac_user_opts='
908 enable_option_checking
909 enable_maintainer_mode
910 enable_shared
911 enable_static
912 enable_fast_install
913 enable_dependency_tracking
914 with_gnu_ld
915 enable_libtool_lock
916 with_pic
917 with_tags
918 with_cflags
919 with_libs
920 enable_pam
921 with_ssl
922 enable_ssl
923 enable_ssl_thread_test
924 enable_docs
925 enable_drafts
926 with_ctlib
927 with_mssql
928 with_kannel_dir
929 '
930 ac_precious_vars='build_alias
931 host_alias
932 target_alias
933 CC
934 CFLAGS
935 LDFLAGS
936 LIBS
937 CPPFLAGS
938 CPP
939 CXX
940 CXXFLAGS
941 CCC
942 CXXCPP
943 F77
944 FFLAGS'
945
946
947 # Initialize some variables set by options.
948 ac_init_help=
949 ac_init_version=false
950 ac_unrecognized_opts=
951 ac_unrecognized_sep=
952 # The variables have the same names as the options, with
953 # dashes changed to underlines.
954 cache_file=/dev/null
955 exec_prefix=NONE
956 no_create=
957 no_recursion=
958 prefix=NONE
959 program_prefix=NONE
960 program_suffix=NONE
961 program_transform_name=s,x,x,
962 silent=
963 site=
964 srcdir=
965 verbose=
966 x_includes=NONE
967 x_libraries=NONE
968
969 # Installation directory options.
970 # These are left unexpanded so users can "make install exec_prefix=/foo"
971 # and all the variables that are supposed to be based on exec_prefix
972 # by default will actually change.
973 # Use braces instead of parens because sh, perl, etc. also accept them.
974 # (The list follows the same order as the GNU Coding Standards.)
975 bindir='${exec_prefix}/bin'
976 sbindir='${exec_prefix}/sbin'
977 libexecdir='${exec_prefix}/libexec'
978 datarootdir='${prefix}/share'
979 datadir='${datarootdir}'
980 sysconfdir='${prefix}/etc'
981 sharedstatedir='${prefix}/com'
982 localstatedir='${prefix}/var'
983 includedir='${prefix}/include'
984 oldincludedir='/usr/include'
985 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
986 infodir='${datarootdir}/info'
987 htmldir='${docdir}'
988 dvidir='${docdir}'
989 pdfdir='${docdir}'
990 psdir='${docdir}'
991 libdir='${exec_prefix}/lib'
992 localedir='${datarootdir}/locale'
993 mandir='${datarootdir}/man'
994
995 ac_prev=
996 ac_dashdash=
997 for ac_option
998 do
999 # If the previous option needs an argument, assign it.
1000 if test -n "$ac_prev"; then
1001 eval $ac_prev=\$ac_option
1002 ac_prev=
1003 continue
1004 fi
1005
1006 case $ac_option in
1007 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1008 *=) ac_optarg= ;;
1009 *) ac_optarg=yes ;;
1010 esac
1011
1012 # Accept the important Cygnus configure options, so we can diagnose typos.
1013
1014 case $ac_dashdash$ac_option in
1015 --)
1016 ac_dashdash=yes ;;
1017
1018 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1019 ac_prev=bindir ;;
1020 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1021 bindir=$ac_optarg ;;
1022
1023 -build | --build | --buil | --bui | --bu)
1024 ac_prev=build_alias ;;
1025 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1026 build_alias=$ac_optarg ;;
1027
1028 -cache-file | --cache-file | --cache-fil | --cache-fi \
1029 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1030 ac_prev=cache_file ;;
1031 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1032 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1033 cache_file=$ac_optarg ;;
1034
1035 --config-cache | -C)
1036 cache_file=config.cache ;;
1037
1038 -datadir | --datadir | --datadi | --datad)
1039 ac_prev=datadir ;;
1040 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1041 datadir=$ac_optarg ;;
1042
1043 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1044 | --dataroo | --dataro | --datar)
1045 ac_prev=datarootdir ;;
1046 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1047 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1048 datarootdir=$ac_optarg ;;
1049
1050 -disable-* | --disable-*)
1051 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1052 # Reject names that are not valid shell variable names.
1053 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1054 as_fn_error $? "invalid feature name: $ac_useropt"
1055 ac_useropt_orig=$ac_useropt
1056 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1057 case $ac_user_opts in
1058 *"
1059 "enable_$ac_useropt"
1060 "*) ;;
1061 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1062 ac_unrecognized_sep=', ';;
1063 esac
1064 eval enable_$ac_useropt=no ;;
1065
1066 -docdir | --docdir | --docdi | --doc | --do)
1067 ac_prev=docdir ;;
1068 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1069 docdir=$ac_optarg ;;
1070
1071 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1072 ac_prev=dvidir ;;
1073 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1074 dvidir=$ac_optarg ;;
1075
1076 -enable-* | --enable-*)
1077 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1078 # Reject names that are not valid shell variable names.
1079 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1080 as_fn_error $? "invalid feature name: $ac_useropt"
1081 ac_useropt_orig=$ac_useropt
1082 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1083 case $ac_user_opts in
1084 *"
1085 "enable_$ac_useropt"
1086 "*) ;;
1087 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1088 ac_unrecognized_sep=', ';;
1089 esac
1090 eval enable_$ac_useropt=\$ac_optarg ;;
1091
1092 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1093 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1094 | --exec | --exe | --ex)
1095 ac_prev=exec_prefix ;;
1096 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1097 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1098 | --exec=* | --exe=* | --ex=*)
1099 exec_prefix=$ac_optarg ;;
1100
1101 -gas | --gas | --ga | --g)
1102 # Obsolete; use --with-gas.
1103 with_gas=yes ;;
1104
1105 -help | --help | --hel | --he | -h)
1106 ac_init_help=long ;;
1107 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1108 ac_init_help=recursive ;;
1109 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1110 ac_init_help=short ;;
1111
1112 -host | --host | --hos | --ho)
1113 ac_prev=host_alias ;;
1114 -host=* | --host=* | --hos=* | --ho=*)
1115 host_alias=$ac_optarg ;;
1116
1117 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1118 ac_prev=htmldir ;;
1119 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1120 | --ht=*)
1121 htmldir=$ac_optarg ;;
1122
1123 -includedir | --includedir | --includedi | --included | --include \
1124 | --includ | --inclu | --incl | --inc)
1125 ac_prev=includedir ;;
1126 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1127 | --includ=* | --inclu=* | --incl=* | --inc=*)
1128 includedir=$ac_optarg ;;
1129
1130 -infodir | --infodir | --infodi | --infod | --info | --inf)
1131 ac_prev=infodir ;;
1132 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1133 infodir=$ac_optarg ;;
1134
1135 -libdir | --libdir | --libdi | --libd)
1136 ac_prev=libdir ;;
1137 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1138 libdir=$ac_optarg ;;
1139
1140 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1141 | --libexe | --libex | --libe)
1142 ac_prev=libexecdir ;;
1143 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1144 | --libexe=* | --libex=* | --libe=*)
1145 libexecdir=$ac_optarg ;;
1146
1147 -localedir | --localedir | --localedi | --localed | --locale)
1148 ac_prev=localedir ;;
1149 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1150 localedir=$ac_optarg ;;
1151
1152 -localstatedir | --localstatedir | --localstatedi | --localstated \
1153 | --localstate | --localstat | --localsta | --localst | --locals)
1154 ac_prev=localstatedir ;;
1155 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1156 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1157 localstatedir=$ac_optarg ;;
1158
1159 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1160 ac_prev=mandir ;;
1161 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1162 mandir=$ac_optarg ;;
1163
1164 -nfp | --nfp | --nf)
1165 # Obsolete; use --without-fp.
1166 with_fp=no ;;
1167
1168 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1169 | --no-cr | --no-c | -n)
1170 no_create=yes ;;
1171
1172 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1173 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1174 no_recursion=yes ;;
1175
1176 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1177 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1178 | --oldin | --oldi | --old | --ol | --o)
1179 ac_prev=oldincludedir ;;
1180 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1181 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1182 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1183 oldincludedir=$ac_optarg ;;
1184
1185 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1186 ac_prev=prefix ;;
1187 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1188 prefix=$ac_optarg ;;
1189
1190 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1191 | --program-pre | --program-pr | --program-p)
1192 ac_prev=program_prefix ;;
1193 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1194 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1195 program_prefix=$ac_optarg ;;
1196
1197 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1198 | --program-suf | --program-su | --program-s)
1199 ac_prev=program_suffix ;;
1200 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1201 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1202 program_suffix=$ac_optarg ;;
1203
1204 -program-transform-name | --program-transform-name \
1205 | --program-transform-nam | --program-transform-na \
1206 | --program-transform-n | --program-transform- \
1207 | --program-transform | --program-transfor \
1208 | --program-transfo | --program-transf \
1209 | --program-trans | --program-tran \
1210 | --progr-tra | --program-tr | --program-t)
1211 ac_prev=program_transform_name ;;
1212 -program-transform-name=* | --program-transform-name=* \
1213 | --program-transform-nam=* | --program-transform-na=* \
1214 | --program-transform-n=* | --program-transform-=* \
1215 | --program-transform=* | --program-transfor=* \
1216 | --program-transfo=* | --program-transf=* \
1217 | --program-trans=* | --program-tran=* \
1218 | --progr-tra=* | --program-tr=* | --program-t=*)
1219 program_transform_name=$ac_optarg ;;
1220
1221 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1222 ac_prev=pdfdir ;;
1223 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1224 pdfdir=$ac_optarg ;;
1225
1226 -psdir | --psdir | --psdi | --psd | --ps)
1227 ac_prev=psdir ;;
1228 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1229 psdir=$ac_optarg ;;
1230
1231 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1232 | -silent | --silent | --silen | --sile | --sil)
1233 silent=yes ;;
1234
1235 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1236 ac_prev=sbindir ;;
1237 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1238 | --sbi=* | --sb=*)
1239 sbindir=$ac_optarg ;;
1240
1241 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1242 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1243 | --sharedst | --shareds | --shared | --share | --shar \
1244 | --sha | --sh)
1245 ac_prev=sharedstatedir ;;
1246 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1247 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1248 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1249 | --sha=* | --sh=*)
1250 sharedstatedir=$ac_optarg ;;
1251
1252 -site | --site | --sit)
1253 ac_prev=site ;;
1254 -site=* | --site=* | --sit=*)
1255 site=$ac_optarg ;;
1256
1257 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1258 ac_prev=srcdir ;;
1259 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1260 srcdir=$ac_optarg ;;
1261
1262 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1263 | --syscon | --sysco | --sysc | --sys | --sy)
1264 ac_prev=sysconfdir ;;
1265 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1266 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1267 sysconfdir=$ac_optarg ;;
1268
1269 -target | --target | --targe | --targ | --tar | --ta | --t)
1270 ac_prev=target_alias ;;
1271 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1272 target_alias=$ac_optarg ;;
1273
1274 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1275 verbose=yes ;;
1276
1277 -version | --version | --versio | --versi | --vers | -V)
1278 ac_init_version=: ;;
1279
1280 -with-* | --with-*)
1281 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1282 # Reject names that are not valid shell variable names.
1283 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1284 as_fn_error $? "invalid package name: $ac_useropt"
1285 ac_useropt_orig=$ac_useropt
1286 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1287 case $ac_user_opts in
1288 *"
1289 "with_$ac_useropt"
1290 "*) ;;
1291 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1292 ac_unrecognized_sep=', ';;
1293 esac
1294 eval with_$ac_useropt=\$ac_optarg ;;
1295
1296 -without-* | --without-*)
1297 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1298 # Reject names that are not valid shell variable names.
1299 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1300 as_fn_error $? "invalid package name: $ac_useropt"
1301 ac_useropt_orig=$ac_useropt
1302 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1303 case $ac_user_opts in
1304 *"
1305 "with_$ac_useropt"
1306 "*) ;;
1307 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1308 ac_unrecognized_sep=', ';;
1309 esac
1310 eval with_$ac_useropt=no ;;
1311
1312 --x)
1313 # Obsolete; use --with-x.
1314 with_x=yes ;;
1315
1316 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1317 | --x-incl | --x-inc | --x-in | --x-i)
1318 ac_prev=x_includes ;;
1319 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1320 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1321 x_includes=$ac_optarg ;;
1322
1323 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1324 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1325 ac_prev=x_libraries ;;
1326 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1327 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1328 x_libraries=$ac_optarg ;;
1329
1330 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1331 Try \`$0 --help' for more information"
1332 ;;
1333
1334 *=*)
1335 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1336 # Reject names that are not valid shell variable names.
1337 case $ac_envvar in #(
1338 '' | [0-9]* | *[!_$as_cr_alnum]* )
1339 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1340 esac
1341 eval $ac_envvar=\$ac_optarg
1342 export $ac_envvar ;;
1343
1344 *)
1345 # FIXME: should be removed in autoconf 3.0.
1346 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1347 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1348 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1349 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1350 ;;
1351
1352 esac
1353 done
1354
1355 if test -n "$ac_prev"; then
1356 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1357 as_fn_error $? "missing argument to $ac_option"
1358 fi
1359
1360 if test -n "$ac_unrecognized_opts"; then
1361 case $enable_option_checking in
1362 no) ;;
1363 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1364 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1365 esac
1366 fi
1367
1368 # Check all directory arguments for consistency.
1369 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1370 datadir sysconfdir sharedstatedir localstatedir includedir \
1371 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1372 libdir localedir mandir
1373 do
1374 eval ac_val=\$$ac_var
1375 # Remove trailing slashes.
1376 case $ac_val in
1377 */ )
1378 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1379 eval $ac_var=\$ac_val;;
1380 esac
1381 # Be sure to have absolute directory names.
1382 case $ac_val in
1383 [\\/$]* | ?:[\\/]* ) continue;;
1384 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1385 esac
1386 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1387 done
1388
1389 # There might be people who depend on the old broken behavior: `$host'
1390 # used to hold the argument of --host etc.
1391 # FIXME: To remove some day.
1392 build=$build_alias
1393 host=$host_alias
1394 target=$target_alias
1395
1396 # FIXME: To remove some day.
1397 if test "x$host_alias" != x; then
1398 if test "x$build_alias" = x; then
1399 cross_compiling=maybe
1400 elif test "x$build_alias" != "x$host_alias"; then
1401 cross_compiling=yes
1402 fi
1403 fi
1404
1405 ac_tool_prefix=
1406 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1407
1408 test "$silent" = yes && exec 6>/dev/null
1409
1410
1411 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1412 ac_ls_di=`ls -di .` &&
1413 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1414 as_fn_error $? "working directory cannot be determined"
1415 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1416 as_fn_error $? "pwd does not report name of working directory"
1417
1418
1419 # Find the source files, if location was not specified.
1420 if test -z "$srcdir"; then
1421 ac_srcdir_defaulted=yes
1422 # Try the directory containing this script, then the parent directory.
1423 ac_confdir=`$as_dirname -- "$as_myself" ||
1424 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1425 X"$as_myself" : 'X\(//\)[^/]' \| \
1426 X"$as_myself" : 'X\(//\)$' \| \
1427 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1428 $as_echo X"$as_myself" |
1429 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 s//\1/
1431 q
1432 }
1433 /^X\(\/\/\)[^/].*/{
1434 s//\1/
1435 q
1436 }
1437 /^X\(\/\/\)$/{
1438 s//\1/
1439 q
1440 }
1441 /^X\(\/\).*/{
1442 s//\1/
1443 q
1444 }
1445 s/.*/./; q'`
1446 srcdir=$ac_confdir
1447 if test ! -r "$srcdir/$ac_unique_file"; then
1448 srcdir=..
1449 fi
1450 else
1451 ac_srcdir_defaulted=no
1452 fi
1453 if test ! -r "$srcdir/$ac_unique_file"; then
1454 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1455 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1460 pwd)`
1461 # When building in place, set srcdir=.
1462 if test "$ac_abs_confdir" = "$ac_pwd"; then
1463 srcdir=.
1464 fi
1465 # Remove unnecessary trailing slashes from srcdir.
1466 # Double slashes in file names in object file debugging info
1467 # mess up M-x gdb in Emacs.
1468 case $srcdir in
1469 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1470 esac
1471 for ac_var in $ac_precious_vars; do
1472 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1473 eval ac_env_${ac_var}_value=\$${ac_var}
1474 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1475 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1476 done
1477
1478 #
1479 # Report the --help message.
1480 #
1481 if test "$ac_init_help" = "long"; then
1482 # Omit some internal or obsolete options to make the list less imposing.
1483 # This message is too long to be a string in the A/UX 3.1 sh.
1484 cat <<_ACEOF
1485 \`configure' configures opensmppbox svn to adapt to many kinds of systems.
1486
1487 Usage: $0 [OPTION]... [VAR=VALUE]...
1488
1489 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1490 VAR=VALUE. See below for descriptions of some of the useful variables.
1491
1492 Defaults for the options are specified in brackets.
1493
1494 Configuration:
1495 -h, --help display this help and exit
1496 --help=short display options specific to this package
1497 --help=recursive display the short help of all the included packages
1498 -V, --version display version information and exit
1499 -q, --quiet, --silent do not print \`checking ...' messages
1500 --cache-file=FILE cache test results in FILE [disabled]
1501 -C, --config-cache alias for \`--cache-file=config.cache'
1502 -n, --no-create do not create output files
1503 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1504
1505 Installation directories:
1506 --prefix=PREFIX install architecture-independent files in PREFIX
1507 [$ac_default_prefix]
1508 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1509 [PREFIX]
1510
1511 By default, \`make install' will install all the files in
1512 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1513 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1514 for instance \`--prefix=\$HOME'.
1515
1516 For better control, use the options below.
1517
1518 Fine tuning of the installation directories:
1519 --bindir=DIR user executables [EPREFIX/bin]
1520 --sbindir=DIR system admin executables [EPREFIX/sbin]
1521 --libexecdir=DIR program executables [EPREFIX/libexec]
1522 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1523 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1524 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1525 --libdir=DIR object code libraries [EPREFIX/lib]
1526 --includedir=DIR C header files [PREFIX/include]
1527 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1528 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1529 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1530 --infodir=DIR info documentation [DATAROOTDIR/info]
1531 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1532 --mandir=DIR man documentation [DATAROOTDIR/man]
1533 --docdir=DIR documentation root [DATAROOTDIR/doc/opensmppbox]
1534 --htmldir=DIR html documentation [DOCDIR]
1535 --dvidir=DIR dvi documentation [DOCDIR]
1536 --pdfdir=DIR pdf documentation [DOCDIR]
1537 --psdir=DIR ps documentation [DOCDIR]
1538 _ACEOF
1539
1540 cat <<\_ACEOF
1541
1542 Program names:
1543 --program-prefix=PREFIX prepend PREFIX to installed program names
1544 --program-suffix=SUFFIX append SUFFIX to installed program names
1545 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1546
1547 System types:
1548 --build=BUILD configure for building on BUILD [guessed]
1549 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1550 _ACEOF
1551 fi
1552
1553 if test -n "$ac_init_help"; then
1554 case $ac_init_help in
1555 short | recursive ) echo "Configuration of opensmppbox svn:";;
1556 esac
1557 cat <<\_ACEOF
1558
1559 Optional Features:
1560 --disable-option-checking ignore unrecognized --enable/--with options
1561 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1562 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1563 --enable-maintainer-mode enable make rules and dependencies not useful
1564 (and sometimes confusing) to the casual installer
1565 --enable-shared[=PKGS] build shared libraries [default=yes]
1566 --enable-static[=PKGS] build static libraries [default=yes]
1567 --enable-fast-install[=PKGS]
1568 optimize for fast installation [default=yes]
1569 --disable-dependency-tracking speeds up one-time build
1570 --enable-dependency-tracking do not reject slow dependency extractors
1571 --disable-libtool-lock avoid locking (might break parallel builds)
1572 --enable-pam enable PAM authentication [disabled]
1573 --enable-ssl enable SSL client and server support enabled
1574 --disable-ssl-thread-test disable the multithread test for the OpenSSL library
1575 this will force to continue even if the test fails
1576 --enable-docs enable building of documentation [enabled]
1577 --enable-drafts enable building of documentation drafts [disabled]
1578
1579 Optional Packages:
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1583 --with-pic try to use only PIC/non-PIC objects [default=use
1584 both]
1585 --with-tags[=TAGS] include additional configurations [automatic]
1586 --with-cflags=FLAGS use FLAGS for CFLAGS
1587 --with-libs=FLAGS use FLAGS for extra libraries
1588 --with-ssl=DIR where to look for OpenSSL libs and header files
1589 DIR points to the installation /usr/local/ssl
1590 --with-ctlib=DIR Include Ct-Lib support. DIR is the Ct-Lib
1591 install directory, defaults to /opt/sybase.
1592 --with-mssql=DIR Include FreeTDS Ct-Lib support. DIR is the FreeTDS
1593 install directory, defaults to /usr/local.
1594 --with-kannel-dir=DIR where to look for Kannel Gateway libs and header files
1595 DIR points to the installation /usr/local
1596
1597
1598 Some influential environment variables:
1599 CC C compiler command
1600 CFLAGS C compiler flags
1601 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1602 nonstandard directory <lib dir>
1603 LIBS libraries to pass to the linker, e.g. -l<library>
1604 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1605 you have headers in a nonstandard directory <include dir>
1606 CPP C preprocessor
1607 CXX C++ compiler command
1608 CXXFLAGS C++ compiler flags
1609 CXXCPP C++ preprocessor
1610 F77 Fortran 77 compiler command
1611 FFLAGS Fortran 77 compiler flags
1612
1613 Use these variables to override the choices made by `configure' or to help
1614 it to find libraries and programs with nonstandard names/locations.
1615
1616 Report bugs to <[email protected]>.
1617 _ACEOF
1618 ac_status=$?
1619 fi
1620
1621 if test "$ac_init_help" = "recursive"; then
1622 # If there are subdirs, report their specific --help.
1623 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1624 test -d "$ac_dir" ||
1625 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1626 continue
1627 ac_builddir=.
1628
1629 case "$ac_dir" in
1630 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1631 *)
1632 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1633 # A ".." for each directory in $ac_dir_suffix.
1634 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1635 case $ac_top_builddir_sub in
1636 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1637 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1638 esac ;;
1639 esac
1640 ac_abs_top_builddir=$ac_pwd
1641 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1642 # for backward compatibility:
1643 ac_top_builddir=$ac_top_build_prefix
1644
1645 case $srcdir in
1646 .) # We are building in place.
1647 ac_srcdir=.
1648 ac_top_srcdir=$ac_top_builddir_sub
1649 ac_abs_top_srcdir=$ac_pwd ;;
1650 [\\/]* | ?:[\\/]* ) # Absolute name.
1651 ac_srcdir=$srcdir$ac_dir_suffix;
1652 ac_top_srcdir=$srcdir
1653 ac_abs_top_srcdir=$srcdir ;;
1654 *) # Relative name.
1655 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1656 ac_top_srcdir=$ac_top_build_prefix$srcdir
1657 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1658 esac
1659 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1660
1661 cd "$ac_dir" || { ac_status=$?; continue; }
1662 # Check for guested configure.
1663 if test -f "$ac_srcdir/configure.gnu"; then
1664 echo &&
1665 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1666 elif test -f "$ac_srcdir/configure"; then
1667 echo &&
1668 $SHELL "$ac_srcdir/configure" --help=recursive
1669 else
1670 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1671 fi || ac_status=$?
1672 cd "$ac_pwd" || { ac_status=$?; break; }
1673 done
1674 fi
1675
1676 test -n "$ac_init_help" && exit $ac_status
1677 if $ac_init_version; then
1678 cat <<\_ACEOF
1679 opensmppbox configure svn
1680 generated by GNU Autoconf 2.69
1681
1682 Copyright (C) 2012 Free Software Foundation, Inc.
1683 This configure script is free software; the Free Software Foundation
1684 gives unlimited permission to copy, distribute and modify it.
1685 _ACEOF
1686 exit
1687 fi
1688
1689 ## ------------------------ ##
1690 ## Autoconf initialization. ##
1691 ## ------------------------ ##
1692
1693 # ac_fn_c_try_compile LINENO
1694 # --------------------------
1695 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1696 ac_fn_c_try_compile ()
1697 {
1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1699 rm -f conftest.$ac_objext
1700 if { { ac_try="$ac_compile"
1701 case "(($ac_try" in
1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1703 *) ac_try_echo=$ac_try;;
1704 esac
1705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1706 $as_echo "$ac_try_echo"; } >&5
1707 (eval "$ac_compile") 2>conftest.err
1708 ac_status=$?
1709 if test -s conftest.err; then
1710 grep -v '^ *+' conftest.err >conftest.er1
1711 cat conftest.er1 >&5
1712 mv -f conftest.er1 conftest.err
1713 fi
1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1715 test $ac_status = 0; } && {
1716 test -z "$ac_c_werror_flag" ||
1717 test ! -s conftest.err
1718 } && test -s conftest.$ac_objext; then :
1719 ac_retval=0
1720 else
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1723
1724 ac_retval=1
1725 fi
1726 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1727 as_fn_set_status $ac_retval
1728
1729 } # ac_fn_c_try_compile
1730
1731 # ac_fn_c_try_link LINENO
1732 # -----------------------
1733 # Try to link conftest.$ac_ext, and return whether this succeeded.
1734 ac_fn_c_try_link ()
1735 {
1736 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1737 rm -f conftest.$ac_objext conftest$ac_exeext
1738 if { { ac_try="$ac_link"
1739 case "(($ac_try" in
1740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1741 *) ac_try_echo=$ac_try;;
1742 esac
1743 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1744 $as_echo "$ac_try_echo"; } >&5
1745 (eval "$ac_link") 2>conftest.err
1746 ac_status=$?
1747 if test -s conftest.err; then
1748 grep -v '^ *+' conftest.err >conftest.er1
1749 cat conftest.er1 >&5
1750 mv -f conftest.er1 conftest.err
1751 fi
1752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1753 test $ac_status = 0; } && {
1754 test -z "$ac_c_werror_flag" ||
1755 test ! -s conftest.err
1756 } && test -s conftest$ac_exeext && {
1757 test "$cross_compiling" = yes ||
1758 test -x conftest$ac_exeext
1759 }; then :
1760 ac_retval=0
1761 else
1762 $as_echo "$as_me: failed program was:" >&5
1763 sed 's/^/| /' conftest.$ac_ext >&5
1764
1765 ac_retval=1
1766 fi
1767 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1768 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1769 # interfere with the next link command; also delete a directory that is
1770 # left behind by Apple's compiler. We do this before executing the actions.
1771 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1772 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1773 as_fn_set_status $ac_retval
1774
1775 } # ac_fn_c_try_link
1776
1777 # ac_fn_c_try_cpp LINENO
1778 # ----------------------
1779 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_cpp ()
1781 {
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 if { { ac_try="$ac_cpp conftest.$ac_ext"
1784 case "(($ac_try" in
1785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1786 *) ac_try_echo=$ac_try;;
1787 esac
1788 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1789 $as_echo "$ac_try_echo"; } >&5
1790 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1791 ac_status=$?
1792 if test -s conftest.err; then
1793 grep -v '^ *+' conftest.err >conftest.er1
1794 cat conftest.er1 >&5
1795 mv -f conftest.er1 conftest.err
1796 fi
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; } > conftest.i && {
1799 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1800 test ! -s conftest.err
1801 }; then :
1802 ac_retval=0
1803 else
1804 $as_echo "$as_me: failed program was:" >&5
1805 sed 's/^/| /' conftest.$ac_ext >&5
1806
1807 ac_retval=1
1808 fi
1809 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1810 as_fn_set_status $ac_retval
1811
1812 } # ac_fn_c_try_cpp
1813
1814 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1815 # -------------------------------------------------------
1816 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1817 # the include files in INCLUDES and setting the cache variable VAR
1818 # accordingly.
1819 ac_fn_c_check_header_mongrel ()
1820 {
1821 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1822 if eval \${$3+:} false; then :
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1824 $as_echo_n "checking for $2... " >&6; }
1825 if eval \${$3+:} false; then :
1826 $as_echo_n "(cached) " >&6
1827 fi
1828 eval ac_res=\$$3
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1830 $as_echo "$ac_res" >&6; }
1831 else
1832 # Is the header compilable?
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1834 $as_echo_n "checking $2 usability... " >&6; }
1835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1836 /* end confdefs.h. */
1837 $4
1838 #include <$2>
1839 _ACEOF
1840 if ac_fn_c_try_compile "$LINENO"; then :
1841 ac_header_compiler=yes
1842 else
1843 ac_header_compiler=no
1844 fi
1845 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1847 $as_echo "$ac_header_compiler" >&6; }
1848
1849 # Is the header present?
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1851 $as_echo_n "checking $2 presence... " >&6; }
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 #include <$2>
1855 _ACEOF
1856 if ac_fn_c_try_cpp "$LINENO"; then :
1857 ac_header_preproc=yes
1858 else
1859 ac_header_preproc=no
1860 fi
1861 rm -f conftest.err conftest.i conftest.$ac_ext
1862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1863 $as_echo "$ac_header_preproc" >&6; }
1864
1865 # So? What about this header?
1866 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 yes:no: )
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1869 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1871 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1872 ;;
1873 no:yes:* )
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1875 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1877 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1879 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1881 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1883 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1884 ( $as_echo "## ------------------------------- ##
1885 ## Report this to [email protected] ##
1886 ## ------------------------------- ##"
1887 ) | sed "s/^/$as_me: WARNING: /" >&2
1888 ;;
1889 esac
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1891 $as_echo_n "checking for $2... " >&6; }
1892 if eval \${$3+:} false; then :
1893 $as_echo_n "(cached) " >&6
1894 else
1895 eval "$3=\$ac_header_compiler"
1896 fi
1897 eval ac_res=\$$3
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1899 $as_echo "$ac_res" >&6; }
1900 fi
1901 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1902
1903 } # ac_fn_c_check_header_mongrel
1904
1905 # ac_fn_c_try_run LINENO
1906 # ----------------------
1907 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1908 # that executables *can* be run.
1909 ac_fn_c_try_run ()
1910 {
1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1912 if { { ac_try="$ac_link"
1913 case "(($ac_try" in
1914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1915 *) ac_try_echo=$ac_try;;
1916 esac
1917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1918 $as_echo "$ac_try_echo"; } >&5
1919 (eval "$ac_link") 2>&5
1920 ac_status=$?
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1923 { { case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926 esac
1927 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928 $as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_try") 2>&5
1930 ac_status=$?
1931 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1932 test $ac_status = 0; }; }; then :
1933 ac_retval=0
1934 else
1935 $as_echo "$as_me: program exited with status $ac_status" >&5
1936 $as_echo "$as_me: failed program was:" >&5
1937 sed 's/^/| /' conftest.$ac_ext >&5
1938
1939 ac_retval=$ac_status
1940 fi
1941 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1943 as_fn_set_status $ac_retval
1944
1945 } # ac_fn_c_try_run
1946
1947 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1948 # -------------------------------------------------------
1949 # Tests whether HEADER exists and can be compiled using the include files in
1950 # INCLUDES, setting the cache variable VAR accordingly.
1951 ac_fn_c_check_header_compile ()
1952 {
1953 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if eval \${$3+:} false; then :
1957 $as_echo_n "(cached) " >&6
1958 else
1959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1960 /* end confdefs.h. */
1961 $4
1962 #include <$2>
1963 _ACEOF
1964 if ac_fn_c_try_compile "$LINENO"; then :
1965 eval "$3=yes"
1966 else
1967 eval "$3=no"
1968 fi
1969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1970 fi
1971 eval ac_res=\$$3
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1973 $as_echo "$ac_res" >&6; }
1974 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1975
1976 } # ac_fn_c_check_header_compile
1977
1978 # ac_fn_c_check_func LINENO FUNC VAR
1979 # ----------------------------------
1980 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1981 ac_fn_c_check_func ()
1982 {
1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \${$3+:} false; then :
1987 $as_echo_n "(cached) " >&6
1988 else
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1991 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1993 #define $2 innocuous_$2
1994
1995 /* System header to define __stub macros and hopefully few prototypes,
1996 which can conflict with char $2 (); below.
1997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1998 <limits.h> exists even on freestanding compilers. */
1999
2000 #ifdef __STDC__
2001 # include <limits.h>
2002 #else
2003 # include <assert.h>
2004 #endif
2005
2006 #undef $2
2007
2008 /* Override any GCC internal prototype to avoid an error.
2009 Use char because int might match the return type of a GCC
2010 builtin and then its argument prototype would still apply. */
2011 #ifdef __cplusplus
2012 extern "C"
2013 #endif
2014 char $2 ();
2015 /* The GNU C library defines this for functions which it implements
2016 to always fail with ENOSYS. Some functions are actually named
2017 something starting with __ and the normal name is an alias. */
2018 #if defined __stub_$2 || defined __stub___$2
2019 choke me
2020 #endif
2021
2022 int
2023 main ()
2024 {
2025 return $2 ();
2026 ;
2027 return 0;
2028 }
2029 _ACEOF
2030 if ac_fn_c_try_link "$LINENO"; then :
2031 eval "$3=yes"
2032 else
2033 eval "$3=no"
2034 fi
2035 rm -f core conftest.err conftest.$ac_objext \
2036 conftest$ac_exeext conftest.$ac_ext
2037 fi
2038 eval ac_res=\$$3
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2040 $as_echo "$ac_res" >&6; }
2041 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2042
2043 } # ac_fn_c_check_func
2044
2045 # ac_fn_cxx_try_compile LINENO
2046 # ----------------------------
2047 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2048 ac_fn_cxx_try_compile ()
2049 {
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 rm -f conftest.$ac_objext
2052 if { { ac_try="$ac_compile"
2053 case "(($ac_try" in
2054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2055 *) ac_try_echo=$ac_try;;
2056 esac
2057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2058 $as_echo "$ac_try_echo"; } >&5
2059 (eval "$ac_compile") 2>conftest.err
2060 ac_status=$?
2061 if test -s conftest.err; then
2062 grep -v '^ *+' conftest.err >conftest.er1
2063 cat conftest.er1 >&5
2064 mv -f conftest.er1 conftest.err
2065 fi
2066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2067 test $ac_status = 0; } && {
2068 test -z "$ac_cxx_werror_flag" ||
2069 test ! -s conftest.err
2070 } && test -s conftest.$ac_objext; then :
2071 ac_retval=0
2072 else
2073 $as_echo "$as_me: failed program was:" >&5
2074 sed 's/^/| /' conftest.$ac_ext >&5
2075
2076 ac_retval=1
2077 fi
2078 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2079 as_fn_set_status $ac_retval
2080
2081 } # ac_fn_cxx_try_compile
2082
2083 # ac_fn_cxx_try_cpp LINENO
2084 # ------------------------
2085 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2086 ac_fn_cxx_try_cpp ()
2087 {
2088 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2089 if { { ac_try="$ac_cpp conftest.$ac_ext"
2090 case "(($ac_try" in
2091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2092 *) ac_try_echo=$ac_try;;
2093 esac
2094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2095 $as_echo "$ac_try_echo"; } >&5
2096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2097 ac_status=$?
2098 if test -s conftest.err; then
2099 grep -v '^ *+' conftest.err >conftest.er1
2100 cat conftest.er1 >&5
2101 mv -f conftest.er1 conftest.err
2102 fi
2103 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2104 test $ac_status = 0; } > conftest.i && {
2105 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2106 test ! -s conftest.err
2107 }; then :
2108 ac_retval=0
2109 else
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 ac_retval=1
2114 fi
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 as_fn_set_status $ac_retval
2117
2118 } # ac_fn_cxx_try_cpp
2119
2120 # ac_fn_cxx_try_link LINENO
2121 # -------------------------
2122 # Try to link conftest.$ac_ext, and return whether this succeeded.
2123 ac_fn_cxx_try_link ()
2124 {
2125 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2126 rm -f conftest.$ac_objext conftest$ac_exeext
2127 if { { ac_try="$ac_link"
2128 case "(($ac_try" in
2129 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2130 *) ac_try_echo=$ac_try;;
2131 esac
2132 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2133 $as_echo "$ac_try_echo"; } >&5
2134 (eval "$ac_link") 2>conftest.err
2135 ac_status=$?
2136 if test -s conftest.err; then
2137 grep -v '^ *+' conftest.err >conftest.er1
2138 cat conftest.er1 >&5
2139 mv -f conftest.er1 conftest.err
2140 fi
2141 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2142 test $ac_status = 0; } && {
2143 test -z "$ac_cxx_werror_flag" ||
2144 test ! -s conftest.err
2145 } && test -s conftest$ac_exeext && {
2146 test "$cross_compiling" = yes ||
2147 test -x conftest$ac_exeext
2148 }; then :
2149 ac_retval=0
2150 else
2151 $as_echo "$as_me: failed program was:" >&5
2152 sed 's/^/| /' conftest.$ac_ext >&5
2153
2154 ac_retval=1
2155 fi
2156 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2157 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2158 # interfere with the next link command; also delete a directory that is
2159 # left behind by Apple's compiler. We do this before executing the actions.
2160 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2161 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2162 as_fn_set_status $ac_retval
2163
2164 } # ac_fn_cxx_try_link
2165
2166 # ac_fn_f77_try_compile LINENO
2167 # ----------------------------
2168 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2169 ac_fn_f77_try_compile ()
2170 {
2171 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2172 rm -f conftest.$ac_objext
2173 if { { ac_try="$ac_compile"
2174 case "(($ac_try" in
2175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2176 *) ac_try_echo=$ac_try;;
2177 esac
2178 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2179 $as_echo "$ac_try_echo"; } >&5
2180 (eval "$ac_compile") 2>conftest.err
2181 ac_status=$?
2182 if test -s conftest.err; then
2183 grep -v '^ *+' conftest.err >conftest.er1
2184 cat conftest.er1 >&5
2185 mv -f conftest.er1 conftest.err
2186 fi
2187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2188 test $ac_status = 0; } && {
2189 test -z "$ac_f77_werror_flag" ||
2190 test ! -s conftest.err
2191 } && test -s conftest.$ac_objext; then :
2192 ac_retval=0
2193 else
2194 $as_echo "$as_me: failed program was:" >&5
2195 sed 's/^/| /' conftest.$ac_ext >&5
2196
2197 ac_retval=1
2198 fi
2199 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2200 as_fn_set_status $ac_retval
2201
2202 } # ac_fn_f77_try_compile
2203
2204 # ac_fn_f77_try_link LINENO
2205 # -------------------------
2206 # Try to link conftest.$ac_ext, and return whether this succeeded.
2207 ac_fn_f77_try_link ()
2208 {
2209 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2210 rm -f conftest.$ac_objext conftest$ac_exeext
2211 if { { ac_try="$ac_link"
2212 case "(($ac_try" in
2213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2214 *) ac_try_echo=$ac_try;;
2215 esac
2216 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2217 $as_echo "$ac_try_echo"; } >&5
2218 (eval "$ac_link") 2>conftest.err
2219 ac_status=$?
2220 if test -s conftest.err; then
2221 grep -v '^ *+' conftest.err >conftest.er1
2222 cat conftest.er1 >&5
2223 mv -f conftest.er1 conftest.err
2224 fi
2225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2226 test $ac_status = 0; } && {
2227 test -z "$ac_f77_werror_flag" ||
2228 test ! -s conftest.err
2229 } && test -s conftest$ac_exeext && {
2230 test "$cross_compiling" = yes ||
2231 test -x conftest$ac_exeext
2232 }; then :
2233 ac_retval=0
2234 else
2235 $as_echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 ac_retval=1
2239 fi
2240 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2241 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2242 # interfere with the next link command; also delete a directory that is
2243 # left behind by Apple's compiler. We do this before executing the actions.
2244 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2246 as_fn_set_status $ac_retval
2247
2248 } # ac_fn_f77_try_link
2249 cat >config.log <<_ACEOF
2250 This file contains any messages produced by compilers while
2251 running configure, to aid debugging if configure makes a mistake.
2252
2253 It was created by opensmppbox $as_me svn, which was
2254 generated by GNU Autoconf 2.69. Invocation command line was
2255
2256 $ $0 $@
2257
2258 _ACEOF
2259 exec 5>>config.log
2260 {
2261 cat <<_ASUNAME
2262 ## --------- ##
2263 ## Platform. ##
2264 ## --------- ##
2265
2266 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2267 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2268 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2269 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2270 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271
2272 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2273 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274
2275 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2276 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2277 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2278 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2279 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2280 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2281 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282
2283 _ASUNAME
2284
2285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2286 for as_dir in $PATH
2287 do
2288 IFS=$as_save_IFS
2289 test -z "$as_dir" && as_dir=.
2290 $as_echo "PATH: $as_dir"
2291 done
2292 IFS=$as_save_IFS
2293
2294 } >&5
2295
2296 cat >&5 <<_ACEOF
2297
2298
2299 ## ----------- ##
2300 ## Core tests. ##
2301 ## ----------- ##
2302
2303 _ACEOF
2304
2305
2306 # Keep a trace of the command line.
2307 # Strip out --no-create and --no-recursion so they do not pile up.
2308 # Strip out --silent because we don't want to record it for future runs.
2309 # Also quote any args containing shell meta-characters.
2310 # Make two passes to allow for proper duplicate-argument suppression.
2311 ac_configure_args=
2312 ac_configure_args0=
2313 ac_configure_args1=
2314 ac_must_keep_next=false
2315 for ac_pass in 1 2
2316 do
2317 for ac_arg
2318 do
2319 case $ac_arg in
2320 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2322 | -silent | --silent | --silen | --sile | --sil)
2323 continue ;;
2324 *\'*)
2325 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 esac
2327 case $ac_pass in
2328 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 2)
2330 as_fn_append ac_configure_args1 " '$ac_arg'"
2331 if test $ac_must_keep_next = true; then
2332 ac_must_keep_next=false # Got value, back to normal.
2333 else
2334 case $ac_arg in
2335 *=* | --config-cache | -C | -disable-* | --disable-* \
2336 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2337 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2338 | -with-* | --with-* | -without-* | --without-* | --x)
2339 case "$ac_configure_args0 " in
2340 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2341 esac
2342 ;;
2343 -* ) ac_must_keep_next=true ;;
2344 esac
2345 fi
2346 as_fn_append ac_configure_args " '$ac_arg'"
2347 ;;
2348 esac
2349 done
2350 done
2351 { ac_configure_args0=; unset ac_configure_args0;}
2352 { ac_configure_args1=; unset ac_configure_args1;}
2353
2354 # When interrupted or exit'd, cleanup temporary files, and complete
2355 # config.log. We remove comments because anyway the quotes in there
2356 # would cause problems or look ugly.
2357 # WARNING: Use '\'' to represent an apostrophe within the trap.
2358 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2359 trap 'exit_status=$?
2360 # Save into config.log some information that might help in debugging.
2361 {
2362 echo
2363
2364 $as_echo "## ---------------- ##
2365 ## Cache variables. ##
2366 ## ---------------- ##"
2367 echo
2368 # The following way of writing the cache mishandles newlines in values,
2369 (
2370 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2371 eval ac_val=\$$ac_var
2372 case $ac_val in #(
2373 *${as_nl}*)
2374 case $ac_var in #(
2375 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2376 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2377 esac
2378 case $ac_var in #(
2379 _ | IFS | as_nl) ;; #(
2380 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2381 *) { eval $ac_var=; unset $ac_var;} ;;
2382 esac ;;
2383 esac
2384 done
2385 (set) 2>&1 |
2386 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2387 *${as_nl}ac_space=\ *)
2388 sed -n \
2389 "s/'\''/'\''\\\\'\'''\''/g;
2390 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2391 ;; #(
2392 *)
2393 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394 ;;
2395 esac |
2396 sort
2397 )
2398 echo
2399
2400 $as_echo "## ----------------- ##
2401 ## Output variables. ##
2402 ## ----------------- ##"
2403 echo
2404 for ac_var in $ac_subst_vars
2405 do
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2413
2414 if test -n "$ac_subst_files"; then
2415 $as_echo "## ------------------- ##
2416 ## File substitutions. ##
2417 ## ------------------- ##"
2418 echo
2419 for ac_var in $ac_subst_files
2420 do
2421 eval ac_val=\$$ac_var
2422 case $ac_val in
2423 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2424 esac
2425 $as_echo "$ac_var='\''$ac_val'\''"
2426 done | sort
2427 echo
2428 fi
2429
2430 if test -s confdefs.h; then
2431 $as_echo "## ----------- ##
2432 ## confdefs.h. ##
2433 ## ----------- ##"
2434 echo
2435 cat confdefs.h
2436 echo
2437 fi
2438 test "$ac_signal" != 0 &&
2439 $as_echo "$as_me: caught signal $ac_signal"
2440 $as_echo "$as_me: exit $exit_status"
2441 } >&5
2442 rm -f core *.core core.conftest.* &&
2443 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2444 exit $exit_status
2445 ' 0
2446 for ac_signal in 1 2 13 15; do
2447 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2448 done
2449 ac_signal=0
2450
2451 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2452 rm -f -r conftest* confdefs.h
2453
2454 $as_echo "/* confdefs.h */" > confdefs.h
2455
2456 # Predefined preprocessor variables.
2457
2458 cat >>confdefs.h <<_ACEOF
2459 #define PACKAGE_NAME "$PACKAGE_NAME"
2460 _ACEOF
2461
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2464 _ACEOF
2465
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2468 _ACEOF
2469
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_STRING "$PACKAGE_STRING"
2472 _ACEOF
2473
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2476 _ACEOF
2477
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_URL "$PACKAGE_URL"
2480 _ACEOF
2481
2482
2483 # Let the site file select an alternate cache file if it wants to.
2484 # Prefer an explicitly selected file to automatically selected ones.
2485 ac_site_file1=NONE
2486 ac_site_file2=NONE
2487 if test -n "$CONFIG_SITE"; then
2488 # We do not want a PATH search for config.site.
2489 case $CONFIG_SITE in #((
2490 -*) ac_site_file1=./$CONFIG_SITE;;
2491 */*) ac_site_file1=$CONFIG_SITE;;
2492 *) ac_site_file1=./$CONFIG_SITE;;
2493 esac
2494 elif test "x$prefix" != xNONE; then
2495 ac_site_file1=$prefix/share/config.site
2496 ac_site_file2=$prefix/etc/config.site
2497 else
2498 ac_site_file1=$ac_default_prefix/share/config.site
2499 ac_site_file2=$ac_default_prefix/etc/config.site
2500 fi
2501 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 do
2503 test "x$ac_site_file" = xNONE && continue
2504 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2505 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2506 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2507 sed 's/^/| /' "$ac_site_file" >&5
2508 . "$ac_site_file" \
2509 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2510 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2511 as_fn_error $? "failed to load site script $ac_site_file
2512 See \`config.log' for more details" "$LINENO" 5; }
2513 fi
2514 done
2515
2516 if test -r "$cache_file"; then
2517 # Some versions of bash will fail to source /dev/null (special files
2518 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2519 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2520 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2521 $as_echo "$as_me: loading cache $cache_file" >&6;}
2522 case $cache_file in
2523 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2524 *) . "./$cache_file";;
2525 esac
2526 fi
2527 else
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2529 $as_echo "$as_me: creating cache $cache_file" >&6;}
2530 >$cache_file
2531 fi
2532
2533 # Check that the precious variables saved in the cache have kept the same
2534 # value.
2535 ac_cache_corrupted=false
2536 for ac_var in $ac_precious_vars; do
2537 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2538 eval ac_new_set=\$ac_env_${ac_var}_set
2539 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2540 eval ac_new_val=\$ac_env_${ac_var}_value
2541 case $ac_old_set,$ac_new_set in
2542 set,)
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2544 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2545 ac_cache_corrupted=: ;;
2546 ,set)
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2548 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2549 ac_cache_corrupted=: ;;
2550 ,);;
2551 *)
2552 if test "x$ac_old_val" != "x$ac_new_val"; then
2553 # differences in whitespace do not lead to failure.
2554 ac_old_val_w=`echo x $ac_old_val`
2555 ac_new_val_w=`echo x $ac_new_val`
2556 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2557 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2558 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2559 ac_cache_corrupted=:
2560 else
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2562 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2563 eval $ac_var=\$ac_old_val
2564 fi
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2566 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2568 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2569 fi;;
2570 esac
2571 # Pass precious variables to config.status.
2572 if test "$ac_new_set" = set; then
2573 case $ac_new_val in
2574 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2575 *) ac_arg=$ac_var=$ac_new_val ;;
2576 esac
2577 case " $ac_configure_args " in
2578 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2579 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2580 esac
2581 fi
2582 done
2583 if $ac_cache_corrupted; then
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2587 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2588 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 fi
2590 ## -------------------- ##
2591 ## Main body of script. ##
2592 ## -------------------- ##
2593
2594 ac_ext=c
2595 ac_cpp='$CPP $CPPFLAGS'
2596 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2597 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2598 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599
2600
2601
2602 ac_aux_dir=
2603 for ac_dir in autotools "$srcdir"/autotools; do
2604 if test -f "$ac_dir/install-sh"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/install-sh -c"
2607 break
2608 elif test -f "$ac_dir/install.sh"; then
2609 ac_aux_dir=$ac_dir
2610 ac_install_sh="$ac_aux_dir/install.sh -c"
2611 break
2612 elif test -f "$ac_dir/shtool"; then
2613 ac_aux_dir=$ac_dir
2614 ac_install_sh="$ac_aux_dir/shtool install -c"
2615 break
2616 fi
2617 done
2618 if test -z "$ac_aux_dir"; then
2619 as_fn_error $? "cannot find install-sh, install.sh, or shtool in autotools \"$srcdir\"/autotools" "$LINENO" 5
2620 fi
2621
2622 # These three variables are undocumented and unsupported,
2623 # and are intended to be withdrawn in a future Autoconf release.
2624 # They can cause serious problems if a builder's source tree is in a directory
2625 # whose full name contains unusual characters.
2626 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2627 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2628 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2629
2630
2631
2632
2633 am__api_version="1.9"
2634 # Find a good install program. We prefer a C program (faster),
2635 # so one script is as good as another. But avoid the broken or
2636 # incompatible versions:
2637 # SysV /etc/install, /usr/sbin/install
2638 # SunOS /usr/etc/install
2639 # IRIX /sbin/install
2640 # AIX /bin/install
2641 # AmigaOS /C/install, which installs bootblocks on floppy discs
2642 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2643 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2644 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2645 # OS/2's system install, which has a completely different semantic
2646 # ./install, which can be erroneously created by make from ./install.sh.
2647 # Reject install programs that cannot install multiple files.
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2649 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2650 if test -z "$INSTALL"; then
2651 if ${ac_cv_path_install+:} false; then :
2652 $as_echo_n "(cached) " >&6
2653 else
2654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2655 for as_dir in $PATH
2656 do
2657 IFS=$as_save_IFS
2658 test -z "$as_dir" && as_dir=.
2659 # Account for people who put trailing slashes in PATH elements.
2660 case $as_dir/ in #((
2661 ./ | .// | /[cC]/* | \
2662 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2663 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2664 /usr/ucb/* ) ;;
2665 *)
2666 # OSF1 and SCO ODT 3.0 have their own names for install.
2667 # Don't use installbsd from OSF since it installs stuff as root
2668 # by default.
2669 for ac_prog in ginstall scoinst install; do
2670 for ac_exec_ext in '' $ac_executable_extensions; do
2671 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2672 if test $ac_prog = install &&
2673 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2674 # AIX install. It has an incompatible calling convention.
2675 :
2676 elif test $ac_prog = install &&
2677 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2678 # program-specific install script used by HP pwplus--don't use.
2679 :
2680 else
2681 rm -rf conftest.one conftest.two conftest.dir
2682 echo one > conftest.one
2683 echo two > conftest.two
2684 mkdir conftest.dir
2685 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2686 test -s conftest.one && test -s conftest.two &&
2687 test -s conftest.dir/conftest.one &&
2688 test -s conftest.dir/conftest.two
2689 then
2690 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2691 break 3
2692 fi
2693 fi
2694 fi
2695 done
2696 done
2697 ;;
2698 esac
2699
2700 done
2701 IFS=$as_save_IFS
2702
2703 rm -rf conftest.one conftest.two conftest.dir
2704
2705 fi
2706 if test "${ac_cv_path_install+set}" = set; then
2707 INSTALL=$ac_cv_path_install
2708 else
2709 # As a last resort, use the slow shell script. Don't cache a
2710 # value for INSTALL within a source directory, because that will
2711 # break other packages using the cache if that directory is
2712 # removed, or if the value is a relative name.
2713 INSTALL=$ac_install_sh
2714 fi
2715 fi
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2717 $as_echo "$INSTALL" >&6; }
2718
2719 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2720 # It thinks the first close brace ends the variable substitution.
2721 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2722
2723 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2724
2725 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2726
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2728 $as_echo_n "checking whether build environment is sane... " >&6; }
2729 # Just in case
2730 sleep 1
2731 echo timestamp > conftest.file
2732 # Do `set' in a subshell so we don't clobber the current shell's
2733 # arguments. Must try -L first in case configure is actually a
2734 # symlink; some systems play weird games with the mod time of symlinks
2735 # (eg FreeBSD returns the mod time of the symlink's containing
2736 # directory).
2737 if (
2738 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2739 if test "$*" = "X"; then
2740 # -L didn't work.
2741 set X `ls -t $srcdir/configure conftest.file`
2742 fi
2743 rm -f conftest.file
2744 if test "$*" != "X $srcdir/configure conftest.file" \
2745 && test "$*" != "X conftest.file $srcdir/configure"; then
2746
2747 # If neither matched, then we have a broken ls. This can happen
2748 # if, for instance, CONFIG_SHELL is bash and it inherits a
2749 # broken ls alias from the environment. This has actually
2750 # happened. Such a system could not be considered "sane".
2751 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2752 alias in your environment" "$LINENO" 5
2753 fi
2754
2755 test "$2" = conftest.file
2756 )
2757 then
2758 # Ok.
2759 :
2760 else
2761 as_fn_error $? "newly created file is older than distributed files!
2762 Check your system clock" "$LINENO" 5
2763 fi
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2765 $as_echo "yes" >&6; }
2766 test "$program_prefix" != NONE &&
2767 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2768 # Use a double $ so make ignores it.
2769 test "$program_suffix" != NONE &&
2770 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2771 # Double any \ or $.
2772 # By default was `s,x,x', remove it if useless.
2773 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2774 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2775
2776 # expand $ac_aux_dir to an absolute path
2777 am_aux_dir=`cd $ac_aux_dir && pwd`
2778
2779 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2780 # Use eval to expand $SHELL
2781 if eval "$MISSING --run true"; then
2782 am_missing_run="$MISSING --run "
2783 else
2784 am_missing_run=
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2786 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2787 fi
2788
2789 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
2790 # We used to keeping the `.' as first argument, in order to
2791 # allow $(mkdir_p) to be used without argument. As in
2792 # $(mkdir_p) $(somedir)
2793 # where $(somedir) is conditionally defined. However this is wrong
2794 # for two reasons:
2795 # 1. if the package is installed by a user who cannot write `.'
2796 # make install will fail,
2797 # 2. the above comment should most certainly read
2798 # $(mkdir_p) $(DESTDIR)$(somedir)
2799 # so it does not work when $(somedir) is undefined and
2800 # $(DESTDIR) is not.
2801 # To support the latter case, we have to write
2802 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2803 # so the `.' trick is pointless.
2804 mkdir_p='mkdir -p --'
2805 else
2806 # On NextStep and OpenStep, the `mkdir' command does not
2807 # recognize any option. It will interpret all options as
2808 # directories to create, and then abort because `.' already
2809 # exists.
2810 for d in ./-p ./--version;
2811 do
2812 test -d $d && rmdir $d
2813 done
2814 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2815 if test -f "$ac_aux_dir/mkinstalldirs"; then
2816 mkdir_p='$(mkinstalldirs)'
2817 else
2818 mkdir_p='$(install_sh) -d'
2819 fi
2820 fi
2821
2822 for ac_prog in gawk mawk nawk awk
2823 do
2824 # Extract the first word of "$ac_prog", so it can be a program name with args.
2825 set dummy $ac_prog; ac_word=$2
2826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2827 $as_echo_n "checking for $ac_word... " >&6; }
2828 if ${ac_cv_prog_AWK+:} false; then :
2829 $as_echo_n "(cached) " >&6
2830 else
2831 if test -n "$AWK"; then
2832 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2833 else
2834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835 for as_dir in $PATH
2836 do
2837 IFS=$as_save_IFS
2838 test -z "$as_dir" && as_dir=.
2839 for ac_exec_ext in '' $ac_executable_extensions; do
2840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2841 ac_cv_prog_AWK="$ac_prog"
2842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2843 break 2
2844 fi
2845 done
2846 done
2847 IFS=$as_save_IFS
2848
2849 fi
2850 fi
2851 AWK=$ac_cv_prog_AWK
2852 if test -n "$AWK"; then
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2854 $as_echo "$AWK" >&6; }
2855 else
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2857 $as_echo "no" >&6; }
2858 fi
2859
2860
2861 test -n "$AWK" && break
2862 done
2863
2864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2865 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2866 set x ${MAKE-make}
2867 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2868 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2869 $as_echo_n "(cached) " >&6
2870 else
2871 cat >conftest.make <<\_ACEOF
2872 SHELL = /bin/sh
2873 all:
2874 @echo '@@@%%%=$(MAKE)=@@@%%%'
2875 _ACEOF
2876 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2877 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2878 *@@@%%%=?*=@@@%%%*)
2879 eval ac_cv_prog_make_${ac_make}_set=yes;;
2880 *)
2881 eval ac_cv_prog_make_${ac_make}_set=no;;
2882 esac
2883 rm -f conftest.make
2884 fi
2885 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2887 $as_echo "yes" >&6; }
2888 SET_MAKE=
2889 else
2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2891 $as_echo "no" >&6; }
2892 SET_MAKE="MAKE=${MAKE-make}"
2893 fi
2894
2895 rm -rf .tst 2>/dev/null
2896 mkdir .tst 2>/dev/null
2897 if test -d .tst; then
2898 am__leading_dot=.
2899 else
2900 am__leading_dot=_
2901 fi
2902 rmdir .tst 2>/dev/null
2903
2904 # test to see if srcdir already configured
2905 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2906 test -f $srcdir/config.status; then
2907 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2908 fi
2909
2910 # test whether we have cygpath
2911 if test -z "$CYGPATH_W"; then
2912 if (cygpath --version) >/dev/null 2>/dev/null; then
2913 CYGPATH_W='cygpath -w'
2914 else
2915 CYGPATH_W=echo
2916 fi
2917 fi
2918
2919
2920 # Define the identity of the package.
2921 PACKAGE=$SB_NAME
2922 VERSION=$VERSION
2923
2924
2925 cat >>confdefs.h <<_ACEOF
2926 #define PACKAGE "$PACKAGE"
2927 _ACEOF
2928
2929
2930 cat >>confdefs.h <<_ACEOF
2931 #define VERSION "$VERSION"
2932 _ACEOF
2933
2934 # Some tools Automake needs.
2935
2936 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2937
2938
2939 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2940
2941
2942 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2943
2944
2945 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2946
2947
2948 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2949
2950 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2951
2952 # Installed binaries are usually stripped using `strip' when the user
2953 # run `make install-strip'. However `strip' might not be the right
2954 # tool to use in cross-compilation environments, therefore Automake
2955 # will honor the `STRIP' environment variable to overrule this program.
2956 if test "$cross_compiling" != no; then
2957 if test -n "$ac_tool_prefix"; then
2958 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2959 set dummy ${ac_tool_prefix}strip; ac_word=$2
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2961 $as_echo_n "checking for $ac_word... " >&6; }
2962 if ${ac_cv_prog_STRIP+:} false; then :
2963 $as_echo_n "(cached) " >&6
2964 else
2965 if test -n "$STRIP"; then
2966 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2967 else
2968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2969 for as_dir in $PATH
2970 do
2971 IFS=$as_save_IFS
2972 test -z "$as_dir" && as_dir=.
2973 for ac_exec_ext in '' $ac_executable_extensions; do
2974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2975 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2977 break 2
2978 fi
2979 done
2980 done
2981 IFS=$as_save_IFS
2982
2983 fi
2984 fi
2985 STRIP=$ac_cv_prog_STRIP
2986 if test -n "$STRIP"; then
2987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2988 $as_echo "$STRIP" >&6; }
2989 else
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2991 $as_echo "no" >&6; }
2992 fi
2993
2994
2995 fi
2996 if test -z "$ac_cv_prog_STRIP"; then
2997 ac_ct_STRIP=$STRIP
2998 # Extract the first word of "strip", so it can be a program name with args.
2999 set dummy strip; ac_word=$2
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3001 $as_echo_n "checking for $ac_word... " >&6; }
3002 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3003 $as_echo_n "(cached) " >&6
3004 else
3005 if test -n "$ac_ct_STRIP"; then
3006 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3007 else
3008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3009 for as_dir in $PATH
3010 do
3011 IFS=$as_save_IFS
3012 test -z "$as_dir" && as_dir=.
3013 for ac_exec_ext in '' $ac_executable_extensions; do
3014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3015 ac_cv_prog_ac_ct_STRIP="strip"
3016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3017 break 2
3018 fi
3019 done
3020 done
3021 IFS=$as_save_IFS
3022
3023 fi
3024 fi
3025 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3026 if test -n "$ac_ct_STRIP"; then
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3028 $as_echo "$ac_ct_STRIP" >&6; }
3029 else
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3031 $as_echo "no" >&6; }
3032 fi
3033
3034 if test "x$ac_ct_STRIP" = x; then
3035 STRIP=":"
3036 else
3037 case $cross_compiling:$ac_tool_warned in
3038 yes:)
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3041 ac_tool_warned=yes ;;
3042 esac
3043 STRIP=$ac_ct_STRIP
3044 fi
3045 else
3046 STRIP="$ac_cv_prog_STRIP"
3047 fi
3048
3049 fi
3050 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3051
3052 # We need awk for the "check" target. The system "awk" is bad on
3053 # some platforms.
3054 # Always define AMTAR for backward compatibility.
3055
3056 AMTAR=${AMTAR-"${am_missing_run}tar"}
3057
3058 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3059
3060
3061
3062
3063
3064 ac_config_headers="$ac_config_headers sb-config.h"
3065
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3067 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3068 # Check whether --enable-maintainer-mode was given.
3069 if test "${enable_maintainer_mode+set}" = set; then :
3070 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3071 else
3072 USE_MAINTAINER_MODE=no
3073 fi
3074
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3076 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3077
3078
3079 if test $USE_MAINTAINER_MODE = yes; then
3080 MAINTAINER_MODE_TRUE=
3081 MAINTAINER_MODE_FALSE='#'
3082 else
3083 MAINTAINER_MODE_TRUE='#'
3084 MAINTAINER_MODE_FALSE=
3085 fi
3086
3087 MAINT=$MAINTAINER_MODE_TRUE
3088
3089
3090 # Make sure we can run config.sub.
3091 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3092 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3093
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3095 $as_echo_n "checking build system type... " >&6; }
3096 if ${ac_cv_build+:} false; then :
3097 $as_echo_n "(cached) " >&6
3098 else
3099 ac_build_alias=$build_alias
3100 test "x$ac_build_alias" = x &&
3101 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3102 test "x$ac_build_alias" = x &&
3103 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3104 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3105 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3106
3107 fi
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3109 $as_echo "$ac_cv_build" >&6; }
3110 case $ac_cv_build in
3111 *-*-*) ;;
3112 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3113 esac
3114 build=$ac_cv_build
3115 ac_save_IFS=$IFS; IFS='-'
3116 set x $ac_cv_build
3117 shift
3118 build_cpu=$1
3119 build_vendor=$2
3120 shift; shift
3121 # Remember, the first character of IFS is used to create $*,
3122 # except with old shells:
3123 build_os=$*
3124 IFS=$ac_save_IFS
3125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3126
3127
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3129 $as_echo_n "checking host system type... " >&6; }
3130 if ${ac_cv_host+:} false; then :
3131 $as_echo_n "(cached) " >&6
3132 else
3133 if test "x$host_alias" = x; then
3134 ac_cv_host=$ac_cv_build
3135 else
3136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3137 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3138 fi
3139
3140 fi
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3142 $as_echo "$ac_cv_host" >&6; }
3143 case $ac_cv_host in
3144 *-*-*) ;;
3145 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3146 esac
3147 host=$ac_cv_host
3148 ac_save_IFS=$IFS; IFS='-'
3149 set x $ac_cv_host
3150 shift
3151 host_cpu=$1
3152 host_vendor=$2
3153 shift; shift
3154 # Remember, the first character of IFS is used to create $*,
3155 # except with old shells:
3156 host_os=$*
3157 IFS=$ac_save_IFS
3158 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3159
3160
3161
3162 VERSION=`head -n 1 VERSION`
3163 if test "x$VERSION" = "xsvn"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking svn checkout revision" >&5
3165 $as_echo_n "checking svn checkout revision... " >&6; }
3166
3167 if test -d ".svn"
3168 then
3169 revision=`svnversion .`
3170 test -z "$revision" && revision="unknown"
3171 SVN_REVISION="$revision"
3172 fi
3173
3174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVN_REVISION" >&5
3175 $as_echo "$SVN_REVISION" >&6; }
3176 VERSION="$VERSION-r$SVN_REVISION"
3177 fi
3178
3179 cat >>confdefs.h <<_ACEOF
3180 #define GW_NAME "OpenSMPPBox"
3181 _ACEOF
3182
3183
3184 cat >>confdefs.h <<_ACEOF
3185 #define GW_VERSION "$VERSION"
3186 _ACEOF
3187
3188
3189 cat >>confdefs.h <<_ACEOF
3190 #define VERSION "$VERSION"
3191 _ACEOF
3192
3193
3194
3195
3196 nl='
3197 '
3198 echo "${nl}${T_MD}Configuring for opensmppbox version $VERSION ...${T_ME}"
3199
3200
3201 # Check whether --enable-shared was given.
3202 if test "${enable_shared+set}" = set; then :
3203 enableval=$enable_shared; p=${PACKAGE-default}
3204 case $enableval in
3205 yes) enable_shared=yes ;;
3206 no) enable_shared=no ;;
3207 *)
3208 enable_shared=no
3209 # Look at the argument we got. We use all the common list separators.
3210 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3211 for pkg in $enableval; do
3212 IFS="$lt_save_ifs"
3213 if test "X$pkg" = "X$p"; then
3214 enable_shared=yes
3215 fi
3216 done
3217 IFS="$lt_save_ifs"
3218 ;;
3219 esac
3220 else
3221 enable_shared=yes
3222 fi
3223
3224
3225 # Check whether --enable-static was given.
3226 if test "${enable_static+set}" = set; then :
3227 enableval=$enable_static; p=${PACKAGE-default}
3228 case $enableval in
3229 yes) enable_static=yes ;;
3230 no) enable_static=no ;;
3231 *)
3232 enable_static=no
3233 # Look at the argument we got. We use all the common list separators.
3234 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3235 for pkg in $enableval; do
3236 IFS="$lt_save_ifs"
3237 if test "X$pkg" = "X$p"; then
3238 enable_static=yes
3239 fi
3240 done
3241 IFS="$lt_save_ifs"
3242 ;;
3243 esac
3244 else
3245 enable_static=yes
3246 fi
3247
3248
3249 # Check whether --enable-fast-install was given.
3250 if test "${enable_fast_install+set}" = set; then :
3251 enableval=$enable_fast_install; p=${PACKAGE-default}
3252 case $enableval in
3253 yes) enable_fast_install=yes ;;
3254 no) enable_fast_install=no ;;
3255 *)
3256 enable_fast_install=no
3257 # Look at the argument we got. We use all the common list separators.
3258 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3259 for pkg in $enableval; do
3260 IFS="$lt_save_ifs"
3261 if test "X$pkg" = "X$p"; then
3262 enable_fast_install=yes
3263 fi
3264 done
3265 IFS="$lt_save_ifs"
3266 ;;
3267 esac
3268 else
3269 enable_fast_install=yes
3270 fi
3271
3272
3273 DEPDIR="${am__leading_dot}deps"
3274
3275 ac_config_commands="$ac_config_commands depfiles"
3276
3277
3278 am_make=${MAKE-make}
3279 cat > confinc << 'END'
3280 am__doit:
3281 @echo done
3282 .PHONY: am__doit
3283 END
3284 # If we don't find an include directive, just comment out the code.
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3286 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3287 am__include="#"
3288 am__quote=
3289 _am_result=none
3290 # First try GNU make style include.
3291 echo "include confinc" > confmf
3292 # We grep out `Entering directory' and `Leaving directory'
3293 # messages which can occur if `w' ends up in MAKEFLAGS.
3294 # In particular we don't look at `^make:' because GNU make might
3295 # be invoked under some other name (usually "gmake"), in which
3296 # case it prints its new name instead of `make'.
3297 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3298 am__include=include
3299 am__quote=
3300 _am_result=GNU
3301 fi
3302 # Now try BSD make style include.
3303 if test "$am__include" = "#"; then
3304 echo '.include "confinc"' > confmf
3305 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3306 am__include=.include
3307 am__quote="\""
3308 _am_result=BSD
3309 fi
3310 fi
3311
3312
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3314 $as_echo "$_am_result" >&6; }
3315 rm -f confinc confmf
3316
3317 # Check whether --enable-dependency-tracking was given.
3318 if test "${enable_dependency_tracking+set}" = set; then :
3319 enableval=$enable_dependency_tracking;
3320 fi
3321
3322 if test "x$enable_dependency_tracking" != xno; then
3323 am_depcomp="$ac_aux_dir/depcomp"
3324 AMDEPBACKSLASH='\'
3325 fi
3326
3327
3328 if test "x$enable_dependency_tracking" != xno; then
3329 AMDEP_TRUE=
3330 AMDEP_FALSE='#'
3331 else
3332 AMDEP_TRUE='#'
3333 AMDEP_FALSE=
3334 fi
3335
3336
3337
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3343 if test -n "$ac_tool_prefix"; then
3344 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3345 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3347 $as_echo_n "checking for $ac_word... " >&6; }
3348 if ${ac_cv_prog_CC+:} false; then :
3349 $as_echo_n "(cached) " >&6
3350 else
3351 if test -n "$CC"; then
3352 ac_cv_prog_CC="$CC" # Let the user override the test.
3353 else
3354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3355 for as_dir in $PATH
3356 do
3357 IFS=$as_save_IFS
3358 test -z "$as_dir" && as_dir=.
3359 for ac_exec_ext in '' $ac_executable_extensions; do
3360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3361 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3363 break 2
3364 fi
3365 done
3366 done
3367 IFS=$as_save_IFS
3368
3369 fi
3370 fi
3371 CC=$ac_cv_prog_CC
3372 if test -n "$CC"; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3374 $as_echo "$CC" >&6; }
3375 else
3376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3377 $as_echo "no" >&6; }
3378 fi
3379
3380
3381 fi
3382 if test -z "$ac_cv_prog_CC"; then
3383 ac_ct_CC=$CC
3384 # Extract the first word of "gcc", so it can be a program name with args.
3385 set dummy gcc; ac_word=$2
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3387 $as_echo_n "checking for $ac_word... " >&6; }
3388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3389 $as_echo_n "(cached) " >&6
3390 else
3391 if test -n "$ac_ct_CC"; then
3392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3401 ac_cv_prog_ac_ct_CC="gcc"
3402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3412 if test -n "$ac_ct_CC"; then
3413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3414 $as_echo "$ac_ct_CC" >&6; }
3415 else
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 fi
3419
3420 if test "x$ac_ct_CC" = x; then
3421 CC=""
3422 else
3423 case $cross_compiling:$ac_tool_warned in
3424 yes:)
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3426 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3427 ac_tool_warned=yes ;;
3428 esac
3429 CC=$ac_ct_CC
3430 fi
3431 else
3432 CC="$ac_cv_prog_CC"
3433 fi
3434
3435 if test -z "$CC"; then
3436 if test -n "$ac_tool_prefix"; then
3437 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3438 set dummy ${ac_tool_prefix}cc; ac_word=$2
3439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3440 $as_echo_n "checking for $ac_word... " >&6; }
3441 if ${ac_cv_prog_CC+:} false; then :
3442 $as_echo_n "(cached) " >&6
3443 else
3444 if test -n "$CC"; then
3445 ac_cv_prog_CC="$CC" # Let the user override the test.
3446 else
3447 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3448 for as_dir in $PATH
3449 do
3450 IFS=$as_save_IFS
3451 test -z "$as_dir" && as_dir=.
3452 for ac_exec_ext in '' $ac_executable_extensions; do
3453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3454 ac_cv_prog_CC="${ac_tool_prefix}cc"
3455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3456 break 2
3457 fi
3458 done
3459 done
3460 IFS=$as_save_IFS
3461
3462 fi
3463 fi
3464 CC=$ac_cv_prog_CC
3465 if test -n "$CC"; then
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3467 $as_echo "$CC" >&6; }
3468 else
3469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3470 $as_echo "no" >&6; }
3471 fi
3472
3473
3474 fi
3475 fi
3476 if test -z "$CC"; then
3477 # Extract the first word of "cc", so it can be a program name with args.
3478 set dummy cc; ac_word=$2
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3480 $as_echo_n "checking for $ac_word... " >&6; }
3481 if ${ac_cv_prog_CC+:} false; then :
3482 $as_echo_n "(cached) " >&6
3483 else
3484 if test -n "$CC"; then
3485 ac_cv_prog_CC="$CC" # Let the user override the test.
3486 else
3487 ac_prog_rejected=no
3488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3489 for as_dir in $PATH
3490 do
3491 IFS=$as_save_IFS
3492 test -z "$as_dir" && as_dir=.
3493 for ac_exec_ext in '' $ac_executable_extensions; do
3494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3495 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3496 ac_prog_rejected=yes
3497 continue
3498 fi
3499 ac_cv_prog_CC="cc"
3500 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3501 break 2
3502 fi
3503 done
3504 done
3505 IFS=$as_save_IFS
3506
3507 if test $ac_prog_rejected = yes; then
3508 # We found a bogon in the path, so make sure we never use it.
3509 set dummy $ac_cv_prog_CC
3510 shift
3511 if test $# != 0; then
3512 # We chose a different compiler from the bogus one.
3513 # However, it has the same basename, so the bogon will be chosen
3514 # first if we set CC to just the basename; use the full file name.
3515 shift
3516 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3517 fi
3518 fi
3519 fi
3520 fi
3521 CC=$ac_cv_prog_CC
3522 if test -n "$CC"; then
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3524 $as_echo "$CC" >&6; }
3525 else
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3527 $as_echo "no" >&6; }
3528 fi
3529
3530
3531 fi
3532 if test -z "$CC"; then
3533 if test -n "$ac_tool_prefix"; then
3534 for ac_prog in cl.exe
3535 do
3536 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3537 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CC+:} false; then :
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -n "$CC"; then
3544 ac_cv_prog_CC="$CC" # Let the user override the test.
3545 else
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 for as_dir in $PATH
3548 do
3549 IFS=$as_save_IFS
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3555 break 2
3556 fi
3557 done
3558 done
3559 IFS=$as_save_IFS
3560
3561 fi
3562 fi
3563 CC=$ac_cv_prog_CC
3564 if test -n "$CC"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3566 $as_echo "$CC" >&6; }
3567 else
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3570 fi
3571
3572
3573 test -n "$CC" && break
3574 done
3575 fi
3576 if test -z "$CC"; then
3577 ac_ct_CC=$CC
3578 for ac_prog in cl.exe
3579 do
3580 # Extract the first word of "$ac_prog", so it can be a program name with args.
3581 set dummy $ac_prog; ac_word=$2
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3583 $as_echo_n "checking for $ac_word... " >&6; }
3584 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 if test -n "$ac_ct_CC"; then
3588 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3589 else
3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3591 for as_dir in $PATH
3592 do
3593 IFS=$as_save_IFS
3594 test -z "$as_dir" && as_dir=.
3595 for ac_exec_ext in '' $ac_executable_extensions; do
3596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3597 ac_cv_prog_ac_ct_CC="$ac_prog"
3598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3599 break 2
3600 fi
3601 done
3602 done
3603 IFS=$as_save_IFS
3604
3605 fi
3606 fi
3607 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3608 if test -n "$ac_ct_CC"; then
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3610 $as_echo "$ac_ct_CC" >&6; }
3611 else
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613 $as_echo "no" >&6; }
3614 fi
3615
3616
3617 test -n "$ac_ct_CC" && break
3618 done
3619
3620 if test "x$ac_ct_CC" = x; then
3621 CC=""
3622 else
3623 case $cross_compiling:$ac_tool_warned in
3624 yes:)
3625 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3626 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3627 ac_tool_warned=yes ;;
3628 esac
3629 CC=$ac_ct_CC
3630 fi
3631 fi
3632
3633 fi
3634
3635
3636 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3637 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3638 as_fn_error $? "no acceptable C compiler found in \$PATH
3639 See \`config.log' for more details" "$LINENO" 5; }
3640
3641 # Provide some information about the compiler.
3642 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3643 set X $ac_compile
3644 ac_compiler=$2
3645 for ac_option in --version -v -V -qversion; do
3646 { { ac_try="$ac_compiler $ac_option >&5"
3647 case "(($ac_try" in
3648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3649 *) ac_try_echo=$ac_try;;
3650 esac
3651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3652 $as_echo "$ac_try_echo"; } >&5
3653 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3654 ac_status=$?
3655 if test -s conftest.err; then
3656 sed '10a\
3657 ... rest of stderr output deleted ...
3658 10q' conftest.err >conftest.er1
3659 cat conftest.er1 >&5
3660 fi
3661 rm -f conftest.er1 conftest.err
3662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3663 test $ac_status = 0; }
3664 done
3665
3666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3667 /* end confdefs.h. */
3668
3669 int
3670 main ()
3671 {
3672
3673 ;
3674 return 0;
3675 }
3676 _ACEOF
3677 ac_clean_files_save=$ac_clean_files
3678 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3679 # Try to create an executable without -o first, disregard a.out.
3680 # It will help us diagnose broken compilers, and finding out an intuition
3681 # of exeext.
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3683 $as_echo_n "checking whether the C compiler works... " >&6; }
3684 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3685
3686 # The possible output files:
3687 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3688
3689 ac_rmfiles=
3690 for ac_file in $ac_files
3691 do
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3694 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3695 esac
3696 done
3697 rm -f $ac_rmfiles
3698
3699 if { { ac_try="$ac_link_default"
3700 case "(($ac_try" in
3701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3702 *) ac_try_echo=$ac_try;;
3703 esac
3704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3705 $as_echo "$ac_try_echo"; } >&5
3706 (eval "$ac_link_default") 2>&5
3707 ac_status=$?
3708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3709 test $ac_status = 0; }; then :
3710 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3711 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3712 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3713 # so that the user can short-circuit this test for compilers unknown to
3714 # Autoconf.
3715 for ac_file in $ac_files ''
3716 do
3717 test -f "$ac_file" || continue
3718 case $ac_file in
3719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3720 ;;
3721 [ab].out )
3722 # We found the default executable, but exeext='' is most
3723 # certainly right.
3724 break;;
3725 *.* )
3726 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3727 then :; else
3728 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3729 fi
3730 # We set ac_cv_exeext here because the later test for it is not
3731 # safe: cross compilers may not add the suffix if given an `-o'
3732 # argument, so we may need to know it at that point already.
3733 # Even if this section looks crufty: it has the advantage of
3734 # actually working.
3735 break;;
3736 * )
3737 break;;
3738 esac
3739 done
3740 test "$ac_cv_exeext" = no && ac_cv_exeext=
3741
3742 else
3743 ac_file=''
3744 fi
3745 if test -z "$ac_file"; then :
3746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3747 $as_echo "no" >&6; }
3748 $as_echo "$as_me: failed program was:" >&5
3749 sed 's/^/| /' conftest.$ac_ext >&5
3750
3751 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3752 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3753 as_fn_error 77 "C compiler cannot create executables
3754 See \`config.log' for more details" "$LINENO" 5; }
3755 else
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3757 $as_echo "yes" >&6; }
3758 fi
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3760 $as_echo_n "checking for C compiler default output file name... " >&6; }
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3762 $as_echo "$ac_file" >&6; }
3763 ac_exeext=$ac_cv_exeext
3764
3765 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3766 ac_clean_files=$ac_clean_files_save
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3768 $as_echo_n "checking for suffix of executables... " >&6; }
3769 if { { ac_try="$ac_link"
3770 case "(($ac_try" in
3771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3772 *) ac_try_echo=$ac_try;;
3773 esac
3774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3775 $as_echo "$ac_try_echo"; } >&5
3776 (eval "$ac_link") 2>&5
3777 ac_status=$?
3778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3779 test $ac_status = 0; }; then :
3780 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3781 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3782 # work properly (i.e., refer to `conftest.exe'), while it won't with
3783 # `rm'.
3784 for ac_file in conftest.exe conftest conftest.*; do
3785 test -f "$ac_file" || continue
3786 case $ac_file in
3787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3788 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3789 break;;
3790 * ) break;;
3791 esac
3792 done
3793 else
3794 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3795 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3796 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3797 See \`config.log' for more details" "$LINENO" 5; }
3798 fi
3799 rm -f conftest conftest$ac_cv_exeext
3800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3801 $as_echo "$ac_cv_exeext" >&6; }
3802
3803 rm -f conftest.$ac_ext
3804 EXEEXT=$ac_cv_exeext
3805 ac_exeext=$EXEEXT
3806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3807 /* end confdefs.h. */
3808 #include <stdio.h>
3809 int
3810 main ()
3811 {
3812 FILE *f = fopen ("conftest.out", "w");
3813 return ferror (f) || fclose (f) != 0;
3814
3815 ;
3816 return 0;
3817 }
3818 _ACEOF
3819 ac_clean_files="$ac_clean_files conftest.out"
3820 # Check that the compiler produces executables we can run. If not, either
3821 # the compiler is broken, or we cross compile.
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3823 $as_echo_n "checking whether we are cross compiling... " >&6; }
3824 if test "$cross_compiling" != yes; then
3825 { { ac_try="$ac_link"
3826 case "(($ac_try" in
3827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3828 *) ac_try_echo=$ac_try;;
3829 esac
3830 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3831 $as_echo "$ac_try_echo"; } >&5
3832 (eval "$ac_link") 2>&5
3833 ac_status=$?
3834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3835 test $ac_status = 0; }
3836 if { ac_try='./conftest$ac_cv_exeext'
3837 { { case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840 esac
3841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842 $as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_try") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }; }; then
3847 cross_compiling=no
3848 else
3849 if test "$cross_compiling" = maybe; then
3850 cross_compiling=yes
3851 else
3852 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3853 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3854 as_fn_error $? "cannot run C compiled programs.
3855 If you meant to cross compile, use \`--host'.
3856 See \`config.log' for more details" "$LINENO" 5; }
3857 fi
3858 fi
3859 fi
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3861 $as_echo "$cross_compiling" >&6; }
3862
3863 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3864 ac_clean_files=$ac_clean_files_save
3865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3866 $as_echo_n "checking for suffix of object files... " >&6; }
3867 if ${ac_cv_objext+:} false; then :
3868 $as_echo_n "(cached) " >&6
3869 else
3870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3871 /* end confdefs.h. */
3872
3873 int
3874 main ()
3875 {
3876
3877 ;
3878 return 0;
3879 }
3880 _ACEOF
3881 rm -f conftest.o conftest.obj
3882 if { { ac_try="$ac_compile"
3883 case "(($ac_try" in
3884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3885 *) ac_try_echo=$ac_try;;
3886 esac
3887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3888 $as_echo "$ac_try_echo"; } >&5
3889 (eval "$ac_compile") 2>&5
3890 ac_status=$?
3891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3892 test $ac_status = 0; }; then :
3893 for ac_file in conftest.o conftest.obj conftest.*; do
3894 test -f "$ac_file" || continue;
3895 case $ac_file in
3896 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3897 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3898 break;;
3899 esac
3900 done
3901 else
3902 $as_echo "$as_me: failed program was:" >&5
3903 sed 's/^/| /' conftest.$ac_ext >&5
3904
3905 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3906 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3907 as_fn_error $? "cannot compute suffix of object files: cannot compile
3908 See \`config.log' for more details" "$LINENO" 5; }
3909 fi
3910 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3911 fi
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3913 $as_echo "$ac_cv_objext" >&6; }
3914 OBJEXT=$ac_cv_objext
3915 ac_objext=$OBJEXT
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3917 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3918 if ${ac_cv_c_compiler_gnu+:} false; then :
3919 $as_echo_n "(cached) " >&6
3920 else
3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3922 /* end confdefs.h. */
3923
3924 int
3925 main ()
3926 {
3927 #ifndef __GNUC__
3928 choke me
3929 #endif
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 if ac_fn_c_try_compile "$LINENO"; then :
3936 ac_compiler_gnu=yes
3937 else
3938 ac_compiler_gnu=no
3939 fi
3940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3941 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3942
3943 fi
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3945 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3946 if test $ac_compiler_gnu = yes; then
3947 GCC=yes
3948 else
3949 GCC=
3950 fi
3951 ac_test_CFLAGS=${CFLAGS+set}
3952 ac_save_CFLAGS=$CFLAGS
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3954 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3955 if ${ac_cv_prog_cc_g+:} false; then :
3956 $as_echo_n "(cached) " >&6
3957 else
3958 ac_save_c_werror_flag=$ac_c_werror_flag
3959 ac_c_werror_flag=yes
3960 ac_cv_prog_cc_g=no
3961 CFLAGS="-g"
3962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 if ac_fn_c_try_compile "$LINENO"; then :
3974 ac_cv_prog_cc_g=yes
3975 else
3976 CFLAGS=""
3977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3978 /* end confdefs.h. */
3979
3980 int
3981 main ()
3982 {
3983
3984 ;
3985 return 0;
3986 }
3987 _ACEOF
3988 if ac_fn_c_try_compile "$LINENO"; then :
3989
3990 else
3991 ac_c_werror_flag=$ac_save_c_werror_flag
3992 CFLAGS="-g"
3993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3994 /* end confdefs.h. */
3995
3996 int
3997 main ()
3998 {
3999
4000 ;
4001 return 0;
4002 }
4003 _ACEOF
4004 if ac_fn_c_try_compile "$LINENO"; then :
4005 ac_cv_prog_cc_g=yes
4006 fi
4007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4008 fi
4009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4010 fi
4011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4012 ac_c_werror_flag=$ac_save_c_werror_flag
4013 fi
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4015 $as_echo "$ac_cv_prog_cc_g" >&6; }
4016 if test "$ac_test_CFLAGS" = set; then
4017 CFLAGS=$ac_save_CFLAGS
4018 elif test $ac_cv_prog_cc_g = yes; then
4019 if test "$GCC" = yes; then
4020 CFLAGS="-g -O2"
4021 else
4022 CFLAGS="-g"
4023 fi
4024 else
4025 if test "$GCC" = yes; then
4026 CFLAGS="-O2"
4027 else
4028 CFLAGS=
4029 fi
4030 fi
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4032 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4033 if ${ac_cv_prog_cc_c89+:} false; then :
4034 $as_echo_n "(cached) " >&6
4035 else
4036 ac_cv_prog_cc_c89=no
4037 ac_save_CC=$CC
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 #include <stdarg.h>
4041 #include <stdio.h>
4042 struct stat;
4043 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4044 struct buf { int x; };
4045 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4046 static char *e (p, i)
4047 char **p;
4048 int i;
4049 {
4050 return p[i];
4051 }
4052 static char *f (char * (*g) (char **, int), char **p, ...)
4053 {
4054 char *s;
4055 va_list v;
4056 va_start (v,p);
4057 s = g (p, va_arg (v,int));
4058 va_end (v);
4059 return s;
4060 }
4061
4062 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4063 function prototypes and stuff, but not '\xHH' hex character constants.
4064 These don't provoke an error unfortunately, instead are silently treated
4065 as 'x'. The following induces an error, until -std is added to get
4066 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4067 array size at least. It's necessary to write '\x00'==0 to get something
4068 that's true only with -std. */
4069 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4070
4071 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4072 inside strings and character constants. */
4073 #define FOO(x) 'x'
4074 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4075
4076 int test (int i, double x);
4077 struct s1 {int (*f) (int a);};
4078 struct s2 {int (*f) (double a);};
4079 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 int argc;
4081 char **argv;
4082 int
4083 main ()
4084 {
4085 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4086 ;
4087 return 0;
4088 }
4089 _ACEOF
4090 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4091 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4092 do
4093 CC="$ac_save_CC $ac_arg"
4094 if ac_fn_c_try_compile "$LINENO"; then :
4095 ac_cv_prog_cc_c89=$ac_arg
4096 fi
4097 rm -f core conftest.err conftest.$ac_objext
4098 test "x$ac_cv_prog_cc_c89" != "xno" && break
4099 done
4100 rm -f conftest.$ac_ext
4101 CC=$ac_save_CC
4102
4103 fi
4104 # AC_CACHE_VAL
4105 case "x$ac_cv_prog_cc_c89" in
4106 x)
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4108 $as_echo "none needed" >&6; } ;;
4109 xno)
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4111 $as_echo "unsupported" >&6; } ;;
4112 *)
4113 CC="$CC $ac_cv_prog_cc_c89"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4115 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4116 esac
4117 if test "x$ac_cv_prog_cc_c89" != xno; then :
4118
4119 fi
4120
4121 ac_ext=c
4122 ac_cpp='$CPP $CPPFLAGS'
4123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4126
4127 depcc="$CC" am_compiler_list=
4128
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4130 $as_echo_n "checking dependency style of $depcc... " >&6; }
4131 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4132 $as_echo_n "(cached) " >&6
4133 else
4134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4135 # We make a subdir and do the tests there. Otherwise we can end up
4136 # making bogus files that we don't know about and never remove. For
4137 # instance it was reported that on HP-UX the gcc test will end up
4138 # making a dummy file named `D' -- because `-MD' means `put the output
4139 # in D'.
4140 mkdir conftest.dir
4141 # Copy depcomp to subdir because otherwise we won't find it if we're
4142 # using a relative directory.
4143 cp "$am_depcomp" conftest.dir
4144 cd conftest.dir
4145 # We will build objects and dependencies in a subdirectory because
4146 # it helps to detect inapplicable dependency modes. For instance
4147 # both Tru64's cc and ICC support -MD to output dependencies as a
4148 # side effect of compilation, but ICC will put the dependencies in
4149 # the current directory while Tru64 will put them in the object
4150 # directory.
4151 mkdir sub
4152
4153 am_cv_CC_dependencies_compiler_type=none
4154 if test "$am_compiler_list" = ""; then
4155 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156 fi
4157 for depmode in $am_compiler_list; do
4158 # Setup a source with many dependencies, because some compilers
4159 # like to wrap large dependency lists on column 80 (with \), and
4160 # we should not choose a depcomp mode which is confused by this.
4161 #
4162 # We need to recreate these files for each test, as the compiler may
4163 # overwrite some of them when testing with obscure command lines.
4164 # This happens at least with the AIX C compiler.
4165 : > sub/conftest.c
4166 for i in 1 2 3 4 5 6; do
4167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4168 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4169 # Solaris 8's {/usr,}/bin/sh.
4170 touch sub/conftst$i.h
4171 done
4172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4173
4174 case $depmode in
4175 nosideeffect)
4176 # after this tag, mechanisms are not by side-effect, so they'll
4177 # only be used when explicitly requested
4178 if test "x$enable_dependency_tracking" = xyes; then
4179 continue
4180 else
4181 break
4182 fi
4183 ;;
4184 none) break ;;
4185 esac
4186 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4187 # mode. It turns out that the SunPro C++ compiler does not properly
4188 # handle `-M -o', and we need to detect this.
4189 if depmode=$depmode \
4190 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
4191 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4192 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
4193 >/dev/null 2>conftest.err &&
4194 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4195 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
4196 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4197 # icc doesn't choke on unknown options, it will just issue warnings
4198 # or remarks (even with -Werror). So we grep stderr for any message
4199 # that says an option was ignored or not supported.
4200 # When given -MP, icc 7.0 and 7.1 complain thusly:
4201 # icc: Command line warning: ignoring option '-M'; no argument required
4202 # The diagnosis changed in icc 8.0:
4203 # icc: Command line remark: option '-MP' not supported
4204 if (grep 'ignoring option' conftest.err ||
4205 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4206 am_cv_CC_dependencies_compiler_type=$depmode
4207 break
4208 fi
4209 fi
4210 done
4211
4212 cd ..
4213 rm -rf conftest.dir
4214 else
4215 am_cv_CC_dependencies_compiler_type=none
4216 fi
4217
4218 fi
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4220 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4221 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4222
4223
4224
4225 if
4226 test "x$enable_dependency_tracking" != xno \
4227 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4228 am__fastdepCC_TRUE=
4229 am__fastdepCC_FALSE='#'
4230 else
4231 am__fastdepCC_TRUE='#'
4232 am__fastdepCC_FALSE=
4233 fi
4234
4235
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4237 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4238 if ${lt_cv_path_SED+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 # Loop through the user's path and test for sed and gsed.
4242 # Then use that list of sed's as ones to test for truncation.
4243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4244 for as_dir in $PATH
4245 do
4246 IFS=$as_save_IFS
4247 test -z "$as_dir" && as_dir=.
4248 for lt_ac_prog in sed gsed; do
4249 for ac_exec_ext in '' $ac_executable_extensions; do
4250 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4251 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4252 fi
4253 done
4254 done
4255 done
4256 IFS=$as_save_IFS
4257 lt_ac_max=0
4258 lt_ac_count=0
4259 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4260 # along with /bin/sed that truncates output.
4261 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4262 test ! -f $lt_ac_sed && continue
4263 cat /dev/null > conftest.in
4264 lt_ac_count=0
4265 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4266 # Check for GNU sed and select it if it is found.
4267 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4268 lt_cv_path_SED=$lt_ac_sed
4269 break
4270 fi
4271 while true; do
4272 cat conftest.in conftest.in >conftest.tmp
4273 mv conftest.tmp conftest.in
4274 cp conftest.in conftest.nl
4275 echo >>conftest.nl
4276 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4277 cmp -s conftest.out conftest.nl || break
4278 # 10000 chars as input seems more than enough
4279 test $lt_ac_count -gt 10 && break
4280 lt_ac_count=`expr $lt_ac_count + 1`
4281 if test $lt_ac_count -gt $lt_ac_max; then
4282 lt_ac_max=$lt_ac_count
4283 lt_cv_path_SED=$lt_ac_sed
4284 fi
4285 done
4286 done
4287
4288 fi
4289
4290 SED=$lt_cv_path_SED
4291
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4293 $as_echo "$SED" >&6; }
4294
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4296 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4297 if ${ac_cv_path_GREP+:} false; then :
4298 $as_echo_n "(cached) " >&6
4299 else
4300 if test -z "$GREP"; then
4301 ac_path_GREP_found=false
4302 # Loop through the user's path and test for each of PROGNAME-LIST
4303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4304 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4305 do
4306 IFS=$as_save_IFS
4307 test -z "$as_dir" && as_dir=.
4308 for ac_prog in grep ggrep; do
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4311 as_fn_executable_p "$ac_path_GREP" || continue
4312 # Check for GNU ac_path_GREP and select it if it is found.
4313 # Check for GNU $ac_path_GREP
4314 case `"$ac_path_GREP" --version 2>&1` in
4315 *GNU*)
4316 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4317 *)
4318 ac_count=0
4319 $as_echo_n 0123456789 >"conftest.in"
4320 while :
4321 do
4322 cat "conftest.in" "conftest.in" >"conftest.tmp"
4323 mv "conftest.tmp" "conftest.in"
4324 cp "conftest.in" "conftest.nl"
4325 $as_echo 'GREP' >> "conftest.nl"
4326 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4328 as_fn_arith $ac_count + 1 && ac_count=$as_val
4329 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4330 # Best one so far, save it but keep looking for a better one
4331 ac_cv_path_GREP="$ac_path_GREP"
4332 ac_path_GREP_max=$ac_count
4333 fi
4334 # 10*(2^10) chars as input seems more than enough
4335 test $ac_count -gt 10 && break
4336 done
4337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4338 esac
4339
4340 $ac_path_GREP_found && break 3
4341 done
4342 done
4343 done
4344 IFS=$as_save_IFS
4345 if test -z "$ac_cv_path_GREP"; then
4346 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4347 fi
4348 else
4349 ac_cv_path_GREP=$GREP
4350 fi
4351
4352 fi
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4354 $as_echo "$ac_cv_path_GREP" >&6; }
4355 GREP="$ac_cv_path_GREP"
4356
4357
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4359 $as_echo_n "checking for egrep... " >&6; }
4360 if ${ac_cv_path_EGREP+:} false; then :
4361 $as_echo_n "(cached) " >&6
4362 else
4363 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4364 then ac_cv_path_EGREP="$GREP -E"
4365 else
4366 if test -z "$EGREP"; then
4367 ac_path_EGREP_found=false
4368 # Loop through the user's path and test for each of PROGNAME-LIST
4369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4370 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4371 do
4372 IFS=$as_save_IFS
4373 test -z "$as_dir" && as_dir=.
4374 for ac_prog in egrep; do
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4377 as_fn_executable_p "$ac_path_EGREP" || continue
4378 # Check for GNU ac_path_EGREP and select it if it is found.
4379 # Check for GNU $ac_path_EGREP
4380 case `"$ac_path_EGREP" --version 2>&1` in
4381 *GNU*)
4382 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4383 *)
4384 ac_count=0
4385 $as_echo_n 0123456789 >"conftest.in"
4386 while :
4387 do
4388 cat "conftest.in" "conftest.in" >"conftest.tmp"
4389 mv "conftest.tmp" "conftest.in"
4390 cp "conftest.in" "conftest.nl"
4391 $as_echo 'EGREP' >> "conftest.nl"
4392 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4393 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4394 as_fn_arith $ac_count + 1 && ac_count=$as_val
4395 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4396 # Best one so far, save it but keep looking for a better one
4397 ac_cv_path_EGREP="$ac_path_EGREP"
4398 ac_path_EGREP_max=$ac_count
4399 fi
4400 # 10*(2^10) chars as input seems more than enough
4401 test $ac_count -gt 10 && break
4402 done
4403 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4404 esac
4405
4406 $ac_path_EGREP_found && break 3
4407 done
4408 done
4409 done
4410 IFS=$as_save_IFS
4411 if test -z "$ac_cv_path_EGREP"; then
4412 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4413 fi
4414 else
4415 ac_cv_path_EGREP=$EGREP
4416 fi
4417
4418 fi
4419 fi
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4421 $as_echo "$ac_cv_path_EGREP" >&6; }
4422 EGREP="$ac_cv_path_EGREP"
4423
4424
4425
4426 # Check whether --with-gnu-ld was given.
4427 if test "${with_gnu_ld+set}" = set; then :
4428 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4429 else
4430 with_gnu_ld=no
4431 fi
4432
4433 ac_prog=ld
4434 if test "$GCC" = yes; then
4435 # Check if gcc -print-prog-name=ld gives a path.
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4437 $as_echo_n "checking for ld used by $CC... " >&6; }
4438 case $host in
4439 *-*-mingw*)
4440 # gcc leaves a trailing carriage return which upsets mingw
4441 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4442 *)
4443 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4444 esac
4445 case $ac_prog in
4446 # Accept absolute paths.
4447 [\\/]* | ?:[\\/]*)
4448 re_direlt='/[^/][^/]*/\.\./'
4449 # Canonicalize the pathname of ld
4450 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4451 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4452 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4453 done
4454 test -z "$LD" && LD="$ac_prog"
4455 ;;
4456 "")
4457 # If it fails, then pretend we aren't using GCC.
4458 ac_prog=ld
4459 ;;
4460 *)
4461 # If it is relative, then search for the first ld in PATH.
4462 with_gnu_ld=unknown
4463 ;;
4464 esac
4465 elif test "$with_gnu_ld" = yes; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4467 $as_echo_n "checking for GNU ld... " >&6; }
4468 else
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4470 $as_echo_n "checking for non-GNU ld... " >&6; }
4471 fi
4472 if ${lt_cv_path_LD+:} false; then :
4473 $as_echo_n "(cached) " >&6
4474 else
4475 if test -z "$LD"; then
4476 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4477 for ac_dir in $PATH; do
4478 IFS="$lt_save_ifs"
4479 test -z "$ac_dir" && ac_dir=.
4480 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4481 lt_cv_path_LD="$ac_dir/$ac_prog"
4482 # Check to see if the program is GNU ld. I'd rather use --version,
4483 # but apparently some variants of GNU ld only accept -v.
4484 # Break only if it was the GNU/non-GNU ld that we prefer.
4485 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4486 *GNU* | *'with BFD'*)
4487 test "$with_gnu_ld" != no && break
4488 ;;
4489 *)
4490 test "$with_gnu_ld" != yes && break
4491 ;;
4492 esac
4493 fi
4494 done
4495 IFS="$lt_save_ifs"
4496 else
4497 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4498 fi
4499 fi
4500
4501 LD="$lt_cv_path_LD"
4502 if test -n "$LD"; then
4503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4504 $as_echo "$LD" >&6; }
4505 else
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4507 $as_echo "no" >&6; }
4508 fi
4509 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4511 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4512 if ${lt_cv_prog_gnu_ld+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4516 case `$LD -v 2>&1 </dev/null` in
4517 *GNU* | *'with BFD'*)
4518 lt_cv_prog_gnu_ld=yes
4519 ;;
4520 *)
4521 lt_cv_prog_gnu_ld=no
4522 ;;
4523 esac
4524 fi
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4526 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4527 with_gnu_ld=$lt_cv_prog_gnu_ld
4528
4529
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4531 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4532 if ${lt_cv_ld_reload_flag+:} false; then :
4533 $as_echo_n "(cached) " >&6
4534 else
4535 lt_cv_ld_reload_flag='-r'
4536 fi
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4538 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4539 reload_flag=$lt_cv_ld_reload_flag
4540 case $reload_flag in
4541 "" | " "*) ;;
4542 *) reload_flag=" $reload_flag" ;;
4543 esac
4544 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4545 case $host_os in
4546 darwin*)
4547 if test "$GCC" = yes; then
4548 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4549 else
4550 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4551 fi
4552 ;;
4553 esac
4554
4555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4556 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4557 if ${lt_cv_path_NM+:} false; then :
4558 $as_echo_n "(cached) " >&6
4559 else
4560 if test -n "$NM"; then
4561 # Let the user override the test.
4562 lt_cv_path_NM="$NM"
4563 else
4564 lt_nm_to_check="${ac_tool_prefix}nm"
4565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4566 lt_nm_to_check="$lt_nm_to_check nm"
4567 fi
4568 for lt_tmp_nm in $lt_nm_to_check; do
4569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4570 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4571 IFS="$lt_save_ifs"
4572 test -z "$ac_dir" && ac_dir=.
4573 tmp_nm="$ac_dir/$lt_tmp_nm"
4574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4575 # Check to see if the nm accepts a BSD-compat flag.
4576 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4577 # nm: unknown option "B" ignored
4578 # Tru64's nm complains that /dev/null is an invalid object file
4579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4580 */dev/null* | *'Invalid file or object type'*)
4581 lt_cv_path_NM="$tmp_nm -B"
4582 break
4583 ;;
4584 *)
4585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4586 */dev/null*)
4587 lt_cv_path_NM="$tmp_nm -p"
4588 break
4589 ;;
4590 *)
4591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4592 continue # so that we can try to find one that supports BSD flags
4593 ;;
4594 esac
4595 ;;
4596 esac
4597 fi
4598 done
4599 IFS="$lt_save_ifs"
4600 done
4601 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4602 fi
4603 fi
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4605 $as_echo "$lt_cv_path_NM" >&6; }
4606 NM="$lt_cv_path_NM"
4607
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4609 $as_echo_n "checking whether ln -s works... " >&6; }
4610 LN_S=$as_ln_s
4611 if test "$LN_S" = "ln -s"; then
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4613 $as_echo "yes" >&6; }
4614 else
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4616 $as_echo "no, using $LN_S" >&6; }
4617 fi
4618
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4620 $as_echo_n "checking how to recognise dependent libraries... " >&6; }
4621 if ${lt_cv_deplibs_check_method+:} false; then :
4622 $as_echo_n "(cached) " >&6
4623 else
4624 lt_cv_file_magic_cmd='$MAGIC_CMD'
4625 lt_cv_file_magic_test_file=
4626 lt_cv_deplibs_check_method='unknown'
4627 # Need to set the preceding variable on all platforms that support
4628 # interlibrary dependencies.
4629 # 'none' -- dependencies not supported.
4630 # `unknown' -- same as none, but documents that we really don't know.
4631 # 'pass_all' -- all dependencies passed with no checks.
4632 # 'test_compile' -- check by making test program.
4633 # 'file_magic [[regex]]' -- check by looking for files in library path
4634 # which responds to the $file_magic_cmd with a given extended regex.
4635 # If you have `file' or equivalent on your system and you're not sure
4636 # whether `pass_all' will *always* work, you probably want this one.
4637
4638 case $host_os in
4639 aix4* | aix5*)
4640 lt_cv_deplibs_check_method=pass_all
4641 ;;
4642
4643 beos*)
4644 lt_cv_deplibs_check_method=pass_all
4645 ;;
4646
4647 bsdi[45]*)
4648 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4649 lt_cv_file_magic_cmd='/usr/bin/file -L'
4650 lt_cv_file_magic_test_file=/shlib/libc.so
4651 ;;
4652
4653 cygwin*)
4654 # func_win32_libid is a shell function defined in ltmain.sh
4655 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4656 lt_cv_file_magic_cmd='func_win32_libid'
4657 ;;
4658
4659 mingw* | pw32*)
4660 # Base MSYS/MinGW do not provide the 'file' command needed by
4661 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
4662 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4663 lt_cv_file_magic_cmd='$OBJDUMP -f'
4664 ;;
4665
4666 darwin* | rhapsody*)
4667 lt_cv_deplibs_check_method=pass_all
4668 ;;
4669
4670 freebsd* | kfreebsd*-gnu | dragonfly*)
4671 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4672 case $host_cpu in
4673 i*86 )
4674 # Not sure whether the presence of OpenBSD here was a mistake.
4675 # Let's accept both of them until this is cleared up.
4676 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4677 lt_cv_file_magic_cmd=/usr/bin/file
4678 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4679 ;;
4680 esac
4681 else
4682 lt_cv_deplibs_check_method=pass_all
4683 fi
4684 ;;
4685
4686 gnu*)
4687 lt_cv_deplibs_check_method=pass_all
4688 ;;
4689
4690 hpux10.20* | hpux11*)
4691 lt_cv_file_magic_cmd=/usr/bin/file
4692 case $host_cpu in
4693 ia64*)
4694 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4695 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4696 ;;
4697 hppa*64*)
4698 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4699 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4700 ;;
4701 *)
4702 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4703 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4704 ;;
4705 esac
4706 ;;
4707
4708 interix3*)
4709 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4710 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4711 ;;
4712
4713 irix5* | irix6* | nonstopux*)
4714 case $LD in
4715 *-32|*"-32 ") libmagic=32-bit;;
4716 *-n32|*"-n32 ") libmagic=N32;;
4717 *-64|*"-64 ") libmagic=64-bit;;
4718 *) libmagic=never-match;;
4719 esac
4720 lt_cv_deplibs_check_method=pass_all
4721 ;;
4722
4723 # This must be Linux ELF.
4724 linux*)
4725 lt_cv_deplibs_check_method=pass_all
4726 ;;
4727
4728 netbsd*)
4729 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4731 else
4732 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4733 fi
4734 ;;
4735
4736 newos6*)
4737 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4738 lt_cv_file_magic_cmd=/usr/bin/file
4739 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4740 ;;
4741
4742 nto-qnx*)
4743 lt_cv_deplibs_check_method=unknown
4744 ;;
4745
4746 openbsd*)
4747 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4749 else
4750 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4751 fi
4752 ;;
4753
4754 osf3* | osf4* | osf5*)
4755 lt_cv_deplibs_check_method=pass_all
4756 ;;
4757
4758 solaris*)
4759 lt_cv_deplibs_check_method=pass_all
4760 ;;
4761
4762 sysv4 | sysv4.3*)
4763 case $host_vendor in
4764 motorola)
4765 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]'
4766 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4767 ;;
4768 ncr)
4769 lt_cv_deplibs_check_method=pass_all
4770 ;;
4771 sequent)
4772 lt_cv_file_magic_cmd='/bin/file'
4773 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4774 ;;
4775 sni)
4776 lt_cv_file_magic_cmd='/bin/file'
4777 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4778 lt_cv_file_magic_test_file=/lib/libc.so
4779 ;;
4780 siemens)
4781 lt_cv_deplibs_check_method=pass_all
4782 ;;
4783 pc)
4784 lt_cv_deplibs_check_method=pass_all
4785 ;;
4786 esac
4787 ;;
4788
4789 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4790 lt_cv_deplibs_check_method=pass_all
4791 ;;
4792 esac
4793
4794 fi
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
4796 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4797 file_magic_cmd=$lt_cv_file_magic_cmd
4798 deplibs_check_method=$lt_cv_deplibs_check_method
4799 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4800
4801
4802
4803
4804 # If no C compiler was specified, use CC.
4805 LTCC=${LTCC-"$CC"}
4806
4807 # If no C compiler flags were specified, use CFLAGS.
4808 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4809
4810 # Allow CC to be a program name with arguments.
4811 compiler=$CC
4812
4813
4814 # Check whether --enable-libtool-lock was given.
4815 if test "${enable_libtool_lock+set}" = set; then :
4816 enableval=$enable_libtool_lock;
4817 fi
4818
4819 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4820
4821 # Some flags need to be propagated to the compiler or linker for good
4822 # libtool support.
4823 case $host in
4824 ia64-*-hpux*)
4825 # Find out which ABI we are using.
4826 echo 'int i;' > conftest.$ac_ext
4827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4828 (eval $ac_compile) 2>&5
4829 ac_status=$?
4830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4831 test $ac_status = 0; }; then
4832 case `/usr/bin/file conftest.$ac_objext` in
4833 *ELF-32*)
4834 HPUX_IA64_MODE="32"
4835 ;;
4836 *ELF-64*)
4837 HPUX_IA64_MODE="64"
4838 ;;
4839 esac
4840 fi
4841 rm -rf conftest*
4842 ;;
4843 *-*-irix6*)
4844 # Find out which ABI we are using.
4845 echo '#line 4845 "configure"' > conftest.$ac_ext
4846 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4847 (eval $ac_compile) 2>&5
4848 ac_status=$?
4849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4850 test $ac_status = 0; }; then
4851 if test "$lt_cv_prog_gnu_ld" = yes; then
4852 case `/usr/bin/file conftest.$ac_objext` in
4853 *32-bit*)
4854 LD="${LD-ld} -melf32bsmip"
4855 ;;
4856 *N32*)
4857 LD="${LD-ld} -melf32bmipn32"
4858 ;;
4859 *64-bit*)
4860 LD="${LD-ld} -melf64bmip"
4861 ;;
4862 esac
4863 else
4864 case `/usr/bin/file conftest.$ac_objext` in
4865 *32-bit*)
4866 LD="${LD-ld} -32"
4867 ;;
4868 *N32*)
4869 LD="${LD-ld} -n32"
4870 ;;
4871 *64-bit*)
4872 LD="${LD-ld} -64"
4873 ;;
4874 esac
4875 fi
4876 fi
4877 rm -rf conftest*
4878 ;;
4879
4880 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
4881 # Find out which ABI we are using.
4882 echo 'int i;' > conftest.$ac_ext
4883 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4884 (eval $ac_compile) 2>&5
4885 ac_status=$?
4886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4887 test $ac_status = 0; }; then
4888 case `/usr/bin/file conftest.o` in
4889 *32-bit*)
4890 case $host in
4891 x86_64-*linux*)
4892 LD="${LD-ld} -m elf_i386"
4893 ;;
4894 ppc64-*linux*|powerpc64-*linux*)
4895 LD="${LD-ld} -m elf32ppclinux"
4896 ;;
4897 s390x-*linux*)
4898 LD="${LD-ld} -m elf_s390"
4899 ;;
4900 sparc64-*linux*)
4901 LD="${LD-ld} -m elf32_sparc"
4902 ;;
4903 esac
4904 ;;
4905 *64-bit*)
4906 case $host in
4907 x86_64-*linux*)
4908 LD="${LD-ld} -m elf_x86_64"
4909 ;;
4910 ppc*-*linux*|powerpc*-*linux*)
4911 LD="${LD-ld} -m elf64ppc"
4912 ;;
4913 s390*-*linux*)
4914 LD="${LD-ld} -m elf64_s390"
4915 ;;
4916 sparc*-*linux*)
4917 LD="${LD-ld} -m elf64_sparc"
4918 ;;
4919 esac
4920 ;;
4921 esac
4922 fi
4923 rm -rf conftest*
4924 ;;
4925
4926 *-*-sco3.2v5*)
4927 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4928 SAVE_CFLAGS="$CFLAGS"
4929 CFLAGS="$CFLAGS -belf"
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
4931 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4932 if ${lt_cv_cc_needs_belf+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934 else
4935 ac_ext=c
4936 ac_cpp='$CPP $CPPFLAGS'
4937 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4938 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4939 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943
4944 int
4945 main ()
4946 {
4947
4948 ;
4949 return 0;
4950 }
4951 _ACEOF
4952 if ac_fn_c_try_link "$LINENO"; then :
4953 lt_cv_cc_needs_belf=yes
4954 else
4955 lt_cv_cc_needs_belf=no
4956 fi
4957 rm -f core conftest.err conftest.$ac_objext \
4958 conftest$ac_exeext conftest.$ac_ext
4959 ac_ext=c
4960 ac_cpp='$CPP $CPPFLAGS'
4961 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4962 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4963 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4964
4965 fi
4966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
4967 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4968 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4969 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4970 CFLAGS="$SAVE_CFLAGS"
4971 fi
4972 ;;
4973 sparc*-*solaris*)
4974 # Find out which ABI we are using.
4975 echo 'int i;' > conftest.$ac_ext
4976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
4977 (eval $ac_compile) 2>&5
4978 ac_status=$?
4979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4980 test $ac_status = 0; }; then
4981 case `/usr/bin/file conftest.o` in
4982 *64-bit*)
4983 case $lt_cv_prog_gnu_ld in
4984 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4985 *) LD="${LD-ld} -64" ;;
4986 esac
4987 ;;
4988 esac
4989 fi
4990 rm -rf conftest*
4991 ;;
4992
4993
4994 esac
4995
4996 need_locks="$enable_libtool_lock"
4997
4998
4999 ac_ext=c
5000 ac_cpp='$CPP $CPPFLAGS'
5001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5005 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5006 # On Suns, sometimes $CPP names a directory.
5007 if test -n "$CPP" && test -d "$CPP"; then
5008 CPP=
5009 fi
5010 if test -z "$CPP"; then
5011 if ${ac_cv_prog_CPP+:} false; then :
5012 $as_echo_n "(cached) " >&6
5013 else
5014 # Double quotes because CPP needs to be expanded
5015 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5016 do
5017 ac_preproc_ok=false
5018 for ac_c_preproc_warn_flag in '' yes
5019 do
5020 # Use a header file that comes with gcc, so configuring glibc
5021 # with a fresh cross-compiler works.
5022 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5023 # <limits.h> exists even on freestanding compilers.
5024 # On the NeXT, cc -E runs the code through the compiler's parser,
5025 # not just through cpp. "Syntax error" is here to catch this case.
5026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h. */
5028 #ifdef __STDC__
5029 # include <limits.h>
5030 #else
5031 # include <assert.h>
5032 #endif
5033 Syntax error
5034 _ACEOF
5035 if ac_fn_c_try_cpp "$LINENO"; then :
5036
5037 else
5038 # Broken: fails on valid input.
5039 continue
5040 fi
5041 rm -f conftest.err conftest.i conftest.$ac_ext
5042
5043 # OK, works on sane cases. Now check whether nonexistent headers
5044 # can be detected and how.
5045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5046 /* end confdefs.h. */
5047 #include <ac_nonexistent.h>
5048 _ACEOF
5049 if ac_fn_c_try_cpp "$LINENO"; then :
5050 # Broken: success on invalid input.
5051 continue
5052 else
5053 # Passes both tests.
5054 ac_preproc_ok=:
5055 break
5056 fi
5057 rm -f conftest.err conftest.i conftest.$ac_ext
5058
5059 done
5060 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5061 rm -f conftest.i conftest.err conftest.$ac_ext
5062 if $ac_preproc_ok; then :
5063 break
5064 fi
5065
5066 done
5067 ac_cv_prog_CPP=$CPP
5068
5069 fi
5070 CPP=$ac_cv_prog_CPP
5071 else
5072 ac_cv_prog_CPP=$CPP
5073 fi
5074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5075 $as_echo "$CPP" >&6; }
5076 ac_preproc_ok=false
5077 for ac_c_preproc_warn_flag in '' yes
5078 do
5079 # Use a header file that comes with gcc, so configuring glibc
5080 # with a fresh cross-compiler works.
5081 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5082 # <limits.h> exists even on freestanding compilers.
5083 # On the NeXT, cc -E runs the code through the compiler's parser,
5084 # not just through cpp. "Syntax error" is here to catch this case.
5085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5086 /* end confdefs.h. */
5087 #ifdef __STDC__
5088 # include <limits.h>
5089 #else
5090 # include <assert.h>
5091 #endif
5092 Syntax error
5093 _ACEOF
5094 if ac_fn_c_try_cpp "$LINENO"; then :
5095
5096 else
5097 # Broken: fails on valid input.
5098 continue
5099 fi
5100 rm -f conftest.err conftest.i conftest.$ac_ext
5101
5102 # OK, works on sane cases. Now check whether nonexistent headers
5103 # can be detected and how.
5104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5105 /* end confdefs.h. */
5106 #include <ac_nonexistent.h>
5107 _ACEOF
5108 if ac_fn_c_try_cpp "$LINENO"; then :
5109 # Broken: success on invalid input.
5110 continue
5111 else
5112 # Passes both tests.
5113 ac_preproc_ok=:
5114 break
5115 fi
5116 rm -f conftest.err conftest.i conftest.$ac_ext
5117
5118 done
5119 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5120 rm -f conftest.i conftest.err conftest.$ac_ext
5121 if $ac_preproc_ok; then :
5122
5123 else
5124 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5125 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5126 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5127 See \`config.log' for more details" "$LINENO" 5; }
5128 fi
5129
5130 ac_ext=c
5131 ac_cpp='$CPP $CPPFLAGS'
5132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135
5136
5137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5138 $as_echo_n "checking for ANSI C header files... " >&6; }
5139 if ${ac_cv_header_stdc+:} false; then :
5140 $as_echo_n "(cached) " >&6
5141 else
5142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5143 /* end confdefs.h. */
5144 #include <stdlib.h>
5145 #include <stdarg.h>
5146 #include <string.h>
5147 #include <float.h>
5148
5149 int
5150 main ()
5151 {
5152
5153 ;
5154 return 0;
5155 }
5156 _ACEOF
5157 if ac_fn_c_try_compile "$LINENO"; then :
5158 ac_cv_header_stdc=yes
5159 else
5160 ac_cv_header_stdc=no
5161 fi
5162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5163
5164 if test $ac_cv_header_stdc = yes; then
5165 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5167 /* end confdefs.h. */
5168 #include <string.h>
5169
5170 _ACEOF
5171 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5172 $EGREP "memchr" >/dev/null 2>&1; then :
5173
5174 else
5175 ac_cv_header_stdc=no
5176 fi
5177 rm -f conftest*
5178
5179 fi
5180
5181 if test $ac_cv_header_stdc = yes; then
5182 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5186
5187 _ACEOF
5188 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5189 $EGREP "free" >/dev/null 2>&1; then :
5190
5191 else
5192 ac_cv_header_stdc=no
5193 fi
5194 rm -f conftest*
5195
5196 fi
5197
5198 if test $ac_cv_header_stdc = yes; then
5199 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5200 if test "$cross_compiling" = yes; then :
5201 :
5202 else
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h. */
5205 #include <ctype.h>
5206 #include <stdlib.h>
5207 #if ((' ' & 0x0FF) == 0x020)
5208 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5209 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5210 #else
5211 # define ISLOWER(c) \
5212 (('a' <= (c) && (c) <= 'i') \
5213 || ('j' <= (c) && (c) <= 'r') \
5214 || ('s' <= (c) && (c) <= 'z'))
5215 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5216 #endif
5217
5218 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5219 int
5220 main ()
5221 {
5222 int i;
5223 for (i = 0; i < 256; i++)
5224 if (XOR (islower (i), ISLOWER (i))
5225 || toupper (i) != TOUPPER (i))
5226 return 2;
5227 return 0;
5228 }
5229 _ACEOF
5230 if ac_fn_c_try_run "$LINENO"; then :
5231
5232 else
5233 ac_cv_header_stdc=no
5234 fi
5235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5236 conftest.$ac_objext conftest.beam conftest.$ac_ext
5237 fi
5238
5239 fi
5240 fi
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5242 $as_echo "$ac_cv_header_stdc" >&6; }
5243 if test $ac_cv_header_stdc = yes; then
5244
5245 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5246
5247 fi
5248
5249 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5250 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5251 inttypes.h stdint.h unistd.h
5252 do :
5253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5254 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5255 "
5256 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5257 cat >>confdefs.h <<_ACEOF
5258 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5259 _ACEOF
5260
5261 fi
5262
5263 done
5264
5265
5266 for ac_header in dlfcn.h
5267 do :
5268 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5269 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5270 cat >>confdefs.h <<_ACEOF
5271 #define HAVE_DLFCN_H 1
5272 _ACEOF
5273
5274 fi
5275
5276 done
5277
5278 ac_ext=cpp
5279 ac_cpp='$CXXCPP $CPPFLAGS'
5280 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5281 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5282 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5283 if test -z "$CXX"; then
5284 if test -n "$CCC"; then
5285 CXX=$CCC
5286 else
5287 if test -n "$ac_tool_prefix"; then
5288 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5289 do
5290 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5291 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5293 $as_echo_n "checking for $ac_word... " >&6; }
5294 if ${ac_cv_prog_CXX+:} false; then :
5295 $as_echo_n "(cached) " >&6
5296 else
5297 if test -n "$CXX"; then
5298 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5299 else
5300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5301 for as_dir in $PATH
5302 do
5303 IFS=$as_save_IFS
5304 test -z "$as_dir" && as_dir=.
5305 for ac_exec_ext in '' $ac_executable_extensions; do
5306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5307 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5309 break 2
5310 fi
5311 done
5312 done
5313 IFS=$as_save_IFS
5314
5315 fi
5316 fi
5317 CXX=$ac_cv_prog_CXX
5318 if test -n "$CXX"; then
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5320 $as_echo "$CXX" >&6; }
5321 else
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5323 $as_echo "no" >&6; }
5324 fi
5325
5326
5327 test -n "$CXX" && break
5328 done
5329 fi
5330 if test -z "$CXX"; then
5331 ac_ct_CXX=$CXX
5332 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5333 do
5334 # Extract the first word of "$ac_prog", so it can be a program name with args.
5335 set dummy $ac_prog; ac_word=$2
5336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5337 $as_echo_n "checking for $ac_word... " >&6; }
5338 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5339 $as_echo_n "(cached) " >&6
5340 else
5341 if test -n "$ac_ct_CXX"; then
5342 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5343 else
5344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5345 for as_dir in $PATH
5346 do
5347 IFS=$as_save_IFS
5348 test -z "$as_dir" && as_dir=.
5349 for ac_exec_ext in '' $ac_executable_extensions; do
5350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5351 ac_cv_prog_ac_ct_CXX="$ac_prog"
5352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5353 break 2
5354 fi
5355 done
5356 done
5357 IFS=$as_save_IFS
5358
5359 fi
5360 fi
5361 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5362 if test -n "$ac_ct_CXX"; then
5363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5364 $as_echo "$ac_ct_CXX" >&6; }
5365 else
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5367 $as_echo "no" >&6; }
5368 fi
5369
5370
5371 test -n "$ac_ct_CXX" && break
5372 done
5373
5374 if test "x$ac_ct_CXX" = x; then
5375 CXX="g++"
5376 else
5377 case $cross_compiling:$ac_tool_warned in
5378 yes:)
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5380 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5381 ac_tool_warned=yes ;;
5382 esac
5383 CXX=$ac_ct_CXX
5384 fi
5385 fi
5386
5387 fi
5388 fi
5389 # Provide some information about the compiler.
5390 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5391 set X $ac_compile
5392 ac_compiler=$2
5393 for ac_option in --version -v -V -qversion; do
5394 { { ac_try="$ac_compiler $ac_option >&5"
5395 case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5400 $as_echo "$ac_try_echo"; } >&5
5401 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5402 ac_status=$?
5403 if test -s conftest.err; then
5404 sed '10a\
5405 ... rest of stderr output deleted ...
5406 10q' conftest.err >conftest.er1
5407 cat conftest.er1 >&5
5408 fi
5409 rm -f conftest.er1 conftest.err
5410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5411 test $ac_status = 0; }
5412 done
5413
5414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5415 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5416 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5417 $as_echo_n "(cached) " >&6
5418 else
5419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5421
5422 int
5423 main ()
5424 {
5425 #ifndef __GNUC__
5426 choke me
5427 #endif
5428
5429 ;
5430 return 0;
5431 }
5432 _ACEOF
5433 if ac_fn_cxx_try_compile "$LINENO"; then :
5434 ac_compiler_gnu=yes
5435 else
5436 ac_compiler_gnu=no
5437 fi
5438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5439 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5440
5441 fi
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5443 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5444 if test $ac_compiler_gnu = yes; then
5445 GXX=yes
5446 else
5447 GXX=
5448 fi
5449 ac_test_CXXFLAGS=${CXXFLAGS+set}
5450 ac_save_CXXFLAGS=$CXXFLAGS
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5452 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5453 if ${ac_cv_prog_cxx_g+:} false; then :
5454 $as_echo_n "(cached) " >&6
5455 else
5456 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5457 ac_cxx_werror_flag=yes
5458 ac_cv_prog_cxx_g=no
5459 CXXFLAGS="-g"
5460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5461 /* end confdefs.h. */
5462
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 if ac_fn_cxx_try_compile "$LINENO"; then :
5472 ac_cv_prog_cxx_g=yes
5473 else
5474 CXXFLAGS=""
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5477
5478 int
5479 main ()
5480 {
5481
5482 ;
5483 return 0;
5484 }
5485 _ACEOF
5486 if ac_fn_cxx_try_compile "$LINENO"; then :
5487
5488 else
5489 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5490 CXXFLAGS="-g"
5491 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5492 /* end confdefs.h. */
5493
5494 int
5495 main ()
5496 {
5497
5498 ;
5499 return 0;
5500 }
5501 _ACEOF
5502 if ac_fn_cxx_try_compile "$LINENO"; then :
5503 ac_cv_prog_cxx_g=yes
5504 fi
5505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5506 fi
5507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5508 fi
5509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5510 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5511 fi
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5513 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5514 if test "$ac_test_CXXFLAGS" = set; then
5515 CXXFLAGS=$ac_save_CXXFLAGS
5516 elif test $ac_cv_prog_cxx_g = yes; then
5517 if test "$GXX" = yes; then
5518 CXXFLAGS="-g -O2"
5519 else
5520 CXXFLAGS="-g"
5521 fi
5522 else
5523 if test "$GXX" = yes; then
5524 CXXFLAGS="-O2"
5525 else
5526 CXXFLAGS=
5527 fi
5528 fi
5529 ac_ext=cpp
5530 ac_cpp='$CXXCPP $CPPFLAGS'
5531 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5532 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5533 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5534
5535 depcc="$CXX" am_compiler_list=
5536
5537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5538 $as_echo_n "checking dependency style of $depcc... " >&6; }
5539 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5540 $as_echo_n "(cached) " >&6
5541 else
5542 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5543 # We make a subdir and do the tests there. Otherwise we can end up
5544 # making bogus files that we don't know about and never remove. For
5545 # instance it was reported that on HP-UX the gcc test will end up
5546 # making a dummy file named `D' -- because `-MD' means `put the output
5547 # in D'.
5548 mkdir conftest.dir
5549 # Copy depcomp to subdir because otherwise we won't find it if we're
5550 # using a relative directory.
5551 cp "$am_depcomp" conftest.dir
5552 cd conftest.dir
5553 # We will build objects and dependencies in a subdirectory because
5554 # it helps to detect inapplicable dependency modes. For instance
5555 # both Tru64's cc and ICC support -MD to output dependencies as a
5556 # side effect of compilation, but ICC will put the dependencies in
5557 # the current directory while Tru64 will put them in the object
5558 # directory.
5559 mkdir sub
5560
5561 am_cv_CXX_dependencies_compiler_type=none
5562 if test "$am_compiler_list" = ""; then
5563 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5564 fi
5565 for depmode in $am_compiler_list; do
5566 # Setup a source with many dependencies, because some compilers
5567 # like to wrap large dependency lists on column 80 (with \), and
5568 # we should not choose a depcomp mode which is confused by this.
5569 #
5570 # We need to recreate these files for each test, as the compiler may
5571 # overwrite some of them when testing with obscure command lines.
5572 # This happens at least with the AIX C compiler.
5573 : > sub/conftest.c
5574 for i in 1 2 3 4 5 6; do
5575 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5576 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5577 # Solaris 8's {/usr,}/bin/sh.
5578 touch sub/conftst$i.h
5579 done
5580 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5581
5582 case $depmode in
5583 nosideeffect)
5584 # after this tag, mechanisms are not by side-effect, so they'll
5585 # only be used when explicitly requested
5586 if test "x$enable_dependency_tracking" = xyes; then
5587 continue
5588 else
5589 break
5590 fi
5591 ;;
5592 none) break ;;
5593 esac
5594 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5595 # mode. It turns out that the SunPro C++ compiler does not properly
5596 # handle `-M -o', and we need to detect this.
5597 if depmode=$depmode \
5598 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5601 >/dev/null 2>conftest.err &&
5602 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5603 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5604 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5605 # icc doesn't choke on unknown options, it will just issue warnings
5606 # or remarks (even with -Werror). So we grep stderr for any message
5607 # that says an option was ignored or not supported.
5608 # When given -MP, icc 7.0 and 7.1 complain thusly:
5609 # icc: Command line warning: ignoring option '-M'; no argument required
5610 # The diagnosis changed in icc 8.0:
5611 # icc: Command line remark: option '-MP' not supported
5612 if (grep 'ignoring option' conftest.err ||
5613 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5614 am_cv_CXX_dependencies_compiler_type=$depmode
5615 break
5616 fi
5617 fi
5618 done
5619
5620 cd ..
5621 rm -rf conftest.dir
5622 else
5623 am_cv_CXX_dependencies_compiler_type=none
5624 fi
5625
5626 fi
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
5628 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5629 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5630
5631
5632
5633 if
5634 test "x$enable_dependency_tracking" != xno \
5635 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5636 am__fastdepCXX_TRUE=
5637 am__fastdepCXX_FALSE='#'
5638 else
5639 am__fastdepCXX_TRUE='#'
5640 am__fastdepCXX_FALSE=
5641 fi
5642
5643
5644
5645
5646 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5647 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5648 (test "X$CXX" != "Xg++"))) ; then
5649 ac_ext=cpp
5650 ac_cpp='$CXXCPP $CPPFLAGS'
5651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5655 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5656 if test -z "$CXXCPP"; then
5657 if ${ac_cv_prog_CXXCPP+:} false; then :
5658 $as_echo_n "(cached) " >&6
5659 else
5660 # Double quotes because CXXCPP needs to be expanded
5661 for CXXCPP in "$CXX -E" "/lib/cpp"
5662 do
5663 ac_preproc_ok=false
5664 for ac_cxx_preproc_warn_flag in '' yes
5665 do
5666 # Use a header file that comes with gcc, so configuring glibc
5667 # with a fresh cross-compiler works.
5668 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5669 # <limits.h> exists even on freestanding compilers.
5670 # On the NeXT, cc -E runs the code through the compiler's parser,
5671 # not just through cpp. "Syntax error" is here to catch this case.
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #ifdef __STDC__
5675 # include <limits.h>
5676 #else
5677 # include <assert.h>
5678 #endif
5679 Syntax error
5680 _ACEOF
5681 if ac_fn_cxx_try_cpp "$LINENO"; then :
5682
5683 else
5684 # Broken: fails on valid input.
5685 continue
5686 fi
5687 rm -f conftest.err conftest.i conftest.$ac_ext
5688
5689 # OK, works on sane cases. Now check whether nonexistent headers
5690 # can be detected and how.
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5693 #include <ac_nonexistent.h>
5694 _ACEOF
5695 if ac_fn_cxx_try_cpp "$LINENO"; then :
5696 # Broken: success on invalid input.
5697 continue
5698 else
5699 # Passes both tests.
5700 ac_preproc_ok=:
5701 break
5702 fi
5703 rm -f conftest.err conftest.i conftest.$ac_ext
5704
5705 done
5706 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5707 rm -f conftest.i conftest.err conftest.$ac_ext
5708 if $ac_preproc_ok; then :
5709 break
5710 fi
5711
5712 done
5713 ac_cv_prog_CXXCPP=$CXXCPP
5714
5715 fi
5716 CXXCPP=$ac_cv_prog_CXXCPP
5717 else
5718 ac_cv_prog_CXXCPP=$CXXCPP
5719 fi
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5721 $as_echo "$CXXCPP" >&6; }
5722 ac_preproc_ok=false
5723 for ac_cxx_preproc_warn_flag in '' yes
5724 do
5725 # Use a header file that comes with gcc, so configuring glibc
5726 # with a fresh cross-compiler works.
5727 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5728 # <limits.h> exists even on freestanding compilers.
5729 # On the NeXT, cc -E runs the code through the compiler's parser,
5730 # not just through cpp. "Syntax error" is here to catch this case.
5731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5732 /* end confdefs.h. */
5733 #ifdef __STDC__
5734 # include <limits.h>
5735 #else
5736 # include <assert.h>
5737 #endif
5738 Syntax error
5739 _ACEOF
5740 if ac_fn_cxx_try_cpp "$LINENO"; then :
5741
5742 else
5743 # Broken: fails on valid input.
5744 continue
5745 fi
5746 rm -f conftest.err conftest.i conftest.$ac_ext
5747
5748 # OK, works on sane cases. Now check whether nonexistent headers
5749 # can be detected and how.
5750 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5751 /* end confdefs.h. */
5752 #include <ac_nonexistent.h>
5753 _ACEOF
5754 if ac_fn_cxx_try_cpp "$LINENO"; then :
5755 # Broken: success on invalid input.
5756 continue
5757 else
5758 # Passes both tests.
5759 ac_preproc_ok=:
5760 break
5761 fi
5762 rm -f conftest.err conftest.i conftest.$ac_ext
5763
5764 done
5765 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5766 rm -f conftest.i conftest.err conftest.$ac_ext
5767 if $ac_preproc_ok; then :
5768
5769 else
5770 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5771 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5772 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5773 See \`config.log' for more details" "$LINENO" 5; }
5774 fi
5775
5776 ac_ext=cpp
5777 ac_cpp='$CXXCPP $CPPFLAGS'
5778 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5779 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5780 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5781
5782 fi
5783
5784
5785 ac_ext=f
5786 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5787 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5788 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5789 if test -n "$ac_tool_prefix"; then
5790 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5791 do
5792 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5793 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5795 $as_echo_n "checking for $ac_word... " >&6; }
5796 if ${ac_cv_prog_F77+:} false; then :
5797 $as_echo_n "(cached) " >&6
5798 else
5799 if test -n "$F77"; then
5800 ac_cv_prog_F77="$F77" # Let the user override the test.
5801 else
5802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5803 for as_dir in $PATH
5804 do
5805 IFS=$as_save_IFS
5806 test -z "$as_dir" && as_dir=.
5807 for ac_exec_ext in '' $ac_executable_extensions; do
5808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5809 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5811 break 2
5812 fi
5813 done
5814 done
5815 IFS=$as_save_IFS
5816
5817 fi
5818 fi
5819 F77=$ac_cv_prog_F77
5820 if test -n "$F77"; then
5821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
5822 $as_echo "$F77" >&6; }
5823 else
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5825 $as_echo "no" >&6; }
5826 fi
5827
5828
5829 test -n "$F77" && break
5830 done
5831 fi
5832 if test -z "$F77"; then
5833 ac_ct_F77=$F77
5834 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgfortran pgf95 lf95 ftn nagfor
5835 do
5836 # Extract the first word of "$ac_prog", so it can be a program name with args.
5837 set dummy $ac_prog; ac_word=$2
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5839 $as_echo_n "checking for $ac_word... " >&6; }
5840 if ${ac_cv_prog_ac_ct_F77+:} false; then :
5841 $as_echo_n "(cached) " >&6
5842 else
5843 if test -n "$ac_ct_F77"; then
5844 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5845 else
5846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5847 for as_dir in $PATH
5848 do
5849 IFS=$as_save_IFS
5850 test -z "$as_dir" && as_dir=.
5851 for ac_exec_ext in '' $ac_executable_extensions; do
5852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5853 ac_cv_prog_ac_ct_F77="$ac_prog"
5854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5855 break 2
5856 fi
5857 done
5858 done
5859 IFS=$as_save_IFS
5860
5861 fi
5862 fi
5863 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5864 if test -n "$ac_ct_F77"; then
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
5866 $as_echo "$ac_ct_F77" >&6; }
5867 else
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5869 $as_echo "no" >&6; }
5870 fi
5871
5872
5873 test -n "$ac_ct_F77" && break
5874 done
5875
5876 if test "x$ac_ct_F77" = x; then
5877 F77=""
5878 else
5879 case $cross_compiling:$ac_tool_warned in
5880 yes:)
5881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5882 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5883 ac_tool_warned=yes ;;
5884 esac
5885 F77=$ac_ct_F77
5886 fi
5887 fi
5888
5889
5890 # Provide some information about the compiler.
5891 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
5892 set X $ac_compile
5893 ac_compiler=$2
5894 for ac_option in --version -v -V -qversion; do
5895 { { ac_try="$ac_compiler $ac_option >&5"
5896 case "(($ac_try" in
5897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5898 *) ac_try_echo=$ac_try;;
5899 esac
5900 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5901 $as_echo "$ac_try_echo"; } >&5
5902 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5903 ac_status=$?
5904 if test -s conftest.err; then
5905 sed '10a\
5906 ... rest of stderr output deleted ...
5907 10q' conftest.err >conftest.er1
5908 cat conftest.er1 >&5
5909 fi
5910 rm -f conftest.er1 conftest.err
5911 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5912 test $ac_status = 0; }
5913 done
5914 rm -f a.out
5915
5916 # If we don't use `.F' as extension, the preprocessor is not run on the
5917 # input file. (Note that this only needs to work for GNU compilers.)
5918 ac_save_ext=$ac_ext
5919 ac_ext=F
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
5921 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
5922 if ${ac_cv_f77_compiler_gnu+:} false; then :
5923 $as_echo_n "(cached) " >&6
5924 else
5925 cat > conftest.$ac_ext <<_ACEOF
5926 program main
5927 #ifndef __GNUC__
5928 choke me
5929 #endif
5930
5931 end
5932 _ACEOF
5933 if ac_fn_f77_try_compile "$LINENO"; then :
5934 ac_compiler_gnu=yes
5935 else
5936 ac_compiler_gnu=no
5937 fi
5938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5939 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5940
5941 fi
5942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
5943 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
5944 ac_ext=$ac_save_ext
5945 ac_test_FFLAGS=${FFLAGS+set}
5946 ac_save_FFLAGS=$FFLAGS
5947 FFLAGS=
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
5949 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
5950 if ${ac_cv_prog_f77_g+:} false; then :
5951 $as_echo_n "(cached) " >&6
5952 else
5953 FFLAGS=-g
5954 cat > conftest.$ac_ext <<_ACEOF
5955 program main
5956
5957 end
5958 _ACEOF
5959 if ac_fn_f77_try_compile "$LINENO"; then :
5960 ac_cv_prog_f77_g=yes
5961 else
5962 ac_cv_prog_f77_g=no
5963 fi
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965
5966 fi
5967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
5968 $as_echo "$ac_cv_prog_f77_g" >&6; }
5969 if test "$ac_test_FFLAGS" = set; then
5970 FFLAGS=$ac_save_FFLAGS
5971 elif test $ac_cv_prog_f77_g = yes; then
5972 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5973 FFLAGS="-g -O2"
5974 else
5975 FFLAGS="-g"
5976 fi
5977 else
5978 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5979 FFLAGS="-O2"
5980 else
5981 FFLAGS=
5982 fi
5983 fi
5984
5985 if test $ac_compiler_gnu = yes; then
5986 G77=yes
5987 else
5988 G77=
5989 fi
5990 ac_ext=c
5991 ac_cpp='$CPP $CPPFLAGS'
5992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5995
5996
5997
5998 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5999
6000 # find the maximum length of command line arguments
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6002 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6003 if ${lt_cv_sys_max_cmd_len+:} false; then :
6004 $as_echo_n "(cached) " >&6
6005 else
6006 i=0
6007 teststring="ABCD"
6008
6009 case $build_os in
6010 msdosdjgpp*)
6011 # On DJGPP, this test can blow up pretty badly due to problems in libc
6012 # (any single argument exceeding 2000 bytes causes a buffer overrun
6013 # during glob expansion). Even if it were fixed, the result of this
6014 # check would be larger than it should be.
6015 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6016 ;;
6017
6018 gnu*)
6019 # Under GNU Hurd, this test is not required because there is
6020 # no limit to the length of command line arguments.
6021 # Libtool will interpret -1 as no limit whatsoever
6022 lt_cv_sys_max_cmd_len=-1;
6023 ;;
6024
6025 cygwin* | mingw*)
6026 # On Win9x/ME, this test blows up -- it succeeds, but takes
6027 # about 5 minutes as the teststring grows exponentially.
6028 # Worse, since 9x/ME are not pre-emptively multitasking,
6029 # you end up with a "frozen" computer, even though with patience
6030 # the test eventually succeeds (with a max line length of 256k).
6031 # Instead, let's just punt: use the minimum linelength reported by
6032 # all of the supported platforms: 8192 (on NT/2K/XP).
6033 lt_cv_sys_max_cmd_len=8192;
6034 ;;
6035
6036 amigaos*)
6037 # On AmigaOS with pdksh, this test takes hours, literally.
6038 # So we just punt and use a minimum line length of 8192.
6039 lt_cv_sys_max_cmd_len=8192;
6040 ;;
6041
6042 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6043 # This has been around since 386BSD, at least. Likely further.
6044 if test -x /sbin/sysctl; then
6045 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6046 elif test -x /usr/sbin/sysctl; then
6047 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6048 else
6049 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6050 fi
6051 # And add a safety zone
6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6054 ;;
6055
6056 interix*)
6057 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6058 lt_cv_sys_max_cmd_len=196608
6059 ;;
6060
6061 osf*)
6062 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6063 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6064 # nice to cause kernel panics so lets avoid the loop below.
6065 # First set a reasonable default.
6066 lt_cv_sys_max_cmd_len=16384
6067 #
6068 if test -x /sbin/sysconfig; then
6069 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6070 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6071 esac
6072 fi
6073 ;;
6074 sco3.2v5*)
6075 lt_cv_sys_max_cmd_len=102400
6076 ;;
6077 sysv5* | sco5v6* | sysv4.2uw2*)
6078 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6079 if test -n "$kargmax"; then
6080 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6081 else
6082 lt_cv_sys_max_cmd_len=32768
6083 fi
6084 ;;
6085 *)
6086 # If test is not a shell built-in, we'll probably end up computing a
6087 # maximum length that is only half of the actual maximum length, but
6088 # we can't tell.
6089 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6090 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6091 = "XX$teststring") >/dev/null 2>&1 &&
6092 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6093 lt_cv_sys_max_cmd_len=$new_result &&
6094 test $i != 17 # 1/2 MB should be enough
6095 do
6096 i=`expr $i + 1`
6097 teststring=$teststring$teststring
6098 done
6099 teststring=
6100 # Add a significant safety factor because C++ compilers can tack on massive
6101 # amounts of additional arguments before passing them to the linker.
6102 # It appears as though 1/2 is a usable value.
6103 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6104 ;;
6105 esac
6106
6107 fi
6108
6109 if test -n $lt_cv_sys_max_cmd_len ; then
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6111 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6112 else
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6114 $as_echo "none" >&6; }
6115 fi
6116
6117
6118
6119
6120 # Check for command to grab the raw symbol name followed by C symbol from nm.
6121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6122 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6123 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6124 $as_echo_n "(cached) " >&6
6125 else
6126
6127 # These are sane defaults that work on at least a few old systems.
6128 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6129
6130 # Character class describing NM global symbol codes.
6131 symcode='[BCDEGRST]'
6132
6133 # Regexp to match symbols that can be accessed directly from C.
6134 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6135
6136 # Transform an extracted symbol line into a proper C declaration
6137 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6138
6139 # Transform an extracted symbol line into symbol name and symbol address
6140 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6141
6142 # Define system-specific variables.
6143 case $host_os in
6144 aix*)
6145 symcode='[BCDT]'
6146 ;;
6147 cygwin* | mingw* | pw32*)
6148 symcode='[ABCDGISTW]'
6149 ;;
6150 hpux*) # Its linker distinguishes data from code symbols
6151 if test "$host_cpu" = ia64; then
6152 symcode='[ABCDEGRST]'
6153 fi
6154 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6155 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6156 ;;
6157 linux*)
6158 if test "$host_cpu" = ia64; then
6159 symcode='[ABCDGIRSTW]'
6160 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6161 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
6162 fi
6163 ;;
6164 irix* | nonstopux*)
6165 symcode='[BCDEGRST]'
6166 ;;
6167 osf*)
6168 symcode='[BCDEGQRST]'
6169 ;;
6170 solaris*)
6171 symcode='[BDRT]'
6172 ;;
6173 sco3.2v5*)
6174 symcode='[DT]'
6175 ;;
6176 sysv4.2uw2*)
6177 symcode='[DT]'
6178 ;;
6179 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6180 symcode='[ABDT]'
6181 ;;
6182 sysv4)
6183 symcode='[DFNSTU]'
6184 ;;
6185 esac
6186
6187 # Handle CRLF in mingw tool chain
6188 opt_cr=
6189 case $build_os in
6190 mingw*)
6191 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6192 ;;
6193 esac
6194
6195 # If we're using GNU nm, then use its standard symbol codes.
6196 case `$NM -V 2>&1` in
6197 *GNU* | *'with BFD'*)
6198 symcode='[ABCDGIRSTW]' ;;
6199 esac
6200
6201 # Try without a prefix undercore, then with it.
6202 for ac_symprfx in "" "_"; do
6203
6204 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6205 symxfrm="\\1 $ac_symprfx\\2 \\2"
6206
6207 # Write the raw and C identifiers.
6208 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6209
6210 # Check to see that the pipe works correctly.
6211 pipe_works=no
6212
6213 rm -f conftest*
6214 cat > conftest.$ac_ext <<EOF
6215 #ifdef __cplusplus
6216 extern "C" {
6217 #endif
6218 char nm_test_var;
6219 void nm_test_func(){}
6220 #ifdef __cplusplus
6221 }
6222 #endif
6223 int main(){nm_test_var='a';nm_test_func();return(0);}
6224 EOF
6225
6226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6227 (eval $ac_compile) 2>&5
6228 ac_status=$?
6229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6230 test $ac_status = 0; }; then
6231 # Now try to grab the symbols.
6232 nlist=conftest.nm
6233 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6234 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6235 ac_status=$?
6236 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6237 test $ac_status = 0; } && test -s "$nlist"; then
6238 # Try sorting and uniquifying the output.
6239 if sort "$nlist" | uniq > "$nlist"T; then
6240 mv -f "$nlist"T "$nlist"
6241 else
6242 rm -f "$nlist"T
6243 fi
6244
6245 # Make sure that we snagged all the symbols we need.
6246 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6247 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6248 cat <<EOF > conftest.$ac_ext
6249 #ifdef __cplusplus
6250 extern "C" {
6251 #endif
6252
6253 EOF
6254 # Now generate the symbol file.
6255 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6256
6257 cat <<EOF >> conftest.$ac_ext
6258 #if defined (__STDC__) && __STDC__
6259 # define lt_ptr_t void *
6260 #else
6261 # define lt_ptr_t char *
6262 # define const
6263 #endif
6264
6265 /* The mapping between symbol names and symbols. */
6266 const struct {
6267 const char *name;
6268 lt_ptr_t address;
6269 }
6270 lt_preloaded_symbols[] =
6271 {
6272 EOF
6273 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6274 cat <<\EOF >> conftest.$ac_ext
6275 {0, (lt_ptr_t) 0}
6276 };
6277
6278 #ifdef __cplusplus
6279 }
6280 #endif
6281 EOF
6282 # Now try linking the two files.
6283 mv conftest.$ac_objext conftstm.$ac_objext
6284 lt_save_LIBS="$LIBS"
6285 lt_save_CFLAGS="$CFLAGS"
6286 LIBS="conftstm.$ac_objext"
6287 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6288 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6289 (eval $ac_link) 2>&5
6290 ac_status=$?
6291 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6292 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6293 pipe_works=yes
6294 fi
6295 LIBS="$lt_save_LIBS"
6296 CFLAGS="$lt_save_CFLAGS"
6297 else
6298 echo "cannot find nm_test_func in $nlist" >&5
6299 fi
6300 else
6301 echo "cannot find nm_test_var in $nlist" >&5
6302 fi
6303 else
6304 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6305 fi
6306 else
6307 echo "$progname: failed program was:" >&5
6308 cat conftest.$ac_ext >&5
6309 fi
6310 rm -f conftest* conftst*
6311
6312 # Do not use the global_symbol_pipe unless it works.
6313 if test "$pipe_works" = yes; then
6314 break
6315 else
6316 lt_cv_sys_global_symbol_pipe=
6317 fi
6318 done
6319
6320 fi
6321
6322 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6323 lt_cv_sys_global_symbol_to_cdecl=
6324 fi
6325 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6327 $as_echo "failed" >&6; }
6328 else
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6330 $as_echo "ok" >&6; }
6331 fi
6332
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
6334 $as_echo_n "checking for objdir... " >&6; }
6335 if ${lt_cv_objdir+:} false; then :
6336 $as_echo_n "(cached) " >&6
6337 else
6338 rm -f .libs 2>/dev/null
6339 mkdir .libs 2>/dev/null
6340 if test -d .libs; then
6341 lt_cv_objdir=.libs
6342 else
6343 # MS-DOS does not allow filenames that begin with a dot.
6344 lt_cv_objdir=_libs
6345 fi
6346 rmdir .libs 2>/dev/null
6347 fi
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
6349 $as_echo "$lt_cv_objdir" >&6; }
6350 objdir=$lt_cv_objdir
6351
6352
6353
6354
6355
6356 case $host_os in
6357 aix3*)
6358 # AIX sometimes has problems with the GCC collect2 program. For some
6359 # reason, if we set the COLLECT_NAMES environment variable, the problems
6360 # vanish in a puff of smoke.
6361 if test "X${COLLECT_NAMES+set}" != Xset; then
6362 COLLECT_NAMES=
6363 export COLLECT_NAMES
6364 fi
6365 ;;
6366 esac
6367
6368 # Sed substitution that helps us do robust quoting. It backslashifies
6369 # metacharacters that are still active within double-quoted strings.
6370 Xsed='sed -e 1s/^X//'
6371 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6372
6373 # Same as above, but do not quote variable references.
6374 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6375
6376 # Sed substitution to delay expansion of an escaped shell variable in a
6377 # double_quote_subst'ed string.
6378 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6379
6380 # Sed substitution to avoid accidental globbing in evaled expressions
6381 no_glob_subst='s/\*/\\\*/g'
6382
6383 # Constants:
6384 rm="rm -f"
6385
6386 # Global variables:
6387 default_ofile=libtool
6388 can_build_shared=yes
6389
6390 # All known linkers require a `.a' archive for static linking (except MSVC,
6391 # which needs '.lib').
6392 libext=a
6393 ltmain="$ac_aux_dir/ltmain.sh"
6394 ofile="$default_ofile"
6395 with_gnu_ld="$lt_cv_prog_gnu_ld"
6396
6397 if test -n "$ac_tool_prefix"; then
6398 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6399 set dummy ${ac_tool_prefix}ar; ac_word=$2
6400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6401 $as_echo_n "checking for $ac_word... " >&6; }
6402 if ${ac_cv_prog_AR+:} false; then :
6403 $as_echo_n "(cached) " >&6
6404 else
6405 if test -n "$AR"; then
6406 ac_cv_prog_AR="$AR" # Let the user override the test.
6407 else
6408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6409 for as_dir in $PATH
6410 do
6411 IFS=$as_save_IFS
6412 test -z "$as_dir" && as_dir=.
6413 for ac_exec_ext in '' $ac_executable_extensions; do
6414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6415 ac_cv_prog_AR="${ac_tool_prefix}ar"
6416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6417 break 2
6418 fi
6419 done
6420 done
6421 IFS=$as_save_IFS
6422
6423 fi
6424 fi
6425 AR=$ac_cv_prog_AR
6426 if test -n "$AR"; then
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6428 $as_echo "$AR" >&6; }
6429 else
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6431 $as_echo "no" >&6; }
6432 fi
6433
6434
6435 fi
6436 if test -z "$ac_cv_prog_AR"; then
6437 ac_ct_AR=$AR
6438 # Extract the first word of "ar", so it can be a program name with args.
6439 set dummy ar; ac_word=$2
6440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6441 $as_echo_n "checking for $ac_word... " >&6; }
6442 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6443 $as_echo_n "(cached) " >&6
6444 else
6445 if test -n "$ac_ct_AR"; then
6446 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6447 else
6448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6449 for as_dir in $PATH
6450 do
6451 IFS=$as_save_IFS
6452 test -z "$as_dir" && as_dir=.
6453 for ac_exec_ext in '' $ac_executable_extensions; do
6454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6455 ac_cv_prog_ac_ct_AR="ar"
6456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6457 break 2
6458 fi
6459 done
6460 done
6461 IFS=$as_save_IFS
6462
6463 fi
6464 fi
6465 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6466 if test -n "$ac_ct_AR"; then
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6468 $as_echo "$ac_ct_AR" >&6; }
6469 else
6470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6471 $as_echo "no" >&6; }
6472 fi
6473
6474 if test "x$ac_ct_AR" = x; then
6475 AR="false"
6476 else
6477 case $cross_compiling:$ac_tool_warned in
6478 yes:)
6479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6481 ac_tool_warned=yes ;;
6482 esac
6483 AR=$ac_ct_AR
6484 fi
6485 else
6486 AR="$ac_cv_prog_AR"
6487 fi
6488
6489 if test -n "$ac_tool_prefix"; then
6490 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6491 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6493 $as_echo_n "checking for $ac_word... " >&6; }
6494 if ${ac_cv_prog_RANLIB+:} false; then :
6495 $as_echo_n "(cached) " >&6
6496 else
6497 if test -n "$RANLIB"; then
6498 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6499 else
6500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6501 for as_dir in $PATH
6502 do
6503 IFS=$as_save_IFS
6504 test -z "$as_dir" && as_dir=.
6505 for ac_exec_ext in '' $ac_executable_extensions; do
6506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6507 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6509 break 2
6510 fi
6511 done
6512 done
6513 IFS=$as_save_IFS
6514
6515 fi
6516 fi
6517 RANLIB=$ac_cv_prog_RANLIB
6518 if test -n "$RANLIB"; then
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6520 $as_echo "$RANLIB" >&6; }
6521 else
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6523 $as_echo "no" >&6; }
6524 fi
6525
6526
6527 fi
6528 if test -z "$ac_cv_prog_RANLIB"; then
6529 ac_ct_RANLIB=$RANLIB
6530 # Extract the first word of "ranlib", so it can be a program name with args.
6531 set dummy ranlib; ac_word=$2
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6533 $as_echo_n "checking for $ac_word... " >&6; }
6534 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6535 $as_echo_n "(cached) " >&6
6536 else
6537 if test -n "$ac_ct_RANLIB"; then
6538 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6539 else
6540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6541 for as_dir in $PATH
6542 do
6543 IFS=$as_save_IFS
6544 test -z "$as_dir" && as_dir=.
6545 for ac_exec_ext in '' $ac_executable_extensions; do
6546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6547 ac_cv_prog_ac_ct_RANLIB="ranlib"
6548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6549 break 2
6550 fi
6551 done
6552 done
6553 IFS=$as_save_IFS
6554
6555 fi
6556 fi
6557 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6558 if test -n "$ac_ct_RANLIB"; then
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6560 $as_echo "$ac_ct_RANLIB" >&6; }
6561 else
6562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6563 $as_echo "no" >&6; }
6564 fi
6565
6566 if test "x$ac_ct_RANLIB" = x; then
6567 RANLIB=":"
6568 else
6569 case $cross_compiling:$ac_tool_warned in
6570 yes:)
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6573 ac_tool_warned=yes ;;
6574 esac
6575 RANLIB=$ac_ct_RANLIB
6576 fi
6577 else
6578 RANLIB="$ac_cv_prog_RANLIB"
6579 fi
6580
6581 if test -n "$ac_tool_prefix"; then
6582 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6583 set dummy ${ac_tool_prefix}strip; ac_word=$2
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6585 $as_echo_n "checking for $ac_word... " >&6; }
6586 if ${ac_cv_prog_STRIP+:} false; then :
6587 $as_echo_n "(cached) " >&6
6588 else
6589 if test -n "$STRIP"; then
6590 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6591 else
6592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6593 for as_dir in $PATH
6594 do
6595 IFS=$as_save_IFS
6596 test -z "$as_dir" && as_dir=.
6597 for ac_exec_ext in '' $ac_executable_extensions; do
6598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 break 2
6602 fi
6603 done
6604 done
6605 IFS=$as_save_IFS
6606
6607 fi
6608 fi
6609 STRIP=$ac_cv_prog_STRIP
6610 if test -n "$STRIP"; then
6611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6612 $as_echo "$STRIP" >&6; }
6613 else
6614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6615 $as_echo "no" >&6; }
6616 fi
6617
6618
6619 fi
6620 if test -z "$ac_cv_prog_STRIP"; then
6621 ac_ct_STRIP=$STRIP
6622 # Extract the first word of "strip", so it can be a program name with args.
6623 set dummy strip; ac_word=$2
6624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6625 $as_echo_n "checking for $ac_word... " >&6; }
6626 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6627 $as_echo_n "(cached) " >&6
6628 else
6629 if test -n "$ac_ct_STRIP"; then
6630 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6631 else
6632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6633 for as_dir in $PATH
6634 do
6635 IFS=$as_save_IFS
6636 test -z "$as_dir" && as_dir=.
6637 for ac_exec_ext in '' $ac_executable_extensions; do
6638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6639 ac_cv_prog_ac_ct_STRIP="strip"
6640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6641 break 2
6642 fi
6643 done
6644 done
6645 IFS=$as_save_IFS
6646
6647 fi
6648 fi
6649 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6650 if test -n "$ac_ct_STRIP"; then
6651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6652 $as_echo "$ac_ct_STRIP" >&6; }
6653 else
6654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6655 $as_echo "no" >&6; }
6656 fi
6657
6658 if test "x$ac_ct_STRIP" = x; then
6659 STRIP=":"
6660 else
6661 case $cross_compiling:$ac_tool_warned in
6662 yes:)
6663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6665 ac_tool_warned=yes ;;
6666 esac
6667 STRIP=$ac_ct_STRIP
6668 fi
6669 else
6670 STRIP="$ac_cv_prog_STRIP"
6671 fi
6672
6673
6674 old_CC="$CC"
6675 old_CFLAGS="$CFLAGS"
6676
6677 # Set sane defaults for various variables
6678 test -z "$AR" && AR=ar
6679 test -z "$AR_FLAGS" && AR_FLAGS=cru
6680 test -z "$AS" && AS=as
6681 test -z "$CC" && CC=cc
6682 test -z "$LTCC" && LTCC=$CC
6683 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6684 test -z "$DLLTOOL" && DLLTOOL=dlltool
6685 test -z "$LD" && LD=ld
6686 test -z "$LN_S" && LN_S="ln -s"
6687 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6688 test -z "$NM" && NM=nm
6689 test -z "$SED" && SED=sed
6690 test -z "$OBJDUMP" && OBJDUMP=objdump
6691 test -z "$RANLIB" && RANLIB=:
6692 test -z "$STRIP" && STRIP=:
6693 test -z "$ac_objext" && ac_objext=o
6694
6695 # Determine commands to create old-style static archives.
6696 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
6697 old_postinstall_cmds='chmod 644 $oldlib'
6698 old_postuninstall_cmds=
6699
6700 if test -n "$RANLIB"; then
6701 case $host_os in
6702 openbsd*)
6703 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6704 ;;
6705 *)
6706 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6707 ;;
6708 esac
6709 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6710 fi
6711
6712 for cc_temp in $compiler""; do
6713 case $cc_temp in
6714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6716 \-*) ;;
6717 *) break;;
6718 esac
6719 done
6720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6721
6722
6723 # Only perform the check for file, if the check method requires it
6724 case $deplibs_check_method in
6725 file_magic*)
6726 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
6728 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6729 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6730 $as_echo_n "(cached) " >&6
6731 else
6732 case $MAGIC_CMD in
6733 [\\/*] | ?:[\\/]*)
6734 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6735 ;;
6736 *)
6737 lt_save_MAGIC_CMD="$MAGIC_CMD"
6738 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6739 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6740 for ac_dir in $ac_dummy; do
6741 IFS="$lt_save_ifs"
6742 test -z "$ac_dir" && ac_dir=.
6743 if test -f $ac_dir/${ac_tool_prefix}file; then
6744 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6745 if test -n "$file_magic_test_file"; then
6746 case $deplibs_check_method in
6747 "file_magic "*)
6748 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6749 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6750 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6751 $EGREP "$file_magic_regex" > /dev/null; then
6752 :
6753 else
6754 cat <<EOF 1>&2
6755
6756 *** Warning: the command libtool uses to detect shared libraries,
6757 *** $file_magic_cmd, produces output that libtool cannot recognize.
6758 *** The result is that libtool may fail to recognize shared libraries
6759 *** as such. This will affect the creation of libtool libraries that
6760 *** depend on shared libraries, but programs linked with such libtool
6761 *** libraries will work regardless of this problem. Nevertheless, you
6762 *** may want to report the problem to your system manager and/or to
6763 *** [email protected]
6764
6765 EOF
6766 fi ;;
6767 esac
6768 fi
6769 break
6770 fi
6771 done
6772 IFS="$lt_save_ifs"
6773 MAGIC_CMD="$lt_save_MAGIC_CMD"
6774 ;;
6775 esac
6776 fi
6777
6778 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6779 if test -n "$MAGIC_CMD"; then
6780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6781 $as_echo "$MAGIC_CMD" >&6; }
6782 else
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6784 $as_echo "no" >&6; }
6785 fi
6786
6787 if test -z "$lt_cv_path_MAGIC_CMD"; then
6788 if test -n "$ac_tool_prefix"; then
6789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
6790 $as_echo_n "checking for file... " >&6; }
6791 if ${lt_cv_path_MAGIC_CMD+:} false; then :
6792 $as_echo_n "(cached) " >&6
6793 else
6794 case $MAGIC_CMD in
6795 [\\/*] | ?:[\\/]*)
6796 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6797 ;;
6798 *)
6799 lt_save_MAGIC_CMD="$MAGIC_CMD"
6800 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6801 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6802 for ac_dir in $ac_dummy; do
6803 IFS="$lt_save_ifs"
6804 test -z "$ac_dir" && ac_dir=.
6805 if test -f $ac_dir/file; then
6806 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6807 if test -n "$file_magic_test_file"; then
6808 case $deplibs_check_method in
6809 "file_magic "*)
6810 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6811 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6812 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6813 $EGREP "$file_magic_regex" > /dev/null; then
6814 :
6815 else
6816 cat <<EOF 1>&2
6817
6818 *** Warning: the command libtool uses to detect shared libraries,
6819 *** $file_magic_cmd, produces output that libtool cannot recognize.
6820 *** The result is that libtool may fail to recognize shared libraries
6821 *** as such. This will affect the creation of libtool libraries that
6822 *** depend on shared libraries, but programs linked with such libtool
6823 *** libraries will work regardless of this problem. Nevertheless, you
6824 *** may want to report the problem to your system manager and/or to
6825 *** [email protected]
6826
6827 EOF
6828 fi ;;
6829 esac
6830 fi
6831 break
6832 fi
6833 done
6834 IFS="$lt_save_ifs"
6835 MAGIC_CMD="$lt_save_MAGIC_CMD"
6836 ;;
6837 esac
6838 fi
6839
6840 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6841 if test -n "$MAGIC_CMD"; then
6842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
6843 $as_echo "$MAGIC_CMD" >&6; }
6844 else
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6846 $as_echo "no" >&6; }
6847 fi
6848
6849 else
6850 MAGIC_CMD=:
6851 fi
6852 fi
6853
6854 fi
6855 ;;
6856 esac
6857
6858 enable_dlopen=no
6859 enable_win32_dll=no
6860
6861 # Check whether --enable-libtool-lock was given.
6862 if test "${enable_libtool_lock+set}" = set; then :
6863 enableval=$enable_libtool_lock;
6864 fi
6865
6866 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6867
6868
6869 # Check whether --with-pic was given.
6870 if test "${with_pic+set}" = set; then :
6871 withval=$with_pic; pic_mode="$withval"
6872 else
6873 pic_mode=default
6874 fi
6875
6876 test -z "$pic_mode" && pic_mode=default
6877
6878 # Use C for the default configuration in the libtool script
6879 tagname=
6880 lt_save_CC="$CC"
6881 ac_ext=c
6882 ac_cpp='$CPP $CPPFLAGS'
6883 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6884 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6885 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6886
6887
6888 # Source file extension for C test sources.
6889 ac_ext=c
6890
6891 # Object file extension for compiled C test sources.
6892 objext=o
6893 objext=$objext
6894
6895 # Code to be used in simple compile tests
6896 lt_simple_compile_test_code="int some_variable = 0;\n"
6897
6898 # Code to be used in simple link tests
6899 lt_simple_link_test_code='int main(){return(0);}\n'
6900
6901
6902 # If no C compiler was specified, use CC.
6903 LTCC=${LTCC-"$CC"}
6904
6905 # If no C compiler flags were specified, use CFLAGS.
6906 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6907
6908 # Allow CC to be a program name with arguments.
6909 compiler=$CC
6910
6911
6912 # save warnings/boilerplate of simple test code
6913 ac_outfile=conftest.$ac_objext
6914 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
6915 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6916 _lt_compiler_boilerplate=`cat conftest.err`
6917 $rm conftest*
6918
6919 ac_outfile=conftest.$ac_objext
6920 printf "$lt_simple_link_test_code" >conftest.$ac_ext
6921 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6922 _lt_linker_boilerplate=`cat conftest.err`
6923 $rm conftest*
6924
6925
6926
6927 lt_prog_compiler_no_builtin_flag=
6928
6929 if test "$GCC" = yes; then
6930 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6931
6932
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6934 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
6935 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
6936 $as_echo_n "(cached) " >&6
6937 else
6938 lt_cv_prog_compiler_rtti_exceptions=no
6939 ac_outfile=conftest.$ac_objext
6940 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
6941 lt_compiler_flag="-fno-rtti -fno-exceptions"
6942 # Insert the option either (1) after the last *FLAGS variable, or
6943 # (2) before a word containing "conftest.", or (3) at the end.
6944 # Note that $ac_compile itself does not contain backslashes and begins
6945 # with a dollar sign (not a hyphen), so the echo should work correctly.
6946 # The option is referenced via a variable to avoid confusing sed.
6947 lt_compile=`echo "$ac_compile" | $SED \
6948 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6949 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6950 -e 's:$: $lt_compiler_flag:'`
6951 (eval echo "\"\$as_me:6951: $lt_compile\"" >&5)
6952 (eval "$lt_compile" 2>conftest.err)
6953 ac_status=$?
6954 cat conftest.err >&5
6955 echo "$as_me:6955: \$? = $ac_status" >&5
6956 if (exit $ac_status) && test -s "$ac_outfile"; then
6957 # The compiler can only warn and ignore the option if not recognized
6958 # So say no if there are warnings other than the usual output.
6959 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6960 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6961 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6962 lt_cv_prog_compiler_rtti_exceptions=yes
6963 fi
6964 fi
6965 $rm conftest*
6966
6967 fi
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6969 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
6970
6971 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6972 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6973 else
6974 :
6975 fi
6976
6977 fi
6978
6979 lt_prog_compiler_wl=
6980 lt_prog_compiler_pic=
6981 lt_prog_compiler_static=
6982
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
6984 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
6985
6986 if test "$GCC" = yes; then
6987 lt_prog_compiler_wl='-Wl,'
6988 lt_prog_compiler_static='-static'
6989
6990 case $host_os in
6991 aix*)
6992 # All AIX code is PIC.
6993 if test "$host_cpu" = ia64; then
6994 # AIX 5 now supports IA64 processor
6995 lt_prog_compiler_static='-Bstatic'
6996 fi
6997 ;;
6998
6999 amigaos*)
7000 # FIXME: we need at least 68020 code to build shared libraries, but
7001 # adding the `-m68020' flag to GCC prevents building anything better,
7002 # like `-m68040'.
7003 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7004 ;;
7005
7006 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7007 # PIC is the default for these OSes.
7008 ;;
7009
7010 mingw* | pw32* | os2*)
7011 # This hack is so that the source file can tell whether it is being
7012 # built for inclusion in a dll (and should export symbols for example).
7013 lt_prog_compiler_pic='-DDLL_EXPORT'
7014 ;;
7015
7016 darwin* | rhapsody*)
7017 # PIC is the default on this platform
7018 # Common symbols not allowed in MH_DYLIB files
7019 lt_prog_compiler_pic='-fno-common'
7020 ;;
7021
7022 interix3*)
7023 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7024 # Instead, we relocate shared libraries at runtime.
7025 ;;
7026
7027 msdosdjgpp*)
7028 # Just because we use GCC doesn't mean we suddenly get shared libraries
7029 # on systems that don't support them.
7030 lt_prog_compiler_can_build_shared=no
7031 enable_shared=no
7032 ;;
7033
7034 sysv4*MP*)
7035 if test -d /usr/nec; then
7036 lt_prog_compiler_pic=-Kconform_pic
7037 fi
7038 ;;
7039
7040 hpux*)
7041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7042 # not for PA HP-UX.
7043 case $host_cpu in
7044 hppa*64*|ia64*)
7045 # +Z the default
7046 ;;
7047 *)
7048 lt_prog_compiler_pic='-fPIC'
7049 ;;
7050 esac
7051 ;;
7052
7053 *)
7054 lt_prog_compiler_pic='-fPIC'
7055 ;;
7056 esac
7057 else
7058 # PORTME Check for flag to pass linker flags through the system compiler.
7059 case $host_os in
7060 aix*)
7061 lt_prog_compiler_wl='-Wl,'
7062 if test "$host_cpu" = ia64; then
7063 # AIX 5 now supports IA64 processor
7064 lt_prog_compiler_static='-Bstatic'
7065 else
7066 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7067 fi
7068 ;;
7069 darwin*)
7070 # PIC is the default on this platform
7071 # Common symbols not allowed in MH_DYLIB files
7072 case $cc_basename in
7073 xlc*)
7074 lt_prog_compiler_pic='-qnocommon'
7075 lt_prog_compiler_wl='-Wl,'
7076 ;;
7077 esac
7078 ;;
7079
7080 mingw* | pw32* | os2*)
7081 # This hack is so that the source file can tell whether it is being
7082 # built for inclusion in a dll (and should export symbols for example).
7083 lt_prog_compiler_pic='-DDLL_EXPORT'
7084 ;;
7085
7086 hpux9* | hpux10* | hpux11*)
7087 lt_prog_compiler_wl='-Wl,'
7088 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7089 # not for PA HP-UX.
7090 case $host_cpu in
7091 hppa*64*|ia64*)
7092 # +Z the default
7093 ;;
7094 *)
7095 lt_prog_compiler_pic='+Z'
7096 ;;
7097 esac
7098 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7099 lt_prog_compiler_static='${wl}-a ${wl}archive'
7100 ;;
7101
7102 irix5* | irix6* | nonstopux*)
7103 lt_prog_compiler_wl='-Wl,'
7104 # PIC (with -KPIC) is the default.
7105 lt_prog_compiler_static='-non_shared'
7106 ;;
7107
7108 newsos6)
7109 lt_prog_compiler_pic='-KPIC'
7110 lt_prog_compiler_static='-Bstatic'
7111 ;;
7112
7113 linux*)
7114 case $cc_basename in
7115 icc* | ecc*)
7116 lt_prog_compiler_wl='-Wl,'
7117 lt_prog_compiler_pic='-KPIC'
7118 lt_prog_compiler_static='-static'
7119 ;;
7120 pgcc* | pgf77* | pgf90* | pgf95*)
7121 # Portland Group compilers (*not* the Pentium gcc compiler,
7122 # which looks to be a dead project)
7123 lt_prog_compiler_wl='-Wl,'
7124 lt_prog_compiler_pic='-fpic'
7125 lt_prog_compiler_static='-Bstatic'
7126 ;;
7127 ccc*)
7128 lt_prog_compiler_wl='-Wl,'
7129 # All Alpha code is PIC.
7130 lt_prog_compiler_static='-non_shared'
7131 ;;
7132 esac
7133 ;;
7134
7135 osf3* | osf4* | osf5*)
7136 lt_prog_compiler_wl='-Wl,'
7137 # All OSF/1 code is PIC.
7138 lt_prog_compiler_static='-non_shared'
7139 ;;
7140
7141 solaris*)
7142 lt_prog_compiler_pic='-KPIC'
7143 lt_prog_compiler_static='-Bstatic'
7144 case $cc_basename in
7145 f77* | f90* | f95*)
7146 lt_prog_compiler_wl='-Qoption ld ';;
7147 *)
7148 lt_prog_compiler_wl='-Wl,';;
7149 esac
7150 ;;
7151
7152 sunos4*)
7153 lt_prog_compiler_wl='-Qoption ld '
7154 lt_prog_compiler_pic='-PIC'
7155 lt_prog_compiler_static='-Bstatic'
7156 ;;
7157
7158 sysv4 | sysv4.2uw2* | sysv4.3*)
7159 lt_prog_compiler_wl='-Wl,'
7160 lt_prog_compiler_pic='-KPIC'
7161 lt_prog_compiler_static='-Bstatic'
7162 ;;
7163
7164 sysv4*MP*)
7165 if test -d /usr/nec ;then
7166 lt_prog_compiler_pic='-Kconform_pic'
7167 lt_prog_compiler_static='-Bstatic'
7168 fi
7169 ;;
7170
7171 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7172 lt_prog_compiler_wl='-Wl,'
7173 lt_prog_compiler_pic='-KPIC'
7174 lt_prog_compiler_static='-Bstatic'
7175 ;;
7176
7177 unicos*)
7178 lt_prog_compiler_wl='-Wl,'
7179 lt_prog_compiler_can_build_shared=no
7180 ;;
7181
7182 uts4*)
7183 lt_prog_compiler_pic='-pic'
7184 lt_prog_compiler_static='-Bstatic'
7185 ;;
7186
7187 *)
7188 lt_prog_compiler_can_build_shared=no
7189 ;;
7190 esac
7191 fi
7192
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7194 $as_echo "$lt_prog_compiler_pic" >&6; }
7195
7196 #
7197 # Check to make sure the PIC flag actually works.
7198 #
7199 if test -n "$lt_prog_compiler_pic"; then
7200
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7202 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7203 if ${lt_prog_compiler_pic_works+:} false; then :
7204 $as_echo_n "(cached) " >&6
7205 else
7206 lt_prog_compiler_pic_works=no
7207 ac_outfile=conftest.$ac_objext
7208 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7209 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7210 # Insert the option either (1) after the last *FLAGS variable, or
7211 # (2) before a word containing "conftest.", or (3) at the end.
7212 # Note that $ac_compile itself does not contain backslashes and begins
7213 # with a dollar sign (not a hyphen), so the echo should work correctly.
7214 # The option is referenced via a variable to avoid confusing sed.
7215 lt_compile=`echo "$ac_compile" | $SED \
7216 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7217 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7218 -e 's:$: $lt_compiler_flag:'`
7219 (eval echo "\"\$as_me:7219: $lt_compile\"" >&5)
7220 (eval "$lt_compile" 2>conftest.err)
7221 ac_status=$?
7222 cat conftest.err >&5
7223 echo "$as_me:7223: \$? = $ac_status" >&5
7224 if (exit $ac_status) && test -s "$ac_outfile"; then
7225 # The compiler can only warn and ignore the option if not recognized
7226 # So say no if there are warnings other than the usual output.
7227 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7228 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7229 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7230 lt_prog_compiler_pic_works=yes
7231 fi
7232 fi
7233 $rm conftest*
7234
7235 fi
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7237 $as_echo "$lt_prog_compiler_pic_works" >&6; }
7238
7239 if test x"$lt_prog_compiler_pic_works" = xyes; then
7240 case $lt_prog_compiler_pic in
7241 "" | " "*) ;;
7242 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7243 esac
7244 else
7245 lt_prog_compiler_pic=
7246 lt_prog_compiler_can_build_shared=no
7247 fi
7248
7249 fi
7250 case $host_os in
7251 # For platforms which do not support PIC, -DPIC is meaningless:
7252 *djgpp*)
7253 lt_prog_compiler_pic=
7254 ;;
7255 *)
7256 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7257 ;;
7258 esac
7259
7260 #
7261 # Check to make sure the static flag actually works.
7262 #
7263 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7265 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7266 if ${lt_prog_compiler_static_works+:} false; then :
7267 $as_echo_n "(cached) " >&6
7268 else
7269 lt_prog_compiler_static_works=no
7270 save_LDFLAGS="$LDFLAGS"
7271 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7272 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7273 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7274 # The linker can only warn and ignore the option if not recognized
7275 # So say no if there are warnings
7276 if test -s conftest.err; then
7277 # Append any errors to the config.log.
7278 cat conftest.err 1>&5
7279 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7280 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7281 if diff conftest.exp conftest.er2 >/dev/null; then
7282 lt_prog_compiler_static_works=yes
7283 fi
7284 else
7285 lt_prog_compiler_static_works=yes
7286 fi
7287 fi
7288 $rm conftest*
7289 LDFLAGS="$save_LDFLAGS"
7290
7291 fi
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7293 $as_echo "$lt_prog_compiler_static_works" >&6; }
7294
7295 if test x"$lt_prog_compiler_static_works" = xyes; then
7296 :
7297 else
7298 lt_prog_compiler_static=
7299 fi
7300
7301
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7303 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7304 if ${lt_cv_prog_compiler_c_o+:} false; then :
7305 $as_echo_n "(cached) " >&6
7306 else
7307 lt_cv_prog_compiler_c_o=no
7308 $rm -r conftest 2>/dev/null
7309 mkdir conftest
7310 cd conftest
7311 mkdir out
7312 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7313
7314 lt_compiler_flag="-o out/conftest2.$ac_objext"
7315 # Insert the option either (1) after the last *FLAGS variable, or
7316 # (2) before a word containing "conftest.", or (3) at the end.
7317 # Note that $ac_compile itself does not contain backslashes and begins
7318 # with a dollar sign (not a hyphen), so the echo should work correctly.
7319 lt_compile=`echo "$ac_compile" | $SED \
7320 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7321 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7322 -e 's:$: $lt_compiler_flag:'`
7323 (eval echo "\"\$as_me:7323: $lt_compile\"" >&5)
7324 (eval "$lt_compile" 2>out/conftest.err)
7325 ac_status=$?
7326 cat out/conftest.err >&5
7327 echo "$as_me:7327: \$? = $ac_status" >&5
7328 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7329 then
7330 # The compiler can only warn and ignore the option if not recognized
7331 # So say no if there are warnings
7332 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7333 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7334 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7335 lt_cv_prog_compiler_c_o=yes
7336 fi
7337 fi
7338 chmod u+w . 2>&5
7339 $rm conftest*
7340 # SGI C++ compiler will create directory out/ii_files/ for
7341 # template instantiation
7342 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7343 $rm out/* && rmdir out
7344 cd ..
7345 rmdir conftest
7346 $rm conftest*
7347
7348 fi
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
7350 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7351
7352
7353 hard_links="nottested"
7354 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7355 # do not overwrite the value of need_locks provided by the user
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
7357 $as_echo_n "checking if we can lock with hard links... " >&6; }
7358 hard_links=yes
7359 $rm conftest*
7360 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7361 touch conftest.a
7362 ln conftest.a conftest.b 2>&5 || hard_links=no
7363 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
7365 $as_echo "$hard_links" >&6; }
7366 if test "$hard_links" = no; then
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7368 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7369 need_locks=warn
7370 fi
7371 else
7372 need_locks=no
7373 fi
7374
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7376 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
7377
7378 runpath_var=
7379 allow_undefined_flag=
7380 enable_shared_with_static_runtimes=no
7381 archive_cmds=
7382 archive_expsym_cmds=
7383 old_archive_From_new_cmds=
7384 old_archive_from_expsyms_cmds=
7385 export_dynamic_flag_spec=
7386 whole_archive_flag_spec=
7387 thread_safe_flag_spec=
7388 hardcode_libdir_flag_spec=
7389 hardcode_libdir_flag_spec_ld=
7390 hardcode_libdir_separator=
7391 hardcode_direct=no
7392 hardcode_minus_L=no
7393 hardcode_shlibpath_var=unsupported
7394 link_all_deplibs=unknown
7395 hardcode_automatic=no
7396 module_cmds=
7397 module_expsym_cmds=
7398 always_export_symbols=no
7399 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7400 # include_expsyms should be a list of space-separated symbols to be *always*
7401 # included in the symbol list
7402 include_expsyms=
7403 # exclude_expsyms can be an extended regexp of symbols to exclude
7404 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7405 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7406 # as well as any symbol that contains `d'.
7407 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
7408 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7409 # platforms (ab)use it in PIC code, but their linkers get confused if
7410 # the symbol is explicitly referenced. Since portable code cannot
7411 # rely on this symbol name, it's probably fine to never include it in
7412 # preloaded symbol tables.
7413 extract_expsyms_cmds=
7414 # Just being paranoid about ensuring that cc_basename is set.
7415 for cc_temp in $compiler""; do
7416 case $cc_temp in
7417 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7418 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7419 \-*) ;;
7420 *) break;;
7421 esac
7422 done
7423 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7424
7425 case $host_os in
7426 cygwin* | mingw* | pw32*)
7427 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7428 # When not using gcc, we currently assume that we are using
7429 # Microsoft Visual C++.
7430 if test "$GCC" != yes; then
7431 with_gnu_ld=no
7432 fi
7433 ;;
7434 interix*)
7435 # we just hope/assume this is gcc and not c89 (= MSVC++)
7436 with_gnu_ld=yes
7437 ;;
7438 openbsd*)
7439 with_gnu_ld=no
7440 ;;
7441 esac
7442
7443 ld_shlibs=yes
7444 if test "$with_gnu_ld" = yes; then
7445 # If archive_cmds runs LD, not CC, wlarc should be empty
7446 wlarc='${wl}'
7447
7448 # Set some defaults for GNU ld with shared library support. These
7449 # are reset later if shared libraries are not supported. Putting them
7450 # here allows them to be overridden if necessary.
7451 runpath_var=LD_RUN_PATH
7452 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7453 export_dynamic_flag_spec='${wl}--export-dynamic'
7454 # ancient GNU ld didn't support --whole-archive et. al.
7455 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7456 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7457 else
7458 whole_archive_flag_spec=
7459 fi
7460 supports_anon_versioning=no
7461 case `$LD -v 2>/dev/null` in
7462 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7463 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7464 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7465 *\ 2.11.*) ;; # other 2.11 versions
7466 *) supports_anon_versioning=yes ;;
7467 esac
7468
7469 # See if GNU ld supports shared libraries.
7470 case $host_os in
7471 aix3* | aix4* | aix5*)
7472 # On AIX/PPC, the GNU linker is very broken
7473 if test "$host_cpu" != ia64; then
7474 ld_shlibs=no
7475 cat <<EOF 1>&2
7476
7477 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7478 *** to be unable to reliably create shared libraries on AIX.
7479 *** Therefore, libtool is disabling shared libraries support. If you
7480 *** really care for shared libraries, you may want to modify your PATH
7481 *** so that a non-GNU linker is found, and then restart.
7482
7483 EOF
7484 fi
7485 ;;
7486
7487 amigaos*)
7488 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)'
7489 hardcode_libdir_flag_spec='-L$libdir'
7490 hardcode_minus_L=yes
7491
7492 # Samuel A. Falvo II <[email protected]> reports
7493 # that the semantics of dynamic libraries on AmigaOS, at least up
7494 # to version 4, is to share data among multiple programs linked
7495 # with the same dynamic library. Since this doesn't match the
7496 # behavior of shared libraries on other platforms, we can't use
7497 # them.
7498 ld_shlibs=no
7499 ;;
7500
7501 beos*)
7502 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7503 allow_undefined_flag=unsupported
7504 # Joseph Beckenbach <[email protected]> says some releases of gcc
7505 # support --undefined. This deserves some investigation. FIXME
7506 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7507 else
7508 ld_shlibs=no
7509 fi
7510 ;;
7511
7512 cygwin* | mingw* | pw32*)
7513 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7514 # as there is no search path for DLLs.
7515 hardcode_libdir_flag_spec='-L$libdir'
7516 allow_undefined_flag=unsupported
7517 always_export_symbols=no
7518 enable_shared_with_static_runtimes=yes
7519 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
7520
7521 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7522 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7523 # If the export-symbols file already is a .def file (1st line
7524 # is EXPORTS), use it as is; otherwise, prepend...
7525 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7526 cp $export_symbols $output_objdir/$soname.def;
7527 else
7528 echo EXPORTS > $output_objdir/$soname.def;
7529 cat $export_symbols >> $output_objdir/$soname.def;
7530 fi~
7531 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7532 else
7533 ld_shlibs=no
7534 fi
7535 ;;
7536
7537 interix3*)
7538 hardcode_direct=no
7539 hardcode_shlibpath_var=no
7540 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7541 export_dynamic_flag_spec='${wl}-E'
7542 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7543 # Instead, shared libraries are loaded at an image base (0x10000000 by
7544 # default) and relocated if they conflict, which is a slow very memory
7545 # consuming and fragmenting process. To avoid this, we pick a random,
7546 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7547 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7548 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7549 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'
7550 ;;
7551
7552 linux*)
7553 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7554 tmp_addflag=
7555 case $cc_basename,$host_cpu in
7556 pgcc*) # Portland Group C compiler
7557 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7558 tmp_addflag=' $pic_flag'
7559 ;;
7560 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7561 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7562 tmp_addflag=' $pic_flag -Mnomain' ;;
7563 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7564 tmp_addflag=' -i_dynamic' ;;
7565 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7566 tmp_addflag=' -i_dynamic -nofor_main' ;;
7567 ifc* | ifort*) # Intel Fortran compiler
7568 tmp_addflag=' -nofor_main' ;;
7569 esac
7570 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7571
7572 if test $supports_anon_versioning = yes; then
7573 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7575 $echo "local: *; };" >> $output_objdir/$libname.ver~
7576 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7577 fi
7578 else
7579 ld_shlibs=no
7580 fi
7581 ;;
7582
7583 netbsd*)
7584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7585 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7586 wlarc=
7587 else
7588 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7589 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7590 fi
7591 ;;
7592
7593 solaris*)
7594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7595 ld_shlibs=no
7596 cat <<EOF 1>&2
7597
7598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7599 *** create shared libraries on Solaris systems. Therefore, libtool
7600 *** is disabling shared libraries support. We urge you to upgrade GNU
7601 *** binutils to release 2.9.1 or newer. Another option is to modify
7602 *** your PATH or compiler configuration so that the native linker is
7603 *** used, and then restart.
7604
7605 EOF
7606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7607 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7608 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7609 else
7610 ld_shlibs=no
7611 fi
7612 ;;
7613
7614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7615 case `$LD -v 2>&1` in
7616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7617 ld_shlibs=no
7618 cat <<_LT_EOF 1>&2
7619
7620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7621 *** reliably create shared libraries on SCO systems. Therefore, libtool
7622 *** is disabling shared libraries support. We urge you to upgrade GNU
7623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7624 *** your PATH or compiler configuration so that the native linker is
7625 *** used, and then restart.
7626
7627 _LT_EOF
7628 ;;
7629 *)
7630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7631 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7632 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7633 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7634 else
7635 ld_shlibs=no
7636 fi
7637 ;;
7638 esac
7639 ;;
7640
7641 sunos4*)
7642 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7643 wlarc=
7644 hardcode_direct=yes
7645 hardcode_shlibpath_var=no
7646 ;;
7647
7648 *)
7649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7650 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7651 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7652 else
7653 ld_shlibs=no
7654 fi
7655 ;;
7656 esac
7657
7658 if test "$ld_shlibs" = no; then
7659 runpath_var=
7660 hardcode_libdir_flag_spec=
7661 export_dynamic_flag_spec=
7662 whole_archive_flag_spec=
7663 fi
7664 else
7665 # PORTME fill in a description of your system's linker (not GNU ld)
7666 case $host_os in
7667 aix3*)
7668 allow_undefined_flag=unsupported
7669 always_export_symbols=yes
7670 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'
7671 # Note: this linker hardcodes the directories in LIBPATH if there
7672 # are no directories specified by -L.
7673 hardcode_minus_L=yes
7674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7675 # Neither direct hardcoding nor static linking is supported with a
7676 # broken collect2.
7677 hardcode_direct=unsupported
7678 fi
7679 ;;
7680
7681 aix4* | aix5*)
7682 if test "$host_cpu" = ia64; then
7683 # On IA64, the linker does run time linking by default, so we don't
7684 # have to do anything special.
7685 aix_use_runtimelinking=no
7686 exp_sym_flag='-Bexport'
7687 no_entry_flag=""
7688 else
7689 # If we're using GNU nm, then we don't want the "-C" option.
7690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7692 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7693 else
7694 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'
7695 fi
7696 aix_use_runtimelinking=no
7697
7698 # Test if we are trying to use run time linking or normal
7699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7700 # need to do runtime linking.
7701 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
7702 for ld_flag in $LDFLAGS; do
7703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7704 aix_use_runtimelinking=yes
7705 break
7706 fi
7707 done
7708 ;;
7709 esac
7710
7711 exp_sym_flag='-bexport'
7712 no_entry_flag='-bnoentry'
7713 fi
7714
7715 # When large executables or shared objects are built, AIX ld can
7716 # have problems creating the table of contents. If linking a library
7717 # or program results in "error TOC overflow" add -mminimal-toc to
7718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7720
7721 archive_cmds=''
7722 hardcode_direct=yes
7723 hardcode_libdir_separator=':'
7724 link_all_deplibs=yes
7725
7726 if test "$GCC" = yes; then
7727 case $host_os in aix4.[012]|aix4.[012].*)
7728 # We only want to do this on AIX 4.2 and lower, the check
7729 # below for broken collect2 doesn't work under 4.3+
7730 collect2name=`${CC} -print-prog-name=collect2`
7731 if test -f "$collect2name" && \
7732 strings "$collect2name" | grep resolve_lib_name >/dev/null
7733 then
7734 # We have reworked collect2
7735 hardcode_direct=yes
7736 else
7737 # We have old collect2
7738 hardcode_direct=unsupported
7739 # It fails to find uninstalled libraries when the uninstalled
7740 # path is not listed in the libpath. Setting hardcode_minus_L
7741 # to unsupported forces relinking
7742 hardcode_minus_L=yes
7743 hardcode_libdir_flag_spec='-L$libdir'
7744 hardcode_libdir_separator=
7745 fi
7746 ;;
7747 esac
7748 shared_flag='-shared'
7749 if test "$aix_use_runtimelinking" = yes; then
7750 shared_flag="$shared_flag "'${wl}-G'
7751 fi
7752 else
7753 # not using gcc
7754 if test "$host_cpu" = ia64; then
7755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7756 # chokes on -Wl,-G. The following line is correct:
7757 shared_flag='-G'
7758 else
7759 if test "$aix_use_runtimelinking" = yes; then
7760 shared_flag='${wl}-G'
7761 else
7762 shared_flag='${wl}-bM:SRE'
7763 fi
7764 fi
7765 fi
7766
7767 # It seems that -bexpall does not export symbols beginning with
7768 # underscore (_), so it is better to generate a list of symbols to export.
7769 always_export_symbols=yes
7770 if test "$aix_use_runtimelinking" = yes; then
7771 # Warning - without using the other runtime loading flags (-brtl),
7772 # -berok will link without error, but may produce a broken library.
7773 allow_undefined_flag='-berok'
7774 # Determine the default libpath from the value encoded in an empty executable.
7775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7776 /* end confdefs.h. */
7777
7778 int
7779 main ()
7780 {
7781
7782 ;
7783 return 0;
7784 }
7785 _ACEOF
7786 if ac_fn_c_try_link "$LINENO"; then :
7787
7788 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7789 }'`
7790 # Check for a 64-bit object if we didn't find anything.
7791 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7792 }'`; fi
7793 fi
7794 rm -f core conftest.err conftest.$ac_objext \
7795 conftest$ac_exeext conftest.$ac_ext
7796 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7797
7798 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7799 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7800 else
7801 if test "$host_cpu" = ia64; then
7802 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7803 allow_undefined_flag="-z nodefs"
7804 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"
7805 else
7806 # Determine the default libpath from the value encoded in an empty executable.
7807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7808 /* end confdefs.h. */
7809
7810 int
7811 main ()
7812 {
7813
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_link "$LINENO"; then :
7819
7820 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7821 }'`
7822 # Check for a 64-bit object if we didn't find anything.
7823 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
7824 }'`; fi
7825 fi
7826 rm -f core conftest.err conftest.$ac_objext \
7827 conftest$ac_exeext conftest.$ac_ext
7828 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7829
7830 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7831 # Warning - without using the other run time loading flags,
7832 # -berok will link without error, but may produce a broken library.
7833 no_undefined_flag=' ${wl}-bernotok'
7834 allow_undefined_flag=' ${wl}-berok'
7835 # Exported symbols can be pulled into shared objects from archives
7836 whole_archive_flag_spec='$convenience'
7837 archive_cmds_need_lc=yes
7838 # This is similar to how AIX traditionally builds its shared libraries.
7839 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'
7840 fi
7841 fi
7842 ;;
7843
7844 amigaos*)
7845 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)'
7846 hardcode_libdir_flag_spec='-L$libdir'
7847 hardcode_minus_L=yes
7848 # see comment about different semantics on the GNU ld section
7849 ld_shlibs=no
7850 ;;
7851
7852 bsdi[45]*)
7853 export_dynamic_flag_spec=-rdynamic
7854 ;;
7855
7856 cygwin* | mingw* | pw32*)
7857 # When not using gcc, we currently assume that we are using
7858 # Microsoft Visual C++.
7859 # hardcode_libdir_flag_spec is actually meaningless, as there is
7860 # no search path for DLLs.
7861 hardcode_libdir_flag_spec=' '
7862 allow_undefined_flag=unsupported
7863 # Tell ltmain to make .lib files, not .a files.
7864 libext=lib
7865 # Tell ltmain to make .dll files, not .so files.
7866 shrext_cmds=".dll"
7867 # FIXME: Setting linknames here is a bad hack.
7868 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7869 # The linker will automatically build a .lib file if we build a DLL.
7870 old_archive_From_new_cmds='true'
7871 # FIXME: Should let the user specify the lib program.
7872 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
7873 fix_srcfile_path='`cygpath -w "$srcfile"`'
7874 enable_shared_with_static_runtimes=yes
7875 ;;
7876
7877 darwin* | rhapsody*)
7878 case $host_os in
7879 rhapsody* | darwin1.[012])
7880 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7881 ;;
7882 *) # Darwin 1.3 on
7883 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7884 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7885 else
7886 case ${MACOSX_DEPLOYMENT_TARGET} in
7887 10.[012])
7888 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7889 ;;
7890 10.*)
7891 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7892 ;;
7893 esac
7894 fi
7895 ;;
7896 esac
7897 archive_cmds_need_lc=no
7898 hardcode_direct=no
7899 hardcode_automatic=yes
7900 hardcode_shlibpath_var=unsupported
7901 whole_archive_flag_spec=''
7902 link_all_deplibs=yes
7903 if test "$GCC" = yes ; then
7904 output_verbose_link_cmd='echo'
7905 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
7906 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7907 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7908 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7909 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7910 else
7911 case $cc_basename in
7912 xlc*)
7913 output_verbose_link_cmd='echo'
7914 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
7915 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7916 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7917 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7918 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7919 ;;
7920 *)
7921 ld_shlibs=no
7922 ;;
7923 esac
7924 fi
7925 ;;
7926
7927 dgux*)
7928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7929 hardcode_libdir_flag_spec='-L$libdir'
7930 hardcode_shlibpath_var=no
7931 ;;
7932
7933 freebsd1*)
7934 ld_shlibs=no
7935 ;;
7936
7937 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7938 # support. Future versions do this automatically, but an explicit c++rt0.o
7939 # does not break anything, and helps significantly (at the cost of a little
7940 # extra space).
7941 freebsd2.2*)
7942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7943 hardcode_libdir_flag_spec='-R$libdir'
7944 hardcode_direct=yes
7945 hardcode_shlibpath_var=no
7946 ;;
7947
7948 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7949 freebsd2*)
7950 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7951 hardcode_direct=yes
7952 hardcode_minus_L=yes
7953 hardcode_shlibpath_var=no
7954 ;;
7955
7956 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7957 freebsd* | kfreebsd*-gnu | dragonfly*)
7958 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
7959 hardcode_libdir_flag_spec='-R$libdir'
7960 hardcode_direct=yes
7961 hardcode_shlibpath_var=no
7962 ;;
7963
7964 hpux9*)
7965 if test "$GCC" = yes; then
7966 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
7967 else
7968 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'
7969 fi
7970 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7971 hardcode_libdir_separator=:
7972 hardcode_direct=yes
7973
7974 # hardcode_minus_L: Not really in the search PATH,
7975 # but as the default location of the library.
7976 hardcode_minus_L=yes
7977 export_dynamic_flag_spec='${wl}-E'
7978 ;;
7979
7980 hpux10*)
7981 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
7982 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
7983 else
7984 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
7985 fi
7986 if test "$with_gnu_ld" = no; then
7987 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
7988 hardcode_libdir_separator=:
7989
7990 hardcode_direct=yes
7991 export_dynamic_flag_spec='${wl}-E'
7992
7993 # hardcode_minus_L: Not really in the search PATH,
7994 # but as the default location of the library.
7995 hardcode_minus_L=yes
7996 fi
7997 ;;
7998
7999 hpux11*)
8000 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8001 case $host_cpu in
8002 hppa*64*)
8003 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8004 ;;
8005 ia64*)
8006 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8007 ;;
8008 *)
8009 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8010 ;;
8011 esac
8012 else
8013 case $host_cpu in
8014 hppa*64*)
8015 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8016 ;;
8017 ia64*)
8018 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8019 ;;
8020 *)
8021 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8022 ;;
8023 esac
8024 fi
8025 if test "$with_gnu_ld" = no; then
8026 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8027 hardcode_libdir_separator=:
8028
8029 case $host_cpu in
8030 hppa*64*|ia64*)
8031 hardcode_libdir_flag_spec_ld='+b $libdir'
8032 hardcode_direct=no
8033 hardcode_shlibpath_var=no
8034 ;;
8035 *)
8036 hardcode_direct=yes
8037 export_dynamic_flag_spec='${wl}-E'
8038
8039 # hardcode_minus_L: Not really in the search PATH,
8040 # but as the default location of the library.
8041 hardcode_minus_L=yes
8042 ;;
8043 esac
8044 fi
8045 ;;
8046
8047 irix5* | irix6* | nonstopux*)
8048 if test "$GCC" = yes; then
8049 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8050 else
8051 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8052 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8053 fi
8054 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8055 hardcode_libdir_separator=:
8056 link_all_deplibs=yes
8057 ;;
8058
8059 netbsd*)
8060 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8061 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8062 else
8063 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8064 fi
8065 hardcode_libdir_flag_spec='-R$libdir'
8066 hardcode_direct=yes
8067 hardcode_shlibpath_var=no
8068 ;;
8069
8070 newsos6)
8071 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8072 hardcode_direct=yes
8073 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8074 hardcode_libdir_separator=:
8075 hardcode_shlibpath_var=no
8076 ;;
8077
8078 openbsd*)
8079 hardcode_direct=yes
8080 hardcode_shlibpath_var=no
8081 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8082 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8083 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8084 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8085 export_dynamic_flag_spec='${wl}-E'
8086 else
8087 case $host_os in
8088 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8089 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8090 hardcode_libdir_flag_spec='-R$libdir'
8091 ;;
8092 *)
8093 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8094 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8095 ;;
8096 esac
8097 fi
8098 ;;
8099
8100 os2*)
8101 hardcode_libdir_flag_spec='-L$libdir'
8102 hardcode_minus_L=yes
8103 allow_undefined_flag=unsupported
8104 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'
8105 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8106 ;;
8107
8108 osf3*)
8109 if test "$GCC" = yes; then
8110 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8111 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8112 else
8113 allow_undefined_flag=' -expect_unresolved \*'
8114 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8115 fi
8116 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8117 hardcode_libdir_separator=:
8118 ;;
8119
8120 osf4* | osf5*) # as osf3* with the addition of -msym flag
8121 if test "$GCC" = yes; then
8122 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8123 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
8124 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8125 else
8126 allow_undefined_flag=' -expect_unresolved \*'
8127 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
8128 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8129 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8130
8131 # Both c and cxx compiler support -rpath directly
8132 hardcode_libdir_flag_spec='-rpath $libdir'
8133 fi
8134 hardcode_libdir_separator=:
8135 ;;
8136
8137 solaris*)
8138 no_undefined_flag=' -z text'
8139 if test "$GCC" = yes; then
8140 wlarc='${wl}'
8141 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8142 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8143 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8144 else
8145 wlarc=''
8146 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8147 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8148 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8149 fi
8150 hardcode_libdir_flag_spec='-R$libdir'
8151 hardcode_shlibpath_var=no
8152 case $host_os in
8153 solaris2.[0-5] | solaris2.[0-5].*) ;;
8154 *)
8155 # The compiler driver will combine linker options so we
8156 # cannot just pass the convience library names through
8157 # without $wl, iff we do not link with $LD.
8158 # Luckily, gcc supports the same syntax we need for Sun Studio.
8159 # Supported since Solaris 2.6 (maybe 2.5.1?)
8160 case $wlarc in
8161 '')
8162 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8163 *)
8164 whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
8165 esac ;;
8166 esac
8167 link_all_deplibs=yes
8168 ;;
8169
8170 sunos4*)
8171 if test "x$host_vendor" = xsequent; then
8172 # Use $CC to link under sequent, because it throws in some extra .o
8173 # files that make .init and .fini sections work.
8174 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8175 else
8176 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8177 fi
8178 hardcode_libdir_flag_spec='-L$libdir'
8179 hardcode_direct=yes
8180 hardcode_minus_L=yes
8181 hardcode_shlibpath_var=no
8182 ;;
8183
8184 sysv4)
8185 case $host_vendor in
8186 sni)
8187 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8188 hardcode_direct=yes # is this really true???
8189 ;;
8190 siemens)
8191 ## LD is ld it makes a PLAMLIB
8192 ## CC just makes a GrossModule.
8193 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8194 reload_cmds='$CC -r -o $output$reload_objs'
8195 hardcode_direct=no
8196 ;;
8197 motorola)
8198 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8199 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8200 ;;
8201 esac
8202 runpath_var='LD_RUN_PATH'
8203 hardcode_shlibpath_var=no
8204 ;;
8205
8206 sysv4.3*)
8207 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8208 hardcode_shlibpath_var=no
8209 export_dynamic_flag_spec='-Bexport'
8210 ;;
8211
8212 sysv4*MP*)
8213 if test -d /usr/nec; then
8214 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8215 hardcode_shlibpath_var=no
8216 runpath_var=LD_RUN_PATH
8217 hardcode_runpath_var=yes
8218 ld_shlibs=yes
8219 fi
8220 ;;
8221
8222 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8223 no_undefined_flag='${wl}-z,text'
8224 archive_cmds_need_lc=no
8225 hardcode_shlibpath_var=no
8226 runpath_var='LD_RUN_PATH'
8227
8228 if test "$GCC" = yes; then
8229 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8230 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8231 else
8232 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8233 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8234 fi
8235 ;;
8236
8237 sysv5* | sco3.2v5* | sco5v6*)
8238 # Note: We can NOT use -z defs as we might desire, because we do not
8239 # link with -lc, and that would cause any symbols used from libc to
8240 # always be unresolved, which means just about no library would
8241 # ever link correctly. If we're not using GNU ld we use -z text
8242 # though, which does catch some bad symbols but isn't as heavy-handed
8243 # as -z defs.
8244 no_undefined_flag='${wl}-z,text'
8245 allow_undefined_flag='${wl}-z,nodefs'
8246 archive_cmds_need_lc=no
8247 hardcode_shlibpath_var=no
8248 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8249 hardcode_libdir_separator=':'
8250 link_all_deplibs=yes
8251 export_dynamic_flag_spec='${wl}-Bexport'
8252 runpath_var='LD_RUN_PATH'
8253
8254 if test "$GCC" = yes; then
8255 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8256 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8257 else
8258 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8259 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8260 fi
8261 ;;
8262
8263 uts4*)
8264 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8265 hardcode_libdir_flag_spec='-L$libdir'
8266 hardcode_shlibpath_var=no
8267 ;;
8268
8269 *)
8270 ld_shlibs=no
8271 ;;
8272 esac
8273 fi
8274
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8276 $as_echo "$ld_shlibs" >&6; }
8277 test "$ld_shlibs" = no && can_build_shared=no
8278
8279 #
8280 # Do we need to explicitly link libc?
8281 #
8282 case "x$archive_cmds_need_lc" in
8283 x|xyes)
8284 # Assume -lc should be added
8285 archive_cmds_need_lc=yes
8286
8287 if test "$enable_shared" = yes && test "$GCC" = yes; then
8288 case $archive_cmds in
8289 *'~'*)
8290 # FIXME: we may have to deal with multi-command sequences.
8291 ;;
8292 '$CC '*)
8293 # Test whether the compiler implicitly links with -lc since on some
8294 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8295 # to ld, don't add -lc before -lgcc.
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8297 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8298 $rm conftest*
8299 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8300
8301 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8302 (eval $ac_compile) 2>&5
8303 ac_status=$?
8304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8305 test $ac_status = 0; } 2>conftest.err; then
8306 soname=conftest
8307 lib=conftest
8308 libobjs=conftest.$ac_objext
8309 deplibs=
8310 wl=$lt_prog_compiler_wl
8311 pic_flag=$lt_prog_compiler_pic
8312 compiler_flags=-v
8313 linker_flags=-v
8314 verstring=
8315 output_objdir=.
8316 libname=conftest
8317 lt_save_allow_undefined_flag=$allow_undefined_flag
8318 allow_undefined_flag=
8319 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8320 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8321 ac_status=$?
8322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8323 test $ac_status = 0; }
8324 then
8325 archive_cmds_need_lc=no
8326 else
8327 archive_cmds_need_lc=yes
8328 fi
8329 allow_undefined_flag=$lt_save_allow_undefined_flag
8330 else
8331 cat conftest.err 1>&5
8332 fi
8333 $rm conftest*
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
8335 $as_echo "$archive_cmds_need_lc" >&6; }
8336 ;;
8337 esac
8338 fi
8339 ;;
8340 esac
8341
8342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
8343 $as_echo_n "checking dynamic linker characteristics... " >&6; }
8344 library_names_spec=
8345 libname_spec='lib$name'
8346 soname_spec=
8347 shrext_cmds=".so"
8348 postinstall_cmds=
8349 postuninstall_cmds=
8350 finish_cmds=
8351 finish_eval=
8352 shlibpath_var=
8353 shlibpath_overrides_runpath=unknown
8354 version_type=none
8355 dynamic_linker="$host_os ld.so"
8356 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8357 if test "$GCC" = yes; then
8358 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8359 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
8360 # if the path contains ";" then we assume it to be the separator
8361 # otherwise default to the standard path separator (i.e. ":") - it is
8362 # assumed that no part of a normal pathname contains ";" but that should
8363 # okay in the real world where ";" in dirpaths is itself problematic.
8364 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8365 else
8366 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8367 fi
8368 else
8369 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8370 fi
8371 need_lib_prefix=unknown
8372 hardcode_into_libs=no
8373
8374 # when you set need_version to no, make sure it does not cause -set_version
8375 # flags to be left without arguments
8376 need_version=unknown
8377
8378 case $host_os in
8379 aix3*)
8380 version_type=linux
8381 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8382 shlibpath_var=LIBPATH
8383
8384 # AIX 3 has no versioning support, so we append a major version to the name.
8385 soname_spec='${libname}${release}${shared_ext}$major'
8386 ;;
8387
8388 aix4* | aix5*)
8389 version_type=linux
8390 need_lib_prefix=no
8391 need_version=no
8392 hardcode_into_libs=yes
8393 if test "$host_cpu" = ia64; then
8394 # AIX 5 supports IA64
8395 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8396 shlibpath_var=LD_LIBRARY_PATH
8397 else
8398 # With GCC up to 2.95.x, collect2 would create an import file
8399 # for dependence libraries. The import file would start with
8400 # the line `#! .'. This would cause the generated library to
8401 # depend on `.', always an invalid library. This was fixed in
8402 # development snapshots of GCC prior to 3.0.
8403 case $host_os in
8404 aix4 | aix4.[01] | aix4.[01].*)
8405 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8406 echo ' yes '
8407 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8408 :
8409 else
8410 can_build_shared=no
8411 fi
8412 ;;
8413 esac
8414 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8415 # soname into executable. Probably we can add versioning support to
8416 # collect2, so additional links can be useful in future.
8417 if test "$aix_use_runtimelinking" = yes; then
8418 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8419 # instead of lib<name>.a to let people know that these are not
8420 # typical AIX shared libraries.
8421 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8422 else
8423 # We preserve .a as extension for shared libraries through AIX4.2
8424 # and later when we are not doing run time linking.
8425 library_names_spec='${libname}${release}.a $libname.a'
8426 soname_spec='${libname}${release}${shared_ext}$major'
8427 fi
8428 shlibpath_var=LIBPATH
8429 fi
8430 ;;
8431
8432 amigaos*)
8433 library_names_spec='$libname.ixlibrary $libname.a'
8434 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8435 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
8436 ;;
8437
8438 beos*)
8439 library_names_spec='${libname}${shared_ext}'
8440 dynamic_linker="$host_os ld.so"
8441 shlibpath_var=LIBRARY_PATH
8442 ;;
8443
8444 bsdi[45]*)
8445 version_type=linux
8446 need_version=no
8447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8448 soname_spec='${libname}${release}${shared_ext}$major'
8449 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8450 shlibpath_var=LD_LIBRARY_PATH
8451 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8452 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8453 # the default ld.so.conf also contains /usr/contrib/lib and
8454 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8455 # libtool to hard-code these into programs
8456 ;;
8457
8458 cygwin* | mingw* | pw32*)
8459 version_type=windows
8460 shrext_cmds=".dll"
8461 need_version=no
8462 need_lib_prefix=no
8463
8464 case $GCC,$host_os in
8465 yes,cygwin* | yes,mingw* | yes,pw32*)
8466 library_names_spec='$libname.dll.a'
8467 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8468 postinstall_cmds='base_file=`basename \${file}`~
8469 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8470 dldir=$destdir/`dirname \$dlpath`~
8471 test -d \$dldir || mkdir -p \$dldir~
8472 $install_prog $dir/$dlname \$dldir/$dlname~
8473 chmod a+x \$dldir/$dlname'
8474 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8475 dlpath=$dir/\$dldll~
8476 $rm \$dlpath'
8477 shlibpath_overrides_runpath=yes
8478
8479 case $host_os in
8480 cygwin*)
8481 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8482 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8483 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8484 ;;
8485 mingw*)
8486 # MinGW DLLs use traditional 'lib' prefix
8487 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8488 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8489 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8490 # It is most probably a Windows format PATH printed by
8491 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8492 # path with ; separators, and with drive letters. We can handle the
8493 # drive letters (cygwin fileutils understands them), so leave them,
8494 # especially as we might pass files found there to a mingw objdump,
8495 # which wouldn't understand a cygwinified path. Ahh.
8496 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8497 else
8498 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8499 fi
8500 ;;
8501 pw32*)
8502 # pw32 DLLs use 'pw' prefix rather than 'lib'
8503 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8504 ;;
8505 esac
8506 ;;
8507
8508 *)
8509 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8510 ;;
8511 esac
8512 dynamic_linker='Win32 ld.exe'
8513 # FIXME: first we should search . and the directory the executable is in
8514 shlibpath_var=PATH
8515 ;;
8516
8517 darwin* | rhapsody*)
8518 dynamic_linker="$host_os dyld"
8519 version_type=darwin
8520 need_lib_prefix=no
8521 need_version=no
8522 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8523 soname_spec='${libname}${release}${major}$shared_ext'
8524 shlibpath_overrides_runpath=yes
8525 shlibpath_var=DYLD_LIBRARY_PATH
8526 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8527 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
8528 if test "$GCC" = yes; then
8529 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
8530 else
8531 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
8532 fi
8533 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8534 ;;
8535
8536 dgux*)
8537 version_type=linux
8538 need_lib_prefix=no
8539 need_version=no
8540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8541 soname_spec='${libname}${release}${shared_ext}$major'
8542 shlibpath_var=LD_LIBRARY_PATH
8543 ;;
8544
8545 freebsd1*)
8546 dynamic_linker=no
8547 ;;
8548
8549 kfreebsd*-gnu)
8550 version_type=linux
8551 need_lib_prefix=no
8552 need_version=no
8553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8554 soname_spec='${libname}${release}${shared_ext}$major'
8555 shlibpath_var=LD_LIBRARY_PATH
8556 shlibpath_overrides_runpath=no
8557 hardcode_into_libs=yes
8558 dynamic_linker='GNU ld.so'
8559 ;;
8560
8561 freebsd* | dragonfly*)
8562 # DragonFly does not have aout. When/if they implement a new
8563 # versioning mechanism, adjust this.
8564 if test -x /usr/bin/objformat; then
8565 objformat=`/usr/bin/objformat`
8566 else
8567 case $host_os in
8568 freebsd[123]*) objformat=aout ;;
8569 *) objformat=elf ;;
8570 esac
8571 fi
8572 version_type=freebsd-$objformat
8573 case $version_type in
8574 freebsd-elf*)
8575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8576 need_version=no
8577 need_lib_prefix=no
8578 ;;
8579 freebsd-*)
8580 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8581 need_version=yes
8582 ;;
8583 esac
8584 shlibpath_var=LD_LIBRARY_PATH
8585 case $host_os in
8586 freebsd2*)
8587 shlibpath_overrides_runpath=yes
8588 ;;
8589 freebsd3.[01]* | freebsdelf3.[01]*)
8590 shlibpath_overrides_runpath=yes
8591 hardcode_into_libs=yes
8592 ;;
8593 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8594 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8595 shlibpath_overrides_runpath=no
8596 hardcode_into_libs=yes
8597 ;;
8598 freebsd*) # from 4.6 on
8599 shlibpath_overrides_runpath=yes
8600 hardcode_into_libs=yes
8601 ;;
8602 esac
8603 ;;
8604
8605 gnu*)
8606 version_type=linux
8607 need_lib_prefix=no
8608 need_version=no
8609 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8610 soname_spec='${libname}${release}${shared_ext}$major'
8611 shlibpath_var=LD_LIBRARY_PATH
8612 hardcode_into_libs=yes
8613 ;;
8614
8615 hpux9* | hpux10* | hpux11*)
8616 # Give a soname corresponding to the major version so that dld.sl refuses to
8617 # link against other versions.
8618 version_type=sunos
8619 need_lib_prefix=no
8620 need_version=no
8621 case $host_cpu in
8622 ia64*)
8623 shrext_cmds='.so'
8624 hardcode_into_libs=yes
8625 dynamic_linker="$host_os dld.so"
8626 shlibpath_var=LD_LIBRARY_PATH
8627 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8629 soname_spec='${libname}${release}${shared_ext}$major'
8630 if test "X$HPUX_IA64_MODE" = X32; then
8631 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8632 else
8633 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8634 fi
8635 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8636 ;;
8637 hppa*64*)
8638 shrext_cmds='.sl'
8639 hardcode_into_libs=yes
8640 dynamic_linker="$host_os dld.sl"
8641 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8642 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8644 soname_spec='${libname}${release}${shared_ext}$major'
8645 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8646 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8647 ;;
8648 *)
8649 shrext_cmds='.sl'
8650 dynamic_linker="$host_os dld.sl"
8651 shlibpath_var=SHLIB_PATH
8652 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8653 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8654 soname_spec='${libname}${release}${shared_ext}$major'
8655 ;;
8656 esac
8657 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8658 postinstall_cmds='chmod 555 $lib'
8659 ;;
8660
8661 interix3*)
8662 version_type=linux
8663 need_lib_prefix=no
8664 need_version=no
8665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8666 soname_spec='${libname}${release}${shared_ext}$major'
8667 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8668 shlibpath_var=LD_LIBRARY_PATH
8669 shlibpath_overrides_runpath=no
8670 hardcode_into_libs=yes
8671 ;;
8672
8673 irix5* | irix6* | nonstopux*)
8674 case $host_os in
8675 nonstopux*) version_type=nonstopux ;;
8676 *)
8677 if test "$lt_cv_prog_gnu_ld" = yes; then
8678 version_type=linux
8679 else
8680 version_type=irix
8681 fi ;;
8682 esac
8683 need_lib_prefix=no
8684 need_version=no
8685 soname_spec='${libname}${release}${shared_ext}$major'
8686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8687 case $host_os in
8688 irix5* | nonstopux*)
8689 libsuff= shlibsuff=
8690 ;;
8691 *)
8692 case $LD in # libtool.m4 will add one of these switches to LD
8693 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8694 libsuff= shlibsuff= libmagic=32-bit;;
8695 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8696 libsuff=32 shlibsuff=N32 libmagic=N32;;
8697 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8698 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8699 *) libsuff= shlibsuff= libmagic=never-match;;
8700 esac
8701 ;;
8702 esac
8703 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8704 shlibpath_overrides_runpath=no
8705 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8706 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8707 hardcode_into_libs=yes
8708 ;;
8709
8710 # No shared lib support for Linux oldld, aout, or coff.
8711 linux*oldld* | linux*aout* | linux*coff*)
8712 dynamic_linker=no
8713 ;;
8714
8715 # This must be Linux ELF.
8716 linux*)
8717 version_type=linux
8718 need_lib_prefix=no
8719 need_version=no
8720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8721 soname_spec='${libname}${release}${shared_ext}$major'
8722 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8723 shlibpath_var=LD_LIBRARY_PATH
8724 shlibpath_overrides_runpath=no
8725 # This implies no fast_install, which is unacceptable.
8726 # Some rework will be needed to allow for fast_install
8727 # before this can be enabled.
8728 hardcode_into_libs=yes
8729
8730 # find out which ABI we are using
8731 libsuff=
8732 case "$host_cpu" in
8733 x86_64*|s390x*|powerpc64*)
8734 echo '#line 8734 "configure"' > conftest.$ac_ext
8735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8736 (eval $ac_compile) 2>&5
8737 ac_status=$?
8738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8739 test $ac_status = 0; }; then
8740 case `/usr/bin/file conftest.$ac_objext` in
8741 *64-bit*)
8742 libsuff=64
8743 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
8744 ;;
8745 esac
8746 fi
8747 rm -rf conftest*
8748 ;;
8749 esac
8750
8751 # Append ld.so.conf contents to the search path
8752 if test -f /etc/ld.so.conf; then
8753 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8754 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
8755 fi
8756
8757 # We used to test for /lib/ld.so.1 and disable shared libraries on
8758 # powerpc, because MkLinux only supported shared libraries with the
8759 # GNU dynamic linker. Since this was broken with cross compilers,
8760 # most powerpc-linux boxes support dynamic linking these days and
8761 # people can always --disable-shared, the test was removed, and we
8762 # assume the GNU/Linux dynamic linker is in use.
8763 dynamic_linker='GNU/Linux ld.so'
8764 ;;
8765
8766 knetbsd*-gnu)
8767 version_type=linux
8768 need_lib_prefix=no
8769 need_version=no
8770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8771 soname_spec='${libname}${release}${shared_ext}$major'
8772 shlibpath_var=LD_LIBRARY_PATH
8773 shlibpath_overrides_runpath=no
8774 hardcode_into_libs=yes
8775 dynamic_linker='GNU ld.so'
8776 ;;
8777
8778 netbsd*)
8779 version_type=sunos
8780 need_lib_prefix=no
8781 need_version=no
8782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8783 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8784 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8785 dynamic_linker='NetBSD (a.out) ld.so'
8786 else
8787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8788 soname_spec='${libname}${release}${shared_ext}$major'
8789 dynamic_linker='NetBSD ld.elf_so'
8790 fi
8791 shlibpath_var=LD_LIBRARY_PATH
8792 shlibpath_overrides_runpath=yes
8793 hardcode_into_libs=yes
8794 ;;
8795
8796 newsos6)
8797 version_type=linux
8798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8799 shlibpath_var=LD_LIBRARY_PATH
8800 shlibpath_overrides_runpath=yes
8801 ;;
8802
8803 nto-qnx*)
8804 version_type=linux
8805 need_lib_prefix=no
8806 need_version=no
8807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8808 soname_spec='${libname}${release}${shared_ext}$major'
8809 shlibpath_var=LD_LIBRARY_PATH
8810 shlibpath_overrides_runpath=yes
8811 ;;
8812
8813 openbsd*)
8814 version_type=sunos
8815 sys_lib_dlsearch_path_spec="/usr/lib"
8816 need_lib_prefix=no
8817 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8818 case $host_os in
8819 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8820 *) need_version=no ;;
8821 esac
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8823 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8824 shlibpath_var=LD_LIBRARY_PATH
8825 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8826 case $host_os in
8827 openbsd2.[89] | openbsd2.[89].*)
8828 shlibpath_overrides_runpath=no
8829 ;;
8830 *)
8831 shlibpath_overrides_runpath=yes
8832 ;;
8833 esac
8834 else
8835 shlibpath_overrides_runpath=yes
8836 fi
8837 ;;
8838
8839 os2*)
8840 libname_spec='$name'
8841 shrext_cmds=".dll"
8842 need_lib_prefix=no
8843 library_names_spec='$libname${shared_ext} $libname.a'
8844 dynamic_linker='OS/2 ld.exe'
8845 shlibpath_var=LIBPATH
8846 ;;
8847
8848 osf3* | osf4* | osf5*)
8849 version_type=osf
8850 need_lib_prefix=no
8851 need_version=no
8852 soname_spec='${libname}${release}${shared_ext}$major'
8853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8854 shlibpath_var=LD_LIBRARY_PATH
8855 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8856 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8857 ;;
8858
8859 solaris*)
8860 version_type=linux
8861 need_lib_prefix=no
8862 need_version=no
8863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8864 soname_spec='${libname}${release}${shared_ext}$major'
8865 shlibpath_var=LD_LIBRARY_PATH
8866 shlibpath_overrides_runpath=yes
8867 hardcode_into_libs=yes
8868 # ldd complains unless libraries are executable
8869 postinstall_cmds='chmod +x $lib'
8870 ;;
8871
8872 sunos4*)
8873 version_type=sunos
8874 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8875 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8876 shlibpath_var=LD_LIBRARY_PATH
8877 shlibpath_overrides_runpath=yes
8878 if test "$with_gnu_ld" = yes; then
8879 need_lib_prefix=no
8880 fi
8881 need_version=yes
8882 ;;
8883
8884 sysv4 | sysv4.3*)
8885 version_type=linux
8886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 shlibpath_var=LD_LIBRARY_PATH
8889 case $host_vendor in
8890 sni)
8891 shlibpath_overrides_runpath=no
8892 need_lib_prefix=no
8893 export_dynamic_flag_spec='${wl}-Blargedynsym'
8894 runpath_var=LD_RUN_PATH
8895 ;;
8896 siemens)
8897 need_lib_prefix=no
8898 ;;
8899 motorola)
8900 need_lib_prefix=no
8901 need_version=no
8902 shlibpath_overrides_runpath=no
8903 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8904 ;;
8905 esac
8906 ;;
8907
8908 sysv4*MP*)
8909 if test -d /usr/nec ;then
8910 version_type=linux
8911 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8912 soname_spec='$libname${shared_ext}.$major'
8913 shlibpath_var=LD_LIBRARY_PATH
8914 fi
8915 ;;
8916
8917 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8918 version_type=freebsd-elf
8919 need_lib_prefix=no
8920 need_version=no
8921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8922 soname_spec='${libname}${release}${shared_ext}$major'
8923 shlibpath_var=LD_LIBRARY_PATH
8924 hardcode_into_libs=yes
8925 if test "$with_gnu_ld" = yes; then
8926 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8927 shlibpath_overrides_runpath=no
8928 else
8929 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8930 shlibpath_overrides_runpath=yes
8931 case $host_os in
8932 sco3.2v5*)
8933 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8934 ;;
8935 esac
8936 fi
8937 sys_lib_dlsearch_path_spec='/usr/lib'
8938 ;;
8939
8940 uts4*)
8941 version_type=linux
8942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8943 soname_spec='${libname}${release}${shared_ext}$major'
8944 shlibpath_var=LD_LIBRARY_PATH
8945 ;;
8946
8947 *)
8948 dynamic_linker=no
8949 ;;
8950 esac
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
8952 $as_echo "$dynamic_linker" >&6; }
8953 test "$dynamic_linker" = no && can_build_shared=no
8954
8955 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
8956 if test "$GCC" = yes; then
8957 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8958 fi
8959
8960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
8961 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
8962 hardcode_action=
8963 if test -n "$hardcode_libdir_flag_spec" || \
8964 test -n "$runpath_var" || \
8965 test "X$hardcode_automatic" = "Xyes" ; then
8966
8967 # We can hardcode non-existant directories.
8968 if test "$hardcode_direct" != no &&
8969 # If the only mechanism to avoid hardcoding is shlibpath_var, we
8970 # have to relink, otherwise we might link with an installed library
8971 # when we should be linking with a yet-to-be-installed one
8972 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
8973 test "$hardcode_minus_L" != no; then
8974 # Linking always hardcodes the temporary library directory.
8975 hardcode_action=relink
8976 else
8977 # We can link without hardcoding, and we can hardcode nonexisting dirs.
8978 hardcode_action=immediate
8979 fi
8980 else
8981 # We cannot hardcode anything, or else we can only hardcode existing
8982 # directories.
8983 hardcode_action=unsupported
8984 fi
8985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
8986 $as_echo "$hardcode_action" >&6; }
8987
8988 if test "$hardcode_action" = relink; then
8989 # Fast installation is not supported
8990 enable_fast_install=no
8991 elif test "$shlibpath_overrides_runpath" = yes ||
8992 test "$enable_shared" = no; then
8993 # Fast installation is not necessary
8994 enable_fast_install=needless
8995 fi
8996
8997 striplib=
8998 old_striplib=
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9000 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9001 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9002 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9003 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9005 $as_echo "yes" >&6; }
9006 else
9007 # FIXME - insert some real tests, host_os isn't really good enough
9008 case $host_os in
9009 darwin*)
9010 if test -n "$STRIP" ; then
9011 striplib="$STRIP -x"
9012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9013 $as_echo "yes" >&6; }
9014 else
9015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9016 $as_echo "no" >&6; }
9017 fi
9018 ;;
9019 *)
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9021 $as_echo "no" >&6; }
9022 ;;
9023 esac
9024 fi
9025
9026 if test "x$enable_dlopen" != xyes; then
9027 enable_dlopen=unknown
9028 enable_dlopen_self=unknown
9029 enable_dlopen_self_static=unknown
9030 else
9031 lt_cv_dlopen=no
9032 lt_cv_dlopen_libs=
9033
9034 case $host_os in
9035 beos*)
9036 lt_cv_dlopen="load_add_on"
9037 lt_cv_dlopen_libs=
9038 lt_cv_dlopen_self=yes
9039 ;;
9040
9041 mingw* | pw32*)
9042 lt_cv_dlopen="LoadLibrary"
9043 lt_cv_dlopen_libs=
9044 ;;
9045
9046 cygwin*)
9047 lt_cv_dlopen="dlopen"
9048 lt_cv_dlopen_libs=
9049 ;;
9050
9051 darwin*)
9052 # if libdl is installed we need to link against it
9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9054 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9055 if ${ac_cv_lib_dl_dlopen+:} false; then :
9056 $as_echo_n "(cached) " >&6
9057 else
9058 ac_check_lib_save_LIBS=$LIBS
9059 LIBS="-ldl $LIBS"
9060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9061 /* end confdefs.h. */
9062
9063 /* Override any GCC internal prototype to avoid an error.
9064 Use char because int might match the return type of a GCC
9065 builtin and then its argument prototype would still apply. */
9066 #ifdef __cplusplus
9067 extern "C"
9068 #endif
9069 char dlopen ();
9070 int
9071 main ()
9072 {
9073 return dlopen ();
9074 ;
9075 return 0;
9076 }
9077 _ACEOF
9078 if ac_fn_c_try_link "$LINENO"; then :
9079 ac_cv_lib_dl_dlopen=yes
9080 else
9081 ac_cv_lib_dl_dlopen=no
9082 fi
9083 rm -f core conftest.err conftest.$ac_objext \
9084 conftest$ac_exeext conftest.$ac_ext
9085 LIBS=$ac_check_lib_save_LIBS
9086 fi
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9088 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9089 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9090 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9091 else
9092
9093 lt_cv_dlopen="dyld"
9094 lt_cv_dlopen_libs=
9095 lt_cv_dlopen_self=yes
9096
9097 fi
9098
9099 ;;
9100
9101 *)
9102 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9103 if test "x$ac_cv_func_shl_load" = xyes; then :
9104 lt_cv_dlopen="shl_load"
9105 else
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9107 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9108 if ${ac_cv_lib_dld_shl_load+:} false; then :
9109 $as_echo_n "(cached) " >&6
9110 else
9111 ac_check_lib_save_LIBS=$LIBS
9112 LIBS="-ldld $LIBS"
9113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9114 /* end confdefs.h. */
9115
9116 /* Override any GCC internal prototype to avoid an error.
9117 Use char because int might match the return type of a GCC
9118 builtin and then its argument prototype would still apply. */
9119 #ifdef __cplusplus
9120 extern "C"
9121 #endif
9122 char shl_load ();
9123 int
9124 main ()
9125 {
9126 return shl_load ();
9127 ;
9128 return 0;
9129 }
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 ac_cv_lib_dld_shl_load=yes
9133 else
9134 ac_cv_lib_dld_shl_load=no
9135 fi
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 LIBS=$ac_check_lib_save_LIBS
9139 fi
9140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9141 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9142 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9143 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9144 else
9145 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9146 if test "x$ac_cv_func_dlopen" = xyes; then :
9147 lt_cv_dlopen="dlopen"
9148 else
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9150 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9151 if ${ac_cv_lib_dl_dlopen+:} false; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 ac_check_lib_save_LIBS=$LIBS
9155 LIBS="-ldl $LIBS"
9156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9157 /* end confdefs.h. */
9158
9159 /* Override any GCC internal prototype to avoid an error.
9160 Use char because int might match the return type of a GCC
9161 builtin and then its argument prototype would still apply. */
9162 #ifdef __cplusplus
9163 extern "C"
9164 #endif
9165 char dlopen ();
9166 int
9167 main ()
9168 {
9169 return dlopen ();
9170 ;
9171 return 0;
9172 }
9173 _ACEOF
9174 if ac_fn_c_try_link "$LINENO"; then :
9175 ac_cv_lib_dl_dlopen=yes
9176 else
9177 ac_cv_lib_dl_dlopen=no
9178 fi
9179 rm -f core conftest.err conftest.$ac_objext \
9180 conftest$ac_exeext conftest.$ac_ext
9181 LIBS=$ac_check_lib_save_LIBS
9182 fi
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9184 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9185 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9186 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9187 else
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9189 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
9190 if ${ac_cv_lib_svld_dlopen+:} false; then :
9191 $as_echo_n "(cached) " >&6
9192 else
9193 ac_check_lib_save_LIBS=$LIBS
9194 LIBS="-lsvld $LIBS"
9195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9196 /* end confdefs.h. */
9197
9198 /* Override any GCC internal prototype to avoid an error.
9199 Use char because int might match the return type of a GCC
9200 builtin and then its argument prototype would still apply. */
9201 #ifdef __cplusplus
9202 extern "C"
9203 #endif
9204 char dlopen ();
9205 int
9206 main ()
9207 {
9208 return dlopen ();
9209 ;
9210 return 0;
9211 }
9212 _ACEOF
9213 if ac_fn_c_try_link "$LINENO"; then :
9214 ac_cv_lib_svld_dlopen=yes
9215 else
9216 ac_cv_lib_svld_dlopen=no
9217 fi
9218 rm -f core conftest.err conftest.$ac_objext \
9219 conftest$ac_exeext conftest.$ac_ext
9220 LIBS=$ac_check_lib_save_LIBS
9221 fi
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9223 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9224 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9226 else
9227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9228 $as_echo_n "checking for dld_link in -ldld... " >&6; }
9229 if ${ac_cv_lib_dld_dld_link+:} false; then :
9230 $as_echo_n "(cached) " >&6
9231 else
9232 ac_check_lib_save_LIBS=$LIBS
9233 LIBS="-ldld $LIBS"
9234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9235 /* end confdefs.h. */
9236
9237 /* Override any GCC internal prototype to avoid an error.
9238 Use char because int might match the return type of a GCC
9239 builtin and then its argument prototype would still apply. */
9240 #ifdef __cplusplus
9241 extern "C"
9242 #endif
9243 char dld_link ();
9244 int
9245 main ()
9246 {
9247 return dld_link ();
9248 ;
9249 return 0;
9250 }
9251 _ACEOF
9252 if ac_fn_c_try_link "$LINENO"; then :
9253 ac_cv_lib_dld_dld_link=yes
9254 else
9255 ac_cv_lib_dld_dld_link=no
9256 fi
9257 rm -f core conftest.err conftest.$ac_objext \
9258 conftest$ac_exeext conftest.$ac_ext
9259 LIBS=$ac_check_lib_save_LIBS
9260 fi
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9262 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9263 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9264 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9265 fi
9266
9267
9268 fi
9269
9270
9271 fi
9272
9273
9274 fi
9275
9276
9277 fi
9278
9279
9280 fi
9281
9282 ;;
9283 esac
9284
9285 if test "x$lt_cv_dlopen" != xno; then
9286 enable_dlopen=yes
9287 else
9288 enable_dlopen=no
9289 fi
9290
9291 case $lt_cv_dlopen in
9292 dlopen)
9293 save_CPPFLAGS="$CPPFLAGS"
9294 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9295
9296 save_LDFLAGS="$LDFLAGS"
9297 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9298
9299 save_LIBS="$LIBS"
9300 LIBS="$lt_cv_dlopen_libs $LIBS"
9301
9302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9303 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
9304 if ${lt_cv_dlopen_self+:} false; then :
9305 $as_echo_n "(cached) " >&6
9306 else
9307 if test "$cross_compiling" = yes; then :
9308 lt_cv_dlopen_self=cross
9309 else
9310 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9311 lt_status=$lt_dlunknown
9312 cat > conftest.$ac_ext <<EOF
9313 #line 9313 "configure"
9314 #include "confdefs.h"
9315
9316 #if HAVE_DLFCN_H
9317 #include <dlfcn.h>
9318 #endif
9319
9320 #include <stdio.h>
9321
9322 #ifdef RTLD_GLOBAL
9323 # define LT_DLGLOBAL RTLD_GLOBAL
9324 #else
9325 # ifdef DL_GLOBAL
9326 # define LT_DLGLOBAL DL_GLOBAL
9327 # else
9328 # define LT_DLGLOBAL 0
9329 # endif
9330 #endif
9331
9332 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9333 find out it does not work in some platform. */
9334 #ifndef LT_DLLAZY_OR_NOW
9335 # ifdef RTLD_LAZY
9336 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9337 # else
9338 # ifdef DL_LAZY
9339 # define LT_DLLAZY_OR_NOW DL_LAZY
9340 # else
9341 # ifdef RTLD_NOW
9342 # define LT_DLLAZY_OR_NOW RTLD_NOW
9343 # else
9344 # ifdef DL_NOW
9345 # define LT_DLLAZY_OR_NOW DL_NOW
9346 # else
9347 # define LT_DLLAZY_OR_NOW 0
9348 # endif
9349 # endif
9350 # endif
9351 # endif
9352 #endif
9353
9354 #ifdef __cplusplus
9355 extern "C" void exit (int);
9356 #endif
9357
9358 void fnord() { int i=42;}
9359 int main ()
9360 {
9361 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9362 int status = $lt_dlunknown;
9363
9364 if (self)
9365 {
9366 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9367 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9368 /* dlclose (self); */
9369 }
9370 else
9371 puts (dlerror ());
9372
9373 exit (status);
9374 }
9375 EOF
9376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9377 (eval $ac_link) 2>&5
9378 ac_status=$?
9379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9380 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9381 (./conftest; exit; ) >&5 2>/dev/null
9382 lt_status=$?
9383 case x$lt_status in
9384 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9385 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9386 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9387 esac
9388 else :
9389 # compilation failed
9390 lt_cv_dlopen_self=no
9391 fi
9392 fi
9393 rm -fr conftest*
9394
9395
9396 fi
9397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
9398 $as_echo "$lt_cv_dlopen_self" >&6; }
9399
9400 if test "x$lt_cv_dlopen_self" = xyes; then
9401 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
9403 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
9404 if ${lt_cv_dlopen_self_static+:} false; then :
9405 $as_echo_n "(cached) " >&6
9406 else
9407 if test "$cross_compiling" = yes; then :
9408 lt_cv_dlopen_self_static=cross
9409 else
9410 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9411 lt_status=$lt_dlunknown
9412 cat > conftest.$ac_ext <<EOF
9413 #line 9413 "configure"
9414 #include "confdefs.h"
9415
9416 #if HAVE_DLFCN_H
9417 #include <dlfcn.h>
9418 #endif
9419
9420 #include <stdio.h>
9421
9422 #ifdef RTLD_GLOBAL
9423 # define LT_DLGLOBAL RTLD_GLOBAL
9424 #else
9425 # ifdef DL_GLOBAL
9426 # define LT_DLGLOBAL DL_GLOBAL
9427 # else
9428 # define LT_DLGLOBAL 0
9429 # endif
9430 #endif
9431
9432 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9433 find out it does not work in some platform. */
9434 #ifndef LT_DLLAZY_OR_NOW
9435 # ifdef RTLD_LAZY
9436 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9437 # else
9438 # ifdef DL_LAZY
9439 # define LT_DLLAZY_OR_NOW DL_LAZY
9440 # else
9441 # ifdef RTLD_NOW
9442 # define LT_DLLAZY_OR_NOW RTLD_NOW
9443 # else
9444 # ifdef DL_NOW
9445 # define LT_DLLAZY_OR_NOW DL_NOW
9446 # else
9447 # define LT_DLLAZY_OR_NOW 0
9448 # endif
9449 # endif
9450 # endif
9451 # endif
9452 #endif
9453
9454 #ifdef __cplusplus
9455 extern "C" void exit (int);
9456 #endif
9457
9458 void fnord() { int i=42;}
9459 int main ()
9460 {
9461 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9462 int status = $lt_dlunknown;
9463
9464 if (self)
9465 {
9466 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9467 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9468 /* dlclose (self); */
9469 }
9470 else
9471 puts (dlerror ());
9472
9473 exit (status);
9474 }
9475 EOF
9476 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9477 (eval $ac_link) 2>&5
9478 ac_status=$?
9479 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9480 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
9481 (./conftest; exit; ) >&5 2>/dev/null
9482 lt_status=$?
9483 case x$lt_status in
9484 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9485 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9486 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9487 esac
9488 else :
9489 # compilation failed
9490 lt_cv_dlopen_self_static=no
9491 fi
9492 fi
9493 rm -fr conftest*
9494
9495
9496 fi
9497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
9498 $as_echo "$lt_cv_dlopen_self_static" >&6; }
9499 fi
9500
9501 CPPFLAGS="$save_CPPFLAGS"
9502 LDFLAGS="$save_LDFLAGS"
9503 LIBS="$save_LIBS"
9504 ;;
9505 esac
9506
9507 case $lt_cv_dlopen_self in
9508 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9509 *) enable_dlopen_self=unknown ;;
9510 esac
9511
9512 case $lt_cv_dlopen_self_static in
9513 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9514 *) enable_dlopen_self_static=unknown ;;
9515 esac
9516 fi
9517
9518
9519 # Report which library types will actually be built
9520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
9521 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
9523 $as_echo "$can_build_shared" >&6; }
9524
9525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
9526 $as_echo_n "checking whether to build shared libraries... " >&6; }
9527 test "$can_build_shared" = "no" && enable_shared=no
9528
9529 # On AIX, shared libraries and static libraries use the same namespace, and
9530 # are all built from PIC.
9531 case $host_os in
9532 aix3*)
9533 test "$enable_shared" = yes && enable_static=no
9534 if test -n "$RANLIB"; then
9535 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9536 postinstall_cmds='$RANLIB $lib'
9537 fi
9538 ;;
9539
9540 aix4* | aix5*)
9541 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9542 test "$enable_shared" = yes && enable_static=no
9543 fi
9544 ;;
9545 esac
9546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
9547 $as_echo "$enable_shared" >&6; }
9548
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
9550 $as_echo_n "checking whether to build static libraries... " >&6; }
9551 # Make sure either enable_shared or enable_static is yes.
9552 test "$enable_shared" = yes || enable_static=yes
9553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
9554 $as_echo "$enable_static" >&6; }
9555
9556 # The else clause should only fire when bootstrapping the
9557 # libtool distribution, otherwise you forgot to ship ltmain.sh
9558 # with your package, and you will get complaints that there are
9559 # no rules to generate ltmain.sh.
9560 if test -f "$ltmain"; then
9561 # See if we are running on zsh, and set the options which allow our commands through
9562 # without removal of \ escapes.
9563 if test -n "${ZSH_VERSION+set}" ; then
9564 setopt NO_GLOB_SUBST
9565 fi
9566 # Now quote all the things that may contain metacharacters while being
9567 # careful not to overquote the AC_SUBSTed values. We take copies of the
9568 # variables and quote the copies for generation of the libtool script.
9569 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9570 SED SHELL STRIP \
9571 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9572 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9573 deplibs_check_method reload_flag reload_cmds need_locks \
9574 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9575 lt_cv_sys_global_symbol_to_c_name_address \
9576 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9577 old_postinstall_cmds old_postuninstall_cmds \
9578 compiler \
9579 CC \
9580 LD \
9581 lt_prog_compiler_wl \
9582 lt_prog_compiler_pic \
9583 lt_prog_compiler_static \
9584 lt_prog_compiler_no_builtin_flag \
9585 export_dynamic_flag_spec \
9586 thread_safe_flag_spec \
9587 whole_archive_flag_spec \
9588 enable_shared_with_static_runtimes \
9589 old_archive_cmds \
9590 old_archive_from_new_cmds \
9591 predep_objects \
9592 postdep_objects \
9593 predeps \
9594 postdeps \
9595 compiler_lib_search_path \
9596 archive_cmds \
9597 archive_expsym_cmds \
9598 postinstall_cmds \
9599 postuninstall_cmds \
9600 old_archive_from_expsyms_cmds \
9601 allow_undefined_flag \
9602 no_undefined_flag \
9603 export_symbols_cmds \
9604 hardcode_libdir_flag_spec \
9605 hardcode_libdir_flag_spec_ld \
9606 hardcode_libdir_separator \
9607 hardcode_automatic \
9608 module_cmds \
9609 module_expsym_cmds \
9610 lt_cv_prog_compiler_c_o \
9611 exclude_expsyms \
9612 include_expsyms; do
9613
9614 case $var in
9615 old_archive_cmds | \
9616 old_archive_from_new_cmds | \
9617 archive_cmds | \
9618 archive_expsym_cmds | \
9619 module_cmds | \
9620 module_expsym_cmds | \
9621 old_archive_from_expsyms_cmds | \
9622 export_symbols_cmds | \
9623 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9624 postinstall_cmds | postuninstall_cmds | \
9625 old_postinstall_cmds | old_postuninstall_cmds | \
9626 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
9627 # Double-quote double-evaled strings.
9628 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
9629 ;;
9630 *)
9631 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
9632 ;;
9633 esac
9634 done
9635
9636 case $lt_echo in
9637 *'\$0 --fallback-echo"')
9638 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
9639 ;;
9640 esac
9641
9642 cfgfile="${ofile}T"
9643 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
9644 $rm -f "$cfgfile"
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
9646 $as_echo "$as_me: creating $ofile" >&6;}
9647
9648 cat <<__EOF__ >> "$cfgfile"
9649 #! $SHELL
9650
9651 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
9652 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
9653 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
9654 #
9655 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
9656 # Free Software Foundation, Inc.
9657 #
9658 # This file is part of GNU Libtool:
9659 # Originally by Gordon Matzigkeit <[email protected]>, 1996
9660 #
9661 # This program is free software; you can redistribute it and/or modify
9662 # it under the terms of the GNU General Public License as published by
9663 # the Free Software Foundation; either version 2 of the License, or
9664 # (at your option) any later version.
9665 #
9666 # This program is distributed in the hope that it will be useful, but
9667 # WITHOUT ANY WARRANTY; without even the implied warranty of
9668 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
9669 # General Public License for more details.
9670 #
9671 # You should have received a copy of the GNU General Public License
9672 # along with this program; if not, write to the Free Software
9673 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
9674 #
9675 # As a special exception to the GNU General Public License, if you
9676 # distribute this file as part of a program that contains a
9677 # configuration script generated by Autoconf, you may include it under
9678 # the same distribution terms that you use for the rest of that program.
9679
9680 # A sed program that does not truncate output.
9681 SED=$lt_SED
9682
9683 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
9684 Xsed="$SED -e 1s/^X//"
9685
9686 # The HP-UX ksh and POSIX shell print the target directory to stdout
9687 # if CDPATH is set.
9688 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9689
9690 # The names of the tagged configurations supported by this script.
9691 available_tags=
9692
9693 # ### BEGIN LIBTOOL CONFIG
9694
9695 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
9696
9697 # Shell to use when invoking shell scripts.
9698 SHELL=$lt_SHELL
9699
9700 # Whether or not to build shared libraries.
9701 build_libtool_libs=$enable_shared
9702
9703 # Whether or not to build static libraries.
9704 build_old_libs=$enable_static
9705
9706 # Whether or not to add -lc for building shared libraries.
9707 build_libtool_need_lc=$archive_cmds_need_lc
9708
9709 # Whether or not to disallow shared libs when runtime libs are static
9710 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
9711
9712 # Whether or not to optimize for fast installation.
9713 fast_install=$enable_fast_install
9714
9715 # The host system.
9716 host_alias=$host_alias
9717 host=$host
9718 host_os=$host_os
9719
9720 # The build system.
9721 build_alias=$build_alias
9722 build=$build
9723 build_os=$build_os
9724
9725 # An echo program that does not interpret backslashes.
9726 echo=$lt_echo
9727
9728 # The archiver.
9729 AR=$lt_AR
9730 AR_FLAGS=$lt_AR_FLAGS
9731
9732 # A C compiler.
9733 LTCC=$lt_LTCC
9734
9735 # LTCC compiler flags.
9736 LTCFLAGS=$lt_LTCFLAGS
9737
9738 # A language-specific compiler.
9739 CC=$lt_compiler
9740
9741 # Is the compiler the GNU C compiler?
9742 with_gcc=$GCC
9743
9744 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
9745 gcc_ver=\`gcc -dumpversion\`
9746
9747 # An ERE matcher.
9748 EGREP=$lt_EGREP
9749
9750 # The linker used to build libraries.
9751 LD=$lt_LD
9752
9753 # Whether we need hard or soft links.
9754 LN_S=$lt_LN_S
9755
9756 # A BSD-compatible nm program.
9757 NM=$lt_NM
9758
9759 # A symbol stripping program
9760 STRIP=$lt_STRIP
9761
9762 # Used to examine libraries when file_magic_cmd begins "file"
9763 MAGIC_CMD=$MAGIC_CMD
9764
9765 # Used on cygwin: DLL creation program.
9766 DLLTOOL="$DLLTOOL"
9767
9768 # Used on cygwin: object dumper.
9769 OBJDUMP="$OBJDUMP"
9770
9771 # Used on cygwin: assembler.
9772 AS="$AS"
9773
9774 # The name of the directory that contains temporary libtool files.
9775 objdir=$objdir
9776
9777 # How to create reloadable object files.
9778 reload_flag=$lt_reload_flag
9779 reload_cmds=$lt_reload_cmds
9780
9781 # How to pass a linker flag through the compiler.
9782 wl=$lt_lt_prog_compiler_wl
9783
9784 # Object file suffix (normally "o").
9785 objext="$ac_objext"
9786
9787 # Old archive suffix (normally "a").
9788 libext="$libext"
9789
9790 # Shared library suffix (normally ".so").
9791 shrext_cmds='$shrext_cmds'
9792
9793 # Executable file suffix (normally "").
9794 exeext="$exeext"
9795
9796 # Additional compiler flags for building library objects.
9797 pic_flag=$lt_lt_prog_compiler_pic
9798 pic_mode=$pic_mode
9799
9800 # What is the maximum length of a command?
9801 max_cmd_len=$lt_cv_sys_max_cmd_len
9802
9803 # Does compiler simultaneously support -c and -o options?
9804 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
9805
9806 # Must we lock files when doing compilation?
9807 need_locks=$lt_need_locks
9808
9809 # Do we need the lib prefix for modules?
9810 need_lib_prefix=$need_lib_prefix
9811
9812 # Do we need a version for libraries?
9813 need_version=$need_version
9814
9815 # Whether dlopen is supported.
9816 dlopen_support=$enable_dlopen
9817
9818 # Whether dlopen of programs is supported.
9819 dlopen_self=$enable_dlopen_self
9820
9821 # Whether dlopen of statically linked programs is supported.
9822 dlopen_self_static=$enable_dlopen_self_static
9823
9824 # Compiler flag to prevent dynamic linking.
9825 link_static_flag=$lt_lt_prog_compiler_static
9826
9827 # Compiler flag to turn off builtin functions.
9828 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
9829
9830 # Compiler flag to allow reflexive dlopens.
9831 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
9832
9833 # Compiler flag to generate shared objects directly from archives.
9834 whole_archive_flag_spec=$lt_whole_archive_flag_spec
9835
9836 # Compiler flag to generate thread-safe objects.
9837 thread_safe_flag_spec=$lt_thread_safe_flag_spec
9838
9839 # Library versioning type.
9840 version_type=$version_type
9841
9842 # Format of library name prefix.
9843 libname_spec=$lt_libname_spec
9844
9845 # List of archive names. First name is the real one, the rest are links.
9846 # The last name is the one that the linker finds with -lNAME.
9847 library_names_spec=$lt_library_names_spec
9848
9849 # The coded name of the library, if different from the real name.
9850 soname_spec=$lt_soname_spec
9851
9852 # Commands used to build and install an old-style archive.
9853 RANLIB=$lt_RANLIB
9854 old_archive_cmds=$lt_old_archive_cmds
9855 old_postinstall_cmds=$lt_old_postinstall_cmds
9856 old_postuninstall_cmds=$lt_old_postuninstall_cmds
9857
9858 # Create an old-style archive from a shared archive.
9859 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
9860
9861 # Create a temporary old-style archive to link instead of a shared archive.
9862 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
9863
9864 # Commands used to build and install a shared archive.
9865 archive_cmds=$lt_archive_cmds
9866 archive_expsym_cmds=$lt_archive_expsym_cmds
9867 postinstall_cmds=$lt_postinstall_cmds
9868 postuninstall_cmds=$lt_postuninstall_cmds
9869
9870 # Commands used to build a loadable module (assumed same as above if empty)
9871 module_cmds=$lt_module_cmds
9872 module_expsym_cmds=$lt_module_expsym_cmds
9873
9874 # Commands to strip libraries.
9875 old_striplib=$lt_old_striplib
9876 striplib=$lt_striplib
9877
9878 # Dependencies to place before the objects being linked to create a
9879 # shared library.
9880 predep_objects=\`echo $lt_predep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9881
9882 # Dependencies to place after the objects being linked to create a
9883 # shared library.
9884 postdep_objects=\`echo $lt_postdep_objects | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9885
9886 # Dependencies to place before the objects being linked to create a
9887 # shared library.
9888 predeps=$lt_predeps
9889
9890 # Dependencies to place after the objects being linked to create a
9891 # shared library.
9892 postdeps=$lt_postdeps
9893
9894 # The library search path used internally by the compiler when linking
9895 # a shared library.
9896 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9897
9898 # Method to check whether dependent libraries are shared objects.
9899 deplibs_check_method=$lt_deplibs_check_method
9900
9901 # Command to use when deplibs_check_method == file_magic.
9902 file_magic_cmd=$lt_file_magic_cmd
9903
9904 # Flag that allows shared libraries with undefined symbols to be built.
9905 allow_undefined_flag=$lt_allow_undefined_flag
9906
9907 # Flag that forces no undefined symbols.
9908 no_undefined_flag=$lt_no_undefined_flag
9909
9910 # Commands used to finish a libtool library installation in a directory.
9911 finish_cmds=$lt_finish_cmds
9912
9913 # Same as above, but a single script fragment to be evaled but not shown.
9914 finish_eval=$lt_finish_eval
9915
9916 # Take the output of nm and produce a listing of raw symbols and C names.
9917 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
9918
9919 # Transform the output of nm in a proper C declaration
9920 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
9921
9922 # Transform the output of nm in a C name address pair
9923 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
9924
9925 # This is the shared library runtime path variable.
9926 runpath_var=$runpath_var
9927
9928 # This is the shared library path variable.
9929 shlibpath_var=$shlibpath_var
9930
9931 # Is shlibpath searched before the hard-coded library search path?
9932 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
9933
9934 # How to hardcode a shared library path into an executable.
9935 hardcode_action=$hardcode_action
9936
9937 # Whether we should hardcode library paths into libraries.
9938 hardcode_into_libs=$hardcode_into_libs
9939
9940 # Flag to hardcode \$libdir into a binary during linking.
9941 # This must work even if \$libdir does not exist.
9942 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
9943
9944 # If ld is used when linking, flag to hardcode \$libdir into
9945 # a binary during linking. This must work even if \$libdir does
9946 # not exist.
9947 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
9948
9949 # Whether we need a single -rpath flag with a separated argument.
9950 hardcode_libdir_separator=$lt_hardcode_libdir_separator
9951
9952 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
9953 # resulting binary.
9954 hardcode_direct=$hardcode_direct
9955
9956 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
9957 # resulting binary.
9958 hardcode_minus_L=$hardcode_minus_L
9959
9960 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
9961 # the resulting binary.
9962 hardcode_shlibpath_var=$hardcode_shlibpath_var
9963
9964 # Set to yes if building a shared library automatically hardcodes DIR into the library
9965 # and all subsequent libraries and executables linked against it.
9966 hardcode_automatic=$hardcode_automatic
9967
9968 # Variables whose values should be saved in libtool wrapper scripts and
9969 # restored at relink time.
9970 variables_saved_for_relink="$variables_saved_for_relink"
9971
9972 # Whether libtool must link a program against all its dependency libraries.
9973 link_all_deplibs=$link_all_deplibs
9974
9975 # Compile-time system search path for libraries
9976 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
9977
9978 # Run-time system search path for libraries
9979 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
9980
9981 # Fix the shell variable \$srcfile for the compiler.
9982 fix_srcfile_path="$fix_srcfile_path"
9983
9984 # Set to yes if exported symbols are required.
9985 always_export_symbols=$always_export_symbols
9986
9987 # The commands to list exported symbols.
9988 export_symbols_cmds=$lt_export_symbols_cmds
9989
9990 # The commands to extract the exported symbol list from a shared archive.
9991 extract_expsyms_cmds=$lt_extract_expsyms_cmds
9992
9993 # Symbols that should not be listed in the preloaded symbols.
9994 exclude_expsyms=$lt_exclude_expsyms
9995
9996 # Symbols that must always be exported.
9997 include_expsyms=$lt_include_expsyms
9998
9999 # ### END LIBTOOL CONFIG
10000
10001 __EOF__
10002
10003
10004 case $host_os in
10005 aix3*)
10006 cat <<\EOF >> "$cfgfile"
10007
10008 # AIX sometimes has problems with the GCC collect2 program. For some
10009 # reason, if we set the COLLECT_NAMES environment variable, the problems
10010 # vanish in a puff of smoke.
10011 if test "X${COLLECT_NAMES+set}" != Xset; then
10012 COLLECT_NAMES=
10013 export COLLECT_NAMES
10014 fi
10015 EOF
10016 ;;
10017 esac
10018
10019 # We use sed instead of cat because bash on DJGPP gets confused if
10020 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10021 # text mode, it properly converts lines to CR/LF. This bash problem
10022 # is reportedly fixed, but why not run on old versions too?
10023 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10024
10025 mv -f "$cfgfile" "$ofile" || \
10026 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10027 chmod +x "$ofile"
10028
10029 else
10030 # If there is no Makefile yet, we rely on a make rule to execute
10031 # `config.status --recheck' to rerun these tests and create the
10032 # libtool script then.
10033 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10034 if test -f "$ltmain_in"; then
10035 test -f Makefile && make "$ltmain"
10036 fi
10037 fi
10038
10039
10040 ac_ext=c
10041 ac_cpp='$CPP $CPPFLAGS'
10042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10045
10046 CC="$lt_save_CC"
10047
10048
10049 # Check whether --with-tags was given.
10050 if test "${with_tags+set}" = set; then :
10051 withval=$with_tags; tagnames="$withval"
10052 fi
10053
10054
10055 if test -f "$ltmain" && test -n "$tagnames"; then
10056 if test ! -f "${ofile}"; then
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10058 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10059 fi
10060
10061 if test -z "$LTCC"; then
10062 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10063 if test -z "$LTCC"; then
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10065 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10066 else
10067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10068 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10069 fi
10070 fi
10071 if test -z "$LTCFLAGS"; then
10072 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10073 fi
10074
10075 # Extract list of available tagged configurations in $ofile.
10076 # Note that this assumes the entire list is on one line.
10077 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10078
10079 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10080 for tagname in $tagnames; do
10081 IFS="$lt_save_ifs"
10082 # Check whether tagname contains only valid characters
10083 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10084 "") ;;
10085 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10086 ;;
10087 esac
10088
10089 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10090 then
10091 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10092 fi
10093
10094 # Update the list of available tags.
10095 if test -n "$tagname"; then
10096 echo appending configuration tag \"$tagname\" to $ofile
10097
10098 case $tagname in
10099 CXX)
10100 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10101 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10102 (test "X$CXX" != "Xg++"))) ; then
10103 ac_ext=cpp
10104 ac_cpp='$CXXCPP $CPPFLAGS'
10105 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10106 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10107 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10108
10109
10110
10111
10112 archive_cmds_need_lc_CXX=no
10113 allow_undefined_flag_CXX=
10114 always_export_symbols_CXX=no
10115 archive_expsym_cmds_CXX=
10116 export_dynamic_flag_spec_CXX=
10117 hardcode_direct_CXX=no
10118 hardcode_libdir_flag_spec_CXX=
10119 hardcode_libdir_flag_spec_ld_CXX=
10120 hardcode_libdir_separator_CXX=
10121 hardcode_minus_L_CXX=no
10122 hardcode_shlibpath_var_CXX=unsupported
10123 hardcode_automatic_CXX=no
10124 module_cmds_CXX=
10125 module_expsym_cmds_CXX=
10126 link_all_deplibs_CXX=unknown
10127 old_archive_cmds_CXX=$old_archive_cmds
10128 no_undefined_flag_CXX=
10129 whole_archive_flag_spec_CXX=
10130 enable_shared_with_static_runtimes_CXX=no
10131
10132 # Dependencies to place before and after the object being linked:
10133 predep_objects_CXX=
10134 postdep_objects_CXX=
10135 predeps_CXX=
10136 postdeps_CXX=
10137 compiler_lib_search_path_CXX=
10138
10139 # Source file extension for C++ test sources.
10140 ac_ext=cpp
10141
10142 # Object file extension for compiled C++ test sources.
10143 objext=o
10144 objext_CXX=$objext
10145
10146 # Code to be used in simple compile tests
10147 lt_simple_compile_test_code="int some_variable = 0;\n"
10148
10149 # Code to be used in simple link tests
10150 lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10151
10152 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10153
10154 # If no C compiler was specified, use CC.
10155 LTCC=${LTCC-"$CC"}
10156
10157 # If no C compiler flags were specified, use CFLAGS.
10158 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10159
10160 # Allow CC to be a program name with arguments.
10161 compiler=$CC
10162
10163
10164 # save warnings/boilerplate of simple test code
10165 ac_outfile=conftest.$ac_objext
10166 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10167 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10168 _lt_compiler_boilerplate=`cat conftest.err`
10169 $rm conftest*
10170
10171 ac_outfile=conftest.$ac_objext
10172 printf "$lt_simple_link_test_code" >conftest.$ac_ext
10173 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10174 _lt_linker_boilerplate=`cat conftest.err`
10175 $rm conftest*
10176
10177
10178 # Allow CC to be a program name with arguments.
10179 lt_save_CC=$CC
10180 lt_save_LD=$LD
10181 lt_save_GCC=$GCC
10182 GCC=$GXX
10183 lt_save_with_gnu_ld=$with_gnu_ld
10184 lt_save_path_LD=$lt_cv_path_LD
10185 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10186 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10187 else
10188 $as_unset lt_cv_prog_gnu_ld
10189 fi
10190 if test -n "${lt_cv_path_LDCXX+set}"; then
10191 lt_cv_path_LD=$lt_cv_path_LDCXX
10192 else
10193 $as_unset lt_cv_path_LD
10194 fi
10195 test -z "${LDCXX+set}" || LD=$LDCXX
10196 CC=${CXX-"c++"}
10197 compiler=$CC
10198 compiler_CXX=$CC
10199 for cc_temp in $compiler""; do
10200 case $cc_temp in
10201 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10202 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10203 \-*) ;;
10204 *) break;;
10205 esac
10206 done
10207 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10208
10209
10210 # We don't want -fno-exception wen compiling C++ code, so set the
10211 # no_builtin_flag separately
10212 if test "$GXX" = yes; then
10213 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10214 else
10215 lt_prog_compiler_no_builtin_flag_CXX=
10216 fi
10217
10218 if test "$GXX" = yes; then
10219 # Set up default GNU C++ configuration
10220
10221
10222 # Check whether --with-gnu-ld was given.
10223 if test "${with_gnu_ld+set}" = set; then :
10224 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10225 else
10226 with_gnu_ld=no
10227 fi
10228
10229 ac_prog=ld
10230 if test "$GCC" = yes; then
10231 # Check if gcc -print-prog-name=ld gives a path.
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10233 $as_echo_n "checking for ld used by $CC... " >&6; }
10234 case $host in
10235 *-*-mingw*)
10236 # gcc leaves a trailing carriage return which upsets mingw
10237 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10238 *)
10239 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10240 esac
10241 case $ac_prog in
10242 # Accept absolute paths.
10243 [\\/]* | ?:[\\/]*)
10244 re_direlt='/[^/][^/]*/\.\./'
10245 # Canonicalize the pathname of ld
10246 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10247 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10248 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10249 done
10250 test -z "$LD" && LD="$ac_prog"
10251 ;;
10252 "")
10253 # If it fails, then pretend we aren't using GCC.
10254 ac_prog=ld
10255 ;;
10256 *)
10257 # If it is relative, then search for the first ld in PATH.
10258 with_gnu_ld=unknown
10259 ;;
10260 esac
10261 elif test "$with_gnu_ld" = yes; then
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10263 $as_echo_n "checking for GNU ld... " >&6; }
10264 else
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10266 $as_echo_n "checking for non-GNU ld... " >&6; }
10267 fi
10268 if ${lt_cv_path_LD+:} false; then :
10269 $as_echo_n "(cached) " >&6
10270 else
10271 if test -z "$LD"; then
10272 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10273 for ac_dir in $PATH; do
10274 IFS="$lt_save_ifs"
10275 test -z "$ac_dir" && ac_dir=.
10276 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10277 lt_cv_path_LD="$ac_dir/$ac_prog"
10278 # Check to see if the program is GNU ld. I'd rather use --version,
10279 # but apparently some variants of GNU ld only accept -v.
10280 # Break only if it was the GNU/non-GNU ld that we prefer.
10281 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10282 *GNU* | *'with BFD'*)
10283 test "$with_gnu_ld" != no && break
10284 ;;
10285 *)
10286 test "$with_gnu_ld" != yes && break
10287 ;;
10288 esac
10289 fi
10290 done
10291 IFS="$lt_save_ifs"
10292 else
10293 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10294 fi
10295 fi
10296
10297 LD="$lt_cv_path_LD"
10298 if test -n "$LD"; then
10299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10300 $as_echo "$LD" >&6; }
10301 else
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10303 $as_echo "no" >&6; }
10304 fi
10305 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10307 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10308 if ${lt_cv_prog_gnu_ld+:} false; then :
10309 $as_echo_n "(cached) " >&6
10310 else
10311 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10312 case `$LD -v 2>&1 </dev/null` in
10313 *GNU* | *'with BFD'*)
10314 lt_cv_prog_gnu_ld=yes
10315 ;;
10316 *)
10317 lt_cv_prog_gnu_ld=no
10318 ;;
10319 esac
10320 fi
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10322 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
10323 with_gnu_ld=$lt_cv_prog_gnu_ld
10324
10325
10326
10327 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10328 # archiving commands below assume that GNU ld is being used.
10329 if test "$with_gnu_ld" = yes; then
10330 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10331 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10332
10333 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10334 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10335
10336 # If archive_cmds runs LD, not CC, wlarc should be empty
10337 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10338 # investigate it a little bit more. (MM)
10339 wlarc='${wl}'
10340
10341 # ancient GNU ld didn't support --whole-archive et. al.
10342 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10343 grep 'no-whole-archive' > /dev/null; then
10344 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10345 else
10346 whole_archive_flag_spec_CXX=
10347 fi
10348 else
10349 with_gnu_ld=no
10350 wlarc=
10351
10352 # A generic and very simple default shared library creation
10353 # command for GNU C++ for the case where it uses the native
10354 # linker, instead of GNU ld. If possible, this setting should
10355 # overridden to take advantage of the native linker features on
10356 # the platform it is being used on.
10357 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10358 fi
10359
10360 # Commands to make compiler produce verbose output that lists
10361 # what "hidden" libraries, object files and flags are used when
10362 # linking a shared library.
10363 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10364
10365 else
10366 GXX=no
10367 with_gnu_ld=no
10368 wlarc=
10369 fi
10370
10371 # PORTME: fill in a description of your system's C++ link characteristics
10372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10373 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10374 ld_shlibs_CXX=yes
10375 case $host_os in
10376 aix3*)
10377 # FIXME: insert proper C++ library support
10378 ld_shlibs_CXX=no
10379 ;;
10380 aix4* | aix5*)
10381 if test "$host_cpu" = ia64; then
10382 # On IA64, the linker does run time linking by default, so we don't
10383 # have to do anything special.
10384 aix_use_runtimelinking=no
10385 exp_sym_flag='-Bexport'
10386 no_entry_flag=""
10387 else
10388 aix_use_runtimelinking=no
10389
10390 # Test if we are trying to use run time linking or normal
10391 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10392 # need to do runtime linking.
10393 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
10394 for ld_flag in $LDFLAGS; do
10395 case $ld_flag in
10396 *-brtl*)
10397 aix_use_runtimelinking=yes
10398 break
10399 ;;
10400 esac
10401 done
10402 ;;
10403 esac
10404
10405 exp_sym_flag='-bexport'
10406 no_entry_flag='-bnoentry'
10407 fi
10408
10409 # When large executables or shared objects are built, AIX ld can
10410 # have problems creating the table of contents. If linking a library
10411 # or program results in "error TOC overflow" add -mminimal-toc to
10412 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10413 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10414
10415 archive_cmds_CXX=''
10416 hardcode_direct_CXX=yes
10417 hardcode_libdir_separator_CXX=':'
10418 link_all_deplibs_CXX=yes
10419
10420 if test "$GXX" = yes; then
10421 case $host_os in aix4.[012]|aix4.[012].*)
10422 # We only want to do this on AIX 4.2 and lower, the check
10423 # below for broken collect2 doesn't work under 4.3+
10424 collect2name=`${CC} -print-prog-name=collect2`
10425 if test -f "$collect2name" && \
10426 strings "$collect2name" | grep resolve_lib_name >/dev/null
10427 then
10428 # We have reworked collect2
10429 hardcode_direct_CXX=yes
10430 else
10431 # We have old collect2
10432 hardcode_direct_CXX=unsupported
10433 # It fails to find uninstalled libraries when the uninstalled
10434 # path is not listed in the libpath. Setting hardcode_minus_L
10435 # to unsupported forces relinking
10436 hardcode_minus_L_CXX=yes
10437 hardcode_libdir_flag_spec_CXX='-L$libdir'
10438 hardcode_libdir_separator_CXX=
10439 fi
10440 ;;
10441 esac
10442 shared_flag='-shared'
10443 if test "$aix_use_runtimelinking" = yes; then
10444 shared_flag="$shared_flag "'${wl}-G'
10445 fi
10446 else
10447 # not using gcc
10448 if test "$host_cpu" = ia64; then
10449 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10450 # chokes on -Wl,-G. The following line is correct:
10451 shared_flag='-G'
10452 else
10453 if test "$aix_use_runtimelinking" = yes; then
10454 shared_flag='${wl}-G'
10455 else
10456 shared_flag='${wl}-bM:SRE'
10457 fi
10458 fi
10459 fi
10460
10461 # It seems that -bexpall does not export symbols beginning with
10462 # underscore (_), so it is better to generate a list of symbols to export.
10463 always_export_symbols_CXX=yes
10464 if test "$aix_use_runtimelinking" = yes; then
10465 # Warning - without using the other runtime loading flags (-brtl),
10466 # -berok will link without error, but may produce a broken library.
10467 allow_undefined_flag_CXX='-berok'
10468 # Determine the default libpath from the value encoded in an empty executable.
10469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10470 /* end confdefs.h. */
10471
10472 int
10473 main ()
10474 {
10475
10476 ;
10477 return 0;
10478 }
10479 _ACEOF
10480 if ac_fn_cxx_try_link "$LINENO"; then :
10481
10482 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10483 }'`
10484 # Check for a 64-bit object if we didn't find anything.
10485 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10486 }'`; fi
10487 fi
10488 rm -f core conftest.err conftest.$ac_objext \
10489 conftest$ac_exeext conftest.$ac_ext
10490 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10491
10492 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10493
10494 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10495 else
10496 if test "$host_cpu" = ia64; then
10497 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10498 allow_undefined_flag_CXX="-z nodefs"
10499 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"
10500 else
10501 # Determine the default libpath from the value encoded in an empty executable.
10502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10503 /* end confdefs.h. */
10504
10505 int
10506 main ()
10507 {
10508
10509 ;
10510 return 0;
10511 }
10512 _ACEOF
10513 if ac_fn_cxx_try_link "$LINENO"; then :
10514
10515 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10516 }'`
10517 # Check for a 64-bit object if we didn't find anything.
10518 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
10519 }'`; fi
10520 fi
10521 rm -f core conftest.err conftest.$ac_objext \
10522 conftest$ac_exeext conftest.$ac_ext
10523 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10524
10525 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10526 # Warning - without using the other run time loading flags,
10527 # -berok will link without error, but may produce a broken library.
10528 no_undefined_flag_CXX=' ${wl}-bernotok'
10529 allow_undefined_flag_CXX=' ${wl}-berok'
10530 # Exported symbols can be pulled into shared objects from archives
10531 whole_archive_flag_spec_CXX='$convenience'
10532 archive_cmds_need_lc_CXX=yes
10533 # This is similar to how AIX traditionally builds its shared libraries.
10534 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'
10535 fi
10536 fi
10537 ;;
10538
10539 beos*)
10540 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10541 allow_undefined_flag_CXX=unsupported
10542 # Joseph Beckenbach <[email protected]> says some releases of gcc
10543 # support --undefined. This deserves some investigation. FIXME
10544 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10545 else
10546 ld_shlibs_CXX=no
10547 fi
10548 ;;
10549
10550 chorus*)
10551 case $cc_basename in
10552 *)
10553 # FIXME: insert proper C++ library support
10554 ld_shlibs_CXX=no
10555 ;;
10556 esac
10557 ;;
10558
10559 cygwin* | mingw* | pw32*)
10560 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
10561 # as there is no search path for DLLs.
10562 hardcode_libdir_flag_spec_CXX='-L$libdir'
10563 allow_undefined_flag_CXX=unsupported
10564 always_export_symbols_CXX=no
10565 enable_shared_with_static_runtimes_CXX=yes
10566
10567 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
10568 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'
10569 # If the export-symbols file already is a .def file (1st line
10570 # is EXPORTS), use it as is; otherwise, prepend...
10571 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10572 cp $export_symbols $output_objdir/$soname.def;
10573 else
10574 echo EXPORTS > $output_objdir/$soname.def;
10575 cat $export_symbols >> $output_objdir/$soname.def;
10576 fi~
10577 $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'
10578 else
10579 ld_shlibs_CXX=no
10580 fi
10581 ;;
10582 darwin* | rhapsody*)
10583 case $host_os in
10584 rhapsody* | darwin1.[012])
10585 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
10586 ;;
10587 *) # Darwin 1.3 on
10588 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
10589 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10590 else
10591 case ${MACOSX_DEPLOYMENT_TARGET} in
10592 10.[012])
10593 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10594 ;;
10595 10.*)
10596 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
10597 ;;
10598 esac
10599 fi
10600 ;;
10601 esac
10602 archive_cmds_need_lc_CXX=no
10603 hardcode_direct_CXX=no
10604 hardcode_automatic_CXX=yes
10605 hardcode_shlibpath_var_CXX=unsupported
10606 whole_archive_flag_spec_CXX=''
10607 link_all_deplibs_CXX=yes
10608
10609 if test "$GXX" = yes ; then
10610 lt_int_apple_cc_single_mod=no
10611 output_verbose_link_cmd='echo'
10612 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
10613 lt_int_apple_cc_single_mod=yes
10614 fi
10615 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10616 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
10617 else
10618 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'
10619 fi
10620 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10621 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10622 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
10623 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10624 else
10625 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10626 fi
10627 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10628 else
10629 case $cc_basename in
10630 xlc*)
10631 output_verbose_link_cmd='echo'
10632 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
10633 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
10634 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
10635 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10636 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
10637 ;;
10638 *)
10639 ld_shlibs_CXX=no
10640 ;;
10641 esac
10642 fi
10643 ;;
10644
10645 dgux*)
10646 case $cc_basename in
10647 ec++*)
10648 # FIXME: insert proper C++ library support
10649 ld_shlibs_CXX=no
10650 ;;
10651 ghcx*)
10652 # Green Hills C++ Compiler
10653 # FIXME: insert proper C++ library support
10654 ld_shlibs_CXX=no
10655 ;;
10656 *)
10657 # FIXME: insert proper C++ library support
10658 ld_shlibs_CXX=no
10659 ;;
10660 esac
10661 ;;
10662 freebsd[12]*)
10663 # C++ shared libraries reported to be fairly broken before switch to ELF
10664 ld_shlibs_CXX=no
10665 ;;
10666 freebsd-elf*)
10667 archive_cmds_need_lc_CXX=no
10668 ;;
10669 freebsd* | kfreebsd*-gnu | dragonfly*)
10670 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
10671 # conventions
10672 ld_shlibs_CXX=yes
10673 ;;
10674 gnu*)
10675 ;;
10676 hpux9*)
10677 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10678 hardcode_libdir_separator_CXX=:
10679 export_dynamic_flag_spec_CXX='${wl}-E'
10680 hardcode_direct_CXX=yes
10681 hardcode_minus_L_CXX=yes # Not in the search PATH,
10682 # but as the default
10683 # location of the library.
10684
10685 case $cc_basename in
10686 CC*)
10687 # FIXME: insert proper C++ library support
10688 ld_shlibs_CXX=no
10689 ;;
10690 aCC*)
10691 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'
10692 # Commands to make compiler produce verbose output that lists
10693 # what "hidden" libraries, object files and flags are used when
10694 # linking a shared library.
10695 #
10696 # There doesn't appear to be a way to prevent this compiler from
10697 # explicitly linking system object files so we need to strip them
10698 # from the output so that they don't get included in the library
10699 # dependencies.
10700 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; echo $list'
10701 ;;
10702 *)
10703 if test "$GXX" = yes; then
10704 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${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'
10705 else
10706 # FIXME: insert proper C++ library support
10707 ld_shlibs_CXX=no
10708 fi
10709 ;;
10710 esac
10711 ;;
10712 hpux10*|hpux11*)
10713 if test $with_gnu_ld = no; then
10714 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
10715 hardcode_libdir_separator_CXX=:
10716
10717 case $host_cpu in
10718 hppa*64*|ia64*)
10719 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
10720 ;;
10721 *)
10722 export_dynamic_flag_spec_CXX='${wl}-E'
10723 ;;
10724 esac
10725 fi
10726 case $host_cpu in
10727 hppa*64*|ia64*)
10728 hardcode_direct_CXX=no
10729 hardcode_shlibpath_var_CXX=no
10730 ;;
10731 *)
10732 hardcode_direct_CXX=yes
10733 hardcode_minus_L_CXX=yes # Not in the search PATH,
10734 # but as the default
10735 # location of the library.
10736 ;;
10737 esac
10738
10739 case $cc_basename in
10740 CC*)
10741 # FIXME: insert proper C++ library support
10742 ld_shlibs_CXX=no
10743 ;;
10744 aCC*)
10745 case $host_cpu in
10746 hppa*64*)
10747 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10748 ;;
10749 ia64*)
10750 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10751 ;;
10752 *)
10753 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10754 ;;
10755 esac
10756 # Commands to make compiler produce verbose output that lists
10757 # what "hidden" libraries, object files and flags are used when
10758 # linking a shared library.
10759 #
10760 # There doesn't appear to be a way to prevent this compiler from
10761 # explicitly linking system object files so we need to strip them
10762 # from the output so that they don't get included in the library
10763 # dependencies.
10764 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; echo $list'
10765 ;;
10766 *)
10767 if test "$GXX" = yes; then
10768 if test $with_gnu_ld = no; then
10769 case $host_cpu in
10770 hppa*64*)
10771 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10772 ;;
10773 ia64*)
10774 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10775 ;;
10776 *)
10777 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
10778 ;;
10779 esac
10780 fi
10781 else
10782 # FIXME: insert proper C++ library support
10783 ld_shlibs_CXX=no
10784 fi
10785 ;;
10786 esac
10787 ;;
10788 interix3*)
10789 hardcode_direct_CXX=no
10790 hardcode_shlibpath_var_CXX=no
10791 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10792 export_dynamic_flag_spec_CXX='${wl}-E'
10793 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10794 # Instead, shared libraries are loaded at an image base (0x10000000 by
10795 # default) and relocated if they conflict, which is a slow very memory
10796 # consuming and fragmenting process. To avoid this, we pick a random,
10797 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10798 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10799 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'
10800 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'
10801 ;;
10802 irix5* | irix6*)
10803 case $cc_basename in
10804 CC*)
10805 # SGI C++
10806 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10807
10808 # Archives containing C++ object files must be created using
10809 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
10810 # necessary to make sure instantiated templates are included
10811 # in the archive.
10812 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
10813 ;;
10814 *)
10815 if test "$GXX" = yes; then
10816 if test "$with_gnu_ld" = no; then
10817 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10818 else
10819 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
10820 fi
10821 fi
10822 link_all_deplibs_CXX=yes
10823 ;;
10824 esac
10825 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10826 hardcode_libdir_separator_CXX=:
10827 ;;
10828 linux*)
10829 case $cc_basename in
10830 KCC*)
10831 # Kuck and Associates, Inc. (KAI) C++ Compiler
10832
10833 # KCC will only create a shared library if the output file
10834 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10835 # to its proper name (with version) after linking.
10836 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'
10837 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'
10838 # Commands to make compiler produce verbose output that lists
10839 # what "hidden" libraries, object files and flags are used when
10840 # linking a shared library.
10841 #
10842 # There doesn't appear to be a way to prevent this compiler from
10843 # explicitly linking system object files so we need to strip them
10844 # from the output so that they don't get included in the library
10845 # dependencies.
10846 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; echo $list'
10847
10848 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
10849 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10850
10851 # Archives containing C++ object files must be created using
10852 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10853 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10854 ;;
10855 icpc*)
10856 # Intel C++
10857 with_gnu_ld=yes
10858 # version 8.0 and above of icpc choke on multiply defined symbols
10859 # if we add $predep_objects and $postdep_objects, however 7.1 and
10860 # earlier do not add the objects themselves.
10861 case `$CC -V 2>&1` in
10862 *"Version 7."*)
10863 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10864 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'
10865 ;;
10866 *) # Version 8.0 or newer
10867 tmp_idyn=
10868 case $host_cpu in
10869 ia64*) tmp_idyn=' -i_dynamic';;
10870 esac
10871 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10872 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'
10873 ;;
10874 esac
10875 archive_cmds_need_lc_CXX=no
10876 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10877 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10878 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10879 ;;
10880 pgCC*)
10881 # Portland Group C++ compiler
10882 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
10883 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'
10884
10885 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10886 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10887 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
10888 ;;
10889 cxx*)
10890 # Compaq C++
10891 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10892 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'
10893
10894 runpath_var=LD_RUN_PATH
10895 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
10896 hardcode_libdir_separator_CXX=:
10897
10898 # Commands to make compiler produce verbose output that lists
10899 # what "hidden" libraries, object files and flags are used when
10900 # linking a shared library.
10901 #
10902 # There doesn't appear to be a way to prevent this compiler from
10903 # explicitly linking system object files so we need to strip them
10904 # from the output so that they don't get included in the library
10905 # dependencies.
10906 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $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; echo $list'
10907 ;;
10908 esac
10909 ;;
10910 lynxos*)
10911 # FIXME: insert proper C++ library support
10912 ld_shlibs_CXX=no
10913 ;;
10914 m88k*)
10915 # FIXME: insert proper C++ library support
10916 ld_shlibs_CXX=no
10917 ;;
10918 mvs*)
10919 case $cc_basename in
10920 cxx*)
10921 # FIXME: insert proper C++ library support
10922 ld_shlibs_CXX=no
10923 ;;
10924 *)
10925 # FIXME: insert proper C++ library support
10926 ld_shlibs_CXX=no
10927 ;;
10928 esac
10929 ;;
10930 netbsd*)
10931 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10932 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
10933 wlarc=
10934 hardcode_libdir_flag_spec_CXX='-R$libdir'
10935 hardcode_direct_CXX=yes
10936 hardcode_shlibpath_var_CXX=no
10937 fi
10938 # Workaround some broken pre-1.5 toolchains
10939 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
10940 ;;
10941 openbsd2*)
10942 # C++ shared libraries are fairly broken
10943 ld_shlibs_CXX=no
10944 ;;
10945 openbsd*)
10946 hardcode_direct_CXX=yes
10947 hardcode_shlibpath_var_CXX=no
10948 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10949 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10950 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10951 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
10952 export_dynamic_flag_spec_CXX='${wl}-E'
10953 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10954 fi
10955 output_verbose_link_cmd='echo'
10956 ;;
10957 osf3*)
10958 case $cc_basename in
10959 KCC*)
10960 # Kuck and Associates, Inc. (KAI) C++ Compiler
10961
10962 # KCC will only create a shared library if the output file
10963 # ends with ".so" (or ".sl" for HP-UX), so rename the library
10964 # to its proper name (with version) after linking.
10965 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'
10966
10967 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
10968 hardcode_libdir_separator_CXX=:
10969
10970 # Archives containing C++ object files must be created using
10971 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
10972 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
10973
10974 ;;
10975 RCC*)
10976 # Rational C++ 2.4.1
10977 # FIXME: insert proper C++ library support
10978 ld_shlibs_CXX=no
10979 ;;
10980 cxx*)
10981 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
10982 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
10983
10984 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
10985 hardcode_libdir_separator_CXX=:
10986
10987 # Commands to make compiler produce verbose output that lists
10988 # what "hidden" libraries, object files and flags are used when
10989 # linking a shared library.
10990 #
10991 # There doesn't appear to be a way to prevent this compiler from
10992 # explicitly linking system object files so we need to strip them
10993 # from the output so that they don't get included in the library
10994 # dependencies.
10995 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
10996 ;;
10997 *)
10998 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
10999 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11000 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11001
11002 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11003 hardcode_libdir_separator_CXX=:
11004
11005 # Commands to make compiler produce verbose output that lists
11006 # what "hidden" libraries, object files and flags are used when
11007 # linking a shared library.
11008 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11009
11010 else
11011 # FIXME: insert proper C++ library support
11012 ld_shlibs_CXX=no
11013 fi
11014 ;;
11015 esac
11016 ;;
11017 osf4* | osf5*)
11018 case $cc_basename in
11019 KCC*)
11020 # Kuck and Associates, Inc. (KAI) C++ Compiler
11021
11022 # KCC will only create a shared library if the output file
11023 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11024 # to its proper name (with version) after linking.
11025 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'
11026
11027 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11028 hardcode_libdir_separator_CXX=:
11029
11030 # Archives containing C++ object files must be created using
11031 # the KAI C++ compiler.
11032 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11033 ;;
11034 RCC*)
11035 # Rational C++ 2.4.1
11036 # FIXME: insert proper C++ library support
11037 ld_shlibs_CXX=no
11038 ;;
11039 cxx*)
11040 allow_undefined_flag_CXX=' -expect_unresolved \*'
11041 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11042 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11043 echo "-hidden">> $lib.exp~
11044 $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~
11045 $rm $lib.exp'
11046
11047 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11048 hardcode_libdir_separator_CXX=:
11049
11050 # Commands to make compiler produce verbose output that lists
11051 # what "hidden" libraries, object files and flags are used when
11052 # linking a shared library.
11053 #
11054 # There doesn't appear to be a way to prevent this compiler from
11055 # explicitly linking system object files so we need to strip them
11056 # from the output so that they don't get included in the library
11057 # dependencies.
11058 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $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; echo $list'
11059 ;;
11060 *)
11061 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11062 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11063 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
11064
11065 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11066 hardcode_libdir_separator_CXX=:
11067
11068 # Commands to make compiler produce verbose output that lists
11069 # what "hidden" libraries, object files and flags are used when
11070 # linking a shared library.
11071 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11072
11073 else
11074 # FIXME: insert proper C++ library support
11075 ld_shlibs_CXX=no
11076 fi
11077 ;;
11078 esac
11079 ;;
11080 psos*)
11081 # FIXME: insert proper C++ library support
11082 ld_shlibs_CXX=no
11083 ;;
11084 sunos4*)
11085 case $cc_basename in
11086 CC*)
11087 # Sun C++ 4.x
11088 # FIXME: insert proper C++ library support
11089 ld_shlibs_CXX=no
11090 ;;
11091 lcc*)
11092 # Lucid
11093 # FIXME: insert proper C++ library support
11094 ld_shlibs_CXX=no
11095 ;;
11096 *)
11097 # FIXME: insert proper C++ library support
11098 ld_shlibs_CXX=no
11099 ;;
11100 esac
11101 ;;
11102 solaris*)
11103 case $cc_basename in
11104 CC*)
11105 # Sun C++ 4.2, 5.x and Centerline C++
11106 archive_cmds_need_lc_CXX=yes
11107 no_undefined_flag_CXX=' -zdefs'
11108 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11109 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11110 $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'
11111
11112 hardcode_libdir_flag_spec_CXX='-R$libdir'
11113 hardcode_shlibpath_var_CXX=no
11114 case $host_os in
11115 solaris2.[0-5] | solaris2.[0-5].*) ;;
11116 *)
11117 # The C++ compiler is used as linker so we must use $wl
11118 # flag to pass the commands to the underlying system
11119 # linker. We must also pass each convience library through
11120 # to the system linker between allextract/defaultextract.
11121 # The C++ compiler will combine linker options so we
11122 # cannot just pass the convience library names through
11123 # without $wl.
11124 # Supported since Solaris 2.6 (maybe 2.5.1?)
11125 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract'
11126 ;;
11127 esac
11128 link_all_deplibs_CXX=yes
11129
11130 output_verbose_link_cmd='echo'
11131
11132 # Archives containing C++ object files must be created using
11133 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11134 # necessary to make sure instantiated templates are included
11135 # in the archive.
11136 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11137 ;;
11138 gcx*)
11139 # Green Hills C++ Compiler
11140 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11141
11142 # The C++ compiler must be used to create the archive.
11143 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11144 ;;
11145 *)
11146 # GNU C++ compiler with Solaris linker
11147 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11148 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11149 if $CC --version | grep -v '^2\.7' > /dev/null; then
11150 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11151 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11152 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11153
11154 # Commands to make compiler produce verbose output that lists
11155 # what "hidden" libraries, object files and flags are used when
11156 # linking a shared library.
11157 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11158 else
11159 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11160 # platform.
11161 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11162 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11163 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11164
11165 # Commands to make compiler produce verbose output that lists
11166 # what "hidden" libraries, object files and flags are used when
11167 # linking a shared library.
11168 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11169 fi
11170
11171 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11172 fi
11173 ;;
11174 esac
11175 ;;
11176 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11177 no_undefined_flag_CXX='${wl}-z,text'
11178 archive_cmds_need_lc_CXX=no
11179 hardcode_shlibpath_var_CXX=no
11180 runpath_var='LD_RUN_PATH'
11181
11182 case $cc_basename in
11183 CC*)
11184 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11185 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11186 ;;
11187 *)
11188 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11189 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11190 ;;
11191 esac
11192 ;;
11193 sysv5* | sco3.2v5* | sco5v6*)
11194 # Note: We can NOT use -z defs as we might desire, because we do not
11195 # link with -lc, and that would cause any symbols used from libc to
11196 # always be unresolved, which means just about no library would
11197 # ever link correctly. If we're not using GNU ld we use -z text
11198 # though, which does catch some bad symbols but isn't as heavy-handed
11199 # as -z defs.
11200 # For security reasons, it is highly recommended that you always
11201 # use absolute paths for naming shared libraries, and exclude the
11202 # DT_RUNPATH tag from executables and libraries. But doing so
11203 # requires that you compile everything twice, which is a pain.
11204 # So that behaviour is only enabled if SCOABSPATH is set to a
11205 # non-empty value in the environment. Most likely only useful for
11206 # creating official distributions of packages.
11207 # This is a hack until libtool officially supports absolute path
11208 # names for shared libraries.
11209 no_undefined_flag_CXX='${wl}-z,text'
11210 allow_undefined_flag_CXX='${wl}-z,nodefs'
11211 archive_cmds_need_lc_CXX=no
11212 hardcode_shlibpath_var_CXX=no
11213 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11214 hardcode_libdir_separator_CXX=':'
11215 link_all_deplibs_CXX=yes
11216 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11217 runpath_var='LD_RUN_PATH'
11218
11219 case $cc_basename in
11220 CC*)
11221 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11222 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11223 ;;
11224 *)
11225 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11226 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11227 ;;
11228 esac
11229 ;;
11230 tandem*)
11231 case $cc_basename in
11232 NCC*)
11233 # NonStop-UX NCC 3.20
11234 # FIXME: insert proper C++ library support
11235 ld_shlibs_CXX=no
11236 ;;
11237 *)
11238 # FIXME: insert proper C++ library support
11239 ld_shlibs_CXX=no
11240 ;;
11241 esac
11242 ;;
11243 vxworks*)
11244 # FIXME: insert proper C++ library support
11245 ld_shlibs_CXX=no
11246 ;;
11247 *)
11248 # FIXME: insert proper C++ library support
11249 ld_shlibs_CXX=no
11250 ;;
11251 esac
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11253 $as_echo "$ld_shlibs_CXX" >&6; }
11254 test "$ld_shlibs_CXX" = no && can_build_shared=no
11255
11256 GCC_CXX="$GXX"
11257 LD_CXX="$LD"
11258
11259
11260 cat > conftest.$ac_ext <<EOF
11261 class Foo
11262 {
11263 public:
11264 Foo (void) { a = 0; }
11265 private:
11266 int a;
11267 };
11268 EOF
11269
11270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11271 (eval $ac_compile) 2>&5
11272 ac_status=$?
11273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11274 test $ac_status = 0; }; then
11275 # Parse the compiler output and extract the necessary
11276 # objects, libraries and library flags.
11277
11278 # Sentinel used to keep track of whether or not we are before
11279 # the conftest object file.
11280 pre_test_object_deps_done=no
11281
11282 # The `*' in the case matches for architectures that use `case' in
11283 # $output_verbose_cmd can trigger glob expansion during the loop
11284 # eval without this substitution.
11285 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11286
11287 for p in `eval $output_verbose_link_cmd`; do
11288 case $p in
11289
11290 -L* | -R* | -l*)
11291 # Some compilers place space between "-{L,R}" and the path.
11292 # Remove the space.
11293 if test $p = "-L" \
11294 || test $p = "-R"; then
11295 prev=$p
11296 continue
11297 else
11298 prev=
11299 fi
11300
11301 if test "$pre_test_object_deps_done" = no; then
11302 case $p in
11303 -L* | -R*)
11304 # Internal compiler library paths should come after those
11305 # provided the user. The postdeps already come after the
11306 # user supplied libs so there is no need to process them.
11307 if test -z "$compiler_lib_search_path_CXX"; then
11308 compiler_lib_search_path_CXX="${prev}${p}"
11309 else
11310 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11311 fi
11312 ;;
11313 # The "-l" case would never come before the object being
11314 # linked, so don't bother handling this case.
11315 esac
11316 else
11317 if test -z "$postdeps_CXX"; then
11318 postdeps_CXX="${prev}${p}"
11319 else
11320 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11321 fi
11322 fi
11323 ;;
11324
11325 *.$objext)
11326 # This assumes that the test object file only shows up
11327 # once in the compiler output.
11328 if test "$p" = "conftest.$objext"; then
11329 pre_test_object_deps_done=yes
11330 continue
11331 fi
11332
11333 if test "$pre_test_object_deps_done" = no; then
11334 if test -z "$predep_objects_CXX"; then
11335 predep_objects_CXX="$p"
11336 else
11337 predep_objects_CXX="$predep_objects_CXX $p"
11338 fi
11339 else
11340 if test -z "$postdep_objects_CXX"; then
11341 postdep_objects_CXX="$p"
11342 else
11343 postdep_objects_CXX="$postdep_objects_CXX $p"
11344 fi
11345 fi
11346 ;;
11347
11348 *) ;; # Ignore the rest.
11349
11350 esac
11351 done
11352
11353 # Clean up.
11354 rm -f a.out a.exe
11355 else
11356 echo "libtool.m4: error: problem compiling CXX test program"
11357 fi
11358
11359 $rm -f confest.$objext
11360
11361 # PORTME: override above test on systems where it is broken
11362 case $host_os in
11363 interix3*)
11364 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11365 # hack all around it, let's just trust "g++" to DTRT.
11366 predep_objects_CXX=
11367 postdep_objects_CXX=
11368 postdeps_CXX=
11369 ;;
11370
11371 solaris*)
11372 case $cc_basename in
11373 CC*)
11374 # Adding this requires a known-good setup of shared libraries for
11375 # Sun compiler versions before 5.6, else PIC objects from an old
11376 # archive will be linked into the output, leading to subtle bugs.
11377 postdeps_CXX='-lCstd -lCrun'
11378 ;;
11379 esac
11380 ;;
11381 esac
11382
11383
11384 case " $postdeps_CXX " in
11385 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11386 esac
11387
11388 lt_prog_compiler_wl_CXX=
11389 lt_prog_compiler_pic_CXX=
11390 lt_prog_compiler_static_CXX=
11391
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11393 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11394
11395 # C++ specific cases for pic, static, wl, etc.
11396 if test "$GXX" = yes; then
11397 lt_prog_compiler_wl_CXX='-Wl,'
11398 lt_prog_compiler_static_CXX='-static'
11399
11400 case $host_os in
11401 aix*)
11402 # All AIX code is PIC.
11403 if test "$host_cpu" = ia64; then
11404 # AIX 5 now supports IA64 processor
11405 lt_prog_compiler_static_CXX='-Bstatic'
11406 fi
11407 ;;
11408 amigaos*)
11409 # FIXME: we need at least 68020 code to build shared libraries, but
11410 # adding the `-m68020' flag to GCC prevents building anything better,
11411 # like `-m68040'.
11412 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11413 ;;
11414 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11415 # PIC is the default for these OSes.
11416 ;;
11417 mingw* | os2* | pw32*)
11418 # This hack is so that the source file can tell whether it is being
11419 # built for inclusion in a dll (and should export symbols for example).
11420 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11421 ;;
11422 darwin* | rhapsody*)
11423 # PIC is the default on this platform
11424 # Common symbols not allowed in MH_DYLIB files
11425 lt_prog_compiler_pic_CXX='-fno-common'
11426 ;;
11427 *djgpp*)
11428 # DJGPP does not support shared libraries at all
11429 lt_prog_compiler_pic_CXX=
11430 ;;
11431 interix3*)
11432 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11433 # Instead, we relocate shared libraries at runtime.
11434 ;;
11435 sysv4*MP*)
11436 if test -d /usr/nec; then
11437 lt_prog_compiler_pic_CXX=-Kconform_pic
11438 fi
11439 ;;
11440 hpux*)
11441 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11442 # not for PA HP-UX.
11443 case $host_cpu in
11444 hppa*64*|ia64*)
11445 ;;
11446 *)
11447 lt_prog_compiler_pic_CXX='-fPIC'
11448 ;;
11449 esac
11450 ;;
11451 *)
11452 lt_prog_compiler_pic_CXX='-fPIC'
11453 ;;
11454 esac
11455 else
11456 case $host_os in
11457 aix4* | aix5*)
11458 # All AIX code is PIC.
11459 if test "$host_cpu" = ia64; then
11460 # AIX 5 now supports IA64 processor
11461 lt_prog_compiler_static_CXX='-Bstatic'
11462 else
11463 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11464 fi
11465 ;;
11466 chorus*)
11467 case $cc_basename in
11468 cxch68*)
11469 # Green Hills C++ Compiler
11470 # _LT_AC_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"
11471 ;;
11472 esac
11473 ;;
11474 darwin*)
11475 # PIC is the default on this platform
11476 # Common symbols not allowed in MH_DYLIB files
11477 case $cc_basename in
11478 xlc*)
11479 lt_prog_compiler_pic_CXX='-qnocommon'
11480 lt_prog_compiler_wl_CXX='-Wl,'
11481 ;;
11482 esac
11483 ;;
11484 dgux*)
11485 case $cc_basename in
11486 ec++*)
11487 lt_prog_compiler_pic_CXX='-KPIC'
11488 ;;
11489 ghcx*)
11490 # Green Hills C++ Compiler
11491 lt_prog_compiler_pic_CXX='-pic'
11492 ;;
11493 *)
11494 ;;
11495 esac
11496 ;;
11497 freebsd* | kfreebsd*-gnu | dragonfly*)
11498 # FreeBSD uses GNU C++
11499 ;;
11500 hpux9* | hpux10* | hpux11*)
11501 case $cc_basename in
11502 CC*)
11503 lt_prog_compiler_wl_CXX='-Wl,'
11504 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11505 if test "$host_cpu" != ia64; then
11506 lt_prog_compiler_pic_CXX='+Z'
11507 fi
11508 ;;
11509 aCC*)
11510 lt_prog_compiler_wl_CXX='-Wl,'
11511 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11512 case $host_cpu in
11513 hppa*64*|ia64*)
11514 # +Z the default
11515 ;;
11516 *)
11517 lt_prog_compiler_pic_CXX='+Z'
11518 ;;
11519 esac
11520 ;;
11521 *)
11522 ;;
11523 esac
11524 ;;
11525 interix*)
11526 # This is c89, which is MS Visual C++ (no shared libs)
11527 # Anyone wants to do a port?
11528 ;;
11529 irix5* | irix6* | nonstopux*)
11530 case $cc_basename in
11531 CC*)
11532 lt_prog_compiler_wl_CXX='-Wl,'
11533 lt_prog_compiler_static_CXX='-non_shared'
11534 # CC pic flag -KPIC is the default.
11535 ;;
11536 *)
11537 ;;
11538 esac
11539 ;;
11540 linux*)
11541 case $cc_basename in
11542 KCC*)
11543 # KAI C++ Compiler
11544 lt_prog_compiler_wl_CXX='--backend -Wl,'
11545 lt_prog_compiler_pic_CXX='-fPIC'
11546 ;;
11547 icpc* | ecpc*)
11548 # Intel C++
11549 lt_prog_compiler_wl_CXX='-Wl,'
11550 lt_prog_compiler_pic_CXX='-KPIC'
11551 lt_prog_compiler_static_CXX='-static'
11552 ;;
11553 pgCC*)
11554 # Portland Group C++ compiler.
11555 lt_prog_compiler_wl_CXX='-Wl,'
11556 lt_prog_compiler_pic_CXX='-fpic'
11557 lt_prog_compiler_static_CXX='-Bstatic'
11558 ;;
11559 cxx*)
11560 # Compaq C++
11561 # Make sure the PIC flag is empty. It appears that all Alpha
11562 # Linux and Compaq Tru64 Unix objects are PIC.
11563 lt_prog_compiler_pic_CXX=
11564 lt_prog_compiler_static_CXX='-non_shared'
11565 ;;
11566 *)
11567 ;;
11568 esac
11569 ;;
11570 lynxos*)
11571 ;;
11572 m88k*)
11573 ;;
11574 mvs*)
11575 case $cc_basename in
11576 cxx*)
11577 lt_prog_compiler_pic_CXX='-W c,exportall'
11578 ;;
11579 *)
11580 ;;
11581 esac
11582 ;;
11583 netbsd*)
11584 ;;
11585 osf3* | osf4* | osf5*)
11586 case $cc_basename in
11587 KCC*)
11588 lt_prog_compiler_wl_CXX='--backend -Wl,'
11589 ;;
11590 RCC*)
11591 # Rational C++ 2.4.1
11592 lt_prog_compiler_pic_CXX='-pic'
11593 ;;
11594 cxx*)
11595 # Digital/Compaq C++
11596 lt_prog_compiler_wl_CXX='-Wl,'
11597 # Make sure the PIC flag is empty. It appears that all Alpha
11598 # Linux and Compaq Tru64 Unix objects are PIC.
11599 lt_prog_compiler_pic_CXX=
11600 lt_prog_compiler_static_CXX='-non_shared'
11601 ;;
11602 *)
11603 ;;
11604 esac
11605 ;;
11606 psos*)
11607 ;;
11608 solaris*)
11609 case $cc_basename in
11610 CC*)
11611 # Sun C++ 4.2, 5.x and Centerline C++
11612 lt_prog_compiler_pic_CXX='-KPIC'
11613 lt_prog_compiler_static_CXX='-Bstatic'
11614 lt_prog_compiler_wl_CXX='-Qoption ld '
11615 ;;
11616 gcx*)
11617 # Green Hills C++ Compiler
11618 lt_prog_compiler_pic_CXX='-PIC'
11619 ;;
11620 *)
11621 ;;
11622 esac
11623 ;;
11624 sunos4*)
11625 case $cc_basename in
11626 CC*)
11627 # Sun C++ 4.x
11628 lt_prog_compiler_pic_CXX='-pic'
11629 lt_prog_compiler_static_CXX='-Bstatic'
11630 ;;
11631 lcc*)
11632 # Lucid
11633 lt_prog_compiler_pic_CXX='-pic'
11634 ;;
11635 *)
11636 ;;
11637 esac
11638 ;;
11639 tandem*)
11640 case $cc_basename in
11641 NCC*)
11642 # NonStop-UX NCC 3.20
11643 lt_prog_compiler_pic_CXX='-KPIC'
11644 ;;
11645 *)
11646 ;;
11647 esac
11648 ;;
11649 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11650 case $cc_basename in
11651 CC*)
11652 lt_prog_compiler_wl_CXX='-Wl,'
11653 lt_prog_compiler_pic_CXX='-KPIC'
11654 lt_prog_compiler_static_CXX='-Bstatic'
11655 ;;
11656 esac
11657 ;;
11658 vxworks*)
11659 ;;
11660 *)
11661 lt_prog_compiler_can_build_shared_CXX=no
11662 ;;
11663 esac
11664 fi
11665
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
11667 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
11668
11669 #
11670 # Check to make sure the PIC flag actually works.
11671 #
11672 if test -n "$lt_prog_compiler_pic_CXX"; then
11673
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
11675 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
11676 if ${lt_prog_compiler_pic_works_CXX+:} false; then :
11677 $as_echo_n "(cached) " >&6
11678 else
11679 lt_prog_compiler_pic_works_CXX=no
11680 ac_outfile=conftest.$ac_objext
11681 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11682 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
11683 # Insert the option either (1) after the last *FLAGS variable, or
11684 # (2) before a word containing "conftest.", or (3) at the end.
11685 # Note that $ac_compile itself does not contain backslashes and begins
11686 # with a dollar sign (not a hyphen), so the echo should work correctly.
11687 # The option is referenced via a variable to avoid confusing sed.
11688 lt_compile=`echo "$ac_compile" | $SED \
11689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11691 -e 's:$: $lt_compiler_flag:'`
11692 (eval echo "\"\$as_me:11692: $lt_compile\"" >&5)
11693 (eval "$lt_compile" 2>conftest.err)
11694 ac_status=$?
11695 cat conftest.err >&5
11696 echo "$as_me:11696: \$? = $ac_status" >&5
11697 if (exit $ac_status) && test -s "$ac_outfile"; then
11698 # The compiler can only warn and ignore the option if not recognized
11699 # So say no if there are warnings other than the usual output.
11700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11701 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11702 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11703 lt_prog_compiler_pic_works_CXX=yes
11704 fi
11705 fi
11706 $rm conftest*
11707
11708 fi
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
11710 $as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
11711
11712 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
11713 case $lt_prog_compiler_pic_CXX in
11714 "" | " "*) ;;
11715 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
11716 esac
11717 else
11718 lt_prog_compiler_pic_CXX=
11719 lt_prog_compiler_can_build_shared_CXX=no
11720 fi
11721
11722 fi
11723 case $host_os in
11724 # For platforms which do not support PIC, -DPIC is meaningless:
11725 *djgpp*)
11726 lt_prog_compiler_pic_CXX=
11727 ;;
11728 *)
11729 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
11730 ;;
11731 esac
11732
11733 #
11734 # Check to make sure the static flag actually works.
11735 #
11736 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11738 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11739 if ${lt_prog_compiler_static_works_CXX+:} false; then :
11740 $as_echo_n "(cached) " >&6
11741 else
11742 lt_prog_compiler_static_works_CXX=no
11743 save_LDFLAGS="$LDFLAGS"
11744 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11745 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11746 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11747 # The linker can only warn and ignore the option if not recognized
11748 # So say no if there are warnings
11749 if test -s conftest.err; then
11750 # Append any errors to the config.log.
11751 cat conftest.err 1>&5
11752 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
11753 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11754 if diff conftest.exp conftest.er2 >/dev/null; then
11755 lt_prog_compiler_static_works_CXX=yes
11756 fi
11757 else
11758 lt_prog_compiler_static_works_CXX=yes
11759 fi
11760 fi
11761 $rm conftest*
11762 LDFLAGS="$save_LDFLAGS"
11763
11764 fi
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
11766 $as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
11767
11768 if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
11769 :
11770 else
11771 lt_prog_compiler_static_CXX=
11772 fi
11773
11774
11775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11776 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11777 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
11778 $as_echo_n "(cached) " >&6
11779 else
11780 lt_cv_prog_compiler_c_o_CXX=no
11781 $rm -r conftest 2>/dev/null
11782 mkdir conftest
11783 cd conftest
11784 mkdir out
11785 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11786
11787 lt_compiler_flag="-o out/conftest2.$ac_objext"
11788 # Insert the option either (1) after the last *FLAGS variable, or
11789 # (2) before a word containing "conftest.", or (3) at the end.
11790 # Note that $ac_compile itself does not contain backslashes and begins
11791 # with a dollar sign (not a hyphen), so the echo should work correctly.
11792 lt_compile=`echo "$ac_compile" | $SED \
11793 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11794 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11795 -e 's:$: $lt_compiler_flag:'`
11796 (eval echo "\"\$as_me:11796: $lt_compile\"" >&5)
11797 (eval "$lt_compile" 2>out/conftest.err)
11798 ac_status=$?
11799 cat out/conftest.err >&5
11800 echo "$as_me:11800: \$? = $ac_status" >&5
11801 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11802 then
11803 # The compiler can only warn and ignore the option if not recognized
11804 # So say no if there are warnings
11805 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
11806 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11807 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11808 lt_cv_prog_compiler_c_o_CXX=yes
11809 fi
11810 fi
11811 chmod u+w . 2>&5
11812 $rm conftest*
11813 # SGI C++ compiler will create directory out/ii_files/ for
11814 # template instantiation
11815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
11816 $rm out/* && rmdir out
11817 cd ..
11818 rmdir conftest
11819 $rm conftest*
11820
11821 fi
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
11823 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
11824
11825
11826 hard_links="nottested"
11827 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
11828 # do not overwrite the value of need_locks provided by the user
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11830 $as_echo_n "checking if we can lock with hard links... " >&6; }
11831 hard_links=yes
11832 $rm conftest*
11833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11834 touch conftest.a
11835 ln conftest.a conftest.b 2>&5 || hard_links=no
11836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11838 $as_echo "$hard_links" >&6; }
11839 if test "$hard_links" = no; then
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11841 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11842 need_locks=warn
11843 fi
11844 else
11845 need_locks=no
11846 fi
11847
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11849 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11850
11851 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11852 case $host_os in
11853 aix4* | aix5*)
11854 # If we're using GNU nm, then we don't want the "-C" option.
11855 # -C means demangle to AIX nm, but means don't demangle with GNU nm
11856 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
11857 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
11858 else
11859 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'
11860 fi
11861 ;;
11862 pw32*)
11863 export_symbols_cmds_CXX="$ltdll_cmds"
11864 ;;
11865 cygwin* | mingw*)
11866 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
11867 ;;
11868 *)
11869 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11870 ;;
11871 esac
11872
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11874 $as_echo "$ld_shlibs_CXX" >&6; }
11875 test "$ld_shlibs_CXX" = no && can_build_shared=no
11876
11877 #
11878 # Do we need to explicitly link libc?
11879 #
11880 case "x$archive_cmds_need_lc_CXX" in
11881 x|xyes)
11882 # Assume -lc should be added
11883 archive_cmds_need_lc_CXX=yes
11884
11885 if test "$enable_shared" = yes && test "$GCC" = yes; then
11886 case $archive_cmds_CXX in
11887 *'~'*)
11888 # FIXME: we may have to deal with multi-command sequences.
11889 ;;
11890 '$CC '*)
11891 # Test whether the compiler implicitly links with -lc since on some
11892 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11893 # to ld, don't add -lc before -lgcc.
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11895 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11896 $rm conftest*
11897 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11898
11899 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11900 (eval $ac_compile) 2>&5
11901 ac_status=$?
11902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11903 test $ac_status = 0; } 2>conftest.err; then
11904 soname=conftest
11905 lib=conftest
11906 libobjs=conftest.$ac_objext
11907 deplibs=
11908 wl=$lt_prog_compiler_wl_CXX
11909 pic_flag=$lt_prog_compiler_pic_CXX
11910 compiler_flags=-v
11911 linker_flags=-v
11912 verstring=
11913 output_objdir=.
11914 libname=conftest
11915 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
11916 allow_undefined_flag_CXX=
11917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11918 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
11919 ac_status=$?
11920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11921 test $ac_status = 0; }
11922 then
11923 archive_cmds_need_lc_CXX=no
11924 else
11925 archive_cmds_need_lc_CXX=yes
11926 fi
11927 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
11928 else
11929 cat conftest.err 1>&5
11930 fi
11931 $rm conftest*
11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
11933 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
11934 ;;
11935 esac
11936 fi
11937 ;;
11938 esac
11939
11940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11941 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11942 library_names_spec=
11943 libname_spec='lib$name'
11944 soname_spec=
11945 shrext_cmds=".so"
11946 postinstall_cmds=
11947 postuninstall_cmds=
11948 finish_cmds=
11949 finish_eval=
11950 shlibpath_var=
11951 shlibpath_overrides_runpath=unknown
11952 version_type=none
11953 dynamic_linker="$host_os ld.so"
11954 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11955 if test "$GCC" = yes; then
11956 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
11957 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
11958 # if the path contains ";" then we assume it to be the separator
11959 # otherwise default to the standard path separator (i.e. ":") - it is
11960 # assumed that no part of a normal pathname contains ";" but that should
11961 # okay in the real world where ";" in dirpaths is itself problematic.
11962 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11963 else
11964 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11965 fi
11966 else
11967 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11968 fi
11969 need_lib_prefix=unknown
11970 hardcode_into_libs=no
11971
11972 # when you set need_version to no, make sure it does not cause -set_version
11973 # flags to be left without arguments
11974 need_version=unknown
11975
11976 case $host_os in
11977 aix3*)
11978 version_type=linux
11979 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11980 shlibpath_var=LIBPATH
11981
11982 # AIX 3 has no versioning support, so we append a major version to the name.
11983 soname_spec='${libname}${release}${shared_ext}$major'
11984 ;;
11985
11986 aix4* | aix5*)
11987 version_type=linux
11988 need_lib_prefix=no
11989 need_version=no
11990 hardcode_into_libs=yes
11991 if test "$host_cpu" = ia64; then
11992 # AIX 5 supports IA64
11993 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11994 shlibpath_var=LD_LIBRARY_PATH
11995 else
11996 # With GCC up to 2.95.x, collect2 would create an import file
11997 # for dependence libraries. The import file would start with
11998 # the line `#! .'. This would cause the generated library to
11999 # depend on `.', always an invalid library. This was fixed in
12000 # development snapshots of GCC prior to 3.0.
12001 case $host_os in
12002 aix4 | aix4.[01] | aix4.[01].*)
12003 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12004 echo ' yes '
12005 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12006 :
12007 else
12008 can_build_shared=no
12009 fi
12010 ;;
12011 esac
12012 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12013 # soname into executable. Probably we can add versioning support to
12014 # collect2, so additional links can be useful in future.
12015 if test "$aix_use_runtimelinking" = yes; then
12016 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12017 # instead of lib<name>.a to let people know that these are not
12018 # typical AIX shared libraries.
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 else
12021 # We preserve .a as extension for shared libraries through AIX4.2
12022 # and later when we are not doing run time linking.
12023 library_names_spec='${libname}${release}.a $libname.a'
12024 soname_spec='${libname}${release}${shared_ext}$major'
12025 fi
12026 shlibpath_var=LIBPATH
12027 fi
12028 ;;
12029
12030 amigaos*)
12031 library_names_spec='$libname.ixlibrary $libname.a'
12032 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12033 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
12034 ;;
12035
12036 beos*)
12037 library_names_spec='${libname}${shared_ext}'
12038 dynamic_linker="$host_os ld.so"
12039 shlibpath_var=LIBRARY_PATH
12040 ;;
12041
12042 bsdi[45]*)
12043 version_type=linux
12044 need_version=no
12045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12046 soname_spec='${libname}${release}${shared_ext}$major'
12047 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12048 shlibpath_var=LD_LIBRARY_PATH
12049 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12050 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12051 # the default ld.so.conf also contains /usr/contrib/lib and
12052 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12053 # libtool to hard-code these into programs
12054 ;;
12055
12056 cygwin* | mingw* | pw32*)
12057 version_type=windows
12058 shrext_cmds=".dll"
12059 need_version=no
12060 need_lib_prefix=no
12061
12062 case $GCC,$host_os in
12063 yes,cygwin* | yes,mingw* | yes,pw32*)
12064 library_names_spec='$libname.dll.a'
12065 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12066 postinstall_cmds='base_file=`basename \${file}`~
12067 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12068 dldir=$destdir/`dirname \$dlpath`~
12069 test -d \$dldir || mkdir -p \$dldir~
12070 $install_prog $dir/$dlname \$dldir/$dlname~
12071 chmod a+x \$dldir/$dlname'
12072 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12073 dlpath=$dir/\$dldll~
12074 $rm \$dlpath'
12075 shlibpath_overrides_runpath=yes
12076
12077 case $host_os in
12078 cygwin*)
12079 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12080 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12081 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12082 ;;
12083 mingw*)
12084 # MinGW DLLs use traditional 'lib' prefix
12085 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12086 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12087 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12088 # It is most probably a Windows format PATH printed by
12089 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12090 # path with ; separators, and with drive letters. We can handle the
12091 # drive letters (cygwin fileutils understands them), so leave them,
12092 # especially as we might pass files found there to a mingw objdump,
12093 # which wouldn't understand a cygwinified path. Ahh.
12094 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12095 else
12096 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12097 fi
12098 ;;
12099 pw32*)
12100 # pw32 DLLs use 'pw' prefix rather than 'lib'
12101 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12102 ;;
12103 esac
12104 ;;
12105
12106 *)
12107 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12108 ;;
12109 esac
12110 dynamic_linker='Win32 ld.exe'
12111 # FIXME: first we should search . and the directory the executable is in
12112 shlibpath_var=PATH
12113 ;;
12114
12115 darwin* | rhapsody*)
12116 dynamic_linker="$host_os dyld"
12117 version_type=darwin
12118 need_lib_prefix=no
12119 need_version=no
12120 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12121 soname_spec='${libname}${release}${major}$shared_ext'
12122 shlibpath_overrides_runpath=yes
12123 shlibpath_var=DYLD_LIBRARY_PATH
12124 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12125 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12126 if test "$GCC" = yes; then
12127 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
12128 else
12129 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12130 fi
12131 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12132 ;;
12133
12134 dgux*)
12135 version_type=linux
12136 need_lib_prefix=no
12137 need_version=no
12138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12139 soname_spec='${libname}${release}${shared_ext}$major'
12140 shlibpath_var=LD_LIBRARY_PATH
12141 ;;
12142
12143 freebsd1*)
12144 dynamic_linker=no
12145 ;;
12146
12147 kfreebsd*-gnu)
12148 version_type=linux
12149 need_lib_prefix=no
12150 need_version=no
12151 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12152 soname_spec='${libname}${release}${shared_ext}$major'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=no
12155 hardcode_into_libs=yes
12156 dynamic_linker='GNU ld.so'
12157 ;;
12158
12159 freebsd* | dragonfly*)
12160 # DragonFly does not have aout. When/if they implement a new
12161 # versioning mechanism, adjust this.
12162 if test -x /usr/bin/objformat; then
12163 objformat=`/usr/bin/objformat`
12164 else
12165 case $host_os in
12166 freebsd[123]*) objformat=aout ;;
12167 *) objformat=elf ;;
12168 esac
12169 fi
12170 version_type=freebsd-$objformat
12171 case $version_type in
12172 freebsd-elf*)
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12174 need_version=no
12175 need_lib_prefix=no
12176 ;;
12177 freebsd-*)
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12179 need_version=yes
12180 ;;
12181 esac
12182 shlibpath_var=LD_LIBRARY_PATH
12183 case $host_os in
12184 freebsd2*)
12185 shlibpath_overrides_runpath=yes
12186 ;;
12187 freebsd3.[01]* | freebsdelf3.[01]*)
12188 shlibpath_overrides_runpath=yes
12189 hardcode_into_libs=yes
12190 ;;
12191 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12192 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12193 shlibpath_overrides_runpath=no
12194 hardcode_into_libs=yes
12195 ;;
12196 freebsd*) # from 4.6 on
12197 shlibpath_overrides_runpath=yes
12198 hardcode_into_libs=yes
12199 ;;
12200 esac
12201 ;;
12202
12203 gnu*)
12204 version_type=linux
12205 need_lib_prefix=no
12206 need_version=no
12207 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 shlibpath_var=LD_LIBRARY_PATH
12210 hardcode_into_libs=yes
12211 ;;
12212
12213 hpux9* | hpux10* | hpux11*)
12214 # Give a soname corresponding to the major version so that dld.sl refuses to
12215 # link against other versions.
12216 version_type=sunos
12217 need_lib_prefix=no
12218 need_version=no
12219 case $host_cpu in
12220 ia64*)
12221 shrext_cmds='.so'
12222 hardcode_into_libs=yes
12223 dynamic_linker="$host_os dld.so"
12224 shlibpath_var=LD_LIBRARY_PATH
12225 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12227 soname_spec='${libname}${release}${shared_ext}$major'
12228 if test "X$HPUX_IA64_MODE" = X32; then
12229 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12230 else
12231 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12232 fi
12233 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12234 ;;
12235 hppa*64*)
12236 shrext_cmds='.sl'
12237 hardcode_into_libs=yes
12238 dynamic_linker="$host_os dld.sl"
12239 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12240 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12242 soname_spec='${libname}${release}${shared_ext}$major'
12243 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12244 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12245 ;;
12246 *)
12247 shrext_cmds='.sl'
12248 dynamic_linker="$host_os dld.sl"
12249 shlibpath_var=SHLIB_PATH
12250 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12252 soname_spec='${libname}${release}${shared_ext}$major'
12253 ;;
12254 esac
12255 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12256 postinstall_cmds='chmod 555 $lib'
12257 ;;
12258
12259 interix3*)
12260 version_type=linux
12261 need_lib_prefix=no
12262 need_version=no
12263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12264 soname_spec='${libname}${release}${shared_ext}$major'
12265 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12266 shlibpath_var=LD_LIBRARY_PATH
12267 shlibpath_overrides_runpath=no
12268 hardcode_into_libs=yes
12269 ;;
12270
12271 irix5* | irix6* | nonstopux*)
12272 case $host_os in
12273 nonstopux*) version_type=nonstopux ;;
12274 *)
12275 if test "$lt_cv_prog_gnu_ld" = yes; then
12276 version_type=linux
12277 else
12278 version_type=irix
12279 fi ;;
12280 esac
12281 need_lib_prefix=no
12282 need_version=no
12283 soname_spec='${libname}${release}${shared_ext}$major'
12284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12285 case $host_os in
12286 irix5* | nonstopux*)
12287 libsuff= shlibsuff=
12288 ;;
12289 *)
12290 case $LD in # libtool.m4 will add one of these switches to LD
12291 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12292 libsuff= shlibsuff= libmagic=32-bit;;
12293 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12294 libsuff=32 shlibsuff=N32 libmagic=N32;;
12295 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12296 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12297 *) libsuff= shlibsuff= libmagic=never-match;;
12298 esac
12299 ;;
12300 esac
12301 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12302 shlibpath_overrides_runpath=no
12303 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12304 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12305 hardcode_into_libs=yes
12306 ;;
12307
12308 # No shared lib support for Linux oldld, aout, or coff.
12309 linux*oldld* | linux*aout* | linux*coff*)
12310 dynamic_linker=no
12311 ;;
12312
12313 # This must be Linux ELF.
12314 linux*)
12315 version_type=linux
12316 need_lib_prefix=no
12317 need_version=no
12318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12319 soname_spec='${libname}${release}${shared_ext}$major'
12320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12321 shlibpath_var=LD_LIBRARY_PATH
12322 shlibpath_overrides_runpath=no
12323 # This implies no fast_install, which is unacceptable.
12324 # Some rework will be needed to allow for fast_install
12325 # before this can be enabled.
12326 hardcode_into_libs=yes
12327
12328 # find out which ABI we are using
12329 libsuff=
12330 case "$host_cpu" in
12331 x86_64*|s390x*|powerpc64*)
12332 echo '#line 12332 "configure"' > conftest.$ac_ext
12333 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12334 (eval $ac_compile) 2>&5
12335 ac_status=$?
12336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12337 test $ac_status = 0; }; then
12338 case `/usr/bin/file conftest.$ac_objext` in
12339 *64-bit*)
12340 libsuff=64
12341 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
12342 ;;
12343 esac
12344 fi
12345 rm -rf conftest*
12346 ;;
12347 esac
12348
12349 # Append ld.so.conf contents to the search path
12350 if test -f /etc/ld.so.conf; then
12351 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12352 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
12353 fi
12354
12355 # We used to test for /lib/ld.so.1 and disable shared libraries on
12356 # powerpc, because MkLinux only supported shared libraries with the
12357 # GNU dynamic linker. Since this was broken with cross compilers,
12358 # most powerpc-linux boxes support dynamic linking these days and
12359 # people can always --disable-shared, the test was removed, and we
12360 # assume the GNU/Linux dynamic linker is in use.
12361 dynamic_linker='GNU/Linux ld.so'
12362 ;;
12363
12364 knetbsd*-gnu)
12365 version_type=linux
12366 need_lib_prefix=no
12367 need_version=no
12368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12369 soname_spec='${libname}${release}${shared_ext}$major'
12370 shlibpath_var=LD_LIBRARY_PATH
12371 shlibpath_overrides_runpath=no
12372 hardcode_into_libs=yes
12373 dynamic_linker='GNU ld.so'
12374 ;;
12375
12376 netbsd*)
12377 version_type=sunos
12378 need_lib_prefix=no
12379 need_version=no
12380 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12383 dynamic_linker='NetBSD (a.out) ld.so'
12384 else
12385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12386 soname_spec='${libname}${release}${shared_ext}$major'
12387 dynamic_linker='NetBSD ld.elf_so'
12388 fi
12389 shlibpath_var=LD_LIBRARY_PATH
12390 shlibpath_overrides_runpath=yes
12391 hardcode_into_libs=yes
12392 ;;
12393
12394 newsos6)
12395 version_type=linux
12396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12397 shlibpath_var=LD_LIBRARY_PATH
12398 shlibpath_overrides_runpath=yes
12399 ;;
12400
12401 nto-qnx*)
12402 version_type=linux
12403 need_lib_prefix=no
12404 need_version=no
12405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12406 soname_spec='${libname}${release}${shared_ext}$major'
12407 shlibpath_var=LD_LIBRARY_PATH
12408 shlibpath_overrides_runpath=yes
12409 ;;
12410
12411 openbsd*)
12412 version_type=sunos
12413 sys_lib_dlsearch_path_spec="/usr/lib"
12414 need_lib_prefix=no
12415 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12416 case $host_os in
12417 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12418 *) need_version=no ;;
12419 esac
12420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12421 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12422 shlibpath_var=LD_LIBRARY_PATH
12423 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12424 case $host_os in
12425 openbsd2.[89] | openbsd2.[89].*)
12426 shlibpath_overrides_runpath=no
12427 ;;
12428 *)
12429 shlibpath_overrides_runpath=yes
12430 ;;
12431 esac
12432 else
12433 shlibpath_overrides_runpath=yes
12434 fi
12435 ;;
12436
12437 os2*)
12438 libname_spec='$name'
12439 shrext_cmds=".dll"
12440 need_lib_prefix=no
12441 library_names_spec='$libname${shared_ext} $libname.a'
12442 dynamic_linker='OS/2 ld.exe'
12443 shlibpath_var=LIBPATH
12444 ;;
12445
12446 osf3* | osf4* | osf5*)
12447 version_type=osf
12448 need_lib_prefix=no
12449 need_version=no
12450 soname_spec='${libname}${release}${shared_ext}$major'
12451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12452 shlibpath_var=LD_LIBRARY_PATH
12453 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12454 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12455 ;;
12456
12457 solaris*)
12458 version_type=linux
12459 need_lib_prefix=no
12460 need_version=no
12461 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12462 soname_spec='${libname}${release}${shared_ext}$major'
12463 shlibpath_var=LD_LIBRARY_PATH
12464 shlibpath_overrides_runpath=yes
12465 hardcode_into_libs=yes
12466 # ldd complains unless libraries are executable
12467 postinstall_cmds='chmod +x $lib'
12468 ;;
12469
12470 sunos4*)
12471 version_type=sunos
12472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12473 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12474 shlibpath_var=LD_LIBRARY_PATH
12475 shlibpath_overrides_runpath=yes
12476 if test "$with_gnu_ld" = yes; then
12477 need_lib_prefix=no
12478 fi
12479 need_version=yes
12480 ;;
12481
12482 sysv4 | sysv4.3*)
12483 version_type=linux
12484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12485 soname_spec='${libname}${release}${shared_ext}$major'
12486 shlibpath_var=LD_LIBRARY_PATH
12487 case $host_vendor in
12488 sni)
12489 shlibpath_overrides_runpath=no
12490 need_lib_prefix=no
12491 export_dynamic_flag_spec='${wl}-Blargedynsym'
12492 runpath_var=LD_RUN_PATH
12493 ;;
12494 siemens)
12495 need_lib_prefix=no
12496 ;;
12497 motorola)
12498 need_lib_prefix=no
12499 need_version=no
12500 shlibpath_overrides_runpath=no
12501 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12502 ;;
12503 esac
12504 ;;
12505
12506 sysv4*MP*)
12507 if test -d /usr/nec ;then
12508 version_type=linux
12509 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12510 soname_spec='$libname${shared_ext}.$major'
12511 shlibpath_var=LD_LIBRARY_PATH
12512 fi
12513 ;;
12514
12515 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12516 version_type=freebsd-elf
12517 need_lib_prefix=no
12518 need_version=no
12519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12520 soname_spec='${libname}${release}${shared_ext}$major'
12521 shlibpath_var=LD_LIBRARY_PATH
12522 hardcode_into_libs=yes
12523 if test "$with_gnu_ld" = yes; then
12524 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12525 shlibpath_overrides_runpath=no
12526 else
12527 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12528 shlibpath_overrides_runpath=yes
12529 case $host_os in
12530 sco3.2v5*)
12531 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12532 ;;
12533 esac
12534 fi
12535 sys_lib_dlsearch_path_spec='/usr/lib'
12536 ;;
12537
12538 uts4*)
12539 version_type=linux
12540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12541 soname_spec='${libname}${release}${shared_ext}$major'
12542 shlibpath_var=LD_LIBRARY_PATH
12543 ;;
12544
12545 *)
12546 dynamic_linker=no
12547 ;;
12548 esac
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12550 $as_echo "$dynamic_linker" >&6; }
12551 test "$dynamic_linker" = no && can_build_shared=no
12552
12553 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12554 if test "$GCC" = yes; then
12555 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12556 fi
12557
12558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12560 hardcode_action_CXX=
12561 if test -n "$hardcode_libdir_flag_spec_CXX" || \
12562 test -n "$runpath_var_CXX" || \
12563 test "X$hardcode_automatic_CXX" = "Xyes" ; then
12564
12565 # We can hardcode non-existant directories.
12566 if test "$hardcode_direct_CXX" != no &&
12567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12568 # have to relink, otherwise we might link with an installed library
12569 # when we should be linking with a yet-to-be-installed one
12570 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
12571 test "$hardcode_minus_L_CXX" != no; then
12572 # Linking always hardcodes the temporary library directory.
12573 hardcode_action_CXX=relink
12574 else
12575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12576 hardcode_action_CXX=immediate
12577 fi
12578 else
12579 # We cannot hardcode anything, or else we can only hardcode existing
12580 # directories.
12581 hardcode_action_CXX=unsupported
12582 fi
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
12584 $as_echo "$hardcode_action_CXX" >&6; }
12585
12586 if test "$hardcode_action_CXX" = relink; then
12587 # Fast installation is not supported
12588 enable_fast_install=no
12589 elif test "$shlibpath_overrides_runpath" = yes ||
12590 test "$enable_shared" = no; then
12591 # Fast installation is not necessary
12592 enable_fast_install=needless
12593 fi
12594
12595
12596 # The else clause should only fire when bootstrapping the
12597 # libtool distribution, otherwise you forgot to ship ltmain.sh
12598 # with your package, and you will get complaints that there are
12599 # no rules to generate ltmain.sh.
12600 if test -f "$ltmain"; then
12601 # See if we are running on zsh, and set the options which allow our commands through
12602 # without removal of \ escapes.
12603 if test -n "${ZSH_VERSION+set}" ; then
12604 setopt NO_GLOB_SUBST
12605 fi
12606 # Now quote all the things that may contain metacharacters while being
12607 # careful not to overquote the AC_SUBSTed values. We take copies of the
12608 # variables and quote the copies for generation of the libtool script.
12609 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
12610 SED SHELL STRIP \
12611 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
12612 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
12613 deplibs_check_method reload_flag reload_cmds need_locks \
12614 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
12615 lt_cv_sys_global_symbol_to_c_name_address \
12616 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
12617 old_postinstall_cmds old_postuninstall_cmds \
12618 compiler_CXX \
12619 CC_CXX \
12620 LD_CXX \
12621 lt_prog_compiler_wl_CXX \
12622 lt_prog_compiler_pic_CXX \
12623 lt_prog_compiler_static_CXX \
12624 lt_prog_compiler_no_builtin_flag_CXX \
12625 export_dynamic_flag_spec_CXX \
12626 thread_safe_flag_spec_CXX \
12627 whole_archive_flag_spec_CXX \
12628 enable_shared_with_static_runtimes_CXX \
12629 old_archive_cmds_CXX \
12630 old_archive_from_new_cmds_CXX \
12631 predep_objects_CXX \
12632 postdep_objects_CXX \
12633 predeps_CXX \
12634 postdeps_CXX \
12635 compiler_lib_search_path_CXX \
12636 archive_cmds_CXX \
12637 archive_expsym_cmds_CXX \
12638 postinstall_cmds_CXX \
12639 postuninstall_cmds_CXX \
12640 old_archive_from_expsyms_cmds_CXX \
12641 allow_undefined_flag_CXX \
12642 no_undefined_flag_CXX \
12643 export_symbols_cmds_CXX \
12644 hardcode_libdir_flag_spec_CXX \
12645 hardcode_libdir_flag_spec_ld_CXX \
12646 hardcode_libdir_separator_CXX \
12647 hardcode_automatic_CXX \
12648 module_cmds_CXX \
12649 module_expsym_cmds_CXX \
12650 lt_cv_prog_compiler_c_o_CXX \
12651 exclude_expsyms_CXX \
12652 include_expsyms_CXX; do
12653
12654 case $var in
12655 old_archive_cmds_CXX | \
12656 old_archive_from_new_cmds_CXX | \
12657 archive_cmds_CXX | \
12658 archive_expsym_cmds_CXX | \
12659 module_cmds_CXX | \
12660 module_expsym_cmds_CXX | \
12661 old_archive_from_expsyms_cmds_CXX | \
12662 export_symbols_cmds_CXX | \
12663 extract_expsyms_cmds | reload_cmds | finish_cmds | \
12664 postinstall_cmds | postuninstall_cmds | \
12665 old_postinstall_cmds | old_postuninstall_cmds | \
12666 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
12667 # Double-quote double-evaled strings.
12668 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
12669 ;;
12670 *)
12671 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
12672 ;;
12673 esac
12674 done
12675
12676 case $lt_echo in
12677 *'\$0 --fallback-echo"')
12678 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
12679 ;;
12680 esac
12681
12682 cfgfile="$ofile"
12683
12684 cat <<__EOF__ >> "$cfgfile"
12685 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
12686
12687 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
12688
12689 # Shell to use when invoking shell scripts.
12690 SHELL=$lt_SHELL
12691
12692 # Whether or not to build shared libraries.
12693 build_libtool_libs=$enable_shared
12694
12695 # Whether or not to build static libraries.
12696 build_old_libs=$enable_static
12697
12698 # Whether or not to add -lc for building shared libraries.
12699 build_libtool_need_lc=$archive_cmds_need_lc_CXX
12700
12701 # Whether or not to disallow shared libs when runtime libs are static
12702 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
12703
12704 # Whether or not to optimize for fast installation.
12705 fast_install=$enable_fast_install
12706
12707 # The host system.
12708 host_alias=$host_alias
12709 host=$host
12710 host_os=$host_os
12711
12712 # The build system.
12713 build_alias=$build_alias
12714 build=$build
12715 build_os=$build_os
12716
12717 # An echo program that does not interpret backslashes.
12718 echo=$lt_echo
12719
12720 # The archiver.
12721 AR=$lt_AR
12722 AR_FLAGS=$lt_AR_FLAGS
12723
12724 # A C compiler.
12725 LTCC=$lt_LTCC
12726
12727 # LTCC compiler flags.
12728 LTCFLAGS=$lt_LTCFLAGS
12729
12730 # A language-specific compiler.
12731 CC=$lt_compiler_CXX
12732
12733 # Is the compiler the GNU C compiler?
12734 with_gcc=$GCC_CXX
12735
12736 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
12737 gcc_ver=\`gcc -dumpversion\`
12738
12739 # An ERE matcher.
12740 EGREP=$lt_EGREP
12741
12742 # The linker used to build libraries.
12743 LD=$lt_LD_CXX
12744
12745 # Whether we need hard or soft links.
12746 LN_S=$lt_LN_S
12747
12748 # A BSD-compatible nm program.
12749 NM=$lt_NM
12750
12751 # A symbol stripping program
12752 STRIP=$lt_STRIP
12753
12754 # Used to examine libraries when file_magic_cmd begins "file"
12755 MAGIC_CMD=$MAGIC_CMD
12756
12757 # Used on cygwin: DLL creation program.
12758 DLLTOOL="$DLLTOOL"
12759
12760 # Used on cygwin: object dumper.
12761 OBJDUMP="$OBJDUMP"
12762
12763 # Used on cygwin: assembler.
12764 AS="$AS"
12765
12766 # The name of the directory that contains temporary libtool files.
12767 objdir=$objdir
12768
12769 # How to create reloadable object files.
12770 reload_flag=$lt_reload_flag
12771 reload_cmds=$lt_reload_cmds
12772
12773 # How to pass a linker flag through the compiler.
12774 wl=$lt_lt_prog_compiler_wl_CXX
12775
12776 # Object file suffix (normally "o").
12777 objext="$ac_objext"
12778
12779 # Old archive suffix (normally "a").
12780 libext="$libext"
12781
12782 # Shared library suffix (normally ".so").
12783 shrext_cmds='$shrext_cmds'
12784
12785 # Executable file suffix (normally "").
12786 exeext="$exeext"
12787
12788 # Additional compiler flags for building library objects.
12789 pic_flag=$lt_lt_prog_compiler_pic_CXX
12790 pic_mode=$pic_mode
12791
12792 # What is the maximum length of a command?
12793 max_cmd_len=$lt_cv_sys_max_cmd_len
12794
12795 # Does compiler simultaneously support -c and -o options?
12796 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
12797
12798 # Must we lock files when doing compilation?
12799 need_locks=$lt_need_locks
12800
12801 # Do we need the lib prefix for modules?
12802 need_lib_prefix=$need_lib_prefix
12803
12804 # Do we need a version for libraries?
12805 need_version=$need_version
12806
12807 # Whether dlopen is supported.
12808 dlopen_support=$enable_dlopen
12809
12810 # Whether dlopen of programs is supported.
12811 dlopen_self=$enable_dlopen_self
12812
12813 # Whether dlopen of statically linked programs is supported.
12814 dlopen_self_static=$enable_dlopen_self_static
12815
12816 # Compiler flag to prevent dynamic linking.
12817 link_static_flag=$lt_lt_prog_compiler_static_CXX
12818
12819 # Compiler flag to turn off builtin functions.
12820 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
12821
12822 # Compiler flag to allow reflexive dlopens.
12823 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
12824
12825 # Compiler flag to generate shared objects directly from archives.
12826 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
12827
12828 # Compiler flag to generate thread-safe objects.
12829 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
12830
12831 # Library versioning type.
12832 version_type=$version_type
12833
12834 # Format of library name prefix.
12835 libname_spec=$lt_libname_spec
12836
12837 # List of archive names. First name is the real one, the rest are links.
12838 # The last name is the one that the linker finds with -lNAME.
12839 library_names_spec=$lt_library_names_spec
12840
12841 # The coded name of the library, if different from the real name.
12842 soname_spec=$lt_soname_spec
12843
12844 # Commands used to build and install an old-style archive.
12845 RANLIB=$lt_RANLIB
12846 old_archive_cmds=$lt_old_archive_cmds_CXX
12847 old_postinstall_cmds=$lt_old_postinstall_cmds
12848 old_postuninstall_cmds=$lt_old_postuninstall_cmds
12849
12850 # Create an old-style archive from a shared archive.
12851 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
12852
12853 # Create a temporary old-style archive to link instead of a shared archive.
12854 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
12855
12856 # Commands used to build and install a shared archive.
12857 archive_cmds=$lt_archive_cmds_CXX
12858 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
12859 postinstall_cmds=$lt_postinstall_cmds
12860 postuninstall_cmds=$lt_postuninstall_cmds
12861
12862 # Commands used to build a loadable module (assumed same as above if empty)
12863 module_cmds=$lt_module_cmds_CXX
12864 module_expsym_cmds=$lt_module_expsym_cmds_CXX
12865
12866 # Commands to strip libraries.
12867 old_striplib=$lt_old_striplib
12868 striplib=$lt_striplib
12869
12870 # Dependencies to place before the objects being linked to create a
12871 # shared library.
12872 predep_objects=\`echo $lt_predep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12873
12874 # Dependencies to place after the objects being linked to create a
12875 # shared library.
12876 postdep_objects=\`echo $lt_postdep_objects_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12877
12878 # Dependencies to place before the objects being linked to create a
12879 # shared library.
12880 predeps=$lt_predeps_CXX
12881
12882 # Dependencies to place after the objects being linked to create a
12883 # shared library.
12884 postdeps=$lt_postdeps_CXX
12885
12886 # The library search path used internally by the compiler when linking
12887 # a shared library.
12888 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_CXX | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12889
12890 # Method to check whether dependent libraries are shared objects.
12891 deplibs_check_method=$lt_deplibs_check_method
12892
12893 # Command to use when deplibs_check_method == file_magic.
12894 file_magic_cmd=$lt_file_magic_cmd
12895
12896 # Flag that allows shared libraries with undefined symbols to be built.
12897 allow_undefined_flag=$lt_allow_undefined_flag_CXX
12898
12899 # Flag that forces no undefined symbols.
12900 no_undefined_flag=$lt_no_undefined_flag_CXX
12901
12902 # Commands used to finish a libtool library installation in a directory.
12903 finish_cmds=$lt_finish_cmds
12904
12905 # Same as above, but a single script fragment to be evaled but not shown.
12906 finish_eval=$lt_finish_eval
12907
12908 # Take the output of nm and produce a listing of raw symbols and C names.
12909 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
12910
12911 # Transform the output of nm in a proper C declaration
12912 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
12913
12914 # Transform the output of nm in a C name address pair
12915 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
12916
12917 # This is the shared library runtime path variable.
12918 runpath_var=$runpath_var
12919
12920 # This is the shared library path variable.
12921 shlibpath_var=$shlibpath_var
12922
12923 # Is shlibpath searched before the hard-coded library search path?
12924 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
12925
12926 # How to hardcode a shared library path into an executable.
12927 hardcode_action=$hardcode_action_CXX
12928
12929 # Whether we should hardcode library paths into libraries.
12930 hardcode_into_libs=$hardcode_into_libs
12931
12932 # Flag to hardcode \$libdir into a binary during linking.
12933 # This must work even if \$libdir does not exist.
12934 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
12935
12936 # If ld is used when linking, flag to hardcode \$libdir into
12937 # a binary during linking. This must work even if \$libdir does
12938 # not exist.
12939 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
12940
12941 # Whether we need a single -rpath flag with a separated argument.
12942 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
12943
12944 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
12945 # resulting binary.
12946 hardcode_direct=$hardcode_direct_CXX
12947
12948 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
12949 # resulting binary.
12950 hardcode_minus_L=$hardcode_minus_L_CXX
12951
12952 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
12953 # the resulting binary.
12954 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
12955
12956 # Set to yes if building a shared library automatically hardcodes DIR into the library
12957 # and all subsequent libraries and executables linked against it.
12958 hardcode_automatic=$hardcode_automatic_CXX
12959
12960 # Variables whose values should be saved in libtool wrapper scripts and
12961 # restored at relink time.
12962 variables_saved_for_relink="$variables_saved_for_relink"
12963
12964 # Whether libtool must link a program against all its dependency libraries.
12965 link_all_deplibs=$link_all_deplibs_CXX
12966
12967 # Compile-time system search path for libraries
12968 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
12969
12970 # Run-time system search path for libraries
12971 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
12972
12973 # Fix the shell variable \$srcfile for the compiler.
12974 fix_srcfile_path="$fix_srcfile_path_CXX"
12975
12976 # Set to yes if exported symbols are required.
12977 always_export_symbols=$always_export_symbols_CXX
12978
12979 # The commands to list exported symbols.
12980 export_symbols_cmds=$lt_export_symbols_cmds_CXX
12981
12982 # The commands to extract the exported symbol list from a shared archive.
12983 extract_expsyms_cmds=$lt_extract_expsyms_cmds
12984
12985 # Symbols that should not be listed in the preloaded symbols.
12986 exclude_expsyms=$lt_exclude_expsyms_CXX
12987
12988 # Symbols that must always be exported.
12989 include_expsyms=$lt_include_expsyms_CXX
12990
12991 # ### END LIBTOOL TAG CONFIG: $tagname
12992
12993 __EOF__
12994
12995
12996 else
12997 # If there is no Makefile yet, we rely on a make rule to execute
12998 # `config.status --recheck' to rerun these tests and create the
12999 # libtool script then.
13000 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13001 if test -f "$ltmain_in"; then
13002 test -f Makefile && make "$ltmain"
13003 fi
13004 fi
13005
13006
13007 ac_ext=c
13008 ac_cpp='$CPP $CPPFLAGS'
13009 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13010 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13011 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13012
13013 CC=$lt_save_CC
13014 LDCXX=$LD
13015 LD=$lt_save_LD
13016 GCC=$lt_save_GCC
13017 with_gnu_ldcxx=$with_gnu_ld
13018 with_gnu_ld=$lt_save_with_gnu_ld
13019 lt_cv_path_LDCXX=$lt_cv_path_LD
13020 lt_cv_path_LD=$lt_save_path_LD
13021 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13022 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13023
13024 else
13025 tagname=""
13026 fi
13027 ;;
13028
13029 F77)
13030 if test -n "$F77" && test "X$F77" != "Xno"; then
13031
13032 ac_ext=f
13033 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13034 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13036
13037
13038 archive_cmds_need_lc_F77=no
13039 allow_undefined_flag_F77=
13040 always_export_symbols_F77=no
13041 archive_expsym_cmds_F77=
13042 export_dynamic_flag_spec_F77=
13043 hardcode_direct_F77=no
13044 hardcode_libdir_flag_spec_F77=
13045 hardcode_libdir_flag_spec_ld_F77=
13046 hardcode_libdir_separator_F77=
13047 hardcode_minus_L_F77=no
13048 hardcode_automatic_F77=no
13049 module_cmds_F77=
13050 module_expsym_cmds_F77=
13051 link_all_deplibs_F77=unknown
13052 old_archive_cmds_F77=$old_archive_cmds
13053 no_undefined_flag_F77=
13054 whole_archive_flag_spec_F77=
13055 enable_shared_with_static_runtimes_F77=no
13056
13057 # Source file extension for f77 test sources.
13058 ac_ext=f
13059
13060 # Object file extension for compiled f77 test sources.
13061 objext=o
13062 objext_F77=$objext
13063
13064 # Code to be used in simple compile tests
13065 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13066
13067 # Code to be used in simple link tests
13068 lt_simple_link_test_code=" program t\n end\n"
13069
13070 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13071
13072 # If no C compiler was specified, use CC.
13073 LTCC=${LTCC-"$CC"}
13074
13075 # If no C compiler flags were specified, use CFLAGS.
13076 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13077
13078 # Allow CC to be a program name with arguments.
13079 compiler=$CC
13080
13081
13082 # save warnings/boilerplate of simple test code
13083 ac_outfile=conftest.$ac_objext
13084 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13085 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13086 _lt_compiler_boilerplate=`cat conftest.err`
13087 $rm conftest*
13088
13089 ac_outfile=conftest.$ac_objext
13090 printf "$lt_simple_link_test_code" >conftest.$ac_ext
13091 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13092 _lt_linker_boilerplate=`cat conftest.err`
13093 $rm conftest*
13094
13095
13096 # Allow CC to be a program name with arguments.
13097 lt_save_CC="$CC"
13098 CC=${F77-"f77"}
13099 compiler=$CC
13100 compiler_F77=$CC
13101 for cc_temp in $compiler""; do
13102 case $cc_temp in
13103 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13104 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13105 \-*) ;;
13106 *) break;;
13107 esac
13108 done
13109 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13110
13111
13112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13113 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13115 $as_echo "$can_build_shared" >&6; }
13116
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13118 $as_echo_n "checking whether to build shared libraries... " >&6; }
13119 test "$can_build_shared" = "no" && enable_shared=no
13120
13121 # On AIX, shared libraries and static libraries use the same namespace, and
13122 # are all built from PIC.
13123 case $host_os in
13124 aix3*)
13125 test "$enable_shared" = yes && enable_static=no
13126 if test -n "$RANLIB"; then
13127 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13128 postinstall_cmds='$RANLIB $lib'
13129 fi
13130 ;;
13131 aix4* | aix5*)
13132 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13133 test "$enable_shared" = yes && enable_static=no
13134 fi
13135 ;;
13136 esac
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13138 $as_echo "$enable_shared" >&6; }
13139
13140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13141 $as_echo_n "checking whether to build static libraries... " >&6; }
13142 # Make sure either enable_shared or enable_static is yes.
13143 test "$enable_shared" = yes || enable_static=yes
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13145 $as_echo "$enable_static" >&6; }
13146
13147 GCC_F77="$G77"
13148 LD_F77="$LD"
13149
13150 lt_prog_compiler_wl_F77=
13151 lt_prog_compiler_pic_F77=
13152 lt_prog_compiler_static_F77=
13153
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13155 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13156
13157 if test "$GCC" = yes; then
13158 lt_prog_compiler_wl_F77='-Wl,'
13159 lt_prog_compiler_static_F77='-static'
13160
13161 case $host_os in
13162 aix*)
13163 # All AIX code is PIC.
13164 if test "$host_cpu" = ia64; then
13165 # AIX 5 now supports IA64 processor
13166 lt_prog_compiler_static_F77='-Bstatic'
13167 fi
13168 ;;
13169
13170 amigaos*)
13171 # FIXME: we need at least 68020 code to build shared libraries, but
13172 # adding the `-m68020' flag to GCC prevents building anything better,
13173 # like `-m68040'.
13174 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13175 ;;
13176
13177 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13178 # PIC is the default for these OSes.
13179 ;;
13180
13181 mingw* | pw32* | os2*)
13182 # This hack is so that the source file can tell whether it is being
13183 # built for inclusion in a dll (and should export symbols for example).
13184 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13185 ;;
13186
13187 darwin* | rhapsody*)
13188 # PIC is the default on this platform
13189 # Common symbols not allowed in MH_DYLIB files
13190 lt_prog_compiler_pic_F77='-fno-common'
13191 ;;
13192
13193 interix3*)
13194 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13195 # Instead, we relocate shared libraries at runtime.
13196 ;;
13197
13198 msdosdjgpp*)
13199 # Just because we use GCC doesn't mean we suddenly get shared libraries
13200 # on systems that don't support them.
13201 lt_prog_compiler_can_build_shared_F77=no
13202 enable_shared=no
13203 ;;
13204
13205 sysv4*MP*)
13206 if test -d /usr/nec; then
13207 lt_prog_compiler_pic_F77=-Kconform_pic
13208 fi
13209 ;;
13210
13211 hpux*)
13212 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13213 # not for PA HP-UX.
13214 case $host_cpu in
13215 hppa*64*|ia64*)
13216 # +Z the default
13217 ;;
13218 *)
13219 lt_prog_compiler_pic_F77='-fPIC'
13220 ;;
13221 esac
13222 ;;
13223
13224 *)
13225 lt_prog_compiler_pic_F77='-fPIC'
13226 ;;
13227 esac
13228 else
13229 # PORTME Check for flag to pass linker flags through the system compiler.
13230 case $host_os in
13231 aix*)
13232 lt_prog_compiler_wl_F77='-Wl,'
13233 if test "$host_cpu" = ia64; then
13234 # AIX 5 now supports IA64 processor
13235 lt_prog_compiler_static_F77='-Bstatic'
13236 else
13237 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13238 fi
13239 ;;
13240 darwin*)
13241 # PIC is the default on this platform
13242 # Common symbols not allowed in MH_DYLIB files
13243 case $cc_basename in
13244 xlc*)
13245 lt_prog_compiler_pic_F77='-qnocommon'
13246 lt_prog_compiler_wl_F77='-Wl,'
13247 ;;
13248 esac
13249 ;;
13250
13251 mingw* | pw32* | os2*)
13252 # This hack is so that the source file can tell whether it is being
13253 # built for inclusion in a dll (and should export symbols for example).
13254 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13255 ;;
13256
13257 hpux9* | hpux10* | hpux11*)
13258 lt_prog_compiler_wl_F77='-Wl,'
13259 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13260 # not for PA HP-UX.
13261 case $host_cpu in
13262 hppa*64*|ia64*)
13263 # +Z the default
13264 ;;
13265 *)
13266 lt_prog_compiler_pic_F77='+Z'
13267 ;;
13268 esac
13269 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13270 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13271 ;;
13272
13273 irix5* | irix6* | nonstopux*)
13274 lt_prog_compiler_wl_F77='-Wl,'
13275 # PIC (with -KPIC) is the default.
13276 lt_prog_compiler_static_F77='-non_shared'
13277 ;;
13278
13279 newsos6)
13280 lt_prog_compiler_pic_F77='-KPIC'
13281 lt_prog_compiler_static_F77='-Bstatic'
13282 ;;
13283
13284 linux*)
13285 case $cc_basename in
13286 icc* | ecc*)
13287 lt_prog_compiler_wl_F77='-Wl,'
13288 lt_prog_compiler_pic_F77='-KPIC'
13289 lt_prog_compiler_static_F77='-static'
13290 ;;
13291 pgcc* | pgf77* | pgf90* | pgf95*)
13292 # Portland Group compilers (*not* the Pentium gcc compiler,
13293 # which looks to be a dead project)
13294 lt_prog_compiler_wl_F77='-Wl,'
13295 lt_prog_compiler_pic_F77='-fpic'
13296 lt_prog_compiler_static_F77='-Bstatic'
13297 ;;
13298 ccc*)
13299 lt_prog_compiler_wl_F77='-Wl,'
13300 # All Alpha code is PIC.
13301 lt_prog_compiler_static_F77='-non_shared'
13302 ;;
13303 esac
13304 ;;
13305
13306 osf3* | osf4* | osf5*)
13307 lt_prog_compiler_wl_F77='-Wl,'
13308 # All OSF/1 code is PIC.
13309 lt_prog_compiler_static_F77='-non_shared'
13310 ;;
13311
13312 solaris*)
13313 lt_prog_compiler_pic_F77='-KPIC'
13314 lt_prog_compiler_static_F77='-Bstatic'
13315 case $cc_basename in
13316 f77* | f90* | f95*)
13317 lt_prog_compiler_wl_F77='-Qoption ld ';;
13318 *)
13319 lt_prog_compiler_wl_F77='-Wl,';;
13320 esac
13321 ;;
13322
13323 sunos4*)
13324 lt_prog_compiler_wl_F77='-Qoption ld '
13325 lt_prog_compiler_pic_F77='-PIC'
13326 lt_prog_compiler_static_F77='-Bstatic'
13327 ;;
13328
13329 sysv4 | sysv4.2uw2* | sysv4.3*)
13330 lt_prog_compiler_wl_F77='-Wl,'
13331 lt_prog_compiler_pic_F77='-KPIC'
13332 lt_prog_compiler_static_F77='-Bstatic'
13333 ;;
13334
13335 sysv4*MP*)
13336 if test -d /usr/nec ;then
13337 lt_prog_compiler_pic_F77='-Kconform_pic'
13338 lt_prog_compiler_static_F77='-Bstatic'
13339 fi
13340 ;;
13341
13342 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13343 lt_prog_compiler_wl_F77='-Wl,'
13344 lt_prog_compiler_pic_F77='-KPIC'
13345 lt_prog_compiler_static_F77='-Bstatic'
13346 ;;
13347
13348 unicos*)
13349 lt_prog_compiler_wl_F77='-Wl,'
13350 lt_prog_compiler_can_build_shared_F77=no
13351 ;;
13352
13353 uts4*)
13354 lt_prog_compiler_pic_F77='-pic'
13355 lt_prog_compiler_static_F77='-Bstatic'
13356 ;;
13357
13358 *)
13359 lt_prog_compiler_can_build_shared_F77=no
13360 ;;
13361 esac
13362 fi
13363
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13365 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
13366
13367 #
13368 # Check to make sure the PIC flag actually works.
13369 #
13370 if test -n "$lt_prog_compiler_pic_F77"; then
13371
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13373 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
13374 if ${lt_prog_compiler_pic_works_F77+:} false; then :
13375 $as_echo_n "(cached) " >&6
13376 else
13377 lt_prog_compiler_pic_works_F77=no
13378 ac_outfile=conftest.$ac_objext
13379 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13380 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13381 # Insert the option either (1) after the last *FLAGS variable, or
13382 # (2) before a word containing "conftest.", or (3) at the end.
13383 # Note that $ac_compile itself does not contain backslashes and begins
13384 # with a dollar sign (not a hyphen), so the echo should work correctly.
13385 # The option is referenced via a variable to avoid confusing sed.
13386 lt_compile=`echo "$ac_compile" | $SED \
13387 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13388 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13389 -e 's:$: $lt_compiler_flag:'`
13390 (eval echo "\"\$as_me:13390: $lt_compile\"" >&5)
13391 (eval "$lt_compile" 2>conftest.err)
13392 ac_status=$?
13393 cat conftest.err >&5
13394 echo "$as_me:13394: \$? = $ac_status" >&5
13395 if (exit $ac_status) && test -s "$ac_outfile"; then
13396 # The compiler can only warn and ignore the option if not recognized
13397 # So say no if there are warnings other than the usual output.
13398 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13399 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13400 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13401 lt_prog_compiler_pic_works_F77=yes
13402 fi
13403 fi
13404 $rm conftest*
13405
13406 fi
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
13408 $as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
13409
13410 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
13411 case $lt_prog_compiler_pic_F77 in
13412 "" | " "*) ;;
13413 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13414 esac
13415 else
13416 lt_prog_compiler_pic_F77=
13417 lt_prog_compiler_can_build_shared_F77=no
13418 fi
13419
13420 fi
13421 case $host_os in
13422 # For platforms which do not support PIC, -DPIC is meaningless:
13423 *djgpp*)
13424 lt_prog_compiler_pic_F77=
13425 ;;
13426 *)
13427 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13428 ;;
13429 esac
13430
13431 #
13432 # Check to make sure the static flag actually works.
13433 #
13434 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13436 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13437 if ${lt_prog_compiler_static_works_F77+:} false; then :
13438 $as_echo_n "(cached) " >&6
13439 else
13440 lt_prog_compiler_static_works_F77=no
13441 save_LDFLAGS="$LDFLAGS"
13442 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13443 printf "$lt_simple_link_test_code" > conftest.$ac_ext
13444 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13445 # The linker can only warn and ignore the option if not recognized
13446 # So say no if there are warnings
13447 if test -s conftest.err; then
13448 # Append any errors to the config.log.
13449 cat conftest.err 1>&5
13450 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13451 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13452 if diff conftest.exp conftest.er2 >/dev/null; then
13453 lt_prog_compiler_static_works_F77=yes
13454 fi
13455 else
13456 lt_prog_compiler_static_works_F77=yes
13457 fi
13458 fi
13459 $rm conftest*
13460 LDFLAGS="$save_LDFLAGS"
13461
13462 fi
13463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
13464 $as_echo "$lt_prog_compiler_static_works_F77" >&6; }
13465
13466 if test x"$lt_prog_compiler_static_works_F77" = xyes; then
13467 :
13468 else
13469 lt_prog_compiler_static_F77=
13470 fi
13471
13472
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13474 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13475 if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
13476 $as_echo_n "(cached) " >&6
13477 else
13478 lt_cv_prog_compiler_c_o_F77=no
13479 $rm -r conftest 2>/dev/null
13480 mkdir conftest
13481 cd conftest
13482 mkdir out
13483 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13484
13485 lt_compiler_flag="-o out/conftest2.$ac_objext"
13486 # Insert the option either (1) after the last *FLAGS variable, or
13487 # (2) before a word containing "conftest.", or (3) at the end.
13488 # Note that $ac_compile itself does not contain backslashes and begins
13489 # with a dollar sign (not a hyphen), so the echo should work correctly.
13490 lt_compile=`echo "$ac_compile" | $SED \
13491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13493 -e 's:$: $lt_compiler_flag:'`
13494 (eval echo "\"\$as_me:13494: $lt_compile\"" >&5)
13495 (eval "$lt_compile" 2>out/conftest.err)
13496 ac_status=$?
13497 cat out/conftest.err >&5
13498 echo "$as_me:13498: \$? = $ac_status" >&5
13499 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13500 then
13501 # The compiler can only warn and ignore the option if not recognized
13502 # So say no if there are warnings
13503 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13504 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13505 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13506 lt_cv_prog_compiler_c_o_F77=yes
13507 fi
13508 fi
13509 chmod u+w . 2>&5
13510 $rm conftest*
13511 # SGI C++ compiler will create directory out/ii_files/ for
13512 # template instantiation
13513 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13514 $rm out/* && rmdir out
13515 cd ..
13516 rmdir conftest
13517 $rm conftest*
13518
13519 fi
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
13521 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
13522
13523
13524 hard_links="nottested"
13525 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
13526 # do not overwrite the value of need_locks provided by the user
13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13528 $as_echo_n "checking if we can lock with hard links... " >&6; }
13529 hard_links=yes
13530 $rm conftest*
13531 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13532 touch conftest.a
13533 ln conftest.a conftest.b 2>&5 || hard_links=no
13534 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13536 $as_echo "$hard_links" >&6; }
13537 if test "$hard_links" = no; then
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13539 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13540 need_locks=warn
13541 fi
13542 else
13543 need_locks=no
13544 fi
13545
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13547 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13548
13549 runpath_var=
13550 allow_undefined_flag_F77=
13551 enable_shared_with_static_runtimes_F77=no
13552 archive_cmds_F77=
13553 archive_expsym_cmds_F77=
13554 old_archive_From_new_cmds_F77=
13555 old_archive_from_expsyms_cmds_F77=
13556 export_dynamic_flag_spec_F77=
13557 whole_archive_flag_spec_F77=
13558 thread_safe_flag_spec_F77=
13559 hardcode_libdir_flag_spec_F77=
13560 hardcode_libdir_flag_spec_ld_F77=
13561 hardcode_libdir_separator_F77=
13562 hardcode_direct_F77=no
13563 hardcode_minus_L_F77=no
13564 hardcode_shlibpath_var_F77=unsupported
13565 link_all_deplibs_F77=unknown
13566 hardcode_automatic_F77=no
13567 module_cmds_F77=
13568 module_expsym_cmds_F77=
13569 always_export_symbols_F77=no
13570 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13571 # include_expsyms should be a list of space-separated symbols to be *always*
13572 # included in the symbol list
13573 include_expsyms_F77=
13574 # exclude_expsyms can be an extended regexp of symbols to exclude
13575 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13576 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13577 # as well as any symbol that contains `d'.
13578 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
13579 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13580 # platforms (ab)use it in PIC code, but their linkers get confused if
13581 # the symbol is explicitly referenced. Since portable code cannot
13582 # rely on this symbol name, it's probably fine to never include it in
13583 # preloaded symbol tables.
13584 extract_expsyms_cmds=
13585 # Just being paranoid about ensuring that cc_basename is set.
13586 for cc_temp in $compiler""; do
13587 case $cc_temp in
13588 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13589 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13590 \-*) ;;
13591 *) break;;
13592 esac
13593 done
13594 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13595
13596 case $host_os in
13597 cygwin* | mingw* | pw32*)
13598 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13599 # When not using gcc, we currently assume that we are using
13600 # Microsoft Visual C++.
13601 if test "$GCC" != yes; then
13602 with_gnu_ld=no
13603 fi
13604 ;;
13605 interix*)
13606 # we just hope/assume this is gcc and not c89 (= MSVC++)
13607 with_gnu_ld=yes
13608 ;;
13609 openbsd*)
13610 with_gnu_ld=no
13611 ;;
13612 esac
13613
13614 ld_shlibs_F77=yes
13615 if test "$with_gnu_ld" = yes; then
13616 # If archive_cmds runs LD, not CC, wlarc should be empty
13617 wlarc='${wl}'
13618
13619 # Set some defaults for GNU ld with shared library support. These
13620 # are reset later if shared libraries are not supported. Putting them
13621 # here allows them to be overridden if necessary.
13622 runpath_var=LD_RUN_PATH
13623 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
13624 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
13625 # ancient GNU ld didn't support --whole-archive et. al.
13626 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
13627 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13628 else
13629 whole_archive_flag_spec_F77=
13630 fi
13631 supports_anon_versioning=no
13632 case `$LD -v 2>/dev/null` in
13633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13636 *\ 2.11.*) ;; # other 2.11 versions
13637 *) supports_anon_versioning=yes ;;
13638 esac
13639
13640 # See if GNU ld supports shared libraries.
13641 case $host_os in
13642 aix3* | aix4* | aix5*)
13643 # On AIX/PPC, the GNU linker is very broken
13644 if test "$host_cpu" != ia64; then
13645 ld_shlibs_F77=no
13646 cat <<EOF 1>&2
13647
13648 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
13649 *** to be unable to reliably create shared libraries on AIX.
13650 *** Therefore, libtool is disabling shared libraries support. If you
13651 *** really care for shared libraries, you may want to modify your PATH
13652 *** so that a non-GNU linker is found, and then restart.
13653
13654 EOF
13655 fi
13656 ;;
13657
13658 amigaos*)
13659 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)'
13660 hardcode_libdir_flag_spec_F77='-L$libdir'
13661 hardcode_minus_L_F77=yes
13662
13663 # Samuel A. Falvo II <[email protected]> reports
13664 # that the semantics of dynamic libraries on AmigaOS, at least up
13665 # to version 4, is to share data among multiple programs linked
13666 # with the same dynamic library. Since this doesn't match the
13667 # behavior of shared libraries on other platforms, we can't use
13668 # them.
13669 ld_shlibs_F77=no
13670 ;;
13671
13672 beos*)
13673 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13674 allow_undefined_flag_F77=unsupported
13675 # Joseph Beckenbach <[email protected]> says some releases of gcc
13676 # support --undefined. This deserves some investigation. FIXME
13677 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13678 else
13679 ld_shlibs_F77=no
13680 fi
13681 ;;
13682
13683 cygwin* | mingw* | pw32*)
13684 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
13685 # as there is no search path for DLLs.
13686 hardcode_libdir_flag_spec_F77='-L$libdir'
13687 allow_undefined_flag_F77=unsupported
13688 always_export_symbols_F77=no
13689 enable_shared_with_static_runtimes_F77=yes
13690 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13691
13692 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
13693 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13694 # If the export-symbols file already is a .def file (1st line
13695 # is EXPORTS), use it as is; otherwise, prepend...
13696 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13697 cp $export_symbols $output_objdir/$soname.def;
13698 else
13699 echo EXPORTS > $output_objdir/$soname.def;
13700 cat $export_symbols >> $output_objdir/$soname.def;
13701 fi~
13702 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13703 else
13704 ld_shlibs_F77=no
13705 fi
13706 ;;
13707
13708 interix3*)
13709 hardcode_direct_F77=no
13710 hardcode_shlibpath_var_F77=no
13711 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
13712 export_dynamic_flag_spec_F77='${wl}-E'
13713 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13714 # Instead, shared libraries are loaded at an image base (0x10000000 by
13715 # default) and relocated if they conflict, which is a slow very memory
13716 # consuming and fragmenting process. To avoid this, we pick a random,
13717 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13718 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13719 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'
13720 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'
13721 ;;
13722
13723 linux*)
13724 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13725 tmp_addflag=
13726 case $cc_basename,$host_cpu in
13727 pgcc*) # Portland Group C compiler
13728 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13729 tmp_addflag=' $pic_flag'
13730 ;;
13731 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
13732 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
13733 tmp_addflag=' $pic_flag -Mnomain' ;;
13734 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13735 tmp_addflag=' -i_dynamic' ;;
13736 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13737 tmp_addflag=' -i_dynamic -nofor_main' ;;
13738 ifc* | ifort*) # Intel Fortran compiler
13739 tmp_addflag=' -nofor_main' ;;
13740 esac
13741 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13742
13743 if test $supports_anon_versioning = yes; then
13744 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
13745 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13746 $echo "local: *; };" >> $output_objdir/$libname.ver~
13747 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13748 fi
13749 else
13750 ld_shlibs_F77=no
13751 fi
13752 ;;
13753
13754 netbsd*)
13755 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13756 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13757 wlarc=
13758 else
13759 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13760 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13761 fi
13762 ;;
13763
13764 solaris*)
13765 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
13766 ld_shlibs_F77=no
13767 cat <<EOF 1>&2
13768
13769 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13770 *** create shared libraries on Solaris systems. Therefore, libtool
13771 *** is disabling shared libraries support. We urge you to upgrade GNU
13772 *** binutils to release 2.9.1 or newer. Another option is to modify
13773 *** your PATH or compiler configuration so that the native linker is
13774 *** used, and then restart.
13775
13776 EOF
13777 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13778 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13780 else
13781 ld_shlibs_F77=no
13782 fi
13783 ;;
13784
13785 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13786 case `$LD -v 2>&1` in
13787 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13788 ld_shlibs_F77=no
13789 cat <<_LT_EOF 1>&2
13790
13791 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13792 *** reliably create shared libraries on SCO systems. Therefore, libtool
13793 *** is disabling shared libraries support. We urge you to upgrade GNU
13794 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13795 *** your PATH or compiler configuration so that the native linker is
13796 *** used, and then restart.
13797
13798 _LT_EOF
13799 ;;
13800 *)
13801 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13802 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
13803 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
13804 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
13805 else
13806 ld_shlibs_F77=no
13807 fi
13808 ;;
13809 esac
13810 ;;
13811
13812 sunos4*)
13813 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13814 wlarc=
13815 hardcode_direct_F77=yes
13816 hardcode_shlibpath_var_F77=no
13817 ;;
13818
13819 *)
13820 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
13821 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13822 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13823 else
13824 ld_shlibs_F77=no
13825 fi
13826 ;;
13827 esac
13828
13829 if test "$ld_shlibs_F77" = no; then
13830 runpath_var=
13831 hardcode_libdir_flag_spec_F77=
13832 export_dynamic_flag_spec_F77=
13833 whole_archive_flag_spec_F77=
13834 fi
13835 else
13836 # PORTME fill in a description of your system's linker (not GNU ld)
13837 case $host_os in
13838 aix3*)
13839 allow_undefined_flag_F77=unsupported
13840 always_export_symbols_F77=yes
13841 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'
13842 # Note: this linker hardcodes the directories in LIBPATH if there
13843 # are no directories specified by -L.
13844 hardcode_minus_L_F77=yes
13845 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13846 # Neither direct hardcoding nor static linking is supported with a
13847 # broken collect2.
13848 hardcode_direct_F77=unsupported
13849 fi
13850 ;;
13851
13852 aix4* | aix5*)
13853 if test "$host_cpu" = ia64; then
13854 # On IA64, the linker does run time linking by default, so we don't
13855 # have to do anything special.
13856 aix_use_runtimelinking=no
13857 exp_sym_flag='-Bexport'
13858 no_entry_flag=""
13859 else
13860 # If we're using GNU nm, then we don't want the "-C" option.
13861 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13862 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13863 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
13864 else
13865 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'
13866 fi
13867 aix_use_runtimelinking=no
13868
13869 # Test if we are trying to use run time linking or normal
13870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13871 # need to do runtime linking.
13872 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
13873 for ld_flag in $LDFLAGS; do
13874 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13875 aix_use_runtimelinking=yes
13876 break
13877 fi
13878 done
13879 ;;
13880 esac
13881
13882 exp_sym_flag='-bexport'
13883 no_entry_flag='-bnoentry'
13884 fi
13885
13886 # When large executables or shared objects are built, AIX ld can
13887 # have problems creating the table of contents. If linking a library
13888 # or program results in "error TOC overflow" add -mminimal-toc to
13889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13891
13892 archive_cmds_F77=''
13893 hardcode_direct_F77=yes
13894 hardcode_libdir_separator_F77=':'
13895 link_all_deplibs_F77=yes
13896
13897 if test "$GCC" = yes; then
13898 case $host_os in aix4.[012]|aix4.[012].*)
13899 # We only want to do this on AIX 4.2 and lower, the check
13900 # below for broken collect2 doesn't work under 4.3+
13901 collect2name=`${CC} -print-prog-name=collect2`
13902 if test -f "$collect2name" && \
13903 strings "$collect2name" | grep resolve_lib_name >/dev/null
13904 then
13905 # We have reworked collect2
13906 hardcode_direct_F77=yes
13907 else
13908 # We have old collect2
13909 hardcode_direct_F77=unsupported
13910 # It fails to find uninstalled libraries when the uninstalled
13911 # path is not listed in the libpath. Setting hardcode_minus_L
13912 # to unsupported forces relinking
13913 hardcode_minus_L_F77=yes
13914 hardcode_libdir_flag_spec_F77='-L$libdir'
13915 hardcode_libdir_separator_F77=
13916 fi
13917 ;;
13918 esac
13919 shared_flag='-shared'
13920 if test "$aix_use_runtimelinking" = yes; then
13921 shared_flag="$shared_flag "'${wl}-G'
13922 fi
13923 else
13924 # not using gcc
13925 if test "$host_cpu" = ia64; then
13926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13927 # chokes on -Wl,-G. The following line is correct:
13928 shared_flag='-G'
13929 else
13930 if test "$aix_use_runtimelinking" = yes; then
13931 shared_flag='${wl}-G'
13932 else
13933 shared_flag='${wl}-bM:SRE'
13934 fi
13935 fi
13936 fi
13937
13938 # It seems that -bexpall does not export symbols beginning with
13939 # underscore (_), so it is better to generate a list of symbols to export.
13940 always_export_symbols_F77=yes
13941 if test "$aix_use_runtimelinking" = yes; then
13942 # Warning - without using the other runtime loading flags (-brtl),
13943 # -berok will link without error, but may produce a broken library.
13944 allow_undefined_flag_F77='-berok'
13945 # Determine the default libpath from the value encoded in an empty executable.
13946 cat > conftest.$ac_ext <<_ACEOF
13947 program main
13948
13949 end
13950 _ACEOF
13951 if ac_fn_f77_try_link "$LINENO"; then :
13952
13953 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13954 }'`
13955 # Check for a 64-bit object if we didn't find anything.
13956 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13957 }'`; fi
13958 fi
13959 rm -f core conftest.err conftest.$ac_objext \
13960 conftest$ac_exeext conftest.$ac_ext
13961 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13962
13963 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13964 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 echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13965 else
13966 if test "$host_cpu" = ia64; then
13967 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
13968 allow_undefined_flag_F77="-z nodefs"
13969 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"
13970 else
13971 # Determine the default libpath from the value encoded in an empty executable.
13972 cat > conftest.$ac_ext <<_ACEOF
13973 program main
13974
13975 end
13976 _ACEOF
13977 if ac_fn_f77_try_link "$LINENO"; then :
13978
13979 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13980 }'`
13981 # Check for a 64-bit object if we didn't find anything.
13982 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
13983 }'`; fi
13984 fi
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13988
13989 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
13990 # Warning - without using the other run time loading flags,
13991 # -berok will link without error, but may produce a broken library.
13992 no_undefined_flag_F77=' ${wl}-bernotok'
13993 allow_undefined_flag_F77=' ${wl}-berok'
13994 # Exported symbols can be pulled into shared objects from archives
13995 whole_archive_flag_spec_F77='$convenience'
13996 archive_cmds_need_lc_F77=yes
13997 # This is similar to how AIX traditionally builds its shared libraries.
13998 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'
13999 fi
14000 fi
14001 ;;
14002
14003 amigaos*)
14004 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)'
14005 hardcode_libdir_flag_spec_F77='-L$libdir'
14006 hardcode_minus_L_F77=yes
14007 # see comment about different semantics on the GNU ld section
14008 ld_shlibs_F77=no
14009 ;;
14010
14011 bsdi[45]*)
14012 export_dynamic_flag_spec_F77=-rdynamic
14013 ;;
14014
14015 cygwin* | mingw* | pw32*)
14016 # When not using gcc, we currently assume that we are using
14017 # Microsoft Visual C++.
14018 # hardcode_libdir_flag_spec is actually meaningless, as there is
14019 # no search path for DLLs.
14020 hardcode_libdir_flag_spec_F77=' '
14021 allow_undefined_flag_F77=unsupported
14022 # Tell ltmain to make .lib files, not .a files.
14023 libext=lib
14024 # Tell ltmain to make .dll files, not .so files.
14025 shrext_cmds=".dll"
14026 # FIXME: Setting linknames here is a bad hack.
14027 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14028 # The linker will automatically build a .lib file if we build a DLL.
14029 old_archive_From_new_cmds_F77='true'
14030 # FIXME: Should let the user specify the lib program.
14031 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14032 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14033 enable_shared_with_static_runtimes_F77=yes
14034 ;;
14035
14036 darwin* | rhapsody*)
14037 case $host_os in
14038 rhapsody* | darwin1.[012])
14039 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14040 ;;
14041 *) # Darwin 1.3 on
14042 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14043 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14044 else
14045 case ${MACOSX_DEPLOYMENT_TARGET} in
14046 10.[012])
14047 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14048 ;;
14049 10.*)
14050 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14051 ;;
14052 esac
14053 fi
14054 ;;
14055 esac
14056 archive_cmds_need_lc_F77=no
14057 hardcode_direct_F77=no
14058 hardcode_automatic_F77=yes
14059 hardcode_shlibpath_var_F77=unsupported
14060 whole_archive_flag_spec_F77=''
14061 link_all_deplibs_F77=yes
14062 if test "$GCC" = yes ; then
14063 output_verbose_link_cmd='echo'
14064 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14065 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14066 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14067 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14068 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14069 else
14070 case $cc_basename in
14071 xlc*)
14072 output_verbose_link_cmd='echo'
14073 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14074 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14075 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14076 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14077 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14078 ;;
14079 *)
14080 ld_shlibs_F77=no
14081 ;;
14082 esac
14083 fi
14084 ;;
14085
14086 dgux*)
14087 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14088 hardcode_libdir_flag_spec_F77='-L$libdir'
14089 hardcode_shlibpath_var_F77=no
14090 ;;
14091
14092 freebsd1*)
14093 ld_shlibs_F77=no
14094 ;;
14095
14096 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14097 # support. Future versions do this automatically, but an explicit c++rt0.o
14098 # does not break anything, and helps significantly (at the cost of a little
14099 # extra space).
14100 freebsd2.2*)
14101 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14102 hardcode_libdir_flag_spec_F77='-R$libdir'
14103 hardcode_direct_F77=yes
14104 hardcode_shlibpath_var_F77=no
14105 ;;
14106
14107 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14108 freebsd2*)
14109 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14110 hardcode_direct_F77=yes
14111 hardcode_minus_L_F77=yes
14112 hardcode_shlibpath_var_F77=no
14113 ;;
14114
14115 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14116 freebsd* | kfreebsd*-gnu | dragonfly*)
14117 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14118 hardcode_libdir_flag_spec_F77='-R$libdir'
14119 hardcode_direct_F77=yes
14120 hardcode_shlibpath_var_F77=no
14121 ;;
14122
14123 hpux9*)
14124 if test "$GCC" = yes; then
14125 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14126 else
14127 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'
14128 fi
14129 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14130 hardcode_libdir_separator_F77=:
14131 hardcode_direct_F77=yes
14132
14133 # hardcode_minus_L: Not really in the search PATH,
14134 # but as the default location of the library.
14135 hardcode_minus_L_F77=yes
14136 export_dynamic_flag_spec_F77='${wl}-E'
14137 ;;
14138
14139 hpux10*)
14140 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14141 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14142 else
14143 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14144 fi
14145 if test "$with_gnu_ld" = no; then
14146 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14147 hardcode_libdir_separator_F77=:
14148
14149 hardcode_direct_F77=yes
14150 export_dynamic_flag_spec_F77='${wl}-E'
14151
14152 # hardcode_minus_L: Not really in the search PATH,
14153 # but as the default location of the library.
14154 hardcode_minus_L_F77=yes
14155 fi
14156 ;;
14157
14158 hpux11*)
14159 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14160 case $host_cpu in
14161 hppa*64*)
14162 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14163 ;;
14164 ia64*)
14165 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14166 ;;
14167 *)
14168 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14169 ;;
14170 esac
14171 else
14172 case $host_cpu in
14173 hppa*64*)
14174 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14175 ;;
14176 ia64*)
14177 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14178 ;;
14179 *)
14180 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14181 ;;
14182 esac
14183 fi
14184 if test "$with_gnu_ld" = no; then
14185 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14186 hardcode_libdir_separator_F77=:
14187
14188 case $host_cpu in
14189 hppa*64*|ia64*)
14190 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14191 hardcode_direct_F77=no
14192 hardcode_shlibpath_var_F77=no
14193 ;;
14194 *)
14195 hardcode_direct_F77=yes
14196 export_dynamic_flag_spec_F77='${wl}-E'
14197
14198 # hardcode_minus_L: Not really in the search PATH,
14199 # but as the default location of the library.
14200 hardcode_minus_L_F77=yes
14201 ;;
14202 esac
14203 fi
14204 ;;
14205
14206 irix5* | irix6* | nonstopux*)
14207 if test "$GCC" = yes; then
14208 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14209 else
14210 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14211 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14212 fi
14213 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14214 hardcode_libdir_separator_F77=:
14215 link_all_deplibs_F77=yes
14216 ;;
14217
14218 netbsd*)
14219 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14220 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14221 else
14222 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14223 fi
14224 hardcode_libdir_flag_spec_F77='-R$libdir'
14225 hardcode_direct_F77=yes
14226 hardcode_shlibpath_var_F77=no
14227 ;;
14228
14229 newsos6)
14230 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14231 hardcode_direct_F77=yes
14232 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14233 hardcode_libdir_separator_F77=:
14234 hardcode_shlibpath_var_F77=no
14235 ;;
14236
14237 openbsd*)
14238 hardcode_direct_F77=yes
14239 hardcode_shlibpath_var_F77=no
14240 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14241 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14242 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14243 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14244 export_dynamic_flag_spec_F77='${wl}-E'
14245 else
14246 case $host_os in
14247 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14248 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14249 hardcode_libdir_flag_spec_F77='-R$libdir'
14250 ;;
14251 *)
14252 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14253 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14254 ;;
14255 esac
14256 fi
14257 ;;
14258
14259 os2*)
14260 hardcode_libdir_flag_spec_F77='-L$libdir'
14261 hardcode_minus_L_F77=yes
14262 allow_undefined_flag_F77=unsupported
14263 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'
14264 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14265 ;;
14266
14267 osf3*)
14268 if test "$GCC" = yes; then
14269 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14270 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14271 else
14272 allow_undefined_flag_F77=' -expect_unresolved \*'
14273 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14274 fi
14275 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14276 hardcode_libdir_separator_F77=:
14277 ;;
14278
14279 osf4* | osf5*) # as osf3* with the addition of -msym flag
14280 if test "$GCC" = yes; then
14281 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14282 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14283 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14284 else
14285 allow_undefined_flag_F77=' -expect_unresolved \*'
14286 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14287 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14288 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14289
14290 # Both c and cxx compiler support -rpath directly
14291 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14292 fi
14293 hardcode_libdir_separator_F77=:
14294 ;;
14295
14296 solaris*)
14297 no_undefined_flag_F77=' -z text'
14298 if test "$GCC" = yes; then
14299 wlarc='${wl}'
14300 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14301 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14302 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14303 else
14304 wlarc=''
14305 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14306 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14307 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14308 fi
14309 hardcode_libdir_flag_spec_F77='-R$libdir'
14310 hardcode_shlibpath_var_F77=no
14311 case $host_os in
14312 solaris2.[0-5] | solaris2.[0-5].*) ;;
14313 *)
14314 # The compiler driver will combine linker options so we
14315 # cannot just pass the convience library names through
14316 # without $wl, iff we do not link with $LD.
14317 # Luckily, gcc supports the same syntax we need for Sun Studio.
14318 # Supported since Solaris 2.6 (maybe 2.5.1?)
14319 case $wlarc in
14320 '')
14321 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14322 *)
14323 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
14324 esac ;;
14325 esac
14326 link_all_deplibs_F77=yes
14327 ;;
14328
14329 sunos4*)
14330 if test "x$host_vendor" = xsequent; then
14331 # Use $CC to link under sequent, because it throws in some extra .o
14332 # files that make .init and .fini sections work.
14333 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14334 else
14335 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14336 fi
14337 hardcode_libdir_flag_spec_F77='-L$libdir'
14338 hardcode_direct_F77=yes
14339 hardcode_minus_L_F77=yes
14340 hardcode_shlibpath_var_F77=no
14341 ;;
14342
14343 sysv4)
14344 case $host_vendor in
14345 sni)
14346 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14347 hardcode_direct_F77=yes # is this really true???
14348 ;;
14349 siemens)
14350 ## LD is ld it makes a PLAMLIB
14351 ## CC just makes a GrossModule.
14352 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14353 reload_cmds_F77='$CC -r -o $output$reload_objs'
14354 hardcode_direct_F77=no
14355 ;;
14356 motorola)
14357 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14358 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14359 ;;
14360 esac
14361 runpath_var='LD_RUN_PATH'
14362 hardcode_shlibpath_var_F77=no
14363 ;;
14364
14365 sysv4.3*)
14366 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14367 hardcode_shlibpath_var_F77=no
14368 export_dynamic_flag_spec_F77='-Bexport'
14369 ;;
14370
14371 sysv4*MP*)
14372 if test -d /usr/nec; then
14373 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14374 hardcode_shlibpath_var_F77=no
14375 runpath_var=LD_RUN_PATH
14376 hardcode_runpath_var=yes
14377 ld_shlibs_F77=yes
14378 fi
14379 ;;
14380
14381 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
14382 no_undefined_flag_F77='${wl}-z,text'
14383 archive_cmds_need_lc_F77=no
14384 hardcode_shlibpath_var_F77=no
14385 runpath_var='LD_RUN_PATH'
14386
14387 if test "$GCC" = yes; then
14388 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14389 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14390 else
14391 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14393 fi
14394 ;;
14395
14396 sysv5* | sco3.2v5* | sco5v6*)
14397 # Note: We can NOT use -z defs as we might desire, because we do not
14398 # link with -lc, and that would cause any symbols used from libc to
14399 # always be unresolved, which means just about no library would
14400 # ever link correctly. If we're not using GNU ld we use -z text
14401 # though, which does catch some bad symbols but isn't as heavy-handed
14402 # as -z defs.
14403 no_undefined_flag_F77='${wl}-z,text'
14404 allow_undefined_flag_F77='${wl}-z,nodefs'
14405 archive_cmds_need_lc_F77=no
14406 hardcode_shlibpath_var_F77=no
14407 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14408 hardcode_libdir_separator_F77=':'
14409 link_all_deplibs_F77=yes
14410 export_dynamic_flag_spec_F77='${wl}-Bexport'
14411 runpath_var='LD_RUN_PATH'
14412
14413 if test "$GCC" = yes; then
14414 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14415 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14416 else
14417 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14418 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14419 fi
14420 ;;
14421
14422 uts4*)
14423 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14424 hardcode_libdir_flag_spec_F77='-L$libdir'
14425 hardcode_shlibpath_var_F77=no
14426 ;;
14427
14428 *)
14429 ld_shlibs_F77=no
14430 ;;
14431 esac
14432 fi
14433
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
14435 $as_echo "$ld_shlibs_F77" >&6; }
14436 test "$ld_shlibs_F77" = no && can_build_shared=no
14437
14438 #
14439 # Do we need to explicitly link libc?
14440 #
14441 case "x$archive_cmds_need_lc_F77" in
14442 x|xyes)
14443 # Assume -lc should be added
14444 archive_cmds_need_lc_F77=yes
14445
14446 if test "$enable_shared" = yes && test "$GCC" = yes; then
14447 case $archive_cmds_F77 in
14448 *'~'*)
14449 # FIXME: we may have to deal with multi-command sequences.
14450 ;;
14451 '$CC '*)
14452 # Test whether the compiler implicitly links with -lc since on some
14453 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14454 # to ld, don't add -lc before -lgcc.
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14456 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14457 $rm conftest*
14458 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14459
14460 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14461 (eval $ac_compile) 2>&5
14462 ac_status=$?
14463 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14464 test $ac_status = 0; } 2>conftest.err; then
14465 soname=conftest
14466 lib=conftest
14467 libobjs=conftest.$ac_objext
14468 deplibs=
14469 wl=$lt_prog_compiler_wl_F77
14470 pic_flag=$lt_prog_compiler_pic_F77
14471 compiler_flags=-v
14472 linker_flags=-v
14473 verstring=
14474 output_objdir=.
14475 libname=conftest
14476 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
14477 allow_undefined_flag_F77=
14478 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14479 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
14480 ac_status=$?
14481 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14482 test $ac_status = 0; }
14483 then
14484 archive_cmds_need_lc_F77=no
14485 else
14486 archive_cmds_need_lc_F77=yes
14487 fi
14488 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
14489 else
14490 cat conftest.err 1>&5
14491 fi
14492 $rm conftest*
14493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
14494 $as_echo "$archive_cmds_need_lc_F77" >&6; }
14495 ;;
14496 esac
14497 fi
14498 ;;
14499 esac
14500
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14502 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14503 library_names_spec=
14504 libname_spec='lib$name'
14505 soname_spec=
14506 shrext_cmds=".so"
14507 postinstall_cmds=
14508 postuninstall_cmds=
14509 finish_cmds=
14510 finish_eval=
14511 shlibpath_var=
14512 shlibpath_overrides_runpath=unknown
14513 version_type=none
14514 dynamic_linker="$host_os ld.so"
14515 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14516 if test "$GCC" = yes; then
14517 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14518 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
14519 # if the path contains ";" then we assume it to be the separator
14520 # otherwise default to the standard path separator (i.e. ":") - it is
14521 # assumed that no part of a normal pathname contains ";" but that should
14522 # okay in the real world where ";" in dirpaths is itself problematic.
14523 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14524 else
14525 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14526 fi
14527 else
14528 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14529 fi
14530 need_lib_prefix=unknown
14531 hardcode_into_libs=no
14532
14533 # when you set need_version to no, make sure it does not cause -set_version
14534 # flags to be left without arguments
14535 need_version=unknown
14536
14537 case $host_os in
14538 aix3*)
14539 version_type=linux
14540 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14541 shlibpath_var=LIBPATH
14542
14543 # AIX 3 has no versioning support, so we append a major version to the name.
14544 soname_spec='${libname}${release}${shared_ext}$major'
14545 ;;
14546
14547 aix4* | aix5*)
14548 version_type=linux
14549 need_lib_prefix=no
14550 need_version=no
14551 hardcode_into_libs=yes
14552 if test "$host_cpu" = ia64; then
14553 # AIX 5 supports IA64
14554 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14555 shlibpath_var=LD_LIBRARY_PATH
14556 else
14557 # With GCC up to 2.95.x, collect2 would create an import file
14558 # for dependence libraries. The import file would start with
14559 # the line `#! .'. This would cause the generated library to
14560 # depend on `.', always an invalid library. This was fixed in
14561 # development snapshots of GCC prior to 3.0.
14562 case $host_os in
14563 aix4 | aix4.[01] | aix4.[01].*)
14564 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14565 echo ' yes '
14566 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
14567 :
14568 else
14569 can_build_shared=no
14570 fi
14571 ;;
14572 esac
14573 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14574 # soname into executable. Probably we can add versioning support to
14575 # collect2, so additional links can be useful in future.
14576 if test "$aix_use_runtimelinking" = yes; then
14577 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14578 # instead of lib<name>.a to let people know that these are not
14579 # typical AIX shared libraries.
14580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14581 else
14582 # We preserve .a as extension for shared libraries through AIX4.2
14583 # and later when we are not doing run time linking.
14584 library_names_spec='${libname}${release}.a $libname.a'
14585 soname_spec='${libname}${release}${shared_ext}$major'
14586 fi
14587 shlibpath_var=LIBPATH
14588 fi
14589 ;;
14590
14591 amigaos*)
14592 library_names_spec='$libname.ixlibrary $libname.a'
14593 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14594 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
14595 ;;
14596
14597 beos*)
14598 library_names_spec='${libname}${shared_ext}'
14599 dynamic_linker="$host_os ld.so"
14600 shlibpath_var=LIBRARY_PATH
14601 ;;
14602
14603 bsdi[45]*)
14604 version_type=linux
14605 need_version=no
14606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14607 soname_spec='${libname}${release}${shared_ext}$major'
14608 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14609 shlibpath_var=LD_LIBRARY_PATH
14610 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14611 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14612 # the default ld.so.conf also contains /usr/contrib/lib and
14613 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14614 # libtool to hard-code these into programs
14615 ;;
14616
14617 cygwin* | mingw* | pw32*)
14618 version_type=windows
14619 shrext_cmds=".dll"
14620 need_version=no
14621 need_lib_prefix=no
14622
14623 case $GCC,$host_os in
14624 yes,cygwin* | yes,mingw* | yes,pw32*)
14625 library_names_spec='$libname.dll.a'
14626 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14627 postinstall_cmds='base_file=`basename \${file}`~
14628 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
14629 dldir=$destdir/`dirname \$dlpath`~
14630 test -d \$dldir || mkdir -p \$dldir~
14631 $install_prog $dir/$dlname \$dldir/$dlname~
14632 chmod a+x \$dldir/$dlname'
14633 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14634 dlpath=$dir/\$dldll~
14635 $rm \$dlpath'
14636 shlibpath_overrides_runpath=yes
14637
14638 case $host_os in
14639 cygwin*)
14640 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14641 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14642 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
14643 ;;
14644 mingw*)
14645 # MinGW DLLs use traditional 'lib' prefix
14646 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14647 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
14648 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
14649 # It is most probably a Windows format PATH printed by
14650 # mingw gcc, but we are running on Cygwin. Gcc prints its search
14651 # path with ; separators, and with drive letters. We can handle the
14652 # drive letters (cygwin fileutils understands them), so leave them,
14653 # especially as we might pass files found there to a mingw objdump,
14654 # which wouldn't understand a cygwinified path. Ahh.
14655 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14656 else
14657 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14658 fi
14659 ;;
14660 pw32*)
14661 # pw32 DLLs use 'pw' prefix rather than 'lib'
14662 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14663 ;;
14664 esac
14665 ;;
14666
14667 *)
14668 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14669 ;;
14670 esac
14671 dynamic_linker='Win32 ld.exe'
14672 # FIXME: first we should search . and the directory the executable is in
14673 shlibpath_var=PATH
14674 ;;
14675
14676 darwin* | rhapsody*)
14677 dynamic_linker="$host_os dyld"
14678 version_type=darwin
14679 need_lib_prefix=no
14680 need_version=no
14681 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14682 soname_spec='${libname}${release}${major}$shared_ext'
14683 shlibpath_overrides_runpath=yes
14684 shlibpath_var=DYLD_LIBRARY_PATH
14685 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14686 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
14687 if test "$GCC" = yes; then
14688 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
14689 else
14690 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
14691 fi
14692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14693 ;;
14694
14695 dgux*)
14696 version_type=linux
14697 need_lib_prefix=no
14698 need_version=no
14699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14700 soname_spec='${libname}${release}${shared_ext}$major'
14701 shlibpath_var=LD_LIBRARY_PATH
14702 ;;
14703
14704 freebsd1*)
14705 dynamic_linker=no
14706 ;;
14707
14708 kfreebsd*-gnu)
14709 version_type=linux
14710 need_lib_prefix=no
14711 need_version=no
14712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14713 soname_spec='${libname}${release}${shared_ext}$major'
14714 shlibpath_var=LD_LIBRARY_PATH
14715 shlibpath_overrides_runpath=no
14716 hardcode_into_libs=yes
14717 dynamic_linker='GNU ld.so'
14718 ;;
14719
14720 freebsd* | dragonfly*)
14721 # DragonFly does not have aout. When/if they implement a new
14722 # versioning mechanism, adjust this.
14723 if test -x /usr/bin/objformat; then
14724 objformat=`/usr/bin/objformat`
14725 else
14726 case $host_os in
14727 freebsd[123]*) objformat=aout ;;
14728 *) objformat=elf ;;
14729 esac
14730 fi
14731 version_type=freebsd-$objformat
14732 case $version_type in
14733 freebsd-elf*)
14734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14735 need_version=no
14736 need_lib_prefix=no
14737 ;;
14738 freebsd-*)
14739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14740 need_version=yes
14741 ;;
14742 esac
14743 shlibpath_var=LD_LIBRARY_PATH
14744 case $host_os in
14745 freebsd2*)
14746 shlibpath_overrides_runpath=yes
14747 ;;
14748 freebsd3.[01]* | freebsdelf3.[01]*)
14749 shlibpath_overrides_runpath=yes
14750 hardcode_into_libs=yes
14751 ;;
14752 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14753 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14754 shlibpath_overrides_runpath=no
14755 hardcode_into_libs=yes
14756 ;;
14757 freebsd*) # from 4.6 on
14758 shlibpath_overrides_runpath=yes
14759 hardcode_into_libs=yes
14760 ;;
14761 esac
14762 ;;
14763
14764 gnu*)
14765 version_type=linux
14766 need_lib_prefix=no
14767 need_version=no
14768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14769 soname_spec='${libname}${release}${shared_ext}$major'
14770 shlibpath_var=LD_LIBRARY_PATH
14771 hardcode_into_libs=yes
14772 ;;
14773
14774 hpux9* | hpux10* | hpux11*)
14775 # Give a soname corresponding to the major version so that dld.sl refuses to
14776 # link against other versions.
14777 version_type=sunos
14778 need_lib_prefix=no
14779 need_version=no
14780 case $host_cpu in
14781 ia64*)
14782 shrext_cmds='.so'
14783 hardcode_into_libs=yes
14784 dynamic_linker="$host_os dld.so"
14785 shlibpath_var=LD_LIBRARY_PATH
14786 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14788 soname_spec='${libname}${release}${shared_ext}$major'
14789 if test "X$HPUX_IA64_MODE" = X32; then
14790 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14791 else
14792 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14793 fi
14794 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14795 ;;
14796 hppa*64*)
14797 shrext_cmds='.sl'
14798 hardcode_into_libs=yes
14799 dynamic_linker="$host_os dld.sl"
14800 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14801 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14803 soname_spec='${libname}${release}${shared_ext}$major'
14804 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14805 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14806 ;;
14807 *)
14808 shrext_cmds='.sl'
14809 dynamic_linker="$host_os dld.sl"
14810 shlibpath_var=SHLIB_PATH
14811 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14813 soname_spec='${libname}${release}${shared_ext}$major'
14814 ;;
14815 esac
14816 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14817 postinstall_cmds='chmod 555 $lib'
14818 ;;
14819
14820 interix3*)
14821 version_type=linux
14822 need_lib_prefix=no
14823 need_version=no
14824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14825 soname_spec='${libname}${release}${shared_ext}$major'
14826 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14827 shlibpath_var=LD_LIBRARY_PATH
14828 shlibpath_overrides_runpath=no
14829 hardcode_into_libs=yes
14830 ;;
14831
14832 irix5* | irix6* | nonstopux*)
14833 case $host_os in
14834 nonstopux*) version_type=nonstopux ;;
14835 *)
14836 if test "$lt_cv_prog_gnu_ld" = yes; then
14837 version_type=linux
14838 else
14839 version_type=irix
14840 fi ;;
14841 esac
14842 need_lib_prefix=no
14843 need_version=no
14844 soname_spec='${libname}${release}${shared_ext}$major'
14845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14846 case $host_os in
14847 irix5* | nonstopux*)
14848 libsuff= shlibsuff=
14849 ;;
14850 *)
14851 case $LD in # libtool.m4 will add one of these switches to LD
14852 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14853 libsuff= shlibsuff= libmagic=32-bit;;
14854 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14855 libsuff=32 shlibsuff=N32 libmagic=N32;;
14856 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14857 libsuff=64 shlibsuff=64 libmagic=64-bit;;
14858 *) libsuff= shlibsuff= libmagic=never-match;;
14859 esac
14860 ;;
14861 esac
14862 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14863 shlibpath_overrides_runpath=no
14864 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14865 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14866 hardcode_into_libs=yes
14867 ;;
14868
14869 # No shared lib support for Linux oldld, aout, or coff.
14870 linux*oldld* | linux*aout* | linux*coff*)
14871 dynamic_linker=no
14872 ;;
14873
14874 # This must be Linux ELF.
14875 linux*)
14876 version_type=linux
14877 need_lib_prefix=no
14878 need_version=no
14879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14880 soname_spec='${libname}${release}${shared_ext}$major'
14881 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14882 shlibpath_var=LD_LIBRARY_PATH
14883 shlibpath_overrides_runpath=no
14884 # This implies no fast_install, which is unacceptable.
14885 # Some rework will be needed to allow for fast_install
14886 # before this can be enabled.
14887 hardcode_into_libs=yes
14888
14889 # find out which ABI we are using
14890 libsuff=
14891 case "$host_cpu" in
14892 x86_64*|s390x*|powerpc64*)
14893 echo '#line 14893 "configure"' > conftest.$ac_ext
14894 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14895 (eval $ac_compile) 2>&5
14896 ac_status=$?
14897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14898 test $ac_status = 0; }; then
14899 case `/usr/bin/file conftest.$ac_objext` in
14900 *64-bit*)
14901 libsuff=64
14902 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
14903 ;;
14904 esac
14905 fi
14906 rm -rf conftest*
14907 ;;
14908 esac
14909
14910 # Append ld.so.conf contents to the search path
14911 if test -f /etc/ld.so.conf; then
14912 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
14913 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
14914 fi
14915
14916 # We used to test for /lib/ld.so.1 and disable shared libraries on
14917 # powerpc, because MkLinux only supported shared libraries with the
14918 # GNU dynamic linker. Since this was broken with cross compilers,
14919 # most powerpc-linux boxes support dynamic linking these days and
14920 # people can always --disable-shared, the test was removed, and we
14921 # assume the GNU/Linux dynamic linker is in use.
14922 dynamic_linker='GNU/Linux ld.so'
14923 ;;
14924
14925 knetbsd*-gnu)
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 shlibpath_overrides_runpath=no
14933 hardcode_into_libs=yes
14934 dynamic_linker='GNU ld.so'
14935 ;;
14936
14937 netbsd*)
14938 version_type=sunos
14939 need_lib_prefix=no
14940 need_version=no
14941 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14943 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14944 dynamic_linker='NetBSD (a.out) ld.so'
14945 else
14946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14947 soname_spec='${libname}${release}${shared_ext}$major'
14948 dynamic_linker='NetBSD ld.elf_so'
14949 fi
14950 shlibpath_var=LD_LIBRARY_PATH
14951 shlibpath_overrides_runpath=yes
14952 hardcode_into_libs=yes
14953 ;;
14954
14955 newsos6)
14956 version_type=linux
14957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14958 shlibpath_var=LD_LIBRARY_PATH
14959 shlibpath_overrides_runpath=yes
14960 ;;
14961
14962 nto-qnx*)
14963 version_type=linux
14964 need_lib_prefix=no
14965 need_version=no
14966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14967 soname_spec='${libname}${release}${shared_ext}$major'
14968 shlibpath_var=LD_LIBRARY_PATH
14969 shlibpath_overrides_runpath=yes
14970 ;;
14971
14972 openbsd*)
14973 version_type=sunos
14974 sys_lib_dlsearch_path_spec="/usr/lib"
14975 need_lib_prefix=no
14976 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14977 case $host_os in
14978 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
14979 *) need_version=no ;;
14980 esac
14981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14982 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14983 shlibpath_var=LD_LIBRARY_PATH
14984 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14985 case $host_os in
14986 openbsd2.[89] | openbsd2.[89].*)
14987 shlibpath_overrides_runpath=no
14988 ;;
14989 *)
14990 shlibpath_overrides_runpath=yes
14991 ;;
14992 esac
14993 else
14994 shlibpath_overrides_runpath=yes
14995 fi
14996 ;;
14997
14998 os2*)
14999 libname_spec='$name'
15000 shrext_cmds=".dll"
15001 need_lib_prefix=no
15002 library_names_spec='$libname${shared_ext} $libname.a'
15003 dynamic_linker='OS/2 ld.exe'
15004 shlibpath_var=LIBPATH
15005 ;;
15006
15007 osf3* | osf4* | osf5*)
15008 version_type=osf
15009 need_lib_prefix=no
15010 need_version=no
15011 soname_spec='${libname}${release}${shared_ext}$major'
15012 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15013 shlibpath_var=LD_LIBRARY_PATH
15014 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15015 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15016 ;;
15017
15018 solaris*)
15019 version_type=linux
15020 need_lib_prefix=no
15021 need_version=no
15022 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15023 soname_spec='${libname}${release}${shared_ext}$major'
15024 shlibpath_var=LD_LIBRARY_PATH
15025 shlibpath_overrides_runpath=yes
15026 hardcode_into_libs=yes
15027 # ldd complains unless libraries are executable
15028 postinstall_cmds='chmod +x $lib'
15029 ;;
15030
15031 sunos4*)
15032 version_type=sunos
15033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15034 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15035 shlibpath_var=LD_LIBRARY_PATH
15036 shlibpath_overrides_runpath=yes
15037 if test "$with_gnu_ld" = yes; then
15038 need_lib_prefix=no
15039 fi
15040 need_version=yes
15041 ;;
15042
15043 sysv4 | sysv4.3*)
15044 version_type=linux
15045 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15046 soname_spec='${libname}${release}${shared_ext}$major'
15047 shlibpath_var=LD_LIBRARY_PATH
15048 case $host_vendor in
15049 sni)
15050 shlibpath_overrides_runpath=no
15051 need_lib_prefix=no
15052 export_dynamic_flag_spec='${wl}-Blargedynsym'
15053 runpath_var=LD_RUN_PATH
15054 ;;
15055 siemens)
15056 need_lib_prefix=no
15057 ;;
15058 motorola)
15059 need_lib_prefix=no
15060 need_version=no
15061 shlibpath_overrides_runpath=no
15062 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15063 ;;
15064 esac
15065 ;;
15066
15067 sysv4*MP*)
15068 if test -d /usr/nec ;then
15069 version_type=linux
15070 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15071 soname_spec='$libname${shared_ext}.$major'
15072 shlibpath_var=LD_LIBRARY_PATH
15073 fi
15074 ;;
15075
15076 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15077 version_type=freebsd-elf
15078 need_lib_prefix=no
15079 need_version=no
15080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15081 soname_spec='${libname}${release}${shared_ext}$major'
15082 shlibpath_var=LD_LIBRARY_PATH
15083 hardcode_into_libs=yes
15084 if test "$with_gnu_ld" = yes; then
15085 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15086 shlibpath_overrides_runpath=no
15087 else
15088 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15089 shlibpath_overrides_runpath=yes
15090 case $host_os in
15091 sco3.2v5*)
15092 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15093 ;;
15094 esac
15095 fi
15096 sys_lib_dlsearch_path_spec='/usr/lib'
15097 ;;
15098
15099 uts4*)
15100 version_type=linux
15101 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15102 soname_spec='${libname}${release}${shared_ext}$major'
15103 shlibpath_var=LD_LIBRARY_PATH
15104 ;;
15105
15106 *)
15107 dynamic_linker=no
15108 ;;
15109 esac
15110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15111 $as_echo "$dynamic_linker" >&6; }
15112 test "$dynamic_linker" = no && can_build_shared=no
15113
15114 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15115 if test "$GCC" = yes; then
15116 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15117 fi
15118
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15120 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15121 hardcode_action_F77=
15122 if test -n "$hardcode_libdir_flag_spec_F77" || \
15123 test -n "$runpath_var_F77" || \
15124 test "X$hardcode_automatic_F77" = "Xyes" ; then
15125
15126 # We can hardcode non-existant directories.
15127 if test "$hardcode_direct_F77" != no &&
15128 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15129 # have to relink, otherwise we might link with an installed library
15130 # when we should be linking with a yet-to-be-installed one
15131 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15132 test "$hardcode_minus_L_F77" != no; then
15133 # Linking always hardcodes the temporary library directory.
15134 hardcode_action_F77=relink
15135 else
15136 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15137 hardcode_action_F77=immediate
15138 fi
15139 else
15140 # We cannot hardcode anything, or else we can only hardcode existing
15141 # directories.
15142 hardcode_action_F77=unsupported
15143 fi
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15145 $as_echo "$hardcode_action_F77" >&6; }
15146
15147 if test "$hardcode_action_F77" = relink; then
15148 # Fast installation is not supported
15149 enable_fast_install=no
15150 elif test "$shlibpath_overrides_runpath" = yes ||
15151 test "$enable_shared" = no; then
15152 # Fast installation is not necessary
15153 enable_fast_install=needless
15154 fi
15155
15156
15157 # The else clause should only fire when bootstrapping the
15158 # libtool distribution, otherwise you forgot to ship ltmain.sh
15159 # with your package, and you will get complaints that there are
15160 # no rules to generate ltmain.sh.
15161 if test -f "$ltmain"; then
15162 # See if we are running on zsh, and set the options which allow our commands through
15163 # without removal of \ escapes.
15164 if test -n "${ZSH_VERSION+set}" ; then
15165 setopt NO_GLOB_SUBST
15166 fi
15167 # Now quote all the things that may contain metacharacters while being
15168 # careful not to overquote the AC_SUBSTed values. We take copies of the
15169 # variables and quote the copies for generation of the libtool script.
15170 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15171 SED SHELL STRIP \
15172 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15173 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15174 deplibs_check_method reload_flag reload_cmds need_locks \
15175 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15176 lt_cv_sys_global_symbol_to_c_name_address \
15177 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15178 old_postinstall_cmds old_postuninstall_cmds \
15179 compiler_F77 \
15180 CC_F77 \
15181 LD_F77 \
15182 lt_prog_compiler_wl_F77 \
15183 lt_prog_compiler_pic_F77 \
15184 lt_prog_compiler_static_F77 \
15185 lt_prog_compiler_no_builtin_flag_F77 \
15186 export_dynamic_flag_spec_F77 \
15187 thread_safe_flag_spec_F77 \
15188 whole_archive_flag_spec_F77 \
15189 enable_shared_with_static_runtimes_F77 \
15190 old_archive_cmds_F77 \
15191 old_archive_from_new_cmds_F77 \
15192 predep_objects_F77 \
15193 postdep_objects_F77 \
15194 predeps_F77 \
15195 postdeps_F77 \
15196 compiler_lib_search_path_F77 \
15197 archive_cmds_F77 \
15198 archive_expsym_cmds_F77 \
15199 postinstall_cmds_F77 \
15200 postuninstall_cmds_F77 \
15201 old_archive_from_expsyms_cmds_F77 \
15202 allow_undefined_flag_F77 \
15203 no_undefined_flag_F77 \
15204 export_symbols_cmds_F77 \
15205 hardcode_libdir_flag_spec_F77 \
15206 hardcode_libdir_flag_spec_ld_F77 \
15207 hardcode_libdir_separator_F77 \
15208 hardcode_automatic_F77 \
15209 module_cmds_F77 \
15210 module_expsym_cmds_F77 \
15211 lt_cv_prog_compiler_c_o_F77 \
15212 exclude_expsyms_F77 \
15213 include_expsyms_F77; do
15214
15215 case $var in
15216 old_archive_cmds_F77 | \
15217 old_archive_from_new_cmds_F77 | \
15218 archive_cmds_F77 | \
15219 archive_expsym_cmds_F77 | \
15220 module_cmds_F77 | \
15221 module_expsym_cmds_F77 | \
15222 old_archive_from_expsyms_cmds_F77 | \
15223 export_symbols_cmds_F77 | \
15224 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15225 postinstall_cmds | postuninstall_cmds | \
15226 old_postinstall_cmds | old_postuninstall_cmds | \
15227 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15228 # Double-quote double-evaled strings.
15229 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15230 ;;
15231 *)
15232 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15233 ;;
15234 esac
15235 done
15236
15237 case $lt_echo in
15238 *'\$0 --fallback-echo"')
15239 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15240 ;;
15241 esac
15242
15243 cfgfile="$ofile"
15244
15245 cat <<__EOF__ >> "$cfgfile"
15246 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15247
15248 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15249
15250 # Shell to use when invoking shell scripts.
15251 SHELL=$lt_SHELL
15252
15253 # Whether or not to build shared libraries.
15254 build_libtool_libs=$enable_shared
15255
15256 # Whether or not to build static libraries.
15257 build_old_libs=$enable_static
15258
15259 # Whether or not to add -lc for building shared libraries.
15260 build_libtool_need_lc=$archive_cmds_need_lc_F77
15261
15262 # Whether or not to disallow shared libs when runtime libs are static
15263 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15264
15265 # Whether or not to optimize for fast installation.
15266 fast_install=$enable_fast_install
15267
15268 # The host system.
15269 host_alias=$host_alias
15270 host=$host
15271 host_os=$host_os
15272
15273 # The build system.
15274 build_alias=$build_alias
15275 build=$build
15276 build_os=$build_os
15277
15278 # An echo program that does not interpret backslashes.
15279 echo=$lt_echo
15280
15281 # The archiver.
15282 AR=$lt_AR
15283 AR_FLAGS=$lt_AR_FLAGS
15284
15285 # A C compiler.
15286 LTCC=$lt_LTCC
15287
15288 # LTCC compiler flags.
15289 LTCFLAGS=$lt_LTCFLAGS
15290
15291 # A language-specific compiler.
15292 CC=$lt_compiler_F77
15293
15294 # Is the compiler the GNU C compiler?
15295 with_gcc=$GCC_F77
15296
15297 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
15298 gcc_ver=\`gcc -dumpversion\`
15299
15300 # An ERE matcher.
15301 EGREP=$lt_EGREP
15302
15303 # The linker used to build libraries.
15304 LD=$lt_LD_F77
15305
15306 # Whether we need hard or soft links.
15307 LN_S=$lt_LN_S
15308
15309 # A BSD-compatible nm program.
15310 NM=$lt_NM
15311
15312 # A symbol stripping program
15313 STRIP=$lt_STRIP
15314
15315 # Used to examine libraries when file_magic_cmd begins "file"
15316 MAGIC_CMD=$MAGIC_CMD
15317
15318 # Used on cygwin: DLL creation program.
15319 DLLTOOL="$DLLTOOL"
15320
15321 # Used on cygwin: object dumper.
15322 OBJDUMP="$OBJDUMP"
15323
15324 # Used on cygwin: assembler.
15325 AS="$AS"
15326
15327 # The name of the directory that contains temporary libtool files.
15328 objdir=$objdir
15329
15330 # How to create reloadable object files.
15331 reload_flag=$lt_reload_flag
15332 reload_cmds=$lt_reload_cmds
15333
15334 # How to pass a linker flag through the compiler.
15335 wl=$lt_lt_prog_compiler_wl_F77
15336
15337 # Object file suffix (normally "o").
15338 objext="$ac_objext"
15339
15340 # Old archive suffix (normally "a").
15341 libext="$libext"
15342
15343 # Shared library suffix (normally ".so").
15344 shrext_cmds='$shrext_cmds'
15345
15346 # Executable file suffix (normally "").
15347 exeext="$exeext"
15348
15349 # Additional compiler flags for building library objects.
15350 pic_flag=$lt_lt_prog_compiler_pic_F77
15351 pic_mode=$pic_mode
15352
15353 # What is the maximum length of a command?
15354 max_cmd_len=$lt_cv_sys_max_cmd_len
15355
15356 # Does compiler simultaneously support -c and -o options?
15357 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15358
15359 # Must we lock files when doing compilation?
15360 need_locks=$lt_need_locks
15361
15362 # Do we need the lib prefix for modules?
15363 need_lib_prefix=$need_lib_prefix
15364
15365 # Do we need a version for libraries?
15366 need_version=$need_version
15367
15368 # Whether dlopen is supported.
15369 dlopen_support=$enable_dlopen
15370
15371 # Whether dlopen of programs is supported.
15372 dlopen_self=$enable_dlopen_self
15373
15374 # Whether dlopen of statically linked programs is supported.
15375 dlopen_self_static=$enable_dlopen_self_static
15376
15377 # Compiler flag to prevent dynamic linking.
15378 link_static_flag=$lt_lt_prog_compiler_static_F77
15379
15380 # Compiler flag to turn off builtin functions.
15381 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15382
15383 # Compiler flag to allow reflexive dlopens.
15384 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15385
15386 # Compiler flag to generate shared objects directly from archives.
15387 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15388
15389 # Compiler flag to generate thread-safe objects.
15390 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15391
15392 # Library versioning type.
15393 version_type=$version_type
15394
15395 # Format of library name prefix.
15396 libname_spec=$lt_libname_spec
15397
15398 # List of archive names. First name is the real one, the rest are links.
15399 # The last name is the one that the linker finds with -lNAME.
15400 library_names_spec=$lt_library_names_spec
15401
15402 # The coded name of the library, if different from the real name.
15403 soname_spec=$lt_soname_spec
15404
15405 # Commands used to build and install an old-style archive.
15406 RANLIB=$lt_RANLIB
15407 old_archive_cmds=$lt_old_archive_cmds_F77
15408 old_postinstall_cmds=$lt_old_postinstall_cmds
15409 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15410
15411 # Create an old-style archive from a shared archive.
15412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15413
15414 # Create a temporary old-style archive to link instead of a shared archive.
15415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15416
15417 # Commands used to build and install a shared archive.
15418 archive_cmds=$lt_archive_cmds_F77
15419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15420 postinstall_cmds=$lt_postinstall_cmds
15421 postuninstall_cmds=$lt_postuninstall_cmds
15422
15423 # Commands used to build a loadable module (assumed same as above if empty)
15424 module_cmds=$lt_module_cmds_F77
15425 module_expsym_cmds=$lt_module_expsym_cmds_F77
15426
15427 # Commands to strip libraries.
15428 old_striplib=$lt_old_striplib
15429 striplib=$lt_striplib
15430
15431 # Dependencies to place before the objects being linked to create a
15432 # shared library.
15433 predep_objects=\`echo $lt_predep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15434
15435 # Dependencies to place after the objects being linked to create a
15436 # shared library.
15437 postdep_objects=\`echo $lt_postdep_objects_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15438
15439 # Dependencies to place before the objects being linked to create a
15440 # shared library.
15441 predeps=$lt_predeps_F77
15442
15443 # Dependencies to place after the objects being linked to create a
15444 # shared library.
15445 postdeps=$lt_postdeps_F77
15446
15447 # The library search path used internally by the compiler when linking
15448 # a shared library.
15449 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_F77 | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15450
15451 # Method to check whether dependent libraries are shared objects.
15452 deplibs_check_method=$lt_deplibs_check_method
15453
15454 # Command to use when deplibs_check_method == file_magic.
15455 file_magic_cmd=$lt_file_magic_cmd
15456
15457 # Flag that allows shared libraries with undefined symbols to be built.
15458 allow_undefined_flag=$lt_allow_undefined_flag_F77
15459
15460 # Flag that forces no undefined symbols.
15461 no_undefined_flag=$lt_no_undefined_flag_F77
15462
15463 # Commands used to finish a libtool library installation in a directory.
15464 finish_cmds=$lt_finish_cmds
15465
15466 # Same as above, but a single script fragment to be evaled but not shown.
15467 finish_eval=$lt_finish_eval
15468
15469 # Take the output of nm and produce a listing of raw symbols and C names.
15470 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15471
15472 # Transform the output of nm in a proper C declaration
15473 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15474
15475 # Transform the output of nm in a C name address pair
15476 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15477
15478 # This is the shared library runtime path variable.
15479 runpath_var=$runpath_var
15480
15481 # This is the shared library path variable.
15482 shlibpath_var=$shlibpath_var
15483
15484 # Is shlibpath searched before the hard-coded library search path?
15485 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15486
15487 # How to hardcode a shared library path into an executable.
15488 hardcode_action=$hardcode_action_F77
15489
15490 # Whether we should hardcode library paths into libraries.
15491 hardcode_into_libs=$hardcode_into_libs
15492
15493 # Flag to hardcode \$libdir into a binary during linking.
15494 # This must work even if \$libdir does not exist.
15495 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
15496
15497 # If ld is used when linking, flag to hardcode \$libdir into
15498 # a binary during linking. This must work even if \$libdir does
15499 # not exist.
15500 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
15501
15502 # Whether we need a single -rpath flag with a separated argument.
15503 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
15504
15505 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15506 # resulting binary.
15507 hardcode_direct=$hardcode_direct_F77
15508
15509 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15510 # resulting binary.
15511 hardcode_minus_L=$hardcode_minus_L_F77
15512
15513 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15514 # the resulting binary.
15515 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
15516
15517 # Set to yes if building a shared library automatically hardcodes DIR into the library
15518 # and all subsequent libraries and executables linked against it.
15519 hardcode_automatic=$hardcode_automatic_F77
15520
15521 # Variables whose values should be saved in libtool wrapper scripts and
15522 # restored at relink time.
15523 variables_saved_for_relink="$variables_saved_for_relink"
15524
15525 # Whether libtool must link a program against all its dependency libraries.
15526 link_all_deplibs=$link_all_deplibs_F77
15527
15528 # Compile-time system search path for libraries
15529 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
15530
15531 # Run-time system search path for libraries
15532 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15533
15534 # Fix the shell variable \$srcfile for the compiler.
15535 fix_srcfile_path="$fix_srcfile_path_F77"
15536
15537 # Set to yes if exported symbols are required.
15538 always_export_symbols=$always_export_symbols_F77
15539
15540 # The commands to list exported symbols.
15541 export_symbols_cmds=$lt_export_symbols_cmds_F77
15542
15543 # The commands to extract the exported symbol list from a shared archive.
15544 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15545
15546 # Symbols that should not be listed in the preloaded symbols.
15547 exclude_expsyms=$lt_exclude_expsyms_F77
15548
15549 # Symbols that must always be exported.
15550 include_expsyms=$lt_include_expsyms_F77
15551
15552 # ### END LIBTOOL TAG CONFIG: $tagname
15553
15554 __EOF__
15555
15556
15557 else
15558 # If there is no Makefile yet, we rely on a make rule to execute
15559 # `config.status --recheck' to rerun these tests and create the
15560 # libtool script then.
15561 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15562 if test -f "$ltmain_in"; then
15563 test -f Makefile && make "$ltmain"
15564 fi
15565 fi
15566
15567
15568 ac_ext=c
15569 ac_cpp='$CPP $CPPFLAGS'
15570 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15571 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15572 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15573
15574 CC="$lt_save_CC"
15575
15576 else
15577 tagname=""
15578 fi
15579 ;;
15580
15581 GCJ)
15582 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
15583
15584
15585 # Source file extension for Java test sources.
15586 ac_ext=java
15587
15588 # Object file extension for compiled Java test sources.
15589 objext=o
15590 objext_GCJ=$objext
15591
15592 # Code to be used in simple compile tests
15593 lt_simple_compile_test_code="class foo {}\n"
15594
15595 # Code to be used in simple link tests
15596 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
15597
15598 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15599
15600 # If no C compiler was specified, use CC.
15601 LTCC=${LTCC-"$CC"}
15602
15603 # If no C compiler flags were specified, use CFLAGS.
15604 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15605
15606 # Allow CC to be a program name with arguments.
15607 compiler=$CC
15608
15609
15610 # save warnings/boilerplate of simple test code
15611 ac_outfile=conftest.$ac_objext
15612 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
15613 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15614 _lt_compiler_boilerplate=`cat conftest.err`
15615 $rm conftest*
15616
15617 ac_outfile=conftest.$ac_objext
15618 printf "$lt_simple_link_test_code" >conftest.$ac_ext
15619 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15620 _lt_linker_boilerplate=`cat conftest.err`
15621 $rm conftest*
15622
15623
15624 # Allow CC to be a program name with arguments.
15625 lt_save_CC="$CC"
15626 CC=${GCJ-"gcj"}
15627 compiler=$CC
15628 compiler_GCJ=$CC
15629 for cc_temp in $compiler""; do
15630 case $cc_temp in
15631 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15632 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15633 \-*) ;;
15634 *) break;;
15635 esac
15636 done
15637 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15638
15639
15640 # GCJ did not exist at the time GCC didn't implicitly link libc in.
15641 archive_cmds_need_lc_GCJ=no
15642
15643 old_archive_cmds_GCJ=$old_archive_cmds
15644
15645
15646 lt_prog_compiler_no_builtin_flag_GCJ=
15647
15648 if test "$GCC" = yes; then
15649 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
15650
15651
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15653 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15654 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
15655 $as_echo_n "(cached) " >&6
15656 else
15657 lt_cv_prog_compiler_rtti_exceptions=no
15658 ac_outfile=conftest.$ac_objext
15659 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15660 lt_compiler_flag="-fno-rtti -fno-exceptions"
15661 # Insert the option either (1) after the last *FLAGS variable, or
15662 # (2) before a word containing "conftest.", or (3) at the end.
15663 # Note that $ac_compile itself does not contain backslashes and begins
15664 # with a dollar sign (not a hyphen), so the echo should work correctly.
15665 # The option is referenced via a variable to avoid confusing sed.
15666 lt_compile=`echo "$ac_compile" | $SED \
15667 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15668 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15669 -e 's:$: $lt_compiler_flag:'`
15670 (eval echo "\"\$as_me:15670: $lt_compile\"" >&5)
15671 (eval "$lt_compile" 2>conftest.err)
15672 ac_status=$?
15673 cat conftest.err >&5
15674 echo "$as_me:15674: \$? = $ac_status" >&5
15675 if (exit $ac_status) && test -s "$ac_outfile"; then
15676 # The compiler can only warn and ignore the option if not recognized
15677 # So say no if there are warnings other than the usual output.
15678 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15679 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15680 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15681 lt_cv_prog_compiler_rtti_exceptions=yes
15682 fi
15683 fi
15684 $rm conftest*
15685
15686 fi
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15688 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15689
15690 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15691 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
15692 else
15693 :
15694 fi
15695
15696 fi
15697
15698 lt_prog_compiler_wl_GCJ=
15699 lt_prog_compiler_pic_GCJ=
15700 lt_prog_compiler_static_GCJ=
15701
15702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15703 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15704
15705 if test "$GCC" = yes; then
15706 lt_prog_compiler_wl_GCJ='-Wl,'
15707 lt_prog_compiler_static_GCJ='-static'
15708
15709 case $host_os in
15710 aix*)
15711 # All AIX code is PIC.
15712 if test "$host_cpu" = ia64; then
15713 # AIX 5 now supports IA64 processor
15714 lt_prog_compiler_static_GCJ='-Bstatic'
15715 fi
15716 ;;
15717
15718 amigaos*)
15719 # FIXME: we need at least 68020 code to build shared libraries, but
15720 # adding the `-m68020' flag to GCC prevents building anything better,
15721 # like `-m68040'.
15722 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
15723 ;;
15724
15725 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15726 # PIC is the default for these OSes.
15727 ;;
15728
15729 mingw* | pw32* | os2*)
15730 # This hack is so that the source file can tell whether it is being
15731 # built for inclusion in a dll (and should export symbols for example).
15732 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15733 ;;
15734
15735 darwin* | rhapsody*)
15736 # PIC is the default on this platform
15737 # Common symbols not allowed in MH_DYLIB files
15738 lt_prog_compiler_pic_GCJ='-fno-common'
15739 ;;
15740
15741 interix3*)
15742 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15743 # Instead, we relocate shared libraries at runtime.
15744 ;;
15745
15746 msdosdjgpp*)
15747 # Just because we use GCC doesn't mean we suddenly get shared libraries
15748 # on systems that don't support them.
15749 lt_prog_compiler_can_build_shared_GCJ=no
15750 enable_shared=no
15751 ;;
15752
15753 sysv4*MP*)
15754 if test -d /usr/nec; then
15755 lt_prog_compiler_pic_GCJ=-Kconform_pic
15756 fi
15757 ;;
15758
15759 hpux*)
15760 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15761 # not for PA HP-UX.
15762 case $host_cpu in
15763 hppa*64*|ia64*)
15764 # +Z the default
15765 ;;
15766 *)
15767 lt_prog_compiler_pic_GCJ='-fPIC'
15768 ;;
15769 esac
15770 ;;
15771
15772 *)
15773 lt_prog_compiler_pic_GCJ='-fPIC'
15774 ;;
15775 esac
15776 else
15777 # PORTME Check for flag to pass linker flags through the system compiler.
15778 case $host_os in
15779 aix*)
15780 lt_prog_compiler_wl_GCJ='-Wl,'
15781 if test "$host_cpu" = ia64; then
15782 # AIX 5 now supports IA64 processor
15783 lt_prog_compiler_static_GCJ='-Bstatic'
15784 else
15785 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
15786 fi
15787 ;;
15788 darwin*)
15789 # PIC is the default on this platform
15790 # Common symbols not allowed in MH_DYLIB files
15791 case $cc_basename in
15792 xlc*)
15793 lt_prog_compiler_pic_GCJ='-qnocommon'
15794 lt_prog_compiler_wl_GCJ='-Wl,'
15795 ;;
15796 esac
15797 ;;
15798
15799 mingw* | pw32* | os2*)
15800 # This hack is so that the source file can tell whether it is being
15801 # built for inclusion in a dll (and should export symbols for example).
15802 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
15803 ;;
15804
15805 hpux9* | hpux10* | hpux11*)
15806 lt_prog_compiler_wl_GCJ='-Wl,'
15807 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15808 # not for PA HP-UX.
15809 case $host_cpu in
15810 hppa*64*|ia64*)
15811 # +Z the default
15812 ;;
15813 *)
15814 lt_prog_compiler_pic_GCJ='+Z'
15815 ;;
15816 esac
15817 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15818 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
15819 ;;
15820
15821 irix5* | irix6* | nonstopux*)
15822 lt_prog_compiler_wl_GCJ='-Wl,'
15823 # PIC (with -KPIC) is the default.
15824 lt_prog_compiler_static_GCJ='-non_shared'
15825 ;;
15826
15827 newsos6)
15828 lt_prog_compiler_pic_GCJ='-KPIC'
15829 lt_prog_compiler_static_GCJ='-Bstatic'
15830 ;;
15831
15832 linux*)
15833 case $cc_basename in
15834 icc* | ecc*)
15835 lt_prog_compiler_wl_GCJ='-Wl,'
15836 lt_prog_compiler_pic_GCJ='-KPIC'
15837 lt_prog_compiler_static_GCJ='-static'
15838 ;;
15839 pgcc* | pgf77* | pgf90* | pgf95*)
15840 # Portland Group compilers (*not* the Pentium gcc compiler,
15841 # which looks to be a dead project)
15842 lt_prog_compiler_wl_GCJ='-Wl,'
15843 lt_prog_compiler_pic_GCJ='-fpic'
15844 lt_prog_compiler_static_GCJ='-Bstatic'
15845 ;;
15846 ccc*)
15847 lt_prog_compiler_wl_GCJ='-Wl,'
15848 # All Alpha code is PIC.
15849 lt_prog_compiler_static_GCJ='-non_shared'
15850 ;;
15851 esac
15852 ;;
15853
15854 osf3* | osf4* | osf5*)
15855 lt_prog_compiler_wl_GCJ='-Wl,'
15856 # All OSF/1 code is PIC.
15857 lt_prog_compiler_static_GCJ='-non_shared'
15858 ;;
15859
15860 solaris*)
15861 lt_prog_compiler_pic_GCJ='-KPIC'
15862 lt_prog_compiler_static_GCJ='-Bstatic'
15863 case $cc_basename in
15864 f77* | f90* | f95*)
15865 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
15866 *)
15867 lt_prog_compiler_wl_GCJ='-Wl,';;
15868 esac
15869 ;;
15870
15871 sunos4*)
15872 lt_prog_compiler_wl_GCJ='-Qoption ld '
15873 lt_prog_compiler_pic_GCJ='-PIC'
15874 lt_prog_compiler_static_GCJ='-Bstatic'
15875 ;;
15876
15877 sysv4 | sysv4.2uw2* | sysv4.3*)
15878 lt_prog_compiler_wl_GCJ='-Wl,'
15879 lt_prog_compiler_pic_GCJ='-KPIC'
15880 lt_prog_compiler_static_GCJ='-Bstatic'
15881 ;;
15882
15883 sysv4*MP*)
15884 if test -d /usr/nec ;then
15885 lt_prog_compiler_pic_GCJ='-Kconform_pic'
15886 lt_prog_compiler_static_GCJ='-Bstatic'
15887 fi
15888 ;;
15889
15890 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15891 lt_prog_compiler_wl_GCJ='-Wl,'
15892 lt_prog_compiler_pic_GCJ='-KPIC'
15893 lt_prog_compiler_static_GCJ='-Bstatic'
15894 ;;
15895
15896 unicos*)
15897 lt_prog_compiler_wl_GCJ='-Wl,'
15898 lt_prog_compiler_can_build_shared_GCJ=no
15899 ;;
15900
15901 uts4*)
15902 lt_prog_compiler_pic_GCJ='-pic'
15903 lt_prog_compiler_static_GCJ='-Bstatic'
15904 ;;
15905
15906 *)
15907 lt_prog_compiler_can_build_shared_GCJ=no
15908 ;;
15909 esac
15910 fi
15911
15912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
15913 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
15914
15915 #
15916 # Check to make sure the PIC flag actually works.
15917 #
15918 if test -n "$lt_prog_compiler_pic_GCJ"; then
15919
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
15921 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
15922 if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
15923 $as_echo_n "(cached) " >&6
15924 else
15925 lt_prog_compiler_pic_works_GCJ=no
15926 ac_outfile=conftest.$ac_objext
15927 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15928 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
15929 # Insert the option either (1) after the last *FLAGS variable, or
15930 # (2) before a word containing "conftest.", or (3) at the end.
15931 # Note that $ac_compile itself does not contain backslashes and begins
15932 # with a dollar sign (not a hyphen), so the echo should work correctly.
15933 # The option is referenced via a variable to avoid confusing sed.
15934 lt_compile=`echo "$ac_compile" | $SED \
15935 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15936 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15937 -e 's:$: $lt_compiler_flag:'`
15938 (eval echo "\"\$as_me:15938: $lt_compile\"" >&5)
15939 (eval "$lt_compile" 2>conftest.err)
15940 ac_status=$?
15941 cat conftest.err >&5
15942 echo "$as_me:15942: \$? = $ac_status" >&5
15943 if (exit $ac_status) && test -s "$ac_outfile"; then
15944 # The compiler can only warn and ignore the option if not recognized
15945 # So say no if there are warnings other than the usual output.
15946 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15947 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15948 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15949 lt_prog_compiler_pic_works_GCJ=yes
15950 fi
15951 fi
15952 $rm conftest*
15953
15954 fi
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
15956 $as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
15957
15958 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
15959 case $lt_prog_compiler_pic_GCJ in
15960 "" | " "*) ;;
15961 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
15962 esac
15963 else
15964 lt_prog_compiler_pic_GCJ=
15965 lt_prog_compiler_can_build_shared_GCJ=no
15966 fi
15967
15968 fi
15969 case $host_os in
15970 # For platforms which do not support PIC, -DPIC is meaningless:
15971 *djgpp*)
15972 lt_prog_compiler_pic_GCJ=
15973 ;;
15974 *)
15975 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
15976 ;;
15977 esac
15978
15979 #
15980 # Check to make sure the static flag actually works.
15981 #
15982 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15984 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15985 if ${lt_prog_compiler_static_works_GCJ+:} false; then :
15986 $as_echo_n "(cached) " >&6
15987 else
15988 lt_prog_compiler_static_works_GCJ=no
15989 save_LDFLAGS="$LDFLAGS"
15990 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15991 printf "$lt_simple_link_test_code" > conftest.$ac_ext
15992 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15993 # The linker can only warn and ignore the option if not recognized
15994 # So say no if there are warnings
15995 if test -s conftest.err; then
15996 # Append any errors to the config.log.
15997 cat conftest.err 1>&5
15998 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15999 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16000 if diff conftest.exp conftest.er2 >/dev/null; then
16001 lt_prog_compiler_static_works_GCJ=yes
16002 fi
16003 else
16004 lt_prog_compiler_static_works_GCJ=yes
16005 fi
16006 fi
16007 $rm conftest*
16008 LDFLAGS="$save_LDFLAGS"
16009
16010 fi
16011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16012 $as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16013
16014 if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16015 :
16016 else
16017 lt_prog_compiler_static_GCJ=
16018 fi
16019
16020
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16022 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16023 if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16024 $as_echo_n "(cached) " >&6
16025 else
16026 lt_cv_prog_compiler_c_o_GCJ=no
16027 $rm -r conftest 2>/dev/null
16028 mkdir conftest
16029 cd conftest
16030 mkdir out
16031 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16032
16033 lt_compiler_flag="-o out/conftest2.$ac_objext"
16034 # Insert the option either (1) after the last *FLAGS variable, or
16035 # (2) before a word containing "conftest.", or (3) at the end.
16036 # Note that $ac_compile itself does not contain backslashes and begins
16037 # with a dollar sign (not a hyphen), so the echo should work correctly.
16038 lt_compile=`echo "$ac_compile" | $SED \
16039 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16040 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16041 -e 's:$: $lt_compiler_flag:'`
16042 (eval echo "\"\$as_me:16042: $lt_compile\"" >&5)
16043 (eval "$lt_compile" 2>out/conftest.err)
16044 ac_status=$?
16045 cat out/conftest.err >&5
16046 echo "$as_me:16046: \$? = $ac_status" >&5
16047 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16048 then
16049 # The compiler can only warn and ignore the option if not recognized
16050 # So say no if there are warnings
16051 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16052 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16053 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16054 lt_cv_prog_compiler_c_o_GCJ=yes
16055 fi
16056 fi
16057 chmod u+w . 2>&5
16058 $rm conftest*
16059 # SGI C++ compiler will create directory out/ii_files/ for
16060 # template instantiation
16061 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16062 $rm out/* && rmdir out
16063 cd ..
16064 rmdir conftest
16065 $rm conftest*
16066
16067 fi
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16069 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16070
16071
16072 hard_links="nottested"
16073 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16074 # do not overwrite the value of need_locks provided by the user
16075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16076 $as_echo_n "checking if we can lock with hard links... " >&6; }
16077 hard_links=yes
16078 $rm conftest*
16079 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16080 touch conftest.a
16081 ln conftest.a conftest.b 2>&5 || hard_links=no
16082 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16084 $as_echo "$hard_links" >&6; }
16085 if test "$hard_links" = no; then
16086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16087 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16088 need_locks=warn
16089 fi
16090 else
16091 need_locks=no
16092 fi
16093
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16095 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16096
16097 runpath_var=
16098 allow_undefined_flag_GCJ=
16099 enable_shared_with_static_runtimes_GCJ=no
16100 archive_cmds_GCJ=
16101 archive_expsym_cmds_GCJ=
16102 old_archive_From_new_cmds_GCJ=
16103 old_archive_from_expsyms_cmds_GCJ=
16104 export_dynamic_flag_spec_GCJ=
16105 whole_archive_flag_spec_GCJ=
16106 thread_safe_flag_spec_GCJ=
16107 hardcode_libdir_flag_spec_GCJ=
16108 hardcode_libdir_flag_spec_ld_GCJ=
16109 hardcode_libdir_separator_GCJ=
16110 hardcode_direct_GCJ=no
16111 hardcode_minus_L_GCJ=no
16112 hardcode_shlibpath_var_GCJ=unsupported
16113 link_all_deplibs_GCJ=unknown
16114 hardcode_automatic_GCJ=no
16115 module_cmds_GCJ=
16116 module_expsym_cmds_GCJ=
16117 always_export_symbols_GCJ=no
16118 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16119 # include_expsyms should be a list of space-separated symbols to be *always*
16120 # included in the symbol list
16121 include_expsyms_GCJ=
16122 # exclude_expsyms can be an extended regexp of symbols to exclude
16123 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16124 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16125 # as well as any symbol that contains `d'.
16126 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16127 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16128 # platforms (ab)use it in PIC code, but their linkers get confused if
16129 # the symbol is explicitly referenced. Since portable code cannot
16130 # rely on this symbol name, it's probably fine to never include it in
16131 # preloaded symbol tables.
16132 extract_expsyms_cmds=
16133 # Just being paranoid about ensuring that cc_basename is set.
16134 for cc_temp in $compiler""; do
16135 case $cc_temp in
16136 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16137 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16138 \-*) ;;
16139 *) break;;
16140 esac
16141 done
16142 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16143
16144 case $host_os in
16145 cygwin* | mingw* | pw32*)
16146 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16147 # When not using gcc, we currently assume that we are using
16148 # Microsoft Visual C++.
16149 if test "$GCC" != yes; then
16150 with_gnu_ld=no
16151 fi
16152 ;;
16153 interix*)
16154 # we just hope/assume this is gcc and not c89 (= MSVC++)
16155 with_gnu_ld=yes
16156 ;;
16157 openbsd*)
16158 with_gnu_ld=no
16159 ;;
16160 esac
16161
16162 ld_shlibs_GCJ=yes
16163 if test "$with_gnu_ld" = yes; then
16164 # If archive_cmds runs LD, not CC, wlarc should be empty
16165 wlarc='${wl}'
16166
16167 # Set some defaults for GNU ld with shared library support. These
16168 # are reset later if shared libraries are not supported. Putting them
16169 # here allows them to be overridden if necessary.
16170 runpath_var=LD_RUN_PATH
16171 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16172 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16173 # ancient GNU ld didn't support --whole-archive et. al.
16174 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16175 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16176 else
16177 whole_archive_flag_spec_GCJ=
16178 fi
16179 supports_anon_versioning=no
16180 case `$LD -v 2>/dev/null` in
16181 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16182 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16183 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16184 *\ 2.11.*) ;; # other 2.11 versions
16185 *) supports_anon_versioning=yes ;;
16186 esac
16187
16188 # See if GNU ld supports shared libraries.
16189 case $host_os in
16190 aix3* | aix4* | aix5*)
16191 # On AIX/PPC, the GNU linker is very broken
16192 if test "$host_cpu" != ia64; then
16193 ld_shlibs_GCJ=no
16194 cat <<EOF 1>&2
16195
16196 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16197 *** to be unable to reliably create shared libraries on AIX.
16198 *** Therefore, libtool is disabling shared libraries support. If you
16199 *** really care for shared libraries, you may want to modify your PATH
16200 *** so that a non-GNU linker is found, and then restart.
16201
16202 EOF
16203 fi
16204 ;;
16205
16206 amigaos*)
16207 archive_cmds_GCJ='$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)'
16208 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16209 hardcode_minus_L_GCJ=yes
16210
16211 # Samuel A. Falvo II <[email protected]> reports
16212 # that the semantics of dynamic libraries on AmigaOS, at least up
16213 # to version 4, is to share data among multiple programs linked
16214 # with the same dynamic library. Since this doesn't match the
16215 # behavior of shared libraries on other platforms, we can't use
16216 # them.
16217 ld_shlibs_GCJ=no
16218 ;;
16219
16220 beos*)
16221 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16222 allow_undefined_flag_GCJ=unsupported
16223 # Joseph Beckenbach <[email protected]> says some releases of gcc
16224 # support --undefined. This deserves some investigation. FIXME
16225 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16226 else
16227 ld_shlibs_GCJ=no
16228 fi
16229 ;;
16230
16231 cygwin* | mingw* | pw32*)
16232 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16233 # as there is no search path for DLLs.
16234 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16235 allow_undefined_flag_GCJ=unsupported
16236 always_export_symbols_GCJ=no
16237 enable_shared_with_static_runtimes_GCJ=yes
16238 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16239
16240 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16241 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16242 # If the export-symbols file already is a .def file (1st line
16243 # is EXPORTS), use it as is; otherwise, prepend...
16244 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16245 cp $export_symbols $output_objdir/$soname.def;
16246 else
16247 echo EXPORTS > $output_objdir/$soname.def;
16248 cat $export_symbols >> $output_objdir/$soname.def;
16249 fi~
16250 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16251 else
16252 ld_shlibs_GCJ=no
16253 fi
16254 ;;
16255
16256 interix3*)
16257 hardcode_direct_GCJ=no
16258 hardcode_shlibpath_var_GCJ=no
16259 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16260 export_dynamic_flag_spec_GCJ='${wl}-E'
16261 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16262 # Instead, shared libraries are loaded at an image base (0x10000000 by
16263 # default) and relocated if they conflict, which is a slow very memory
16264 # consuming and fragmenting process. To avoid this, we pick a random,
16265 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16266 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16267 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16268 archive_expsym_cmds_GCJ='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'
16269 ;;
16270
16271 linux*)
16272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16273 tmp_addflag=
16274 case $cc_basename,$host_cpu in
16275 pgcc*) # Portland Group C compiler
16276 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16277 tmp_addflag=' $pic_flag'
16278 ;;
16279 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16280 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16281 tmp_addflag=' $pic_flag -Mnomain' ;;
16282 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16283 tmp_addflag=' -i_dynamic' ;;
16284 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16285 tmp_addflag=' -i_dynamic -nofor_main' ;;
16286 ifc* | ifort*) # Intel Fortran compiler
16287 tmp_addflag=' -nofor_main' ;;
16288 esac
16289 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16290
16291 if test $supports_anon_versioning = yes; then
16292 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16293 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16294 $echo "local: *; };" >> $output_objdir/$libname.ver~
16295 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16296 fi
16297 else
16298 ld_shlibs_GCJ=no
16299 fi
16300 ;;
16301
16302 netbsd*)
16303 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16304 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16305 wlarc=
16306 else
16307 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16308 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16309 fi
16310 ;;
16311
16312 solaris*)
16313 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16314 ld_shlibs_GCJ=no
16315 cat <<EOF 1>&2
16316
16317 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16318 *** create shared libraries on Solaris systems. Therefore, libtool
16319 *** is disabling shared libraries support. We urge you to upgrade GNU
16320 *** binutils to release 2.9.1 or newer. Another option is to modify
16321 *** your PATH or compiler configuration so that the native linker is
16322 *** used, and then restart.
16323
16324 EOF
16325 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16326 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16327 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16328 else
16329 ld_shlibs_GCJ=no
16330 fi
16331 ;;
16332
16333 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16334 case `$LD -v 2>&1` in
16335 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16336 ld_shlibs_GCJ=no
16337 cat <<_LT_EOF 1>&2
16338
16339 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16340 *** reliably create shared libraries on SCO systems. Therefore, libtool
16341 *** is disabling shared libraries support. We urge you to upgrade GNU
16342 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16343 *** your PATH or compiler configuration so that the native linker is
16344 *** used, and then restart.
16345
16346 _LT_EOF
16347 ;;
16348 *)
16349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16350 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16351 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16352 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16353 else
16354 ld_shlibs_GCJ=no
16355 fi
16356 ;;
16357 esac
16358 ;;
16359
16360 sunos4*)
16361 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16362 wlarc=
16363 hardcode_direct_GCJ=yes
16364 hardcode_shlibpath_var_GCJ=no
16365 ;;
16366
16367 *)
16368 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16369 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16370 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16371 else
16372 ld_shlibs_GCJ=no
16373 fi
16374 ;;
16375 esac
16376
16377 if test "$ld_shlibs_GCJ" = no; then
16378 runpath_var=
16379 hardcode_libdir_flag_spec_GCJ=
16380 export_dynamic_flag_spec_GCJ=
16381 whole_archive_flag_spec_GCJ=
16382 fi
16383 else
16384 # PORTME fill in a description of your system's linker (not GNU ld)
16385 case $host_os in
16386 aix3*)
16387 allow_undefined_flag_GCJ=unsupported
16388 always_export_symbols_GCJ=yes
16389 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16390 # Note: this linker hardcodes the directories in LIBPATH if there
16391 # are no directories specified by -L.
16392 hardcode_minus_L_GCJ=yes
16393 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16394 # Neither direct hardcoding nor static linking is supported with a
16395 # broken collect2.
16396 hardcode_direct_GCJ=unsupported
16397 fi
16398 ;;
16399
16400 aix4* | aix5*)
16401 if test "$host_cpu" = ia64; then
16402 # On IA64, the linker does run time linking by default, so we don't
16403 # have to do anything special.
16404 aix_use_runtimelinking=no
16405 exp_sym_flag='-Bexport'
16406 no_entry_flag=""
16407 else
16408 # If we're using GNU nm, then we don't want the "-C" option.
16409 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16410 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16411 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16412 else
16413 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16414 fi
16415 aix_use_runtimelinking=no
16416
16417 # Test if we are trying to use run time linking or normal
16418 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16419 # need to do runtime linking.
16420 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
16421 for ld_flag in $LDFLAGS; do
16422 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16423 aix_use_runtimelinking=yes
16424 break
16425 fi
16426 done
16427 ;;
16428 esac
16429
16430 exp_sym_flag='-bexport'
16431 no_entry_flag='-bnoentry'
16432 fi
16433
16434 # When large executables or shared objects are built, AIX ld can
16435 # have problems creating the table of contents. If linking a library
16436 # or program results in "error TOC overflow" add -mminimal-toc to
16437 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16438 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16439
16440 archive_cmds_GCJ=''
16441 hardcode_direct_GCJ=yes
16442 hardcode_libdir_separator_GCJ=':'
16443 link_all_deplibs_GCJ=yes
16444
16445 if test "$GCC" = yes; then
16446 case $host_os in aix4.[012]|aix4.[012].*)
16447 # We only want to do this on AIX 4.2 and lower, the check
16448 # below for broken collect2 doesn't work under 4.3+
16449 collect2name=`${CC} -print-prog-name=collect2`
16450 if test -f "$collect2name" && \
16451 strings "$collect2name" | grep resolve_lib_name >/dev/null
16452 then
16453 # We have reworked collect2
16454 hardcode_direct_GCJ=yes
16455 else
16456 # We have old collect2
16457 hardcode_direct_GCJ=unsupported
16458 # It fails to find uninstalled libraries when the uninstalled
16459 # path is not listed in the libpath. Setting hardcode_minus_L
16460 # to unsupported forces relinking
16461 hardcode_minus_L_GCJ=yes
16462 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16463 hardcode_libdir_separator_GCJ=
16464 fi
16465 ;;
16466 esac
16467 shared_flag='-shared'
16468 if test "$aix_use_runtimelinking" = yes; then
16469 shared_flag="$shared_flag "'${wl}-G'
16470 fi
16471 else
16472 # not using gcc
16473 if test "$host_cpu" = ia64; then
16474 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16475 # chokes on -Wl,-G. The following line is correct:
16476 shared_flag='-G'
16477 else
16478 if test "$aix_use_runtimelinking" = yes; then
16479 shared_flag='${wl}-G'
16480 else
16481 shared_flag='${wl}-bM:SRE'
16482 fi
16483 fi
16484 fi
16485
16486 # It seems that -bexpall does not export symbols beginning with
16487 # underscore (_), so it is better to generate a list of symbols to export.
16488 always_export_symbols_GCJ=yes
16489 if test "$aix_use_runtimelinking" = yes; then
16490 # Warning - without using the other runtime loading flags (-brtl),
16491 # -berok will link without error, but may produce a broken library.
16492 allow_undefined_flag_GCJ='-berok'
16493 # Determine the default libpath from the value encoded in an empty executable.
16494 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16495 /* end confdefs.h. */
16496
16497 int
16498 main ()
16499 {
16500
16501 ;
16502 return 0;
16503 }
16504 _ACEOF
16505 if ac_fn_c_try_link "$LINENO"; then :
16506
16507 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16508 }'`
16509 # Check for a 64-bit object if we didn't find anything.
16510 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16511 }'`; fi
16512 fi
16513 rm -f core conftest.err conftest.$ac_objext \
16514 conftest$ac_exeext conftest.$ac_ext
16515 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16516
16517 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16518 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16519 else
16520 if test "$host_cpu" = ia64; then
16521 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
16522 allow_undefined_flag_GCJ="-z nodefs"
16523 archive_expsym_cmds_GCJ="\$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"
16524 else
16525 # Determine the default libpath from the value encoded in an empty executable.
16526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16527 /* end confdefs.h. */
16528
16529 int
16530 main ()
16531 {
16532
16533 ;
16534 return 0;
16535 }
16536 _ACEOF
16537 if ac_fn_c_try_link "$LINENO"; then :
16538
16539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16540 }'`
16541 # Check for a 64-bit object if we didn't find anything.
16542 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
16543 }'`; fi
16544 fi
16545 rm -f core conftest.err conftest.$ac_objext \
16546 conftest$ac_exeext conftest.$ac_ext
16547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16548
16549 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
16550 # Warning - without using the other run time loading flags,
16551 # -berok will link without error, but may produce a broken library.
16552 no_undefined_flag_GCJ=' ${wl}-bernotok'
16553 allow_undefined_flag_GCJ=' ${wl}-berok'
16554 # Exported symbols can be pulled into shared objects from archives
16555 whole_archive_flag_spec_GCJ='$convenience'
16556 archive_cmds_need_lc_GCJ=yes
16557 # This is similar to how AIX traditionally builds its shared libraries.
16558 archive_expsym_cmds_GCJ="\$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'
16559 fi
16560 fi
16561 ;;
16562
16563 amigaos*)
16564 archive_cmds_GCJ='$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)'
16565 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16566 hardcode_minus_L_GCJ=yes
16567 # see comment about different semantics on the GNU ld section
16568 ld_shlibs_GCJ=no
16569 ;;
16570
16571 bsdi[45]*)
16572 export_dynamic_flag_spec_GCJ=-rdynamic
16573 ;;
16574
16575 cygwin* | mingw* | pw32*)
16576 # When not using gcc, we currently assume that we are using
16577 # Microsoft Visual C++.
16578 # hardcode_libdir_flag_spec is actually meaningless, as there is
16579 # no search path for DLLs.
16580 hardcode_libdir_flag_spec_GCJ=' '
16581 allow_undefined_flag_GCJ=unsupported
16582 # Tell ltmain to make .lib files, not .a files.
16583 libext=lib
16584 # Tell ltmain to make .dll files, not .so files.
16585 shrext_cmds=".dll"
16586 # FIXME: Setting linknames here is a bad hack.
16587 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
16588 # The linker will automatically build a .lib file if we build a DLL.
16589 old_archive_From_new_cmds_GCJ='true'
16590 # FIXME: Should let the user specify the lib program.
16591 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
16592 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
16593 enable_shared_with_static_runtimes_GCJ=yes
16594 ;;
16595
16596 darwin* | rhapsody*)
16597 case $host_os in
16598 rhapsody* | darwin1.[012])
16599 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
16600 ;;
16601 *) # Darwin 1.3 on
16602 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16603 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16604 else
16605 case ${MACOSX_DEPLOYMENT_TARGET} in
16606 10.[012])
16607 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16608 ;;
16609 10.*)
16610 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
16611 ;;
16612 esac
16613 fi
16614 ;;
16615 esac
16616 archive_cmds_need_lc_GCJ=no
16617 hardcode_direct_GCJ=no
16618 hardcode_automatic_GCJ=yes
16619 hardcode_shlibpath_var_GCJ=unsupported
16620 whole_archive_flag_spec_GCJ=''
16621 link_all_deplibs_GCJ=yes
16622 if test "$GCC" = yes ; then
16623 output_verbose_link_cmd='echo'
16624 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16625 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16626 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16627 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16628 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16629 else
16630 case $cc_basename in
16631 xlc*)
16632 output_verbose_link_cmd='echo'
16633 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
16634 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16635 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16636 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16637 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16638 ;;
16639 *)
16640 ld_shlibs_GCJ=no
16641 ;;
16642 esac
16643 fi
16644 ;;
16645
16646 dgux*)
16647 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16648 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16649 hardcode_shlibpath_var_GCJ=no
16650 ;;
16651
16652 freebsd1*)
16653 ld_shlibs_GCJ=no
16654 ;;
16655
16656 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16657 # support. Future versions do this automatically, but an explicit c++rt0.o
16658 # does not break anything, and helps significantly (at the cost of a little
16659 # extra space).
16660 freebsd2.2*)
16661 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16662 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16663 hardcode_direct_GCJ=yes
16664 hardcode_shlibpath_var_GCJ=no
16665 ;;
16666
16667 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16668 freebsd2*)
16669 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16670 hardcode_direct_GCJ=yes
16671 hardcode_minus_L_GCJ=yes
16672 hardcode_shlibpath_var_GCJ=no
16673 ;;
16674
16675 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16676 freebsd* | kfreebsd*-gnu | dragonfly*)
16677 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16678 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16679 hardcode_direct_GCJ=yes
16680 hardcode_shlibpath_var_GCJ=no
16681 ;;
16682
16683 hpux9*)
16684 if test "$GCC" = yes; then
16685 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
16686 else
16687 archive_cmds_GCJ='$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'
16688 fi
16689 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16690 hardcode_libdir_separator_GCJ=:
16691 hardcode_direct_GCJ=yes
16692
16693 # hardcode_minus_L: Not really in the search PATH,
16694 # but as the default location of the library.
16695 hardcode_minus_L_GCJ=yes
16696 export_dynamic_flag_spec_GCJ='${wl}-E'
16697 ;;
16698
16699 hpux10*)
16700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16701 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16702 else
16703 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16704 fi
16705 if test "$with_gnu_ld" = no; then
16706 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16707 hardcode_libdir_separator_GCJ=:
16708
16709 hardcode_direct_GCJ=yes
16710 export_dynamic_flag_spec_GCJ='${wl}-E'
16711
16712 # hardcode_minus_L: Not really in the search PATH,
16713 # but as the default location of the library.
16714 hardcode_minus_L_GCJ=yes
16715 fi
16716 ;;
16717
16718 hpux11*)
16719 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16720 case $host_cpu in
16721 hppa*64*)
16722 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 ;;
16724 ia64*)
16725 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16726 ;;
16727 *)
16728 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16729 ;;
16730 esac
16731 else
16732 case $host_cpu in
16733 hppa*64*)
16734 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16735 ;;
16736 ia64*)
16737 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16738 ;;
16739 *)
16740 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16741 ;;
16742 esac
16743 fi
16744 if test "$with_gnu_ld" = no; then
16745 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
16746 hardcode_libdir_separator_GCJ=:
16747
16748 case $host_cpu in
16749 hppa*64*|ia64*)
16750 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
16751 hardcode_direct_GCJ=no
16752 hardcode_shlibpath_var_GCJ=no
16753 ;;
16754 *)
16755 hardcode_direct_GCJ=yes
16756 export_dynamic_flag_spec_GCJ='${wl}-E'
16757
16758 # hardcode_minus_L: Not really in the search PATH,
16759 # but as the default location of the library.
16760 hardcode_minus_L_GCJ=yes
16761 ;;
16762 esac
16763 fi
16764 ;;
16765
16766 irix5* | irix6* | nonstopux*)
16767 if test "$GCC" = yes; then
16768 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16769 else
16770 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16771 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
16772 fi
16773 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16774 hardcode_libdir_separator_GCJ=:
16775 link_all_deplibs_GCJ=yes
16776 ;;
16777
16778 netbsd*)
16779 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16780 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16781 else
16782 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16783 fi
16784 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16785 hardcode_direct_GCJ=yes
16786 hardcode_shlibpath_var_GCJ=no
16787 ;;
16788
16789 newsos6)
16790 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16791 hardcode_direct_GCJ=yes
16792 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16793 hardcode_libdir_separator_GCJ=:
16794 hardcode_shlibpath_var_GCJ=no
16795 ;;
16796
16797 openbsd*)
16798 hardcode_direct_GCJ=yes
16799 hardcode_shlibpath_var_GCJ=no
16800 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16801 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16802 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16803 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16804 export_dynamic_flag_spec_GCJ='${wl}-E'
16805 else
16806 case $host_os in
16807 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16808 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16810 ;;
16811 *)
16812 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16813 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16814 ;;
16815 esac
16816 fi
16817 ;;
16818
16819 os2*)
16820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821 hardcode_minus_L_GCJ=yes
16822 allow_undefined_flag_GCJ=unsupported
16823 archive_cmds_GCJ='$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'
16824 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16825 ;;
16826
16827 osf3*)
16828 if test "$GCC" = yes; then
16829 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16830 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16831 else
16832 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16833 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16834 fi
16835 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16836 hardcode_libdir_separator_GCJ=:
16837 ;;
16838
16839 osf4* | osf5*) # as osf3* with the addition of -msym flag
16840 if test "$GCC" = yes; then
16841 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
16842 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16843 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
16844 else
16845 allow_undefined_flag_GCJ=' -expect_unresolved \*'
16846 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16847 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
16848 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
16849
16850 # Both c and cxx compiler support -rpath directly
16851 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
16852 fi
16853 hardcode_libdir_separator_GCJ=:
16854 ;;
16855
16856 solaris*)
16857 no_undefined_flag_GCJ=' -z text'
16858 if test "$GCC" = yes; then
16859 wlarc='${wl}'
16860 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16861 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16863 else
16864 wlarc=''
16865 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16866 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16867 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16868 fi
16869 hardcode_libdir_flag_spec_GCJ='-R$libdir'
16870 hardcode_shlibpath_var_GCJ=no
16871 case $host_os in
16872 solaris2.[0-5] | solaris2.[0-5].*) ;;
16873 *)
16874 # The compiler driver will combine linker options so we
16875 # cannot just pass the convience library names through
16876 # without $wl, iff we do not link with $LD.
16877 # Luckily, gcc supports the same syntax we need for Sun Studio.
16878 # Supported since Solaris 2.6 (maybe 2.5.1?)
16879 case $wlarc in
16880 '')
16881 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
16882 *)
16883 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;;
16884 esac ;;
16885 esac
16886 link_all_deplibs_GCJ=yes
16887 ;;
16888
16889 sunos4*)
16890 if test "x$host_vendor" = xsequent; then
16891 # Use $CC to link under sequent, because it throws in some extra .o
16892 # files that make .init and .fini sections work.
16893 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16894 else
16895 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16896 fi
16897 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16898 hardcode_direct_GCJ=yes
16899 hardcode_minus_L_GCJ=yes
16900 hardcode_shlibpath_var_GCJ=no
16901 ;;
16902
16903 sysv4)
16904 case $host_vendor in
16905 sni)
16906 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16907 hardcode_direct_GCJ=yes # is this really true???
16908 ;;
16909 siemens)
16910 ## LD is ld it makes a PLAMLIB
16911 ## CC just makes a GrossModule.
16912 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16913 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
16914 hardcode_direct_GCJ=no
16915 ;;
16916 motorola)
16917 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16918 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
16919 ;;
16920 esac
16921 runpath_var='LD_RUN_PATH'
16922 hardcode_shlibpath_var_GCJ=no
16923 ;;
16924
16925 sysv4.3*)
16926 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16927 hardcode_shlibpath_var_GCJ=no
16928 export_dynamic_flag_spec_GCJ='-Bexport'
16929 ;;
16930
16931 sysv4*MP*)
16932 if test -d /usr/nec; then
16933 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16934 hardcode_shlibpath_var_GCJ=no
16935 runpath_var=LD_RUN_PATH
16936 hardcode_runpath_var=yes
16937 ld_shlibs_GCJ=yes
16938 fi
16939 ;;
16940
16941 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
16942 no_undefined_flag_GCJ='${wl}-z,text'
16943 archive_cmds_need_lc_GCJ=no
16944 hardcode_shlibpath_var_GCJ=no
16945 runpath_var='LD_RUN_PATH'
16946
16947 if test "$GCC" = yes; then
16948 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16949 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16950 else
16951 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16952 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16953 fi
16954 ;;
16955
16956 sysv5* | sco3.2v5* | sco5v6*)
16957 # Note: We can NOT use -z defs as we might desire, because we do not
16958 # link with -lc, and that would cause any symbols used from libc to
16959 # always be unresolved, which means just about no library would
16960 # ever link correctly. If we're not using GNU ld we use -z text
16961 # though, which does catch some bad symbols but isn't as heavy-handed
16962 # as -z defs.
16963 no_undefined_flag_GCJ='${wl}-z,text'
16964 allow_undefined_flag_GCJ='${wl}-z,nodefs'
16965 archive_cmds_need_lc_GCJ=no
16966 hardcode_shlibpath_var_GCJ=no
16967 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16968 hardcode_libdir_separator_GCJ=':'
16969 link_all_deplibs_GCJ=yes
16970 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
16971 runpath_var='LD_RUN_PATH'
16972
16973 if test "$GCC" = yes; then
16974 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 else
16977 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16978 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16979 fi
16980 ;;
16981
16982 uts4*)
16983 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16984 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16985 hardcode_shlibpath_var_GCJ=no
16986 ;;
16987
16988 *)
16989 ld_shlibs_GCJ=no
16990 ;;
16991 esac
16992 fi
16993
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
16995 $as_echo "$ld_shlibs_GCJ" >&6; }
16996 test "$ld_shlibs_GCJ" = no && can_build_shared=no
16997
16998 #
16999 # Do we need to explicitly link libc?
17000 #
17001 case "x$archive_cmds_need_lc_GCJ" in
17002 x|xyes)
17003 # Assume -lc should be added
17004 archive_cmds_need_lc_GCJ=yes
17005
17006 if test "$enable_shared" = yes && test "$GCC" = yes; then
17007 case $archive_cmds_GCJ in
17008 *'~'*)
17009 # FIXME: we may have to deal with multi-command sequences.
17010 ;;
17011 '$CC '*)
17012 # Test whether the compiler implicitly links with -lc since on some
17013 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17014 # to ld, don't add -lc before -lgcc.
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17016 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17017 $rm conftest*
17018 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17019
17020 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17021 (eval $ac_compile) 2>&5
17022 ac_status=$?
17023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17024 test $ac_status = 0; } 2>conftest.err; then
17025 soname=conftest
17026 lib=conftest
17027 libobjs=conftest.$ac_objext
17028 deplibs=
17029 wl=$lt_prog_compiler_wl_GCJ
17030 pic_flag=$lt_prog_compiler_pic_GCJ
17031 compiler_flags=-v
17032 linker_flags=-v
17033 verstring=
17034 output_objdir=.
17035 libname=conftest
17036 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17037 allow_undefined_flag_GCJ=
17038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17039 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17040 ac_status=$?
17041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17042 test $ac_status = 0; }
17043 then
17044 archive_cmds_need_lc_GCJ=no
17045 else
17046 archive_cmds_need_lc_GCJ=yes
17047 fi
17048 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17049 else
17050 cat conftest.err 1>&5
17051 fi
17052 $rm conftest*
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17054 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17055 ;;
17056 esac
17057 fi
17058 ;;
17059 esac
17060
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17062 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17063 library_names_spec=
17064 libname_spec='lib$name'
17065 soname_spec=
17066 shrext_cmds=".so"
17067 postinstall_cmds=
17068 postuninstall_cmds=
17069 finish_cmds=
17070 finish_eval=
17071 shlibpath_var=
17072 shlibpath_overrides_runpath=unknown
17073 version_type=none
17074 dynamic_linker="$host_os ld.so"
17075 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17076 if test "$GCC" = yes; then
17077 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17078 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17079 # if the path contains ";" then we assume it to be the separator
17080 # otherwise default to the standard path separator (i.e. ":") - it is
17081 # assumed that no part of a normal pathname contains ";" but that should
17082 # okay in the real world where ";" in dirpaths is itself problematic.
17083 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17084 else
17085 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17086 fi
17087 else
17088 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17089 fi
17090 need_lib_prefix=unknown
17091 hardcode_into_libs=no
17092
17093 # when you set need_version to no, make sure it does not cause -set_version
17094 # flags to be left without arguments
17095 need_version=unknown
17096
17097 case $host_os in
17098 aix3*)
17099 version_type=linux
17100 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17101 shlibpath_var=LIBPATH
17102
17103 # AIX 3 has no versioning support, so we append a major version to the name.
17104 soname_spec='${libname}${release}${shared_ext}$major'
17105 ;;
17106
17107 aix4* | aix5*)
17108 version_type=linux
17109 need_lib_prefix=no
17110 need_version=no
17111 hardcode_into_libs=yes
17112 if test "$host_cpu" = ia64; then
17113 # AIX 5 supports IA64
17114 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17115 shlibpath_var=LD_LIBRARY_PATH
17116 else
17117 # With GCC up to 2.95.x, collect2 would create an import file
17118 # for dependence libraries. The import file would start with
17119 # the line `#! .'. This would cause the generated library to
17120 # depend on `.', always an invalid library. This was fixed in
17121 # development snapshots of GCC prior to 3.0.
17122 case $host_os in
17123 aix4 | aix4.[01] | aix4.[01].*)
17124 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17125 echo ' yes '
17126 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17127 :
17128 else
17129 can_build_shared=no
17130 fi
17131 ;;
17132 esac
17133 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17134 # soname into executable. Probably we can add versioning support to
17135 # collect2, so additional links can be useful in future.
17136 if test "$aix_use_runtimelinking" = yes; then
17137 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17138 # instead of lib<name>.a to let people know that these are not
17139 # typical AIX shared libraries.
17140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17141 else
17142 # We preserve .a as extension for shared libraries through AIX4.2
17143 # and later when we are not doing run time linking.
17144 library_names_spec='${libname}${release}.a $libname.a'
17145 soname_spec='${libname}${release}${shared_ext}$major'
17146 fi
17147 shlibpath_var=LIBPATH
17148 fi
17149 ;;
17150
17151 amigaos*)
17152 library_names_spec='$libname.ixlibrary $libname.a'
17153 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17154 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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'
17155 ;;
17156
17157 beos*)
17158 library_names_spec='${libname}${shared_ext}'
17159 dynamic_linker="$host_os ld.so"
17160 shlibpath_var=LIBRARY_PATH
17161 ;;
17162
17163 bsdi[45]*)
17164 version_type=linux
17165 need_version=no
17166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17167 soname_spec='${libname}${release}${shared_ext}$major'
17168 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17169 shlibpath_var=LD_LIBRARY_PATH
17170 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17171 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17172 # the default ld.so.conf also contains /usr/contrib/lib and
17173 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17174 # libtool to hard-code these into programs
17175 ;;
17176
17177 cygwin* | mingw* | pw32*)
17178 version_type=windows
17179 shrext_cmds=".dll"
17180 need_version=no
17181 need_lib_prefix=no
17182
17183 case $GCC,$host_os in
17184 yes,cygwin* | yes,mingw* | yes,pw32*)
17185 library_names_spec='$libname.dll.a'
17186 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17187 postinstall_cmds='base_file=`basename \${file}`~
17188 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17189 dldir=$destdir/`dirname \$dlpath`~
17190 test -d \$dldir || mkdir -p \$dldir~
17191 $install_prog $dir/$dlname \$dldir/$dlname~
17192 chmod a+x \$dldir/$dlname'
17193 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17194 dlpath=$dir/\$dldll~
17195 $rm \$dlpath'
17196 shlibpath_overrides_runpath=yes
17197
17198 case $host_os in
17199 cygwin*)
17200 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17201 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17202 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17203 ;;
17204 mingw*)
17205 # MinGW DLLs use traditional 'lib' prefix
17206 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17207 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17208 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17209 # It is most probably a Windows format PATH printed by
17210 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17211 # path with ; separators, and with drive letters. We can handle the
17212 # drive letters (cygwin fileutils understands them), so leave them,
17213 # especially as we might pass files found there to a mingw objdump,
17214 # which wouldn't understand a cygwinified path. Ahh.
17215 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17216 else
17217 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17218 fi
17219 ;;
17220 pw32*)
17221 # pw32 DLLs use 'pw' prefix rather than 'lib'
17222 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17223 ;;
17224 esac
17225 ;;
17226
17227 *)
17228 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17229 ;;
17230 esac
17231 dynamic_linker='Win32 ld.exe'
17232 # FIXME: first we should search . and the directory the executable is in
17233 shlibpath_var=PATH
17234 ;;
17235
17236 darwin* | rhapsody*)
17237 dynamic_linker="$host_os dyld"
17238 version_type=darwin
17239 need_lib_prefix=no
17240 need_version=no
17241 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17242 soname_spec='${libname}${release}${major}$shared_ext'
17243 shlibpath_overrides_runpath=yes
17244 shlibpath_var=DYLD_LIBRARY_PATH
17245 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17246 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17247 if test "$GCC" = yes; then
17248 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
17249 else
17250 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17251 fi
17252 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17253 ;;
17254
17255 dgux*)
17256 version_type=linux
17257 need_lib_prefix=no
17258 need_version=no
17259 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17260 soname_spec='${libname}${release}${shared_ext}$major'
17261 shlibpath_var=LD_LIBRARY_PATH
17262 ;;
17263
17264 freebsd1*)
17265 dynamic_linker=no
17266 ;;
17267
17268 kfreebsd*-gnu)
17269 version_type=linux
17270 need_lib_prefix=no
17271 need_version=no
17272 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17273 soname_spec='${libname}${release}${shared_ext}$major'
17274 shlibpath_var=LD_LIBRARY_PATH
17275 shlibpath_overrides_runpath=no
17276 hardcode_into_libs=yes
17277 dynamic_linker='GNU ld.so'
17278 ;;
17279
17280 freebsd* | dragonfly*)
17281 # DragonFly does not have aout. When/if they implement a new
17282 # versioning mechanism, adjust this.
17283 if test -x /usr/bin/objformat; then
17284 objformat=`/usr/bin/objformat`
17285 else
17286 case $host_os in
17287 freebsd[123]*) objformat=aout ;;
17288 *) objformat=elf ;;
17289 esac
17290 fi
17291 version_type=freebsd-$objformat
17292 case $version_type in
17293 freebsd-elf*)
17294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17295 need_version=no
17296 need_lib_prefix=no
17297 ;;
17298 freebsd-*)
17299 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17300 need_version=yes
17301 ;;
17302 esac
17303 shlibpath_var=LD_LIBRARY_PATH
17304 case $host_os in
17305 freebsd2*)
17306 shlibpath_overrides_runpath=yes
17307 ;;
17308 freebsd3.[01]* | freebsdelf3.[01]*)
17309 shlibpath_overrides_runpath=yes
17310 hardcode_into_libs=yes
17311 ;;
17312 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17313 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17314 shlibpath_overrides_runpath=no
17315 hardcode_into_libs=yes
17316 ;;
17317 freebsd*) # from 4.6 on
17318 shlibpath_overrides_runpath=yes
17319 hardcode_into_libs=yes
17320 ;;
17321 esac
17322 ;;
17323
17324 gnu*)
17325 version_type=linux
17326 need_lib_prefix=no
17327 need_version=no
17328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17329 soname_spec='${libname}${release}${shared_ext}$major'
17330 shlibpath_var=LD_LIBRARY_PATH
17331 hardcode_into_libs=yes
17332 ;;
17333
17334 hpux9* | hpux10* | hpux11*)
17335 # Give a soname corresponding to the major version so that dld.sl refuses to
17336 # link against other versions.
17337 version_type=sunos
17338 need_lib_prefix=no
17339 need_version=no
17340 case $host_cpu in
17341 ia64*)
17342 shrext_cmds='.so'
17343 hardcode_into_libs=yes
17344 dynamic_linker="$host_os dld.so"
17345 shlibpath_var=LD_LIBRARY_PATH
17346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 if test "X$HPUX_IA64_MODE" = X32; then
17350 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17351 else
17352 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17353 fi
17354 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17355 ;;
17356 hppa*64*)
17357 shrext_cmds='.sl'
17358 hardcode_into_libs=yes
17359 dynamic_linker="$host_os dld.sl"
17360 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17361 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17363 soname_spec='${libname}${release}${shared_ext}$major'
17364 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17365 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17366 ;;
17367 *)
17368 shrext_cmds='.sl'
17369 dynamic_linker="$host_os dld.sl"
17370 shlibpath_var=SHLIB_PATH
17371 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17373 soname_spec='${libname}${release}${shared_ext}$major'
17374 ;;
17375 esac
17376 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17377 postinstall_cmds='chmod 555 $lib'
17378 ;;
17379
17380 interix3*)
17381 version_type=linux
17382 need_lib_prefix=no
17383 need_version=no
17384 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17385 soname_spec='${libname}${release}${shared_ext}$major'
17386 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17387 shlibpath_var=LD_LIBRARY_PATH
17388 shlibpath_overrides_runpath=no
17389 hardcode_into_libs=yes
17390 ;;
17391
17392 irix5* | irix6* | nonstopux*)
17393 case $host_os in
17394 nonstopux*) version_type=nonstopux ;;
17395 *)
17396 if test "$lt_cv_prog_gnu_ld" = yes; then
17397 version_type=linux
17398 else
17399 version_type=irix
17400 fi ;;
17401 esac
17402 need_lib_prefix=no
17403 need_version=no
17404 soname_spec='${libname}${release}${shared_ext}$major'
17405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17406 case $host_os in
17407 irix5* | nonstopux*)
17408 libsuff= shlibsuff=
17409 ;;
17410 *)
17411 case $LD in # libtool.m4 will add one of these switches to LD
17412 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17413 libsuff= shlibsuff= libmagic=32-bit;;
17414 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17415 libsuff=32 shlibsuff=N32 libmagic=N32;;
17416 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17417 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17418 *) libsuff= shlibsuff= libmagic=never-match;;
17419 esac
17420 ;;
17421 esac
17422 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17423 shlibpath_overrides_runpath=no
17424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17426 hardcode_into_libs=yes
17427 ;;
17428
17429 # No shared lib support for Linux oldld, aout, or coff.
17430 linux*oldld* | linux*aout* | linux*coff*)
17431 dynamic_linker=no
17432 ;;
17433
17434 # This must be Linux ELF.
17435 linux*)
17436 version_type=linux
17437 need_lib_prefix=no
17438 need_version=no
17439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17440 soname_spec='${libname}${release}${shared_ext}$major'
17441 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17442 shlibpath_var=LD_LIBRARY_PATH
17443 shlibpath_overrides_runpath=no
17444 # This implies no fast_install, which is unacceptable.
17445 # Some rework will be needed to allow for fast_install
17446 # before this can be enabled.
17447 hardcode_into_libs=yes
17448
17449 # find out which ABI we are using
17450 libsuff=
17451 case "$host_cpu" in
17452 x86_64*|s390x*|powerpc64*)
17453 echo '#line 17453 "configure"' > conftest.$ac_ext
17454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17455 (eval $ac_compile) 2>&5
17456 ac_status=$?
17457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17458 test $ac_status = 0; }; then
17459 case `/usr/bin/file conftest.$ac_objext` in
17460 *64-bit*)
17461 libsuff=64
17462 sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
17463 ;;
17464 esac
17465 fi
17466 rm -rf conftest*
17467 ;;
17468 esac
17469
17470 # Append ld.so.conf contents to the search path
17471 if test -f /etc/ld.so.conf; then
17472 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/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
17473 sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
17474 fi
17475
17476 # We used to test for /lib/ld.so.1 and disable shared libraries on
17477 # powerpc, because MkLinux only supported shared libraries with the
17478 # GNU dynamic linker. Since this was broken with cross compilers,
17479 # most powerpc-linux boxes support dynamic linking these days and
17480 # people can always --disable-shared, the test was removed, and we
17481 # assume the GNU/Linux dynamic linker is in use.
17482 dynamic_linker='GNU/Linux ld.so'
17483 ;;
17484
17485 knetbsd*-gnu)
17486 version_type=linux
17487 need_lib_prefix=no
17488 need_version=no
17489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17490 soname_spec='${libname}${release}${shared_ext}$major'
17491 shlibpath_var=LD_LIBRARY_PATH
17492 shlibpath_overrides_runpath=no
17493 hardcode_into_libs=yes
17494 dynamic_linker='GNU ld.so'
17495 ;;
17496
17497 netbsd*)
17498 version_type=sunos
17499 need_lib_prefix=no
17500 need_version=no
17501 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17503 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17504 dynamic_linker='NetBSD (a.out) ld.so'
17505 else
17506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17507 soname_spec='${libname}${release}${shared_ext}$major'
17508 dynamic_linker='NetBSD ld.elf_so'
17509 fi
17510 shlibpath_var=LD_LIBRARY_PATH
17511 shlibpath_overrides_runpath=yes
17512 hardcode_into_libs=yes
17513 ;;
17514
17515 newsos6)
17516 version_type=linux
17517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=yes
17520 ;;
17521
17522 nto-qnx*)
17523 version_type=linux
17524 need_lib_prefix=no
17525 need_version=no
17526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17527 soname_spec='${libname}${release}${shared_ext}$major'
17528 shlibpath_var=LD_LIBRARY_PATH
17529 shlibpath_overrides_runpath=yes
17530 ;;
17531
17532 openbsd*)
17533 version_type=sunos
17534 sys_lib_dlsearch_path_spec="/usr/lib"
17535 need_lib_prefix=no
17536 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17537 case $host_os in
17538 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17539 *) need_version=no ;;
17540 esac
17541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17542 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17543 shlibpath_var=LD_LIBRARY_PATH
17544 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17545 case $host_os in
17546 openbsd2.[89] | openbsd2.[89].*)
17547 shlibpath_overrides_runpath=no
17548 ;;
17549 *)
17550 shlibpath_overrides_runpath=yes
17551 ;;
17552 esac
17553 else
17554 shlibpath_overrides_runpath=yes
17555 fi
17556 ;;
17557
17558 os2*)
17559 libname_spec='$name'
17560 shrext_cmds=".dll"
17561 need_lib_prefix=no
17562 library_names_spec='$libname${shared_ext} $libname.a'
17563 dynamic_linker='OS/2 ld.exe'
17564 shlibpath_var=LIBPATH
17565 ;;
17566
17567 osf3* | osf4* | osf5*)
17568 version_type=osf
17569 need_lib_prefix=no
17570 need_version=no
17571 soname_spec='${libname}${release}${shared_ext}$major'
17572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17573 shlibpath_var=LD_LIBRARY_PATH
17574 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17575 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17576 ;;
17577
17578 solaris*)
17579 version_type=linux
17580 need_lib_prefix=no
17581 need_version=no
17582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17583 soname_spec='${libname}${release}${shared_ext}$major'
17584 shlibpath_var=LD_LIBRARY_PATH
17585 shlibpath_overrides_runpath=yes
17586 hardcode_into_libs=yes
17587 # ldd complains unless libraries are executable
17588 postinstall_cmds='chmod +x $lib'
17589 ;;
17590
17591 sunos4*)
17592 version_type=sunos
17593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17594 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17595 shlibpath_var=LD_LIBRARY_PATH
17596 shlibpath_overrides_runpath=yes
17597 if test "$with_gnu_ld" = yes; then
17598 need_lib_prefix=no
17599 fi
17600 need_version=yes
17601 ;;
17602
17603 sysv4 | sysv4.3*)
17604 version_type=linux
17605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17606 soname_spec='${libname}${release}${shared_ext}$major'
17607 shlibpath_var=LD_LIBRARY_PATH
17608 case $host_vendor in
17609 sni)
17610 shlibpath_overrides_runpath=no
17611 need_lib_prefix=no
17612 export_dynamic_flag_spec='${wl}-Blargedynsym'
17613 runpath_var=LD_RUN_PATH
17614 ;;
17615 siemens)
17616 need_lib_prefix=no
17617 ;;
17618 motorola)
17619 need_lib_prefix=no
17620 need_version=no
17621 shlibpath_overrides_runpath=no
17622 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17623 ;;
17624 esac
17625 ;;
17626
17627 sysv4*MP*)
17628 if test -d /usr/nec ;then
17629 version_type=linux
17630 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17631 soname_spec='$libname${shared_ext}.$major'
17632 shlibpath_var=LD_LIBRARY_PATH
17633 fi
17634 ;;
17635
17636 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17637 version_type=freebsd-elf
17638 need_lib_prefix=no
17639 need_version=no
17640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17641 soname_spec='${libname}${release}${shared_ext}$major'
17642 shlibpath_var=LD_LIBRARY_PATH
17643 hardcode_into_libs=yes
17644 if test "$with_gnu_ld" = yes; then
17645 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17646 shlibpath_overrides_runpath=no
17647 else
17648 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17649 shlibpath_overrides_runpath=yes
17650 case $host_os in
17651 sco3.2v5*)
17652 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17653 ;;
17654 esac
17655 fi
17656 sys_lib_dlsearch_path_spec='/usr/lib'
17657 ;;
17658
17659 uts4*)
17660 version_type=linux
17661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17662 soname_spec='${libname}${release}${shared_ext}$major'
17663 shlibpath_var=LD_LIBRARY_PATH
17664 ;;
17665
17666 *)
17667 dynamic_linker=no
17668 ;;
17669 esac
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17671 $as_echo "$dynamic_linker" >&6; }
17672 test "$dynamic_linker" = no && can_build_shared=no
17673
17674 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17675 if test "$GCC" = yes; then
17676 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17677 fi
17678
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17680 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17681 hardcode_action_GCJ=
17682 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
17683 test -n "$runpath_var_GCJ" || \
17684 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
17685
17686 # We can hardcode non-existant directories.
17687 if test "$hardcode_direct_GCJ" != no &&
17688 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17689 # have to relink, otherwise we might link with an installed library
17690 # when we should be linking with a yet-to-be-installed one
17691 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
17692 test "$hardcode_minus_L_GCJ" != no; then
17693 # Linking always hardcodes the temporary library directory.
17694 hardcode_action_GCJ=relink
17695 else
17696 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17697 hardcode_action_GCJ=immediate
17698 fi
17699 else
17700 # We cannot hardcode anything, or else we can only hardcode existing
17701 # directories.
17702 hardcode_action_GCJ=unsupported
17703 fi
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
17705 $as_echo "$hardcode_action_GCJ" >&6; }
17706
17707 if test "$hardcode_action_GCJ" = relink; then
17708 # Fast installation is not supported
17709 enable_fast_install=no
17710 elif test "$shlibpath_overrides_runpath" = yes ||
17711 test "$enable_shared" = no; then
17712 # Fast installation is not necessary
17713 enable_fast_install=needless
17714 fi
17715
17716
17717 # The else clause should only fire when bootstrapping the
17718 # libtool distribution, otherwise you forgot to ship ltmain.sh
17719 # with your package, and you will get complaints that there are
17720 # no rules to generate ltmain.sh.
17721 if test -f "$ltmain"; then
17722 # See if we are running on zsh, and set the options which allow our commands through
17723 # without removal of \ escapes.
17724 if test -n "${ZSH_VERSION+set}" ; then
17725 setopt NO_GLOB_SUBST
17726 fi
17727 # Now quote all the things that may contain metacharacters while being
17728 # careful not to overquote the AC_SUBSTed values. We take copies of the
17729 # variables and quote the copies for generation of the libtool script.
17730 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
17731 SED SHELL STRIP \
17732 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17733 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17734 deplibs_check_method reload_flag reload_cmds need_locks \
17735 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17736 lt_cv_sys_global_symbol_to_c_name_address \
17737 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17738 old_postinstall_cmds old_postuninstall_cmds \
17739 compiler_GCJ \
17740 CC_GCJ \
17741 LD_GCJ \
17742 lt_prog_compiler_wl_GCJ \
17743 lt_prog_compiler_pic_GCJ \
17744 lt_prog_compiler_static_GCJ \
17745 lt_prog_compiler_no_builtin_flag_GCJ \
17746 export_dynamic_flag_spec_GCJ \
17747 thread_safe_flag_spec_GCJ \
17748 whole_archive_flag_spec_GCJ \
17749 enable_shared_with_static_runtimes_GCJ \
17750 old_archive_cmds_GCJ \
17751 old_archive_from_new_cmds_GCJ \
17752 predep_objects_GCJ \
17753 postdep_objects_GCJ \
17754 predeps_GCJ \
17755 postdeps_GCJ \
17756 compiler_lib_search_path_GCJ \
17757 archive_cmds_GCJ \
17758 archive_expsym_cmds_GCJ \
17759 postinstall_cmds_GCJ \
17760 postuninstall_cmds_GCJ \
17761 old_archive_from_expsyms_cmds_GCJ \
17762 allow_undefined_flag_GCJ \
17763 no_undefined_flag_GCJ \
17764 export_symbols_cmds_GCJ \
17765 hardcode_libdir_flag_spec_GCJ \
17766 hardcode_libdir_flag_spec_ld_GCJ \
17767 hardcode_libdir_separator_GCJ \
17768 hardcode_automatic_GCJ \
17769 module_cmds_GCJ \
17770 module_expsym_cmds_GCJ \
17771 lt_cv_prog_compiler_c_o_GCJ \
17772 exclude_expsyms_GCJ \
17773 include_expsyms_GCJ; do
17774
17775 case $var in
17776 old_archive_cmds_GCJ | \
17777 old_archive_from_new_cmds_GCJ | \
17778 archive_cmds_GCJ | \
17779 archive_expsym_cmds_GCJ | \
17780 module_cmds_GCJ | \
17781 module_expsym_cmds_GCJ | \
17782 old_archive_from_expsyms_cmds_GCJ | \
17783 export_symbols_cmds_GCJ | \
17784 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17785 postinstall_cmds | postuninstall_cmds | \
17786 old_postinstall_cmds | old_postuninstall_cmds | \
17787 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17788 # Double-quote double-evaled strings.
17789 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17790 ;;
17791 *)
17792 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17793 ;;
17794 esac
17795 done
17796
17797 case $lt_echo in
17798 *'\$0 --fallback-echo"')
17799 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17800 ;;
17801 esac
17802
17803 cfgfile="$ofile"
17804
17805 cat <<__EOF__ >> "$cfgfile"
17806 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17807
17808 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17809
17810 # Shell to use when invoking shell scripts.
17811 SHELL=$lt_SHELL
17812
17813 # Whether or not to build shared libraries.
17814 build_libtool_libs=$enable_shared
17815
17816 # Whether or not to build static libraries.
17817 build_old_libs=$enable_static
17818
17819 # Whether or not to add -lc for building shared libraries.
17820 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
17821
17822 # Whether or not to disallow shared libs when runtime libs are static
17823 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
17824
17825 # Whether or not to optimize for fast installation.
17826 fast_install=$enable_fast_install
17827
17828 # The host system.
17829 host_alias=$host_alias
17830 host=$host
17831 host_os=$host_os
17832
17833 # The build system.
17834 build_alias=$build_alias
17835 build=$build
17836 build_os=$build_os
17837
17838 # An echo program that does not interpret backslashes.
17839 echo=$lt_echo
17840
17841 # The archiver.
17842 AR=$lt_AR
17843 AR_FLAGS=$lt_AR_FLAGS
17844
17845 # A C compiler.
17846 LTCC=$lt_LTCC
17847
17848 # LTCC compiler flags.
17849 LTCFLAGS=$lt_LTCFLAGS
17850
17851 # A language-specific compiler.
17852 CC=$lt_compiler_GCJ
17853
17854 # Is the compiler the GNU C compiler?
17855 with_gcc=$GCC_GCJ
17856
17857 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
17858 gcc_ver=\`gcc -dumpversion\`
17859
17860 # An ERE matcher.
17861 EGREP=$lt_EGREP
17862
17863 # The linker used to build libraries.
17864 LD=$lt_LD_GCJ
17865
17866 # Whether we need hard or soft links.
17867 LN_S=$lt_LN_S
17868
17869 # A BSD-compatible nm program.
17870 NM=$lt_NM
17871
17872 # A symbol stripping program
17873 STRIP=$lt_STRIP
17874
17875 # Used to examine libraries when file_magic_cmd begins "file"
17876 MAGIC_CMD=$MAGIC_CMD
17877
17878 # Used on cygwin: DLL creation program.
17879 DLLTOOL="$DLLTOOL"
17880
17881 # Used on cygwin: object dumper.
17882 OBJDUMP="$OBJDUMP"
17883
17884 # Used on cygwin: assembler.
17885 AS="$AS"
17886
17887 # The name of the directory that contains temporary libtool files.
17888 objdir=$objdir
17889
17890 # How to create reloadable object files.
17891 reload_flag=$lt_reload_flag
17892 reload_cmds=$lt_reload_cmds
17893
17894 # How to pass a linker flag through the compiler.
17895 wl=$lt_lt_prog_compiler_wl_GCJ
17896
17897 # Object file suffix (normally "o").
17898 objext="$ac_objext"
17899
17900 # Old archive suffix (normally "a").
17901 libext="$libext"
17902
17903 # Shared library suffix (normally ".so").
17904 shrext_cmds='$shrext_cmds'
17905
17906 # Executable file suffix (normally "").
17907 exeext="$exeext"
17908
17909 # Additional compiler flags for building library objects.
17910 pic_flag=$lt_lt_prog_compiler_pic_GCJ
17911 pic_mode=$pic_mode
17912
17913 # What is the maximum length of a command?
17914 max_cmd_len=$lt_cv_sys_max_cmd_len
17915
17916 # Does compiler simultaneously support -c and -o options?
17917 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
17918
17919 # Must we lock files when doing compilation?
17920 need_locks=$lt_need_locks
17921
17922 # Do we need the lib prefix for modules?
17923 need_lib_prefix=$need_lib_prefix
17924
17925 # Do we need a version for libraries?
17926 need_version=$need_version
17927
17928 # Whether dlopen is supported.
17929 dlopen_support=$enable_dlopen
17930
17931 # Whether dlopen of programs is supported.
17932 dlopen_self=$enable_dlopen_self
17933
17934 # Whether dlopen of statically linked programs is supported.
17935 dlopen_self_static=$enable_dlopen_self_static
17936
17937 # Compiler flag to prevent dynamic linking.
17938 link_static_flag=$lt_lt_prog_compiler_static_GCJ
17939
17940 # Compiler flag to turn off builtin functions.
17941 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
17942
17943 # Compiler flag to allow reflexive dlopens.
17944 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
17945
17946 # Compiler flag to generate shared objects directly from archives.
17947 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
17948
17949 # Compiler flag to generate thread-safe objects.
17950 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
17951
17952 # Library versioning type.
17953 version_type=$version_type
17954
17955 # Format of library name prefix.
17956 libname_spec=$lt_libname_spec
17957
17958 # List of archive names. First name is the real one, the rest are links.
17959 # The last name is the one that the linker finds with -lNAME.
17960 library_names_spec=$lt_library_names_spec
17961
17962 # The coded name of the library, if different from the real name.
17963 soname_spec=$lt_soname_spec
17964
17965 # Commands used to build and install an old-style archive.
17966 RANLIB=$lt_RANLIB
17967 old_archive_cmds=$lt_old_archive_cmds_GCJ
17968 old_postinstall_cmds=$lt_old_postinstall_cmds
17969 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17970
17971 # Create an old-style archive from a shared archive.
17972 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
17973
17974 # Create a temporary old-style archive to link instead of a shared archive.
17975 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
17976
17977 # Commands used to build and install a shared archive.
17978 archive_cmds=$lt_archive_cmds_GCJ
17979 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
17980 postinstall_cmds=$lt_postinstall_cmds
17981 postuninstall_cmds=$lt_postuninstall_cmds
17982
17983 # Commands used to build a loadable module (assumed same as above if empty)
17984 module_cmds=$lt_module_cmds_GCJ
17985 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
17986
17987 # Commands to strip libraries.
17988 old_striplib=$lt_old_striplib
17989 striplib=$lt_striplib
17990
17991 # Dependencies to place before the objects being linked to create a
17992 # shared library.
17993 predep_objects=\`echo $lt_predep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17994
17995 # Dependencies to place after the objects being linked to create a
17996 # shared library.
17997 postdep_objects=\`echo $lt_postdep_objects_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
17998
17999 # Dependencies to place before the objects being linked to create a
18000 # shared library.
18001 predeps=$lt_predeps_GCJ
18002
18003 # Dependencies to place after the objects being linked to create a
18004 # shared library.
18005 postdeps=$lt_postdeps_GCJ
18006
18007 # The library search path used internally by the compiler when linking
18008 # a shared library.
18009 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_GCJ | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18010
18011 # Method to check whether dependent libraries are shared objects.
18012 deplibs_check_method=$lt_deplibs_check_method
18013
18014 # Command to use when deplibs_check_method == file_magic.
18015 file_magic_cmd=$lt_file_magic_cmd
18016
18017 # Flag that allows shared libraries with undefined symbols to be built.
18018 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18019
18020 # Flag that forces no undefined symbols.
18021 no_undefined_flag=$lt_no_undefined_flag_GCJ
18022
18023 # Commands used to finish a libtool library installation in a directory.
18024 finish_cmds=$lt_finish_cmds
18025
18026 # Same as above, but a single script fragment to be evaled but not shown.
18027 finish_eval=$lt_finish_eval
18028
18029 # Take the output of nm and produce a listing of raw symbols and C names.
18030 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18031
18032 # Transform the output of nm in a proper C declaration
18033 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18034
18035 # Transform the output of nm in a C name address pair
18036 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18037
18038 # This is the shared library runtime path variable.
18039 runpath_var=$runpath_var
18040
18041 # This is the shared library path variable.
18042 shlibpath_var=$shlibpath_var
18043
18044 # Is shlibpath searched before the hard-coded library search path?
18045 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18046
18047 # How to hardcode a shared library path into an executable.
18048 hardcode_action=$hardcode_action_GCJ
18049
18050 # Whether we should hardcode library paths into libraries.
18051 hardcode_into_libs=$hardcode_into_libs
18052
18053 # Flag to hardcode \$libdir into a binary during linking.
18054 # This must work even if \$libdir does not exist.
18055 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18056
18057 # If ld is used when linking, flag to hardcode \$libdir into
18058 # a binary during linking. This must work even if \$libdir does
18059 # not exist.
18060 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18061
18062 # Whether we need a single -rpath flag with a separated argument.
18063 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18064
18065 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18066 # resulting binary.
18067 hardcode_direct=$hardcode_direct_GCJ
18068
18069 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18070 # resulting binary.
18071 hardcode_minus_L=$hardcode_minus_L_GCJ
18072
18073 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18074 # the resulting binary.
18075 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18076
18077 # Set to yes if building a shared library automatically hardcodes DIR into the library
18078 # and all subsequent libraries and executables linked against it.
18079 hardcode_automatic=$hardcode_automatic_GCJ
18080
18081 # Variables whose values should be saved in libtool wrapper scripts and
18082 # restored at relink time.
18083 variables_saved_for_relink="$variables_saved_for_relink"
18084
18085 # Whether libtool must link a program against all its dependency libraries.
18086 link_all_deplibs=$link_all_deplibs_GCJ
18087
18088 # Compile-time system search path for libraries
18089 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18090
18091 # Run-time system search path for libraries
18092 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18093
18094 # Fix the shell variable \$srcfile for the compiler.
18095 fix_srcfile_path="$fix_srcfile_path_GCJ"
18096
18097 # Set to yes if exported symbols are required.
18098 always_export_symbols=$always_export_symbols_GCJ
18099
18100 # The commands to list exported symbols.
18101 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18102
18103 # The commands to extract the exported symbol list from a shared archive.
18104 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18105
18106 # Symbols that should not be listed in the preloaded symbols.
18107 exclude_expsyms=$lt_exclude_expsyms_GCJ
18108
18109 # Symbols that must always be exported.
18110 include_expsyms=$lt_include_expsyms_GCJ
18111
18112 # ### END LIBTOOL TAG CONFIG: $tagname
18113
18114 __EOF__
18115
18116
18117 else
18118 # If there is no Makefile yet, we rely on a make rule to execute
18119 # `config.status --recheck' to rerun these tests and create the
18120 # libtool script then.
18121 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18122 if test -f "$ltmain_in"; then
18123 test -f Makefile && make "$ltmain"
18124 fi
18125 fi
18126
18127
18128 ac_ext=c
18129 ac_cpp='$CPP $CPPFLAGS'
18130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18133
18134 CC="$lt_save_CC"
18135
18136 else
18137 tagname=""
18138 fi
18139 ;;
18140
18141 RC)
18142
18143
18144 # Source file extension for RC test sources.
18145 ac_ext=rc
18146
18147 # Object file extension for compiled RC test sources.
18148 objext=o
18149 objext_RC=$objext
18150
18151 # Code to be used in simple compile tests
18152 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18153
18154 # Code to be used in simple link tests
18155 lt_simple_link_test_code="$lt_simple_compile_test_code"
18156
18157 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18158
18159 # If no C compiler was specified, use CC.
18160 LTCC=${LTCC-"$CC"}
18161
18162 # If no C compiler flags were specified, use CFLAGS.
18163 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18164
18165 # Allow CC to be a program name with arguments.
18166 compiler=$CC
18167
18168
18169 # save warnings/boilerplate of simple test code
18170 ac_outfile=conftest.$ac_objext
18171 printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18172 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18173 _lt_compiler_boilerplate=`cat conftest.err`
18174 $rm conftest*
18175
18176 ac_outfile=conftest.$ac_objext
18177 printf "$lt_simple_link_test_code" >conftest.$ac_ext
18178 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18179 _lt_linker_boilerplate=`cat conftest.err`
18180 $rm conftest*
18181
18182
18183 # Allow CC to be a program name with arguments.
18184 lt_save_CC="$CC"
18185 CC=${RC-"windres"}
18186 compiler=$CC
18187 compiler_RC=$CC
18188 for cc_temp in $compiler""; do
18189 case $cc_temp in
18190 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18191 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18192 \-*) ;;
18193 *) break;;
18194 esac
18195 done
18196 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18197
18198 lt_cv_prog_compiler_c_o_RC=yes
18199
18200 # The else clause should only fire when bootstrapping the
18201 # libtool distribution, otherwise you forgot to ship ltmain.sh
18202 # with your package, and you will get complaints that there are
18203 # no rules to generate ltmain.sh.
18204 if test -f "$ltmain"; then
18205 # See if we are running on zsh, and set the options which allow our commands through
18206 # without removal of \ escapes.
18207 if test -n "${ZSH_VERSION+set}" ; then
18208 setopt NO_GLOB_SUBST
18209 fi
18210 # Now quote all the things that may contain metacharacters while being
18211 # careful not to overquote the AC_SUBSTed values. We take copies of the
18212 # variables and quote the copies for generation of the libtool script.
18213 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18214 SED SHELL STRIP \
18215 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18216 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18217 deplibs_check_method reload_flag reload_cmds need_locks \
18218 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18219 lt_cv_sys_global_symbol_to_c_name_address \
18220 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18221 old_postinstall_cmds old_postuninstall_cmds \
18222 compiler_RC \
18223 CC_RC \
18224 LD_RC \
18225 lt_prog_compiler_wl_RC \
18226 lt_prog_compiler_pic_RC \
18227 lt_prog_compiler_static_RC \
18228 lt_prog_compiler_no_builtin_flag_RC \
18229 export_dynamic_flag_spec_RC \
18230 thread_safe_flag_spec_RC \
18231 whole_archive_flag_spec_RC \
18232 enable_shared_with_static_runtimes_RC \
18233 old_archive_cmds_RC \
18234 old_archive_from_new_cmds_RC \
18235 predep_objects_RC \
18236 postdep_objects_RC \
18237 predeps_RC \
18238 postdeps_RC \
18239 compiler_lib_search_path_RC \
18240 archive_cmds_RC \
18241 archive_expsym_cmds_RC \
18242 postinstall_cmds_RC \
18243 postuninstall_cmds_RC \
18244 old_archive_from_expsyms_cmds_RC \
18245 allow_undefined_flag_RC \
18246 no_undefined_flag_RC \
18247 export_symbols_cmds_RC \
18248 hardcode_libdir_flag_spec_RC \
18249 hardcode_libdir_flag_spec_ld_RC \
18250 hardcode_libdir_separator_RC \
18251 hardcode_automatic_RC \
18252 module_cmds_RC \
18253 module_expsym_cmds_RC \
18254 lt_cv_prog_compiler_c_o_RC \
18255 exclude_expsyms_RC \
18256 include_expsyms_RC; do
18257
18258 case $var in
18259 old_archive_cmds_RC | \
18260 old_archive_from_new_cmds_RC | \
18261 archive_cmds_RC | \
18262 archive_expsym_cmds_RC | \
18263 module_cmds_RC | \
18264 module_expsym_cmds_RC | \
18265 old_archive_from_expsyms_cmds_RC | \
18266 export_symbols_cmds_RC | \
18267 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18268 postinstall_cmds | postuninstall_cmds | \
18269 old_postinstall_cmds | old_postuninstall_cmds | \
18270 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18271 # Double-quote double-evaled strings.
18272 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18273 ;;
18274 *)
18275 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18276 ;;
18277 esac
18278 done
18279
18280 case $lt_echo in
18281 *'\$0 --fallback-echo"')
18282 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18283 ;;
18284 esac
18285
18286 cfgfile="$ofile"
18287
18288 cat <<__EOF__ >> "$cfgfile"
18289 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18290
18291 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18292
18293 # Shell to use when invoking shell scripts.
18294 SHELL=$lt_SHELL
18295
18296 # Whether or not to build shared libraries.
18297 build_libtool_libs=$enable_shared
18298
18299 # Whether or not to build static libraries.
18300 build_old_libs=$enable_static
18301
18302 # Whether or not to add -lc for building shared libraries.
18303 build_libtool_need_lc=$archive_cmds_need_lc_RC
18304
18305 # Whether or not to disallow shared libs when runtime libs are static
18306 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18307
18308 # Whether or not to optimize for fast installation.
18309 fast_install=$enable_fast_install
18310
18311 # The host system.
18312 host_alias=$host_alias
18313 host=$host
18314 host_os=$host_os
18315
18316 # The build system.
18317 build_alias=$build_alias
18318 build=$build
18319 build_os=$build_os
18320
18321 # An echo program that does not interpret backslashes.
18322 echo=$lt_echo
18323
18324 # The archiver.
18325 AR=$lt_AR
18326 AR_FLAGS=$lt_AR_FLAGS
18327
18328 # A C compiler.
18329 LTCC=$lt_LTCC
18330
18331 # LTCC compiler flags.
18332 LTCFLAGS=$lt_LTCFLAGS
18333
18334 # A language-specific compiler.
18335 CC=$lt_compiler_RC
18336
18337 # Is the compiler the GNU C compiler?
18338 with_gcc=$GCC_RC
18339
18340 gcc_dir=\`gcc -print-file-name=. | $SED 's,/\.$,,'\`
18341 gcc_ver=\`gcc -dumpversion\`
18342
18343 # An ERE matcher.
18344 EGREP=$lt_EGREP
18345
18346 # The linker used to build libraries.
18347 LD=$lt_LD_RC
18348
18349 # Whether we need hard or soft links.
18350 LN_S=$lt_LN_S
18351
18352 # A BSD-compatible nm program.
18353 NM=$lt_NM
18354
18355 # A symbol stripping program
18356 STRIP=$lt_STRIP
18357
18358 # Used to examine libraries when file_magic_cmd begins "file"
18359 MAGIC_CMD=$MAGIC_CMD
18360
18361 # Used on cygwin: DLL creation program.
18362 DLLTOOL="$DLLTOOL"
18363
18364 # Used on cygwin: object dumper.
18365 OBJDUMP="$OBJDUMP"
18366
18367 # Used on cygwin: assembler.
18368 AS="$AS"
18369
18370 # The name of the directory that contains temporary libtool files.
18371 objdir=$objdir
18372
18373 # How to create reloadable object files.
18374 reload_flag=$lt_reload_flag
18375 reload_cmds=$lt_reload_cmds
18376
18377 # How to pass a linker flag through the compiler.
18378 wl=$lt_lt_prog_compiler_wl_RC
18379
18380 # Object file suffix (normally "o").
18381 objext="$ac_objext"
18382
18383 # Old archive suffix (normally "a").
18384 libext="$libext"
18385
18386 # Shared library suffix (normally ".so").
18387 shrext_cmds='$shrext_cmds'
18388
18389 # Executable file suffix (normally "").
18390 exeext="$exeext"
18391
18392 # Additional compiler flags for building library objects.
18393 pic_flag=$lt_lt_prog_compiler_pic_RC
18394 pic_mode=$pic_mode
18395
18396 # What is the maximum length of a command?
18397 max_cmd_len=$lt_cv_sys_max_cmd_len
18398
18399 # Does compiler simultaneously support -c and -o options?
18400 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18401
18402 # Must we lock files when doing compilation?
18403 need_locks=$lt_need_locks
18404
18405 # Do we need the lib prefix for modules?
18406 need_lib_prefix=$need_lib_prefix
18407
18408 # Do we need a version for libraries?
18409 need_version=$need_version
18410
18411 # Whether dlopen is supported.
18412 dlopen_support=$enable_dlopen
18413
18414 # Whether dlopen of programs is supported.
18415 dlopen_self=$enable_dlopen_self
18416
18417 # Whether dlopen of statically linked programs is supported.
18418 dlopen_self_static=$enable_dlopen_self_static
18419
18420 # Compiler flag to prevent dynamic linking.
18421 link_static_flag=$lt_lt_prog_compiler_static_RC
18422
18423 # Compiler flag to turn off builtin functions.
18424 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
18425
18426 # Compiler flag to allow reflexive dlopens.
18427 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
18428
18429 # Compiler flag to generate shared objects directly from archives.
18430 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
18431
18432 # Compiler flag to generate thread-safe objects.
18433 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
18434
18435 # Library versioning type.
18436 version_type=$version_type
18437
18438 # Format of library name prefix.
18439 libname_spec=$lt_libname_spec
18440
18441 # List of archive names. First name is the real one, the rest are links.
18442 # The last name is the one that the linker finds with -lNAME.
18443 library_names_spec=$lt_library_names_spec
18444
18445 # The coded name of the library, if different from the real name.
18446 soname_spec=$lt_soname_spec
18447
18448 # Commands used to build and install an old-style archive.
18449 RANLIB=$lt_RANLIB
18450 old_archive_cmds=$lt_old_archive_cmds_RC
18451 old_postinstall_cmds=$lt_old_postinstall_cmds
18452 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18453
18454 # Create an old-style archive from a shared archive.
18455 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
18456
18457 # Create a temporary old-style archive to link instead of a shared archive.
18458 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
18459
18460 # Commands used to build and install a shared archive.
18461 archive_cmds=$lt_archive_cmds_RC
18462 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
18463 postinstall_cmds=$lt_postinstall_cmds
18464 postuninstall_cmds=$lt_postuninstall_cmds
18465
18466 # Commands used to build a loadable module (assumed same as above if empty)
18467 module_cmds=$lt_module_cmds_RC
18468 module_expsym_cmds=$lt_module_expsym_cmds_RC
18469
18470 # Commands to strip libraries.
18471 old_striplib=$lt_old_striplib
18472 striplib=$lt_striplib
18473
18474 # Dependencies to place before the objects being linked to create a
18475 # shared library.
18476 predep_objects=\`echo $lt_predep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18477
18478 # Dependencies to place after the objects being linked to create a
18479 # shared library.
18480 postdep_objects=\`echo $lt_postdep_objects_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18481
18482 # Dependencies to place before the objects being linked to create a
18483 # shared library.
18484 predeps=$lt_predeps_RC
18485
18486 # Dependencies to place after the objects being linked to create a
18487 # shared library.
18488 postdeps=$lt_postdeps_RC
18489
18490 # The library search path used internally by the compiler when linking
18491 # a shared library.
18492 compiler_lib_search_path=\`echo $lt_compiler_lib_search_path_RC | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18493
18494 # Method to check whether dependent libraries are shared objects.
18495 deplibs_check_method=$lt_deplibs_check_method
18496
18497 # Command to use when deplibs_check_method == file_magic.
18498 file_magic_cmd=$lt_file_magic_cmd
18499
18500 # Flag that allows shared libraries with undefined symbols to be built.
18501 allow_undefined_flag=$lt_allow_undefined_flag_RC
18502
18503 # Flag that forces no undefined symbols.
18504 no_undefined_flag=$lt_no_undefined_flag_RC
18505
18506 # Commands used to finish a libtool library installation in a directory.
18507 finish_cmds=$lt_finish_cmds
18508
18509 # Same as above, but a single script fragment to be evaled but not shown.
18510 finish_eval=$lt_finish_eval
18511
18512 # Take the output of nm and produce a listing of raw symbols and C names.
18513 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18514
18515 # Transform the output of nm in a proper C declaration
18516 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18517
18518 # Transform the output of nm in a C name address pair
18519 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18520
18521 # This is the shared library runtime path variable.
18522 runpath_var=$runpath_var
18523
18524 # This is the shared library path variable.
18525 shlibpath_var=$shlibpath_var
18526
18527 # Is shlibpath searched before the hard-coded library search path?
18528 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18529
18530 # How to hardcode a shared library path into an executable.
18531 hardcode_action=$hardcode_action_RC
18532
18533 # Whether we should hardcode library paths into libraries.
18534 hardcode_into_libs=$hardcode_into_libs
18535
18536 # Flag to hardcode \$libdir into a binary during linking.
18537 # This must work even if \$libdir does not exist.
18538 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
18539
18540 # If ld is used when linking, flag to hardcode \$libdir into
18541 # a binary during linking. This must work even if \$libdir does
18542 # not exist.
18543 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
18544
18545 # Whether we need a single -rpath flag with a separated argument.
18546 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
18547
18548 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18549 # resulting binary.
18550 hardcode_direct=$hardcode_direct_RC
18551
18552 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18553 # resulting binary.
18554 hardcode_minus_L=$hardcode_minus_L_RC
18555
18556 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18557 # the resulting binary.
18558 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
18559
18560 # Set to yes if building a shared library automatically hardcodes DIR into the library
18561 # and all subsequent libraries and executables linked against it.
18562 hardcode_automatic=$hardcode_automatic_RC
18563
18564 # Variables whose values should be saved in libtool wrapper scripts and
18565 # restored at relink time.
18566 variables_saved_for_relink="$variables_saved_for_relink"
18567
18568 # Whether libtool must link a program against all its dependency libraries.
18569 link_all_deplibs=$link_all_deplibs_RC
18570
18571 # Compile-time system search path for libraries
18572 sys_lib_search_path_spec=\`echo $lt_sys_lib_search_path_spec | \$SED -e "s@\${gcc_dir}@\\\${gcc_dir}@g;s@\${gcc_ver}@\\\${gcc_ver}@g"\`
18573
18574 # Run-time system search path for libraries
18575 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18576
18577 # Fix the shell variable \$srcfile for the compiler.
18578 fix_srcfile_path="$fix_srcfile_path_RC"
18579
18580 # Set to yes if exported symbols are required.
18581 always_export_symbols=$always_export_symbols_RC
18582
18583 # The commands to list exported symbols.
18584 export_symbols_cmds=$lt_export_symbols_cmds_RC
18585
18586 # The commands to extract the exported symbol list from a shared archive.
18587 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18588
18589 # Symbols that should not be listed in the preloaded symbols.
18590 exclude_expsyms=$lt_exclude_expsyms_RC
18591
18592 # Symbols that must always be exported.
18593 include_expsyms=$lt_include_expsyms_RC
18594
18595 # ### END LIBTOOL TAG CONFIG: $tagname
18596
18597 __EOF__
18598
18599
18600 else
18601 # If there is no Makefile yet, we rely on a make rule to execute
18602 # `config.status --recheck' to rerun these tests and create the
18603 # libtool script then.
18604 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18605 if test -f "$ltmain_in"; then
18606 test -f Makefile && make "$ltmain"
18607 fi
18608 fi
18609
18610
18611 ac_ext=c
18612 ac_cpp='$CPP $CPPFLAGS'
18613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18616
18617 CC="$lt_save_CC"
18618
18619 ;;
18620
18621 *)
18622 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
18623 ;;
18624 esac
18625
18626 # Append the new tag name to the list of available tags.
18627 if test -n "$tagname" ; then
18628 available_tags="$available_tags $tagname"
18629 fi
18630 fi
18631 done
18632 IFS="$lt_save_ifs"
18633
18634 # Now substitute the updated list of available tags.
18635 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
18636 mv "${ofile}T" "$ofile"
18637 chmod +x "$ofile"
18638 else
18639 rm -f "${ofile}T"
18640 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
18641 fi
18642 fi
18643
18644
18645
18646 # This can be used to rebuild libtool when needed
18647 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
18648
18649 # Always use our own libtool.
18650 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
18651
18652 # Prevent multiple expansion
18653
18654
18655
18656
18657
18658
18659
18660
18661
18662
18663
18664
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674 INCLUDES='-I$(top_srcdir)/gw -I$(top_builddir)/gw'
18675
18676
18677 ac_header_dirent=no
18678 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
18679 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
18680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
18681 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
18682 if eval \${$as_ac_Header+:} false; then :
18683 $as_echo_n "(cached) " >&6
18684 else
18685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18686 /* end confdefs.h. */
18687 #include <sys/types.h>
18688 #include <$ac_hdr>
18689
18690 int
18691 main ()
18692 {
18693 if ((DIR *) 0)
18694 return 0;
18695 ;
18696 return 0;
18697 }
18698 _ACEOF
18699 if ac_fn_c_try_compile "$LINENO"; then :
18700 eval "$as_ac_Header=yes"
18701 else
18702 eval "$as_ac_Header=no"
18703 fi
18704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18705 fi
18706 eval ac_res=\$$as_ac_Header
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
18708 $as_echo "$ac_res" >&6; }
18709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18710 cat >>confdefs.h <<_ACEOF
18711 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
18712 _ACEOF
18713
18714 ac_header_dirent=$ac_hdr; break
18715 fi
18716
18717 done
18718 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
18719 if test $ac_header_dirent = dirent.h; then
18720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18721 $as_echo_n "checking for library containing opendir... " >&6; }
18722 if ${ac_cv_search_opendir+:} false; then :
18723 $as_echo_n "(cached) " >&6
18724 else
18725 ac_func_search_save_LIBS=$LIBS
18726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18727 /* end confdefs.h. */
18728
18729 /* Override any GCC internal prototype to avoid an error.
18730 Use char because int might match the return type of a GCC
18731 builtin and then its argument prototype would still apply. */
18732 #ifdef __cplusplus
18733 extern "C"
18734 #endif
18735 char opendir ();
18736 int
18737 main ()
18738 {
18739 return opendir ();
18740 ;
18741 return 0;
18742 }
18743 _ACEOF
18744 for ac_lib in '' dir; do
18745 if test -z "$ac_lib"; then
18746 ac_res="none required"
18747 else
18748 ac_res=-l$ac_lib
18749 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18750 fi
18751 if ac_fn_c_try_link "$LINENO"; then :
18752 ac_cv_search_opendir=$ac_res
18753 fi
18754 rm -f core conftest.err conftest.$ac_objext \
18755 conftest$ac_exeext
18756 if ${ac_cv_search_opendir+:} false; then :
18757 break
18758 fi
18759 done
18760 if ${ac_cv_search_opendir+:} false; then :
18761
18762 else
18763 ac_cv_search_opendir=no
18764 fi
18765 rm conftest.$ac_ext
18766 LIBS=$ac_func_search_save_LIBS
18767 fi
18768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18769 $as_echo "$ac_cv_search_opendir" >&6; }
18770 ac_res=$ac_cv_search_opendir
18771 if test "$ac_res" != no; then :
18772 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18773
18774 fi
18775
18776 else
18777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
18778 $as_echo_n "checking for library containing opendir... " >&6; }
18779 if ${ac_cv_search_opendir+:} false; then :
18780 $as_echo_n "(cached) " >&6
18781 else
18782 ac_func_search_save_LIBS=$LIBS
18783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18784 /* end confdefs.h. */
18785
18786 /* Override any GCC internal prototype to avoid an error.
18787 Use char because int might match the return type of a GCC
18788 builtin and then its argument prototype would still apply. */
18789 #ifdef __cplusplus
18790 extern "C"
18791 #endif
18792 char opendir ();
18793 int
18794 main ()
18795 {
18796 return opendir ();
18797 ;
18798 return 0;
18799 }
18800 _ACEOF
18801 for ac_lib in '' x; do
18802 if test -z "$ac_lib"; then
18803 ac_res="none required"
18804 else
18805 ac_res=-l$ac_lib
18806 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
18807 fi
18808 if ac_fn_c_try_link "$LINENO"; then :
18809 ac_cv_search_opendir=$ac_res
18810 fi
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext
18813 if ${ac_cv_search_opendir+:} false; then :
18814 break
18815 fi
18816 done
18817 if ${ac_cv_search_opendir+:} false; then :
18818
18819 else
18820 ac_cv_search_opendir=no
18821 fi
18822 rm conftest.$ac_ext
18823 LIBS=$ac_func_search_save_LIBS
18824 fi
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
18826 $as_echo "$ac_cv_search_opendir" >&6; }
18827 ac_res=$ac_cv_search_opendir
18828 if test "$ac_res" != no; then :
18829 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
18830
18831 fi
18832
18833 fi
18834
18835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18836 $as_echo_n "checking for ANSI C header files... " >&6; }
18837 if ${ac_cv_header_stdc+:} false; then :
18838 $as_echo_n "(cached) " >&6
18839 else
18840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18841 /* end confdefs.h. */
18842 #include <stdlib.h>
18843 #include <stdarg.h>
18844 #include <string.h>
18845 #include <float.h>
18846
18847 int
18848 main ()
18849 {
18850
18851 ;
18852 return 0;
18853 }
18854 _ACEOF
18855 if ac_fn_c_try_compile "$LINENO"; then :
18856 ac_cv_header_stdc=yes
18857 else
18858 ac_cv_header_stdc=no
18859 fi
18860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18861
18862 if test $ac_cv_header_stdc = yes; then
18863 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18865 /* end confdefs.h. */
18866 #include <string.h>
18867
18868 _ACEOF
18869 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18870 $EGREP "memchr" >/dev/null 2>&1; then :
18871
18872 else
18873 ac_cv_header_stdc=no
18874 fi
18875 rm -f conftest*
18876
18877 fi
18878
18879 if test $ac_cv_header_stdc = yes; then
18880 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18882 /* end confdefs.h. */
18883 #include <stdlib.h>
18884
18885 _ACEOF
18886 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18887 $EGREP "free" >/dev/null 2>&1; then :
18888
18889 else
18890 ac_cv_header_stdc=no
18891 fi
18892 rm -f conftest*
18893
18894 fi
18895
18896 if test $ac_cv_header_stdc = yes; then
18897 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18898 if test "$cross_compiling" = yes; then :
18899 :
18900 else
18901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18902 /* end confdefs.h. */
18903 #include <ctype.h>
18904 #include <stdlib.h>
18905 #if ((' ' & 0x0FF) == 0x020)
18906 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18907 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18908 #else
18909 # define ISLOWER(c) \
18910 (('a' <= (c) && (c) <= 'i') \
18911 || ('j' <= (c) && (c) <= 'r') \
18912 || ('s' <= (c) && (c) <= 'z'))
18913 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18914 #endif
18915
18916 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18917 int
18918 main ()
18919 {
18920 int i;
18921 for (i = 0; i < 256; i++)
18922 if (XOR (islower (i), ISLOWER (i))
18923 || toupper (i) != TOUPPER (i))
18924 return 2;
18925 return 0;
18926 }
18927 _ACEOF
18928 if ac_fn_c_try_run "$LINENO"; then :
18929
18930 else
18931 ac_cv_header_stdc=no
18932 fi
18933 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18934 conftest.$ac_objext conftest.beam conftest.$ac_ext
18935 fi
18936
18937 fi
18938 fi
18939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18940 $as_echo "$ac_cv_header_stdc" >&6; }
18941 if test $ac_cv_header_stdc = yes; then
18942
18943 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
18944
18945 fi
18946
18947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
18948 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
18949 if ${ac_cv_header_sys_wait_h+:} false; then :
18950 $as_echo_n "(cached) " >&6
18951 else
18952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18953 /* end confdefs.h. */
18954 #include <sys/types.h>
18955 #include <sys/wait.h>
18956 #ifndef WEXITSTATUS
18957 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
18958 #endif
18959 #ifndef WIFEXITED
18960 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
18961 #endif
18962
18963 int
18964 main ()
18965 {
18966 int s;
18967 wait (&s);
18968 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
18969 ;
18970 return 0;
18971 }
18972 _ACEOF
18973 if ac_fn_c_try_compile "$LINENO"; then :
18974 ac_cv_header_sys_wait_h=yes
18975 else
18976 ac_cv_header_sys_wait_h=no
18977 fi
18978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18979 fi
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
18981 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
18982 if test $ac_cv_header_sys_wait_h = yes; then
18983
18984 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
18985
18986 fi
18987
18988
18989
18990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
18991 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
18992 if ${ac_cv_c_const+:} false; then :
18993 $as_echo_n "(cached) " >&6
18994 else
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18997
18998 int
18999 main ()
19000 {
19001
19002 #ifndef __cplusplus
19003 /* Ultrix mips cc rejects this sort of thing. */
19004 typedef int charset[2];
19005 const charset cs = { 0, 0 };
19006 /* SunOS 4.1.1 cc rejects this. */
19007 char const *const *pcpcc;
19008 char **ppc;
19009 /* NEC SVR4.0.2 mips cc rejects this. */
19010 struct point {int x, y;};
19011 static struct point const zero = {0,0};
19012 /* AIX XL C 1.02.0.0 rejects this.
19013 It does not let you subtract one const X* pointer from another in
19014 an arm of an if-expression whose if-part is not a constant
19015 expression */
19016 const char *g = "string";
19017 pcpcc = &g + (g ? g-g : 0);
19018 /* HPUX 7.0 cc rejects these. */
19019 ++pcpcc;
19020 ppc = (char**) pcpcc;
19021 pcpcc = (char const *const *) ppc;
19022 { /* SCO 3.2v4 cc rejects this sort of thing. */
19023 char tx;
19024 char *t = &tx;
19025 char const *s = 0 ? (char *) 0 : (char const *) 0;
19026
19027 *t++ = 0;
19028 if (s) return 0;
19029 }
19030 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
19031 int x[] = {25, 17};
19032 const int *foo = &x[0];
19033 ++foo;
19034 }
19035 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
19036 typedef const int *iptr;
19037 iptr p = 0;
19038 ++p;
19039 }
19040 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
19041 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
19042 struct s { int j; const int *ap[3]; } bx;
19043 struct s *b = &bx; b->j = 5;
19044 }
19045 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
19046 const int foo = 10;
19047 if (!foo) return 0;
19048 }
19049 return !cs[0] && !zero.x;
19050 #endif
19051
19052 ;
19053 return 0;
19054 }
19055 _ACEOF
19056 if ac_fn_c_try_compile "$LINENO"; then :
19057 ac_cv_c_const=yes
19058 else
19059 ac_cv_c_const=no
19060 fi
19061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19062 fi
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
19064 $as_echo "$ac_cv_c_const" >&6; }
19065 if test $ac_cv_c_const = no; then
19066
19067 $as_echo "#define const /**/" >>confdefs.h
19068
19069 fi
19070
19071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
19072 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
19073 if ${ac_cv_struct_tm+:} false; then :
19074 $as_echo_n "(cached) " >&6
19075 else
19076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19077 /* end confdefs.h. */
19078 #include <sys/types.h>
19079 #include <time.h>
19080
19081 int
19082 main ()
19083 {
19084 struct tm tm;
19085 int *p = &tm.tm_sec;
19086 return !p;
19087 ;
19088 return 0;
19089 }
19090 _ACEOF
19091 if ac_fn_c_try_compile "$LINENO"; then :
19092 ac_cv_struct_tm=time.h
19093 else
19094 ac_cv_struct_tm=sys/time.h
19095 fi
19096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19097 fi
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
19099 $as_echo "$ac_cv_struct_tm" >&6; }
19100 if test $ac_cv_struct_tm = sys/time.h; then
19101
19102 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
19103
19104 fi
19105
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
19107 $as_echo_n "checking for working volatile... " >&6; }
19108 if ${ac_cv_c_volatile+:} false; then :
19109 $as_echo_n "(cached) " >&6
19110 else
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19113
19114 int
19115 main ()
19116 {
19117
19118 volatile int x;
19119 int * volatile y = (int *) 0;
19120 return !x && !y;
19121 ;
19122 return 0;
19123 }
19124 _ACEOF
19125 if ac_fn_c_try_compile "$LINENO"; then :
19126 ac_cv_c_volatile=yes
19127 else
19128 ac_cv_c_volatile=no
19129 fi
19130 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19131 fi
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
19133 $as_echo "$ac_cv_c_volatile" >&6; }
19134 if test $ac_cv_c_volatile = no; then
19135
19136 $as_echo "#define volatile /**/" >>confdefs.h
19137
19138 fi
19139
19140
19141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
19142 $as_echo_n "checking whether closedir returns void... " >&6; }
19143 if ${ac_cv_func_closedir_void+:} false; then :
19144 $as_echo_n "(cached) " >&6
19145 else
19146 if test "$cross_compiling" = yes; then :
19147 ac_cv_func_closedir_void=yes
19148 else
19149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19150 /* end confdefs.h. */
19151 $ac_includes_default
19152 #include <$ac_header_dirent>
19153 #ifndef __cplusplus
19154 int closedir ();
19155 #endif
19156
19157 int
19158 main ()
19159 {
19160 return closedir (opendir (".")) != 0;
19161 ;
19162 return 0;
19163 }
19164 _ACEOF
19165 if ac_fn_c_try_run "$LINENO"; then :
19166 ac_cv_func_closedir_void=no
19167 else
19168 ac_cv_func_closedir_void=yes
19169 fi
19170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19171 conftest.$ac_objext conftest.beam conftest.$ac_ext
19172 fi
19173
19174 fi
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
19176 $as_echo "$ac_cv_func_closedir_void" >&6; }
19177 if test $ac_cv_func_closedir_void = yes; then
19178
19179 $as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
19180
19181 fi
19182
19183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for error_at_line" >&5
19184 $as_echo_n "checking for error_at_line... " >&6; }
19185 if ${ac_cv_lib_error_at_line+:} false; then :
19186 $as_echo_n "(cached) " >&6
19187 else
19188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19189 /* end confdefs.h. */
19190 #include <error.h>
19191 int
19192 main ()
19193 {
19194 error_at_line (0, 0, "", 0, "an error occurred");
19195 ;
19196 return 0;
19197 }
19198 _ACEOF
19199 if ac_fn_c_try_link "$LINENO"; then :
19200 ac_cv_lib_error_at_line=yes
19201 else
19202 ac_cv_lib_error_at_line=no
19203 fi
19204 rm -f core conftest.err conftest.$ac_objext \
19205 conftest$ac_exeext conftest.$ac_ext
19206 fi
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_error_at_line" >&5
19208 $as_echo "$ac_cv_lib_error_at_line" >&6; }
19209 if test $ac_cv_lib_error_at_line = no; then
19210 case " $LIBOBJS " in
19211 *" error.$ac_objext "* ) ;;
19212 *) LIBOBJS="$LIBOBJS error.$ac_objext"
19213 ;;
19214 esac
19215
19216 fi
19217
19218 for ac_header in stdlib.h
19219 do :
19220 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
19221 if test "x$ac_cv_header_stdlib_h" = xyes; then :
19222 cat >>confdefs.h <<_ACEOF
19223 #define HAVE_STDLIB_H 1
19224 _ACEOF
19225
19226 fi
19227
19228 done
19229
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
19231 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
19232 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
19233 $as_echo_n "(cached) " >&6
19234 else
19235 if test "$cross_compiling" = yes; then :
19236 ac_cv_func_malloc_0_nonnull=no
19237 else
19238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19239 /* end confdefs.h. */
19240 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
19241 # include <stdlib.h>
19242 #else
19243 char *malloc ();
19244 #endif
19245
19246 int
19247 main ()
19248 {
19249 return ! malloc (0);
19250 ;
19251 return 0;
19252 }
19253 _ACEOF
19254 if ac_fn_c_try_run "$LINENO"; then :
19255 ac_cv_func_malloc_0_nonnull=yes
19256 else
19257 ac_cv_func_malloc_0_nonnull=no
19258 fi
19259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19260 conftest.$ac_objext conftest.beam conftest.$ac_ext
19261 fi
19262
19263 fi
19264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
19265 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
19266 if test $ac_cv_func_malloc_0_nonnull = yes; then :
19267
19268 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
19269
19270 else
19271 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
19272
19273 case " $LIBOBJS " in
19274 *" malloc.$ac_objext "* ) ;;
19275 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
19276 ;;
19277 esac
19278
19279
19280 $as_echo "#define malloc rpl_malloc" >>confdefs.h
19281
19282 fi
19283
19284
19285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
19286 $as_echo_n "checking for working memcmp... " >&6; }
19287 if ${ac_cv_func_memcmp_working+:} false; then :
19288 $as_echo_n "(cached) " >&6
19289 else
19290 if test "$cross_compiling" = yes; then :
19291 ac_cv_func_memcmp_working=no
19292 else
19293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19294 /* end confdefs.h. */
19295 $ac_includes_default
19296 int
19297 main ()
19298 {
19299
19300 /* Some versions of memcmp are not 8-bit clean. */
19301 char c0 = '\100', c1 = '\200', c2 = '\201';
19302 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
19303 return 1;
19304
19305 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
19306 or more and with at least one buffer not starting on a 4-byte boundary.
19307 William Lewis provided this test program. */
19308 {
19309 char foo[21];
19310 char bar[21];
19311 int i;
19312 for (i = 0; i < 4; i++)
19313 {
19314 char *a = foo + i;
19315 char *b = bar + i;
19316 strcpy (a, "--------01111111");
19317 strcpy (b, "--------10000000");
19318 if (memcmp (a, b, 16) >= 0)
19319 return 1;
19320 }
19321 return 0;
19322 }
19323
19324 ;
19325 return 0;
19326 }
19327 _ACEOF
19328 if ac_fn_c_try_run "$LINENO"; then :
19329 ac_cv_func_memcmp_working=yes
19330 else
19331 ac_cv_func_memcmp_working=no
19332 fi
19333 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19334 conftest.$ac_objext conftest.beam conftest.$ac_ext
19335 fi
19336
19337 fi
19338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
19339 $as_echo "$ac_cv_func_memcmp_working" >&6; }
19340 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
19341 *" memcmp.$ac_objext "* ) ;;
19342 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
19343 ;;
19344 esac
19345
19346
19347
19348 EXE_EXT=""
19349 case "$host" in
19350 *-sun-solaris*)
19351 CFLAGS="$CFLAGS -DSunOS=1"
19352 ;;
19353 *-cygwin*)
19354 EXE_EXT=".exe"
19355 ;;
19356 *apple-darwin*)
19357 CFLAGS="$CFLAGS -DDARWIN=1"
19358 LIBS="$LIBS -L/opt/local/lib"
19359 ;;
19360 *-linux-*)
19361 CFLAGS="$CFLAGS -D_XOPEN_SOURCE=600 -D_BSD_SOURCE"
19362 LDFLAGS="$LDFLAGS -rdynamic"
19363 ;;
19364 *-*-openbsd* | *-*-freebsd*)
19365 CFLAGS="$CFLAGS -pthread"
19366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5
19367 $as_echo_n "checking for pthread_exit in -lpthread... " >&6; }
19368 if ${ac_cv_lib_pthread_pthread_exit+:} false; then :
19369 $as_echo_n "(cached) " >&6
19370 else
19371 ac_check_lib_save_LIBS=$LIBS
19372 LIBS="-lpthread $LIBS"
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19375
19376 /* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply. */
19379 #ifdef __cplusplus
19380 extern "C"
19381 #endif
19382 char pthread_exit ();
19383 int
19384 main ()
19385 {
19386 return pthread_exit ();
19387 ;
19388 return 0;
19389 }
19390 _ACEOF
19391 if ac_fn_c_try_link "$LINENO"; then :
19392 ac_cv_lib_pthread_pthread_exit=yes
19393 else
19394 ac_cv_lib_pthread_pthread_exit=no
19395 fi
19396 rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19399 fi
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5
19401 $as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; }
19402 if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then :
19403 LIBS="$LIBS -lpthread"; pthread="yes"
19404 else
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lc_r" >&5
19406 $as_echo_n "checking for pthread_exit in -lc_r... " >&6; }
19407 if ${ac_cv_lib_c_r_pthread_exit+:} false; then :
19408 $as_echo_n "(cached) " >&6
19409 else
19410 ac_check_lib_save_LIBS=$LIBS
19411 LIBS="-lc_r $LIBS"
19412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19413 /* end confdefs.h. */
19414
19415 /* Override any GCC internal prototype to avoid an error.
19416 Use char because int might match the return type of a GCC
19417 builtin and then its argument prototype would still apply. */
19418 #ifdef __cplusplus
19419 extern "C"
19420 #endif
19421 char pthread_exit ();
19422 int
19423 main ()
19424 {
19425 return pthread_exit ();
19426 ;
19427 return 0;
19428 }
19429 _ACEOF
19430 if ac_fn_c_try_link "$LINENO"; then :
19431 ac_cv_lib_c_r_pthread_exit=yes
19432 else
19433 ac_cv_lib_c_r_pthread_exit=no
19434 fi
19435 rm -f core conftest.err conftest.$ac_objext \
19436 conftest$ac_exeext conftest.$ac_ext
19437 LIBS=$ac_check_lib_save_LIBS
19438 fi
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_exit" >&5
19440 $as_echo "$ac_cv_lib_c_r_pthread_exit" >&6; }
19441 if test "x$ac_cv_lib_c_r_pthread_exit" = xyes; then :
19442 LIBS="$LIBS -lc_r"; pthread="yes"
19443 fi
19444
19445
19446 fi
19447
19448 ;;
19449 esac
19450
19451
19452 # Check whether --with-cflags was given.
19453 if test "${with_cflags+set}" = set; then :
19454 withval=$with_cflags; CFLAGS="$CFLAGS $withval"
19455 fi
19456
19457
19458
19459 # Check whether --with-libs was given.
19460 if test "${with_libs+set}" = set; then :
19461 withval=$with_libs; LIBS="$LIBS $withval"
19462 fi
19463
19464
19465
19466
19467 nl='
19468 '
19469 echo "${nl}${T_MD}Configuring PAM support ...${T_ME}"
19470
19471
19472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with PAM support" >&5
19473 $as_echo_n "checking whether to compile with PAM support... " >&6; }
19474 # Check whether --enable-pam was given.
19475 if test "${enable_pam+set}" = set; then :
19476 enableval=$enable_pam;
19477 if test "$enableval" = "yes"
19478 then
19479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_end in -lpam" >&5
19480 $as_echo_n "checking for pam_end in -lpam... " >&6; }
19481 if ${ac_cv_lib_pam_pam_end+:} false; then :
19482 $as_echo_n "(cached) " >&6
19483 else
19484 ac_check_lib_save_LIBS=$LIBS
19485 LIBS="-lpam $LIBS"
19486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19487 /* end confdefs.h. */
19488
19489 /* Override any GCC internal prototype to avoid an error.
19490 Use char because int might match the return type of a GCC
19491 builtin and then its argument prototype would still apply. */
19492 #ifdef __cplusplus
19493 extern "C"
19494 #endif
19495 char pam_end ();
19496 int
19497 main ()
19498 {
19499 return pam_end ();
19500 ;
19501 return 0;
19502 }
19503 _ACEOF
19504 if ac_fn_c_try_link "$LINENO"; then :
19505 ac_cv_lib_pam_pam_end=yes
19506 else
19507 ac_cv_lib_pam_pam_end=no
19508 fi
19509 rm -f core conftest.err conftest.$ac_objext \
19510 conftest$ac_exeext conftest.$ac_ext
19511 LIBS=$ac_check_lib_save_LIBS
19512 fi
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_end" >&5
19514 $as_echo "$ac_cv_lib_pam_pam_end" >&6; }
19515 if test "x$ac_cv_lib_pam_pam_end" = xyes; then :
19516 cat >>confdefs.h <<_ACEOF
19517 #define HAVE_LIBPAM 1
19518 _ACEOF
19519
19520 LIBS="-lpam $LIBS"
19521
19522 fi
19523
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldl" >&5
19525 $as_echo_n "checking for main in -ldl... " >&6; }
19526 if ${ac_cv_lib_dl_main+:} false; then :
19527 $as_echo_n "(cached) " >&6
19528 else
19529 ac_check_lib_save_LIBS=$LIBS
19530 LIBS="-ldl $LIBS"
19531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19532 /* end confdefs.h. */
19533
19534
19535 int
19536 main ()
19537 {
19538 return main ();
19539 ;
19540 return 0;
19541 }
19542 _ACEOF
19543 if ac_fn_c_try_link "$LINENO"; then :
19544 ac_cv_lib_dl_main=yes
19545 else
19546 ac_cv_lib_dl_main=no
19547 fi
19548 rm -f core conftest.err conftest.$ac_objext \
19549 conftest$ac_exeext conftest.$ac_ext
19550 LIBS=$ac_check_lib_save_LIBS
19551 fi
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_main" >&5
19553 $as_echo "$ac_cv_lib_dl_main" >&6; }
19554 if test "x$ac_cv_lib_dl_main" = xyes; then :
19555 cat >>confdefs.h <<_ACEOF
19556 #define HAVE_LIBDL 1
19557 _ACEOF
19558
19559 LIBS="-ldl $LIBS"
19560
19561 fi
19562
19563 ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
19564 if test "x$ac_cv_header_security_pam_appl_h" = xyes; then :
19565
19566 $as_echo "#define HAVE_PAM_SECURITY 1" >>confdefs.h
19567
19568
19569 $as_echo "#define HAVE_PAM 1" >>confdefs.h
19570
19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling PAM for authentication" >&5
19572 $as_echo "enabling PAM for authentication" >&6; }
19573 else
19574 ac_fn_c_check_header_mongrel "$LINENO" "pam/pam_appl.h" "ac_cv_header_pam_pam_appl_h" "$ac_includes_default"
19575 if test "x$ac_cv_header_pam_pam_appl_h" = xyes; then :
19576
19577 $as_echo "#define HAVE_PAM_PAM 1" >>confdefs.h
19578
19579
19580 $as_echo "#define HAVE_PAM 1" >>confdefs.h
19581
19582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: enabling PAM for authentication" >&5
19583 $as_echo "enabling PAM for authentication" >&6; }
19584
19585 fi
19586
19587
19588
19589 fi
19590
19591
19592 else
19593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19594 $as_echo "disabled" >&6; }
19595 fi
19596
19597 fi
19598
19599
19600
19601
19602
19603 # Check whether --with-ssl was given.
19604 if test "${with_ssl+set}" = set; then :
19605 withval=$with_ssl; if test -d "$withval"; then
19606 ssllib="$withval/lib";
19607 sslinc="$withval/include"
19608 else
19609 as_fn_error $? "Unable to find OpenSSL libs and/or directories at $withval" "$LINENO" 5
19610 fi
19611
19612 fi
19613
19614
19615
19616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
19617 $as_echo_n "checking whether to compile with SSL support... " >&6; }
19618 # Check whether --enable-ssl was given.
19619 if test "${enable_ssl+set}" = set; then :
19620 enableval=$enable_ssl;
19621 if test "$enableval" = no ; then
19622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: disabled" >&5
19623 $as_echo "disabled" >&6; }
19624 ssl=no
19625 else
19626 ssl=yes
19627 fi
19628
19629 else
19630
19631 ssl=yes
19632
19633 fi
19634
19635
19636 if test "$ssl" = "yes" ; then
19637 if test "x$ssllib" = "x" && test "x$sslinc" = "x"; then
19638 for loc in /usr/lib /usr/local/ssl/lib /usr/local/openssl/lib; do
19639 if test -f "$loc/libssl.a"; then
19640 ssllib="$loc"
19641 fi
19642 done
19643 for loc in /usr/include/ssl /usr/include/openssl /usr/local/ssl/include \
19644 /usr/local/openssl/include; do
19645 if test -d "$loc"; then
19646 sslinc="$loc"
19647 fi
19648 done
19649 fi
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying $ssllib $sslinc" >&5
19651 $as_echo "trying $ssllib $sslinc" >&6; }
19652 fi
19653
19654
19655 if test "x$ssllib" != "x" && test "x$sslinc" != "x"; then
19656 CFLAGS="$CFLAGS -I$sslinc"
19657 LIBS="$LIBS -L$ssllib"
19658
19659 # Extract the first word of "openssl", so it can be a program name with args.
19660 set dummy openssl; ac_word=$2
19661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19662 $as_echo_n "checking for $ac_word... " >&6; }
19663 if ${ac_cv_path_OPENSSL+:} false; then :
19664 $as_echo_n "(cached) " >&6
19665 else
19666 case $OPENSSL in
19667 [\\/]* | ?:[\\/]*)
19668 ac_cv_path_OPENSSL="$OPENSSL" # Let the user override the test with a path.
19669 ;;
19670 *)
19671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19672 for as_dir in $PATH
19673 do
19674 IFS=$as_save_IFS
19675 test -z "$as_dir" && as_dir=.
19676 for ac_exec_ext in '' $ac_executable_extensions; do
19677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19678 ac_cv_path_OPENSSL="$as_dir/$ac_word$ac_exec_ext"
19679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19680 break 2
19681 fi
19682 done
19683 done
19684 IFS=$as_save_IFS
19685
19686 test -z "$ac_cv_path_OPENSSL" && ac_cv_path_OPENSSL="no"
19687 ;;
19688 esac
19689 fi
19690 OPENSSL=$ac_cv_path_OPENSSL
19691 if test -n "$OPENSSL"; then
19692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OPENSSL" >&5
19693 $as_echo "$OPENSSL" >&6; }
19694 else
19695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19696 $as_echo "no" >&6; }
19697 fi
19698
19699
19700 if test "$OPENSSL" = "yes"; then
19701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking openssl version" >&5
19702 $as_echo_n "checking openssl version... " >&6; }
19703 openssl_version=`$OPENSSL version | awk '{print $2}'`
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $openssl_version" >&5
19705 $as_echo "$openssl_version" >&6; }
19706 fi
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CRYPTO_lock in -lcrypto" >&5
19708 $as_echo_n "checking for CRYPTO_lock in -lcrypto... " >&6; }
19709 if ${ac_cv_lib_crypto_CRYPTO_lock+:} false; then :
19710 $as_echo_n "(cached) " >&6
19711 else
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lcrypto $LIBS"
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19716
19717 /* Override any GCC internal prototype to avoid an error.
19718 Use char because int might match the return type of a GCC
19719 builtin and then its argument prototype would still apply. */
19720 #ifdef __cplusplus
19721 extern "C"
19722 #endif
19723 char CRYPTO_lock ();
19724 int
19725 main ()
19726 {
19727 return CRYPTO_lock ();
19728 ;
19729 return 0;
19730 }
19731 _ACEOF
19732 if ac_fn_c_try_link "$LINENO"; then :
19733 ac_cv_lib_crypto_CRYPTO_lock=yes
19734 else
19735 ac_cv_lib_crypto_CRYPTO_lock=no
19736 fi
19737 rm -f core conftest.err conftest.$ac_objext \
19738 conftest$ac_exeext conftest.$ac_ext
19739 LIBS=$ac_check_lib_save_LIBS
19740 fi
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_CRYPTO_lock" >&5
19742 $as_echo "$ac_cv_lib_crypto_CRYPTO_lock" >&6; }
19743 if test "x$ac_cv_lib_crypto_CRYPTO_lock" = xyes; then :
19744 LIBS="$LIBS -lcrypto"
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
19746 $as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
19747 if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
19748 $as_echo_n "(cached) " >&6
19749 else
19750 ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-lssl $LIBS"
19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19753 /* end confdefs.h. */
19754
19755 /* Override any GCC internal prototype to avoid an error.
19756 Use char because int might match the return type of a GCC
19757 builtin and then its argument prototype would still apply. */
19758 #ifdef __cplusplus
19759 extern "C"
19760 #endif
19761 char SSL_library_init ();
19762 int
19763 main ()
19764 {
19765 return SSL_library_init ();
19766 ;
19767 return 0;
19768 }
19769 _ACEOF
19770 if ac_fn_c_try_link "$LINENO"; then :
19771 ac_cv_lib_ssl_SSL_library_init=yes
19772 else
19773 ac_cv_lib_ssl_SSL_library_init=no
19774 fi
19775 rm -f core conftest.err conftest.$ac_objext \
19776 conftest$ac_exeext conftest.$ac_ext
19777 LIBS=$ac_check_lib_save_LIBS
19778 fi
19779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19780 $as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
19781 if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_connect in -lssl" >&5
19783 $as_echo_n "checking for SSL_connect in -lssl... " >&6; }
19784 if ${ac_cv_lib_ssl_SSL_connect+:} false; then :
19785 $as_echo_n "(cached) " >&6
19786 else
19787 ac_check_lib_save_LIBS=$LIBS
19788 LIBS="-lssl $LIBS"
19789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19790 /* end confdefs.h. */
19791
19792 /* Override any GCC internal prototype to avoid an error.
19793 Use char because int might match the return type of a GCC
19794 builtin and then its argument prototype would still apply. */
19795 #ifdef __cplusplus
19796 extern "C"
19797 #endif
19798 char SSL_connect ();
19799 int
19800 main ()
19801 {
19802 return SSL_connect ();
19803 ;
19804 return 0;
19805 }
19806 _ACEOF
19807 if ac_fn_c_try_link "$LINENO"; then :
19808 ac_cv_lib_ssl_SSL_connect=yes
19809 else
19810 ac_cv_lib_ssl_SSL_connect=no
19811 fi
19812 rm -f core conftest.err conftest.$ac_objext \
19813 conftest$ac_exeext conftest.$ac_ext
19814 LIBS=$ac_check_lib_save_LIBS
19815 fi
19816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_connect" >&5
19817 $as_echo "$ac_cv_lib_ssl_SSL_connect" >&6; }
19818 if test "x$ac_cv_lib_ssl_SSL_connect" = xyes; then :
19819 cat >>confdefs.h <<_ACEOF
19820 #define HAVE_LIBSSL 1
19821 _ACEOF
19822
19823 LIBS="-lssl $LIBS"
19824
19825 fi
19826
19827 for ac_header in openssl/x509.h openssl/rsa.h openssl/crypto.h \
19828 openssl/pem.h openssl/ssl.h openssl/err.h
19829 do :
19830 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19831 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19832 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19833 cat >>confdefs.h <<_ACEOF
19834 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19835 _ACEOF
19836
19837 fi
19838
19839 done
19840
19841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the OpenSSL library is multithread-enabled" >&5
19842 $as_echo_n "checking whether the OpenSSL library is multithread-enabled... " >&6; }
19843 if test "$cross_compiling" = yes; then :
19844 echo "Cross-compiling; make sure your SSL library is multithread-enabled"
19845
19846 else
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848 /* end confdefs.h. */
19849
19850 #define OPENSSL_THREAD_DEFINES
19851 #include <openssl/opensslconf.h>
19852 int main(void) {
19853 #if defined(THREADS)
19854 exit(0);
19855 #elif defined(OPENSSL_THREADS)
19856 exit(0);
19857 #else
19858 exit(1);
19859 #endif
19860 }
19861
19862 _ACEOF
19863 if ac_fn_c_try_run "$LINENO"; then :
19864
19865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19866 $as_echo "yes" >&6; }
19867 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
19868
19869 LIBS="$LIBS -lssl"
19870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to compile with SSL support" >&5
19871 $as_echo_n "checking whether to compile with SSL support... " >&6; }
19872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19873 $as_echo "yes" >&6; }
19874
19875 else
19876
19877 # Check whether --enable-ssl-thread-test was given.
19878 if test "${enable_ssl_thread_test+set}" = set; then :
19879 enableval=$enable_ssl_thread_test; if test "$enableval" = no ; then
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, continue forced" >&5
19881 $as_echo "no, continue forced" >&6; }
19882 fi
19883
19884 else
19885
19886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19887 $as_echo "no" >&6; }
19888 as_fn_error $? "Either get a multithread-enabled SSL or configure with --disable-ssl" "$LINENO" 5
19889
19890 fi
19891
19892
19893 fi
19894 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
19895 conftest.$ac_objext conftest.beam conftest.$ac_ext
19896 fi
19897
19898
19899 fi
19900
19901
19902 fi
19903
19904 fi
19905
19906
19907
19908
19909 nl='
19910 '
19911 echo "${nl}${T_MD}Configuring DocBook support ...${T_ME}"
19912
19913 # Extract the first word of "jade", so it can be a program name with args.
19914 set dummy jade; ac_word=$2
19915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19916 $as_echo_n "checking for $ac_word... " >&6; }
19917 if ${ac_cv_prog_OLDJADE+:} false; then :
19918 $as_echo_n "(cached) " >&6
19919 else
19920 if test -n "$OLDJADE"; then
19921 ac_cv_prog_OLDJADE="$OLDJADE" # Let the user override the test.
19922 else
19923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19924 for as_dir in $PATH
19925 do
19926 IFS=$as_save_IFS
19927 test -z "$as_dir" && as_dir=.
19928 for ac_exec_ext in '' $ac_executable_extensions; do
19929 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19930 ac_cv_prog_OLDJADE="jade"
19931 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19932 break 2
19933 fi
19934 done
19935 done
19936 IFS=$as_save_IFS
19937
19938 test -z "$ac_cv_prog_OLDJADE" && ac_cv_prog_OLDJADE="no"
19939 fi
19940 fi
19941 OLDJADE=$ac_cv_prog_OLDJADE
19942 if test -n "$OLDJADE"; then
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OLDJADE" >&5
19944 $as_echo "$OLDJADE" >&6; }
19945 else
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19947 $as_echo "no" >&6; }
19948 fi
19949
19950
19951 if test "$OLDJADE" = "no" ;
19952 then
19953 # Extract the first word of "openjade", so it can be a program name with args.
19954 set dummy openjade; ac_word=$2
19955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19956 $as_echo_n "checking for $ac_word... " >&6; }
19957 if ${ac_cv_prog_JADE+:} false; then :
19958 $as_echo_n "(cached) " >&6
19959 else
19960 if test -n "$JADE"; then
19961 ac_cv_prog_JADE="$JADE" # Let the user override the test.
19962 else
19963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19964 for as_dir in $PATH
19965 do
19966 IFS=$as_save_IFS
19967 test -z "$as_dir" && as_dir=.
19968 for ac_exec_ext in '' $ac_executable_extensions; do
19969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19970 ac_cv_prog_JADE="openjade"
19971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19972 break 2
19973 fi
19974 done
19975 done
19976 IFS=$as_save_IFS
19977
19978 test -z "$ac_cv_prog_JADE" && ac_cv_prog_JADE="no"
19979 fi
19980 fi
19981 JADE=$ac_cv_prog_JADE
19982 if test -n "$JADE"; then
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADE" >&5
19984 $as_echo "$JADE" >&6; }
19985 else
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19987 $as_echo "no" >&6; }
19988 fi
19989
19990
19991 else
19992 JADE=$OLDJADE
19993 fi
19994 # Extract the first word of "jadetex", so it can be a program name with args.
19995 set dummy jadetex; ac_word=$2
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19997 $as_echo_n "checking for $ac_word... " >&6; }
19998 if ${ac_cv_prog_JADETEX+:} false; then :
19999 $as_echo_n "(cached) " >&6
20000 else
20001 if test -n "$JADETEX"; then
20002 ac_cv_prog_JADETEX="$JADETEX" # Let the user override the test.
20003 else
20004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20005 for as_dir in $PATH
20006 do
20007 IFS=$as_save_IFS
20008 test -z "$as_dir" && as_dir=.
20009 for ac_exec_ext in '' $ac_executable_extensions; do
20010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20011 ac_cv_prog_JADETEX="jadetex"
20012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20013 break 2
20014 fi
20015 done
20016 done
20017 IFS=$as_save_IFS
20018
20019 test -z "$ac_cv_prog_JADETEX" && ac_cv_prog_JADETEX="no"
20020 fi
20021 fi
20022 JADETEX=$ac_cv_prog_JADETEX
20023 if test -n "$JADETEX"; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JADETEX" >&5
20025 $as_echo "$JADETEX" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20029 fi
20030
20031
20032 # Extract the first word of "pdfjadetex", so it can be a program name with args.
20033 set dummy pdfjadetex; ac_word=$2
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20035 $as_echo_n "checking for $ac_word... " >&6; }
20036 if ${ac_cv_prog_PDFJADETEX+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 if test -n "$PDFJADETEX"; then
20040 ac_cv_prog_PDFJADETEX="$PDFJADETEX" # Let the user override the test.
20041 else
20042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20043 for as_dir in $PATH
20044 do
20045 IFS=$as_save_IFS
20046 test -z "$as_dir" && as_dir=.
20047 for ac_exec_ext in '' $ac_executable_extensions; do
20048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20049 ac_cv_prog_PDFJADETEX="pdfjadetex"
20050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20051 break 2
20052 fi
20053 done
20054 done
20055 IFS=$as_save_IFS
20056
20057 test -z "$ac_cv_prog_PDFJADETEX" && ac_cv_prog_PDFJADETEX="no"
20058 fi
20059 fi
20060 PDFJADETEX=$ac_cv_prog_PDFJADETEX
20061 if test -n "$PDFJADETEX"; then
20062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PDFJADETEX" >&5
20063 $as_echo "$PDFJADETEX" >&6; }
20064 else
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20066 $as_echo "no" >&6; }
20067 fi
20068
20069
20070 # Extract the first word of "dvips", so it can be a program name with args.
20071 set dummy dvips; ac_word=$2
20072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20073 $as_echo_n "checking for $ac_word... " >&6; }
20074 if ${ac_cv_prog_DVIPS+:} false; then :
20075 $as_echo_n "(cached) " >&6
20076 else
20077 if test -n "$DVIPS"; then
20078 ac_cv_prog_DVIPS="$DVIPS" # Let the user override the test.
20079 else
20080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20081 for as_dir in $PATH
20082 do
20083 IFS=$as_save_IFS
20084 test -z "$as_dir" && as_dir=.
20085 for ac_exec_ext in '' $ac_executable_extensions; do
20086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20087 ac_cv_prog_DVIPS="dvips"
20088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20089 break 2
20090 fi
20091 done
20092 done
20093 IFS=$as_save_IFS
20094
20095 test -z "$ac_cv_prog_DVIPS" && ac_cv_prog_DVIPS="no"
20096 fi
20097 fi
20098 DVIPS=$ac_cv_prog_DVIPS
20099 if test -n "$DVIPS"; then
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIPS" >&5
20101 $as_echo "$DVIPS" >&6; }
20102 else
20103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20104 $as_echo "no" >&6; }
20105 fi
20106
20107
20108 # Extract the first word of "fig2dev", so it can be a program name with args.
20109 set dummy fig2dev; ac_word=$2
20110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20111 $as_echo_n "checking for $ac_word... " >&6; }
20112 if ${ac_cv_prog_FIG2DEV+:} false; then :
20113 $as_echo_n "(cached) " >&6
20114 else
20115 if test -n "$FIG2DEV"; then
20116 ac_cv_prog_FIG2DEV="$FIG2DEV" # Let the user override the test.
20117 else
20118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20119 for as_dir in $PATH
20120 do
20121 IFS=$as_save_IFS
20122 test -z "$as_dir" && as_dir=.
20123 for ac_exec_ext in '' $ac_executable_extensions; do
20124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20125 ac_cv_prog_FIG2DEV="fig2dev"
20126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20127 break 2
20128 fi
20129 done
20130 done
20131 IFS=$as_save_IFS
20132
20133 test -z "$ac_cv_prog_FIG2DEV" && ac_cv_prog_FIG2DEV="no"
20134 fi
20135 fi
20136 FIG2DEV=$ac_cv_prog_FIG2DEV
20137 if test -n "$FIG2DEV"; then
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIG2DEV" >&5
20139 $as_echo "$FIG2DEV" >&6; }
20140 else
20141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20142 $as_echo "no" >&6; }
20143 fi
20144
20145
20146 # Extract the first word of "convert", so it can be a program name with args.
20147 set dummy convert; ac_word=$2
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20149 $as_echo_n "checking for $ac_word... " >&6; }
20150 if ${ac_cv_prog_CONVERT+:} false; then :
20151 $as_echo_n "(cached) " >&6
20152 else
20153 if test -n "$CONVERT"; then
20154 ac_cv_prog_CONVERT="$CONVERT" # Let the user override the test.
20155 else
20156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20157 for as_dir in $PATH
20158 do
20159 IFS=$as_save_IFS
20160 test -z "$as_dir" && as_dir=.
20161 for ac_exec_ext in '' $ac_executable_extensions; do
20162 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20163 ac_cv_prog_CONVERT="convert"
20164 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20165 break 2
20166 fi
20167 done
20168 done
20169 IFS=$as_save_IFS
20170
20171 test -z "$ac_cv_prog_CONVERT" && ac_cv_prog_CONVERT="no"
20172 fi
20173 fi
20174 CONVERT=$ac_cv_prog_CONVERT
20175 if test -n "$CONVERT"; then
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CONVERT" >&5
20177 $as_echo "$CONVERT" >&6; }
20178 else
20179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20180 $as_echo "no" >&6; }
20181 fi
20182
20183
20184
20185 found=""
20186 for loc in /usr /usr/local /opt/local; do
20187 if test "x$found" = "x" ; then
20188 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/html/docbook.dsl \
20189 ${loc}/lib/sgml/stylesheets/nwalsh-modular/html/docbook.dsl \
20190 ${loc}/share/dsssl/docbook-dsssl/html/docbook.dsl \
20191 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/html/docbook.dsl \
20192 ${loc}/share/sgml/docbook/dsssl-stylesheets/html/docbook.dsl \
20193 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/html/docbook.dsl \
20194 ${loc}/share/sgml/docbook/dsssl/modular/html/docbook.dsl ; do
20195 if test "x$found" = "x" ; then
20196 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
20198 $as_echo_n "checking for $file... " >&6; }
20199 if eval \${$as_ac_File+:} false; then :
20200 $as_echo_n "(cached) " >&6
20201 else
20202 test "$cross_compiling" = yes &&
20203 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20204 if test -r "$file"; then
20205 eval "$as_ac_File=yes"
20206 else
20207 eval "$as_ac_File=no"
20208 fi
20209 fi
20210 eval ac_res=\$$as_ac_File
20211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20212 $as_echo "$ac_res" >&6; }
20213 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20214 HTML_DSL=$file; found=1
20215 fi
20216
20217 fi
20218 done
20219 fi
20220 done
20221
20222 found=""
20223 for loc in /usr /usr/local /opt/local; do
20224 if test "x$found" = "x" ; then
20225 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/print/docbook.dsl \
20226 ${loc}/lib/sgml/stylesheets/nwalsh-modular/print/docbook.dsl \
20227 ${loc}/share/dsssl/docbook-dsssl/print/docbook.dsl \
20228 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/print/docbook.dsl \
20229 ${loc}/share/sgml/docbook/dsssl-stylesheets/print/docbook.dsl \
20230 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/print/docbook.dsl \
20231 ${loc}/share/sgml/docbook/dsssl/modular/print/docbook.dsl ; do
20232 if test "x$found" = "x" ; then
20233 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
20235 $as_echo_n "checking for $file... " >&6; }
20236 if eval \${$as_ac_File+:} false; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 test "$cross_compiling" = yes &&
20240 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20241 if test -r "$file"; then
20242 eval "$as_ac_File=yes"
20243 else
20244 eval "$as_ac_File=no"
20245 fi
20246 fi
20247 eval ac_res=\$$as_ac_File
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20249 $as_echo "$ac_res" >&6; }
20250 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20251 TEX_DSL=$file; found=1
20252 fi
20253
20254 fi
20255 done
20256 fi
20257 done
20258
20259 found=""
20260 for loc in /usr /usr/local /sw /opt/local; do
20261 if test "x$found" = "x" ; then
20262 for file in ${loc}/lib/sgml/stylesheet/dsssl/docbook/nwalsh/dtds/decls/xml.dcl \
20263 ${loc}/lib/sgml/stylesheets/nwalsh-modular/dtds/decls/xml.dcl \
20264 ${loc}/share/sgml/docbook/dsssl-stylesheets-1.*/dtds/decls/xml.dcl \
20265 ${loc}/share/sgml/docbook/dsssl-stylesheets/dtds/decls/xml.dcl \
20266 ${loc}/share/sgml/docbook/stylesheet/dsssl/modular/dtds/decls/xml.dcl \
20267 ${loc}/share/sgml/docbook/dsssl/modular/dtds/decls/xml.dcl \
20268 ${loc}/share/sgml/dsssl/docbook-dsssl-nwalsh/dtds/decls/xml.dcl \
20269 ${loc}/share/dsssl/docbook-dsssl/dtds/decls/xml.dcl ; do
20270 if test "x$found" = "x" ; then
20271 as_ac_File=`$as_echo "ac_cv_file_$file" | $as_tr_sh`
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $file" >&5
20273 $as_echo_n "checking for $file... " >&6; }
20274 if eval \${$as_ac_File+:} false; then :
20275 $as_echo_n "(cached) " >&6
20276 else
20277 test "$cross_compiling" = yes &&
20278 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20279 if test -r "$file"; then
20280 eval "$as_ac_File=yes"
20281 else
20282 eval "$as_ac_File=no"
20283 fi
20284 fi
20285 eval ac_res=\$$as_ac_File
20286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20287 $as_echo "$ac_res" >&6; }
20288 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20289 XML_DCL=$file; found=1
20290 fi
20291
20292 fi
20293 done
20294 fi
20295 done
20296
20297
20298
20299
20300 # Check whether --enable-docs was given.
20301 if test "${enable_docs+set}" = set; then :
20302 enableval=$enable_docs;
20303 if test "$enableval" = "yes"
20304 then
20305 DOCSTARGET="docs"
20306 else
20307 DOCSTARGET="no-docs"
20308 fi
20309
20310 fi
20311
20312
20313 if test "x$HTML_DSL" = "x" -o "x$TEX_DSL" = "x" \
20314 || test "$JADE" = "no" \
20315 || test "$JADETEX" = "no" \
20316 || test "$PDFJADETEX" = "no" \
20317 || test "$DVIPS" = "no" \
20318 || test "$FIG2DEV" = "no" \
20319 || test "$CONVERT" = "no" \
20320 || test "$DOCSTARGET" = "no-docs"
20321 then
20322 DOCSTARGET="no-docs"
20323 else
20324 DOCSTARGET="docs"
20325 fi
20326
20327 case "$DOCSTARGET" in
20328 no-docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Not building documentation." >&5
20329 $as_echo "Not building documentation." >&6; } ;;
20330 docs) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will be built as well." >&5
20331 $as_echo "Documentation will be built as well." >&6; } ;;
20332 esac
20333
20334
20335
20336 DOCDRAFTS="IGNORE"
20337
20338 # Check whether --enable-drafts was given.
20339 if test "${enable_drafts+set}" = set; then :
20340 enableval=$enable_drafts;
20341 if test "$enableval" = "yes"
20342 then
20343 DOCDRAFTS="INCLUDE"
20344 else
20345 DOCDRAFTS="IGNORE"
20346 fi
20347
20348 fi
20349
20350 if test "x$DOCSTARGET" = "xdocs"
20351 then
20352 case "$DOCDRAFTS" in
20353 INCLUDE) { $as_echo "$as_me:${as_lineno-$LINENO}: result: Documentation will include drafts." >&5
20354 $as_echo "Documentation will include drafts." >&6; } ;;
20355 esac
20356 fi
20357
20358
20359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ct-Lib support" >&5
20360 $as_echo_n "checking for Ct-Lib support... " >&6; }
20361
20362 # Check whether --with-ctlib was given.
20363 if test "${with_ctlib+set}" = set; then :
20364 withval=$with_ctlib;
20365 if test "$withval" = "yes"; then
20366 withval=/opt/sybase
20367 fi
20368
20369 if test "$withval" != "no"; then
20370 if test -f $withval/include/ctpublic.h; then
20371 CTLIB_INCDIR=$withval/include
20372 CTLIB_LIBDIR=$withval/lib
20373 else
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20375 $as_echo "no" >&6; }
20376 as_fn_error $? "Invalid Ct-Lib directory - unable to find ctpublic.h" "$LINENO" 5
20377 fi
20378 CTLIB_LFLAGS="-L$CTLIB_LIBDIR -lct -lcs -lsybtcl -lcomn -lintl"
20379 CTLIB_INCLUDE="-I$CTLIB_INCDIR"
20380
20381 $as_echo "#define HAVE_CTLIB 1" >>confdefs.h
20382
20383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20384 $as_echo "yes" >&6; }
20385 have_db=yes
20386 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20387 if test "x$ac_cv_func_dlopen" = xyes; then :
20388
20389 else
20390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20391 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20392 if ${ac_cv_lib_dl_dlopen+:} false; then :
20393 $as_echo_n "(cached) " >&6
20394 else
20395 ac_check_lib_save_LIBS=$LIBS
20396 LIBS="-ldl $LIBS"
20397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20398 /* end confdefs.h. */
20399
20400 /* Override any GCC internal prototype to avoid an error.
20401 Use char because int might match the return type of a GCC
20402 builtin and then its argument prototype would still apply. */
20403 #ifdef __cplusplus
20404 extern "C"
20405 #endif
20406 char dlopen ();
20407 int
20408 main ()
20409 {
20410 return dlopen ();
20411 ;
20412 return 0;
20413 }
20414 _ACEOF
20415 if ac_fn_c_try_link "$LINENO"; then :
20416 ac_cv_lib_dl_dlopen=yes
20417 else
20418 ac_cv_lib_dl_dlopen=no
20419 fi
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20422 LIBS=$ac_check_lib_save_LIBS
20423 fi
20424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20425 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20426 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20427 CTLIB_LFLAGS="$CTLIB_LFLAGS -ldl"
20428 fi
20429
20430 fi
20431
20432 fi
20433 if test "x$DBTYPE" = "x" ; then
20434 DBTYPE="ctlib"
20435 else
20436 DBTYPE="$DBTYPE-ctlib"
20437 fi
20438
20439
20440 else
20441
20442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20443 $as_echo "no" >&6; }
20444
20445 fi
20446
20447
20448
20449
20450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeTDS Ct-Lib support" >&5
20451 $as_echo_n "checking for FreeTDS Ct-Lib support... " >&6; }
20452
20453 # Check whether --with-mssql was given.
20454 if test "${with_mssql+set}" = set; then :
20455 withval=$with_mssql;
20456 if test "$withval" = "yes"; then
20457 withval=/usr/local
20458 fi
20459
20460 if test "$withval" != "no"; then
20461 if test -f $withval/include/ctpublic.h; then
20462 CTLIB_INCDIR=$withval/include
20463 CTLIB_LIBDIR=$withval/lib
20464 else
20465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20466 $as_echo "no" >&6; }
20467 as_fn_error $? "Invalid FreeTDS directory - unable to find ctpublic.h" "$LINENO" 5
20468 fi
20469 CTLIB_LFLAGS="-L$CTLIB_LIBDIR -lct"
20470 CTLIB_INCLUDE="-I$CTLIB_INCDIR"
20471
20472 $as_echo "#define HAVE_CTLIB 1" >>confdefs.h
20473
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20475 $as_echo "yes" >&6; }
20476 have_db=yes
20477 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
20478 if test "x$ac_cv_func_dlopen" = xyes; then :
20479
20480 else
20481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
20482 $as_echo_n "checking for dlopen in -ldl... " >&6; }
20483 if ${ac_cv_lib_dl_dlopen+:} false; then :
20484 $as_echo_n "(cached) " >&6
20485 else
20486 ac_check_lib_save_LIBS=$LIBS
20487 LIBS="-ldl $LIBS"
20488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20489 /* end confdefs.h. */
20490
20491 /* Override any GCC internal prototype to avoid an error.
20492 Use char because int might match the return type of a GCC
20493 builtin and then its argument prototype would still apply. */
20494 #ifdef __cplusplus
20495 extern "C"
20496 #endif
20497 char dlopen ();
20498 int
20499 main ()
20500 {
20501 return dlopen ();
20502 ;
20503 return 0;
20504 }
20505 _ACEOF
20506 if ac_fn_c_try_link "$LINENO"; then :
20507 ac_cv_lib_dl_dlopen=yes
20508 else
20509 ac_cv_lib_dl_dlopen=no
20510 fi
20511 rm -f core conftest.err conftest.$ac_objext \
20512 conftest$ac_exeext conftest.$ac_ext
20513 LIBS=$ac_check_lib_save_LIBS
20514 fi
20515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
20516 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
20517 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
20518 CTLIB_LFLAGS="$CTLIB_LFLAGS -ldl"
20519 fi
20520
20521 fi
20522
20523 fi
20524 if test "x$DBTYPE" = "x" ; then
20525 DBTYPE="freetds"
20526 else
20527 DBTYPE="$DBTYPE-freetds"
20528 fi
20529
20530
20531 else
20532
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20534 $as_echo "no" >&6; }
20535
20536 fi
20537
20538
20539
20540
20541
20542 # Check whether --with-kannel-dir was given.
20543 if test "${with_kannel_dir+set}" = set; then :
20544 withval=$with_kannel_dir;
20545 gwloc=""
20546 if test -d "$withval" ; then
20547 gwloc="$withval"
20548 fi
20549
20550 fi
20551
20552
20553 # Extract the first word of "gw-config", so it can be a program name with args.
20554 set dummy gw-config; ac_word=$2
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20556 $as_echo_n "checking for $ac_word... " >&6; }
20557 if ${ac_cv_path_GW_CONFIG+:} false; then :
20558 $as_echo_n "(cached) " >&6
20559 else
20560 case $GW_CONFIG in
20561 [\\/]* | ?:[\\/]*)
20562 ac_cv_path_GW_CONFIG="$GW_CONFIG" # Let the user override the test with a path.
20563 ;;
20564 *)
20565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20566 as_dummy="$gwloc/bin:$gwloc:../gateway/gw/:$PATH"
20567 for as_dir in $as_dummy
20568 do
20569 IFS=$as_save_IFS
20570 test -z "$as_dir" && as_dir=.
20571 for ac_exec_ext in '' $ac_executable_extensions; do
20572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20573 ac_cv_path_GW_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20575 break 2
20576 fi
20577 done
20578 done
20579 IFS=$as_save_IFS
20580
20581 test -z "$ac_cv_path_GW_CONFIG" && ac_cv_path_GW_CONFIG="no"
20582 ;;
20583 esac
20584 fi
20585 GW_CONFIG=$ac_cv_path_GW_CONFIG
20586 if test -n "$GW_CONFIG"; then
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GW_CONFIG" >&5
20588 $as_echo "$GW_CONFIG" >&6; }
20589 else
20590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20591 $as_echo "no" >&6; }
20592 fi
20593
20594
20595 if test "$GW_CONFIG" = "no"; then
20596 found=""
20597 for loc in $pgsqlloc /usr /usr/local ; do
20598 if test "x$found" = "x" ; then
20599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kannel include files in" >&5
20600 $as_echo_n "checking for Kannel include files in... " >&6; }
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $loc" >&5
20602 $as_echo "$loc" >&6; }
20603 as_ac_File=`$as_echo "ac_cv_file_"$loc/include/kannel/gw-config.h"" | $as_tr_sh`
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for \"$loc/include/kannel/gw-config.h\"" >&5
20605 $as_echo_n "checking for \"$loc/include/kannel/gw-config.h\"... " >&6; }
20606 if eval \${$as_ac_File+:} false; then :
20607 $as_echo_n "(cached) " >&6
20608 else
20609 test "$cross_compiling" = yes &&
20610 as_fn_error $? "cannot check for file existence when cross compiling" "$LINENO" 5
20611 if test -r ""$loc/include/kannel/gw-config.h""; then
20612 eval "$as_ac_File=yes"
20613 else
20614 eval "$as_ac_File=no"
20615 fi
20616 fi
20617 eval ac_res=\$$as_ac_File
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20619 $as_echo "$ac_res" >&6; }
20620 if eval test \"x\$"$as_ac_File"\" = x"yes"; then :
20621 CFLAGS="$CFLAGS -I$loc/include/kannel -I$loc/include/kannel";
20622 LDFLAGS="$LDFLAGS -L$loc/lib/kannel -lwap -lgwlib";
20623 found=1
20624
20625 fi
20626
20627 fi
20628 done;
20629 if test "x$found" != "x1" ; then
20630 as_fn_error $? "Unable to find gw-config.h, please provide a --with-kannel-dir=<dir> location" "$LINENO" 5
20631 fi
20632 else
20633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel version" >&5
20634 $as_echo_n "checking Kannel version... " >&6; }
20635 gw_version=`$GW_CONFIG --version`
20636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_version" >&5
20637 $as_echo "$gw_version" >&6; }
20638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel libs" >&5
20639 $as_echo_n "checking Kannel libs... " >&6; }
20640 if ! $GW_CONFIG --libs &>/dev/null ; then
20641 LIBS="$LIBS `$GW_CONFIG --libs`"
20642 gw_libdir=`$GW_CONFIG --libs`
20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_libdir" >&5
20644 $as_echo "$gw_libdir" >&6; }
20645 fi
20646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Kannel includes" >&5
20647 $as_echo_n "checking Kannel includes... " >&6; }
20648 if ! $GW_CONFIG --cflags &>/dev/null ; then
20649 CFLAGS="$CFLAGS `$GW_CONFIG --cflags`"
20650 gw_incdir=`$GW_CONFIG --cflags`
20651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gw_incdir" >&5
20652 $as_echo "$gw_incdir" >&6; }
20653 fi
20654 fi
20655
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfg_create in -lgwlib" >&5
20657 $as_echo_n "checking for cfg_create in -lgwlib... " >&6; }
20658 if ${ac_cv_lib_gwlib_cfg_create+:} false; then :
20659 $as_echo_n "(cached) " >&6
20660 else
20661 ac_check_lib_save_LIBS=$LIBS
20662 LIBS="-lgwlib $LIBS"
20663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20664 /* end confdefs.h. */
20665
20666 /* Override any GCC internal prototype to avoid an error.
20667 Use char because int might match the return type of a GCC
20668 builtin and then its argument prototype would still apply. */
20669 #ifdef __cplusplus
20670 extern "C"
20671 #endif
20672 char cfg_create ();
20673 int
20674 main ()
20675 {
20676 return cfg_create ();
20677 ;
20678 return 0;
20679 }
20680 _ACEOF
20681 if ac_fn_c_try_link "$LINENO"; then :
20682 ac_cv_lib_gwlib_cfg_create=yes
20683 else
20684 ac_cv_lib_gwlib_cfg_create=no
20685 fi
20686 rm -f core conftest.err conftest.$ac_objext \
20687 conftest$ac_exeext conftest.$ac_ext
20688 LIBS=$ac_check_lib_save_LIBS
20689 fi
20690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gwlib_cfg_create" >&5
20691 $as_echo "$ac_cv_lib_gwlib_cfg_create" >&6; }
20692 if test "x$ac_cv_lib_gwlib_cfg_create" = xyes; then :
20693 cat >>confdefs.h <<_ACEOF
20694 #define HAVE_LIBGWLIB 1
20695 _ACEOF
20696
20697 LIBS="-lgwlib $LIBS"
20698
20699 else
20700 as_fn_error $? "Kannel gwlib is required!" "$LINENO" 5
20701 fi
20702
20703
20704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Kannel's DB support" >&5
20705 $as_echo_n "checking for Kannel's DB support... " >&6; }
20706
20707 if test "$cross_compiling" = yes; then :
20708 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20709 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20710 as_fn_error $? "cannot run test program while cross compiling
20711 See \`config.log' for more details" "$LINENO" 5; }
20712 else
20713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20714 /* end confdefs.h. */
20715 #include "gw-config.h"
20716 int main(
20717 #if defined(HAVE_SQLITE3)
20718 exit(0);
20719 #endif
20720 exit(1);
20721 }
20722 _ACEOF
20723 if ac_fn_c_try_run "$LINENO"; then :
20724
20725 rpm_suffix="sqlite3"
20726
20727 rpm_requires="sqlite3-devel >= 1.8"
20728
20729
20730 fi
20731 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20732 conftest.$ac_objext conftest.beam conftest.$ac_ext
20733 fi
20734
20735
20736 if test "$cross_compiling" = yes; then :
20737 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20738 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20739 as_fn_error $? "cannot run test program while cross compiling
20740 See \`config.log' for more details" "$LINENO" 5; }
20741 else
20742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743 /* end confdefs.h. */
20744 #include "gw-config.h"
20745 int main(void){
20746 #if defined(HAVE_SQLITE)
20747 exit(0);
20748 #endif
20749 exit(1);
20750 }
20751 _ACEOF
20752 if ac_fn_c_try_run "$LINENO"; then :
20753
20754 rpm_suffix="sqlite"
20755
20756 rpm_requires="sqlite2-devel >= 2.7"
20757
20758
20759 fi
20760 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20761 conftest.$ac_objext conftest.beam conftest.$ac_ext
20762 fi
20763
20764
20765 if test "$cross_compiling" = yes; then :
20766 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20767 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20768 as_fn_error $? "cannot run test program while cross compiling
20769 See \`config.log' for more details" "$LINENO" 5; }
20770 else
20771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20772 /* end confdefs.h. */
20773 #include "gw-config.h"
20774 int main(void){
20775 #if defined(HAVE_PGSQL)
20776 exit(0);
20777 #endif
20778 exit(1);
20779 }
20780 _ACEOF
20781 if ac_fn_c_try_run "$LINENO"; then :
20782
20783 rpm_suffix="pgsql"
20784
20785 rpm_requires="postgresql-devel >= 7.2"
20786
20787
20788 fi
20789 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20790 conftest.$ac_objext conftest.beam conftest.$ac_ext
20791 fi
20792
20793
20794 if test "$cross_compiling" = yes; then :
20795 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20796 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20797 as_fn_error $? "cannot run test program while cross compiling
20798 See \`config.log' for more details" "$LINENO" 5; }
20799 else
20800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20801 /* end confdefs.h. */
20802 #include "gw-config.h"
20803 int main(void){
20804 #if defined(HAVE_ORACLE)
20805 exit(0);
20806 #endif
20807 exit(1);
20808 }
20809 _ACEOF
20810 if ac_fn_c_try_run "$LINENO"; then :
20811
20812 rpm_suffix="oracle"
20813
20814 rpm_requires="oracle-instantclient-devel >= 8"
20815
20816
20817 fi
20818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20819 conftest.$ac_objext conftest.beam conftest.$ac_ext
20820 fi
20821
20822
20823 if test "$cross_compiling" = yes; then :
20824 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20826 as_fn_error $? "cannot run test program while cross compiling
20827 See \`config.log' for more details" "$LINENO" 5; }
20828 else
20829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20830 /* end confdefs.h. */
20831 #include "gw-config.h"
20832 int main(void){
20833 #if defined(HAVE_MYSQL)
20834 exit(0);
20835 #endif
20836 exit(1);
20837 }
20838 _ACEOF
20839 if ac_fn_c_try_run "$LINENO"; then :
20840
20841 rpm_suffix="mysql"
20842
20843 rpm_requires="mysql-devel >= 3.23"
20844
20845
20846 fi
20847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20848 conftest.$ac_objext conftest.beam conftest.$ac_ext
20849 fi
20850
20851
20852 if test "$cross_compiling" = yes; then :
20853 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20854 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20855 as_fn_error $? "cannot run test program while cross compiling
20856 See \`config.log' for more details" "$LINENO" 5; }
20857 else
20858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20859 /* end confdefs.h. */
20860 #include "gw-config.h"
20861 int main(void){
20862 #if defined(HAVE_SDB)
20863 exit(0);
20864 #endif
20865 exit(1);
20866 }
20867 _ACEOF
20868 if ac_fn_c_try_run "$LINENO"; then :
20869
20870 rpm_suffix="sdb"
20871
20872 rpm_requires="libsdb-devel >= 0.5"
20873
20874
20875 fi
20876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20877 conftest.$ac_objext conftest.beam conftest.$ac_ext
20878 fi
20879
20880
20881 ac_config_files="$ac_config_files Makefile gw/Makefile rpm/opensmppbox.spec"
20882
20883
20884 cat >confcache <<\_ACEOF
20885 # This file is a shell script that caches the results of configure
20886 # tests run on this system so they can be shared between configure
20887 # scripts and configure runs, see configure's option --config-cache.
20888 # It is not useful on other systems. If it contains results you don't
20889 # want to keep, you may remove or edit it.
20890 #
20891 # config.status only pays attention to the cache file if you give it
20892 # the --recheck option to rerun configure.
20893 #
20894 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20895 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20896 # following values.
20897
20898 _ACEOF
20899
20900 # The following way of writing the cache mishandles newlines in values,
20901 # but we know of no workaround that is simple, portable, and efficient.
20902 # So, we kill variables containing newlines.
20903 # Ultrix sh set writes to stderr and can't be redirected directly,
20904 # and sets the high bit in the cache file unless we assign to the vars.
20905 (
20906 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20907 eval ac_val=\$$ac_var
20908 case $ac_val in #(
20909 *${as_nl}*)
20910 case $ac_var in #(
20911 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20912 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20913 esac
20914 case $ac_var in #(
20915 _ | IFS | as_nl) ;; #(
20916 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20917 *) { eval $ac_var=; unset $ac_var;} ;;
20918 esac ;;
20919 esac
20920 done
20921
20922 (set) 2>&1 |
20923 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20924 *${as_nl}ac_space=\ *)
20925 # `set' does not quote correctly, so add quotes: double-quote
20926 # substitution turns \\\\ into \\, and sed turns \\ into \.
20927 sed -n \
20928 "s/'/'\\\\''/g;
20929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20930 ;; #(
20931 *)
20932 # `set' quotes correctly as required by POSIX, so do not add quotes.
20933 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20934 ;;
20935 esac |
20936 sort
20937 ) |
20938 sed '
20939 /^ac_cv_env_/b end
20940 t clear
20941 :clear
20942 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20943 t end
20944 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20945 :end' >>confcache
20946 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20947 if test -w "$cache_file"; then
20948 if test "x$cache_file" != "x/dev/null"; then
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20950 $as_echo "$as_me: updating cache $cache_file" >&6;}
20951 if test ! -f "$cache_file" || test -h "$cache_file"; then
20952 cat confcache >"$cache_file"
20953 else
20954 case $cache_file in #(
20955 */* | ?:*)
20956 mv -f confcache "$cache_file"$$ &&
20957 mv -f "$cache_file"$$ "$cache_file" ;; #(
20958 *)
20959 mv -f confcache "$cache_file" ;;
20960 esac
20961 fi
20962 fi
20963 else
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20965 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20966 fi
20967 fi
20968 rm -f confcache
20969
20970 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20971 # Let make expand exec_prefix.
20972 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20973
20974 DEFS=-DHAVE_CONFIG_H
20975
20976 ac_libobjs=
20977 ac_ltlibobjs=
20978 U=
20979 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20980 # 1. Remove the extension, and $U if already installed.
20981 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20982 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20983 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20984 # will be set to the directory where LIBOBJS objects are built.
20985 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20986 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20987 done
20988 LIBOBJS=$ac_libobjs
20989
20990 LTLIBOBJS=$ac_ltlibobjs
20991
20992
20993 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20994 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20995 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20996 fi
20997 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20998 as_fn_error $? "conditional \"AMDEP\" was never defined.
20999 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21000 fi
21001 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21002 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
21003 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21004 fi
21005 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21006 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
21007 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21008 fi
21009
21010 : "${CONFIG_STATUS=./config.status}"
21011 ac_write_fail=0
21012 ac_clean_files_save=$ac_clean_files
21013 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21014 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21015 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21016 as_write_fail=0
21017 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21018 #! $SHELL
21019 # Generated by $as_me.
21020 # Run this file to recreate the current configuration.
21021 # Compiler output produced by configure, useful for debugging
21022 # configure, is in config.log if it exists.
21023
21024 debug=false
21025 ac_cs_recheck=false
21026 ac_cs_silent=false
21027
21028 SHELL=\${CONFIG_SHELL-$SHELL}
21029 export SHELL
21030 _ASEOF
21031 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21032 ## -------------------- ##
21033 ## M4sh Initialization. ##
21034 ## -------------------- ##
21035
21036 # Be more Bourne compatible
21037 DUALCASE=1; export DUALCASE # for MKS sh
21038 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21039 emulate sh
21040 NULLCMD=:
21041 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21042 # is contrary to our usage. Disable this feature.
21043 alias -g '${1+"$@"}'='"$@"'
21044 setopt NO_GLOB_SUBST
21045 else
21046 case `(set -o) 2>/dev/null` in #(
21047 *posix*) :
21048 set -o posix ;; #(
21049 *) :
21050 ;;
21051 esac
21052 fi
21053
21054
21055 as_nl='
21056 '
21057 export as_nl
21058 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21059 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21060 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21061 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21062 # Prefer a ksh shell builtin over an external printf program on Solaris,
21063 # but without wasting forks for bash or zsh.
21064 if test -z "$BASH_VERSION$ZSH_VERSION" \
21065 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21066 as_echo='print -r --'
21067 as_echo_n='print -rn --'
21068 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21069 as_echo='printf %s\n'
21070 as_echo_n='printf %s'
21071 else
21072 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21073 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21074 as_echo_n='/usr/ucb/echo -n'
21075 else
21076 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21077 as_echo_n_body='eval
21078 arg=$1;
21079 case $arg in #(
21080 *"$as_nl"*)
21081 expr "X$arg" : "X\\(.*\\)$as_nl";
21082 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21083 esac;
21084 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21085 '
21086 export as_echo_n_body
21087 as_echo_n='sh -c $as_echo_n_body as_echo'
21088 fi
21089 export as_echo_body
21090 as_echo='sh -c $as_echo_body as_echo'
21091 fi
21092
21093 # The user is always right.
21094 if test "${PATH_SEPARATOR+set}" != set; then
21095 PATH_SEPARATOR=:
21096 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21097 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21098 PATH_SEPARATOR=';'
21099 }
21100 fi
21101
21102
21103 # IFS
21104 # We need space, tab and new line, in precisely that order. Quoting is
21105 # there to prevent editors from complaining about space-tab.
21106 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21107 # splitting by setting IFS to empty value.)
21108 IFS=" "" $as_nl"
21109
21110 # Find who we are. Look in the path if we contain no directory separator.
21111 as_myself=
21112 case $0 in #((
21113 *[\\/]* ) as_myself=$0 ;;
21114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21115 for as_dir in $PATH
21116 do
21117 IFS=$as_save_IFS
21118 test -z "$as_dir" && as_dir=.
21119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21120 done
21121 IFS=$as_save_IFS
21122
21123 ;;
21124 esac
21125 # We did not find ourselves, most probably we were run as `sh COMMAND'
21126 # in which case we are not to be found in the path.
21127 if test "x$as_myself" = x; then
21128 as_myself=$0
21129 fi
21130 if test ! -f "$as_myself"; then
21131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21132 exit 1
21133 fi
21134
21135 # Unset variables that we do not need and which cause bugs (e.g. in
21136 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21137 # suppresses any "Segmentation fault" message there. '((' could
21138 # trigger a bug in pdksh 5.2.14.
21139 for as_var in BASH_ENV ENV MAIL MAILPATH
21140 do eval test x\${$as_var+set} = xset \
21141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21142 done
21143 PS1='$ '
21144 PS2='> '
21145 PS4='+ '
21146
21147 # NLS nuisances.
21148 LC_ALL=C
21149 export LC_ALL
21150 LANGUAGE=C
21151 export LANGUAGE
21152
21153 # CDPATH.
21154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21155
21156
21157 # as_fn_error STATUS ERROR [LINENO LOG_FD]
21158 # ----------------------------------------
21159 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21160 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21161 # script with STATUS, using 1 if that was 0.
21162 as_fn_error ()
21163 {
21164 as_status=$1; test $as_status -eq 0 && as_status=1
21165 if test "$4"; then
21166 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21167 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21168 fi
21169 $as_echo "$as_me: error: $2" >&2
21170 as_fn_exit $as_status
21171 } # as_fn_error
21172
21173
21174 # as_fn_set_status STATUS
21175 # -----------------------
21176 # Set $? to STATUS, without forking.
21177 as_fn_set_status ()
21178 {
21179 return $1
21180 } # as_fn_set_status
21181
21182 # as_fn_exit STATUS
21183 # -----------------
21184 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21185 as_fn_exit ()
21186 {
21187 set +e
21188 as_fn_set_status $1
21189 exit $1
21190 } # as_fn_exit
21191
21192 # as_fn_unset VAR
21193 # ---------------
21194 # Portably unset VAR.
21195 as_fn_unset ()
21196 {
21197 { eval $1=; unset $1;}
21198 }
21199 as_unset=as_fn_unset
21200 # as_fn_append VAR VALUE
21201 # ----------------------
21202 # Append the text in VALUE to the end of the definition contained in VAR. Take
21203 # advantage of any shell optimizations that allow amortized linear growth over
21204 # repeated appends, instead of the typical quadratic growth present in naive
21205 # implementations.
21206 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21207 eval 'as_fn_append ()
21208 {
21209 eval $1+=\$2
21210 }'
21211 else
21212 as_fn_append ()
21213 {
21214 eval $1=\$$1\$2
21215 }
21216 fi # as_fn_append
21217
21218 # as_fn_arith ARG...
21219 # ------------------
21220 # Perform arithmetic evaluation on the ARGs, and store the result in the
21221 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21222 # must be portable across $(()) and expr.
21223 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21224 eval 'as_fn_arith ()
21225 {
21226 as_val=$(( $* ))
21227 }'
21228 else
21229 as_fn_arith ()
21230 {
21231 as_val=`expr "$@" || test $? -eq 1`
21232 }
21233 fi # as_fn_arith
21234
21235
21236 if expr a : '\(a\)' >/dev/null 2>&1 &&
21237 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21238 as_expr=expr
21239 else
21240 as_expr=false
21241 fi
21242
21243 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21244 as_basename=basename
21245 else
21246 as_basename=false
21247 fi
21248
21249 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21250 as_dirname=dirname
21251 else
21252 as_dirname=false
21253 fi
21254
21255 as_me=`$as_basename -- "$0" ||
21256 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21257 X"$0" : 'X\(//\)$' \| \
21258 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21259 $as_echo X/"$0" |
21260 sed '/^.*\/\([^/][^/]*\)\/*$/{
21261 s//\1/
21262 q
21263 }
21264 /^X\/\(\/\/\)$/{
21265 s//\1/
21266 q
21267 }
21268 /^X\/\(\/\).*/{
21269 s//\1/
21270 q
21271 }
21272 s/.*/./; q'`
21273
21274 # Avoid depending upon Character Ranges.
21275 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21276 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21277 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21278 as_cr_digits='0123456789'
21279 as_cr_alnum=$as_cr_Letters$as_cr_digits
21280
21281 ECHO_C= ECHO_N= ECHO_T=
21282 case `echo -n x` in #(((((
21283 -n*)
21284 case `echo 'xy\c'` in
21285 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21286 xy) ECHO_C='\c';;
21287 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21288 ECHO_T=' ';;
21289 esac;;
21290 *)
21291 ECHO_N='-n';;
21292 esac
21293
21294 rm -f conf$$ conf$$.exe conf$$.file
21295 if test -d conf$$.dir; then
21296 rm -f conf$$.dir/conf$$.file
21297 else
21298 rm -f conf$$.dir
21299 mkdir conf$$.dir 2>/dev/null
21300 fi
21301 if (echo >conf$$.file) 2>/dev/null; then
21302 if ln -s conf$$.file conf$$ 2>/dev/null; then
21303 as_ln_s='ln -s'
21304 # ... but there are two gotchas:
21305 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21306 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21307 # In both cases, we have to default to `cp -pR'.
21308 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21309 as_ln_s='cp -pR'
21310 elif ln conf$$.file conf$$ 2>/dev/null; then
21311 as_ln_s=ln
21312 else
21313 as_ln_s='cp -pR'
21314 fi
21315 else
21316 as_ln_s='cp -pR'
21317 fi
21318 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21319 rmdir conf$$.dir 2>/dev/null
21320
21321
21322 # as_fn_mkdir_p
21323 # -------------
21324 # Create "$as_dir" as a directory, including parents if necessary.
21325 as_fn_mkdir_p ()
21326 {
21327
21328 case $as_dir in #(
21329 -*) as_dir=./$as_dir;;
21330 esac
21331 test -d "$as_dir" || eval $as_mkdir_p || {
21332 as_dirs=
21333 while :; do
21334 case $as_dir in #(
21335 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21336 *) as_qdir=$as_dir;;
21337 esac
21338 as_dirs="'$as_qdir' $as_dirs"
21339 as_dir=`$as_dirname -- "$as_dir" ||
21340 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21341 X"$as_dir" : 'X\(//\)[^/]' \| \
21342 X"$as_dir" : 'X\(//\)$' \| \
21343 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21344 $as_echo X"$as_dir" |
21345 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21346 s//\1/
21347 q
21348 }
21349 /^X\(\/\/\)[^/].*/{
21350 s//\1/
21351 q
21352 }
21353 /^X\(\/\/\)$/{
21354 s//\1/
21355 q
21356 }
21357 /^X\(\/\).*/{
21358 s//\1/
21359 q
21360 }
21361 s/.*/./; q'`
21362 test -d "$as_dir" && break
21363 done
21364 test -z "$as_dirs" || eval "mkdir $as_dirs"
21365 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21366
21367
21368 } # as_fn_mkdir_p
21369 if mkdir -p . 2>/dev/null; then
21370 as_mkdir_p='mkdir -p "$as_dir"'
21371 else
21372 test -d ./-p && rmdir ./-p
21373 as_mkdir_p=false
21374 fi
21375
21376
21377 # as_fn_executable_p FILE
21378 # -----------------------
21379 # Test if FILE is an executable regular file.
21380 as_fn_executable_p ()
21381 {
21382 test -f "$1" && test -x "$1"
21383 } # as_fn_executable_p
21384 as_test_x='test -x'
21385 as_executable_p=as_fn_executable_p
21386
21387 # Sed expression to map a string onto a valid CPP name.
21388 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21389
21390 # Sed expression to map a string onto a valid variable name.
21391 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21392
21393
21394 exec 6>&1
21395 ## ----------------------------------- ##
21396 ## Main body of $CONFIG_STATUS script. ##
21397 ## ----------------------------------- ##
21398 _ASEOF
21399 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21400
21401 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21402 # Save the log message, to keep $0 and so on meaningful, and to
21403 # report actual input values of CONFIG_FILES etc. instead of their
21404 # values after options handling.
21405 ac_log="
21406 This file was extended by opensmppbox $as_me svn, which was
21407 generated by GNU Autoconf 2.69. Invocation command line was
21408
21409 CONFIG_FILES = $CONFIG_FILES
21410 CONFIG_HEADERS = $CONFIG_HEADERS
21411 CONFIG_LINKS = $CONFIG_LINKS
21412 CONFIG_COMMANDS = $CONFIG_COMMANDS
21413 $ $0 $@
21414
21415 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21416 "
21417
21418 _ACEOF
21419
21420 case $ac_config_files in *"
21421 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21422 esac
21423
21424 case $ac_config_headers in *"
21425 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21426 esac
21427
21428
21429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21430 # Files that config.status was made for.
21431 config_files="$ac_config_files"
21432 config_headers="$ac_config_headers"
21433 config_commands="$ac_config_commands"
21434
21435 _ACEOF
21436
21437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21438 ac_cs_usage="\
21439 \`$as_me' instantiates files and other configuration actions
21440 from templates according to the current configuration. Unless the files
21441 and actions are specified as TAGs, all are instantiated by default.
21442
21443 Usage: $0 [OPTION]... [TAG]...
21444
21445 -h, --help print this help, then exit
21446 -V, --version print version number and configuration settings, then exit
21447 --config print configuration, then exit
21448 -q, --quiet, --silent
21449 do not print progress messages
21450 -d, --debug don't remove temporary files
21451 --recheck update $as_me by reconfiguring in the same conditions
21452 --file=FILE[:TEMPLATE]
21453 instantiate the configuration file FILE
21454 --header=FILE[:TEMPLATE]
21455 instantiate the configuration header FILE
21456
21457 Configuration files:
21458 $config_files
21459
21460 Configuration headers:
21461 $config_headers
21462
21463 Configuration commands:
21464 $config_commands
21465
21466 Report bugs to <[email protected]>."
21467
21468 _ACEOF
21469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21470 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21471 ac_cs_version="\\
21472 opensmppbox config.status svn
21473 configured by $0, generated by GNU Autoconf 2.69,
21474 with options \\"\$ac_cs_config\\"
21475
21476 Copyright (C) 2012 Free Software Foundation, Inc.
21477 This config.status script is free software; the Free Software Foundation
21478 gives unlimited permission to copy, distribute and modify it."
21479
21480 ac_pwd='$ac_pwd'
21481 srcdir='$srcdir'
21482 INSTALL='$INSTALL'
21483 AWK='$AWK'
21484 test -n "\$AWK" || AWK=awk
21485 _ACEOF
21486
21487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21488 # The default lists apply if the user does not specify any file.
21489 ac_need_defaults=:
21490 while test $# != 0
21491 do
21492 case $1 in
21493 --*=?*)
21494 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21495 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21496 ac_shift=:
21497 ;;
21498 --*=)
21499 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21500 ac_optarg=
21501 ac_shift=:
21502 ;;
21503 *)
21504 ac_option=$1
21505 ac_optarg=$2
21506 ac_shift=shift
21507 ;;
21508 esac
21509
21510 case $ac_option in
21511 # Handling of the options.
21512 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21513 ac_cs_recheck=: ;;
21514 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21515 $as_echo "$ac_cs_version"; exit ;;
21516 --config | --confi | --conf | --con | --co | --c )
21517 $as_echo "$ac_cs_config"; exit ;;
21518 --debug | --debu | --deb | --de | --d | -d )
21519 debug=: ;;
21520 --file | --fil | --fi | --f )
21521 $ac_shift
21522 case $ac_optarg in
21523 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21524 '') as_fn_error $? "missing file argument" ;;
21525 esac
21526 as_fn_append CONFIG_FILES " '$ac_optarg'"
21527 ac_need_defaults=false;;
21528 --header | --heade | --head | --hea )
21529 $ac_shift
21530 case $ac_optarg in
21531 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21532 esac
21533 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21534 ac_need_defaults=false;;
21535 --he | --h)
21536 # Conflict between --help and --header
21537 as_fn_error $? "ambiguous option: \`$1'
21538 Try \`$0 --help' for more information.";;
21539 --help | --hel | -h )
21540 $as_echo "$ac_cs_usage"; exit ;;
21541 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21542 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21543 ac_cs_silent=: ;;
21544
21545 # This is an error.
21546 -*) as_fn_error $? "unrecognized option: \`$1'
21547 Try \`$0 --help' for more information." ;;
21548
21549 *) as_fn_append ac_config_targets " $1"
21550 ac_need_defaults=false ;;
21551
21552 esac
21553 shift
21554 done
21555
21556 ac_configure_extra_args=
21557
21558 if $ac_cs_silent; then
21559 exec 6>/dev/null
21560 ac_configure_extra_args="$ac_configure_extra_args --silent"
21561 fi
21562
21563 _ACEOF
21564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21565 if \$ac_cs_recheck; then
21566 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21567 shift
21568 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21569 CONFIG_SHELL='$SHELL'
21570 export CONFIG_SHELL
21571 exec "\$@"
21572 fi
21573
21574 _ACEOF
21575 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21576 exec 5>>config.log
21577 {
21578 echo
21579 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21580 ## Running $as_me. ##
21581 _ASBOX
21582 $as_echo "$ac_log"
21583 } >&5
21584
21585 _ACEOF
21586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21587 #
21588 # INIT-COMMANDS
21589 #
21590 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21591
21592 _ACEOF
21593
21594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21595
21596 # Handling of arguments.
21597 for ac_config_target in $ac_config_targets
21598 do
21599 case $ac_config_target in
21600 "sb-config.h") CONFIG_HEADERS="$CONFIG_HEADERS sb-config.h" ;;
21601 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21602 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21603 "gw/Makefile") CONFIG_FILES="$CONFIG_FILES gw/Makefile" ;;
21604 "rpm/opensmppbox.spec") CONFIG_FILES="$CONFIG_FILES rpm/opensmppbox.spec" ;;
21605
21606 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21607 esac
21608 done
21609
21610
21611 # If the user did not use the arguments to specify the items to instantiate,
21612 # then the envvar interface is used. Set only those that are not.
21613 # We use the long form for the default assignment because of an extremely
21614 # bizarre bug on SunOS 4.1.3.
21615 if $ac_need_defaults; then
21616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21619 fi
21620
21621 # Have a temporary directory for convenience. Make it in the build tree
21622 # simply because there is no reason against having it here, and in addition,
21623 # creating and moving files from /tmp can sometimes cause problems.
21624 # Hook for its removal unless debugging.
21625 # Note that there is a small window in which the directory will not be cleaned:
21626 # after its creation but before its name has been assigned to `$tmp'.
21627 $debug ||
21628 {
21629 tmp= ac_tmp=
21630 trap 'exit_status=$?
21631 : "${ac_tmp:=$tmp}"
21632 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21633 ' 0
21634 trap 'as_fn_exit 1' 1 2 13 15
21635 }
21636 # Create a (secure) tmp directory for tmp files.
21637
21638 {
21639 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21640 test -d "$tmp"
21641 } ||
21642 {
21643 tmp=./conf$$-$RANDOM
21644 (umask 077 && mkdir "$tmp")
21645 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21646 ac_tmp=$tmp
21647
21648 # Set up the scripts for CONFIG_FILES section.
21649 # No need to generate them if there are no CONFIG_FILES.
21650 # This happens for instance with `./config.status config.h'.
21651 if test -n "$CONFIG_FILES"; then
21652
21653
21654 ac_cr=`echo X | tr X '\015'`
21655 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21656 # But we know of no other shell where ac_cr would be empty at this
21657 # point, so we can use a bashism as a fallback.
21658 if test "x$ac_cr" = x; then
21659 eval ac_cr=\$\'\\r\'
21660 fi
21661 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21662 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21663 ac_cs_awk_cr='\\r'
21664 else
21665 ac_cs_awk_cr=$ac_cr
21666 fi
21667
21668 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21669 _ACEOF
21670
21671
21672 {
21673 echo "cat >conf$$subs.awk <<_ACEOF" &&
21674 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21675 echo "_ACEOF"
21676 } >conf$$subs.sh ||
21677 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21678 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21679 ac_delim='%!_!# '
21680 for ac_last_try in false false false false false :; do
21681 . ./conf$$subs.sh ||
21682 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21683
21684 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21685 if test $ac_delim_n = $ac_delim_num; then
21686 break
21687 elif $ac_last_try; then
21688 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21689 else
21690 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21691 fi
21692 done
21693 rm -f conf$$subs.sh
21694
21695 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21696 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21697 _ACEOF
21698 sed -n '
21699 h
21700 s/^/S["/; s/!.*/"]=/
21701 p
21702 g
21703 s/^[^!]*!//
21704 :repl
21705 t repl
21706 s/'"$ac_delim"'$//
21707 t delim
21708 :nl
21709 h
21710 s/\(.\{148\}\)..*/\1/
21711 t more1
21712 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21713 p
21714 n
21715 b repl
21716 :more1
21717 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21718 p
21719 g
21720 s/.\{148\}//
21721 t nl
21722 :delim
21723 h
21724 s/\(.\{148\}\)..*/\1/
21725 t more2
21726 s/["\\]/\\&/g; s/^/"/; s/$/"/
21727 p
21728 b
21729 :more2
21730 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21731 p
21732 g
21733 s/.\{148\}//
21734 t delim
21735 ' <conf$$subs.awk | sed '
21736 /^[^""]/{
21737 N
21738 s/\n//
21739 }
21740 ' >>$CONFIG_STATUS || ac_write_fail=1
21741 rm -f conf$$subs.awk
21742 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21743 _ACAWK
21744 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21745 for (key in S) S_is_set[key] = 1
21746 FS = ""
21747
21748 }
21749 {
21750 line = $ 0
21751 nfields = split(line, field, "@")
21752 substed = 0
21753 len = length(field[1])
21754 for (i = 2; i < nfields; i++) {
21755 key = field[i]
21756 keylen = length(key)
21757 if (S_is_set[key]) {
21758 value = S[key]
21759 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21760 len += length(value) + length(field[++i])
21761 substed = 1
21762 } else
21763 len += 1 + keylen
21764 }
21765
21766 print line
21767 }
21768
21769 _ACAWK
21770 _ACEOF
21771 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21772 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21773 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21774 else
21775 cat
21776 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21777 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21778 _ACEOF
21779
21780 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21781 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21782 # trailing colons and then remove the whole line if VPATH becomes empty
21783 # (actually we leave an empty line to preserve line numbers).
21784 if test "x$srcdir" = x.; then
21785 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21786 h
21787 s///
21788 s/^/:/
21789 s/[ ]*$/:/
21790 s/:\$(srcdir):/:/g
21791 s/:\${srcdir}:/:/g
21792 s/:@srcdir@:/:/g
21793 s/^:*//
21794 s/:*$//
21795 x
21796 s/\(=[ ]*\).*/\1/
21797 G
21798 s/\n//
21799 s/^[^=]*=[ ]*$//
21800 }'
21801 fi
21802
21803 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21804 fi # test -n "$CONFIG_FILES"
21805
21806 # Set up the scripts for CONFIG_HEADERS section.
21807 # No need to generate them if there are no CONFIG_HEADERS.
21808 # This happens for instance with `./config.status Makefile'.
21809 if test -n "$CONFIG_HEADERS"; then
21810 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21811 BEGIN {
21812 _ACEOF
21813
21814 # Transform confdefs.h into an awk script `defines.awk', embedded as
21815 # here-document in config.status, that substitutes the proper values into
21816 # config.h.in to produce config.h.
21817
21818 # Create a delimiter string that does not exist in confdefs.h, to ease
21819 # handling of long lines.
21820 ac_delim='%!_!# '
21821 for ac_last_try in false false :; do
21822 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21823 if test -z "$ac_tt"; then
21824 break
21825 elif $ac_last_try; then
21826 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21827 else
21828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21829 fi
21830 done
21831
21832 # For the awk script, D is an array of macro values keyed by name,
21833 # likewise P contains macro parameters if any. Preserve backslash
21834 # newline sequences.
21835
21836 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21837 sed -n '
21838 s/.\{148\}/&'"$ac_delim"'/g
21839 t rset
21840 :rset
21841 s/^[ ]*#[ ]*define[ ][ ]*/ /
21842 t def
21843 d
21844 :def
21845 s/\\$//
21846 t bsnl
21847 s/["\\]/\\&/g
21848 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21849 D["\1"]=" \3"/p
21850 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21851 d
21852 :bsnl
21853 s/["\\]/\\&/g
21854 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21855 D["\1"]=" \3\\\\\\n"\\/p
21856 t cont
21857 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21858 t cont
21859 d
21860 :cont
21861 n
21862 s/.\{148\}/&'"$ac_delim"'/g
21863 t clear
21864 :clear
21865 s/\\$//
21866 t bsnlc
21867 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21868 d
21869 :bsnlc
21870 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21871 b cont
21872 ' <confdefs.h | sed '
21873 s/'"$ac_delim"'/"\\\
21874 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21875
21876 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21877 for (key in D) D_is_set[key] = 1
21878 FS = ""
21879 }
21880 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21881 line = \$ 0
21882 split(line, arg, " ")
21883 if (arg[1] == "#") {
21884 defundef = arg[2]
21885 mac1 = arg[3]
21886 } else {
21887 defundef = substr(arg[1], 2)
21888 mac1 = arg[2]
21889 }
21890 split(mac1, mac2, "(") #)
21891 macro = mac2[1]
21892 prefix = substr(line, 1, index(line, defundef) - 1)
21893 if (D_is_set[macro]) {
21894 # Preserve the white space surrounding the "#".
21895 print prefix "define", macro P[macro] D[macro]
21896 next
21897 } else {
21898 # Replace #undef with comments. This is necessary, for example,
21899 # in the case of _POSIX_SOURCE, which is predefined and required
21900 # on some systems where configure will not decide to define it.
21901 if (defundef == "undef") {
21902 print "/*", prefix defundef, macro, "*/"
21903 next
21904 }
21905 }
21906 }
21907 { print }
21908 _ACAWK
21909 _ACEOF
21910 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21911 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21912 fi # test -n "$CONFIG_HEADERS"
21913
21914
21915 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21916 shift
21917 for ac_tag
21918 do
21919 case $ac_tag in
21920 :[FHLC]) ac_mode=$ac_tag; continue;;
21921 esac
21922 case $ac_mode$ac_tag in
21923 :[FHL]*:*);;
21924 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21925 :[FH]-) ac_tag=-:-;;
21926 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21927 esac
21928 ac_save_IFS=$IFS
21929 IFS=:
21930 set x $ac_tag
21931 IFS=$ac_save_IFS
21932 shift
21933 ac_file=$1
21934 shift
21935
21936 case $ac_mode in
21937 :L) ac_source=$1;;
21938 :[FH])
21939 ac_file_inputs=
21940 for ac_f
21941 do
21942 case $ac_f in
21943 -) ac_f="$ac_tmp/stdin";;
21944 *) # Look for the file first in the build tree, then in the source tree
21945 # (if the path is not absolute). The absolute path cannot be DOS-style,
21946 # because $ac_f cannot contain `:'.
21947 test -f "$ac_f" ||
21948 case $ac_f in
21949 [\\/$]*) false;;
21950 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21951 esac ||
21952 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21953 esac
21954 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21955 as_fn_append ac_file_inputs " '$ac_f'"
21956 done
21957
21958 # Let's still pretend it is `configure' which instantiates (i.e., don't
21959 # use $as_me), people would be surprised to read:
21960 # /* config.h. Generated by config.status. */
21961 configure_input='Generated from '`
21962 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21963 `' by configure.'
21964 if test x"$ac_file" != x-; then
21965 configure_input="$ac_file. $configure_input"
21966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21967 $as_echo "$as_me: creating $ac_file" >&6;}
21968 fi
21969 # Neutralize special characters interpreted by sed in replacement strings.
21970 case $configure_input in #(
21971 *\&* | *\|* | *\\* )
21972 ac_sed_conf_input=`$as_echo "$configure_input" |
21973 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21974 *) ac_sed_conf_input=$configure_input;;
21975 esac
21976
21977 case $ac_tag in
21978 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21980 esac
21981 ;;
21982 esac
21983
21984 ac_dir=`$as_dirname -- "$ac_file" ||
21985 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21986 X"$ac_file" : 'X\(//\)[^/]' \| \
21987 X"$ac_file" : 'X\(//\)$' \| \
21988 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21989 $as_echo X"$ac_file" |
21990 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21991 s//\1/
21992 q
21993 }
21994 /^X\(\/\/\)[^/].*/{
21995 s//\1/
21996 q
21997 }
21998 /^X\(\/\/\)$/{
21999 s//\1/
22000 q
22001 }
22002 /^X\(\/\).*/{
22003 s//\1/
22004 q
22005 }
22006 s/.*/./; q'`
22007 as_dir="$ac_dir"; as_fn_mkdir_p
22008 ac_builddir=.
22009
22010 case "$ac_dir" in
22011 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22012 *)
22013 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22014 # A ".." for each directory in $ac_dir_suffix.
22015 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22016 case $ac_top_builddir_sub in
22017 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22018 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22019 esac ;;
22020 esac
22021 ac_abs_top_builddir=$ac_pwd
22022 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22023 # for backward compatibility:
22024 ac_top_builddir=$ac_top_build_prefix
22025
22026 case $srcdir in
22027 .) # We are building in place.
22028 ac_srcdir=.
22029 ac_top_srcdir=$ac_top_builddir_sub
22030 ac_abs_top_srcdir=$ac_pwd ;;
22031 [\\/]* | ?:[\\/]* ) # Absolute name.
22032 ac_srcdir=$srcdir$ac_dir_suffix;
22033 ac_top_srcdir=$srcdir
22034 ac_abs_top_srcdir=$srcdir ;;
22035 *) # Relative name.
22036 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22037 ac_top_srcdir=$ac_top_build_prefix$srcdir
22038 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22039 esac
22040 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22041
22042
22043 case $ac_mode in
22044 :F)
22045 #
22046 # CONFIG_FILE
22047 #
22048
22049 case $INSTALL in
22050 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22051 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22052 esac
22053 _ACEOF
22054
22055 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22056 # If the template does not know about datarootdir, expand it.
22057 # FIXME: This hack should be removed a few years after 2.60.
22058 ac_datarootdir_hack=; ac_datarootdir_seen=
22059 ac_sed_dataroot='
22060 /datarootdir/ {
22061 p
22062 q
22063 }
22064 /@datadir@/p
22065 /@docdir@/p
22066 /@infodir@/p
22067 /@localedir@/p
22068 /@mandir@/p'
22069 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22070 *datarootdir*) ac_datarootdir_seen=yes;;
22071 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22073 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22074 _ACEOF
22075 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22076 ac_datarootdir_hack='
22077 s&@datadir@&$datadir&g
22078 s&@docdir@&$docdir&g
22079 s&@infodir@&$infodir&g
22080 s&@localedir@&$localedir&g
22081 s&@mandir@&$mandir&g
22082 s&\\\${datarootdir}&$datarootdir&g' ;;
22083 esac
22084 _ACEOF
22085
22086 # Neutralize VPATH when `$srcdir' = `.'.
22087 # Shell code in configure.ac might set extrasub.
22088 # FIXME: do we really want to maintain this feature?
22089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22090 ac_sed_extra="$ac_vpsub
22091 $extrasub
22092 _ACEOF
22093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22094 :t
22095 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22096 s|@configure_input@|$ac_sed_conf_input|;t t
22097 s&@top_builddir@&$ac_top_builddir_sub&;t t
22098 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22099 s&@srcdir@&$ac_srcdir&;t t
22100 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22101 s&@top_srcdir@&$ac_top_srcdir&;t t
22102 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22103 s&@builddir@&$ac_builddir&;t t
22104 s&@abs_builddir@&$ac_abs_builddir&;t t
22105 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22106 s&@INSTALL@&$ac_INSTALL&;t t
22107 $ac_datarootdir_hack
22108 "
22109 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22110 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22111
22112 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22113 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22114 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22115 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22117 which seems to be undefined. Please make sure it is defined" >&5
22118 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22119 which seems to be undefined. Please make sure it is defined" >&2;}
22120
22121 rm -f "$ac_tmp/stdin"
22122 case $ac_file in
22123 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22124 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22125 esac \
22126 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22127 ;;
22128 :H)
22129 #
22130 # CONFIG_HEADER
22131 #
22132 if test x"$ac_file" != x-; then
22133 {
22134 $as_echo "/* $configure_input */" \
22135 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22136 } >"$ac_tmp/config.h" \
22137 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22138 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22139 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22140 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22141 else
22142 rm -f "$ac_file"
22143 mv "$ac_tmp/config.h" "$ac_file" \
22144 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22145 fi
22146 else
22147 $as_echo "/* $configure_input */" \
22148 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22149 || as_fn_error $? "could not create -" "$LINENO" 5
22150 fi
22151 # Compute "$ac_file"'s index in $config_headers.
22152 _am_stamp_count=1
22153 for _am_header in $config_headers :; do
22154 case $_am_header in
22155 "$ac_file" | "$ac_file":* )
22156 break ;;
22157 * )
22158 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22159 esac
22160 done
22161 echo "timestamp for "$ac_file"" >`$as_dirname -- "$ac_file" ||
22162 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22163 X"$ac_file" : 'X\(//\)[^/]' \| \
22164 X"$ac_file" : 'X\(//\)$' \| \
22165 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22166 $as_echo X"$ac_file" |
22167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22168 s//\1/
22169 q
22170 }
22171 /^X\(\/\/\)[^/].*/{
22172 s//\1/
22173 q
22174 }
22175 /^X\(\/\/\)$/{
22176 s//\1/
22177 q
22178 }
22179 /^X\(\/\).*/{
22180 s//\1/
22181 q
22182 }
22183 s/.*/./; q'`/stamp-h$_am_stamp_count
22184 ;;
22185
22186 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22187 $as_echo "$as_me: executing $ac_file commands" >&6;}
22188 ;;
22189 esac
22190
22191
22192 case $ac_file$ac_mode in
22193 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
22194 # Strip MF so we end up with the name of the file.
22195 mf=`echo "$mf" | sed -e 's/:.*$//'`
22196 # Check whether this is an Automake generated Makefile or not.
22197 # We used to match only the files named `Makefile.in', but
22198 # some people rename them; so instead we look at the file content.
22199 # Grep'ing the first line is not enough: some people post-process
22200 # each Makefile.in and add a new line on top of each file to say so.
22201 # So let's grep whole file.
22202 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
22203 dirpart=`$as_dirname -- "$mf" ||
22204 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22205 X"$mf" : 'X\(//\)[^/]' \| \
22206 X"$mf" : 'X\(//\)$' \| \
22207 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22208 $as_echo X"$mf" |
22209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22210 s//\1/
22211 q
22212 }
22213 /^X\(\/\/\)[^/].*/{
22214 s//\1/
22215 q
22216 }
22217 /^X\(\/\/\)$/{
22218 s//\1/
22219 q
22220 }
22221 /^X\(\/\).*/{
22222 s//\1/
22223 q
22224 }
22225 s/.*/./; q'`
22226 else
22227 continue
22228 fi
22229 # Extract the definition of DEPDIR, am__include, and am__quote
22230 # from the Makefile without running `make'.
22231 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22232 test -z "$DEPDIR" && continue
22233 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22234 test -z "am__include" && continue
22235 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22236 # When using ansi2knr, U may be empty or an underscore; expand it
22237 U=`sed -n 's/^U = //p' < "$mf"`
22238 # Find all dependency output files, they are included files with
22239 # $(DEPDIR) in their names. We invoke sed twice because it is the
22240 # simplest approach to changing $(DEPDIR) to its actual value in the
22241 # expansion.
22242 for file in `sed -n "
22243 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22244 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22245 # Make sure the directory exists.
22246 test -f "$dirpart/$file" && continue
22247 fdir=`$as_dirname -- "$file" ||
22248 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22249 X"$file" : 'X\(//\)[^/]' \| \
22250 X"$file" : 'X\(//\)$' \| \
22251 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22252 $as_echo X"$file" |
22253 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22254 s//\1/
22255 q
22256 }
22257 /^X\(\/\/\)[^/].*/{
22258 s//\1/
22259 q
22260 }
22261 /^X\(\/\/\)$/{
22262 s//\1/
22263 q
22264 }
22265 /^X\(\/\).*/{
22266 s//\1/
22267 q
22268 }
22269 s/.*/./; q'`
22270 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22271 # echo "creating $dirpart/$file"
22272 echo '# dummy' > "$dirpart/$file"
22273 done
22274 done
22275 ;;
22276
22277 esac
22278 done # for ac_tag
22279
22280
22281 as_fn_exit 0
22282 _ACEOF
22283 ac_clean_files=$ac_clean_files_save
22284
22285 test $ac_write_fail = 0 ||
22286 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22287
22288
22289 # configure is writing to config.log, and then calls config.status.
22290 # config.status does its own redirection, appending to config.log.
22291 # Unfortunately, on DOS this fails, as config.log is still kept open
22292 # by configure, so config.status won't be able to write to it; its
22293 # output is simply discarded. So we exec the FD to /dev/null,
22294 # effectively closing config.log, so it can be properly (re)opened and
22295 # appended to by config.status. When coming back to configure, we
22296 # need to make the FD available again.
22297 if test "$no_create" != yes; then
22298 ac_cs_success=:
22299 ac_config_status_args=
22300 test "$silent" = yes &&
22301 ac_config_status_args="$ac_config_status_args --quiet"
22302 exec 5>/dev/null
22303 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22304 exec 5>>config.log
22305 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22306 # would make configure fail if this is the last instruction.
22307 $ac_cs_success || as_fn_exit 1
22308 fi
22309 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22311 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22312 fi
22313