blob: d339d56e9b885c10fae92ef687cb559038581832 [file] [log] [blame]
San Mehata430b2b2014-09-23 08:30:51 -07001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for LibVNCServer 0.9.9.
4#
5# Report bugs to <http://sourceforge.net/projects/libvncserver>.
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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 }
81fi
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.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
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
102IFS=$as_save_IFS
103
104 ;;
105esac
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.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
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.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export 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.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $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
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if 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
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -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
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
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
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
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
236fi; }
237IFS=$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.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $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
259exit 255
260fi
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 bug-autoconf@gnu.org and
270$0: http://sourceforge.net/projects/libvncserver about your
271$0: system, including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_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.
308as_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.
318as_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.
366as_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.
376if (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 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # 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.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # 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.
411as_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
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_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.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_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
503ECHO_C= ECHO_N= ECHO_T=
504case `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';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (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
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_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.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560
561# Check that we are running under the correct shell.
562SHELL=${CONFIG_SHELL-/bin/sh}
563
564case X$ECHO in
565X*--fallback-echo)
566 # Remove one level of quotation (which was required for Make).
567 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
568 ;;
569esac
570
571echo=${ECHO-echo}
572if test "X$1" = X--no-reexec; then
573 # Discard the --no-reexec flag, and continue.
574 shift
575elif test "X$1" = X--fallback-echo; then
576 # Avoid inline document here, it may be left over
577 :
578elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
579 # Yippee, $echo works!
580 :
581else
582 # Restart under the correct shell.
583 exec $SHELL "$0" --no-reexec ${1+"$@"}
584fi
585
586if test "X$1" = X--fallback-echo; then
587 # used as fallback echo
588 shift
589 cat <<EOF
590$*
591EOF
592 exit 0
593fi
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
599if test -z "$ECHO"; then
600if 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
611fi
612
613if 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 :
617else
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
697fi
698fi
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.
702ECHO=$echo
703if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
704 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
705fi
706
707
708
709
710tagnames=${tagnames+${tagnames},}CXX
711
712tagnames=${tagnames+${tagnames},}F77
713
714test -n "$DJDIR" || exec 7<&0 </dev/null
715exec 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.
720ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
721
722#
723# Initializations.
724#
725ac_default_prefix=/usr/local
726ac_clean_files=
727ac_config_libobj_dir=.
728LIBOBJS=
729cross_compiling=no
730subdirs=
731MFLAGS=
732MAKEFLAGS=
733
734# Identity of this package.
735PACKAGE_NAME='LibVNCServer'
736PACKAGE_TARNAME='libvncserver'
737PACKAGE_VERSION='0.9.9'
738PACKAGE_STRING='LibVNCServer 0.9.9'
739PACKAGE_BUGREPORT='http://sourceforge.net/projects/libvncserver'
740PACKAGE_URL=''
741
742# Factoring default headers for most tests.
743ac_includes_default="\
744#include <stdio.h>
745#ifdef HAVE_SYS_TYPES_H
746# include <sys/types.h>
747#endif
748#ifdef HAVE_SYS_STAT_H
749# include <sys/stat.h>
750#endif
751#ifdef STDC_HEADERS
752# include <stdlib.h>
753# include <stddef.h>
754#else
755# ifdef HAVE_STDLIB_H
756# include <stdlib.h>
757# endif
758#endif
759#ifdef HAVE_STRING_H
760# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
761# include <memory.h>
762# endif
763# include <string.h>
764#endif
765#ifdef HAVE_STRINGS_H
766# include <strings.h>
767#endif
768#ifdef HAVE_INTTYPES_H
769# include <inttypes.h>
770#endif
771#ifdef HAVE_STDINT_H
772# include <stdint.h>
773#endif
774#ifdef HAVE_UNISTD_H
775# include <unistd.h>
776#endif"
777
778ac_subst_vars='am__EXEEXT_FALSE
779am__EXEEXT_TRUE
780LTLIBOBJS
781RPMSOURCEDIR
782WITH_X11VNC_FALSE
783WITH_X11VNC_TRUE
784HAVE_RPM_FALSE
785HAVE_RPM_TRUE
786ANDROID_FALSE
787ANDROID_TRUE
788OSX_FALSE
789OSX_TRUE
790LINUX_FALSE
791LINUX_TRUE
792CYGIPC_FALSE
793CYGIPC_TRUE
794LIBOBJS
795HAVE_GNUTLS_FALSE
796HAVE_GNUTLS_TRUE
797GNUTLS_LIBS
798GNUTLS_CFLAGS
799LIBGCRYPT_LIBS
800LIBGCRYPT_CFLAGS
801LIBGCRYPT_CONFIG
802WSOCKLIB
803MINGW_FALSE
804MINGW_TRUE
805HAVE_LIBGTK_FALSE
806HAVE_LIBGTK_TRUE
807GTK_LIBS
808GTK_CFLAGS
809PKG_CONFIG_LIBDIR
810PKG_CONFIG_PATH
811PKG_CONFIG
812SDL_LIBS
813SDL_CFLAGS
814HAVE_LIBSDL_FALSE
815HAVE_LIBSDL_TRUE
816HAVE_LIBPNG_FALSE
817HAVE_LIBPNG_TRUE
818HAVE_LIBJPEG_FALSE
819HAVE_LIBJPEG_TRUE
820HAVE_LIBZ_FALSE
821HAVE_LIBZ_TRUE
822WITH_WEBSOCKETS_FALSE
823WITH_WEBSOCKETS_TRUE
824WITH_TIGHTVNC_FILETRANSFER_FALSE
825WITH_TIGHTVNC_FILETRANSFER_TRUE
826HAVE_LIBPTHREAD_FALSE
827HAVE_LIBPTHREAD_TRUE
828JPEG_LDFLAGS
829HAVE_SYSTEM_LIBVNCSERVER_FALSE
830HAVE_SYSTEM_LIBVNCSERVER_TRUE
831SYSTEM_LIBVNCSERVER_LIBS
832SYSTEM_LIBVNCSERVER_CFLAGS
833OSX_OPENGL_FALSE
834OSX_OPENGL_TRUE
835AVAHI_LIBS
836AVAHI_CFLAGS
837HAVE_X11_FALSE
838HAVE_X11_TRUE
839X_EXTRA_LIBS
840X_LIBS
841X_PRE_LIBS
842X_CFLAGS
843XMKMF
844HAVE_LIBSSL_FALSE
845HAVE_LIBSSL_TRUE
846SSL_LIBS
847CRYPT_LIBS
848HAVE_MP3LAME_FALSE
849HAVE_MP3LAME_TRUE
850WITH_FFMPEG_FALSE
851WITH_FFMPEG_TRUE
852with_ffmpeg
853LIBTOOL
854ac_ct_F77
855FFLAGS
856F77
857CXXCPP
858am__fastdepCXX_FALSE
859am__fastdepCXX_TRUE
860CXXDEPMODE
861ac_ct_CXX
862CXXFLAGS
863CXX
864CPP
865OBJDUMP
866AS
867DLLTOOL
868RANLIB
869AR
870ECHO
871LN_S
872EGREP
873GREP
874host_os
875host_vendor
876host_cpu
877host
878build_os
879build_vendor
880build_cpu
881build
882am__fastdepCC_FALSE
883am__fastdepCC_TRUE
884CCDEPMODE
885am__nodep
886AMDEPBACKSLASH
887AMDEP_FALSE
888AMDEP_TRUE
889am__quote
890am__include
891DEPDIR
892OBJEXT
893EXEEXT
894ac_ct_CC
895CPPFLAGS
896LDFLAGS
897CFLAGS
898CC
899AM_BACKSLASH
900AM_DEFAULT_VERBOSITY
901AM_DEFAULT_V
902AM_V
903am__untar
904am__tar
905AMTAR
906am__leading_dot
907SET_MAKE
908AWK
909mkdir_p
910MKDIR_P
911INSTALL_STRIP_PROGRAM
912STRIP
913install_sh
914MAKEINFO
915AUTOHEADER
916AUTOMAKE
917AUTOCONF
918ACLOCAL
919VERSION
920PACKAGE
921CYGPATH_W
922am__isrc
923INSTALL_DATA
924INSTALL_SCRIPT
925INSTALL_PROGRAM
926target_alias
927host_alias
928build_alias
929LIBS
930ECHO_T
931ECHO_N
932ECHO_C
933DEFS
934mandir
935localedir
936libdir
937psdir
938pdfdir
939dvidir
940htmldir
941infodir
942docdir
943oldincludedir
944includedir
945localstatedir
946sharedstatedir
947sysconfdir
948datadir
949datarootdir
950libexecdir
951sbindir
952bindir
953program_transform_name
954prefix
955exec_prefix
956PACKAGE_URL
957PACKAGE_BUGREPORT
958PACKAGE_STRING
959PACKAGE_VERSION
960PACKAGE_TARNAME
961PACKAGE_NAME
962PATH_SEPARATOR
963SHELL'
964ac_subst_files=''
965ac_user_opts='
966enable_option_checking
967enable_silent_rules
968enable_dependency_tracking
969enable_shared
970enable_static
971enable_fast_install
972with_gnu_ld
973enable_libtool_lock
974with_pic
975with_tags
976with_tightvnc_filetransfer
977with_websockets
978with_24bpp
979with_ffmpeg
980with_crypt
981with_crypto
982with_ssl
983with_x
984with_system_libvncserver
985with_x11vnc
986with_xkeyboard
987with_xinerama
988with_xrandr
989with_xfixes
990with_xdamage
991with_xtrap
992with_xrecord
993with_fbpm
994with_dpms
995with_v4l
996with_fbdev
997with_uinput
998with_macosx_native
999with_avahi
1000with_jpeg
1001with_png
1002with_libz
1003with_zlib
1004with_pthread
1005with_sdl_config
1006with_gcrypt
1007with_client_gcrypt
1008with_libgcrypt_prefix
1009with_gnutls
1010with_ipv6
1011'
1012 ac_precious_vars='build_alias
1013host_alias
1014target_alias
1015CC
1016CFLAGS
1017LDFLAGS
1018LIBS
1019CPPFLAGS
1020CPP
1021CXX
1022CXXFLAGS
1023CCC
1024CXXCPP
1025F77
1026FFLAGS
1027XMKMF
1028JPEG_LDFLAGS
1029PKG_CONFIG
1030PKG_CONFIG_PATH
1031PKG_CONFIG_LIBDIR
1032GTK_CFLAGS
1033GTK_LIBS
1034GNUTLS_CFLAGS
1035GNUTLS_LIBS'
1036
1037
1038# Initialize some variables set by options.
1039ac_init_help=
1040ac_init_version=false
1041ac_unrecognized_opts=
1042ac_unrecognized_sep=
1043# The variables have the same names as the options, with
1044# dashes changed to underlines.
1045cache_file=/dev/null
1046exec_prefix=NONE
1047no_create=
1048no_recursion=
1049prefix=NONE
1050program_prefix=NONE
1051program_suffix=NONE
1052program_transform_name=s,x,x,
1053silent=
1054site=
1055srcdir=
1056verbose=
1057x_includes=NONE
1058x_libraries=NONE
1059
1060# Installation directory options.
1061# These are left unexpanded so users can "make install exec_prefix=/foo"
1062# and all the variables that are supposed to be based on exec_prefix
1063# by default will actually change.
1064# Use braces instead of parens because sh, perl, etc. also accept them.
1065# (The list follows the same order as the GNU Coding Standards.)
1066bindir='${exec_prefix}/bin'
1067sbindir='${exec_prefix}/sbin'
1068libexecdir='${exec_prefix}/libexec'
1069datarootdir='${prefix}/share'
1070datadir='${datarootdir}'
1071sysconfdir='${prefix}/etc'
1072sharedstatedir='${prefix}/com'
1073localstatedir='${prefix}/var'
1074includedir='${prefix}/include'
1075oldincludedir='/usr/include'
1076docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1077infodir='${datarootdir}/info'
1078htmldir='${docdir}'
1079dvidir='${docdir}'
1080pdfdir='${docdir}'
1081psdir='${docdir}'
1082libdir='${exec_prefix}/lib'
1083localedir='${datarootdir}/locale'
1084mandir='${datarootdir}/man'
1085
1086ac_prev=
1087ac_dashdash=
1088for ac_option
1089do
1090 # If the previous option needs an argument, assign it.
1091 if test -n "$ac_prev"; then
1092 eval $ac_prev=\$ac_option
1093 ac_prev=
1094 continue
1095 fi
1096
1097 case $ac_option in
1098 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1099 *=) ac_optarg= ;;
1100 *) ac_optarg=yes ;;
1101 esac
1102
1103 # Accept the important Cygnus configure options, so we can diagnose typos.
1104
1105 case $ac_dashdash$ac_option in
1106 --)
1107 ac_dashdash=yes ;;
1108
1109 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1110 ac_prev=bindir ;;
1111 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1112 bindir=$ac_optarg ;;
1113
1114 -build | --build | --buil | --bui | --bu)
1115 ac_prev=build_alias ;;
1116 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1117 build_alias=$ac_optarg ;;
1118
1119 -cache-file | --cache-file | --cache-fil | --cache-fi \
1120 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1121 ac_prev=cache_file ;;
1122 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1123 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1124 cache_file=$ac_optarg ;;
1125
1126 --config-cache | -C)
1127 cache_file=config.cache ;;
1128
1129 -datadir | --datadir | --datadi | --datad)
1130 ac_prev=datadir ;;
1131 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1132 datadir=$ac_optarg ;;
1133
1134 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1135 | --dataroo | --dataro | --datar)
1136 ac_prev=datarootdir ;;
1137 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1138 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1139 datarootdir=$ac_optarg ;;
1140
1141 -disable-* | --disable-*)
1142 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1143 # Reject names that are not valid shell variable names.
1144 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1145 as_fn_error $? "invalid feature name: $ac_useropt"
1146 ac_useropt_orig=$ac_useropt
1147 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1148 case $ac_user_opts in
1149 *"
1150"enable_$ac_useropt"
1151"*) ;;
1152 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1153 ac_unrecognized_sep=', ';;
1154 esac
1155 eval enable_$ac_useropt=no ;;
1156
1157 -docdir | --docdir | --docdi | --doc | --do)
1158 ac_prev=docdir ;;
1159 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1160 docdir=$ac_optarg ;;
1161
1162 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1163 ac_prev=dvidir ;;
1164 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1165 dvidir=$ac_optarg ;;
1166
1167 -enable-* | --enable-*)
1168 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1169 # Reject names that are not valid shell variable names.
1170 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1171 as_fn_error $? "invalid feature name: $ac_useropt"
1172 ac_useropt_orig=$ac_useropt
1173 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1174 case $ac_user_opts in
1175 *"
1176"enable_$ac_useropt"
1177"*) ;;
1178 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1179 ac_unrecognized_sep=', ';;
1180 esac
1181 eval enable_$ac_useropt=\$ac_optarg ;;
1182
1183 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1184 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1185 | --exec | --exe | --ex)
1186 ac_prev=exec_prefix ;;
1187 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1188 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1189 | --exec=* | --exe=* | --ex=*)
1190 exec_prefix=$ac_optarg ;;
1191
1192 -gas | --gas | --ga | --g)
1193 # Obsolete; use --with-gas.
1194 with_gas=yes ;;
1195
1196 -help | --help | --hel | --he | -h)
1197 ac_init_help=long ;;
1198 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1199 ac_init_help=recursive ;;
1200 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1201 ac_init_help=short ;;
1202
1203 -host | --host | --hos | --ho)
1204 ac_prev=host_alias ;;
1205 -host=* | --host=* | --hos=* | --ho=*)
1206 host_alias=$ac_optarg ;;
1207
1208 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1209 ac_prev=htmldir ;;
1210 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1211 | --ht=*)
1212 htmldir=$ac_optarg ;;
1213
1214 -includedir | --includedir | --includedi | --included | --include \
1215 | --includ | --inclu | --incl | --inc)
1216 ac_prev=includedir ;;
1217 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1218 | --includ=* | --inclu=* | --incl=* | --inc=*)
1219 includedir=$ac_optarg ;;
1220
1221 -infodir | --infodir | --infodi | --infod | --info | --inf)
1222 ac_prev=infodir ;;
1223 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1224 infodir=$ac_optarg ;;
1225
1226 -libdir | --libdir | --libdi | --libd)
1227 ac_prev=libdir ;;
1228 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1229 libdir=$ac_optarg ;;
1230
1231 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1232 | --libexe | --libex | --libe)
1233 ac_prev=libexecdir ;;
1234 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1235 | --libexe=* | --libex=* | --libe=*)
1236 libexecdir=$ac_optarg ;;
1237
1238 -localedir | --localedir | --localedi | --localed | --locale)
1239 ac_prev=localedir ;;
1240 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1241 localedir=$ac_optarg ;;
1242
1243 -localstatedir | --localstatedir | --localstatedi | --localstated \
1244 | --localstate | --localstat | --localsta | --localst | --locals)
1245 ac_prev=localstatedir ;;
1246 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1247 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1248 localstatedir=$ac_optarg ;;
1249
1250 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1251 ac_prev=mandir ;;
1252 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1253 mandir=$ac_optarg ;;
1254
1255 -nfp | --nfp | --nf)
1256 # Obsolete; use --without-fp.
1257 with_fp=no ;;
1258
1259 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1260 | --no-cr | --no-c | -n)
1261 no_create=yes ;;
1262
1263 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1264 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1265 no_recursion=yes ;;
1266
1267 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1268 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1269 | --oldin | --oldi | --old | --ol | --o)
1270 ac_prev=oldincludedir ;;
1271 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1272 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1273 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1274 oldincludedir=$ac_optarg ;;
1275
1276 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1277 ac_prev=prefix ;;
1278 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1279 prefix=$ac_optarg ;;
1280
1281 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1282 | --program-pre | --program-pr | --program-p)
1283 ac_prev=program_prefix ;;
1284 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1285 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1286 program_prefix=$ac_optarg ;;
1287
1288 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1289 | --program-suf | --program-su | --program-s)
1290 ac_prev=program_suffix ;;
1291 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1292 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1293 program_suffix=$ac_optarg ;;
1294
1295 -program-transform-name | --program-transform-name \
1296 | --program-transform-nam | --program-transform-na \
1297 | --program-transform-n | --program-transform- \
1298 | --program-transform | --program-transfor \
1299 | --program-transfo | --program-transf \
1300 | --program-trans | --program-tran \
1301 | --progr-tra | --program-tr | --program-t)
1302 ac_prev=program_transform_name ;;
1303 -program-transform-name=* | --program-transform-name=* \
1304 | --program-transform-nam=* | --program-transform-na=* \
1305 | --program-transform-n=* | --program-transform-=* \
1306 | --program-transform=* | --program-transfor=* \
1307 | --program-transfo=* | --program-transf=* \
1308 | --program-trans=* | --program-tran=* \
1309 | --progr-tra=* | --program-tr=* | --program-t=*)
1310 program_transform_name=$ac_optarg ;;
1311
1312 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1313 ac_prev=pdfdir ;;
1314 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1315 pdfdir=$ac_optarg ;;
1316
1317 -psdir | --psdir | --psdi | --psd | --ps)
1318 ac_prev=psdir ;;
1319 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1320 psdir=$ac_optarg ;;
1321
1322 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1323 | -silent | --silent | --silen | --sile | --sil)
1324 silent=yes ;;
1325
1326 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1327 ac_prev=sbindir ;;
1328 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1329 | --sbi=* | --sb=*)
1330 sbindir=$ac_optarg ;;
1331
1332 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1333 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1334 | --sharedst | --shareds | --shared | --share | --shar \
1335 | --sha | --sh)
1336 ac_prev=sharedstatedir ;;
1337 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1338 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1339 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1340 | --sha=* | --sh=*)
1341 sharedstatedir=$ac_optarg ;;
1342
1343 -site | --site | --sit)
1344 ac_prev=site ;;
1345 -site=* | --site=* | --sit=*)
1346 site=$ac_optarg ;;
1347
1348 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1349 ac_prev=srcdir ;;
1350 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1351 srcdir=$ac_optarg ;;
1352
1353 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1354 | --syscon | --sysco | --sysc | --sys | --sy)
1355 ac_prev=sysconfdir ;;
1356 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1357 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1358 sysconfdir=$ac_optarg ;;
1359
1360 -target | --target | --targe | --targ | --tar | --ta | --t)
1361 ac_prev=target_alias ;;
1362 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1363 target_alias=$ac_optarg ;;
1364
1365 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1366 verbose=yes ;;
1367
1368 -version | --version | --versio | --versi | --vers | -V)
1369 ac_init_version=: ;;
1370
1371 -with-* | --with-*)
1372 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1373 # Reject names that are not valid shell variable names.
1374 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1375 as_fn_error $? "invalid package name: $ac_useropt"
1376 ac_useropt_orig=$ac_useropt
1377 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1378 case $ac_user_opts in
1379 *"
1380"with_$ac_useropt"
1381"*) ;;
1382 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1383 ac_unrecognized_sep=', ';;
1384 esac
1385 eval with_$ac_useropt=\$ac_optarg ;;
1386
1387 -without-* | --without-*)
1388 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1389 # Reject names that are not valid shell variable names.
1390 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1391 as_fn_error $? "invalid package name: $ac_useropt"
1392 ac_useropt_orig=$ac_useropt
1393 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1394 case $ac_user_opts in
1395 *"
1396"with_$ac_useropt"
1397"*) ;;
1398 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1399 ac_unrecognized_sep=', ';;
1400 esac
1401 eval with_$ac_useropt=no ;;
1402
1403 --x)
1404 # Obsolete; use --with-x.
1405 with_x=yes ;;
1406
1407 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1408 | --x-incl | --x-inc | --x-in | --x-i)
1409 ac_prev=x_includes ;;
1410 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1411 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1412 x_includes=$ac_optarg ;;
1413
1414 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1415 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1416 ac_prev=x_libraries ;;
1417 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1418 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1419 x_libraries=$ac_optarg ;;
1420
1421 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1422Try \`$0 --help' for more information"
1423 ;;
1424
1425 *=*)
1426 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1427 # Reject names that are not valid shell variable names.
1428 case $ac_envvar in #(
1429 '' | [0-9]* | *[!_$as_cr_alnum]* )
1430 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1431 esac
1432 eval $ac_envvar=\$ac_optarg
1433 export $ac_envvar ;;
1434
1435 *)
1436 # FIXME: should be removed in autoconf 3.0.
1437 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1438 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1439 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1440 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1441 ;;
1442
1443 esac
1444done
1445
1446if test -n "$ac_prev"; then
1447 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1448 as_fn_error $? "missing argument to $ac_option"
1449fi
1450
1451if test -n "$ac_unrecognized_opts"; then
1452 case $enable_option_checking in
1453 no) ;;
1454 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1455 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1456 esac
1457fi
1458
1459# Check all directory arguments for consistency.
1460for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1461 datadir sysconfdir sharedstatedir localstatedir includedir \
1462 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1463 libdir localedir mandir
1464do
1465 eval ac_val=\$$ac_var
1466 # Remove trailing slashes.
1467 case $ac_val in
1468 */ )
1469 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1470 eval $ac_var=\$ac_val;;
1471 esac
1472 # Be sure to have absolute directory names.
1473 case $ac_val in
1474 [\\/$]* | ?:[\\/]* ) continue;;
1475 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1476 esac
1477 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1478done
1479
1480# There might be people who depend on the old broken behavior: `$host'
1481# used to hold the argument of --host etc.
1482# FIXME: To remove some day.
1483build=$build_alias
1484host=$host_alias
1485target=$target_alias
1486
1487# FIXME: To remove some day.
1488if test "x$host_alias" != x; then
1489 if test "x$build_alias" = x; then
1490 cross_compiling=maybe
1491 elif test "x$build_alias" != "x$host_alias"; then
1492 cross_compiling=yes
1493 fi
1494fi
1495
1496ac_tool_prefix=
1497test -n "$host_alias" && ac_tool_prefix=$host_alias-
1498
1499test "$silent" = yes && exec 6>/dev/null
1500
1501
1502ac_pwd=`pwd` && test -n "$ac_pwd" &&
1503ac_ls_di=`ls -di .` &&
1504ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1505 as_fn_error $? "working directory cannot be determined"
1506test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1507 as_fn_error $? "pwd does not report name of working directory"
1508
1509
1510# Find the source files, if location was not specified.
1511if test -z "$srcdir"; then
1512 ac_srcdir_defaulted=yes
1513 # Try the directory containing this script, then the parent directory.
1514 ac_confdir=`$as_dirname -- "$as_myself" ||
1515$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1516 X"$as_myself" : 'X\(//\)[^/]' \| \
1517 X"$as_myself" : 'X\(//\)$' \| \
1518 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1519$as_echo X"$as_myself" |
1520 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1521 s//\1/
1522 q
1523 }
1524 /^X\(\/\/\)[^/].*/{
1525 s//\1/
1526 q
1527 }
1528 /^X\(\/\/\)$/{
1529 s//\1/
1530 q
1531 }
1532 /^X\(\/\).*/{
1533 s//\1/
1534 q
1535 }
1536 s/.*/./; q'`
1537 srcdir=$ac_confdir
1538 if test ! -r "$srcdir/$ac_unique_file"; then
1539 srcdir=..
1540 fi
1541else
1542 ac_srcdir_defaulted=no
1543fi
1544if test ! -r "$srcdir/$ac_unique_file"; then
1545 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1546 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1547fi
1548ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1549ac_abs_confdir=`(
1550 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1551 pwd)`
1552# When building in place, set srcdir=.
1553if test "$ac_abs_confdir" = "$ac_pwd"; then
1554 srcdir=.
1555fi
1556# Remove unnecessary trailing slashes from srcdir.
1557# Double slashes in file names in object file debugging info
1558# mess up M-x gdb in Emacs.
1559case $srcdir in
1560*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1561esac
1562for ac_var in $ac_precious_vars; do
1563 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1564 eval ac_env_${ac_var}_value=\$${ac_var}
1565 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1566 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1567done
1568
1569#
1570# Report the --help message.
1571#
1572if test "$ac_init_help" = "long"; then
1573 # Omit some internal or obsolete options to make the list less imposing.
1574 # This message is too long to be a string in the A/UX 3.1 sh.
1575 cat <<_ACEOF
1576\`configure' configures LibVNCServer 0.9.9 to adapt to many kinds of systems.
1577
1578Usage: $0 [OPTION]... [VAR=VALUE]...
1579
1580To assign environment variables (e.g., CC, CFLAGS...), specify them as
1581VAR=VALUE. See below for descriptions of some of the useful variables.
1582
1583Defaults for the options are specified in brackets.
1584
1585Configuration:
1586 -h, --help display this help and exit
1587 --help=short display options specific to this package
1588 --help=recursive display the short help of all the included packages
1589 -V, --version display version information and exit
1590 -q, --quiet, --silent do not print \`checking ...' messages
1591 --cache-file=FILE cache test results in FILE [disabled]
1592 -C, --config-cache alias for \`--cache-file=config.cache'
1593 -n, --no-create do not create output files
1594 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1595
1596Installation directories:
1597 --prefix=PREFIX install architecture-independent files in PREFIX
1598 [$ac_default_prefix]
1599 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1600 [PREFIX]
1601
1602By default, \`make install' will install all the files in
1603\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1604an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1605for instance \`--prefix=\$HOME'.
1606
1607For better control, use the options below.
1608
1609Fine tuning of the installation directories:
1610 --bindir=DIR user executables [EPREFIX/bin]
1611 --sbindir=DIR system admin executables [EPREFIX/sbin]
1612 --libexecdir=DIR program executables [EPREFIX/libexec]
1613 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1614 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1615 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1616 --libdir=DIR object code libraries [EPREFIX/lib]
1617 --includedir=DIR C header files [PREFIX/include]
1618 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1619 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1620 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1621 --infodir=DIR info documentation [DATAROOTDIR/info]
1622 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1623 --mandir=DIR man documentation [DATAROOTDIR/man]
1624 --docdir=DIR documentation root [DATAROOTDIR/doc/libvncserver]
1625 --htmldir=DIR html documentation [DOCDIR]
1626 --dvidir=DIR dvi documentation [DOCDIR]
1627 --pdfdir=DIR pdf documentation [DOCDIR]
1628 --psdir=DIR ps documentation [DOCDIR]
1629_ACEOF
1630
1631 cat <<\_ACEOF
1632
1633Program names:
1634 --program-prefix=PREFIX prepend PREFIX to installed program names
1635 --program-suffix=SUFFIX append SUFFIX to installed program names
1636 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1637
1638X features:
1639 --x-includes=DIR X include files are in DIR
1640 --x-libraries=DIR X library files are in DIR
1641
1642System types:
1643 --build=BUILD configure for building on BUILD [guessed]
1644 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1645_ACEOF
1646fi
1647
1648if test -n "$ac_init_help"; then
1649 case $ac_init_help in
1650 short | recursive ) echo "Configuration of LibVNCServer 0.9.9:";;
1651 esac
1652 cat <<\_ACEOF
1653
1654Optional Features:
1655 --disable-option-checking ignore unrecognized --enable/--with options
1656 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1657 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1658 --enable-silent-rules less verbose build output (undo: `make V=1')
1659 --disable-silent-rules verbose build output (undo: `make V=0')
1660 --disable-dependency-tracking speeds up one-time build
1661 --enable-dependency-tracking do not reject slow dependency extractors
1662 --enable-shared[=PKGS] build shared libraries [default=yes]
1663 --enable-static[=PKGS] build static libraries [default=yes]
1664 --enable-fast-install[=PKGS]
1665 optimize for fast installation [default=yes]
1666 --disable-libtool-lock avoid locking (might break parallel builds)
1667
1668Optional Packages:
1669 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1670 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1671 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1672 --with-pic try to use only PIC/non-PIC objects [default=use
1673 both]
1674 --with-tags[=TAGS] include additional configurations [automatic]
1675 --without-filetransfer disable TightVNC file transfer protocol
1676 --without-websockets disable WebSockets support
1677 --without-24bpp disable 24 bpp framebuffers
1678 --with-ffmpeg=dir set ffmpeg home directory
1679 --without-crypt disable support for libcrypt
1680 --without-crypto disable support for openssl libcrypto
1681 --without-ssl disable support for openssl libssl
1682 --with-ssl=DIR use openssl include/library files in DIR
1683 --with-x use the X Window System
1684 --with-system-libvncserver use installed libvncserver for x11vnc
1685 --with-system-libvncserver=DIR use libvncserver installed in DIR for x11vnc
1686 --with-x11vnc configure for building the x11vnc subdir (if present)
1687 you will need to cd to x11vnc and run 'make' etc.
1688 --without-xkeyboard disable xkeyboard extension support
1689 --without-xinerama disable xinerama extension support
1690 --without-xrandr disable xrandr extension support
1691 --without-xfixes disable xfixes extension support
1692 --without-xdamage disable xdamage extension support
1693 --without-xtrap disable xtrap extension support
1694 --without-xrecord disable xrecord extension support
1695 --without-fbpm disable fbpm extension support
1696 --without-dpms disable dpms extension support
1697 --without-v4l disable video4linux support
1698 --without-fbdev disable linux fb device support
1699 --without-uinput disable linux uinput device support
1700 --without-macosx-native disable MacOS X native display support
1701 --without-avahi disable support for Avahi/mDNS
1702 --with-avahi=DIR use avahi include/library files in DIR
1703 --without-jpeg disable support for jpeg
1704 --with-jpeg=DIR use jpeg include/library files in DIR
1705 --without-png disable support for png
1706 --with-png=DIR use png include/library files in DIR
1707 --without-libz disable support for deflate
1708 --without-zlib disable support for deflate
1709 --with-zlib=DIR use zlib include/library files in DIR
1710 --without-pthread disable support for libpthread
1711 --with-sdl-config=FILE
1712 Use the given path to sdl-config when determining
1713 SDL configuration; defaults to "sdl-config"
1714 --without-gcrypt disable support for gcrypt
1715 --without-client-gcrypt disable support for gcrypt in libvncclient
1716 --with-libgcrypt-prefix=PFX
1717 prefix where LIBGCRYPT is installed (optional)
1718 --without-gnutls disable support for gnutls
1719 --with-gnutls=DIR use gnutls include/library files in DIR
1720 --without-ipv6 disable IPv6 support
1721
1722Some influential environment variables:
1723 CC C compiler command
1724 CFLAGS C compiler flags
1725 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1726 nonstandard directory <lib dir>
1727 LIBS libraries to pass to the linker, e.g. -l<library>
1728 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1729 you have headers in a nonstandard directory <include dir>
1730 CPP C preprocessor
1731 CXX C++ compiler command
1732 CXXFLAGS C++ compiler flags
1733 CXXCPP C++ preprocessor
1734 F77 Fortran 77 compiler command
1735 FFLAGS Fortran 77 compiler flags
1736 XMKMF Path to xmkmf, Makefile generator for X Window System
1737 JPEG_LDFLAGS
1738 Linker flags to use when linking with libjpeg, e.g.
1739 -L/foo/dir/lib -Wl,-static -ljpeg -Wl,-shared. This overrides
1740 the linker flags set by --with-jpeg.
1741 PKG_CONFIG path to pkg-config utility
1742 PKG_CONFIG_PATH
1743 directories to add to pkg-config's search path
1744 PKG_CONFIG_LIBDIR
1745 path overriding pkg-config's built-in search path
1746 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1747 GTK_LIBS linker flags for GTK, overriding pkg-config
1748 GNUTLS_CFLAGS
1749 C compiler flags for GNUTLS, overriding pkg-config
1750 GNUTLS_LIBS linker flags for GNUTLS, overriding pkg-config
1751
1752Use these variables to override the choices made by `configure' or to help
1753it to find libraries and programs with nonstandard names/locations.
1754
1755Report bugs to <http://sourceforge.net/projects/libvncserver>.
1756_ACEOF
1757ac_status=$?
1758fi
1759
1760if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 continue
1766 ac_builddir=.
1767
1768case "$ac_dir" in
1769.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1770*)
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 esac ;;
1778esac
1779ac_abs_top_builddir=$ac_pwd
1780ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781# for backward compatibility:
1782ac_top_builddir=$ac_top_build_prefix
1783
1784case $srcdir in
1785 .) # We are building in place.
1786 ac_srcdir=.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1793 *) # Relative name.
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797esac
1798ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1799
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1806 echo &&
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1808 else
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 fi || ac_status=$?
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1812 done
1813fi
1814
1815test -n "$ac_init_help" && exit $ac_status
1816if $ac_init_version; then
1817 cat <<\_ACEOF
1818LibVNCServer configure 0.9.9
1819generated by GNU Autoconf 2.69
1820
1821Copyright (C) 2012 Free Software Foundation, Inc.
1822This configure script is free software; the Free Software Foundation
1823gives unlimited permission to copy, distribute and modify it.
1824_ACEOF
1825 exit
1826fi
1827
1828## ------------------------ ##
1829## Autoconf initialization. ##
1830## ------------------------ ##
1831
1832# ac_fn_c_try_compile LINENO
1833# --------------------------
1834# Try to compile conftest.$ac_ext, and return whether this succeeded.
1835ac_fn_c_try_compile ()
1836{
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843esac
1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845$as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1852 fi
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859else
1860 $as_echo "$as_me: failed program was:" >&5
1861sed 's/^/| /' conftest.$ac_ext >&5
1862
1863 ac_retval=1
1864fi
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1867
1868} # ac_fn_c_try_compile
1869
1870# ac_fn_c_try_link LINENO
1871# -----------------------
1872# Try to link conftest.$ac_ext, and return whether this succeeded.
1873ac_fn_c_try_link ()
1874{
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881esac
1882eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883$as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1890 fi
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900else
1901 $as_echo "$as_me: failed program was:" >&5
1902sed 's/^/| /' conftest.$ac_ext >&5
1903
1904 ac_retval=1
1905fi
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1913
1914} # ac_fn_c_try_link
1915
1916# ac_fn_c_try_cpp LINENO
1917# ----------------------
1918# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1919ac_fn_c_try_cpp ()
1920{
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 if { { ac_try="$ac_cpp conftest.$ac_ext"
1923case "(($ac_try" in
1924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1925 *) ac_try_echo=$ac_try;;
1926esac
1927eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1928$as_echo "$ac_try_echo"; } >&5
1929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1930 ac_status=$?
1931 if test -s conftest.err; then
1932 grep -v '^ *+' conftest.err >conftest.er1
1933 cat conftest.er1 >&5
1934 mv -f conftest.er1 conftest.err
1935 fi
1936 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1937 test $ac_status = 0; } > conftest.i && {
1938 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1939 test ! -s conftest.err
1940 }; then :
1941 ac_retval=0
1942else
1943 $as_echo "$as_me: failed program was:" >&5
1944sed 's/^/| /' conftest.$ac_ext >&5
1945
1946 ac_retval=1
1947fi
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status $ac_retval
1950
1951} # ac_fn_c_try_cpp
1952
1953# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1954# -------------------------------------------------------
1955# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1956# the include files in INCLUDES and setting the cache variable VAR
1957# accordingly.
1958ac_fn_c_check_header_mongrel ()
1959{
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if eval \${$3+:} false; then :
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1963$as_echo_n "checking for $2... " >&6; }
1964if eval \${$3+:} false; then :
1965 $as_echo_n "(cached) " >&6
1966fi
1967eval ac_res=\$$3
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1969$as_echo "$ac_res" >&6; }
1970else
1971 # Is the header compilable?
1972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1973$as_echo_n "checking $2 usability... " >&6; }
1974cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1975/* end confdefs.h. */
1976$4
1977#include <$2>
1978_ACEOF
1979if ac_fn_c_try_compile "$LINENO"; then :
1980 ac_header_compiler=yes
1981else
1982 ac_header_compiler=no
1983fi
1984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1985{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1986$as_echo "$ac_header_compiler" >&6; }
1987
1988# Is the header present?
1989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1990$as_echo_n "checking $2 presence... " >&6; }
1991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1992/* end confdefs.h. */
1993#include <$2>
1994_ACEOF
1995if ac_fn_c_try_cpp "$LINENO"; then :
1996 ac_header_preproc=yes
1997else
1998 ac_header_preproc=no
1999fi
2000rm -f conftest.err conftest.i conftest.$ac_ext
2001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2002$as_echo "$ac_header_preproc" >&6; }
2003
2004# So? What about this header?
2005case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2006 yes:no: )
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2008$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2010$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2011 ;;
2012 no:yes:* )
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2014$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2016$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2018$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2020$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2022$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2023( $as_echo "## ----------------------------------------------------------- ##
2024## Report this to http://sourceforge.net/projects/libvncserver ##
2025## ----------------------------------------------------------- ##"
2026 ) | sed "s/^/$as_me: WARNING: /" >&2
2027 ;;
2028esac
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2030$as_echo_n "checking for $2... " >&6; }
2031if eval \${$3+:} false; then :
2032 $as_echo_n "(cached) " >&6
2033else
2034 eval "$3=\$ac_header_compiler"
2035fi
2036eval ac_res=\$$3
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2038$as_echo "$ac_res" >&6; }
2039fi
2040 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2041
2042} # ac_fn_c_check_header_mongrel
2043
2044# ac_fn_c_try_run LINENO
2045# ----------------------
2046# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2047# that executables *can* be run.
2048ac_fn_c_try_run ()
2049{
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 if { { ac_try="$ac_link"
2052case "(($ac_try" in
2053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2054 *) ac_try_echo=$ac_try;;
2055esac
2056eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2057$as_echo "$ac_try_echo"; } >&5
2058 (eval "$ac_link") 2>&5
2059 ac_status=$?
2060 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2061 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2062 { { case "(($ac_try" in
2063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2064 *) ac_try_echo=$ac_try;;
2065esac
2066eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2067$as_echo "$ac_try_echo"; } >&5
2068 (eval "$ac_try") 2>&5
2069 ac_status=$?
2070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2071 test $ac_status = 0; }; }; then :
2072 ac_retval=0
2073else
2074 $as_echo "$as_me: program exited with status $ac_status" >&5
2075 $as_echo "$as_me: failed program was:" >&5
2076sed 's/^/| /' conftest.$ac_ext >&5
2077
2078 ac_retval=$ac_status
2079fi
2080 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2081 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2082 as_fn_set_status $ac_retval
2083
2084} # ac_fn_c_try_run
2085
2086# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2087# -------------------------------------------------------
2088# Tests whether HEADER exists and can be compiled using the include files in
2089# INCLUDES, setting the cache variable VAR accordingly.
2090ac_fn_c_check_header_compile ()
2091{
2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2094$as_echo_n "checking for $2... " >&6; }
2095if eval \${$3+:} false; then :
2096 $as_echo_n "(cached) " >&6
2097else
2098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2099/* end confdefs.h. */
2100$4
2101#include <$2>
2102_ACEOF
2103if ac_fn_c_try_compile "$LINENO"; then :
2104 eval "$3=yes"
2105else
2106 eval "$3=no"
2107fi
2108rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109fi
2110eval ac_res=\$$3
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2112$as_echo "$ac_res" >&6; }
2113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2114
2115} # ac_fn_c_check_header_compile
2116
2117# ac_fn_c_check_func LINENO FUNC VAR
2118# ----------------------------------
2119# Tests whether FUNC exists, setting the cache variable VAR accordingly
2120ac_fn_c_check_func ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124$as_echo_n "checking for $2... " >&6; }
2125if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129/* end confdefs.h. */
2130/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2132#define $2 innocuous_$2
2133
2134/* System header to define __stub macros and hopefully few prototypes,
2135 which can conflict with char $2 (); below.
2136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2137 <limits.h> exists even on freestanding compilers. */
2138
2139#ifdef __STDC__
2140# include <limits.h>
2141#else
2142# include <assert.h>
2143#endif
2144
2145#undef $2
2146
2147/* Override any GCC internal prototype to avoid an error.
2148 Use char because int might match the return type of a GCC
2149 builtin and then its argument prototype would still apply. */
2150#ifdef __cplusplus
2151extern "C"
2152#endif
2153char $2 ();
2154/* The GNU C library defines this for functions which it implements
2155 to always fail with ENOSYS. Some functions are actually named
2156 something starting with __ and the normal name is an alias. */
2157#if defined __stub_$2 || defined __stub___$2
2158choke me
2159#endif
2160
2161int
2162main ()
2163{
2164return $2 ();
2165 ;
2166 return 0;
2167}
2168_ACEOF
2169if ac_fn_c_try_link "$LINENO"; then :
2170 eval "$3=yes"
2171else
2172 eval "$3=no"
2173fi
2174rm -f core conftest.err conftest.$ac_objext \
2175 conftest$ac_exeext conftest.$ac_ext
2176fi
2177eval ac_res=\$$3
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2179$as_echo "$ac_res" >&6; }
2180 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2181
2182} # ac_fn_c_check_func
2183
2184# ac_fn_cxx_try_compile LINENO
2185# ----------------------------
2186# Try to compile conftest.$ac_ext, and return whether this succeeded.
2187ac_fn_cxx_try_compile ()
2188{
2189 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2190 rm -f conftest.$ac_objext
2191 if { { ac_try="$ac_compile"
2192case "(($ac_try" in
2193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2194 *) ac_try_echo=$ac_try;;
2195esac
2196eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2197$as_echo "$ac_try_echo"; } >&5
2198 (eval "$ac_compile") 2>conftest.err
2199 ac_status=$?
2200 if test -s conftest.err; then
2201 grep -v '^ *+' conftest.err >conftest.er1
2202 cat conftest.er1 >&5
2203 mv -f conftest.er1 conftest.err
2204 fi
2205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2206 test $ac_status = 0; } && {
2207 test -z "$ac_cxx_werror_flag" ||
2208 test ! -s conftest.err
2209 } && test -s conftest.$ac_objext; then :
2210 ac_retval=0
2211else
2212 $as_echo "$as_me: failed program was:" >&5
2213sed 's/^/| /' conftest.$ac_ext >&5
2214
2215 ac_retval=1
2216fi
2217 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2218 as_fn_set_status $ac_retval
2219
2220} # ac_fn_cxx_try_compile
2221
2222# ac_fn_cxx_try_cpp LINENO
2223# ------------------------
2224# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2225ac_fn_cxx_try_cpp ()
2226{
2227 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2228 if { { ac_try="$ac_cpp conftest.$ac_ext"
2229case "(($ac_try" in
2230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2231 *) ac_try_echo=$ac_try;;
2232esac
2233eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2234$as_echo "$ac_try_echo"; } >&5
2235 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2236 ac_status=$?
2237 if test -s conftest.err; then
2238 grep -v '^ *+' conftest.err >conftest.er1
2239 cat conftest.er1 >&5
2240 mv -f conftest.er1 conftest.err
2241 fi
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; } > conftest.i && {
2244 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2245 test ! -s conftest.err
2246 }; then :
2247 ac_retval=0
2248else
2249 $as_echo "$as_me: failed program was:" >&5
2250sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 ac_retval=1
2253fi
2254 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2255 as_fn_set_status $ac_retval
2256
2257} # ac_fn_cxx_try_cpp
2258
2259# ac_fn_cxx_try_link LINENO
2260# -------------------------
2261# Try to link conftest.$ac_ext, and return whether this succeeded.
2262ac_fn_cxx_try_link ()
2263{
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 rm -f conftest.$ac_objext conftest$ac_exeext
2266 if { { ac_try="$ac_link"
2267case "(($ac_try" in
2268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2269 *) ac_try_echo=$ac_try;;
2270esac
2271eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2272$as_echo "$ac_try_echo"; } >&5
2273 (eval "$ac_link") 2>conftest.err
2274 ac_status=$?
2275 if test -s conftest.err; then
2276 grep -v '^ *+' conftest.err >conftest.er1
2277 cat conftest.er1 >&5
2278 mv -f conftest.er1 conftest.err
2279 fi
2280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2281 test $ac_status = 0; } && {
2282 test -z "$ac_cxx_werror_flag" ||
2283 test ! -s conftest.err
2284 } && test -s conftest$ac_exeext && {
2285 test "$cross_compiling" = yes ||
2286 test -x conftest$ac_exeext
2287 }; then :
2288 ac_retval=0
2289else
2290 $as_echo "$as_me: failed program was:" >&5
2291sed 's/^/| /' conftest.$ac_ext >&5
2292
2293 ac_retval=1
2294fi
2295 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2296 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2297 # interfere with the next link command; also delete a directory that is
2298 # left behind by Apple's compiler. We do this before executing the actions.
2299 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2300 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2301 as_fn_set_status $ac_retval
2302
2303} # ac_fn_cxx_try_link
2304
2305# ac_fn_f77_try_compile LINENO
2306# ----------------------------
2307# Try to compile conftest.$ac_ext, and return whether this succeeded.
2308ac_fn_f77_try_compile ()
2309{
2310 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311 rm -f conftest.$ac_objext
2312 if { { ac_try="$ac_compile"
2313case "(($ac_try" in
2314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2315 *) ac_try_echo=$ac_try;;
2316esac
2317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2318$as_echo "$ac_try_echo"; } >&5
2319 (eval "$ac_compile") 2>conftest.err
2320 ac_status=$?
2321 if test -s conftest.err; then
2322 grep -v '^ *+' conftest.err >conftest.er1
2323 cat conftest.er1 >&5
2324 mv -f conftest.er1 conftest.err
2325 fi
2326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2327 test $ac_status = 0; } && {
2328 test -z "$ac_f77_werror_flag" ||
2329 test ! -s conftest.err
2330 } && test -s conftest.$ac_objext; then :
2331 ac_retval=0
2332else
2333 $as_echo "$as_me: failed program was:" >&5
2334sed 's/^/| /' conftest.$ac_ext >&5
2335
2336 ac_retval=1
2337fi
2338 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2339 as_fn_set_status $ac_retval
2340
2341} # ac_fn_f77_try_compile
2342
2343# ac_fn_f77_try_link LINENO
2344# -------------------------
2345# Try to link conftest.$ac_ext, and return whether this succeeded.
2346ac_fn_f77_try_link ()
2347{
2348 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2349 rm -f conftest.$ac_objext conftest$ac_exeext
2350 if { { ac_try="$ac_link"
2351case "(($ac_try" in
2352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2353 *) ac_try_echo=$ac_try;;
2354esac
2355eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2356$as_echo "$ac_try_echo"; } >&5
2357 (eval "$ac_link") 2>conftest.err
2358 ac_status=$?
2359 if test -s conftest.err; then
2360 grep -v '^ *+' conftest.err >conftest.er1
2361 cat conftest.er1 >&5
2362 mv -f conftest.er1 conftest.err
2363 fi
2364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2365 test $ac_status = 0; } && {
2366 test -z "$ac_f77_werror_flag" ||
2367 test ! -s conftest.err
2368 } && test -s conftest$ac_exeext && {
2369 test "$cross_compiling" = yes ||
2370 test -x conftest$ac_exeext
2371 }; then :
2372 ac_retval=0
2373else
2374 $as_echo "$as_me: failed program was:" >&5
2375sed 's/^/| /' conftest.$ac_ext >&5
2376
2377 ac_retval=1
2378fi
2379 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2380 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2381 # interfere with the next link command; also delete a directory that is
2382 # left behind by Apple's compiler. We do this before executing the actions.
2383 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2384 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2385 as_fn_set_status $ac_retval
2386
2387} # ac_fn_f77_try_link
2388
2389# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2390# -------------------------------------------
2391# Tests whether TYPE exists after having included INCLUDES, setting cache
2392# variable VAR accordingly.
2393ac_fn_c_check_type ()
2394{
2395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2397$as_echo_n "checking for $2... " >&6; }
2398if eval \${$3+:} false; then :
2399 $as_echo_n "(cached) " >&6
2400else
2401 eval "$3=no"
2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2403/* end confdefs.h. */
2404$4
2405int
2406main ()
2407{
2408if (sizeof ($2))
2409 return 0;
2410 ;
2411 return 0;
2412}
2413_ACEOF
2414if ac_fn_c_try_compile "$LINENO"; then :
2415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2416/* end confdefs.h. */
2417$4
2418int
2419main ()
2420{
2421if (sizeof (($2)))
2422 return 0;
2423 ;
2424 return 0;
2425}
2426_ACEOF
2427if ac_fn_c_try_compile "$LINENO"; then :
2428
2429else
2430 eval "$3=yes"
2431fi
2432rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2433fi
2434rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2435fi
2436eval ac_res=\$$3
2437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2438$as_echo "$ac_res" >&6; }
2439 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2440
2441} # ac_fn_c_check_type
2442cat >config.log <<_ACEOF
2443This file contains any messages produced by compilers while
2444running configure, to aid debugging if configure makes a mistake.
2445
2446It was created by LibVNCServer $as_me 0.9.9, which was
2447generated by GNU Autoconf 2.69. Invocation command line was
2448
2449 $ $0 $@
2450
2451_ACEOF
2452exec 5>>config.log
2453{
2454cat <<_ASUNAME
2455## --------- ##
2456## Platform. ##
2457## --------- ##
2458
2459hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2460uname -m = `(uname -m) 2>/dev/null || echo unknown`
2461uname -r = `(uname -r) 2>/dev/null || echo unknown`
2462uname -s = `(uname -s) 2>/dev/null || echo unknown`
2463uname -v = `(uname -v) 2>/dev/null || echo unknown`
2464
2465/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2466/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2467
2468/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2469/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2470/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2471/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2472/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2473/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2474/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2475
2476_ASUNAME
2477
2478as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2479for as_dir in $PATH
2480do
2481 IFS=$as_save_IFS
2482 test -z "$as_dir" && as_dir=.
2483 $as_echo "PATH: $as_dir"
2484 done
2485IFS=$as_save_IFS
2486
2487} >&5
2488
2489cat >&5 <<_ACEOF
2490
2491
2492## ----------- ##
2493## Core tests. ##
2494## ----------- ##
2495
2496_ACEOF
2497
2498
2499# Keep a trace of the command line.
2500# Strip out --no-create and --no-recursion so they do not pile up.
2501# Strip out --silent because we don't want to record it for future runs.
2502# Also quote any args containing shell meta-characters.
2503# Make two passes to allow for proper duplicate-argument suppression.
2504ac_configure_args=
2505ac_configure_args0=
2506ac_configure_args1=
2507ac_must_keep_next=false
2508for ac_pass in 1 2
2509do
2510 for ac_arg
2511 do
2512 case $ac_arg in
2513 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2514 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2515 | -silent | --silent | --silen | --sile | --sil)
2516 continue ;;
2517 *\'*)
2518 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2519 esac
2520 case $ac_pass in
2521 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2522 2)
2523 as_fn_append ac_configure_args1 " '$ac_arg'"
2524 if test $ac_must_keep_next = true; then
2525 ac_must_keep_next=false # Got value, back to normal.
2526 else
2527 case $ac_arg in
2528 *=* | --config-cache | -C | -disable-* | --disable-* \
2529 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2530 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2531 | -with-* | --with-* | -without-* | --without-* | --x)
2532 case "$ac_configure_args0 " in
2533 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2534 esac
2535 ;;
2536 -* ) ac_must_keep_next=true ;;
2537 esac
2538 fi
2539 as_fn_append ac_configure_args " '$ac_arg'"
2540 ;;
2541 esac
2542 done
2543done
2544{ ac_configure_args0=; unset ac_configure_args0;}
2545{ ac_configure_args1=; unset ac_configure_args1;}
2546
2547# When interrupted or exit'd, cleanup temporary files, and complete
2548# config.log. We remove comments because anyway the quotes in there
2549# would cause problems or look ugly.
2550# WARNING: Use '\'' to represent an apostrophe within the trap.
2551# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2552trap 'exit_status=$?
2553 # Save into config.log some information that might help in debugging.
2554 {
2555 echo
2556
2557 $as_echo "## ---------------- ##
2558## Cache variables. ##
2559## ---------------- ##"
2560 echo
2561 # The following way of writing the cache mishandles newlines in values,
2562(
2563 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2564 eval ac_val=\$$ac_var
2565 case $ac_val in #(
2566 *${as_nl}*)
2567 case $ac_var in #(
2568 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2569$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2570 esac
2571 case $ac_var in #(
2572 _ | IFS | as_nl) ;; #(
2573 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2574 *) { eval $ac_var=; unset $ac_var;} ;;
2575 esac ;;
2576 esac
2577 done
2578 (set) 2>&1 |
2579 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2580 *${as_nl}ac_space=\ *)
2581 sed -n \
2582 "s/'\''/'\''\\\\'\'''\''/g;
2583 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2584 ;; #(
2585 *)
2586 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2587 ;;
2588 esac |
2589 sort
2590)
2591 echo
2592
2593 $as_echo "## ----------------- ##
2594## Output variables. ##
2595## ----------------- ##"
2596 echo
2597 for ac_var in $ac_subst_vars
2598 do
2599 eval ac_val=\$$ac_var
2600 case $ac_val in
2601 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2602 esac
2603 $as_echo "$ac_var='\''$ac_val'\''"
2604 done | sort
2605 echo
2606
2607 if test -n "$ac_subst_files"; then
2608 $as_echo "## ------------------- ##
2609## File substitutions. ##
2610## ------------------- ##"
2611 echo
2612 for ac_var in $ac_subst_files
2613 do
2614 eval ac_val=\$$ac_var
2615 case $ac_val in
2616 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2617 esac
2618 $as_echo "$ac_var='\''$ac_val'\''"
2619 done | sort
2620 echo
2621 fi
2622
2623 if test -s confdefs.h; then
2624 $as_echo "## ----------- ##
2625## confdefs.h. ##
2626## ----------- ##"
2627 echo
2628 cat confdefs.h
2629 echo
2630 fi
2631 test "$ac_signal" != 0 &&
2632 $as_echo "$as_me: caught signal $ac_signal"
2633 $as_echo "$as_me: exit $exit_status"
2634 } >&5
2635 rm -f core *.core core.conftest.* &&
2636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2637 exit $exit_status
2638' 0
2639for ac_signal in 1 2 13 15; do
2640 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2641done
2642ac_signal=0
2643
2644# confdefs.h avoids OS command line length limits that DEFS can exceed.
2645rm -f -r conftest* confdefs.h
2646
2647$as_echo "/* confdefs.h */" > confdefs.h
2648
2649# Predefined preprocessor variables.
2650
2651cat >>confdefs.h <<_ACEOF
2652#define PACKAGE_NAME "$PACKAGE_NAME"
2653_ACEOF
2654
2655cat >>confdefs.h <<_ACEOF
2656#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2657_ACEOF
2658
2659cat >>confdefs.h <<_ACEOF
2660#define PACKAGE_VERSION "$PACKAGE_VERSION"
2661_ACEOF
2662
2663cat >>confdefs.h <<_ACEOF
2664#define PACKAGE_STRING "$PACKAGE_STRING"
2665_ACEOF
2666
2667cat >>confdefs.h <<_ACEOF
2668#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2669_ACEOF
2670
2671cat >>confdefs.h <<_ACEOF
2672#define PACKAGE_URL "$PACKAGE_URL"
2673_ACEOF
2674
2675
2676# Let the site file select an alternate cache file if it wants to.
2677# Prefer an explicitly selected file to automatically selected ones.
2678ac_site_file1=NONE
2679ac_site_file2=NONE
2680if test -n "$CONFIG_SITE"; then
2681 # We do not want a PATH search for config.site.
2682 case $CONFIG_SITE in #((
2683 -*) ac_site_file1=./$CONFIG_SITE;;
2684 */*) ac_site_file1=$CONFIG_SITE;;
2685 *) ac_site_file1=./$CONFIG_SITE;;
2686 esac
2687elif test "x$prefix" != xNONE; then
2688 ac_site_file1=$prefix/share/config.site
2689 ac_site_file2=$prefix/etc/config.site
2690else
2691 ac_site_file1=$ac_default_prefix/share/config.site
2692 ac_site_file2=$ac_default_prefix/etc/config.site
2693fi
2694for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2695do
2696 test "x$ac_site_file" = xNONE && continue
2697 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2698 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2699$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2700 sed 's/^/| /' "$ac_site_file" >&5
2701 . "$ac_site_file" \
2702 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2703$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2704as_fn_error $? "failed to load site script $ac_site_file
2705See \`config.log' for more details" "$LINENO" 5; }
2706 fi
2707done
2708
2709if test -r "$cache_file"; then
2710 # Some versions of bash will fail to source /dev/null (special files
2711 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2712 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2714$as_echo "$as_me: loading cache $cache_file" >&6;}
2715 case $cache_file in
2716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2717 *) . "./$cache_file";;
2718 esac
2719 fi
2720else
2721 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2722$as_echo "$as_me: creating cache $cache_file" >&6;}
2723 >$cache_file
2724fi
2725
2726# Check that the precious variables saved in the cache have kept the same
2727# value.
2728ac_cache_corrupted=false
2729for ac_var in $ac_precious_vars; do
2730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2731 eval ac_new_set=\$ac_env_${ac_var}_set
2732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2733 eval ac_new_val=\$ac_env_${ac_var}_value
2734 case $ac_old_set,$ac_new_set in
2735 set,)
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2737$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2738 ac_cache_corrupted=: ;;
2739 ,set)
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2741$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2742 ac_cache_corrupted=: ;;
2743 ,);;
2744 *)
2745 if test "x$ac_old_val" != "x$ac_new_val"; then
2746 # differences in whitespace do not lead to failure.
2747 ac_old_val_w=`echo x $ac_old_val`
2748 ac_new_val_w=`echo x $ac_new_val`
2749 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2751$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2752 ac_cache_corrupted=:
2753 else
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2755$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2756 eval $ac_var=\$ac_old_val
2757 fi
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2759$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2760 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2761$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2762 fi;;
2763 esac
2764 # Pass precious variables to config.status.
2765 if test "$ac_new_set" = set; then
2766 case $ac_new_val in
2767 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2768 *) ac_arg=$ac_var=$ac_new_val ;;
2769 esac
2770 case " $ac_configure_args " in
2771 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2772 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2773 esac
2774 fi
2775done
2776if $ac_cache_corrupted; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2780$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2781 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2782fi
2783## -------------------- ##
2784## Main body of script. ##
2785## -------------------- ##
2786
2787ac_ext=c
2788ac_cpp='$CPP $CPPFLAGS'
2789ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2790ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2791ac_compiler_gnu=$ac_cv_c_compiler_gnu
2792
2793
2794am__api_version='1.11'
2795
2796ac_aux_dir=
2797for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2798 if test -f "$ac_dir/install-sh"; then
2799 ac_aux_dir=$ac_dir
2800 ac_install_sh="$ac_aux_dir/install-sh -c"
2801 break
2802 elif test -f "$ac_dir/install.sh"; then
2803 ac_aux_dir=$ac_dir
2804 ac_install_sh="$ac_aux_dir/install.sh -c"
2805 break
2806 elif test -f "$ac_dir/shtool"; then
2807 ac_aux_dir=$ac_dir
2808 ac_install_sh="$ac_aux_dir/shtool install -c"
2809 break
2810 fi
2811done
2812if test -z "$ac_aux_dir"; then
2813 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2814fi
2815
2816# These three variables are undocumented and unsupported,
2817# and are intended to be withdrawn in a future Autoconf release.
2818# They can cause serious problems if a builder's source tree is in a directory
2819# whose full name contains unusual characters.
2820ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2821ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2822ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2823
2824
2825# Find a good install program. We prefer a C program (faster),
2826# so one script is as good as another. But avoid the broken or
2827# incompatible versions:
2828# SysV /etc/install, /usr/sbin/install
2829# SunOS /usr/etc/install
2830# IRIX /sbin/install
2831# AIX /bin/install
2832# AmigaOS /C/install, which installs bootblocks on floppy discs
2833# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2834# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2835# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2836# OS/2's system install, which has a completely different semantic
2837# ./install, which can be erroneously created by make from ./install.sh.
2838# Reject install programs that cannot install multiple files.
2839{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2840$as_echo_n "checking for a BSD-compatible install... " >&6; }
2841if test -z "$INSTALL"; then
2842if ${ac_cv_path_install+:} false; then :
2843 $as_echo_n "(cached) " >&6
2844else
2845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2846for as_dir in $PATH
2847do
2848 IFS=$as_save_IFS
2849 test -z "$as_dir" && as_dir=.
2850 # Account for people who put trailing slashes in PATH elements.
2851case $as_dir/ in #((
2852 ./ | .// | /[cC]/* | \
2853 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2854 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2855 /usr/ucb/* ) ;;
2856 *)
2857 # OSF1 and SCO ODT 3.0 have their own names for install.
2858 # Don't use installbsd from OSF since it installs stuff as root
2859 # by default.
2860 for ac_prog in ginstall scoinst install; do
2861 for ac_exec_ext in '' $ac_executable_extensions; do
2862 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2863 if test $ac_prog = install &&
2864 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2865 # AIX install. It has an incompatible calling convention.
2866 :
2867 elif test $ac_prog = install &&
2868 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2869 # program-specific install script used by HP pwplus--don't use.
2870 :
2871 else
2872 rm -rf conftest.one conftest.two conftest.dir
2873 echo one > conftest.one
2874 echo two > conftest.two
2875 mkdir conftest.dir
2876 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2877 test -s conftest.one && test -s conftest.two &&
2878 test -s conftest.dir/conftest.one &&
2879 test -s conftest.dir/conftest.two
2880 then
2881 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2882 break 3
2883 fi
2884 fi
2885 fi
2886 done
2887 done
2888 ;;
2889esac
2890
2891 done
2892IFS=$as_save_IFS
2893
2894rm -rf conftest.one conftest.two conftest.dir
2895
2896fi
2897 if test "${ac_cv_path_install+set}" = set; then
2898 INSTALL=$ac_cv_path_install
2899 else
2900 # As a last resort, use the slow shell script. Don't cache a
2901 # value for INSTALL within a source directory, because that will
2902 # break other packages using the cache if that directory is
2903 # removed, or if the value is a relative name.
2904 INSTALL=$ac_install_sh
2905 fi
2906fi
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2908$as_echo "$INSTALL" >&6; }
2909
2910# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2911# It thinks the first close brace ends the variable substitution.
2912test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2913
2914test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2915
2916test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2917
2918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2919$as_echo_n "checking whether build environment is sane... " >&6; }
2920# Just in case
2921sleep 1
2922echo timestamp > conftest.file
2923# Reject unsafe characters in $srcdir or the absolute working directory
2924# name. Accept space and tab only in the latter.
2925am_lf='
2926'
2927case `pwd` in
2928 *[\\\"\#\$\&\'\`$am_lf]*)
2929 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2930esac
2931case $srcdir in
2932 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2933 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2934esac
2935
2936# Do `set' in a subshell so we don't clobber the current shell's
2937# arguments. Must try -L first in case configure is actually a
2938# symlink; some systems play weird games with the mod time of symlinks
2939# (eg FreeBSD returns the mod time of the symlink's containing
2940# directory).
2941if (
2942 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2943 if test "$*" = "X"; then
2944 # -L didn't work.
2945 set X `ls -t "$srcdir/configure" conftest.file`
2946 fi
2947 rm -f conftest.file
2948 if test "$*" != "X $srcdir/configure conftest.file" \
2949 && test "$*" != "X conftest.file $srcdir/configure"; then
2950
2951 # If neither matched, then we have a broken ls. This can happen
2952 # if, for instance, CONFIG_SHELL is bash and it inherits a
2953 # broken ls alias from the environment. This has actually
2954 # happened. Such a system could not be considered "sane".
2955 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2956alias in your environment" "$LINENO" 5
2957 fi
2958
2959 test "$2" = conftest.file
2960 )
2961then
2962 # Ok.
2963 :
2964else
2965 as_fn_error $? "newly created file is older than distributed files!
2966Check your system clock" "$LINENO" 5
2967fi
2968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2969$as_echo "yes" >&6; }
2970test "$program_prefix" != NONE &&
2971 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2972# Use a double $ so make ignores it.
2973test "$program_suffix" != NONE &&
2974 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2975# Double any \ or $.
2976# By default was `s,x,x', remove it if useless.
2977ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2978program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2979
2980# expand $ac_aux_dir to an absolute path
2981am_aux_dir=`cd $ac_aux_dir && pwd`
2982
2983if test x"${MISSING+set}" != xset; then
2984 case $am_aux_dir in
2985 *\ * | *\ *)
2986 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2987 *)
2988 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2989 esac
2990fi
2991# Use eval to expand $SHELL
2992if eval "$MISSING --run true"; then
2993 am_missing_run="$MISSING --run "
2994else
2995 am_missing_run=
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2997$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2998fi
2999
3000if test x"${install_sh}" != xset; then
3001 case $am_aux_dir in
3002 *\ * | *\ *)
3003 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3004 *)
3005 install_sh="\${SHELL} $am_aux_dir/install-sh"
3006 esac
3007fi
3008
3009# Installed binaries are usually stripped using `strip' when the user
3010# run `make install-strip'. However `strip' might not be the right
3011# tool to use in cross-compilation environments, therefore Automake
3012# will honor the `STRIP' environment variable to overrule this program.
3013if test "$cross_compiling" != no; then
3014 if test -n "$ac_tool_prefix"; then
3015 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3016set dummy ${ac_tool_prefix}strip; ac_word=$2
3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3018$as_echo_n "checking for $ac_word... " >&6; }
3019if ${ac_cv_prog_STRIP+:} false; then :
3020 $as_echo_n "(cached) " >&6
3021else
3022 if test -n "$STRIP"; then
3023 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3024else
3025as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3026for as_dir in $PATH
3027do
3028 IFS=$as_save_IFS
3029 test -z "$as_dir" && as_dir=.
3030 for ac_exec_ext in '' $ac_executable_extensions; do
3031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3032 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3034 break 2
3035 fi
3036done
3037 done
3038IFS=$as_save_IFS
3039
3040fi
3041fi
3042STRIP=$ac_cv_prog_STRIP
3043if test -n "$STRIP"; then
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3045$as_echo "$STRIP" >&6; }
3046else
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3048$as_echo "no" >&6; }
3049fi
3050
3051
3052fi
3053if test -z "$ac_cv_prog_STRIP"; then
3054 ac_ct_STRIP=$STRIP
3055 # Extract the first word of "strip", so it can be a program name with args.
3056set dummy strip; ac_word=$2
3057{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3058$as_echo_n "checking for $ac_word... " >&6; }
3059if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3060 $as_echo_n "(cached) " >&6
3061else
3062 if test -n "$ac_ct_STRIP"; then
3063 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3064else
3065as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3066for as_dir in $PATH
3067do
3068 IFS=$as_save_IFS
3069 test -z "$as_dir" && as_dir=.
3070 for ac_exec_ext in '' $ac_executable_extensions; do
3071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3072 ac_cv_prog_ac_ct_STRIP="strip"
3073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 break 2
3075 fi
3076done
3077 done
3078IFS=$as_save_IFS
3079
3080fi
3081fi
3082ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3083if test -n "$ac_ct_STRIP"; then
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3085$as_echo "$ac_ct_STRIP" >&6; }
3086else
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3088$as_echo "no" >&6; }
3089fi
3090
3091 if test "x$ac_ct_STRIP" = x; then
3092 STRIP=":"
3093 else
3094 case $cross_compiling:$ac_tool_warned in
3095yes:)
3096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3098ac_tool_warned=yes ;;
3099esac
3100 STRIP=$ac_ct_STRIP
3101 fi
3102else
3103 STRIP="$ac_cv_prog_STRIP"
3104fi
3105
3106fi
3107INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3108
3109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3110$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3111if test -z "$MKDIR_P"; then
3112 if ${ac_cv_path_mkdir+:} false; then :
3113 $as_echo_n "(cached) " >&6
3114else
3115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3116for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3117do
3118 IFS=$as_save_IFS
3119 test -z "$as_dir" && as_dir=.
3120 for ac_prog in mkdir gmkdir; do
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3123 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3124 'mkdir (GNU coreutils) '* | \
3125 'mkdir (coreutils) '* | \
3126 'mkdir (fileutils) '4.1*)
3127 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3128 break 3;;
3129 esac
3130 done
3131 done
3132 done
3133IFS=$as_save_IFS
3134
3135fi
3136
3137 test -d ./--version && rmdir ./--version
3138 if test "${ac_cv_path_mkdir+set}" = set; then
3139 MKDIR_P="$ac_cv_path_mkdir -p"
3140 else
3141 # As a last resort, use the slow shell script. Don't cache a
3142 # value for MKDIR_P within a source directory, because that will
3143 # break other packages using the cache if that directory is
3144 # removed, or if the value is a relative name.
3145 MKDIR_P="$ac_install_sh -d"
3146 fi
3147fi
3148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3149$as_echo "$MKDIR_P" >&6; }
3150
3151mkdir_p="$MKDIR_P"
3152case $mkdir_p in
3153 [\\/$]* | ?:[\\/]*) ;;
3154 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3155esac
3156
3157for ac_prog in gawk mawk nawk awk
3158do
3159 # Extract the first word of "$ac_prog", so it can be a program name with args.
3160set dummy $ac_prog; ac_word=$2
3161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3162$as_echo_n "checking for $ac_word... " >&6; }
3163if ${ac_cv_prog_AWK+:} false; then :
3164 $as_echo_n "(cached) " >&6
3165else
3166 if test -n "$AWK"; then
3167 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3168else
3169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170for as_dir in $PATH
3171do
3172 IFS=$as_save_IFS
3173 test -z "$as_dir" && as_dir=.
3174 for ac_exec_ext in '' $ac_executable_extensions; do
3175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3176 ac_cv_prog_AWK="$ac_prog"
3177 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3178 break 2
3179 fi
3180done
3181 done
3182IFS=$as_save_IFS
3183
3184fi
3185fi
3186AWK=$ac_cv_prog_AWK
3187if test -n "$AWK"; then
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3189$as_echo "$AWK" >&6; }
3190else
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3192$as_echo "no" >&6; }
3193fi
3194
3195
3196 test -n "$AWK" && break
3197done
3198
3199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3200$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3201set x ${MAKE-make}
3202ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3203if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3204 $as_echo_n "(cached) " >&6
3205else
3206 cat >conftest.make <<\_ACEOF
3207SHELL = /bin/sh
3208all:
3209 @echo '@@@%%%=$(MAKE)=@@@%%%'
3210_ACEOF
3211# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3212case `${MAKE-make} -f conftest.make 2>/dev/null` in
3213 *@@@%%%=?*=@@@%%%*)
3214 eval ac_cv_prog_make_${ac_make}_set=yes;;
3215 *)
3216 eval ac_cv_prog_make_${ac_make}_set=no;;
3217esac
3218rm -f conftest.make
3219fi
3220if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3222$as_echo "yes" >&6; }
3223 SET_MAKE=
3224else
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3226$as_echo "no" >&6; }
3227 SET_MAKE="MAKE=${MAKE-make}"
3228fi
3229
3230rm -rf .tst 2>/dev/null
3231mkdir .tst 2>/dev/null
3232if test -d .tst; then
3233 am__leading_dot=.
3234else
3235 am__leading_dot=_
3236fi
3237rmdir .tst 2>/dev/null
3238
3239if test "`cd $srcdir && pwd`" != "`pwd`"; then
3240 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3241 # is not polluted with repeated "-I."
3242 am__isrc=' -I$(srcdir)'
3243 # test to see if srcdir already configured
3244 if test -f $srcdir/config.status; then
3245 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3246 fi
3247fi
3248
3249# test whether we have cygpath
3250if test -z "$CYGPATH_W"; then
3251 if (cygpath --version) >/dev/null 2>/dev/null; then
3252 CYGPATH_W='cygpath -w'
3253 else
3254 CYGPATH_W=echo
3255 fi
3256fi
3257
3258
3259# Define the identity of the package.
3260 PACKAGE=LibVNCServer
3261 VERSION=0.9.9
3262
3263
3264cat >>confdefs.h <<_ACEOF
3265#define PACKAGE "$PACKAGE"
3266_ACEOF
3267
3268
3269cat >>confdefs.h <<_ACEOF
3270#define VERSION "$VERSION"
3271_ACEOF
3272
3273# Some tools Automake needs.
3274
3275ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3276
3277
3278AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3279
3280
3281AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3282
3283
3284AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3285
3286
3287MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3288
3289# We need awk for the "check" target. The system "awk" is bad on
3290# some platforms.
3291# Always define AMTAR for backward compatibility. Yes, it's still used
3292# in the wild :-( We should find a proper way to deprecate it ...
3293AMTAR='$${TAR-tar}'
3294
3295am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3296
3297
3298
3299
3300
3301# Check whether --enable-silent-rules was given.
3302if test "${enable_silent_rules+set}" = set; then :
3303 enableval=$enable_silent_rules;
3304fi
3305
3306case $enable_silent_rules in
3307yes) AM_DEFAULT_VERBOSITY=0;;
3308no) AM_DEFAULT_VERBOSITY=1;;
3309*) AM_DEFAULT_VERBOSITY=0;;
3310esac
3311am_make=${MAKE-make}
3312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3313$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3314if ${am_cv_make_support_nested_variables+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316else
3317 if $as_echo 'TRUE=$(BAR$(V))
3318BAR0=false
3319BAR1=true
3320V=1
3321am__doit:
3322 @$(TRUE)
3323.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3324 am_cv_make_support_nested_variables=yes
3325else
3326 am_cv_make_support_nested_variables=no
3327fi
3328fi
3329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3330$as_echo "$am_cv_make_support_nested_variables" >&6; }
3331if test $am_cv_make_support_nested_variables = yes; then
3332 AM_V='$(V)'
3333 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3334else
3335 AM_V=$AM_DEFAULT_VERBOSITY
3336 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3337fi
3338AM_BACKSLASH='\'
3339
3340ac_config_headers="$ac_config_headers rfbconfig.h"
3341
3342ac_config_headers="$ac_config_headers "
3343
3344
3345ac_config_commands="$ac_config_commands rfb/rfbconfig.h"
3346
3347
3348# Checks for programs.
3349ac_ext=c
3350ac_cpp='$CPP $CPPFLAGS'
3351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3353ac_compiler_gnu=$ac_cv_c_compiler_gnu
3354if test -n "$ac_tool_prefix"; then
3355 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3356set dummy ${ac_tool_prefix}gcc; ac_word=$2
3357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3358$as_echo_n "checking for $ac_word... " >&6; }
3359if ${ac_cv_prog_CC+:} false; then :
3360 $as_echo_n "(cached) " >&6
3361else
3362 if test -n "$CC"; then
3363 ac_cv_prog_CC="$CC" # Let the user override the test.
3364else
3365as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3366for as_dir in $PATH
3367do
3368 IFS=$as_save_IFS
3369 test -z "$as_dir" && as_dir=.
3370 for ac_exec_ext in '' $ac_executable_extensions; do
3371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3372 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3373 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3374 break 2
3375 fi
3376done
3377 done
3378IFS=$as_save_IFS
3379
3380fi
3381fi
3382CC=$ac_cv_prog_CC
3383if test -n "$CC"; then
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3385$as_echo "$CC" >&6; }
3386else
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3388$as_echo "no" >&6; }
3389fi
3390
3391
3392fi
3393if test -z "$ac_cv_prog_CC"; then
3394 ac_ct_CC=$CC
3395 # Extract the first word of "gcc", so it can be a program name with args.
3396set dummy gcc; ac_word=$2
3397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3398$as_echo_n "checking for $ac_word... " >&6; }
3399if ${ac_cv_prog_ac_ct_CC+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401else
3402 if test -n "$ac_ct_CC"; then
3403 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3404else
3405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3406for as_dir in $PATH
3407do
3408 IFS=$as_save_IFS
3409 test -z "$as_dir" && as_dir=.
3410 for ac_exec_ext in '' $ac_executable_extensions; do
3411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3412 ac_cv_prog_ac_ct_CC="gcc"
3413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416done
3417 done
3418IFS=$as_save_IFS
3419
3420fi
3421fi
3422ac_ct_CC=$ac_cv_prog_ac_ct_CC
3423if test -n "$ac_ct_CC"; then
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3425$as_echo "$ac_ct_CC" >&6; }
3426else
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3428$as_echo "no" >&6; }
3429fi
3430
3431 if test "x$ac_ct_CC" = x; then
3432 CC=""
3433 else
3434 case $cross_compiling:$ac_tool_warned in
3435yes:)
3436{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3437$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3438ac_tool_warned=yes ;;
3439esac
3440 CC=$ac_ct_CC
3441 fi
3442else
3443 CC="$ac_cv_prog_CC"
3444fi
3445
3446if test -z "$CC"; then
3447 if test -n "$ac_tool_prefix"; then
3448 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3449set dummy ${ac_tool_prefix}cc; ac_word=$2
3450{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3451$as_echo_n "checking for $ac_word... " >&6; }
3452if ${ac_cv_prog_CC+:} false; then :
3453 $as_echo_n "(cached) " >&6
3454else
3455 if test -n "$CC"; then
3456 ac_cv_prog_CC="$CC" # Let the user override the test.
3457else
3458as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3459for as_dir in $PATH
3460do
3461 IFS=$as_save_IFS
3462 test -z "$as_dir" && as_dir=.
3463 for ac_exec_ext in '' $ac_executable_extensions; do
3464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3465 ac_cv_prog_CC="${ac_tool_prefix}cc"
3466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3467 break 2
3468 fi
3469done
3470 done
3471IFS=$as_save_IFS
3472
3473fi
3474fi
3475CC=$ac_cv_prog_CC
3476if test -n "$CC"; then
3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3478$as_echo "$CC" >&6; }
3479else
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482fi
3483
3484
3485 fi
3486fi
3487if test -z "$CC"; then
3488 # Extract the first word of "cc", so it can be a program name with args.
3489set dummy cc; ac_word=$2
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3491$as_echo_n "checking for $ac_word... " >&6; }
3492if ${ac_cv_prog_CC+:} false; then :
3493 $as_echo_n "(cached) " >&6
3494else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497else
3498 ac_prog_rejected=no
3499as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3500for as_dir in $PATH
3501do
3502 IFS=$as_save_IFS
3503 test -z "$as_dir" && as_dir=.
3504 for ac_exec_ext in '' $ac_executable_extensions; do
3505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3506 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3507 ac_prog_rejected=yes
3508 continue
3509 fi
3510 ac_cv_prog_CC="cc"
3511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514done
3515 done
3516IFS=$as_save_IFS
3517
3518if test $ac_prog_rejected = yes; then
3519 # We found a bogon in the path, so make sure we never use it.
3520 set dummy $ac_cv_prog_CC
3521 shift
3522 if test $# != 0; then
3523 # We chose a different compiler from the bogus one.
3524 # However, it has the same basename, so the bogon will be chosen
3525 # first if we set CC to just the basename; use the full file name.
3526 shift
3527 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3528 fi
3529fi
3530fi
3531fi
3532CC=$ac_cv_prog_CC
3533if test -n "$CC"; then
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3535$as_echo "$CC" >&6; }
3536else
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3538$as_echo "no" >&6; }
3539fi
3540
3541
3542fi
3543if test -z "$CC"; then
3544 if test -n "$ac_tool_prefix"; then
3545 for ac_prog in cl.exe
3546 do
3547 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3548set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3550$as_echo_n "checking for $ac_word... " >&6; }
3551if ${ac_cv_prog_CC+:} false; then :
3552 $as_echo_n "(cached) " >&6
3553else
3554 if test -n "$CC"; then
3555 ac_cv_prog_CC="$CC" # Let the user override the test.
3556else
3557as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3558for as_dir in $PATH
3559do
3560 IFS=$as_save_IFS
3561 test -z "$as_dir" && as_dir=.
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3564 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3565 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3566 break 2
3567 fi
3568done
3569 done
3570IFS=$as_save_IFS
3571
3572fi
3573fi
3574CC=$ac_cv_prog_CC
3575if test -n "$CC"; then
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3577$as_echo "$CC" >&6; }
3578else
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3580$as_echo "no" >&6; }
3581fi
3582
3583
3584 test -n "$CC" && break
3585 done
3586fi
3587if test -z "$CC"; then
3588 ac_ct_CC=$CC
3589 for ac_prog in cl.exe
3590do
3591 # Extract the first word of "$ac_prog", so it can be a program name with args.
3592set dummy $ac_prog; ac_word=$2
3593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594$as_echo_n "checking for $ac_word... " >&6; }
3595if ${ac_cv_prog_ac_ct_CC+:} false; then :
3596 $as_echo_n "(cached) " >&6
3597else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600else
3601as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602for as_dir in $PATH
3603do
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3608 ac_cv_prog_ac_ct_CC="$ac_prog"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3611 fi
3612done
3613 done
3614IFS=$as_save_IFS
3615
3616fi
3617fi
3618ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621$as_echo "$ac_ct_CC" >&6; }
3622else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624$as_echo "no" >&6; }
3625fi
3626
3627
3628 test -n "$ac_ct_CC" && break
3629done
3630
3631 if test "x$ac_ct_CC" = x; then
3632 CC=""
3633 else
3634 case $cross_compiling:$ac_tool_warned in
3635yes:)
3636{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3637$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3638ac_tool_warned=yes ;;
3639esac
3640 CC=$ac_ct_CC
3641 fi
3642fi
3643
3644fi
3645
3646
3647test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3648$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3649as_fn_error $? "no acceptable C compiler found in \$PATH
3650See \`config.log' for more details" "$LINENO" 5; }
3651
3652# Provide some information about the compiler.
3653$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3654set X $ac_compile
3655ac_compiler=$2
3656for ac_option in --version -v -V -qversion; do
3657 { { ac_try="$ac_compiler $ac_option >&5"
3658case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661esac
3662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3663$as_echo "$ac_try_echo"; } >&5
3664 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3665 ac_status=$?
3666 if test -s conftest.err; then
3667 sed '10a\
3668... rest of stderr output deleted ...
3669 10q' conftest.err >conftest.er1
3670 cat conftest.er1 >&5
3671 fi
3672 rm -f conftest.er1 conftest.err
3673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3674 test $ac_status = 0; }
3675done
3676
3677cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678/* end confdefs.h. */
3679
3680int
3681main ()
3682{
3683
3684 ;
3685 return 0;
3686}
3687_ACEOF
3688ac_clean_files_save=$ac_clean_files
3689ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3690# Try to create an executable without -o first, disregard a.out.
3691# It will help us diagnose broken compilers, and finding out an intuition
3692# of exeext.
3693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3694$as_echo_n "checking whether the C compiler works... " >&6; }
3695ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3696
3697# The possible output files:
3698ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3699
3700ac_rmfiles=
3701for ac_file in $ac_files
3702do
3703 case $ac_file in
3704 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3705 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3706 esac
3707done
3708rm -f $ac_rmfiles
3709
3710if { { ac_try="$ac_link_default"
3711case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714esac
3715eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3716$as_echo "$ac_try_echo"; } >&5
3717 (eval "$ac_link_default") 2>&5
3718 ac_status=$?
3719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3720 test $ac_status = 0; }; then :
3721 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3722# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3723# in a Makefile. We should not override ac_cv_exeext if it was cached,
3724# so that the user can short-circuit this test for compilers unknown to
3725# Autoconf.
3726for ac_file in $ac_files ''
3727do
3728 test -f "$ac_file" || continue
3729 case $ac_file in
3730 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3731 ;;
3732 [ab].out )
3733 # We found the default executable, but exeext='' is most
3734 # certainly right.
3735 break;;
3736 *.* )
3737 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3738 then :; else
3739 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3740 fi
3741 # We set ac_cv_exeext here because the later test for it is not
3742 # safe: cross compilers may not add the suffix if given an `-o'
3743 # argument, so we may need to know it at that point already.
3744 # Even if this section looks crufty: it has the advantage of
3745 # actually working.
3746 break;;
3747 * )
3748 break;;
3749 esac
3750done
3751test "$ac_cv_exeext" = no && ac_cv_exeext=
3752
3753else
3754 ac_file=''
3755fi
3756if test -z "$ac_file"; then :
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3758$as_echo "no" >&6; }
3759$as_echo "$as_me: failed program was:" >&5
3760sed 's/^/| /' conftest.$ac_ext >&5
3761
3762{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3763$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3764as_fn_error 77 "C compiler cannot create executables
3765See \`config.log' for more details" "$LINENO" 5; }
3766else
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3768$as_echo "yes" >&6; }
3769fi
3770{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3771$as_echo_n "checking for C compiler default output file name... " >&6; }
3772{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3773$as_echo "$ac_file" >&6; }
3774ac_exeext=$ac_cv_exeext
3775
3776rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3777ac_clean_files=$ac_clean_files_save
3778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3779$as_echo_n "checking for suffix of executables... " >&6; }
3780if { { ac_try="$ac_link"
3781case "(($ac_try" in
3782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3783 *) ac_try_echo=$ac_try;;
3784esac
3785eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3786$as_echo "$ac_try_echo"; } >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3790 test $ac_status = 0; }; then :
3791 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3792# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3793# work properly (i.e., refer to `conftest.exe'), while it won't with
3794# `rm'.
3795for ac_file in conftest.exe conftest conftest.*; do
3796 test -f "$ac_file" || continue
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3799 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 break;;
3801 * ) break;;
3802 esac
3803done
3804else
3805 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3806$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3807as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3808See \`config.log' for more details" "$LINENO" 5; }
3809fi
3810rm -f conftest conftest$ac_cv_exeext
3811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3812$as_echo "$ac_cv_exeext" >&6; }
3813
3814rm -f conftest.$ac_ext
3815EXEEXT=$ac_cv_exeext
3816ac_exeext=$EXEEXT
3817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818/* end confdefs.h. */
3819#include <stdio.h>
3820int
3821main ()
3822{
3823FILE *f = fopen ("conftest.out", "w");
3824 return ferror (f) || fclose (f) != 0;
3825
3826 ;
3827 return 0;
3828}
3829_ACEOF
3830ac_clean_files="$ac_clean_files conftest.out"
3831# Check that the compiler produces executables we can run. If not, either
3832# the compiler is broken, or we cross compile.
3833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3834$as_echo_n "checking whether we are cross compiling... " >&6; }
3835if test "$cross_compiling" != yes; then
3836 { { ac_try="$ac_link"
3837case "(($ac_try" in
3838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839 *) ac_try_echo=$ac_try;;
3840esac
3841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3842$as_echo "$ac_try_echo"; } >&5
3843 (eval "$ac_link") 2>&5
3844 ac_status=$?
3845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3846 test $ac_status = 0; }
3847 if { ac_try='./conftest$ac_cv_exeext'
3848 { { case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851esac
3852eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3853$as_echo "$ac_try_echo"; } >&5
3854 (eval "$ac_try") 2>&5
3855 ac_status=$?
3856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3857 test $ac_status = 0; }; }; then
3858 cross_compiling=no
3859 else
3860 if test "$cross_compiling" = maybe; then
3861 cross_compiling=yes
3862 else
3863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3865as_fn_error $? "cannot run C compiled programs.
3866If you meant to cross compile, use \`--host'.
3867See \`config.log' for more details" "$LINENO" 5; }
3868 fi
3869 fi
3870fi
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3872$as_echo "$cross_compiling" >&6; }
3873
3874rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3875ac_clean_files=$ac_clean_files_save
3876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3877$as_echo_n "checking for suffix of object files... " >&6; }
3878if ${ac_cv_objext+:} false; then :
3879 $as_echo_n "(cached) " >&6
3880else
3881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3882/* end confdefs.h. */
3883
3884int
3885main ()
3886{
3887
3888 ;
3889 return 0;
3890}
3891_ACEOF
3892rm -f conftest.o conftest.obj
3893if { { ac_try="$ac_compile"
3894case "(($ac_try" in
3895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3896 *) ac_try_echo=$ac_try;;
3897esac
3898eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3899$as_echo "$ac_try_echo"; } >&5
3900 (eval "$ac_compile") 2>&5
3901 ac_status=$?
3902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3903 test $ac_status = 0; }; then :
3904 for ac_file in conftest.o conftest.obj conftest.*; do
3905 test -f "$ac_file" || continue;
3906 case $ac_file in
3907 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3908 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3909 break;;
3910 esac
3911done
3912else
3913 $as_echo "$as_me: failed program was:" >&5
3914sed 's/^/| /' conftest.$ac_ext >&5
3915
3916{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3917$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3918as_fn_error $? "cannot compute suffix of object files: cannot compile
3919See \`config.log' for more details" "$LINENO" 5; }
3920fi
3921rm -f conftest.$ac_cv_objext conftest.$ac_ext
3922fi
3923{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3924$as_echo "$ac_cv_objext" >&6; }
3925OBJEXT=$ac_cv_objext
3926ac_objext=$OBJEXT
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3928$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3929if ${ac_cv_c_compiler_gnu+:} false; then :
3930 $as_echo_n "(cached) " >&6
3931else
3932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3933/* end confdefs.h. */
3934
3935int
3936main ()
3937{
3938#ifndef __GNUC__
3939 choke me
3940#endif
3941
3942 ;
3943 return 0;
3944}
3945_ACEOF
3946if ac_fn_c_try_compile "$LINENO"; then :
3947 ac_compiler_gnu=yes
3948else
3949 ac_compiler_gnu=no
3950fi
3951rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952ac_cv_c_compiler_gnu=$ac_compiler_gnu
3953
3954fi
3955{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3956$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3957if test $ac_compiler_gnu = yes; then
3958 GCC=yes
3959else
3960 GCC=
3961fi
3962ac_test_CFLAGS=${CFLAGS+set}
3963ac_save_CFLAGS=$CFLAGS
3964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3965$as_echo_n "checking whether $CC accepts -g... " >&6; }
3966if ${ac_cv_prog_cc_g+:} false; then :
3967 $as_echo_n "(cached) " >&6
3968else
3969 ac_save_c_werror_flag=$ac_c_werror_flag
3970 ac_c_werror_flag=yes
3971 ac_cv_prog_cc_g=no
3972 CFLAGS="-g"
3973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3974/* end confdefs.h. */
3975
3976int
3977main ()
3978{
3979
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_cv_prog_cc_g=yes
3986else
3987 CFLAGS=""
3988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3989/* end confdefs.h. */
3990
3991int
3992main ()
3993{
3994
3995 ;
3996 return 0;
3997}
3998_ACEOF
3999if ac_fn_c_try_compile "$LINENO"; then :
4000
4001else
4002 ac_c_werror_flag=$ac_save_c_werror_flag
4003 CFLAGS="-g"
4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4005/* end confdefs.h. */
4006
4007int
4008main ()
4009{
4010
4011 ;
4012 return 0;
4013}
4014_ACEOF
4015if ac_fn_c_try_compile "$LINENO"; then :
4016 ac_cv_prog_cc_g=yes
4017fi
4018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019fi
4020rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4021fi
4022rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024fi
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4026$as_echo "$ac_cv_prog_cc_g" >&6; }
4027if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4034 fi
4035else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4040 fi
4041fi
4042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4043$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4044if ${ac_cv_prog_cc_c89+:} false; then :
4045 $as_echo_n "(cached) " >&6
4046else
4047 ac_cv_prog_cc_c89=no
4048ac_save_CC=$CC
4049cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4050/* end confdefs.h. */
4051#include <stdarg.h>
4052#include <stdio.h>
4053struct stat;
4054/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4055struct buf { int x; };
4056FILE * (*rcsopen) (struct buf *, struct stat *, int);
4057static char *e (p, i)
4058 char **p;
4059 int i;
4060{
4061 return p[i];
4062}
4063static char *f (char * (*g) (char **, int), char **p, ...)
4064{
4065 char *s;
4066 va_list v;
4067 va_start (v,p);
4068 s = g (p, va_arg (v,int));
4069 va_end (v);
4070 return s;
4071}
4072
4073/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4074 function prototypes and stuff, but not '\xHH' hex character constants.
4075 These don't provoke an error unfortunately, instead are silently treated
4076 as 'x'. The following induces an error, until -std is added to get
4077 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4078 array size at least. It's necessary to write '\x00'==0 to get something
4079 that's true only with -std. */
4080int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4081
4082/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4083 inside strings and character constants. */
4084#define FOO(x) 'x'
4085int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4086
4087int test (int i, double x);
4088struct s1 {int (*f) (int a);};
4089struct s2 {int (*f) (double a);};
4090int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4091int argc;
4092char **argv;
4093int
4094main ()
4095{
4096return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4097 ;
4098 return 0;
4099}
4100_ACEOF
4101for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4102 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4103do
4104 CC="$ac_save_CC $ac_arg"
4105 if ac_fn_c_try_compile "$LINENO"; then :
4106 ac_cv_prog_cc_c89=$ac_arg
4107fi
4108rm -f core conftest.err conftest.$ac_objext
4109 test "x$ac_cv_prog_cc_c89" != "xno" && break
4110done
4111rm -f conftest.$ac_ext
4112CC=$ac_save_CC
4113
4114fi
4115# AC_CACHE_VAL
4116case "x$ac_cv_prog_cc_c89" in
4117 x)
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4119$as_echo "none needed" >&6; } ;;
4120 xno)
4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4122$as_echo "unsupported" >&6; } ;;
4123 *)
4124 CC="$CC $ac_cv_prog_cc_c89"
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4126$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4127esac
4128if test "x$ac_cv_prog_cc_c89" != xno; then :
4129
4130fi
4131
4132ac_ext=c
4133ac_cpp='$CPP $CPPFLAGS'
4134ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4135ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4136ac_compiler_gnu=$ac_cv_c_compiler_gnu
4137DEPDIR="${am__leading_dot}deps"
4138
4139ac_config_commands="$ac_config_commands depfiles"
4140
4141
4142am_make=${MAKE-make}
4143cat > confinc << 'END'
4144am__doit:
4145 @echo this is the am__doit target
4146.PHONY: am__doit
4147END
4148# If we don't find an include directive, just comment out the code.
4149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4150$as_echo_n "checking for style of include used by $am_make... " >&6; }
4151am__include="#"
4152am__quote=
4153_am_result=none
4154# First try GNU make style include.
4155echo "include confinc" > confmf
4156# Ignore all kinds of additional output from `make'.
4157case `$am_make -s -f confmf 2> /dev/null` in #(
4158*the\ am__doit\ target*)
4159 am__include=include
4160 am__quote=
4161 _am_result=GNU
4162 ;;
4163esac
4164# Now try BSD make style include.
4165if test "$am__include" = "#"; then
4166 echo '.include "confinc"' > confmf
4167 case `$am_make -s -f confmf 2> /dev/null` in #(
4168 *the\ am__doit\ target*)
4169 am__include=.include
4170 am__quote="\""
4171 _am_result=BSD
4172 ;;
4173 esac
4174fi
4175
4176
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4178$as_echo "$_am_result" >&6; }
4179rm -f confinc confmf
4180
4181# Check whether --enable-dependency-tracking was given.
4182if test "${enable_dependency_tracking+set}" = set; then :
4183 enableval=$enable_dependency_tracking;
4184fi
4185
4186if test "x$enable_dependency_tracking" != xno; then
4187 am_depcomp="$ac_aux_dir/depcomp"
4188 AMDEPBACKSLASH='\'
4189 am__nodep='_no'
4190fi
4191 if test "x$enable_dependency_tracking" != xno; then
4192 AMDEP_TRUE=
4193 AMDEP_FALSE='#'
4194else
4195 AMDEP_TRUE='#'
4196 AMDEP_FALSE=
4197fi
4198
4199
4200
4201depcc="$CC" am_compiler_list=
4202
4203{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4204$as_echo_n "checking dependency style of $depcc... " >&6; }
4205if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4206 $as_echo_n "(cached) " >&6
4207else
4208 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4209 # We make a subdir and do the tests there. Otherwise we can end up
4210 # making bogus files that we don't know about and never remove. For
4211 # instance it was reported that on HP-UX the gcc test will end up
4212 # making a dummy file named `D' -- because `-MD' means `put the output
4213 # in D'.
4214 rm -rf conftest.dir
4215 mkdir conftest.dir
4216 # Copy depcomp to subdir because otherwise we won't find it if we're
4217 # using a relative directory.
4218 cp "$am_depcomp" conftest.dir
4219 cd conftest.dir
4220 # We will build objects and dependencies in a subdirectory because
4221 # it helps to detect inapplicable dependency modes. For instance
4222 # both Tru64's cc and ICC support -MD to output dependencies as a
4223 # side effect of compilation, but ICC will put the dependencies in
4224 # the current directory while Tru64 will put them in the object
4225 # directory.
4226 mkdir sub
4227
4228 am_cv_CC_dependencies_compiler_type=none
4229 if test "$am_compiler_list" = ""; then
4230 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4231 fi
4232 am__universal=false
4233 case " $depcc " in #(
4234 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4235 esac
4236
4237 for depmode in $am_compiler_list; do
4238 # Setup a source with many dependencies, because some compilers
4239 # like to wrap large dependency lists on column 80 (with \), and
4240 # we should not choose a depcomp mode which is confused by this.
4241 #
4242 # We need to recreate these files for each test, as the compiler may
4243 # overwrite some of them when testing with obscure command lines.
4244 # This happens at least with the AIX C compiler.
4245 : > sub/conftest.c
4246 for i in 1 2 3 4 5 6; do
4247 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4248 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4249 # Solaris 8's {/usr,}/bin/sh.
4250 touch sub/conftst$i.h
4251 done
4252 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4253
4254 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4255 # mode. It turns out that the SunPro C++ compiler does not properly
4256 # handle `-M -o', and we need to detect this. Also, some Intel
4257 # versions had trouble with output in subdirs
4258 am__obj=sub/conftest.${OBJEXT-o}
4259 am__minus_obj="-o $am__obj"
4260 case $depmode in
4261 gcc)
4262 # This depmode causes a compiler race in universal mode.
4263 test "$am__universal" = false || continue
4264 ;;
4265 nosideeffect)
4266 # after this tag, mechanisms are not by side-effect, so they'll
4267 # only be used when explicitly requested
4268 if test "x$enable_dependency_tracking" = xyes; then
4269 continue
4270 else
4271 break
4272 fi
4273 ;;
4274 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4275 # This compiler won't grok `-c -o', but also, the minuso test has
4276 # not run yet. These depmodes are late enough in the game, and
4277 # so weak that their functioning should not be impacted.
4278 am__obj=conftest.${OBJEXT-o}
4279 am__minus_obj=
4280 ;;
4281 none) break ;;
4282 esac
4283 if depmode=$depmode \
4284 source=sub/conftest.c object=$am__obj \
4285 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4286 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4287 >/dev/null 2>conftest.err &&
4288 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4289 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4290 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4291 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4292 # icc doesn't choke on unknown options, it will just issue warnings
4293 # or remarks (even with -Werror). So we grep stderr for any message
4294 # that says an option was ignored or not supported.
4295 # When given -MP, icc 7.0 and 7.1 complain thusly:
4296 # icc: Command line warning: ignoring option '-M'; no argument required
4297 # The diagnosis changed in icc 8.0:
4298 # icc: Command line remark: option '-MP' not supported
4299 if (grep 'ignoring option' conftest.err ||
4300 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4301 am_cv_CC_dependencies_compiler_type=$depmode
4302 break
4303 fi
4304 fi
4305 done
4306
4307 cd ..
4308 rm -rf conftest.dir
4309else
4310 am_cv_CC_dependencies_compiler_type=none
4311fi
4312
4313fi
4314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4315$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4316CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4317
4318 if
4319 test "x$enable_dependency_tracking" != xno \
4320 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4321 am__fastdepCC_TRUE=
4322 am__fastdepCC_FALSE='#'
4323else
4324 am__fastdepCC_TRUE='#'
4325 am__fastdepCC_FALSE=
4326fi
4327
4328
4329if test "x$CC" != xcc; then
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4331$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4332else
4333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4334$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4335fi
4336set dummy $CC; ac_cc=`$as_echo "$2" |
4337 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4338if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340else
4341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4342/* end confdefs.h. */
4343
4344int
4345main ()
4346{
4347
4348 ;
4349 return 0;
4350}
4351_ACEOF
4352# Make sure it works both with $CC and with simple cc.
4353# We do the test twice because some compilers refuse to overwrite an
4354# existing .o file with -o, though they will create one.
4355ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4356rm -f conftest2.*
4357if { { case "(($ac_try" in
4358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4359 *) ac_try_echo=$ac_try;;
4360esac
4361eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4362$as_echo "$ac_try_echo"; } >&5
4363 (eval "$ac_try") 2>&5
4364 ac_status=$?
4365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4366 test $ac_status = 0; } &&
4367 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4369 *) ac_try_echo=$ac_try;;
4370esac
4371eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4372$as_echo "$ac_try_echo"; } >&5
4373 (eval "$ac_try") 2>&5
4374 ac_status=$?
4375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4376 test $ac_status = 0; };
4377then
4378 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4379 if test "x$CC" != xcc; then
4380 # Test first that cc exists at all.
4381 if { ac_try='cc -c conftest.$ac_ext >&5'
4382 { { case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385esac
4386eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4387$as_echo "$ac_try_echo"; } >&5
4388 (eval "$ac_try") 2>&5
4389 ac_status=$?
4390 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4391 test $ac_status = 0; }; }; then
4392 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4393 rm -f conftest2.*
4394 if { { case "(($ac_try" in
4395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4396 *) ac_try_echo=$ac_try;;
4397esac
4398eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4399$as_echo "$ac_try_echo"; } >&5
4400 (eval "$ac_try") 2>&5
4401 ac_status=$?
4402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4403 test $ac_status = 0; } &&
4404 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4406 *) ac_try_echo=$ac_try;;
4407esac
4408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4409$as_echo "$ac_try_echo"; } >&5
4410 (eval "$ac_try") 2>&5
4411 ac_status=$?
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; };
4414 then
4415 # cc works too.
4416 :
4417 else
4418 # cc exists but doesn't like -o.
4419 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4420 fi
4421 fi
4422 fi
4423else
4424 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4425fi
4426rm -f core conftest*
4427
4428fi
4429if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4431$as_echo "yes" >&6; }
4432else
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4434$as_echo "no" >&6; }
4435
4436$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4437
4438fi
4439
4440# FIXME: we rely on the cache variable name because
4441# there is no other way.
4442set dummy $CC
4443am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4444eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4445if test "$am_t" != yes; then
4446 # Losing compiler, so override with the script.
4447 # FIXME: It is wrong to rewrite CC.
4448 # But if we don't then we get into trouble of one sort or another.
4449 # A longer-term fix would be to have automake use am__CC in this case,
4450 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4451 CC="$am_aux_dir/compile $CC"
4452fi
4453
4454
4455if test -z "$CC"; then
4456 CCLD="\$(CC)"
4457else
4458 CCLD="$CC"
4459fi
4460test "x$GCC" = "xyes" && CFLAGS="$CFLAGS -Wall"
4461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4462$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4463set x ${MAKE-make}
4464ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4465if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467else
4468 cat >conftest.make <<\_ACEOF
4469SHELL = /bin/sh
4470all:
4471 @echo '@@@%%%=$(MAKE)=@@@%%%'
4472_ACEOF
4473# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4474case `${MAKE-make} -f conftest.make 2>/dev/null` in
4475 *@@@%%%=?*=@@@%%%*)
4476 eval ac_cv_prog_make_${ac_make}_set=yes;;
4477 *)
4478 eval ac_cv_prog_make_${ac_make}_set=no;;
4479esac
4480rm -f conftest.make
4481fi
4482if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4484$as_echo "yes" >&6; }
4485 SET_MAKE=
4486else
4487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4488$as_echo "no" >&6; }
4489 SET_MAKE="MAKE=${MAKE-make}"
4490fi
4491
4492
4493
4494# Check whether --enable-shared was given.
4495if test "${enable_shared+set}" = set; then :
4496 enableval=$enable_shared; p=${PACKAGE-default}
4497 case $enableval in
4498 yes) enable_shared=yes ;;
4499 no) enable_shared=no ;;
4500 *)
4501 enable_shared=no
4502 # Look at the argument we got. We use all the common list separators.
4503 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4504 for pkg in $enableval; do
4505 IFS="$lt_save_ifs"
4506 if test "X$pkg" = "X$p"; then
4507 enable_shared=yes
4508 fi
4509 done
4510 IFS="$lt_save_ifs"
4511 ;;
4512 esac
4513else
4514 enable_shared=yes
4515fi
4516
4517
4518# Check whether --enable-static was given.
4519if test "${enable_static+set}" = set; then :
4520 enableval=$enable_static; p=${PACKAGE-default}
4521 case $enableval in
4522 yes) enable_static=yes ;;
4523 no) enable_static=no ;;
4524 *)
4525 enable_static=no
4526 # Look at the argument we got. We use all the common list separators.
4527 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4528 for pkg in $enableval; do
4529 IFS="$lt_save_ifs"
4530 if test "X$pkg" = "X$p"; then
4531 enable_static=yes
4532 fi
4533 done
4534 IFS="$lt_save_ifs"
4535 ;;
4536 esac
4537else
4538 enable_static=yes
4539fi
4540
4541
4542# Check whether --enable-fast-install was given.
4543if test "${enable_fast_install+set}" = set; then :
4544 enableval=$enable_fast_install; p=${PACKAGE-default}
4545 case $enableval in
4546 yes) enable_fast_install=yes ;;
4547 no) enable_fast_install=no ;;
4548 *)
4549 enable_fast_install=no
4550 # Look at the argument we got. We use all the common list separators.
4551 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4552 for pkg in $enableval; do
4553 IFS="$lt_save_ifs"
4554 if test "X$pkg" = "X$p"; then
4555 enable_fast_install=yes
4556 fi
4557 done
4558 IFS="$lt_save_ifs"
4559 ;;
4560 esac
4561else
4562 enable_fast_install=yes
4563fi
4564
4565
4566# Make sure we can run config.sub.
4567$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4568 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4569
4570{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4571$as_echo_n "checking build system type... " >&6; }
4572if ${ac_cv_build+:} false; then :
4573 $as_echo_n "(cached) " >&6
4574else
4575 ac_build_alias=$build_alias
4576test "x$ac_build_alias" = x &&
4577 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4578test "x$ac_build_alias" = x &&
4579 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4580ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4581 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4582
4583fi
4584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4585$as_echo "$ac_cv_build" >&6; }
4586case $ac_cv_build in
4587*-*-*) ;;
4588*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4589esac
4590build=$ac_cv_build
4591ac_save_IFS=$IFS; IFS='-'
4592set x $ac_cv_build
4593shift
4594build_cpu=$1
4595build_vendor=$2
4596shift; shift
4597# Remember, the first character of IFS is used to create $*,
4598# except with old shells:
4599build_os=$*
4600IFS=$ac_save_IFS
4601case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4602
4603
4604{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4605$as_echo_n "checking host system type... " >&6; }
4606if ${ac_cv_host+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608else
4609 if test "x$host_alias" = x; then
4610 ac_cv_host=$ac_cv_build
4611else
4612 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4613 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4614fi
4615
4616fi
4617{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4618$as_echo "$ac_cv_host" >&6; }
4619case $ac_cv_host in
4620*-*-*) ;;
4621*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4622esac
4623host=$ac_cv_host
4624ac_save_IFS=$IFS; IFS='-'
4625set x $ac_cv_host
4626shift
4627host_cpu=$1
4628host_vendor=$2
4629shift; shift
4630# Remember, the first character of IFS is used to create $*,
4631# except with old shells:
4632host_os=$*
4633IFS=$ac_save_IFS
4634case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4635
4636
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4638$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639if ${lt_cv_path_SED+:} false; then :
4640 $as_echo_n "(cached) " >&6
4641else
4642 # Loop through the user's path and test for sed and gsed.
4643# Then use that list of sed's as ones to test for truncation.
4644as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4645for as_dir in $PATH
4646do
4647 IFS=$as_save_IFS
4648 test -z "$as_dir" && as_dir=.
4649 for lt_ac_prog in sed gsed; do
4650 for ac_exec_ext in '' $ac_executable_extensions; do
4651 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4652 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4653 fi
4654 done
4655 done
4656done
4657lt_ac_max=0
4658lt_ac_count=0
4659# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4660# along with /bin/sed that truncates output.
4661for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4662 test ! -f $lt_ac_sed && continue
4663 cat /dev/null > conftest.in
4664 lt_ac_count=0
4665 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4666 # Check for GNU sed and select it if it is found.
4667 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4668 lt_cv_path_SED=$lt_ac_sed
4669 break
4670 fi
4671 while true; do
4672 cat conftest.in conftest.in >conftest.tmp
4673 mv conftest.tmp conftest.in
4674 cp conftest.in conftest.nl
4675 echo >>conftest.nl
4676 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4677 cmp -s conftest.out conftest.nl || break
4678 # 10000 chars as input seems more than enough
4679 test $lt_ac_count -gt 10 && break
4680 lt_ac_count=`expr $lt_ac_count + 1`
4681 if test $lt_ac_count -gt $lt_ac_max; then
4682 lt_ac_max=$lt_ac_count
4683 lt_cv_path_SED=$lt_ac_sed
4684 fi
4685 done
4686done
4687
4688fi
4689
4690SED=$lt_cv_path_SED
4691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4692$as_echo "$SED" >&6; }
4693
4694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4695$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4696if ${ac_cv_path_GREP+:} false; then :
4697 $as_echo_n "(cached) " >&6
4698else
4699 if test -z "$GREP"; then
4700 ac_path_GREP_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in grep ggrep; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_GREP" || continue
4711# Check for GNU ac_path_GREP and select it if it is found.
4712 # Check for GNU $ac_path_GREP
4713case `"$ac_path_GREP" --version 2>&1` in
4714*GNU*)
4715 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4716*)
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4720 do
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo 'GREP' >> "conftest.nl"
4725 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_GREP="$ac_path_GREP"
4731 ac_path_GREP_max=$ac_count
4732 fi
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737esac
4738
4739 $ac_path_GREP_found && break 3
4740 done
4741 done
4742 done
4743IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_GREP"; then
4745 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746 fi
4747else
4748 ac_cv_path_GREP=$GREP
4749fi
4750
4751fi
4752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4753$as_echo "$ac_cv_path_GREP" >&6; }
4754 GREP="$ac_cv_path_GREP"
4755
4756
4757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4758$as_echo_n "checking for egrep... " >&6; }
4759if ${ac_cv_path_EGREP+:} false; then :
4760 $as_echo_n "(cached) " >&6
4761else
4762 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4763 then ac_cv_path_EGREP="$GREP -E"
4764 else
4765 if test -z "$EGREP"; then
4766 ac_path_EGREP_found=false
4767 # Loop through the user's path and test for each of PROGNAME-LIST
4768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4769for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4770do
4771 IFS=$as_save_IFS
4772 test -z "$as_dir" && as_dir=.
4773 for ac_prog in egrep; do
4774 for ac_exec_ext in '' $ac_executable_extensions; do
4775 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4776 as_fn_executable_p "$ac_path_EGREP" || continue
4777# Check for GNU ac_path_EGREP and select it if it is found.
4778 # Check for GNU $ac_path_EGREP
4779case `"$ac_path_EGREP" --version 2>&1` in
4780*GNU*)
4781 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4782*)
4783 ac_count=0
4784 $as_echo_n 0123456789 >"conftest.in"
4785 while :
4786 do
4787 cat "conftest.in" "conftest.in" >"conftest.tmp"
4788 mv "conftest.tmp" "conftest.in"
4789 cp "conftest.in" "conftest.nl"
4790 $as_echo 'EGREP' >> "conftest.nl"
4791 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4792 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4793 as_fn_arith $ac_count + 1 && ac_count=$as_val
4794 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4795 # Best one so far, save it but keep looking for a better one
4796 ac_cv_path_EGREP="$ac_path_EGREP"
4797 ac_path_EGREP_max=$ac_count
4798 fi
4799 # 10*(2^10) chars as input seems more than enough
4800 test $ac_count -gt 10 && break
4801 done
4802 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4803esac
4804
4805 $ac_path_EGREP_found && break 3
4806 done
4807 done
4808 done
4809IFS=$as_save_IFS
4810 if test -z "$ac_cv_path_EGREP"; then
4811 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4812 fi
4813else
4814 ac_cv_path_EGREP=$EGREP
4815fi
4816
4817 fi
4818fi
4819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4820$as_echo "$ac_cv_path_EGREP" >&6; }
4821 EGREP="$ac_cv_path_EGREP"
4822
4823
4824
4825# Check whether --with-gnu-ld was given.
4826if test "${with_gnu_ld+set}" = set; then :
4827 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4828else
4829 with_gnu_ld=no
4830fi
4831
4832ac_prog=ld
4833if test "$GCC" = yes; then
4834 # Check if gcc -print-prog-name=ld gives a path.
4835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4836$as_echo_n "checking for ld used by $CC... " >&6; }
4837 case $host in
4838 *-*-mingw*)
4839 # gcc leaves a trailing carriage return which upsets mingw
4840 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4841 *)
4842 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4843 esac
4844 case $ac_prog in
4845 # Accept absolute paths.
4846 [\\/]* | ?:[\\/]*)
4847 re_direlt='/[^/][^/]*/\.\./'
4848 # Canonicalize the pathname of ld
4849 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4850 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4851 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4852 done
4853 test -z "$LD" && LD="$ac_prog"
4854 ;;
4855 "")
4856 # If it fails, then pretend we aren't using GCC.
4857 ac_prog=ld
4858 ;;
4859 *)
4860 # If it is relative, then search for the first ld in PATH.
4861 with_gnu_ld=unknown
4862 ;;
4863 esac
4864elif test "$with_gnu_ld" = yes; then
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4866$as_echo_n "checking for GNU ld... " >&6; }
4867else
4868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4869$as_echo_n "checking for non-GNU ld... " >&6; }
4870fi
4871if ${lt_cv_path_LD+:} false; then :
4872 $as_echo_n "(cached) " >&6
4873else
4874 if test -z "$LD"; then
4875 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4876 for ac_dir in $PATH; do
4877 IFS="$lt_save_ifs"
4878 test -z "$ac_dir" && ac_dir=.
4879 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4880 lt_cv_path_LD="$ac_dir/$ac_prog"
4881 # Check to see if the program is GNU ld. I'd rather use --version,
4882 # but apparently some variants of GNU ld only accept -v.
4883 # Break only if it was the GNU/non-GNU ld that we prefer.
4884 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4885 *GNU* | *'with BFD'*)
4886 test "$with_gnu_ld" != no && break
4887 ;;
4888 *)
4889 test "$with_gnu_ld" != yes && break
4890 ;;
4891 esac
4892 fi
4893 done
4894 IFS="$lt_save_ifs"
4895else
4896 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4897fi
4898fi
4899
4900LD="$lt_cv_path_LD"
4901if test -n "$LD"; then
4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4903$as_echo "$LD" >&6; }
4904else
4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4906$as_echo "no" >&6; }
4907fi
4908test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4910$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4911if ${lt_cv_prog_gnu_ld+:} false; then :
4912 $as_echo_n "(cached) " >&6
4913else
4914 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4915case `$LD -v 2>&1 </dev/null` in
4916*GNU* | *'with BFD'*)
4917 lt_cv_prog_gnu_ld=yes
4918 ;;
4919*)
4920 lt_cv_prog_gnu_ld=no
4921 ;;
4922esac
4923fi
4924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4925$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4926with_gnu_ld=$lt_cv_prog_gnu_ld
4927
4928
4929{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4930$as_echo_n "checking for $LD option to reload object files... " >&6; }
4931if ${lt_cv_ld_reload_flag+:} false; then :
4932 $as_echo_n "(cached) " >&6
4933else
4934 lt_cv_ld_reload_flag='-r'
4935fi
4936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4937$as_echo "$lt_cv_ld_reload_flag" >&6; }
4938reload_flag=$lt_cv_ld_reload_flag
4939case $reload_flag in
4940"" | " "*) ;;
4941*) reload_flag=" $reload_flag" ;;
4942esac
4943reload_cmds='$LD$reload_flag -o $output$reload_objs'
4944case $host_os in
4945 darwin*)
4946 if test "$GCC" = yes; then
4947 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4948 else
4949 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4950 fi
4951 ;;
4952esac
4953
4954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4955$as_echo_n "checking for BSD-compatible nm... " >&6; }
4956if ${lt_cv_path_NM+:} false; then :
4957 $as_echo_n "(cached) " >&6
4958else
4959 if test -n "$NM"; then
4960 # Let the user override the test.
4961 lt_cv_path_NM="$NM"
4962else
4963 lt_nm_to_check="${ac_tool_prefix}nm"
4964 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4965 lt_nm_to_check="$lt_nm_to_check nm"
4966 fi
4967 for lt_tmp_nm in $lt_nm_to_check; do
4968 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4969 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4970 IFS="$lt_save_ifs"
4971 test -z "$ac_dir" && ac_dir=.
4972 tmp_nm="$ac_dir/$lt_tmp_nm"
4973 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4974 # Check to see if the nm accepts a BSD-compat flag.
4975 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4976 # nm: unknown option "B" ignored
4977 # Tru64's nm complains that /dev/null is an invalid object file
4978 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4979 */dev/null* | *'Invalid file or object type'*)
4980 lt_cv_path_NM="$tmp_nm -B"
4981 break
4982 ;;
4983 *)
4984 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4985 */dev/null*)
4986 lt_cv_path_NM="$tmp_nm -p"
4987 break
4988 ;;
4989 *)
4990 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4991 continue # so that we can try to find one that supports BSD flags
4992 ;;
4993 esac
4994 ;;
4995 esac
4996 fi
4997 done
4998 IFS="$lt_save_ifs"
4999 done
5000 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5001fi
5002fi
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5004$as_echo "$lt_cv_path_NM" >&6; }
5005NM="$lt_cv_path_NM"
5006
5007{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5008$as_echo_n "checking whether ln -s works... " >&6; }
5009LN_S=$as_ln_s
5010if test "$LN_S" = "ln -s"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5012$as_echo "yes" >&6; }
5013else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5015$as_echo "no, using $LN_S" >&6; }
5016fi
5017
5018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
5019$as_echo_n "checking how to recognise dependent libraries... " >&6; }
5020if ${lt_cv_deplibs_check_method+:} false; then :
5021 $as_echo_n "(cached) " >&6
5022else
5023 lt_cv_file_magic_cmd='$MAGIC_CMD'
5024lt_cv_file_magic_test_file=
5025lt_cv_deplibs_check_method='unknown'
5026# Need to set the preceding variable on all platforms that support
5027# interlibrary dependencies.
5028# 'none' -- dependencies not supported.
5029# `unknown' -- same as none, but documents that we really don't know.
5030# 'pass_all' -- all dependencies passed with no checks.
5031# 'test_compile' -- check by making test program.
5032# 'file_magic [[regex]]' -- check by looking for files in library path
5033# which responds to the $file_magic_cmd with a given extended regex.
5034# If you have `file' or equivalent on your system and you're not sure
5035# whether `pass_all' will *always* work, you probably want this one.
5036
5037case $host_os in
5038aix4* | aix5*)
5039 lt_cv_deplibs_check_method=pass_all
5040 ;;
5041
5042beos*)
5043 lt_cv_deplibs_check_method=pass_all
5044 ;;
5045
5046bsdi[45]*)
5047 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5048 lt_cv_file_magic_cmd='/usr/bin/file -L'
5049 lt_cv_file_magic_test_file=/shlib/libc.so
5050 ;;
5051
5052cygwin*)
5053 # func_win32_libid is a shell function defined in ltmain.sh
5054 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5055 lt_cv_file_magic_cmd='func_win32_libid'
5056 ;;
5057
5058mingw* | pw32*)
5059 # Base MSYS/MinGW do not provide the 'file' command needed by
5060 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5061 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5062 lt_cv_file_magic_cmd='$OBJDUMP -f'
5063 ;;
5064
5065darwin* | rhapsody*)
5066 lt_cv_deplibs_check_method=pass_all
5067 ;;
5068
5069freebsd* | kfreebsd*-gnu | dragonfly*)
5070 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5071 case $host_cpu in
5072 i*86 )
5073 # Not sure whether the presence of OpenBSD here was a mistake.
5074 # Let's accept both of them until this is cleared up.
5075 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5076 lt_cv_file_magic_cmd=/usr/bin/file
5077 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5078 ;;
5079 esac
5080 else
5081 lt_cv_deplibs_check_method=pass_all
5082 fi
5083 ;;
5084
5085gnu*)
5086 lt_cv_deplibs_check_method=pass_all
5087 ;;
5088
5089hpux10.20* | hpux11*)
5090 lt_cv_file_magic_cmd=/usr/bin/file
5091 case $host_cpu in
5092 ia64*)
5093 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5094 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5095 ;;
5096 hppa*64*)
5097 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]'
5098 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5099 ;;
5100 *)
5101 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5102 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5103 ;;
5104 esac
5105 ;;
5106
5107interix3*)
5108 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5109 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5110 ;;
5111
5112irix5* | irix6* | nonstopux*)
5113 case $LD in
5114 *-32|*"-32 ") libmagic=32-bit;;
5115 *-n32|*"-n32 ") libmagic=N32;;
5116 *-64|*"-64 ") libmagic=64-bit;;
5117 *) libmagic=never-match;;
5118 esac
5119 lt_cv_deplibs_check_method=pass_all
5120 ;;
5121
5122# This must be Linux ELF.
5123linux*)
5124 lt_cv_deplibs_check_method=pass_all
5125 ;;
5126
5127netbsd*)
5128 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5129 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5130 else
5131 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5132 fi
5133 ;;
5134
5135newos6*)
5136 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5137 lt_cv_file_magic_cmd=/usr/bin/file
5138 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5139 ;;
5140
5141nto-qnx*)
5142 lt_cv_deplibs_check_method=unknown
5143 ;;
5144
5145openbsd*)
5146 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5147 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5148 else
5149 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5150 fi
5151 ;;
5152
5153osf3* | osf4* | osf5*)
5154 lt_cv_deplibs_check_method=pass_all
5155 ;;
5156
5157solaris*)
5158 lt_cv_deplibs_check_method=pass_all
5159 ;;
5160
5161sysv4 | sysv4.3*)
5162 case $host_vendor in
5163 motorola)
5164 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]'
5165 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5166 ;;
5167 ncr)
5168 lt_cv_deplibs_check_method=pass_all
5169 ;;
5170 sequent)
5171 lt_cv_file_magic_cmd='/bin/file'
5172 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5173 ;;
5174 sni)
5175 lt_cv_file_magic_cmd='/bin/file'
5176 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5177 lt_cv_file_magic_test_file=/lib/libc.so
5178 ;;
5179 siemens)
5180 lt_cv_deplibs_check_method=pass_all
5181 ;;
5182 pc)
5183 lt_cv_deplibs_check_method=pass_all
5184 ;;
5185 esac
5186 ;;
5187
5188sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5189 lt_cv_deplibs_check_method=pass_all
5190 ;;
5191esac
5192
5193fi
5194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5195$as_echo "$lt_cv_deplibs_check_method" >&6; }
5196file_magic_cmd=$lt_cv_file_magic_cmd
5197deplibs_check_method=$lt_cv_deplibs_check_method
5198test -z "$deplibs_check_method" && deplibs_check_method=unknown
5199
5200
5201
5202
5203# If no C compiler was specified, use CC.
5204LTCC=${LTCC-"$CC"}
5205
5206# If no C compiler flags were specified, use CFLAGS.
5207LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5208
5209# Allow CC to be a program name with arguments.
5210compiler=$CC
5211
5212
5213# Check whether --enable-libtool-lock was given.
5214if test "${enable_libtool_lock+set}" = set; then :
5215 enableval=$enable_libtool_lock;
5216fi
5217
5218test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5219
5220# Some flags need to be propagated to the compiler or linker for good
5221# libtool support.
5222case $host in
5223ia64-*-hpux*)
5224 # Find out which ABI we are using.
5225 echo 'int i;' > conftest.$ac_ext
5226 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5227 (eval $ac_compile) 2>&5
5228 ac_status=$?
5229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5230 test $ac_status = 0; }; then
5231 case `/usr/bin/file conftest.$ac_objext` in
5232 *ELF-32*)
5233 HPUX_IA64_MODE="32"
5234 ;;
5235 *ELF-64*)
5236 HPUX_IA64_MODE="64"
5237 ;;
5238 esac
5239 fi
5240 rm -rf conftest*
5241 ;;
5242*-*-irix6*)
5243 # Find out which ABI we are using.
5244 echo '#line 5244 "configure"' > conftest.$ac_ext
5245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5246 (eval $ac_compile) 2>&5
5247 ac_status=$?
5248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5249 test $ac_status = 0; }; then
5250 if test "$lt_cv_prog_gnu_ld" = yes; then
5251 case `/usr/bin/file conftest.$ac_objext` in
5252 *32-bit*)
5253 LD="${LD-ld} -melf32bsmip"
5254 ;;
5255 *N32*)
5256 LD="${LD-ld} -melf32bmipn32"
5257 ;;
5258 *64-bit*)
5259 LD="${LD-ld} -melf64bmip"
5260 ;;
5261 esac
5262 else
5263 case `/usr/bin/file conftest.$ac_objext` in
5264 *32-bit*)
5265 LD="${LD-ld} -32"
5266 ;;
5267 *N32*)
5268 LD="${LD-ld} -n32"
5269 ;;
5270 *64-bit*)
5271 LD="${LD-ld} -64"
5272 ;;
5273 esac
5274 fi
5275 fi
5276 rm -rf conftest*
5277 ;;
5278
5279x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5280 # Find out which ABI we are using.
5281 echo 'int i;' > conftest.$ac_ext
5282 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5283 (eval $ac_compile) 2>&5
5284 ac_status=$?
5285 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5286 test $ac_status = 0; }; then
5287 case `/usr/bin/file conftest.o` in
5288 *32-bit*)
5289 case $host in
5290 x86_64-*linux*)
5291 LD="${LD-ld} -m elf_i386"
5292 ;;
5293 ppc64-*linux*|powerpc64-*linux*)
5294 LD="${LD-ld} -m elf32ppclinux"
5295 ;;
5296 s390x-*linux*)
5297 LD="${LD-ld} -m elf_s390"
5298 ;;
5299 sparc64-*linux*)
5300 LD="${LD-ld} -m elf32_sparc"
5301 ;;
5302 esac
5303 ;;
5304 *64-bit*)
5305 case $host in
5306 x86_64-*linux*)
5307 LD="${LD-ld} -m elf_x86_64"
5308 ;;
5309 ppc*-*linux*|powerpc*-*linux*)
5310 LD="${LD-ld} -m elf64ppc"
5311 ;;
5312 s390*-*linux*)
5313 LD="${LD-ld} -m elf64_s390"
5314 ;;
5315 sparc*-*linux*)
5316 LD="${LD-ld} -m elf64_sparc"
5317 ;;
5318 esac
5319 ;;
5320 esac
5321 fi
5322 rm -rf conftest*
5323 ;;
5324
5325*-*-sco3.2v5*)
5326 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5327 SAVE_CFLAGS="$CFLAGS"
5328 CFLAGS="$CFLAGS -belf"
5329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5330$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5331if ${lt_cv_cc_needs_belf+:} false; then :
5332 $as_echo_n "(cached) " >&6
5333else
5334 ac_ext=c
5335ac_cpp='$CPP $CPPFLAGS'
5336ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5337ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5338ac_compiler_gnu=$ac_cv_c_compiler_gnu
5339
5340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5341/* end confdefs.h. */
5342
5343int
5344main ()
5345{
5346
5347 ;
5348 return 0;
5349}
5350_ACEOF
5351if ac_fn_c_try_link "$LINENO"; then :
5352 lt_cv_cc_needs_belf=yes
5353else
5354 lt_cv_cc_needs_belf=no
5355fi
5356rm -f core conftest.err conftest.$ac_objext \
5357 conftest$ac_exeext conftest.$ac_ext
5358 ac_ext=c
5359ac_cpp='$CPP $CPPFLAGS'
5360ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5361ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5362ac_compiler_gnu=$ac_cv_c_compiler_gnu
5363
5364fi
5365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5366$as_echo "$lt_cv_cc_needs_belf" >&6; }
5367 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5368 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5369 CFLAGS="$SAVE_CFLAGS"
5370 fi
5371 ;;
5372sparc*-*solaris*)
5373 # Find out which ABI we are using.
5374 echo 'int i;' > conftest.$ac_ext
5375 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5376 (eval $ac_compile) 2>&5
5377 ac_status=$?
5378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5379 test $ac_status = 0; }; then
5380 case `/usr/bin/file conftest.o` in
5381 *64-bit*)
5382 case $lt_cv_prog_gnu_ld in
5383 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5384 *) LD="${LD-ld} -64" ;;
5385 esac
5386 ;;
5387 esac
5388 fi
5389 rm -rf conftest*
5390 ;;
5391
5392*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5393 if test -n "$ac_tool_prefix"; then
5394 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5395set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5397$as_echo_n "checking for $ac_word... " >&6; }
5398if ${ac_cv_prog_DLLTOOL+:} false; then :
5399 $as_echo_n "(cached) " >&6
5400else
5401 if test -n "$DLLTOOL"; then
5402 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5403else
5404as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5405for as_dir in $PATH
5406do
5407 IFS=$as_save_IFS
5408 test -z "$as_dir" && as_dir=.
5409 for ac_exec_ext in '' $ac_executable_extensions; do
5410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5411 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5413 break 2
5414 fi
5415done
5416 done
5417IFS=$as_save_IFS
5418
5419fi
5420fi
5421DLLTOOL=$ac_cv_prog_DLLTOOL
5422if test -n "$DLLTOOL"; then
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5424$as_echo "$DLLTOOL" >&6; }
5425else
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5427$as_echo "no" >&6; }
5428fi
5429
5430
5431fi
5432if test -z "$ac_cv_prog_DLLTOOL"; then
5433 ac_ct_DLLTOOL=$DLLTOOL
5434 # Extract the first word of "dlltool", so it can be a program name with args.
5435set dummy dlltool; ac_word=$2
5436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5437$as_echo_n "checking for $ac_word... " >&6; }
5438if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5439 $as_echo_n "(cached) " >&6
5440else
5441 if test -n "$ac_ct_DLLTOOL"; then
5442 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5443else
5444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5445for as_dir in $PATH
5446do
5447 IFS=$as_save_IFS
5448 test -z "$as_dir" && as_dir=.
5449 for ac_exec_ext in '' $ac_executable_extensions; do
5450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5451 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5453 break 2
5454 fi
5455done
5456 done
5457IFS=$as_save_IFS
5458
5459fi
5460fi
5461ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5462if test -n "$ac_ct_DLLTOOL"; then
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5464$as_echo "$ac_ct_DLLTOOL" >&6; }
5465else
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467$as_echo "no" >&6; }
5468fi
5469
5470 if test "x$ac_ct_DLLTOOL" = x; then
5471 DLLTOOL="false"
5472 else
5473 case $cross_compiling:$ac_tool_warned in
5474yes:)
5475{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5476$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5477ac_tool_warned=yes ;;
5478esac
5479 DLLTOOL=$ac_ct_DLLTOOL
5480 fi
5481else
5482 DLLTOOL="$ac_cv_prog_DLLTOOL"
5483fi
5484
5485 if test -n "$ac_tool_prefix"; then
5486 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5487set dummy ${ac_tool_prefix}as; ac_word=$2
5488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5489$as_echo_n "checking for $ac_word... " >&6; }
5490if ${ac_cv_prog_AS+:} false; then :
5491 $as_echo_n "(cached) " >&6
5492else
5493 if test -n "$AS"; then
5494 ac_cv_prog_AS="$AS" # Let the user override the test.
5495else
5496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5497for as_dir in $PATH
5498do
5499 IFS=$as_save_IFS
5500 test -z "$as_dir" && as_dir=.
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5503 ac_cv_prog_AS="${ac_tool_prefix}as"
5504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 break 2
5506 fi
5507done
5508 done
5509IFS=$as_save_IFS
5510
5511fi
5512fi
5513AS=$ac_cv_prog_AS
5514if test -n "$AS"; then
5515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5516$as_echo "$AS" >&6; }
5517else
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5519$as_echo "no" >&6; }
5520fi
5521
5522
5523fi
5524if test -z "$ac_cv_prog_AS"; then
5525 ac_ct_AS=$AS
5526 # Extract the first word of "as", so it can be a program name with args.
5527set dummy as; ac_word=$2
5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5529$as_echo_n "checking for $ac_word... " >&6; }
5530if ${ac_cv_prog_ac_ct_AS+:} false; then :
5531 $as_echo_n "(cached) " >&6
5532else
5533 if test -n "$ac_ct_AS"; then
5534 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5535else
5536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5537for as_dir in $PATH
5538do
5539 IFS=$as_save_IFS
5540 test -z "$as_dir" && as_dir=.
5541 for ac_exec_ext in '' $ac_executable_extensions; do
5542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5543 ac_cv_prog_ac_ct_AS="as"
5544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 break 2
5546 fi
5547done
5548 done
5549IFS=$as_save_IFS
5550
5551fi
5552fi
5553ac_ct_AS=$ac_cv_prog_ac_ct_AS
5554if test -n "$ac_ct_AS"; then
5555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5556$as_echo "$ac_ct_AS" >&6; }
5557else
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5559$as_echo "no" >&6; }
5560fi
5561
5562 if test "x$ac_ct_AS" = x; then
5563 AS="false"
5564 else
5565 case $cross_compiling:$ac_tool_warned in
5566yes:)
5567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5569ac_tool_warned=yes ;;
5570esac
5571 AS=$ac_ct_AS
5572 fi
5573else
5574 AS="$ac_cv_prog_AS"
5575fi
5576
5577 if test -n "$ac_tool_prefix"; then
5578 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5579set dummy ${ac_tool_prefix}objdump; ac_word=$2
5580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5581$as_echo_n "checking for $ac_word... " >&6; }
5582if ${ac_cv_prog_OBJDUMP+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584else
5585 if test -n "$OBJDUMP"; then
5586 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5587else
5588as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5589for as_dir in $PATH
5590do
5591 IFS=$as_save_IFS
5592 test -z "$as_dir" && as_dir=.
5593 for ac_exec_ext in '' $ac_executable_extensions; do
5594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5595 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 break 2
5598 fi
5599done
5600 done
5601IFS=$as_save_IFS
5602
5603fi
5604fi
5605OBJDUMP=$ac_cv_prog_OBJDUMP
5606if test -n "$OBJDUMP"; then
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5608$as_echo "$OBJDUMP" >&6; }
5609else
5610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5611$as_echo "no" >&6; }
5612fi
5613
5614
5615fi
5616if test -z "$ac_cv_prog_OBJDUMP"; then
5617 ac_ct_OBJDUMP=$OBJDUMP
5618 # Extract the first word of "objdump", so it can be a program name with args.
5619set dummy objdump; ac_word=$2
5620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5621$as_echo_n "checking for $ac_word... " >&6; }
5622if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5623 $as_echo_n "(cached) " >&6
5624else
5625 if test -n "$ac_ct_OBJDUMP"; then
5626 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5627else
5628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5629for as_dir in $PATH
5630do
5631 IFS=$as_save_IFS
5632 test -z "$as_dir" && as_dir=.
5633 for ac_exec_ext in '' $ac_executable_extensions; do
5634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5635 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 break 2
5638 fi
5639done
5640 done
5641IFS=$as_save_IFS
5642
5643fi
5644fi
5645ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5646if test -n "$ac_ct_OBJDUMP"; then
5647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5648$as_echo "$ac_ct_OBJDUMP" >&6; }
5649else
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5651$as_echo "no" >&6; }
5652fi
5653
5654 if test "x$ac_ct_OBJDUMP" = x; then
5655 OBJDUMP="false"
5656 else
5657 case $cross_compiling:$ac_tool_warned in
5658yes:)
5659{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5660$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5661ac_tool_warned=yes ;;
5662esac
5663 OBJDUMP=$ac_ct_OBJDUMP
5664 fi
5665else
5666 OBJDUMP="$ac_cv_prog_OBJDUMP"
5667fi
5668
5669 ;;
5670
5671esac
5672
5673need_locks="$enable_libtool_lock"
5674
5675
5676ac_ext=c
5677ac_cpp='$CPP $CPPFLAGS'
5678ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5682$as_echo_n "checking how to run the C preprocessor... " >&6; }
5683# On Suns, sometimes $CPP names a directory.
5684if test -n "$CPP" && test -d "$CPP"; then
5685 CPP=
5686fi
5687if test -z "$CPP"; then
5688 if ${ac_cv_prog_CPP+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690else
5691 # Double quotes because CPP needs to be expanded
5692 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5693 do
5694 ac_preproc_ok=false
5695for ac_c_preproc_warn_flag in '' yes
5696do
5697 # Use a header file that comes with gcc, so configuring glibc
5698 # with a fresh cross-compiler works.
5699 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5700 # <limits.h> exists even on freestanding compilers.
5701 # On the NeXT, cc -E runs the code through the compiler's parser,
5702 # not just through cpp. "Syntax error" is here to catch this case.
5703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5704/* end confdefs.h. */
5705#ifdef __STDC__
5706# include <limits.h>
5707#else
5708# include <assert.h>
5709#endif
5710 Syntax error
5711_ACEOF
5712if ac_fn_c_try_cpp "$LINENO"; then :
5713
5714else
5715 # Broken: fails on valid input.
5716continue
5717fi
5718rm -f conftest.err conftest.i conftest.$ac_ext
5719
5720 # OK, works on sane cases. Now check whether nonexistent headers
5721 # can be detected and how.
5722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5723/* end confdefs.h. */
5724#include <ac_nonexistent.h>
5725_ACEOF
5726if ac_fn_c_try_cpp "$LINENO"; then :
5727 # Broken: success on invalid input.
5728continue
5729else
5730 # Passes both tests.
5731ac_preproc_ok=:
5732break
5733fi
5734rm -f conftest.err conftest.i conftest.$ac_ext
5735
5736done
5737# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5738rm -f conftest.i conftest.err conftest.$ac_ext
5739if $ac_preproc_ok; then :
5740 break
5741fi
5742
5743 done
5744 ac_cv_prog_CPP=$CPP
5745
5746fi
5747 CPP=$ac_cv_prog_CPP
5748else
5749 ac_cv_prog_CPP=$CPP
5750fi
5751{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5752$as_echo "$CPP" >&6; }
5753ac_preproc_ok=false
5754for ac_c_preproc_warn_flag in '' yes
5755do
5756 # Use a header file that comes with gcc, so configuring glibc
5757 # with a fresh cross-compiler works.
5758 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5759 # <limits.h> exists even on freestanding compilers.
5760 # On the NeXT, cc -E runs the code through the compiler's parser,
5761 # not just through cpp. "Syntax error" is here to catch this case.
5762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5763/* end confdefs.h. */
5764#ifdef __STDC__
5765# include <limits.h>
5766#else
5767# include <assert.h>
5768#endif
5769 Syntax error
5770_ACEOF
5771if ac_fn_c_try_cpp "$LINENO"; then :
5772
5773else
5774 # Broken: fails on valid input.
5775continue
5776fi
5777rm -f conftest.err conftest.i conftest.$ac_ext
5778
5779 # OK, works on sane cases. Now check whether nonexistent headers
5780 # can be detected and how.
5781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5782/* end confdefs.h. */
5783#include <ac_nonexistent.h>
5784_ACEOF
5785if ac_fn_c_try_cpp "$LINENO"; then :
5786 # Broken: success on invalid input.
5787continue
5788else
5789 # Passes both tests.
5790ac_preproc_ok=:
5791break
5792fi
5793rm -f conftest.err conftest.i conftest.$ac_ext
5794
5795done
5796# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5797rm -f conftest.i conftest.err conftest.$ac_ext
5798if $ac_preproc_ok; then :
5799
5800else
5801 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5802$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5803as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5804See \`config.log' for more details" "$LINENO" 5; }
5805fi
5806
5807ac_ext=c
5808ac_cpp='$CPP $CPPFLAGS'
5809ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5810ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5811ac_compiler_gnu=$ac_cv_c_compiler_gnu
5812
5813
5814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5815$as_echo_n "checking for ANSI C header files... " >&6; }
5816if ${ac_cv_header_stdc+:} false; then :
5817 $as_echo_n "(cached) " >&6
5818else
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include <stdlib.h>
5822#include <stdarg.h>
5823#include <string.h>
5824#include <float.h>
5825
5826int
5827main ()
5828{
5829
5830 ;
5831 return 0;
5832}
5833_ACEOF
5834if ac_fn_c_try_compile "$LINENO"; then :
5835 ac_cv_header_stdc=yes
5836else
5837 ac_cv_header_stdc=no
5838fi
5839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5840
5841if test $ac_cv_header_stdc = yes; then
5842 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5844/* end confdefs.h. */
5845#include <string.h>
5846
5847_ACEOF
5848if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5849 $EGREP "memchr" >/dev/null 2>&1; then :
5850
5851else
5852 ac_cv_header_stdc=no
5853fi
5854rm -f conftest*
5855
5856fi
5857
5858if test $ac_cv_header_stdc = yes; then
5859 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5861/* end confdefs.h. */
5862#include <stdlib.h>
5863
5864_ACEOF
5865if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5866 $EGREP "free" >/dev/null 2>&1; then :
5867
5868else
5869 ac_cv_header_stdc=no
5870fi
5871rm -f conftest*
5872
5873fi
5874
5875if test $ac_cv_header_stdc = yes; then
5876 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5877 if test "$cross_compiling" = yes; then :
5878 :
5879else
5880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5881/* end confdefs.h. */
5882#include <ctype.h>
5883#include <stdlib.h>
5884#if ((' ' & 0x0FF) == 0x020)
5885# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5886# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5887#else
5888# define ISLOWER(c) \
5889 (('a' <= (c) && (c) <= 'i') \
5890 || ('j' <= (c) && (c) <= 'r') \
5891 || ('s' <= (c) && (c) <= 'z'))
5892# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5893#endif
5894
5895#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5896int
5897main ()
5898{
5899 int i;
5900 for (i = 0; i < 256; i++)
5901 if (XOR (islower (i), ISLOWER (i))
5902 || toupper (i) != TOUPPER (i))
5903 return 2;
5904 return 0;
5905}
5906_ACEOF
5907if ac_fn_c_try_run "$LINENO"; then :
5908
5909else
5910 ac_cv_header_stdc=no
5911fi
5912rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5913 conftest.$ac_objext conftest.beam conftest.$ac_ext
5914fi
5915
5916fi
5917fi
5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5919$as_echo "$ac_cv_header_stdc" >&6; }
5920if test $ac_cv_header_stdc = yes; then
5921
5922$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5923
5924fi
5925
5926# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5927for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5928 inttypes.h stdint.h unistd.h
5929do :
5930 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5931ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5932"
5933if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5934 cat >>confdefs.h <<_ACEOF
5935#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5936_ACEOF
5937
5938fi
5939
5940done
5941
5942
5943for ac_header in dlfcn.h
5944do :
5945 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5946if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5947 cat >>confdefs.h <<_ACEOF
5948#define HAVE_DLFCN_H 1
5949_ACEOF
5950
5951fi
5952
5953done
5954
5955ac_ext=cpp
5956ac_cpp='$CXXCPP $CPPFLAGS'
5957ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5958ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5959ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5960if test -z "$CXX"; then
5961 if test -n "$CCC"; then
5962 CXX=$CCC
5963 else
5964 if test -n "$ac_tool_prefix"; then
5965 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5966 do
5967 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5968set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5970$as_echo_n "checking for $ac_word... " >&6; }
5971if ${ac_cv_prog_CXX+:} false; then :
5972 $as_echo_n "(cached) " >&6
5973else
5974 if test -n "$CXX"; then
5975 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5976else
5977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5978for as_dir in $PATH
5979do
5980 IFS=$as_save_IFS
5981 test -z "$as_dir" && as_dir=.
5982 for ac_exec_ext in '' $ac_executable_extensions; do
5983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5984 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5986 break 2
5987 fi
5988done
5989 done
5990IFS=$as_save_IFS
5991
5992fi
5993fi
5994CXX=$ac_cv_prog_CXX
5995if test -n "$CXX"; then
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5997$as_echo "$CXX" >&6; }
5998else
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6000$as_echo "no" >&6; }
6001fi
6002
6003
6004 test -n "$CXX" && break
6005 done
6006fi
6007if test -z "$CXX"; then
6008 ac_ct_CXX=$CXX
6009 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6010do
6011 # Extract the first word of "$ac_prog", so it can be a program name with args.
6012set dummy $ac_prog; ac_word=$2
6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6014$as_echo_n "checking for $ac_word... " >&6; }
6015if ${ac_cv_prog_ac_ct_CXX+:} false; then :
6016 $as_echo_n "(cached) " >&6
6017else
6018 if test -n "$ac_ct_CXX"; then
6019 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6020else
6021as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6022for as_dir in $PATH
6023do
6024 IFS=$as_save_IFS
6025 test -z "$as_dir" && as_dir=.
6026 for ac_exec_ext in '' $ac_executable_extensions; do
6027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6028 ac_cv_prog_ac_ct_CXX="$ac_prog"
6029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6030 break 2
6031 fi
6032done
6033 done
6034IFS=$as_save_IFS
6035
6036fi
6037fi
6038ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6039if test -n "$ac_ct_CXX"; then
6040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6041$as_echo "$ac_ct_CXX" >&6; }
6042else
6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6044$as_echo "no" >&6; }
6045fi
6046
6047
6048 test -n "$ac_ct_CXX" && break
6049done
6050
6051 if test "x$ac_ct_CXX" = x; then
6052 CXX="g++"
6053 else
6054 case $cross_compiling:$ac_tool_warned in
6055yes:)
6056{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6057$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6058ac_tool_warned=yes ;;
6059esac
6060 CXX=$ac_ct_CXX
6061 fi
6062fi
6063
6064 fi
6065fi
6066# Provide some information about the compiler.
6067$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6068set X $ac_compile
6069ac_compiler=$2
6070for ac_option in --version -v -V -qversion; do
6071 { { ac_try="$ac_compiler $ac_option >&5"
6072case "(($ac_try" in
6073 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6074 *) ac_try_echo=$ac_try;;
6075esac
6076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6077$as_echo "$ac_try_echo"; } >&5
6078 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6079 ac_status=$?
6080 if test -s conftest.err; then
6081 sed '10a\
6082... rest of stderr output deleted ...
6083 10q' conftest.err >conftest.er1
6084 cat conftest.er1 >&5
6085 fi
6086 rm -f conftest.er1 conftest.err
6087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6088 test $ac_status = 0; }
6089done
6090
6091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6092$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6093if ${ac_cv_cxx_compiler_gnu+:} false; then :
6094 $as_echo_n "(cached) " >&6
6095else
6096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6097/* end confdefs.h. */
6098
6099int
6100main ()
6101{
6102#ifndef __GNUC__
6103 choke me
6104#endif
6105
6106 ;
6107 return 0;
6108}
6109_ACEOF
6110if ac_fn_cxx_try_compile "$LINENO"; then :
6111 ac_compiler_gnu=yes
6112else
6113 ac_compiler_gnu=no
6114fi
6115rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6116ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6117
6118fi
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6120$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6121if test $ac_compiler_gnu = yes; then
6122 GXX=yes
6123else
6124 GXX=
6125fi
6126ac_test_CXXFLAGS=${CXXFLAGS+set}
6127ac_save_CXXFLAGS=$CXXFLAGS
6128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6129$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6130if ${ac_cv_prog_cxx_g+:} false; then :
6131 $as_echo_n "(cached) " >&6
6132else
6133 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6134 ac_cxx_werror_flag=yes
6135 ac_cv_prog_cxx_g=no
6136 CXXFLAGS="-g"
6137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6138/* end confdefs.h. */
6139
6140int
6141main ()
6142{
6143
6144 ;
6145 return 0;
6146}
6147_ACEOF
6148if ac_fn_cxx_try_compile "$LINENO"; then :
6149 ac_cv_prog_cxx_g=yes
6150else
6151 CXXFLAGS=""
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154
6155int
6156main ()
6157{
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_cxx_try_compile "$LINENO"; then :
6164
6165else
6166 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6167 CXXFLAGS="-g"
6168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6169/* end confdefs.h. */
6170
6171int
6172main ()
6173{
6174
6175 ;
6176 return 0;
6177}
6178_ACEOF
6179if ac_fn_cxx_try_compile "$LINENO"; then :
6180 ac_cv_prog_cxx_g=yes
6181fi
6182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183fi
6184rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6185fi
6186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6187 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6188fi
6189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6190$as_echo "$ac_cv_prog_cxx_g" >&6; }
6191if test "$ac_test_CXXFLAGS" = set; then
6192 CXXFLAGS=$ac_save_CXXFLAGS
6193elif test $ac_cv_prog_cxx_g = yes; then
6194 if test "$GXX" = yes; then
6195 CXXFLAGS="-g -O2"
6196 else
6197 CXXFLAGS="-g"
6198 fi
6199else
6200 if test "$GXX" = yes; then
6201 CXXFLAGS="-O2"
6202 else
6203 CXXFLAGS=
6204 fi
6205fi
6206ac_ext=cpp
6207ac_cpp='$CXXCPP $CPPFLAGS'
6208ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6209ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6210ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6211
6212depcc="$CXX" am_compiler_list=
6213
6214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6215$as_echo_n "checking dependency style of $depcc... " >&6; }
6216if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6217 $as_echo_n "(cached) " >&6
6218else
6219 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6220 # We make a subdir and do the tests there. Otherwise we can end up
6221 # making bogus files that we don't know about and never remove. For
6222 # instance it was reported that on HP-UX the gcc test will end up
6223 # making a dummy file named `D' -- because `-MD' means `put the output
6224 # in D'.
6225 rm -rf conftest.dir
6226 mkdir conftest.dir
6227 # Copy depcomp to subdir because otherwise we won't find it if we're
6228 # using a relative directory.
6229 cp "$am_depcomp" conftest.dir
6230 cd conftest.dir
6231 # We will build objects and dependencies in a subdirectory because
6232 # it helps to detect inapplicable dependency modes. For instance
6233 # both Tru64's cc and ICC support -MD to output dependencies as a
6234 # side effect of compilation, but ICC will put the dependencies in
6235 # the current directory while Tru64 will put them in the object
6236 # directory.
6237 mkdir sub
6238
6239 am_cv_CXX_dependencies_compiler_type=none
6240 if test "$am_compiler_list" = ""; then
6241 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6242 fi
6243 am__universal=false
6244 case " $depcc " in #(
6245 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6246 esac
6247
6248 for depmode in $am_compiler_list; do
6249 # Setup a source with many dependencies, because some compilers
6250 # like to wrap large dependency lists on column 80 (with \), and
6251 # we should not choose a depcomp mode which is confused by this.
6252 #
6253 # We need to recreate these files for each test, as the compiler may
6254 # overwrite some of them when testing with obscure command lines.
6255 # This happens at least with the AIX C compiler.
6256 : > sub/conftest.c
6257 for i in 1 2 3 4 5 6; do
6258 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6259 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6260 # Solaris 8's {/usr,}/bin/sh.
6261 touch sub/conftst$i.h
6262 done
6263 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6264
6265 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6266 # mode. It turns out that the SunPro C++ compiler does not properly
6267 # handle `-M -o', and we need to detect this. Also, some Intel
6268 # versions had trouble with output in subdirs
6269 am__obj=sub/conftest.${OBJEXT-o}
6270 am__minus_obj="-o $am__obj"
6271 case $depmode in
6272 gcc)
6273 # This depmode causes a compiler race in universal mode.
6274 test "$am__universal" = false || continue
6275 ;;
6276 nosideeffect)
6277 # after this tag, mechanisms are not by side-effect, so they'll
6278 # only be used when explicitly requested
6279 if test "x$enable_dependency_tracking" = xyes; then
6280 continue
6281 else
6282 break
6283 fi
6284 ;;
6285 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6286 # This compiler won't grok `-c -o', but also, the minuso test has
6287 # not run yet. These depmodes are late enough in the game, and
6288 # so weak that their functioning should not be impacted.
6289 am__obj=conftest.${OBJEXT-o}
6290 am__minus_obj=
6291 ;;
6292 none) break ;;
6293 esac
6294 if depmode=$depmode \
6295 source=sub/conftest.c object=$am__obj \
6296 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6297 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6298 >/dev/null 2>conftest.err &&
6299 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6300 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6301 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6302 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6303 # icc doesn't choke on unknown options, it will just issue warnings
6304 # or remarks (even with -Werror). So we grep stderr for any message
6305 # that says an option was ignored or not supported.
6306 # When given -MP, icc 7.0 and 7.1 complain thusly:
6307 # icc: Command line warning: ignoring option '-M'; no argument required
6308 # The diagnosis changed in icc 8.0:
6309 # icc: Command line remark: option '-MP' not supported
6310 if (grep 'ignoring option' conftest.err ||
6311 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6312 am_cv_CXX_dependencies_compiler_type=$depmode
6313 break
6314 fi
6315 fi
6316 done
6317
6318 cd ..
6319 rm -rf conftest.dir
6320else
6321 am_cv_CXX_dependencies_compiler_type=none
6322fi
6323
6324fi
6325{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6326$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6327CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6328
6329 if
6330 test "x$enable_dependency_tracking" != xno \
6331 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6332 am__fastdepCXX_TRUE=
6333 am__fastdepCXX_FALSE='#'
6334else
6335 am__fastdepCXX_TRUE='#'
6336 am__fastdepCXX_FALSE=
6337fi
6338
6339
6340
6341
6342if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6343 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6344 (test "X$CXX" != "Xg++"))) ; then
6345 ac_ext=cpp
6346ac_cpp='$CXXCPP $CPPFLAGS'
6347ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6348ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6349ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6351$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6352if test -z "$CXXCPP"; then
6353 if ${ac_cv_prog_CXXCPP+:} false; then :
6354 $as_echo_n "(cached) " >&6
6355else
6356 # Double quotes because CXXCPP needs to be expanded
6357 for CXXCPP in "$CXX -E" "/lib/cpp"
6358 do
6359 ac_preproc_ok=false
6360for ac_cxx_preproc_warn_flag in '' yes
6361do
6362 # Use a header file that comes with gcc, so configuring glibc
6363 # with a fresh cross-compiler works.
6364 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6365 # <limits.h> exists even on freestanding compilers.
6366 # On the NeXT, cc -E runs the code through the compiler's parser,
6367 # not just through cpp. "Syntax error" is here to catch this case.
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369/* end confdefs.h. */
6370#ifdef __STDC__
6371# include <limits.h>
6372#else
6373# include <assert.h>
6374#endif
6375 Syntax error
6376_ACEOF
6377if ac_fn_cxx_try_cpp "$LINENO"; then :
6378
6379else
6380 # Broken: fails on valid input.
6381continue
6382fi
6383rm -f conftest.err conftest.i conftest.$ac_ext
6384
6385 # OK, works on sane cases. Now check whether nonexistent headers
6386 # can be detected and how.
6387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6388/* end confdefs.h. */
6389#include <ac_nonexistent.h>
6390_ACEOF
6391if ac_fn_cxx_try_cpp "$LINENO"; then :
6392 # Broken: success on invalid input.
6393continue
6394else
6395 # Passes both tests.
6396ac_preproc_ok=:
6397break
6398fi
6399rm -f conftest.err conftest.i conftest.$ac_ext
6400
6401done
6402# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6403rm -f conftest.i conftest.err conftest.$ac_ext
6404if $ac_preproc_ok; then :
6405 break
6406fi
6407
6408 done
6409 ac_cv_prog_CXXCPP=$CXXCPP
6410
6411fi
6412 CXXCPP=$ac_cv_prog_CXXCPP
6413else
6414 ac_cv_prog_CXXCPP=$CXXCPP
6415fi
6416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6417$as_echo "$CXXCPP" >&6; }
6418ac_preproc_ok=false
6419for ac_cxx_preproc_warn_flag in '' yes
6420do
6421 # Use a header file that comes with gcc, so configuring glibc
6422 # with a fresh cross-compiler works.
6423 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6424 # <limits.h> exists even on freestanding compilers.
6425 # On the NeXT, cc -E runs the code through the compiler's parser,
6426 # not just through cpp. "Syntax error" is here to catch this case.
6427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6428/* end confdefs.h. */
6429#ifdef __STDC__
6430# include <limits.h>
6431#else
6432# include <assert.h>
6433#endif
6434 Syntax error
6435_ACEOF
6436if ac_fn_cxx_try_cpp "$LINENO"; then :
6437
6438else
6439 # Broken: fails on valid input.
6440continue
6441fi
6442rm -f conftest.err conftest.i conftest.$ac_ext
6443
6444 # OK, works on sane cases. Now check whether nonexistent headers
6445 # can be detected and how.
6446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6447/* end confdefs.h. */
6448#include <ac_nonexistent.h>
6449_ACEOF
6450if ac_fn_cxx_try_cpp "$LINENO"; then :
6451 # Broken: success on invalid input.
6452continue
6453else
6454 # Passes both tests.
6455ac_preproc_ok=:
6456break
6457fi
6458rm -f conftest.err conftest.i conftest.$ac_ext
6459
6460done
6461# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6462rm -f conftest.i conftest.err conftest.$ac_ext
6463if $ac_preproc_ok; then :
6464
6465else
6466 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6467$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6468as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6469See \`config.log' for more details" "$LINENO" 5; }
6470fi
6471
6472ac_ext=cpp
6473ac_cpp='$CXXCPP $CPPFLAGS'
6474ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6475ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6476ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6477
6478fi
6479
6480
6481ac_ext=f
6482ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6483ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6484ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6485if test -n "$ac_tool_prefix"; then
6486 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
6487 do
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
6492if ${ac_cv_prog_F77+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$F77"; then
6496 ac_cv_prog_F77="$F77" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515F77=$ac_cv_prog_F77
6516if test -n "$F77"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6518$as_echo "$F77" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525 test -n "$F77" && break
6526 done
6527fi
6528if test -z "$F77"; then
6529 ac_ct_F77=$F77
6530 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
6531do
6532 # Extract the first word of "$ac_prog", so it can be a program name with args.
6533set dummy $ac_prog; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
6536if ${ac_cv_prog_ac_ct_F77+:} false; then :
6537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$ac_ct_F77"; then
6540 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
6548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6549 ac_cv_prog_ac_ct_F77="$ac_prog"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_F77=$ac_cv_prog_ac_ct_F77
6560if test -n "$ac_ct_F77"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6562$as_echo "$ac_ct_F77" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569 test -n "$ac_ct_F77" && break
6570done
6571
6572 if test "x$ac_ct_F77" = x; then
6573 F77=""
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581 F77=$ac_ct_F77
6582 fi
6583fi
6584
6585
6586# Provide some information about the compiler.
6587$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6588set X $ac_compile
6589ac_compiler=$2
6590for ac_option in --version -v -V -qversion; do
6591 { { ac_try="$ac_compiler $ac_option >&5"
6592case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595esac
6596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6597$as_echo "$ac_try_echo"; } >&5
6598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6599 ac_status=$?
6600 if test -s conftest.err; then
6601 sed '10a\
6602... rest of stderr output deleted ...
6603 10q' conftest.err >conftest.er1
6604 cat conftest.er1 >&5
6605 fi
6606 rm -f conftest.er1 conftest.err
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }
6609done
6610rm -f a.out
6611
6612# If we don't use `.F' as extension, the preprocessor is not run on the
6613# input file. (Note that this only needs to work for GNU compilers.)
6614ac_save_ext=$ac_ext
6615ac_ext=F
6616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6617$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6618if ${ac_cv_f77_compiler_gnu+:} false; then :
6619 $as_echo_n "(cached) " >&6
6620else
6621 cat > conftest.$ac_ext <<_ACEOF
6622 program main
6623#ifndef __GNUC__
6624 choke me
6625#endif
6626
6627 end
6628_ACEOF
6629if ac_fn_f77_try_compile "$LINENO"; then :
6630 ac_compiler_gnu=yes
6631else
6632 ac_compiler_gnu=no
6633fi
6634rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6635ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6636
6637fi
6638{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6639$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6640ac_ext=$ac_save_ext
6641ac_test_FFLAGS=${FFLAGS+set}
6642ac_save_FFLAGS=$FFLAGS
6643FFLAGS=
6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6645$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6646if ${ac_cv_prog_f77_g+:} false; then :
6647 $as_echo_n "(cached) " >&6
6648else
6649 FFLAGS=-g
6650cat > conftest.$ac_ext <<_ACEOF
6651 program main
6652
6653 end
6654_ACEOF
6655if ac_fn_f77_try_compile "$LINENO"; then :
6656 ac_cv_prog_f77_g=yes
6657else
6658 ac_cv_prog_f77_g=no
6659fi
6660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6661
6662fi
6663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6664$as_echo "$ac_cv_prog_f77_g" >&6; }
6665if test "$ac_test_FFLAGS" = set; then
6666 FFLAGS=$ac_save_FFLAGS
6667elif test $ac_cv_prog_f77_g = yes; then
6668 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6669 FFLAGS="-g -O2"
6670 else
6671 FFLAGS="-g"
6672 fi
6673else
6674 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6675 FFLAGS="-O2"
6676 else
6677 FFLAGS=
6678 fi
6679fi
6680
6681if test $ac_compiler_gnu = yes; then
6682 G77=yes
6683else
6684 G77=
6685fi
6686ac_ext=c
6687ac_cpp='$CPP $CPPFLAGS'
6688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6690ac_compiler_gnu=$ac_cv_c_compiler_gnu
6691
6692
6693
6694# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6695
6696# find the maximum length of command line arguments
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6698$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6699if ${lt_cv_sys_max_cmd_len+:} false; then :
6700 $as_echo_n "(cached) " >&6
6701else
6702 i=0
6703 teststring="ABCD"
6704
6705 case $build_os in
6706 msdosdjgpp*)
6707 # On DJGPP, this test can blow up pretty badly due to problems in libc
6708 # (any single argument exceeding 2000 bytes causes a buffer overrun
6709 # during glob expansion). Even if it were fixed, the result of this
6710 # check would be larger than it should be.
6711 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6712 ;;
6713
6714 gnu*)
6715 # Under GNU Hurd, this test is not required because there is
6716 # no limit to the length of command line arguments.
6717 # Libtool will interpret -1 as no limit whatsoever
6718 lt_cv_sys_max_cmd_len=-1;
6719 ;;
6720
6721 cygwin* | mingw*)
6722 # On Win9x/ME, this test blows up -- it succeeds, but takes
6723 # about 5 minutes as the teststring grows exponentially.
6724 # Worse, since 9x/ME are not pre-emptively multitasking,
6725 # you end up with a "frozen" computer, even though with patience
6726 # the test eventually succeeds (with a max line length of 256k).
6727 # Instead, let's just punt: use the minimum linelength reported by
6728 # all of the supported platforms: 8192 (on NT/2K/XP).
6729 lt_cv_sys_max_cmd_len=8192;
6730 ;;
6731
6732 amigaos*)
6733 # On AmigaOS with pdksh, this test takes hours, literally.
6734 # So we just punt and use a minimum line length of 8192.
6735 lt_cv_sys_max_cmd_len=8192;
6736 ;;
6737
6738 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6739 # This has been around since 386BSD, at least. Likely further.
6740 if test -x /sbin/sysctl; then
6741 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6742 elif test -x /usr/sbin/sysctl; then
6743 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6744 else
6745 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6746 fi
6747 # And add a safety zone
6748 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6749 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6750 ;;
6751
6752 interix*)
6753 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6754 lt_cv_sys_max_cmd_len=196608
6755 ;;
6756
6757 osf*)
6758 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6759 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6760 # nice to cause kernel panics so lets avoid the loop below.
6761 # First set a reasonable default.
6762 lt_cv_sys_max_cmd_len=16384
6763 #
6764 if test -x /sbin/sysconfig; then
6765 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6766 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6767 esac
6768 fi
6769 ;;
6770 sco3.2v5*)
6771 lt_cv_sys_max_cmd_len=102400
6772 ;;
6773 sysv5* | sco5v6* | sysv4.2uw2*)
6774 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6775 if test -n "$kargmax"; then
6776 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6777 else
6778 lt_cv_sys_max_cmd_len=32768
6779 fi
6780 ;;
6781 *)
6782 # If test is not a shell built-in, we'll probably end up computing a
6783 # maximum length that is only half of the actual maximum length, but
6784 # we can't tell.
6785 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6786 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6787 = "XX$teststring") >/dev/null 2>&1 &&
6788 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6789 lt_cv_sys_max_cmd_len=$new_result &&
6790 test $i != 17 # 1/2 MB should be enough
6791 do
6792 i=`expr $i + 1`
6793 teststring=$teststring$teststring
6794 done
6795 teststring=
6796 # Add a significant safety factor because C++ compilers can tack on massive
6797 # amounts of additional arguments before passing them to the linker.
6798 # It appears as though 1/2 is a usable value.
6799 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6800 ;;
6801 esac
6802
6803fi
6804
6805if test -n $lt_cv_sys_max_cmd_len ; then
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6807$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6808else
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6810$as_echo "none" >&6; }
6811fi
6812
6813
6814
6815
6816# Check for command to grab the raw symbol name followed by C symbol from nm.
6817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6818$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6819if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6820 $as_echo_n "(cached) " >&6
6821else
6822
6823# These are sane defaults that work on at least a few old systems.
6824# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6825
6826# Character class describing NM global symbol codes.
6827symcode='[BCDEGRST]'
6828
6829# Regexp to match symbols that can be accessed directly from C.
6830sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6831
6832# Transform an extracted symbol line into a proper C declaration
6833lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6834
6835# Transform an extracted symbol line into symbol name and symbol address
6836lt_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'"
6837
6838# Define system-specific variables.
6839case $host_os in
6840aix*)
6841 symcode='[BCDT]'
6842 ;;
6843cygwin* | mingw* | pw32*)
6844 symcode='[ABCDGISTW]'
6845 ;;
6846hpux*) # Its linker distinguishes data from code symbols
6847 if test "$host_cpu" = ia64; then
6848 symcode='[ABCDEGRST]'
6849 fi
6850 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6851 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'"
6852 ;;
6853linux*)
6854 if test "$host_cpu" = ia64; then
6855 symcode='[ABCDGIRSTW]'
6856 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6857 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'"
6858 fi
6859 ;;
6860irix* | nonstopux*)
6861 symcode='[BCDEGRST]'
6862 ;;
6863osf*)
6864 symcode='[BCDEGQRST]'
6865 ;;
6866solaris*)
6867 symcode='[BDRT]'
6868 ;;
6869sco3.2v5*)
6870 symcode='[DT]'
6871 ;;
6872sysv4.2uw2*)
6873 symcode='[DT]'
6874 ;;
6875sysv5* | sco5v6* | unixware* | OpenUNIX*)
6876 symcode='[ABDT]'
6877 ;;
6878sysv4)
6879 symcode='[DFNSTU]'
6880 ;;
6881esac
6882
6883# Handle CRLF in mingw tool chain
6884opt_cr=
6885case $build_os in
6886mingw*)
6887 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6888 ;;
6889esac
6890
6891# If we're using GNU nm, then use its standard symbol codes.
6892case `$NM -V 2>&1` in
6893*GNU* | *'with BFD'*)
6894 symcode='[ABCDGIRSTW]' ;;
6895esac
6896
6897# Try without a prefix undercore, then with it.
6898for ac_symprfx in "" "_"; do
6899
6900 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6901 symxfrm="\\1 $ac_symprfx\\2 \\2"
6902
6903 # Write the raw and C identifiers.
6904 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6905
6906 # Check to see that the pipe works correctly.
6907 pipe_works=no
6908
6909 rm -f conftest*
6910 cat > conftest.$ac_ext <<EOF
6911#ifdef __cplusplus
6912extern "C" {
6913#endif
6914char nm_test_var;
6915void nm_test_func(){}
6916#ifdef __cplusplus
6917}
6918#endif
6919int main(){nm_test_var='a';nm_test_func();return(0);}
6920EOF
6921
6922 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6923 (eval $ac_compile) 2>&5
6924 ac_status=$?
6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6926 test $ac_status = 0; }; then
6927 # Now try to grab the symbols.
6928 nlist=conftest.nm
6929 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6930 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6931 ac_status=$?
6932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6933 test $ac_status = 0; } && test -s "$nlist"; then
6934 # Try sorting and uniquifying the output.
6935 if sort "$nlist" | uniq > "$nlist"T; then
6936 mv -f "$nlist"T "$nlist"
6937 else
6938 rm -f "$nlist"T
6939 fi
6940
6941 # Make sure that we snagged all the symbols we need.
6942 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6943 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6944 cat <<EOF > conftest.$ac_ext
6945#ifdef __cplusplus
6946extern "C" {
6947#endif
6948
6949EOF
6950 # Now generate the symbol file.
6951 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6952
6953 cat <<EOF >> conftest.$ac_ext
6954#if defined (__STDC__) && __STDC__
6955# define lt_ptr_t void *
6956#else
6957# define lt_ptr_t char *
6958# define const
6959#endif
6960
6961/* The mapping between symbol names and symbols. */
6962const struct {
6963 const char *name;
6964 lt_ptr_t address;
6965}
6966lt_preloaded_symbols[] =
6967{
6968EOF
6969 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6970 cat <<\EOF >> conftest.$ac_ext
6971 {0, (lt_ptr_t) 0}
6972};
6973
6974#ifdef __cplusplus
6975}
6976#endif
6977EOF
6978 # Now try linking the two files.
6979 mv conftest.$ac_objext conftstm.$ac_objext
6980 lt_save_LIBS="$LIBS"
6981 lt_save_CFLAGS="$CFLAGS"
6982 LIBS="conftstm.$ac_objext"
6983 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6985 (eval $ac_link) 2>&5
6986 ac_status=$?
6987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6988 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6989 pipe_works=yes
6990 fi
6991 LIBS="$lt_save_LIBS"
6992 CFLAGS="$lt_save_CFLAGS"
6993 else
6994 echo "cannot find nm_test_func in $nlist" >&5
6995 fi
6996 else
6997 echo "cannot find nm_test_var in $nlist" >&5
6998 fi
6999 else
7000 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7001 fi
7002 else
7003 echo "$progname: failed program was:" >&5
7004 cat conftest.$ac_ext >&5
7005 fi
7006 rm -f conftest* conftst*
7007
7008 # Do not use the global_symbol_pipe unless it works.
7009 if test "$pipe_works" = yes; then
7010 break
7011 else
7012 lt_cv_sys_global_symbol_pipe=
7013 fi
7014done
7015
7016fi
7017
7018if test -z "$lt_cv_sys_global_symbol_pipe"; then
7019 lt_cv_sys_global_symbol_to_cdecl=
7020fi
7021if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7023$as_echo "failed" >&6; }
7024else
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7026$as_echo "ok" >&6; }
7027fi
7028
7029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7030$as_echo_n "checking for objdir... " >&6; }
7031if ${lt_cv_objdir+:} false; then :
7032 $as_echo_n "(cached) " >&6
7033else
7034 rm -f .libs 2>/dev/null
7035mkdir .libs 2>/dev/null
7036if test -d .libs; then
7037 lt_cv_objdir=.libs
7038else
7039 # MS-DOS does not allow filenames that begin with a dot.
7040 lt_cv_objdir=_libs
7041fi
7042rmdir .libs 2>/dev/null
7043fi
7044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7045$as_echo "$lt_cv_objdir" >&6; }
7046objdir=$lt_cv_objdir
7047
7048
7049
7050
7051
7052case $host_os in
7053aix3*)
7054 # AIX sometimes has problems with the GCC collect2 program. For some
7055 # reason, if we set the COLLECT_NAMES environment variable, the problems
7056 # vanish in a puff of smoke.
7057 if test "X${COLLECT_NAMES+set}" != Xset; then
7058 COLLECT_NAMES=
7059 export COLLECT_NAMES
7060 fi
7061 ;;
7062esac
7063
7064# Sed substitution that helps us do robust quoting. It backslashifies
7065# metacharacters that are still active within double-quoted strings.
7066Xsed='sed -e 1s/^X//'
7067sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7068
7069# Same as above, but do not quote variable references.
7070double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7071
7072# Sed substitution to delay expansion of an escaped shell variable in a
7073# double_quote_subst'ed string.
7074delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7075
7076# Sed substitution to avoid accidental globbing in evaled expressions
7077no_glob_subst='s/\*/\\\*/g'
7078
7079# Constants:
7080rm="rm -f"
7081
7082# Global variables:
7083default_ofile=libtool
7084can_build_shared=yes
7085
7086# All known linkers require a `.a' archive for static linking (except MSVC,
7087# which needs '.lib').
7088libext=a
7089ltmain="$ac_aux_dir/ltmain.sh"
7090ofile="$default_ofile"
7091with_gnu_ld="$lt_cv_prog_gnu_ld"
7092
7093if test -n "$ac_tool_prefix"; then
7094 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7095set dummy ${ac_tool_prefix}ar; ac_word=$2
7096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097$as_echo_n "checking for $ac_word... " >&6; }
7098if ${ac_cv_prog_AR+:} false; then :
7099 $as_echo_n "(cached) " >&6
7100else
7101 if test -n "$AR"; then
7102 ac_cv_prog_AR="$AR" # Let the user override the test.
7103else
7104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105for as_dir in $PATH
7106do
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7111 ac_cv_prog_AR="${ac_tool_prefix}ar"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7114 fi
7115done
7116 done
7117IFS=$as_save_IFS
7118
7119fi
7120fi
7121AR=$ac_cv_prog_AR
7122if test -n "$AR"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7124$as_echo "$AR" >&6; }
7125else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127$as_echo "no" >&6; }
7128fi
7129
7130
7131fi
7132if test -z "$ac_cv_prog_AR"; then
7133 ac_ct_AR=$AR
7134 # Extract the first word of "ar", so it can be a program name with args.
7135set dummy ar; ac_word=$2
7136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7137$as_echo_n "checking for $ac_word... " >&6; }
7138if ${ac_cv_prog_ac_ct_AR+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140else
7141 if test -n "$ac_ct_AR"; then
7142 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7143else
7144as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7145for as_dir in $PATH
7146do
7147 IFS=$as_save_IFS
7148 test -z "$as_dir" && as_dir=.
7149 for ac_exec_ext in '' $ac_executable_extensions; do
7150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7151 ac_cv_prog_ac_ct_AR="ar"
7152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7153 break 2
7154 fi
7155done
7156 done
7157IFS=$as_save_IFS
7158
7159fi
7160fi
7161ac_ct_AR=$ac_cv_prog_ac_ct_AR
7162if test -n "$ac_ct_AR"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7164$as_echo "$ac_ct_AR" >&6; }
7165else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7167$as_echo "no" >&6; }
7168fi
7169
7170 if test "x$ac_ct_AR" = x; then
7171 AR="false"
7172 else
7173 case $cross_compiling:$ac_tool_warned in
7174yes:)
7175{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7176$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7177ac_tool_warned=yes ;;
7178esac
7179 AR=$ac_ct_AR
7180 fi
7181else
7182 AR="$ac_cv_prog_AR"
7183fi
7184
7185if test -n "$ac_tool_prefix"; then
7186 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7187set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7189$as_echo_n "checking for $ac_word... " >&6; }
7190if ${ac_cv_prog_RANLIB+:} false; then :
7191 $as_echo_n "(cached) " >&6
7192else
7193 if test -n "$RANLIB"; then
7194 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7195else
7196as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7197for as_dir in $PATH
7198do
7199 IFS=$as_save_IFS
7200 test -z "$as_dir" && as_dir=.
7201 for ac_exec_ext in '' $ac_executable_extensions; do
7202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7203 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7204 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7205 break 2
7206 fi
7207done
7208 done
7209IFS=$as_save_IFS
7210
7211fi
7212fi
7213RANLIB=$ac_cv_prog_RANLIB
7214if test -n "$RANLIB"; then
7215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7216$as_echo "$RANLIB" >&6; }
7217else
7218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7219$as_echo "no" >&6; }
7220fi
7221
7222
7223fi
7224if test -z "$ac_cv_prog_RANLIB"; then
7225 ac_ct_RANLIB=$RANLIB
7226 # Extract the first word of "ranlib", so it can be a program name with args.
7227set dummy ranlib; ac_word=$2
7228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7229$as_echo_n "checking for $ac_word... " >&6; }
7230if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7231 $as_echo_n "(cached) " >&6
7232else
7233 if test -n "$ac_ct_RANLIB"; then
7234 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7235else
7236as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7237for as_dir in $PATH
7238do
7239 IFS=$as_save_IFS
7240 test -z "$as_dir" && as_dir=.
7241 for ac_exec_ext in '' $ac_executable_extensions; do
7242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7243 ac_cv_prog_ac_ct_RANLIB="ranlib"
7244 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7245 break 2
7246 fi
7247done
7248 done
7249IFS=$as_save_IFS
7250
7251fi
7252fi
7253ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7254if test -n "$ac_ct_RANLIB"; then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7256$as_echo "$ac_ct_RANLIB" >&6; }
7257else
7258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7259$as_echo "no" >&6; }
7260fi
7261
7262 if test "x$ac_ct_RANLIB" = x; then
7263 RANLIB=":"
7264 else
7265 case $cross_compiling:$ac_tool_warned in
7266yes:)
7267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7269ac_tool_warned=yes ;;
7270esac
7271 RANLIB=$ac_ct_RANLIB
7272 fi
7273else
7274 RANLIB="$ac_cv_prog_RANLIB"
7275fi
7276
7277if test -n "$ac_tool_prefix"; then
7278 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7279set dummy ${ac_tool_prefix}strip; ac_word=$2
7280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7281$as_echo_n "checking for $ac_word... " >&6; }
7282if ${ac_cv_prog_STRIP+:} false; then :
7283 $as_echo_n "(cached) " >&6
7284else
7285 if test -n "$STRIP"; then
7286 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7287else
7288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7289for as_dir in $PATH
7290do
7291 IFS=$as_save_IFS
7292 test -z "$as_dir" && as_dir=.
7293 for ac_exec_ext in '' $ac_executable_extensions; do
7294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7295 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7297 break 2
7298 fi
7299done
7300 done
7301IFS=$as_save_IFS
7302
7303fi
7304fi
7305STRIP=$ac_cv_prog_STRIP
7306if test -n "$STRIP"; then
7307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7308$as_echo "$STRIP" >&6; }
7309else
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7311$as_echo "no" >&6; }
7312fi
7313
7314
7315fi
7316if test -z "$ac_cv_prog_STRIP"; then
7317 ac_ct_STRIP=$STRIP
7318 # Extract the first word of "strip", so it can be a program name with args.
7319set dummy strip; ac_word=$2
7320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7321$as_echo_n "checking for $ac_word... " >&6; }
7322if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324else
7325 if test -n "$ac_ct_STRIP"; then
7326 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7327else
7328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7329for as_dir in $PATH
7330do
7331 IFS=$as_save_IFS
7332 test -z "$as_dir" && as_dir=.
7333 for ac_exec_ext in '' $ac_executable_extensions; do
7334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7335 ac_cv_prog_ac_ct_STRIP="strip"
7336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7337 break 2
7338 fi
7339done
7340 done
7341IFS=$as_save_IFS
7342
7343fi
7344fi
7345ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7346if test -n "$ac_ct_STRIP"; then
7347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7348$as_echo "$ac_ct_STRIP" >&6; }
7349else
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351$as_echo "no" >&6; }
7352fi
7353
7354 if test "x$ac_ct_STRIP" = x; then
7355 STRIP=":"
7356 else
7357 case $cross_compiling:$ac_tool_warned in
7358yes:)
7359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7361ac_tool_warned=yes ;;
7362esac
7363 STRIP=$ac_ct_STRIP
7364 fi
7365else
7366 STRIP="$ac_cv_prog_STRIP"
7367fi
7368
7369
7370old_CC="$CC"
7371old_CFLAGS="$CFLAGS"
7372
7373# Set sane defaults for various variables
7374test -z "$AR" && AR=ar
7375test -z "$AR_FLAGS" && AR_FLAGS=cru
7376test -z "$AS" && AS=as
7377test -z "$CC" && CC=cc
7378test -z "$LTCC" && LTCC=$CC
7379test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7380test -z "$DLLTOOL" && DLLTOOL=dlltool
7381test -z "$LD" && LD=ld
7382test -z "$LN_S" && LN_S="ln -s"
7383test -z "$MAGIC_CMD" && MAGIC_CMD=file
7384test -z "$NM" && NM=nm
7385test -z "$SED" && SED=sed
7386test -z "$OBJDUMP" && OBJDUMP=objdump
7387test -z "$RANLIB" && RANLIB=:
7388test -z "$STRIP" && STRIP=:
7389test -z "$ac_objext" && ac_objext=o
7390
7391# Determine commands to create old-style static archives.
7392old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7393old_postinstall_cmds='chmod 644 $oldlib'
7394old_postuninstall_cmds=
7395
7396if test -n "$RANLIB"; then
7397 case $host_os in
7398 openbsd*)
7399 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7400 ;;
7401 *)
7402 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7403 ;;
7404 esac
7405 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7406fi
7407
7408for cc_temp in $compiler""; do
7409 case $cc_temp in
7410 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7411 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7412 \-*) ;;
7413 *) break;;
7414 esac
7415done
7416cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7417
7418
7419# Only perform the check for file, if the check method requires it
7420case $deplibs_check_method in
7421file_magic*)
7422 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7424$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7425if ${lt_cv_path_MAGIC_CMD+:} false; then :
7426 $as_echo_n "(cached) " >&6
7427else
7428 case $MAGIC_CMD in
7429[\\/*] | ?:[\\/]*)
7430 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7431 ;;
7432*)
7433 lt_save_MAGIC_CMD="$MAGIC_CMD"
7434 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7435 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7436 for ac_dir in $ac_dummy; do
7437 IFS="$lt_save_ifs"
7438 test -z "$ac_dir" && ac_dir=.
7439 if test -f $ac_dir/${ac_tool_prefix}file; then
7440 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7441 if test -n "$file_magic_test_file"; then
7442 case $deplibs_check_method in
7443 "file_magic "*)
7444 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7445 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7446 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7447 $EGREP "$file_magic_regex" > /dev/null; then
7448 :
7449 else
7450 cat <<EOF 1>&2
7451
7452*** Warning: the command libtool uses to detect shared libraries,
7453*** $file_magic_cmd, produces output that libtool cannot recognize.
7454*** The result is that libtool may fail to recognize shared libraries
7455*** as such. This will affect the creation of libtool libraries that
7456*** depend on shared libraries, but programs linked with such libtool
7457*** libraries will work regardless of this problem. Nevertheless, you
7458*** may want to report the problem to your system manager and/or to
7459*** bug-libtool@gnu.org
7460
7461EOF
7462 fi ;;
7463 esac
7464 fi
7465 break
7466 fi
7467 done
7468 IFS="$lt_save_ifs"
7469 MAGIC_CMD="$lt_save_MAGIC_CMD"
7470 ;;
7471esac
7472fi
7473
7474MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7475if test -n "$MAGIC_CMD"; then
7476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7477$as_echo "$MAGIC_CMD" >&6; }
7478else
7479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7480$as_echo "no" >&6; }
7481fi
7482
7483if test -z "$lt_cv_path_MAGIC_CMD"; then
7484 if test -n "$ac_tool_prefix"; then
7485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7486$as_echo_n "checking for file... " >&6; }
7487if ${lt_cv_path_MAGIC_CMD+:} false; then :
7488 $as_echo_n "(cached) " >&6
7489else
7490 case $MAGIC_CMD in
7491[\\/*] | ?:[\\/]*)
7492 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7493 ;;
7494*)
7495 lt_save_MAGIC_CMD="$MAGIC_CMD"
7496 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7497 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7498 for ac_dir in $ac_dummy; do
7499 IFS="$lt_save_ifs"
7500 test -z "$ac_dir" && ac_dir=.
7501 if test -f $ac_dir/file; then
7502 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7503 if test -n "$file_magic_test_file"; then
7504 case $deplibs_check_method in
7505 "file_magic "*)
7506 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7507 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7508 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7509 $EGREP "$file_magic_regex" > /dev/null; then
7510 :
7511 else
7512 cat <<EOF 1>&2
7513
7514*** Warning: the command libtool uses to detect shared libraries,
7515*** $file_magic_cmd, produces output that libtool cannot recognize.
7516*** The result is that libtool may fail to recognize shared libraries
7517*** as such. This will affect the creation of libtool libraries that
7518*** depend on shared libraries, but programs linked with such libtool
7519*** libraries will work regardless of this problem. Nevertheless, you
7520*** may want to report the problem to your system manager and/or to
7521*** bug-libtool@gnu.org
7522
7523EOF
7524 fi ;;
7525 esac
7526 fi
7527 break
7528 fi
7529 done
7530 IFS="$lt_save_ifs"
7531 MAGIC_CMD="$lt_save_MAGIC_CMD"
7532 ;;
7533esac
7534fi
7535
7536MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7537if test -n "$MAGIC_CMD"; then
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7539$as_echo "$MAGIC_CMD" >&6; }
7540else
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7542$as_echo "no" >&6; }
7543fi
7544
7545 else
7546 MAGIC_CMD=:
7547 fi
7548fi
7549
7550 fi
7551 ;;
7552esac
7553
7554enable_dlopen=no
7555enable_win32_dll=yes
7556
7557# Check whether --enable-libtool-lock was given.
7558if test "${enable_libtool_lock+set}" = set; then :
7559 enableval=$enable_libtool_lock;
7560fi
7561
7562test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7563
7564
7565# Check whether --with-pic was given.
7566if test "${with_pic+set}" = set; then :
7567 withval=$with_pic; pic_mode="$withval"
7568else
7569 pic_mode=default
7570fi
7571
7572test -z "$pic_mode" && pic_mode=default
7573
7574# Use C for the default configuration in the libtool script
7575tagname=
7576lt_save_CC="$CC"
7577ac_ext=c
7578ac_cpp='$CPP $CPPFLAGS'
7579ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582
7583
7584# Source file extension for C test sources.
7585ac_ext=c
7586
7587# Object file extension for compiled C test sources.
7588objext=o
7589objext=$objext
7590
7591# Code to be used in simple compile tests
7592lt_simple_compile_test_code="int some_variable = 0;\n"
7593
7594# Code to be used in simple link tests
7595lt_simple_link_test_code='int main(){return(0);}\n'
7596
7597
7598# If no C compiler was specified, use CC.
7599LTCC=${LTCC-"$CC"}
7600
7601# If no C compiler flags were specified, use CFLAGS.
7602LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7603
7604# Allow CC to be a program name with arguments.
7605compiler=$CC
7606
7607
7608# save warnings/boilerplate of simple test code
7609ac_outfile=conftest.$ac_objext
7610printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7611eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7612_lt_compiler_boilerplate=`cat conftest.err`
7613$rm conftest*
7614
7615ac_outfile=conftest.$ac_objext
7616printf "$lt_simple_link_test_code" >conftest.$ac_ext
7617eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7618_lt_linker_boilerplate=`cat conftest.err`
7619$rm conftest*
7620
7621
7622## CAVEAT EMPTOR:
7623## There is no encapsulation within the following macros, do not change
7624## the running order or otherwise move them around unless you know exactly
7625## what you are doing...
7626
7627lt_prog_compiler_no_builtin_flag=
7628
7629if test "$GCC" = yes; then
7630 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7631
7632
7633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7634$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7635if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7636 $as_echo_n "(cached) " >&6
7637else
7638 lt_cv_prog_compiler_rtti_exceptions=no
7639 ac_outfile=conftest.$ac_objext
7640 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7641 lt_compiler_flag="-fno-rtti -fno-exceptions"
7642 # Insert the option either (1) after the last *FLAGS variable, or
7643 # (2) before a word containing "conftest.", or (3) at the end.
7644 # Note that $ac_compile itself does not contain backslashes and begins
7645 # with a dollar sign (not a hyphen), so the echo should work correctly.
7646 # The option is referenced via a variable to avoid confusing sed.
7647 lt_compile=`echo "$ac_compile" | $SED \
7648 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7649 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7650 -e 's:$: $lt_compiler_flag:'`
7651 (eval echo "\"\$as_me:7651: $lt_compile\"" >&5)
7652 (eval "$lt_compile" 2>conftest.err)
7653 ac_status=$?
7654 cat conftest.err >&5
7655 echo "$as_me:7655: \$? = $ac_status" >&5
7656 if (exit $ac_status) && test -s "$ac_outfile"; then
7657 # The compiler can only warn and ignore the option if not recognized
7658 # So say no if there are warnings other than the usual output.
7659 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7660 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7661 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7662 lt_cv_prog_compiler_rtti_exceptions=yes
7663 fi
7664 fi
7665 $rm conftest*
7666
7667fi
7668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7669$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7670
7671if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7672 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7673else
7674 :
7675fi
7676
7677fi
7678
7679lt_prog_compiler_wl=
7680lt_prog_compiler_pic=
7681lt_prog_compiler_static=
7682
7683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7684$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7685
7686 if test "$GCC" = yes; then
7687 lt_prog_compiler_wl='-Wl,'
7688 lt_prog_compiler_static='-static'
7689
7690 case $host_os in
7691 aix*)
7692 # All AIX code is PIC.
7693 if test "$host_cpu" = ia64; then
7694 # AIX 5 now supports IA64 processor
7695 lt_prog_compiler_static='-Bstatic'
7696 fi
7697 ;;
7698
7699 amigaos*)
7700 # FIXME: we need at least 68020 code to build shared libraries, but
7701 # adding the `-m68020' flag to GCC prevents building anything better,
7702 # like `-m68040'.
7703 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7704 ;;
7705
7706 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7707 # PIC is the default for these OSes.
7708 ;;
7709
7710 mingw* | pw32* | os2*)
7711 # This hack is so that the source file can tell whether it is being
7712 # built for inclusion in a dll (and should export symbols for example).
7713 lt_prog_compiler_pic='-DDLL_EXPORT'
7714 ;;
7715
7716 darwin* | rhapsody*)
7717 # PIC is the default on this platform
7718 # Common symbols not allowed in MH_DYLIB files
7719 lt_prog_compiler_pic='-fno-common'
7720 ;;
7721
7722 interix3*)
7723 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7724 # Instead, we relocate shared libraries at runtime.
7725 ;;
7726
7727 msdosdjgpp*)
7728 # Just because we use GCC doesn't mean we suddenly get shared libraries
7729 # on systems that don't support them.
7730 lt_prog_compiler_can_build_shared=no
7731 enable_shared=no
7732 ;;
7733
7734 sysv4*MP*)
7735 if test -d /usr/nec; then
7736 lt_prog_compiler_pic=-Kconform_pic
7737 fi
7738 ;;
7739
7740 hpux*)
7741 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7742 # not for PA HP-UX.
7743 case $host_cpu in
7744 hppa*64*|ia64*)
7745 # +Z the default
7746 ;;
7747 *)
7748 lt_prog_compiler_pic='-fPIC'
7749 ;;
7750 esac
7751 ;;
7752
7753 *)
7754 lt_prog_compiler_pic='-fPIC'
7755 ;;
7756 esac
7757 else
7758 # PORTME Check for flag to pass linker flags through the system compiler.
7759 case $host_os in
7760 aix*)
7761 lt_prog_compiler_wl='-Wl,'
7762 if test "$host_cpu" = ia64; then
7763 # AIX 5 now supports IA64 processor
7764 lt_prog_compiler_static='-Bstatic'
7765 else
7766 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7767 fi
7768 ;;
7769 darwin*)
7770 # PIC is the default on this platform
7771 # Common symbols not allowed in MH_DYLIB files
7772 case $cc_basename in
7773 xlc*)
7774 lt_prog_compiler_pic='-qnocommon'
7775 lt_prog_compiler_wl='-Wl,'
7776 ;;
7777 esac
7778 ;;
7779
7780 mingw* | pw32* | os2*)
7781 # This hack is so that the source file can tell whether it is being
7782 # built for inclusion in a dll (and should export symbols for example).
7783 lt_prog_compiler_pic='-DDLL_EXPORT'
7784 ;;
7785
7786 hpux9* | hpux10* | hpux11*)
7787 lt_prog_compiler_wl='-Wl,'
7788 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7789 # not for PA HP-UX.
7790 case $host_cpu in
7791 hppa*64*|ia64*)
7792 # +Z the default
7793 ;;
7794 *)
7795 lt_prog_compiler_pic='+Z'
7796 ;;
7797 esac
7798 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7799 lt_prog_compiler_static='${wl}-a ${wl}archive'
7800 ;;
7801
7802 irix5* | irix6* | nonstopux*)
7803 lt_prog_compiler_wl='-Wl,'
7804 # PIC (with -KPIC) is the default.
7805 lt_prog_compiler_static='-non_shared'
7806 ;;
7807
7808 newsos6)
7809 lt_prog_compiler_pic='-KPIC'
7810 lt_prog_compiler_static='-Bstatic'
7811 ;;
7812
7813 linux*)
7814 case $cc_basename in
7815 icc* | ecc*)
7816 lt_prog_compiler_wl='-Wl,'
7817 lt_prog_compiler_pic='-KPIC'
7818 lt_prog_compiler_static='-static'
7819 ;;
7820 pgcc* | pgf77* | pgf90* | pgf95*)
7821 # Portland Group compilers (*not* the Pentium gcc compiler,
7822 # which looks to be a dead project)
7823 lt_prog_compiler_wl='-Wl,'
7824 lt_prog_compiler_pic='-fpic'
7825 lt_prog_compiler_static='-Bstatic'
7826 ;;
7827 ccc*)
7828 lt_prog_compiler_wl='-Wl,'
7829 # All Alpha code is PIC.
7830 lt_prog_compiler_static='-non_shared'
7831 ;;
7832 esac
7833 ;;
7834
7835 osf3* | osf4* | osf5*)
7836 lt_prog_compiler_wl='-Wl,'
7837 # All OSF/1 code is PIC.
7838 lt_prog_compiler_static='-non_shared'
7839 ;;
7840
7841 solaris*)
7842 lt_prog_compiler_pic='-KPIC'
7843 lt_prog_compiler_static='-Bstatic'
7844 case $cc_basename in
7845 f77* | f90* | f95*)
7846 lt_prog_compiler_wl='-Qoption ld ';;
7847 *)
7848 lt_prog_compiler_wl='-Wl,';;
7849 esac
7850 ;;
7851
7852 sunos4*)
7853 lt_prog_compiler_wl='-Qoption ld '
7854 lt_prog_compiler_pic='-PIC'
7855 lt_prog_compiler_static='-Bstatic'
7856 ;;
7857
7858 sysv4 | sysv4.2uw2* | sysv4.3*)
7859 lt_prog_compiler_wl='-Wl,'
7860 lt_prog_compiler_pic='-KPIC'
7861 lt_prog_compiler_static='-Bstatic'
7862 ;;
7863
7864 sysv4*MP*)
7865 if test -d /usr/nec ;then
7866 lt_prog_compiler_pic='-Kconform_pic'
7867 lt_prog_compiler_static='-Bstatic'
7868 fi
7869 ;;
7870
7871 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7872 lt_prog_compiler_wl='-Wl,'
7873 lt_prog_compiler_pic='-KPIC'
7874 lt_prog_compiler_static='-Bstatic'
7875 ;;
7876
7877 unicos*)
7878 lt_prog_compiler_wl='-Wl,'
7879 lt_prog_compiler_can_build_shared=no
7880 ;;
7881
7882 uts4*)
7883 lt_prog_compiler_pic='-pic'
7884 lt_prog_compiler_static='-Bstatic'
7885 ;;
7886
7887 *)
7888 lt_prog_compiler_can_build_shared=no
7889 ;;
7890 esac
7891 fi
7892
7893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7894$as_echo "$lt_prog_compiler_pic" >&6; }
7895
7896#
7897# Check to make sure the PIC flag actually works.
7898#
7899if test -n "$lt_prog_compiler_pic"; then
7900
7901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7902$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7903if ${lt_prog_compiler_pic_works+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905else
7906 lt_prog_compiler_pic_works=no
7907 ac_outfile=conftest.$ac_objext
7908 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7909 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7910 # Insert the option either (1) after the last *FLAGS variable, or
7911 # (2) before a word containing "conftest.", or (3) at the end.
7912 # Note that $ac_compile itself does not contain backslashes and begins
7913 # with a dollar sign (not a hyphen), so the echo should work correctly.
7914 # The option is referenced via a variable to avoid confusing sed.
7915 lt_compile=`echo "$ac_compile" | $SED \
7916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7918 -e 's:$: $lt_compiler_flag:'`
7919 (eval echo "\"\$as_me:7919: $lt_compile\"" >&5)
7920 (eval "$lt_compile" 2>conftest.err)
7921 ac_status=$?
7922 cat conftest.err >&5
7923 echo "$as_me:7923: \$? = $ac_status" >&5
7924 if (exit $ac_status) && test -s "$ac_outfile"; then
7925 # The compiler can only warn and ignore the option if not recognized
7926 # So say no if there are warnings other than the usual output.
7927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7930 lt_prog_compiler_pic_works=yes
7931 fi
7932 fi
7933 $rm conftest*
7934
7935fi
7936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7937$as_echo "$lt_prog_compiler_pic_works" >&6; }
7938
7939if test x"$lt_prog_compiler_pic_works" = xyes; then
7940 case $lt_prog_compiler_pic in
7941 "" | " "*) ;;
7942 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7943 esac
7944else
7945 lt_prog_compiler_pic=
7946 lt_prog_compiler_can_build_shared=no
7947fi
7948
7949fi
7950case $host_os in
7951 # For platforms which do not support PIC, -DPIC is meaningless:
7952 *djgpp*)
7953 lt_prog_compiler_pic=
7954 ;;
7955 *)
7956 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7957 ;;
7958esac
7959
7960#
7961# Check to make sure the static flag actually works.
7962#
7963wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7965$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7966if ${lt_prog_compiler_static_works+:} false; then :
7967 $as_echo_n "(cached) " >&6
7968else
7969 lt_prog_compiler_static_works=no
7970 save_LDFLAGS="$LDFLAGS"
7971 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7972 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7973 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7974 # The linker can only warn and ignore the option if not recognized
7975 # So say no if there are warnings
7976 if test -s conftest.err; then
7977 # Append any errors to the config.log.
7978 cat conftest.err 1>&5
7979 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7980 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7981 if diff conftest.exp conftest.er2 >/dev/null; then
7982 lt_prog_compiler_static_works=yes
7983 fi
7984 else
7985 lt_prog_compiler_static_works=yes
7986 fi
7987 fi
7988 $rm conftest*
7989 LDFLAGS="$save_LDFLAGS"
7990
7991fi
7992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7993$as_echo "$lt_prog_compiler_static_works" >&6; }
7994
7995if test x"$lt_prog_compiler_static_works" = xyes; then
7996 :
7997else
7998 lt_prog_compiler_static=
7999fi
8000
8001
8002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8003$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8004if ${lt_cv_prog_compiler_c_o+:} false; then :
8005 $as_echo_n "(cached) " >&6
8006else
8007 lt_cv_prog_compiler_c_o=no
8008 $rm -r conftest 2>/dev/null
8009 mkdir conftest
8010 cd conftest
8011 mkdir out
8012 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8013
8014 lt_compiler_flag="-o out/conftest2.$ac_objext"
8015 # Insert the option either (1) after the last *FLAGS variable, or
8016 # (2) before a word containing "conftest.", or (3) at the end.
8017 # Note that $ac_compile itself does not contain backslashes and begins
8018 # with a dollar sign (not a hyphen), so the echo should work correctly.
8019 lt_compile=`echo "$ac_compile" | $SED \
8020 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8021 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8022 -e 's:$: $lt_compiler_flag:'`
8023 (eval echo "\"\$as_me:8023: $lt_compile\"" >&5)
8024 (eval "$lt_compile" 2>out/conftest.err)
8025 ac_status=$?
8026 cat out/conftest.err >&5
8027 echo "$as_me:8027: \$? = $ac_status" >&5
8028 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8029 then
8030 # The compiler can only warn and ignore the option if not recognized
8031 # So say no if there are warnings
8032 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8033 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8034 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8035 lt_cv_prog_compiler_c_o=yes
8036 fi
8037 fi
8038 chmod u+w . 2>&5
8039 $rm conftest*
8040 # SGI C++ compiler will create directory out/ii_files/ for
8041 # template instantiation
8042 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8043 $rm out/* && rmdir out
8044 cd ..
8045 rmdir conftest
8046 $rm conftest*
8047
8048fi
8049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8050$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8051
8052
8053hard_links="nottested"
8054if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8055 # do not overwrite the value of need_locks provided by the user
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8057$as_echo_n "checking if we can lock with hard links... " >&6; }
8058 hard_links=yes
8059 $rm conftest*
8060 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8061 touch conftest.a
8062 ln conftest.a conftest.b 2>&5 || hard_links=no
8063 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8065$as_echo "$hard_links" >&6; }
8066 if test "$hard_links" = no; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8068$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8069 need_locks=warn
8070 fi
8071else
8072 need_locks=no
8073fi
8074
8075{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8076$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8077
8078 runpath_var=
8079 allow_undefined_flag=
8080 enable_shared_with_static_runtimes=no
8081 archive_cmds=
8082 archive_expsym_cmds=
8083 old_archive_From_new_cmds=
8084 old_archive_from_expsyms_cmds=
8085 export_dynamic_flag_spec=
8086 whole_archive_flag_spec=
8087 thread_safe_flag_spec=
8088 hardcode_libdir_flag_spec=
8089 hardcode_libdir_flag_spec_ld=
8090 hardcode_libdir_separator=
8091 hardcode_direct=no
8092 hardcode_minus_L=no
8093 hardcode_shlibpath_var=unsupported
8094 link_all_deplibs=unknown
8095 hardcode_automatic=no
8096 module_cmds=
8097 module_expsym_cmds=
8098 always_export_symbols=no
8099 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8100 # include_expsyms should be a list of space-separated symbols to be *always*
8101 # included in the symbol list
8102 include_expsyms=
8103 # exclude_expsyms can be an extended regexp of symbols to exclude
8104 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8105 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8106 # as well as any symbol that contains `d'.
8107 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8108 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8109 # platforms (ab)use it in PIC code, but their linkers get confused if
8110 # the symbol is explicitly referenced. Since portable code cannot
8111 # rely on this symbol name, it's probably fine to never include it in
8112 # preloaded symbol tables.
8113 extract_expsyms_cmds=
8114 # Just being paranoid about ensuring that cc_basename is set.
8115 for cc_temp in $compiler""; do
8116 case $cc_temp in
8117 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8118 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8119 \-*) ;;
8120 *) break;;
8121 esac
8122done
8123cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8124
8125 case $host_os in
8126 cygwin* | mingw* | pw32*)
8127 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8128 # When not using gcc, we currently assume that we are using
8129 # Microsoft Visual C++.
8130 if test "$GCC" != yes; then
8131 with_gnu_ld=no
8132 fi
8133 ;;
8134 interix*)
8135 # we just hope/assume this is gcc and not c89 (= MSVC++)
8136 with_gnu_ld=yes
8137 ;;
8138 openbsd*)
8139 with_gnu_ld=no
8140 ;;
8141 esac
8142
8143 ld_shlibs=yes
8144 if test "$with_gnu_ld" = yes; then
8145 # If archive_cmds runs LD, not CC, wlarc should be empty
8146 wlarc='${wl}'
8147
8148 # Set some defaults for GNU ld with shared library support. These
8149 # are reset later if shared libraries are not supported. Putting them
8150 # here allows them to be overridden if necessary.
8151 runpath_var=LD_RUN_PATH
8152 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8153 export_dynamic_flag_spec='${wl}--export-dynamic'
8154 # ancient GNU ld didn't support --whole-archive et. al.
8155 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8156 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8157 else
8158 whole_archive_flag_spec=
8159 fi
8160 supports_anon_versioning=no
8161 case `$LD -v 2>/dev/null` in
8162 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8163 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8164 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8165 *\ 2.11.*) ;; # other 2.11 versions
8166 *) supports_anon_versioning=yes ;;
8167 esac
8168
8169 # See if GNU ld supports shared libraries.
8170 case $host_os in
8171 aix3* | aix4* | aix5*)
8172 # On AIX/PPC, the GNU linker is very broken
8173 if test "$host_cpu" != ia64; then
8174 ld_shlibs=no
8175 cat <<EOF 1>&2
8176
8177*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8178*** to be unable to reliably create shared libraries on AIX.
8179*** Therefore, libtool is disabling shared libraries support. If you
8180*** really care for shared libraries, you may want to modify your PATH
8181*** so that a non-GNU linker is found, and then restart.
8182
8183EOF
8184 fi
8185 ;;
8186
8187 amigaos*)
8188 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)'
8189 hardcode_libdir_flag_spec='-L$libdir'
8190 hardcode_minus_L=yes
8191
8192 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8193 # that the semantics of dynamic libraries on AmigaOS, at least up
8194 # to version 4, is to share data among multiple programs linked
8195 # with the same dynamic library. Since this doesn't match the
8196 # behavior of shared libraries on other platforms, we can't use
8197 # them.
8198 ld_shlibs=no
8199 ;;
8200
8201 beos*)
8202 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8203 allow_undefined_flag=unsupported
8204 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8205 # support --undefined. This deserves some investigation. FIXME
8206 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8207 else
8208 ld_shlibs=no
8209 fi
8210 ;;
8211
8212 cygwin* | mingw* | pw32*)
8213 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8214 # as there is no search path for DLLs.
8215 hardcode_libdir_flag_spec='-L$libdir'
8216 allow_undefined_flag=unsupported
8217 always_export_symbols=no
8218 enable_shared_with_static_runtimes=yes
8219 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8220
8221 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8222 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8223 # If the export-symbols file already is a .def file (1st line
8224 # is EXPORTS), use it as is; otherwise, prepend...
8225 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8226 cp $export_symbols $output_objdir/$soname.def;
8227 else
8228 echo EXPORTS > $output_objdir/$soname.def;
8229 cat $export_symbols >> $output_objdir/$soname.def;
8230 fi~
8231 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8232 else
8233 ld_shlibs=no
8234 fi
8235 ;;
8236
8237 interix3*)
8238 hardcode_direct=no
8239 hardcode_shlibpath_var=no
8240 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8241 export_dynamic_flag_spec='${wl}-E'
8242 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8243 # Instead, shared libraries are loaded at an image base (0x10000000 by
8244 # default) and relocated if they conflict, which is a slow very memory
8245 # consuming and fragmenting process. To avoid this, we pick a random,
8246 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8247 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8248 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8249 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'
8250 ;;
8251
8252 linux*)
8253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254 tmp_addflag=
8255 case $cc_basename,$host_cpu in
8256 pgcc*) # Portland Group C compiler
8257 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'
8258 tmp_addflag=' $pic_flag'
8259 ;;
8260 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8261 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'
8262 tmp_addflag=' $pic_flag -Mnomain' ;;
8263 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8264 tmp_addflag=' -i_dynamic' ;;
8265 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8266 tmp_addflag=' -i_dynamic -nofor_main' ;;
8267 ifc* | ifort*) # Intel Fortran compiler
8268 tmp_addflag=' -nofor_main' ;;
8269 esac
8270 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8271
8272 if test $supports_anon_versioning = yes; then
8273 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8274 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8275 $echo "local: *; };" >> $output_objdir/$libname.ver~
8276 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8277 fi
8278 else
8279 ld_shlibs=no
8280 fi
8281 ;;
8282
8283 netbsd*)
8284 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8285 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8286 wlarc=
8287 else
8288 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8289 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8290 fi
8291 ;;
8292
8293 solaris*)
8294 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8295 ld_shlibs=no
8296 cat <<EOF 1>&2
8297
8298*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8299*** create shared libraries on Solaris systems. Therefore, libtool
8300*** is disabling shared libraries support. We urge you to upgrade GNU
8301*** binutils to release 2.9.1 or newer. Another option is to modify
8302*** your PATH or compiler configuration so that the native linker is
8303*** used, and then restart.
8304
8305EOF
8306 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8308 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8309 else
8310 ld_shlibs=no
8311 fi
8312 ;;
8313
8314 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8315 case `$LD -v 2>&1` in
8316 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8317 ld_shlibs=no
8318 cat <<_LT_EOF 1>&2
8319
8320*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8321*** reliably create shared libraries on SCO systems. Therefore, libtool
8322*** is disabling shared libraries support. We urge you to upgrade GNU
8323*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8324*** your PATH or compiler configuration so that the native linker is
8325*** used, and then restart.
8326
8327_LT_EOF
8328 ;;
8329 *)
8330 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8331 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8332 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8333 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8334 else
8335 ld_shlibs=no
8336 fi
8337 ;;
8338 esac
8339 ;;
8340
8341 sunos4*)
8342 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8343 wlarc=
8344 hardcode_direct=yes
8345 hardcode_shlibpath_var=no
8346 ;;
8347
8348 *)
8349 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8350 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8351 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8352 else
8353 ld_shlibs=no
8354 fi
8355 ;;
8356 esac
8357
8358 if test "$ld_shlibs" = no; then
8359 runpath_var=
8360 hardcode_libdir_flag_spec=
8361 export_dynamic_flag_spec=
8362 whole_archive_flag_spec=
8363 fi
8364 else
8365 # PORTME fill in a description of your system's linker (not GNU ld)
8366 case $host_os in
8367 aix3*)
8368 allow_undefined_flag=unsupported
8369 always_export_symbols=yes
8370 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'
8371 # Note: this linker hardcodes the directories in LIBPATH if there
8372 # are no directories specified by -L.
8373 hardcode_minus_L=yes
8374 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8375 # Neither direct hardcoding nor static linking is supported with a
8376 # broken collect2.
8377 hardcode_direct=unsupported
8378 fi
8379 ;;
8380
8381 aix4* | aix5*)
8382 if test "$host_cpu" = ia64; then
8383 # On IA64, the linker does run time linking by default, so we don't
8384 # have to do anything special.
8385 aix_use_runtimelinking=no
8386 exp_sym_flag='-Bexport'
8387 no_entry_flag=""
8388 else
8389 # If we're using GNU nm, then we don't want the "-C" option.
8390 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8391 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8392 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'
8393 else
8394 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'
8395 fi
8396 aix_use_runtimelinking=no
8397
8398 # Test if we are trying to use run time linking or normal
8399 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8400 # need to do runtime linking.
8401 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8402 for ld_flag in $LDFLAGS; do
8403 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8404 aix_use_runtimelinking=yes
8405 break
8406 fi
8407 done
8408 ;;
8409 esac
8410
8411 exp_sym_flag='-bexport'
8412 no_entry_flag='-bnoentry'
8413 fi
8414
8415 # When large executables or shared objects are built, AIX ld can
8416 # have problems creating the table of contents. If linking a library
8417 # or program results in "error TOC overflow" add -mminimal-toc to
8418 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8419 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8420
8421 archive_cmds=''
8422 hardcode_direct=yes
8423 hardcode_libdir_separator=':'
8424 link_all_deplibs=yes
8425
8426 if test "$GCC" = yes; then
8427 case $host_os in aix4.[012]|aix4.[012].*)
8428 # We only want to do this on AIX 4.2 and lower, the check
8429 # below for broken collect2 doesn't work under 4.3+
8430 collect2name=`${CC} -print-prog-name=collect2`
8431 if test -f "$collect2name" && \
8432 strings "$collect2name" | grep resolve_lib_name >/dev/null
8433 then
8434 # We have reworked collect2
8435 hardcode_direct=yes
8436 else
8437 # We have old collect2
8438 hardcode_direct=unsupported
8439 # It fails to find uninstalled libraries when the uninstalled
8440 # path is not listed in the libpath. Setting hardcode_minus_L
8441 # to unsupported forces relinking
8442 hardcode_minus_L=yes
8443 hardcode_libdir_flag_spec='-L$libdir'
8444 hardcode_libdir_separator=
8445 fi
8446 ;;
8447 esac
8448 shared_flag='-shared'
8449 if test "$aix_use_runtimelinking" = yes; then
8450 shared_flag="$shared_flag "'${wl}-G'
8451 fi
8452 else
8453 # not using gcc
8454 if test "$host_cpu" = ia64; then
8455 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8456 # chokes on -Wl,-G. The following line is correct:
8457 shared_flag='-G'
8458 else
8459 if test "$aix_use_runtimelinking" = yes; then
8460 shared_flag='${wl}-G'
8461 else
8462 shared_flag='${wl}-bM:SRE'
8463 fi
8464 fi
8465 fi
8466
8467 # It seems that -bexpall does not export symbols beginning with
8468 # underscore (_), so it is better to generate a list of symbols to export.
8469 always_export_symbols=yes
8470 if test "$aix_use_runtimelinking" = yes; then
8471 # Warning - without using the other runtime loading flags (-brtl),
8472 # -berok will link without error, but may produce a broken library.
8473 allow_undefined_flag='-berok'
8474 # Determine the default libpath from the value encoded in an empty executable.
8475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8476/* end confdefs.h. */
8477
8478int
8479main ()
8480{
8481
8482 ;
8483 return 0;
8484}
8485_ACEOF
8486if ac_fn_c_try_link "$LINENO"; then :
8487
8488aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8489}'`
8490# Check for a 64-bit object if we didn't find anything.
8491if 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; }
8492}'`; fi
8493fi
8494rm -f core conftest.err conftest.$ac_objext \
8495 conftest$ac_exeext conftest.$ac_ext
8496if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8497
8498 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8499 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"
8500 else
8501 if test "$host_cpu" = ia64; then
8502 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8503 allow_undefined_flag="-z nodefs"
8504 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"
8505 else
8506 # Determine the default libpath from the value encoded in an empty executable.
8507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8508/* end confdefs.h. */
8509
8510int
8511main ()
8512{
8513
8514 ;
8515 return 0;
8516}
8517_ACEOF
8518if ac_fn_c_try_link "$LINENO"; then :
8519
8520aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8521}'`
8522# Check for a 64-bit object if we didn't find anything.
8523if 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; }
8524}'`; fi
8525fi
8526rm -f core conftest.err conftest.$ac_objext \
8527 conftest$ac_exeext conftest.$ac_ext
8528if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8529
8530 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8531 # Warning - without using the other run time loading flags,
8532 # -berok will link without error, but may produce a broken library.
8533 no_undefined_flag=' ${wl}-bernotok'
8534 allow_undefined_flag=' ${wl}-berok'
8535 # Exported symbols can be pulled into shared objects from archives
8536 whole_archive_flag_spec='$convenience'
8537 archive_cmds_need_lc=yes
8538 # This is similar to how AIX traditionally builds its shared libraries.
8539 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'
8540 fi
8541 fi
8542 ;;
8543
8544 amigaos*)
8545 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)'
8546 hardcode_libdir_flag_spec='-L$libdir'
8547 hardcode_minus_L=yes
8548 # see comment about different semantics on the GNU ld section
8549 ld_shlibs=no
8550 ;;
8551
8552 bsdi[45]*)
8553 export_dynamic_flag_spec=-rdynamic
8554 ;;
8555
8556 cygwin* | mingw* | pw32*)
8557 # When not using gcc, we currently assume that we are using
8558 # Microsoft Visual C++.
8559 # hardcode_libdir_flag_spec is actually meaningless, as there is
8560 # no search path for DLLs.
8561 hardcode_libdir_flag_spec=' '
8562 allow_undefined_flag=unsupported
8563 # Tell ltmain to make .lib files, not .a files.
8564 libext=lib
8565 # Tell ltmain to make .dll files, not .so files.
8566 shrext_cmds=".dll"
8567 # FIXME: Setting linknames here is a bad hack.
8568 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8569 # The linker will automatically build a .lib file if we build a DLL.
8570 old_archive_From_new_cmds='true'
8571 # FIXME: Should let the user specify the lib program.
8572 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8573 fix_srcfile_path='`cygpath -w "$srcfile"`'
8574 enable_shared_with_static_runtimes=yes
8575 ;;
8576
8577 darwin* | rhapsody*)
8578 case $host_os in
8579 rhapsody* | darwin1.[012])
8580 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8581 ;;
8582 *) # Darwin 1.3 on
8583 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8584 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8585 else
8586 case ${MACOSX_DEPLOYMENT_TARGET} in
8587 10.[012])
8588 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8589 ;;
8590 10.*)
8591 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8592 ;;
8593 esac
8594 fi
8595 ;;
8596 esac
8597 archive_cmds_need_lc=no
8598 hardcode_direct=no
8599 hardcode_automatic=yes
8600 hardcode_shlibpath_var=unsupported
8601 whole_archive_flag_spec=''
8602 link_all_deplibs=yes
8603 if test "$GCC" = yes ; then
8604 output_verbose_link_cmd='echo'
8605 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8606 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8607 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8608 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}'
8609 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}'
8610 else
8611 case $cc_basename in
8612 xlc*)
8613 output_verbose_link_cmd='echo'
8614 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8615 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8616 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8617 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}'
8618 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}'
8619 ;;
8620 *)
8621 ld_shlibs=no
8622 ;;
8623 esac
8624 fi
8625 ;;
8626
8627 dgux*)
8628 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8629 hardcode_libdir_flag_spec='-L$libdir'
8630 hardcode_shlibpath_var=no
8631 ;;
8632
8633 freebsd1*)
8634 ld_shlibs=no
8635 ;;
8636
8637 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8638 # support. Future versions do this automatically, but an explicit c++rt0.o
8639 # does not break anything, and helps significantly (at the cost of a little
8640 # extra space).
8641 freebsd2.2*)
8642 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8643 hardcode_libdir_flag_spec='-R$libdir'
8644 hardcode_direct=yes
8645 hardcode_shlibpath_var=no
8646 ;;
8647
8648 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8649 freebsd2*)
8650 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8651 hardcode_direct=yes
8652 hardcode_minus_L=yes
8653 hardcode_shlibpath_var=no
8654 ;;
8655
8656 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8657 freebsd* | kfreebsd*-gnu | dragonfly*)
8658 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8659 hardcode_libdir_flag_spec='-R$libdir'
8660 hardcode_direct=yes
8661 hardcode_shlibpath_var=no
8662 ;;
8663
8664 hpux9*)
8665 if test "$GCC" = yes; then
8666 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'
8667 else
8668 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'
8669 fi
8670 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8671 hardcode_libdir_separator=:
8672 hardcode_direct=yes
8673
8674 # hardcode_minus_L: Not really in the search PATH,
8675 # but as the default location of the library.
8676 hardcode_minus_L=yes
8677 export_dynamic_flag_spec='${wl}-E'
8678 ;;
8679
8680 hpux10*)
8681 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8682 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8683 else
8684 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8685 fi
8686 if test "$with_gnu_ld" = no; then
8687 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8688 hardcode_libdir_separator=:
8689
8690 hardcode_direct=yes
8691 export_dynamic_flag_spec='${wl}-E'
8692
8693 # hardcode_minus_L: Not really in the search PATH,
8694 # but as the default location of the library.
8695 hardcode_minus_L=yes
8696 fi
8697 ;;
8698
8699 hpux11*)
8700 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8701 case $host_cpu in
8702 hppa*64*)
8703 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8704 ;;
8705 ia64*)
8706 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8707 ;;
8708 *)
8709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710 ;;
8711 esac
8712 else
8713 case $host_cpu in
8714 hppa*64*)
8715 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8716 ;;
8717 ia64*)
8718 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8719 ;;
8720 *)
8721 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8722 ;;
8723 esac
8724 fi
8725 if test "$with_gnu_ld" = no; then
8726 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8727 hardcode_libdir_separator=:
8728
8729 case $host_cpu in
8730 hppa*64*|ia64*)
8731 hardcode_libdir_flag_spec_ld='+b $libdir'
8732 hardcode_direct=no
8733 hardcode_shlibpath_var=no
8734 ;;
8735 *)
8736 hardcode_direct=yes
8737 export_dynamic_flag_spec='${wl}-E'
8738
8739 # hardcode_minus_L: Not really in the search PATH,
8740 # but as the default location of the library.
8741 hardcode_minus_L=yes
8742 ;;
8743 esac
8744 fi
8745 ;;
8746
8747 irix5* | irix6* | nonstopux*)
8748 if test "$GCC" = yes; then
8749 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'
8750 else
8751 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'
8752 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8753 fi
8754 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8755 hardcode_libdir_separator=:
8756 link_all_deplibs=yes
8757 ;;
8758
8759 netbsd*)
8760 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8761 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8762 else
8763 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8764 fi
8765 hardcode_libdir_flag_spec='-R$libdir'
8766 hardcode_direct=yes
8767 hardcode_shlibpath_var=no
8768 ;;
8769
8770 newsos6)
8771 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8772 hardcode_direct=yes
8773 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8774 hardcode_libdir_separator=:
8775 hardcode_shlibpath_var=no
8776 ;;
8777
8778 openbsd*)
8779 hardcode_direct=yes
8780 hardcode_shlibpath_var=no
8781 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8782 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8783 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8784 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8785 export_dynamic_flag_spec='${wl}-E'
8786 else
8787 case $host_os in
8788 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8789 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8790 hardcode_libdir_flag_spec='-R$libdir'
8791 ;;
8792 *)
8793 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8794 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8795 ;;
8796 esac
8797 fi
8798 ;;
8799
8800 os2*)
8801 hardcode_libdir_flag_spec='-L$libdir'
8802 hardcode_minus_L=yes
8803 allow_undefined_flag=unsupported
8804 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'
8805 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8806 ;;
8807
8808 osf3*)
8809 if test "$GCC" = yes; then
8810 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8811 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'
8812 else
8813 allow_undefined_flag=' -expect_unresolved \*'
8814 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'
8815 fi
8816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8817 hardcode_libdir_separator=:
8818 ;;
8819
8820 osf4* | osf5*) # as osf3* with the addition of -msym flag
8821 if test "$GCC" = yes; then
8822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8823 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'
8824 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8825 else
8826 allow_undefined_flag=' -expect_unresolved \*'
8827 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'
8828 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8829 $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'
8830
8831 # Both c and cxx compiler support -rpath directly
8832 hardcode_libdir_flag_spec='-rpath $libdir'
8833 fi
8834 hardcode_libdir_separator=:
8835 ;;
8836
8837 solaris*)
8838 no_undefined_flag=' -z text'
8839 if test "$GCC" = yes; then
8840 wlarc='${wl}'
8841 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8842 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8843 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8844 else
8845 wlarc=''
8846 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8847 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8848 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8849 fi
8850 hardcode_libdir_flag_spec='-R$libdir'
8851 hardcode_shlibpath_var=no
8852 case $host_os in
8853 solaris2.[0-5] | solaris2.[0-5].*) ;;
8854 *)
8855 # The compiler driver will combine linker options so we
8856 # cannot just pass the convience library names through
8857 # without $wl, iff we do not link with $LD.
8858 # Luckily, gcc supports the same syntax we need for Sun Studio.
8859 # Supported since Solaris 2.6 (maybe 2.5.1?)
8860 case $wlarc in
8861 '')
8862 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8863 *)
8864 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' ;;
8865 esac ;;
8866 esac
8867 link_all_deplibs=yes
8868 ;;
8869
8870 sunos4*)
8871 if test "x$host_vendor" = xsequent; then
8872 # Use $CC to link under sequent, because it throws in some extra .o
8873 # files that make .init and .fini sections work.
8874 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8875 else
8876 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8877 fi
8878 hardcode_libdir_flag_spec='-L$libdir'
8879 hardcode_direct=yes
8880 hardcode_minus_L=yes
8881 hardcode_shlibpath_var=no
8882 ;;
8883
8884 sysv4)
8885 case $host_vendor in
8886 sni)
8887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8888 hardcode_direct=yes # is this really true???
8889 ;;
8890 siemens)
8891 ## LD is ld it makes a PLAMLIB
8892 ## CC just makes a GrossModule.
8893 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8894 reload_cmds='$CC -r -o $output$reload_objs'
8895 hardcode_direct=no
8896 ;;
8897 motorola)
8898 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8899 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8900 ;;
8901 esac
8902 runpath_var='LD_RUN_PATH'
8903 hardcode_shlibpath_var=no
8904 ;;
8905
8906 sysv4.3*)
8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908 hardcode_shlibpath_var=no
8909 export_dynamic_flag_spec='-Bexport'
8910 ;;
8911
8912 sysv4*MP*)
8913 if test -d /usr/nec; then
8914 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8915 hardcode_shlibpath_var=no
8916 runpath_var=LD_RUN_PATH
8917 hardcode_runpath_var=yes
8918 ld_shlibs=yes
8919 fi
8920 ;;
8921
8922 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8923 no_undefined_flag='${wl}-z,text'
8924 archive_cmds_need_lc=no
8925 hardcode_shlibpath_var=no
8926 runpath_var='LD_RUN_PATH'
8927
8928 if test "$GCC" = yes; then
8929 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8930 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8931 else
8932 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8934 fi
8935 ;;
8936
8937 sysv5* | sco3.2v5* | sco5v6*)
8938 # Note: We can NOT use -z defs as we might desire, because we do not
8939 # link with -lc, and that would cause any symbols used from libc to
8940 # always be unresolved, which means just about no library would
8941 # ever link correctly. If we're not using GNU ld we use -z text
8942 # though, which does catch some bad symbols but isn't as heavy-handed
8943 # as -z defs.
8944 no_undefined_flag='${wl}-z,text'
8945 allow_undefined_flag='${wl}-z,nodefs'
8946 archive_cmds_need_lc=no
8947 hardcode_shlibpath_var=no
8948 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8949 hardcode_libdir_separator=':'
8950 link_all_deplibs=yes
8951 export_dynamic_flag_spec='${wl}-Bexport'
8952 runpath_var='LD_RUN_PATH'
8953
8954 if test "$GCC" = yes; then
8955 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8956 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8957 else
8958 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8959 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 fi
8961 ;;
8962
8963 uts4*)
8964 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8965 hardcode_libdir_flag_spec='-L$libdir'
8966 hardcode_shlibpath_var=no
8967 ;;
8968
8969 *)
8970 ld_shlibs=no
8971 ;;
8972 esac
8973 fi
8974
8975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8976$as_echo "$ld_shlibs" >&6; }
8977test "$ld_shlibs" = no && can_build_shared=no
8978
8979#
8980# Do we need to explicitly link libc?
8981#
8982case "x$archive_cmds_need_lc" in
8983x|xyes)
8984 # Assume -lc should be added
8985 archive_cmds_need_lc=yes
8986
8987 if test "$enable_shared" = yes && test "$GCC" = yes; then
8988 case $archive_cmds in
8989 *'~'*)
8990 # FIXME: we may have to deal with multi-command sequences.
8991 ;;
8992 '$CC '*)
8993 # Test whether the compiler implicitly links with -lc since on some
8994 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8995 # to ld, don't add -lc before -lgcc.
8996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8997$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8998 $rm conftest*
8999 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9000
9001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9002 (eval $ac_compile) 2>&5
9003 ac_status=$?
9004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9005 test $ac_status = 0; } 2>conftest.err; then
9006 soname=conftest
9007 lib=conftest
9008 libobjs=conftest.$ac_objext
9009 deplibs=
9010 wl=$lt_prog_compiler_wl
9011 pic_flag=$lt_prog_compiler_pic
9012 compiler_flags=-v
9013 linker_flags=-v
9014 verstring=
9015 output_objdir=.
9016 libname=conftest
9017 lt_save_allow_undefined_flag=$allow_undefined_flag
9018 allow_undefined_flag=
9019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
9020 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9021 ac_status=$?
9022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9023 test $ac_status = 0; }
9024 then
9025 archive_cmds_need_lc=no
9026 else
9027 archive_cmds_need_lc=yes
9028 fi
9029 allow_undefined_flag=$lt_save_allow_undefined_flag
9030 else
9031 cat conftest.err 1>&5
9032 fi
9033 $rm conftest*
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9035$as_echo "$archive_cmds_need_lc" >&6; }
9036 ;;
9037 esac
9038 fi
9039 ;;
9040esac
9041
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9043$as_echo_n "checking dynamic linker characteristics... " >&6; }
9044library_names_spec=
9045libname_spec='lib$name'
9046soname_spec=
9047shrext_cmds=".so"
9048postinstall_cmds=
9049postuninstall_cmds=
9050finish_cmds=
9051finish_eval=
9052shlibpath_var=
9053shlibpath_overrides_runpath=unknown
9054version_type=none
9055dynamic_linker="$host_os ld.so"
9056sys_lib_dlsearch_path_spec="/lib /usr/lib"
9057if test "$GCC" = yes; then
9058 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9059 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9060 # if the path contains ";" then we assume it to be the separator
9061 # otherwise default to the standard path separator (i.e. ":") - it is
9062 # assumed that no part of a normal pathname contains ";" but that should
9063 # okay in the real world where ";" in dirpaths is itself problematic.
9064 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9065 else
9066 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9067 fi
9068else
9069 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9070fi
9071need_lib_prefix=unknown
9072hardcode_into_libs=no
9073
9074# when you set need_version to no, make sure it does not cause -set_version
9075# flags to be left without arguments
9076need_version=unknown
9077
9078case $host_os in
9079aix3*)
9080 version_type=linux
9081 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9082 shlibpath_var=LIBPATH
9083
9084 # AIX 3 has no versioning support, so we append a major version to the name.
9085 soname_spec='${libname}${release}${shared_ext}$major'
9086 ;;
9087
9088aix4* | aix5*)
9089 version_type=linux
9090 need_lib_prefix=no
9091 need_version=no
9092 hardcode_into_libs=yes
9093 if test "$host_cpu" = ia64; then
9094 # AIX 5 supports IA64
9095 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9096 shlibpath_var=LD_LIBRARY_PATH
9097 else
9098 # With GCC up to 2.95.x, collect2 would create an import file
9099 # for dependence libraries. The import file would start with
9100 # the line `#! .'. This would cause the generated library to
9101 # depend on `.', always an invalid library. This was fixed in
9102 # development snapshots of GCC prior to 3.0.
9103 case $host_os in
9104 aix4 | aix4.[01] | aix4.[01].*)
9105 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9106 echo ' yes '
9107 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9108 :
9109 else
9110 can_build_shared=no
9111 fi
9112 ;;
9113 esac
9114 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9115 # soname into executable. Probably we can add versioning support to
9116 # collect2, so additional links can be useful in future.
9117 if test "$aix_use_runtimelinking" = yes; then
9118 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9119 # instead of lib<name>.a to let people know that these are not
9120 # typical AIX shared libraries.
9121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9122 else
9123 # We preserve .a as extension for shared libraries through AIX4.2
9124 # and later when we are not doing run time linking.
9125 library_names_spec='${libname}${release}.a $libname.a'
9126 soname_spec='${libname}${release}${shared_ext}$major'
9127 fi
9128 shlibpath_var=LIBPATH
9129 fi
9130 ;;
9131
9132amigaos*)
9133 library_names_spec='$libname.ixlibrary $libname.a'
9134 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9135 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'
9136 ;;
9137
9138beos*)
9139 library_names_spec='${libname}${shared_ext}'
9140 dynamic_linker="$host_os ld.so"
9141 shlibpath_var=LIBRARY_PATH
9142 ;;
9143
9144bsdi[45]*)
9145 version_type=linux
9146 need_version=no
9147 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9148 soname_spec='${libname}${release}${shared_ext}$major'
9149 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9150 shlibpath_var=LD_LIBRARY_PATH
9151 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9152 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9153 # the default ld.so.conf also contains /usr/contrib/lib and
9154 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9155 # libtool to hard-code these into programs
9156 ;;
9157
9158cygwin* | mingw* | pw32*)
9159 version_type=windows
9160 shrext_cmds=".dll"
9161 need_version=no
9162 need_lib_prefix=no
9163
9164 case $GCC,$host_os in
9165 yes,cygwin* | yes,mingw* | yes,pw32*)
9166 library_names_spec='$libname.dll.a'
9167 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9168 postinstall_cmds='base_file=`basename \${file}`~
9169 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9170 dldir=$destdir/`dirname \$dlpath`~
9171 test -d \$dldir || mkdir -p \$dldir~
9172 $install_prog $dir/$dlname \$dldir/$dlname~
9173 chmod a+x \$dldir/$dlname'
9174 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9175 dlpath=$dir/\$dldll~
9176 $rm \$dlpath'
9177 shlibpath_overrides_runpath=yes
9178
9179 case $host_os in
9180 cygwin*)
9181 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9182 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9183 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9184 ;;
9185 mingw*)
9186 # MinGW DLLs use traditional 'lib' prefix
9187 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9188 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9189 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9190 # It is most probably a Windows format PATH printed by
9191 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9192 # path with ; separators, and with drive letters. We can handle the
9193 # drive letters (cygwin fileutils understands them), so leave them,
9194 # especially as we might pass files found there to a mingw objdump,
9195 # which wouldn't understand a cygwinified path. Ahh.
9196 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9197 else
9198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9199 fi
9200 ;;
9201 pw32*)
9202 # pw32 DLLs use 'pw' prefix rather than 'lib'
9203 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9204 ;;
9205 esac
9206 ;;
9207
9208 *)
9209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9210 ;;
9211 esac
9212 dynamic_linker='Win32 ld.exe'
9213 # FIXME: first we should search . and the directory the executable is in
9214 shlibpath_var=PATH
9215 ;;
9216
9217darwin* | rhapsody*)
9218 dynamic_linker="$host_os dyld"
9219 version_type=darwin
9220 need_lib_prefix=no
9221 need_version=no
9222 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9223 soname_spec='${libname}${release}${major}$shared_ext'
9224 shlibpath_overrides_runpath=yes
9225 shlibpath_var=DYLD_LIBRARY_PATH
9226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9227 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9228 if test "$GCC" = yes; then
9229 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"`
9230 else
9231 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9232 fi
9233 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9234 ;;
9235
9236dgux*)
9237 version_type=linux
9238 need_lib_prefix=no
9239 need_version=no
9240 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9241 soname_spec='${libname}${release}${shared_ext}$major'
9242 shlibpath_var=LD_LIBRARY_PATH
9243 ;;
9244
9245freebsd1*)
9246 dynamic_linker=no
9247 ;;
9248
9249kfreebsd*-gnu)
9250 version_type=linux
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9254 soname_spec='${libname}${release}${shared_ext}$major'
9255 shlibpath_var=LD_LIBRARY_PATH
9256 shlibpath_overrides_runpath=no
9257 hardcode_into_libs=yes
9258 dynamic_linker='GNU ld.so'
9259 ;;
9260
9261freebsd* | dragonfly*)
9262 # DragonFly does not have aout. When/if they implement a new
9263 # versioning mechanism, adjust this.
9264 if test -x /usr/bin/objformat; then
9265 objformat=`/usr/bin/objformat`
9266 else
9267 case $host_os in
9268 freebsd[123]*) objformat=aout ;;
9269 *) objformat=elf ;;
9270 esac
9271 fi
9272 version_type=freebsd-$objformat
9273 case $version_type in
9274 freebsd-elf*)
9275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9276 need_version=no
9277 need_lib_prefix=no
9278 ;;
9279 freebsd-*)
9280 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9281 need_version=yes
9282 ;;
9283 esac
9284 shlibpath_var=LD_LIBRARY_PATH
9285 case $host_os in
9286 freebsd2*)
9287 shlibpath_overrides_runpath=yes
9288 ;;
9289 freebsd3.[01]* | freebsdelf3.[01]*)
9290 shlibpath_overrides_runpath=yes
9291 hardcode_into_libs=yes
9292 ;;
9293 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9294 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9295 shlibpath_overrides_runpath=no
9296 hardcode_into_libs=yes
9297 ;;
9298 freebsd*) # from 4.6 on
9299 shlibpath_overrides_runpath=yes
9300 hardcode_into_libs=yes
9301 ;;
9302 esac
9303 ;;
9304
9305gnu*)
9306 version_type=linux
9307 need_lib_prefix=no
9308 need_version=no
9309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9310 soname_spec='${libname}${release}${shared_ext}$major'
9311 shlibpath_var=LD_LIBRARY_PATH
9312 hardcode_into_libs=yes
9313 ;;
9314
9315hpux9* | hpux10* | hpux11*)
9316 # Give a soname corresponding to the major version so that dld.sl refuses to
9317 # link against other versions.
9318 version_type=sunos
9319 need_lib_prefix=no
9320 need_version=no
9321 case $host_cpu in
9322 ia64*)
9323 shrext_cmds='.so'
9324 hardcode_into_libs=yes
9325 dynamic_linker="$host_os dld.so"
9326 shlibpath_var=LD_LIBRARY_PATH
9327 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9329 soname_spec='${libname}${release}${shared_ext}$major'
9330 if test "X$HPUX_IA64_MODE" = X32; then
9331 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9332 else
9333 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9334 fi
9335 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9336 ;;
9337 hppa*64*)
9338 shrext_cmds='.sl'
9339 hardcode_into_libs=yes
9340 dynamic_linker="$host_os dld.sl"
9341 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9346 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9347 ;;
9348 *)
9349 shrext_cmds='.sl'
9350 dynamic_linker="$host_os dld.sl"
9351 shlibpath_var=SHLIB_PATH
9352 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9353 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9354 soname_spec='${libname}${release}${shared_ext}$major'
9355 ;;
9356 esac
9357 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9358 postinstall_cmds='chmod 555 $lib'
9359 ;;
9360
9361interix3*)
9362 version_type=linux
9363 need_lib_prefix=no
9364 need_version=no
9365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9366 soname_spec='${libname}${release}${shared_ext}$major'
9367 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9368 shlibpath_var=LD_LIBRARY_PATH
9369 shlibpath_overrides_runpath=no
9370 hardcode_into_libs=yes
9371 ;;
9372
9373irix5* | irix6* | nonstopux*)
9374 case $host_os in
9375 nonstopux*) version_type=nonstopux ;;
9376 *)
9377 if test "$lt_cv_prog_gnu_ld" = yes; then
9378 version_type=linux
9379 else
9380 version_type=irix
9381 fi ;;
9382 esac
9383 need_lib_prefix=no
9384 need_version=no
9385 soname_spec='${libname}${release}${shared_ext}$major'
9386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9387 case $host_os in
9388 irix5* | nonstopux*)
9389 libsuff= shlibsuff=
9390 ;;
9391 *)
9392 case $LD in # libtool.m4 will add one of these switches to LD
9393 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9394 libsuff= shlibsuff= libmagic=32-bit;;
9395 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9396 libsuff=32 shlibsuff=N32 libmagic=N32;;
9397 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9398 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9399 *) libsuff= shlibsuff= libmagic=never-match;;
9400 esac
9401 ;;
9402 esac
9403 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9404 shlibpath_overrides_runpath=no
9405 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9406 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9407 hardcode_into_libs=yes
9408 ;;
9409
9410# No shared lib support for Linux oldld, aout, or coff.
9411linux*oldld* | linux*aout* | linux*coff*)
9412 dynamic_linker=no
9413 ;;
9414
9415# This must be Linux ELF.
9416linux*)
9417 version_type=linux
9418 need_lib_prefix=no
9419 need_version=no
9420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9421 soname_spec='${libname}${release}${shared_ext}$major'
9422 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9423 shlibpath_var=LD_LIBRARY_PATH
9424 shlibpath_overrides_runpath=no
9425 # This implies no fast_install, which is unacceptable.
9426 # Some rework will be needed to allow for fast_install
9427 # before this can be enabled.
9428 hardcode_into_libs=yes
9429
9430 # Append ld.so.conf contents to the search path
9431 if test -f /etc/ld.so.conf; then
9432 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9433 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9434 fi
9435
9436 # We used to test for /lib/ld.so.1 and disable shared libraries on
9437 # powerpc, because MkLinux only supported shared libraries with the
9438 # GNU dynamic linker. Since this was broken with cross compilers,
9439 # most powerpc-linux boxes support dynamic linking these days and
9440 # people can always --disable-shared, the test was removed, and we
9441 # assume the GNU/Linux dynamic linker is in use.
9442 dynamic_linker='GNU/Linux ld.so'
9443 ;;
9444
9445knetbsd*-gnu)
9446 version_type=linux
9447 need_lib_prefix=no
9448 need_version=no
9449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 shlibpath_var=LD_LIBRARY_PATH
9452 shlibpath_overrides_runpath=no
9453 hardcode_into_libs=yes
9454 dynamic_linker='GNU ld.so'
9455 ;;
9456
9457netbsd*)
9458 version_type=sunos
9459 need_lib_prefix=no
9460 need_version=no
9461 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9463 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9464 dynamic_linker='NetBSD (a.out) ld.so'
9465 else
9466 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9467 soname_spec='${libname}${release}${shared_ext}$major'
9468 dynamic_linker='NetBSD ld.elf_so'
9469 fi
9470 shlibpath_var=LD_LIBRARY_PATH
9471 shlibpath_overrides_runpath=yes
9472 hardcode_into_libs=yes
9473 ;;
9474
9475newsos6)
9476 version_type=linux
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9478 shlibpath_var=LD_LIBRARY_PATH
9479 shlibpath_overrides_runpath=yes
9480 ;;
9481
9482nto-qnx*)
9483 version_type=linux
9484 need_lib_prefix=no
9485 need_version=no
9486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9487 soname_spec='${libname}${release}${shared_ext}$major'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=yes
9490 ;;
9491
9492openbsd*)
9493 version_type=sunos
9494 sys_lib_dlsearch_path_spec="/usr/lib"
9495 need_lib_prefix=no
9496 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9497 case $host_os in
9498 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9499 *) need_version=no ;;
9500 esac
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9502 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9505 case $host_os in
9506 openbsd2.[89] | openbsd2.[89].*)
9507 shlibpath_overrides_runpath=no
9508 ;;
9509 *)
9510 shlibpath_overrides_runpath=yes
9511 ;;
9512 esac
9513 else
9514 shlibpath_overrides_runpath=yes
9515 fi
9516 ;;
9517
9518os2*)
9519 libname_spec='$name'
9520 shrext_cmds=".dll"
9521 need_lib_prefix=no
9522 library_names_spec='$libname${shared_ext} $libname.a'
9523 dynamic_linker='OS/2 ld.exe'
9524 shlibpath_var=LIBPATH
9525 ;;
9526
9527osf3* | osf4* | osf5*)
9528 version_type=osf
9529 need_lib_prefix=no
9530 need_version=no
9531 soname_spec='${libname}${release}${shared_ext}$major'
9532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9533 shlibpath_var=LD_LIBRARY_PATH
9534 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9535 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9536 ;;
9537
9538solaris*)
9539 version_type=linux
9540 need_lib_prefix=no
9541 need_version=no
9542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9543 soname_spec='${libname}${release}${shared_ext}$major'
9544 shlibpath_var=LD_LIBRARY_PATH
9545 shlibpath_overrides_runpath=yes
9546 hardcode_into_libs=yes
9547 # ldd complains unless libraries are executable
9548 postinstall_cmds='chmod +x $lib'
9549 ;;
9550
9551sunos4*)
9552 version_type=sunos
9553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9554 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9555 shlibpath_var=LD_LIBRARY_PATH
9556 shlibpath_overrides_runpath=yes
9557 if test "$with_gnu_ld" = yes; then
9558 need_lib_prefix=no
9559 fi
9560 need_version=yes
9561 ;;
9562
9563sysv4 | sysv4.3*)
9564 version_type=linux
9565 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9566 soname_spec='${libname}${release}${shared_ext}$major'
9567 shlibpath_var=LD_LIBRARY_PATH
9568 case $host_vendor in
9569 sni)
9570 shlibpath_overrides_runpath=no
9571 need_lib_prefix=no
9572 export_dynamic_flag_spec='${wl}-Blargedynsym'
9573 runpath_var=LD_RUN_PATH
9574 ;;
9575 siemens)
9576 need_lib_prefix=no
9577 ;;
9578 motorola)
9579 need_lib_prefix=no
9580 need_version=no
9581 shlibpath_overrides_runpath=no
9582 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9583 ;;
9584 esac
9585 ;;
9586
9587sysv4*MP*)
9588 if test -d /usr/nec ;then
9589 version_type=linux
9590 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9591 soname_spec='$libname${shared_ext}.$major'
9592 shlibpath_var=LD_LIBRARY_PATH
9593 fi
9594 ;;
9595
9596sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9597 version_type=freebsd-elf
9598 need_lib_prefix=no
9599 need_version=no
9600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9601 soname_spec='${libname}${release}${shared_ext}$major'
9602 shlibpath_var=LD_LIBRARY_PATH
9603 hardcode_into_libs=yes
9604 if test "$with_gnu_ld" = yes; then
9605 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9606 shlibpath_overrides_runpath=no
9607 else
9608 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9609 shlibpath_overrides_runpath=yes
9610 case $host_os in
9611 sco3.2v5*)
9612 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9613 ;;
9614 esac
9615 fi
9616 sys_lib_dlsearch_path_spec='/usr/lib'
9617 ;;
9618
9619uts4*)
9620 version_type=linux
9621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9622 soname_spec='${libname}${release}${shared_ext}$major'
9623 shlibpath_var=LD_LIBRARY_PATH
9624 ;;
9625
9626*)
9627 dynamic_linker=no
9628 ;;
9629esac
9630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9631$as_echo "$dynamic_linker" >&6; }
9632test "$dynamic_linker" = no && can_build_shared=no
9633
9634variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9635if test "$GCC" = yes; then
9636 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9637fi
9638
9639{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9640$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9641hardcode_action=
9642if test -n "$hardcode_libdir_flag_spec" || \
9643 test -n "$runpath_var" || \
9644 test "X$hardcode_automatic" = "Xyes" ; then
9645
9646 # We can hardcode non-existant directories.
9647 if test "$hardcode_direct" != no &&
9648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9649 # have to relink, otherwise we might link with an installed library
9650 # when we should be linking with a yet-to-be-installed one
9651 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9652 test "$hardcode_minus_L" != no; then
9653 # Linking always hardcodes the temporary library directory.
9654 hardcode_action=relink
9655 else
9656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9657 hardcode_action=immediate
9658 fi
9659else
9660 # We cannot hardcode anything, or else we can only hardcode existing
9661 # directories.
9662 hardcode_action=unsupported
9663fi
9664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9665$as_echo "$hardcode_action" >&6; }
9666
9667if test "$hardcode_action" = relink; then
9668 # Fast installation is not supported
9669 enable_fast_install=no
9670elif test "$shlibpath_overrides_runpath" = yes ||
9671 test "$enable_shared" = no; then
9672 # Fast installation is not necessary
9673 enable_fast_install=needless
9674fi
9675
9676striplib=
9677old_striplib=
9678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9679$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9680if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9681 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9682 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9684$as_echo "yes" >&6; }
9685else
9686# FIXME - insert some real tests, host_os isn't really good enough
9687 case $host_os in
9688 darwin*)
9689 if test -n "$STRIP" ; then
9690 striplib="$STRIP -x"
9691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9692$as_echo "yes" >&6; }
9693 else
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9695$as_echo "no" >&6; }
9696fi
9697 ;;
9698 *)
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700$as_echo "no" >&6; }
9701 ;;
9702 esac
9703fi
9704
9705if test "x$enable_dlopen" != xyes; then
9706 enable_dlopen=unknown
9707 enable_dlopen_self=unknown
9708 enable_dlopen_self_static=unknown
9709else
9710 lt_cv_dlopen=no
9711 lt_cv_dlopen_libs=
9712
9713 case $host_os in
9714 beos*)
9715 lt_cv_dlopen="load_add_on"
9716 lt_cv_dlopen_libs=
9717 lt_cv_dlopen_self=yes
9718 ;;
9719
9720 mingw* | pw32*)
9721 lt_cv_dlopen="LoadLibrary"
9722 lt_cv_dlopen_libs=
9723 ;;
9724
9725 cygwin*)
9726 lt_cv_dlopen="dlopen"
9727 lt_cv_dlopen_libs=
9728 ;;
9729
9730 darwin*)
9731 # if libdl is installed we need to link against it
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9733$as_echo_n "checking for dlopen in -ldl... " >&6; }
9734if ${ac_cv_lib_dl_dlopen+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736else
9737 ac_check_lib_save_LIBS=$LIBS
9738LIBS="-ldl $LIBS"
9739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9740/* end confdefs.h. */
9741
9742/* Override any GCC internal prototype to avoid an error.
9743 Use char because int might match the return type of a GCC
9744 builtin and then its argument prototype would still apply. */
9745#ifdef __cplusplus
9746extern "C"
9747#endif
9748char dlopen ();
9749int
9750main ()
9751{
9752return dlopen ();
9753 ;
9754 return 0;
9755}
9756_ACEOF
9757if ac_fn_c_try_link "$LINENO"; then :
9758 ac_cv_lib_dl_dlopen=yes
9759else
9760 ac_cv_lib_dl_dlopen=no
9761fi
9762rm -f core conftest.err conftest.$ac_objext \
9763 conftest$ac_exeext conftest.$ac_ext
9764LIBS=$ac_check_lib_save_LIBS
9765fi
9766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9767$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9768if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9769 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9770else
9771
9772 lt_cv_dlopen="dyld"
9773 lt_cv_dlopen_libs=
9774 lt_cv_dlopen_self=yes
9775
9776fi
9777
9778 ;;
9779
9780 *)
9781 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9782if test "x$ac_cv_func_shl_load" = xyes; then :
9783 lt_cv_dlopen="shl_load"
9784else
9785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9786$as_echo_n "checking for shl_load in -ldld... " >&6; }
9787if ${ac_cv_lib_dld_shl_load+:} false; then :
9788 $as_echo_n "(cached) " >&6
9789else
9790 ac_check_lib_save_LIBS=$LIBS
9791LIBS="-ldld $LIBS"
9792cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9793/* end confdefs.h. */
9794
9795/* Override any GCC internal prototype to avoid an error.
9796 Use char because int might match the return type of a GCC
9797 builtin and then its argument prototype would still apply. */
9798#ifdef __cplusplus
9799extern "C"
9800#endif
9801char shl_load ();
9802int
9803main ()
9804{
9805return shl_load ();
9806 ;
9807 return 0;
9808}
9809_ACEOF
9810if ac_fn_c_try_link "$LINENO"; then :
9811 ac_cv_lib_dld_shl_load=yes
9812else
9813 ac_cv_lib_dld_shl_load=no
9814fi
9815rm -f core conftest.err conftest.$ac_objext \
9816 conftest$ac_exeext conftest.$ac_ext
9817LIBS=$ac_check_lib_save_LIBS
9818fi
9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9820$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9821if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9822 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9823else
9824 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9825if test "x$ac_cv_func_dlopen" = xyes; then :
9826 lt_cv_dlopen="dlopen"
9827else
9828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9829$as_echo_n "checking for dlopen in -ldl... " >&6; }
9830if ${ac_cv_lib_dl_dlopen+:} false; then :
9831 $as_echo_n "(cached) " >&6
9832else
9833 ac_check_lib_save_LIBS=$LIBS
9834LIBS="-ldl $LIBS"
9835cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9836/* end confdefs.h. */
9837
9838/* Override any GCC internal prototype to avoid an error.
9839 Use char because int might match the return type of a GCC
9840 builtin and then its argument prototype would still apply. */
9841#ifdef __cplusplus
9842extern "C"
9843#endif
9844char dlopen ();
9845int
9846main ()
9847{
9848return dlopen ();
9849 ;
9850 return 0;
9851}
9852_ACEOF
9853if ac_fn_c_try_link "$LINENO"; then :
9854 ac_cv_lib_dl_dlopen=yes
9855else
9856 ac_cv_lib_dl_dlopen=no
9857fi
9858rm -f core conftest.err conftest.$ac_objext \
9859 conftest$ac_exeext conftest.$ac_ext
9860LIBS=$ac_check_lib_save_LIBS
9861fi
9862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9863$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9864if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9865 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9866else
9867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9868$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9869if ${ac_cv_lib_svld_dlopen+:} false; then :
9870 $as_echo_n "(cached) " >&6
9871else
9872 ac_check_lib_save_LIBS=$LIBS
9873LIBS="-lsvld $LIBS"
9874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9875/* end confdefs.h. */
9876
9877/* Override any GCC internal prototype to avoid an error.
9878 Use char because int might match the return type of a GCC
9879 builtin and then its argument prototype would still apply. */
9880#ifdef __cplusplus
9881extern "C"
9882#endif
9883char dlopen ();
9884int
9885main ()
9886{
9887return dlopen ();
9888 ;
9889 return 0;
9890}
9891_ACEOF
9892if ac_fn_c_try_link "$LINENO"; then :
9893 ac_cv_lib_svld_dlopen=yes
9894else
9895 ac_cv_lib_svld_dlopen=no
9896fi
9897rm -f core conftest.err conftest.$ac_objext \
9898 conftest$ac_exeext conftest.$ac_ext
9899LIBS=$ac_check_lib_save_LIBS
9900fi
9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9902$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9903if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9904 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9905else
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9907$as_echo_n "checking for dld_link in -ldld... " >&6; }
9908if ${ac_cv_lib_dld_dld_link+:} false; then :
9909 $as_echo_n "(cached) " >&6
9910else
9911 ac_check_lib_save_LIBS=$LIBS
9912LIBS="-ldld $LIBS"
9913cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9914/* end confdefs.h. */
9915
9916/* Override any GCC internal prototype to avoid an error.
9917 Use char because int might match the return type of a GCC
9918 builtin and then its argument prototype would still apply. */
9919#ifdef __cplusplus
9920extern "C"
9921#endif
9922char dld_link ();
9923int
9924main ()
9925{
9926return dld_link ();
9927 ;
9928 return 0;
9929}
9930_ACEOF
9931if ac_fn_c_try_link "$LINENO"; then :
9932 ac_cv_lib_dld_dld_link=yes
9933else
9934 ac_cv_lib_dld_dld_link=no
9935fi
9936rm -f core conftest.err conftest.$ac_objext \
9937 conftest$ac_exeext conftest.$ac_ext
9938LIBS=$ac_check_lib_save_LIBS
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9941$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9942if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9943 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9944fi
9945
9946
9947fi
9948
9949
9950fi
9951
9952
9953fi
9954
9955
9956fi
9957
9958
9959fi
9960
9961 ;;
9962 esac
9963
9964 if test "x$lt_cv_dlopen" != xno; then
9965 enable_dlopen=yes
9966 else
9967 enable_dlopen=no
9968 fi
9969
9970 case $lt_cv_dlopen in
9971 dlopen)
9972 save_CPPFLAGS="$CPPFLAGS"
9973 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9974
9975 save_LDFLAGS="$LDFLAGS"
9976 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9977
9978 save_LIBS="$LIBS"
9979 LIBS="$lt_cv_dlopen_libs $LIBS"
9980
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9982$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9983if ${lt_cv_dlopen_self+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985else
9986 if test "$cross_compiling" = yes; then :
9987 lt_cv_dlopen_self=cross
9988else
9989 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9990 lt_status=$lt_dlunknown
9991 cat > conftest.$ac_ext <<EOF
9992#line 9992 "configure"
9993#include "confdefs.h"
9994
9995#if HAVE_DLFCN_H
9996#include <dlfcn.h>
9997#endif
9998
9999#include <stdio.h>
10000
10001#ifdef RTLD_GLOBAL
10002# define LT_DLGLOBAL RTLD_GLOBAL
10003#else
10004# ifdef DL_GLOBAL
10005# define LT_DLGLOBAL DL_GLOBAL
10006# else
10007# define LT_DLGLOBAL 0
10008# endif
10009#endif
10010
10011/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10012 find out it does not work in some platform. */
10013#ifndef LT_DLLAZY_OR_NOW
10014# ifdef RTLD_LAZY
10015# define LT_DLLAZY_OR_NOW RTLD_LAZY
10016# else
10017# ifdef DL_LAZY
10018# define LT_DLLAZY_OR_NOW DL_LAZY
10019# else
10020# ifdef RTLD_NOW
10021# define LT_DLLAZY_OR_NOW RTLD_NOW
10022# else
10023# ifdef DL_NOW
10024# define LT_DLLAZY_OR_NOW DL_NOW
10025# else
10026# define LT_DLLAZY_OR_NOW 0
10027# endif
10028# endif
10029# endif
10030# endif
10031#endif
10032
10033#ifdef __cplusplus
10034extern "C" void exit (int);
10035#endif
10036
10037void fnord() { int i=42;}
10038int main ()
10039{
10040 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10041 int status = $lt_dlunknown;
10042
10043 if (self)
10044 {
10045 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10046 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10047 /* dlclose (self); */
10048 }
10049 else
10050 puts (dlerror ());
10051
10052 exit (status);
10053}
10054EOF
10055 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10056 (eval $ac_link) 2>&5
10057 ac_status=$?
10058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10059 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10060 (./conftest; exit; ) >&5 2>/dev/null
10061 lt_status=$?
10062 case x$lt_status in
10063 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10064 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10065 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10066 esac
10067 else :
10068 # compilation failed
10069 lt_cv_dlopen_self=no
10070 fi
10071fi
10072rm -fr conftest*
10073
10074
10075fi
10076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10077$as_echo "$lt_cv_dlopen_self" >&6; }
10078
10079 if test "x$lt_cv_dlopen_self" = xyes; then
10080 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10082$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10083if ${lt_cv_dlopen_self_static+:} false; then :
10084 $as_echo_n "(cached) " >&6
10085else
10086 if test "$cross_compiling" = yes; then :
10087 lt_cv_dlopen_self_static=cross
10088else
10089 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10090 lt_status=$lt_dlunknown
10091 cat > conftest.$ac_ext <<EOF
10092#line 10092 "configure"
10093#include "confdefs.h"
10094
10095#if HAVE_DLFCN_H
10096#include <dlfcn.h>
10097#endif
10098
10099#include <stdio.h>
10100
10101#ifdef RTLD_GLOBAL
10102# define LT_DLGLOBAL RTLD_GLOBAL
10103#else
10104# ifdef DL_GLOBAL
10105# define LT_DLGLOBAL DL_GLOBAL
10106# else
10107# define LT_DLGLOBAL 0
10108# endif
10109#endif
10110
10111/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10112 find out it does not work in some platform. */
10113#ifndef LT_DLLAZY_OR_NOW
10114# ifdef RTLD_LAZY
10115# define LT_DLLAZY_OR_NOW RTLD_LAZY
10116# else
10117# ifdef DL_LAZY
10118# define LT_DLLAZY_OR_NOW DL_LAZY
10119# else
10120# ifdef RTLD_NOW
10121# define LT_DLLAZY_OR_NOW RTLD_NOW
10122# else
10123# ifdef DL_NOW
10124# define LT_DLLAZY_OR_NOW DL_NOW
10125# else
10126# define LT_DLLAZY_OR_NOW 0
10127# endif
10128# endif
10129# endif
10130# endif
10131#endif
10132
10133#ifdef __cplusplus
10134extern "C" void exit (int);
10135#endif
10136
10137void fnord() { int i=42;}
10138int main ()
10139{
10140 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10141 int status = $lt_dlunknown;
10142
10143 if (self)
10144 {
10145 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10146 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10147 /* dlclose (self); */
10148 }
10149 else
10150 puts (dlerror ());
10151
10152 exit (status);
10153}
10154EOF
10155 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10156 (eval $ac_link) 2>&5
10157 ac_status=$?
10158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10159 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10160 (./conftest; exit; ) >&5 2>/dev/null
10161 lt_status=$?
10162 case x$lt_status in
10163 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10164 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10165 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10166 esac
10167 else :
10168 # compilation failed
10169 lt_cv_dlopen_self_static=no
10170 fi
10171fi
10172rm -fr conftest*
10173
10174
10175fi
10176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10177$as_echo "$lt_cv_dlopen_self_static" >&6; }
10178 fi
10179
10180 CPPFLAGS="$save_CPPFLAGS"
10181 LDFLAGS="$save_LDFLAGS"
10182 LIBS="$save_LIBS"
10183 ;;
10184 esac
10185
10186 case $lt_cv_dlopen_self in
10187 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10188 *) enable_dlopen_self=unknown ;;
10189 esac
10190
10191 case $lt_cv_dlopen_self_static in
10192 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10193 *) enable_dlopen_self_static=unknown ;;
10194 esac
10195fi
10196
10197
10198# Report which library types will actually be built
10199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10200$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10202$as_echo "$can_build_shared" >&6; }
10203
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10205$as_echo_n "checking whether to build shared libraries... " >&6; }
10206test "$can_build_shared" = "no" && enable_shared=no
10207
10208# On AIX, shared libraries and static libraries use the same namespace, and
10209# are all built from PIC.
10210case $host_os in
10211aix3*)
10212 test "$enable_shared" = yes && enable_static=no
10213 if test -n "$RANLIB"; then
10214 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10215 postinstall_cmds='$RANLIB $lib'
10216 fi
10217 ;;
10218
10219aix4* | aix5*)
10220 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10221 test "$enable_shared" = yes && enable_static=no
10222 fi
10223 ;;
10224esac
10225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10226$as_echo "$enable_shared" >&6; }
10227
10228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10229$as_echo_n "checking whether to build static libraries... " >&6; }
10230# Make sure either enable_shared or enable_static is yes.
10231test "$enable_shared" = yes || enable_static=yes
10232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10233$as_echo "$enable_static" >&6; }
10234
10235# The else clause should only fire when bootstrapping the
10236# libtool distribution, otherwise you forgot to ship ltmain.sh
10237# with your package, and you will get complaints that there are
10238# no rules to generate ltmain.sh.
10239if test -f "$ltmain"; then
10240 # See if we are running on zsh, and set the options which allow our commands through
10241 # without removal of \ escapes.
10242 if test -n "${ZSH_VERSION+set}" ; then
10243 setopt NO_GLOB_SUBST
10244 fi
10245 # Now quote all the things that may contain metacharacters while being
10246 # careful not to overquote the AC_SUBSTed values. We take copies of the
10247 # variables and quote the copies for generation of the libtool script.
10248 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10249 SED SHELL STRIP \
10250 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10251 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10252 deplibs_check_method reload_flag reload_cmds need_locks \
10253 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10254 lt_cv_sys_global_symbol_to_c_name_address \
10255 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10256 old_postinstall_cmds old_postuninstall_cmds \
10257 compiler \
10258 CC \
10259 LD \
10260 lt_prog_compiler_wl \
10261 lt_prog_compiler_pic \
10262 lt_prog_compiler_static \
10263 lt_prog_compiler_no_builtin_flag \
10264 export_dynamic_flag_spec \
10265 thread_safe_flag_spec \
10266 whole_archive_flag_spec \
10267 enable_shared_with_static_runtimes \
10268 old_archive_cmds \
10269 old_archive_from_new_cmds \
10270 predep_objects \
10271 postdep_objects \
10272 predeps \
10273 postdeps \
10274 compiler_lib_search_path \
10275 archive_cmds \
10276 archive_expsym_cmds \
10277 postinstall_cmds \
10278 postuninstall_cmds \
10279 old_archive_from_expsyms_cmds \
10280 allow_undefined_flag \
10281 no_undefined_flag \
10282 export_symbols_cmds \
10283 hardcode_libdir_flag_spec \
10284 hardcode_libdir_flag_spec_ld \
10285 hardcode_libdir_separator \
10286 hardcode_automatic \
10287 module_cmds \
10288 module_expsym_cmds \
10289 lt_cv_prog_compiler_c_o \
10290 exclude_expsyms \
10291 include_expsyms; do
10292
10293 case $var in
10294 old_archive_cmds | \
10295 old_archive_from_new_cmds | \
10296 archive_cmds | \
10297 archive_expsym_cmds | \
10298 module_cmds | \
10299 module_expsym_cmds | \
10300 old_archive_from_expsyms_cmds | \
10301 export_symbols_cmds | \
10302 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10303 postinstall_cmds | postuninstall_cmds | \
10304 old_postinstall_cmds | old_postuninstall_cmds | \
10305 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10306 # Double-quote double-evaled strings.
10307 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10308 ;;
10309 *)
10310 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10311 ;;
10312 esac
10313 done
10314
10315 case $lt_echo in
10316 *'\$0 --fallback-echo"')
10317 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10318 ;;
10319 esac
10320
10321cfgfile="${ofile}T"
10322 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10323 $rm -f "$cfgfile"
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10325$as_echo "$as_me: creating $ofile" >&6;}
10326
10327 cat <<__EOF__ >> "$cfgfile"
10328#! $SHELL
10329
10330# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10331# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10332# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10333#
10334# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10335# Free Software Foundation, Inc.
10336#
10337# This file is part of GNU Libtool:
10338# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10339#
10340# This program is free software; you can redistribute it and/or modify
10341# it under the terms of the GNU General Public License as published by
10342# the Free Software Foundation; either version 2 of the License, or
10343# (at your option) any later version.
10344#
10345# This program is distributed in the hope that it will be useful, but
10346# WITHOUT ANY WARRANTY; without even the implied warranty of
10347# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10348# General Public License for more details.
10349#
10350# You should have received a copy of the GNU General Public License
10351# along with this program; if not, write to the Free Software
10352# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10353#
10354# As a special exception to the GNU General Public License, if you
10355# distribute this file as part of a program that contains a
10356# configuration script generated by Autoconf, you may include it under
10357# the same distribution terms that you use for the rest of that program.
10358
10359# A sed program that does not truncate output.
10360SED=$lt_SED
10361
10362# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10363Xsed="$SED -e 1s/^X//"
10364
10365# The HP-UX ksh and POSIX shell print the target directory to stdout
10366# if CDPATH is set.
10367(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10368
10369# The names of the tagged configurations supported by this script.
10370available_tags=
10371
10372# ### BEGIN LIBTOOL CONFIG
10373
10374# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10375
10376# Shell to use when invoking shell scripts.
10377SHELL=$lt_SHELL
10378
10379# Whether or not to build shared libraries.
10380build_libtool_libs=$enable_shared
10381
10382# Whether or not to build static libraries.
10383build_old_libs=$enable_static
10384
10385# Whether or not to add -lc for building shared libraries.
10386build_libtool_need_lc=$archive_cmds_need_lc
10387
10388# Whether or not to disallow shared libs when runtime libs are static
10389allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10390
10391# Whether or not to optimize for fast installation.
10392fast_install=$enable_fast_install
10393
10394# The host system.
10395host_alias=$host_alias
10396host=$host
10397host_os=$host_os
10398
10399# The build system.
10400build_alias=$build_alias
10401build=$build
10402build_os=$build_os
10403
10404# An echo program that does not interpret backslashes.
10405echo=$lt_echo
10406
10407# The archiver.
10408AR=$lt_AR
10409AR_FLAGS=$lt_AR_FLAGS
10410
10411# A C compiler.
10412LTCC=$lt_LTCC
10413
10414# LTCC compiler flags.
10415LTCFLAGS=$lt_LTCFLAGS
10416
10417# A language-specific compiler.
10418CC=$lt_compiler
10419
10420# Is the compiler the GNU C compiler?
10421with_gcc=$GCC
10422
10423# An ERE matcher.
10424EGREP=$lt_EGREP
10425
10426# The linker used to build libraries.
10427LD=$lt_LD
10428
10429# Whether we need hard or soft links.
10430LN_S=$lt_LN_S
10431
10432# A BSD-compatible nm program.
10433NM=$lt_NM
10434
10435# A symbol stripping program
10436STRIP=$lt_STRIP
10437
10438# Used to examine libraries when file_magic_cmd begins "file"
10439MAGIC_CMD=$MAGIC_CMD
10440
10441# Used on cygwin: DLL creation program.
10442DLLTOOL="$DLLTOOL"
10443
10444# Used on cygwin: object dumper.
10445OBJDUMP="$OBJDUMP"
10446
10447# Used on cygwin: assembler.
10448AS="$AS"
10449
10450# The name of the directory that contains temporary libtool files.
10451objdir=$objdir
10452
10453# How to create reloadable object files.
10454reload_flag=$lt_reload_flag
10455reload_cmds=$lt_reload_cmds
10456
10457# How to pass a linker flag through the compiler.
10458wl=$lt_lt_prog_compiler_wl
10459
10460# Object file suffix (normally "o").
10461objext="$ac_objext"
10462
10463# Old archive suffix (normally "a").
10464libext="$libext"
10465
10466# Shared library suffix (normally ".so").
10467shrext_cmds='$shrext_cmds'
10468
10469# Executable file suffix (normally "").
10470exeext="$exeext"
10471
10472# Additional compiler flags for building library objects.
10473pic_flag=$lt_lt_prog_compiler_pic
10474pic_mode=$pic_mode
10475
10476# What is the maximum length of a command?
10477max_cmd_len=$lt_cv_sys_max_cmd_len
10478
10479# Does compiler simultaneously support -c and -o options?
10480compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10481
10482# Must we lock files when doing compilation?
10483need_locks=$lt_need_locks
10484
10485# Do we need the lib prefix for modules?
10486need_lib_prefix=$need_lib_prefix
10487
10488# Do we need a version for libraries?
10489need_version=$need_version
10490
10491# Whether dlopen is supported.
10492dlopen_support=$enable_dlopen
10493
10494# Whether dlopen of programs is supported.
10495dlopen_self=$enable_dlopen_self
10496
10497# Whether dlopen of statically linked programs is supported.
10498dlopen_self_static=$enable_dlopen_self_static
10499
10500# Compiler flag to prevent dynamic linking.
10501link_static_flag=$lt_lt_prog_compiler_static
10502
10503# Compiler flag to turn off builtin functions.
10504no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10505
10506# Compiler flag to allow reflexive dlopens.
10507export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10508
10509# Compiler flag to generate shared objects directly from archives.
10510whole_archive_flag_spec=$lt_whole_archive_flag_spec
10511
10512# Compiler flag to generate thread-safe objects.
10513thread_safe_flag_spec=$lt_thread_safe_flag_spec
10514
10515# Library versioning type.
10516version_type=$version_type
10517
10518# Format of library name prefix.
10519libname_spec=$lt_libname_spec
10520
10521# List of archive names. First name is the real one, the rest are links.
10522# The last name is the one that the linker finds with -lNAME.
10523library_names_spec=$lt_library_names_spec
10524
10525# The coded name of the library, if different from the real name.
10526soname_spec=$lt_soname_spec
10527
10528# Commands used to build and install an old-style archive.
10529RANLIB=$lt_RANLIB
10530old_archive_cmds=$lt_old_archive_cmds
10531old_postinstall_cmds=$lt_old_postinstall_cmds
10532old_postuninstall_cmds=$lt_old_postuninstall_cmds
10533
10534# Create an old-style archive from a shared archive.
10535old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10536
10537# Create a temporary old-style archive to link instead of a shared archive.
10538old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10539
10540# Commands used to build and install a shared archive.
10541archive_cmds=$lt_archive_cmds
10542archive_expsym_cmds=$lt_archive_expsym_cmds
10543postinstall_cmds=$lt_postinstall_cmds
10544postuninstall_cmds=$lt_postuninstall_cmds
10545
10546# Commands used to build a loadable module (assumed same as above if empty)
10547module_cmds=$lt_module_cmds
10548module_expsym_cmds=$lt_module_expsym_cmds
10549
10550# Commands to strip libraries.
10551old_striplib=$lt_old_striplib
10552striplib=$lt_striplib
10553
10554# Dependencies to place before the objects being linked to create a
10555# shared library.
10556predep_objects=$lt_predep_objects
10557
10558# Dependencies to place after the objects being linked to create a
10559# shared library.
10560postdep_objects=$lt_postdep_objects
10561
10562# Dependencies to place before the objects being linked to create a
10563# shared library.
10564predeps=$lt_predeps
10565
10566# Dependencies to place after the objects being linked to create a
10567# shared library.
10568postdeps=$lt_postdeps
10569
10570# The library search path used internally by the compiler when linking
10571# a shared library.
10572compiler_lib_search_path=$lt_compiler_lib_search_path
10573
10574# Method to check whether dependent libraries are shared objects.
10575deplibs_check_method=$lt_deplibs_check_method
10576
10577# Command to use when deplibs_check_method == file_magic.
10578file_magic_cmd=$lt_file_magic_cmd
10579
10580# Flag that allows shared libraries with undefined symbols to be built.
10581allow_undefined_flag=$lt_allow_undefined_flag
10582
10583# Flag that forces no undefined symbols.
10584no_undefined_flag=$lt_no_undefined_flag
10585
10586# Commands used to finish a libtool library installation in a directory.
10587finish_cmds=$lt_finish_cmds
10588
10589# Same as above, but a single script fragment to be evaled but not shown.
10590finish_eval=$lt_finish_eval
10591
10592# Take the output of nm and produce a listing of raw symbols and C names.
10593global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10594
10595# Transform the output of nm in a proper C declaration
10596global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10597
10598# Transform the output of nm in a C name address pair
10599global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10600
10601# This is the shared library runtime path variable.
10602runpath_var=$runpath_var
10603
10604# This is the shared library path variable.
10605shlibpath_var=$shlibpath_var
10606
10607# Is shlibpath searched before the hard-coded library search path?
10608shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10609
10610# How to hardcode a shared library path into an executable.
10611hardcode_action=$hardcode_action
10612
10613# Whether we should hardcode library paths into libraries.
10614hardcode_into_libs=$hardcode_into_libs
10615
10616# Flag to hardcode \$libdir into a binary during linking.
10617# This must work even if \$libdir does not exist.
10618hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10619
10620# If ld is used when linking, flag to hardcode \$libdir into
10621# a binary during linking. This must work even if \$libdir does
10622# not exist.
10623hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10624
10625# Whether we need a single -rpath flag with a separated argument.
10626hardcode_libdir_separator=$lt_hardcode_libdir_separator
10627
10628# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10629# resulting binary.
10630hardcode_direct=$hardcode_direct
10631
10632# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10633# resulting binary.
10634hardcode_minus_L=$hardcode_minus_L
10635
10636# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10637# the resulting binary.
10638hardcode_shlibpath_var=$hardcode_shlibpath_var
10639
10640# Set to yes if building a shared library automatically hardcodes DIR into the library
10641# and all subsequent libraries and executables linked against it.
10642hardcode_automatic=$hardcode_automatic
10643
10644# Variables whose values should be saved in libtool wrapper scripts and
10645# restored at relink time.
10646variables_saved_for_relink="$variables_saved_for_relink"
10647
10648# Whether libtool must link a program against all its dependency libraries.
10649link_all_deplibs=$link_all_deplibs
10650
10651# Compile-time system search path for libraries
10652sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10653
10654# Run-time system search path for libraries
10655sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10656
10657# Fix the shell variable \$srcfile for the compiler.
10658fix_srcfile_path="$fix_srcfile_path"
10659
10660# Set to yes if exported symbols are required.
10661always_export_symbols=$always_export_symbols
10662
10663# The commands to list exported symbols.
10664export_symbols_cmds=$lt_export_symbols_cmds
10665
10666# The commands to extract the exported symbol list from a shared archive.
10667extract_expsyms_cmds=$lt_extract_expsyms_cmds
10668
10669# Symbols that should not be listed in the preloaded symbols.
10670exclude_expsyms=$lt_exclude_expsyms
10671
10672# Symbols that must always be exported.
10673include_expsyms=$lt_include_expsyms
10674
10675# ### END LIBTOOL CONFIG
10676
10677__EOF__
10678
10679
10680 case $host_os in
10681 aix3*)
10682 cat <<\EOF >> "$cfgfile"
10683
10684# AIX sometimes has problems with the GCC collect2 program. For some
10685# reason, if we set the COLLECT_NAMES environment variable, the problems
10686# vanish in a puff of smoke.
10687if test "X${COLLECT_NAMES+set}" != Xset; then
10688 COLLECT_NAMES=
10689 export COLLECT_NAMES
10690fi
10691EOF
10692 ;;
10693 esac
10694
10695 # We use sed instead of cat because bash on DJGPP gets confused if
10696 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10697 # text mode, it properly converts lines to CR/LF. This bash problem
10698 # is reportedly fixed, but why not run on old versions too?
10699 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10700
10701 mv -f "$cfgfile" "$ofile" || \
10702 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10703 chmod +x "$ofile"
10704
10705else
10706 # If there is no Makefile yet, we rely on a make rule to execute
10707 # `config.status --recheck' to rerun these tests and create the
10708 # libtool script then.
10709 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10710 if test -f "$ltmain_in"; then
10711 test -f Makefile && make "$ltmain"
10712 fi
10713fi
10714
10715
10716ac_ext=c
10717ac_cpp='$CPP $CPPFLAGS'
10718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10720ac_compiler_gnu=$ac_cv_c_compiler_gnu
10721
10722CC="$lt_save_CC"
10723
10724
10725# Check whether --with-tags was given.
10726if test "${with_tags+set}" = set; then :
10727 withval=$with_tags; tagnames="$withval"
10728fi
10729
10730
10731if test -f "$ltmain" && test -n "$tagnames"; then
10732 if test ! -f "${ofile}"; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10734$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10735 fi
10736
10737 if test -z "$LTCC"; then
10738 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10739 if test -z "$LTCC"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10741$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10742 else
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10744$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10745 fi
10746 fi
10747 if test -z "$LTCFLAGS"; then
10748 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10749 fi
10750
10751 # Extract list of available tagged configurations in $ofile.
10752 # Note that this assumes the entire list is on one line.
10753 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10754
10755 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10756 for tagname in $tagnames; do
10757 IFS="$lt_save_ifs"
10758 # Check whether tagname contains only valid characters
10759 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10760 "") ;;
10761 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10762 ;;
10763 esac
10764
10765 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10766 then
10767 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10768 fi
10769
10770 # Update the list of available tags.
10771 if test -n "$tagname"; then
10772 echo appending configuration tag \"$tagname\" to $ofile
10773
10774 case $tagname in
10775 CXX)
10776 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10777 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10778 (test "X$CXX" != "Xg++"))) ; then
10779 ac_ext=cpp
10780ac_cpp='$CXXCPP $CPPFLAGS'
10781ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10782ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10783ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10784
10785
10786
10787
10788archive_cmds_need_lc_CXX=no
10789allow_undefined_flag_CXX=
10790always_export_symbols_CXX=no
10791archive_expsym_cmds_CXX=
10792export_dynamic_flag_spec_CXX=
10793hardcode_direct_CXX=no
10794hardcode_libdir_flag_spec_CXX=
10795hardcode_libdir_flag_spec_ld_CXX=
10796hardcode_libdir_separator_CXX=
10797hardcode_minus_L_CXX=no
10798hardcode_shlibpath_var_CXX=unsupported
10799hardcode_automatic_CXX=no
10800module_cmds_CXX=
10801module_expsym_cmds_CXX=
10802link_all_deplibs_CXX=unknown
10803old_archive_cmds_CXX=$old_archive_cmds
10804no_undefined_flag_CXX=
10805whole_archive_flag_spec_CXX=
10806enable_shared_with_static_runtimes_CXX=no
10807
10808# Dependencies to place before and after the object being linked:
10809predep_objects_CXX=
10810postdep_objects_CXX=
10811predeps_CXX=
10812postdeps_CXX=
10813compiler_lib_search_path_CXX=
10814
10815# Source file extension for C++ test sources.
10816ac_ext=cpp
10817
10818# Object file extension for compiled C++ test sources.
10819objext=o
10820objext_CXX=$objext
10821
10822# Code to be used in simple compile tests
10823lt_simple_compile_test_code="int some_variable = 0;\n"
10824
10825# Code to be used in simple link tests
10826lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10827
10828# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10829
10830# If no C compiler was specified, use CC.
10831LTCC=${LTCC-"$CC"}
10832
10833# If no C compiler flags were specified, use CFLAGS.
10834LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10835
10836# Allow CC to be a program name with arguments.
10837compiler=$CC
10838
10839
10840# save warnings/boilerplate of simple test code
10841ac_outfile=conftest.$ac_objext
10842printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10843eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10844_lt_compiler_boilerplate=`cat conftest.err`
10845$rm conftest*
10846
10847ac_outfile=conftest.$ac_objext
10848printf "$lt_simple_link_test_code" >conftest.$ac_ext
10849eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10850_lt_linker_boilerplate=`cat conftest.err`
10851$rm conftest*
10852
10853
10854# Allow CC to be a program name with arguments.
10855lt_save_CC=$CC
10856lt_save_LD=$LD
10857lt_save_GCC=$GCC
10858GCC=$GXX
10859lt_save_with_gnu_ld=$with_gnu_ld
10860lt_save_path_LD=$lt_cv_path_LD
10861if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10862 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10863else
10864 $as_unset lt_cv_prog_gnu_ld
10865fi
10866if test -n "${lt_cv_path_LDCXX+set}"; then
10867 lt_cv_path_LD=$lt_cv_path_LDCXX
10868else
10869 $as_unset lt_cv_path_LD
10870fi
10871test -z "${LDCXX+set}" || LD=$LDCXX
10872CC=${CXX-"c++"}
10873compiler=$CC
10874compiler_CXX=$CC
10875for cc_temp in $compiler""; do
10876 case $cc_temp in
10877 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10878 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10879 \-*) ;;
10880 *) break;;
10881 esac
10882done
10883cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10884
10885
10886# We don't want -fno-exception wen compiling C++ code, so set the
10887# no_builtin_flag separately
10888if test "$GXX" = yes; then
10889 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10890else
10891 lt_prog_compiler_no_builtin_flag_CXX=
10892fi
10893
10894if test "$GXX" = yes; then
10895 # Set up default GNU C++ configuration
10896
10897
10898# Check whether --with-gnu-ld was given.
10899if test "${with_gnu_ld+set}" = set; then :
10900 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10901else
10902 with_gnu_ld=no
10903fi
10904
10905ac_prog=ld
10906if test "$GCC" = yes; then
10907 # Check if gcc -print-prog-name=ld gives a path.
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10909$as_echo_n "checking for ld used by $CC... " >&6; }
10910 case $host in
10911 *-*-mingw*)
10912 # gcc leaves a trailing carriage return which upsets mingw
10913 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10914 *)
10915 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10916 esac
10917 case $ac_prog in
10918 # Accept absolute paths.
10919 [\\/]* | ?:[\\/]*)
10920 re_direlt='/[^/][^/]*/\.\./'
10921 # Canonicalize the pathname of ld
10922 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10923 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10924 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10925 done
10926 test -z "$LD" && LD="$ac_prog"
10927 ;;
10928 "")
10929 # If it fails, then pretend we aren't using GCC.
10930 ac_prog=ld
10931 ;;
10932 *)
10933 # If it is relative, then search for the first ld in PATH.
10934 with_gnu_ld=unknown
10935 ;;
10936 esac
10937elif test "$with_gnu_ld" = yes; then
10938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10939$as_echo_n "checking for GNU ld... " >&6; }
10940else
10941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10942$as_echo_n "checking for non-GNU ld... " >&6; }
10943fi
10944if ${lt_cv_path_LD+:} false; then :
10945 $as_echo_n "(cached) " >&6
10946else
10947 if test -z "$LD"; then
10948 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10949 for ac_dir in $PATH; do
10950 IFS="$lt_save_ifs"
10951 test -z "$ac_dir" && ac_dir=.
10952 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10953 lt_cv_path_LD="$ac_dir/$ac_prog"
10954 # Check to see if the program is GNU ld. I'd rather use --version,
10955 # but apparently some variants of GNU ld only accept -v.
10956 # Break only if it was the GNU/non-GNU ld that we prefer.
10957 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10958 *GNU* | *'with BFD'*)
10959 test "$with_gnu_ld" != no && break
10960 ;;
10961 *)
10962 test "$with_gnu_ld" != yes && break
10963 ;;
10964 esac
10965 fi
10966 done
10967 IFS="$lt_save_ifs"
10968else
10969 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10970fi
10971fi
10972
10973LD="$lt_cv_path_LD"
10974if test -n "$LD"; then
10975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10976$as_echo "$LD" >&6; }
10977else
10978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10979$as_echo "no" >&6; }
10980fi
10981test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10983$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10984if ${lt_cv_prog_gnu_ld+:} false; then :
10985 $as_echo_n "(cached) " >&6
10986else
10987 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10988case `$LD -v 2>&1 </dev/null` in
10989*GNU* | *'with BFD'*)
10990 lt_cv_prog_gnu_ld=yes
10991 ;;
10992*)
10993 lt_cv_prog_gnu_ld=no
10994 ;;
10995esac
10996fi
10997{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10998$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10999with_gnu_ld=$lt_cv_prog_gnu_ld
11000
11001
11002
11003 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11004 # archiving commands below assume that GNU ld is being used.
11005 if test "$with_gnu_ld" = yes; then
11006 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11007 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'
11008
11009 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11010 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11011
11012 # If archive_cmds runs LD, not CC, wlarc should be empty
11013 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11014 # investigate it a little bit more. (MM)
11015 wlarc='${wl}'
11016
11017 # ancient GNU ld didn't support --whole-archive et. al.
11018 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11019 grep 'no-whole-archive' > /dev/null; then
11020 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11021 else
11022 whole_archive_flag_spec_CXX=
11023 fi
11024 else
11025 with_gnu_ld=no
11026 wlarc=
11027
11028 # A generic and very simple default shared library creation
11029 # command for GNU C++ for the case where it uses the native
11030 # linker, instead of GNU ld. If possible, this setting should
11031 # overridden to take advantage of the native linker features on
11032 # the platform it is being used on.
11033 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11034 fi
11035
11036 # Commands to make compiler produce verbose output that lists
11037 # what "hidden" libraries, object files and flags are used when
11038 # linking a shared library.
11039 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11040
11041else
11042 GXX=no
11043 with_gnu_ld=no
11044 wlarc=
11045fi
11046
11047# PORTME: fill in a description of your system's C++ link characteristics
11048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11049$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11050ld_shlibs_CXX=yes
11051case $host_os in
11052 aix3*)
11053 # FIXME: insert proper C++ library support
11054 ld_shlibs_CXX=no
11055 ;;
11056 aix4* | aix5*)
11057 if test "$host_cpu" = ia64; then
11058 # On IA64, the linker does run time linking by default, so we don't
11059 # have to do anything special.
11060 aix_use_runtimelinking=no
11061 exp_sym_flag='-Bexport'
11062 no_entry_flag=""
11063 else
11064 aix_use_runtimelinking=no
11065
11066 # Test if we are trying to use run time linking or normal
11067 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11068 # need to do runtime linking.
11069 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11070 for ld_flag in $LDFLAGS; do
11071 case $ld_flag in
11072 *-brtl*)
11073 aix_use_runtimelinking=yes
11074 break
11075 ;;
11076 esac
11077 done
11078 ;;
11079 esac
11080
11081 exp_sym_flag='-bexport'
11082 no_entry_flag='-bnoentry'
11083 fi
11084
11085 # When large executables or shared objects are built, AIX ld can
11086 # have problems creating the table of contents. If linking a library
11087 # or program results in "error TOC overflow" add -mminimal-toc to
11088 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11089 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11090
11091 archive_cmds_CXX=''
11092 hardcode_direct_CXX=yes
11093 hardcode_libdir_separator_CXX=':'
11094 link_all_deplibs_CXX=yes
11095
11096 if test "$GXX" = yes; then
11097 case $host_os in aix4.[012]|aix4.[012].*)
11098 # We only want to do this on AIX 4.2 and lower, the check
11099 # below for broken collect2 doesn't work under 4.3+
11100 collect2name=`${CC} -print-prog-name=collect2`
11101 if test -f "$collect2name" && \
11102 strings "$collect2name" | grep resolve_lib_name >/dev/null
11103 then
11104 # We have reworked collect2
11105 hardcode_direct_CXX=yes
11106 else
11107 # We have old collect2
11108 hardcode_direct_CXX=unsupported
11109 # It fails to find uninstalled libraries when the uninstalled
11110 # path is not listed in the libpath. Setting hardcode_minus_L
11111 # to unsupported forces relinking
11112 hardcode_minus_L_CXX=yes
11113 hardcode_libdir_flag_spec_CXX='-L$libdir'
11114 hardcode_libdir_separator_CXX=
11115 fi
11116 ;;
11117 esac
11118 shared_flag='-shared'
11119 if test "$aix_use_runtimelinking" = yes; then
11120 shared_flag="$shared_flag "'${wl}-G'
11121 fi
11122 else
11123 # not using gcc
11124 if test "$host_cpu" = ia64; then
11125 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11126 # chokes on -Wl,-G. The following line is correct:
11127 shared_flag='-G'
11128 else
11129 if test "$aix_use_runtimelinking" = yes; then
11130 shared_flag='${wl}-G'
11131 else
11132 shared_flag='${wl}-bM:SRE'
11133 fi
11134 fi
11135 fi
11136
11137 # It seems that -bexpall does not export symbols beginning with
11138 # underscore (_), so it is better to generate a list of symbols to export.
11139 always_export_symbols_CXX=yes
11140 if test "$aix_use_runtimelinking" = yes; then
11141 # Warning - without using the other runtime loading flags (-brtl),
11142 # -berok will link without error, but may produce a broken library.
11143 allow_undefined_flag_CXX='-berok'
11144 # Determine the default libpath from the value encoded in an empty executable.
11145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11146/* end confdefs.h. */
11147
11148int
11149main ()
11150{
11151
11152 ;
11153 return 0;
11154}
11155_ACEOF
11156if ac_fn_cxx_try_link "$LINENO"; then :
11157
11158aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11159}'`
11160# Check for a 64-bit object if we didn't find anything.
11161if 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; }
11162}'`; fi
11163fi
11164rm -f core conftest.err conftest.$ac_objext \
11165 conftest$ac_exeext conftest.$ac_ext
11166if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11167
11168 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11169
11170 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"
11171 else
11172 if test "$host_cpu" = ia64; then
11173 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11174 allow_undefined_flag_CXX="-z nodefs"
11175 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"
11176 else
11177 # Determine the default libpath from the value encoded in an empty executable.
11178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11179/* end confdefs.h. */
11180
11181int
11182main ()
11183{
11184
11185 ;
11186 return 0;
11187}
11188_ACEOF
11189if ac_fn_cxx_try_link "$LINENO"; then :
11190
11191aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11192}'`
11193# Check for a 64-bit object if we didn't find anything.
11194if 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; }
11195}'`; fi
11196fi
11197rm -f core conftest.err conftest.$ac_objext \
11198 conftest$ac_exeext conftest.$ac_ext
11199if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11200
11201 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11202 # Warning - without using the other run time loading flags,
11203 # -berok will link without error, but may produce a broken library.
11204 no_undefined_flag_CXX=' ${wl}-bernotok'
11205 allow_undefined_flag_CXX=' ${wl}-berok'
11206 # Exported symbols can be pulled into shared objects from archives
11207 whole_archive_flag_spec_CXX='$convenience'
11208 archive_cmds_need_lc_CXX=yes
11209 # This is similar to how AIX traditionally builds its shared libraries.
11210 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'
11211 fi
11212 fi
11213 ;;
11214
11215 beos*)
11216 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11217 allow_undefined_flag_CXX=unsupported
11218 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11219 # support --undefined. This deserves some investigation. FIXME
11220 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11221 else
11222 ld_shlibs_CXX=no
11223 fi
11224 ;;
11225
11226 chorus*)
11227 case $cc_basename in
11228 *)
11229 # FIXME: insert proper C++ library support
11230 ld_shlibs_CXX=no
11231 ;;
11232 esac
11233 ;;
11234
11235 cygwin* | mingw* | pw32*)
11236 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11237 # as there is no search path for DLLs.
11238 hardcode_libdir_flag_spec_CXX='-L$libdir'
11239 allow_undefined_flag_CXX=unsupported
11240 always_export_symbols_CXX=no
11241 enable_shared_with_static_runtimes_CXX=yes
11242
11243 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11244 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'
11245 # If the export-symbols file already is a .def file (1st line
11246 # is EXPORTS), use it as is; otherwise, prepend...
11247 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11248 cp $export_symbols $output_objdir/$soname.def;
11249 else
11250 echo EXPORTS > $output_objdir/$soname.def;
11251 cat $export_symbols >> $output_objdir/$soname.def;
11252 fi~
11253 $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'
11254 else
11255 ld_shlibs_CXX=no
11256 fi
11257 ;;
11258 darwin* | rhapsody*)
11259 case $host_os in
11260 rhapsody* | darwin1.[012])
11261 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11262 ;;
11263 *) # Darwin 1.3 on
11264 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11265 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11266 else
11267 case ${MACOSX_DEPLOYMENT_TARGET} in
11268 10.[012])
11269 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11270 ;;
11271 10.*)
11272 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11273 ;;
11274 esac
11275 fi
11276 ;;
11277 esac
11278 archive_cmds_need_lc_CXX=no
11279 hardcode_direct_CXX=no
11280 hardcode_automatic_CXX=yes
11281 hardcode_shlibpath_var_CXX=unsupported
11282 whole_archive_flag_spec_CXX=''
11283 link_all_deplibs_CXX=yes
11284
11285 if test "$GXX" = yes ; then
11286 lt_int_apple_cc_single_mod=no
11287 output_verbose_link_cmd='echo'
11288 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11289 lt_int_apple_cc_single_mod=yes
11290 fi
11291 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11292 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11293 else
11294 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'
11295 fi
11296 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11297 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11298 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11299 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}'
11300 else
11301 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}'
11302 fi
11303 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}'
11304 else
11305 case $cc_basename in
11306 xlc*)
11307 output_verbose_link_cmd='echo'
11308 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'
11309 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11310 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11311 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}'
11312 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}'
11313 ;;
11314 *)
11315 ld_shlibs_CXX=no
11316 ;;
11317 esac
11318 fi
11319 ;;
11320
11321 dgux*)
11322 case $cc_basename in
11323 ec++*)
11324 # FIXME: insert proper C++ library support
11325 ld_shlibs_CXX=no
11326 ;;
11327 ghcx*)
11328 # Green Hills C++ Compiler
11329 # FIXME: insert proper C++ library support
11330 ld_shlibs_CXX=no
11331 ;;
11332 *)
11333 # FIXME: insert proper C++ library support
11334 ld_shlibs_CXX=no
11335 ;;
11336 esac
11337 ;;
11338 freebsd[12]*)
11339 # C++ shared libraries reported to be fairly broken before switch to ELF
11340 ld_shlibs_CXX=no
11341 ;;
11342 freebsd-elf*)
11343 archive_cmds_need_lc_CXX=no
11344 ;;
11345 freebsd* | kfreebsd*-gnu | dragonfly*)
11346 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11347 # conventions
11348 ld_shlibs_CXX=yes
11349 ;;
11350 gnu*)
11351 ;;
11352 hpux9*)
11353 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11354 hardcode_libdir_separator_CXX=:
11355 export_dynamic_flag_spec_CXX='${wl}-E'
11356 hardcode_direct_CXX=yes
11357 hardcode_minus_L_CXX=yes # Not in the search PATH,
11358 # but as the default
11359 # location of the library.
11360
11361 case $cc_basename in
11362 CC*)
11363 # FIXME: insert proper C++ library support
11364 ld_shlibs_CXX=no
11365 ;;
11366 aCC*)
11367 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'
11368 # Commands to make compiler produce verbose output that lists
11369 # what "hidden" libraries, object files and flags are used when
11370 # linking a shared library.
11371 #
11372 # There doesn't appear to be a way to prevent this compiler from
11373 # explicitly linking system object files so we need to strip them
11374 # from the output so that they don't get included in the library
11375 # dependencies.
11376 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'
11377 ;;
11378 *)
11379 if test "$GXX" = yes; then
11380 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'
11381 else
11382 # FIXME: insert proper C++ library support
11383 ld_shlibs_CXX=no
11384 fi
11385 ;;
11386 esac
11387 ;;
11388 hpux10*|hpux11*)
11389 if test $with_gnu_ld = no; then
11390 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11391 hardcode_libdir_separator_CXX=:
11392
11393 case $host_cpu in
11394 hppa*64*|ia64*)
11395 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11396 ;;
11397 *)
11398 export_dynamic_flag_spec_CXX='${wl}-E'
11399 ;;
11400 esac
11401 fi
11402 case $host_cpu in
11403 hppa*64*|ia64*)
11404 hardcode_direct_CXX=no
11405 hardcode_shlibpath_var_CXX=no
11406 ;;
11407 *)
11408 hardcode_direct_CXX=yes
11409 hardcode_minus_L_CXX=yes # Not in the search PATH,
11410 # but as the default
11411 # location of the library.
11412 ;;
11413 esac
11414
11415 case $cc_basename in
11416 CC*)
11417 # FIXME: insert proper C++ library support
11418 ld_shlibs_CXX=no
11419 ;;
11420 aCC*)
11421 case $host_cpu in
11422 hppa*64*)
11423 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11424 ;;
11425 ia64*)
11426 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11427 ;;
11428 *)
11429 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11430 ;;
11431 esac
11432 # Commands to make compiler produce verbose output that lists
11433 # what "hidden" libraries, object files and flags are used when
11434 # linking a shared library.
11435 #
11436 # There doesn't appear to be a way to prevent this compiler from
11437 # explicitly linking system object files so we need to strip them
11438 # from the output so that they don't get included in the library
11439 # dependencies.
11440 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'
11441 ;;
11442 *)
11443 if test "$GXX" = yes; then
11444 if test $with_gnu_ld = no; then
11445 case $host_cpu in
11446 hppa*64*)
11447 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11448 ;;
11449 ia64*)
11450 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11451 ;;
11452 *)
11453 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'
11454 ;;
11455 esac
11456 fi
11457 else
11458 # FIXME: insert proper C++ library support
11459 ld_shlibs_CXX=no
11460 fi
11461 ;;
11462 esac
11463 ;;
11464 interix3*)
11465 hardcode_direct_CXX=no
11466 hardcode_shlibpath_var_CXX=no
11467 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11468 export_dynamic_flag_spec_CXX='${wl}-E'
11469 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11470 # Instead, shared libraries are loaded at an image base (0x10000000 by
11471 # default) and relocated if they conflict, which is a slow very memory
11472 # consuming and fragmenting process. To avoid this, we pick a random,
11473 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11474 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11475 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'
11476 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'
11477 ;;
11478 irix5* | irix6*)
11479 case $cc_basename in
11480 CC*)
11481 # SGI C++
11482 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'
11483
11484 # Archives containing C++ object files must be created using
11485 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11486 # necessary to make sure instantiated templates are included
11487 # in the archive.
11488 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11489 ;;
11490 *)
11491 if test "$GXX" = yes; then
11492 if test "$with_gnu_ld" = no; then
11493 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'
11494 else
11495 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'
11496 fi
11497 fi
11498 link_all_deplibs_CXX=yes
11499 ;;
11500 esac
11501 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11502 hardcode_libdir_separator_CXX=:
11503 ;;
11504 linux*)
11505 case $cc_basename in
11506 KCC*)
11507 # Kuck and Associates, Inc. (KAI) C++ Compiler
11508
11509 # KCC will only create a shared library if the output file
11510 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11511 # to its proper name (with version) after linking.
11512 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'
11513 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'
11514 # Commands to make compiler produce verbose output that lists
11515 # what "hidden" libraries, object files and flags are used when
11516 # linking a shared library.
11517 #
11518 # There doesn't appear to be a way to prevent this compiler from
11519 # explicitly linking system object files so we need to strip them
11520 # from the output so that they don't get included in the library
11521 # dependencies.
11522 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'
11523
11524 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11525 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11526
11527 # Archives containing C++ object files must be created using
11528 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11529 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11530 ;;
11531 icpc*)
11532 # Intel C++
11533 with_gnu_ld=yes
11534 # version 8.0 and above of icpc choke on multiply defined symbols
11535 # if we add $predep_objects and $postdep_objects, however 7.1 and
11536 # earlier do not add the objects themselves.
11537 case `$CC -V 2>&1` in
11538 *"Version 7."*)
11539 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11540 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'
11541 ;;
11542 *) # Version 8.0 or newer
11543 tmp_idyn=
11544 case $host_cpu in
11545 ia64*) tmp_idyn=' -i_dynamic';;
11546 esac
11547 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11548 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'
11549 ;;
11550 esac
11551 archive_cmds_need_lc_CXX=no
11552 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11553 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11554 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11555 ;;
11556 pgCC*)
11557 # Portland Group C++ compiler
11558 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11559 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'
11560
11561 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11562 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11563 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'
11564 ;;
11565 cxx*)
11566 # Compaq C++
11567 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11568 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'
11569
11570 runpath_var=LD_RUN_PATH
11571 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11572 hardcode_libdir_separator_CXX=:
11573
11574 # Commands to make compiler produce verbose output that lists
11575 # what "hidden" libraries, object files and flags are used when
11576 # linking a shared library.
11577 #
11578 # There doesn't appear to be a way to prevent this compiler from
11579 # explicitly linking system object files so we need to strip them
11580 # from the output so that they don't get included in the library
11581 # dependencies.
11582 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'
11583 ;;
11584 esac
11585 ;;
11586 lynxos*)
11587 # FIXME: insert proper C++ library support
11588 ld_shlibs_CXX=no
11589 ;;
11590 m88k*)
11591 # FIXME: insert proper C++ library support
11592 ld_shlibs_CXX=no
11593 ;;
11594 mvs*)
11595 case $cc_basename in
11596 cxx*)
11597 # FIXME: insert proper C++ library support
11598 ld_shlibs_CXX=no
11599 ;;
11600 *)
11601 # FIXME: insert proper C++ library support
11602 ld_shlibs_CXX=no
11603 ;;
11604 esac
11605 ;;
11606 netbsd*)
11607 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11608 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11609 wlarc=
11610 hardcode_libdir_flag_spec_CXX='-R$libdir'
11611 hardcode_direct_CXX=yes
11612 hardcode_shlibpath_var_CXX=no
11613 fi
11614 # Workaround some broken pre-1.5 toolchains
11615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11616 ;;
11617 openbsd2*)
11618 # C++ shared libraries are fairly broken
11619 ld_shlibs_CXX=no
11620 ;;
11621 openbsd*)
11622 hardcode_direct_CXX=yes
11623 hardcode_shlibpath_var_CXX=no
11624 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11625 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11626 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11627 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11628 export_dynamic_flag_spec_CXX='${wl}-E'
11629 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11630 fi
11631 output_verbose_link_cmd='echo'
11632 ;;
11633 osf3*)
11634 case $cc_basename in
11635 KCC*)
11636 # Kuck and Associates, Inc. (KAI) C++ Compiler
11637
11638 # KCC will only create a shared library if the output file
11639 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11640 # to its proper name (with version) after linking.
11641 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'
11642
11643 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11644 hardcode_libdir_separator_CXX=:
11645
11646 # Archives containing C++ object files must be created using
11647 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11648 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11649
11650 ;;
11651 RCC*)
11652 # Rational C++ 2.4.1
11653 # FIXME: insert proper C++ library support
11654 ld_shlibs_CXX=no
11655 ;;
11656 cxx*)
11657 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11658 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'
11659
11660 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11661 hardcode_libdir_separator_CXX=:
11662
11663 # Commands to make compiler produce verbose output that lists
11664 # what "hidden" libraries, object files and flags are used when
11665 # linking a shared library.
11666 #
11667 # There doesn't appear to be a way to prevent this compiler from
11668 # explicitly linking system object files so we need to strip them
11669 # from the output so that they don't get included in the library
11670 # dependencies.
11671 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'
11672 ;;
11673 *)
11674 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11675 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11676 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'
11677
11678 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11679 hardcode_libdir_separator_CXX=:
11680
11681 # Commands to make compiler produce verbose output that lists
11682 # what "hidden" libraries, object files and flags are used when
11683 # linking a shared library.
11684 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11685
11686 else
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 fi
11690 ;;
11691 esac
11692 ;;
11693 osf4* | osf5*)
11694 case $cc_basename in
11695 KCC*)
11696 # Kuck and Associates, Inc. (KAI) C++ Compiler
11697
11698 # KCC will only create a shared library if the output file
11699 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11700 # to its proper name (with version) after linking.
11701 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'
11702
11703 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11704 hardcode_libdir_separator_CXX=:
11705
11706 # Archives containing C++ object files must be created using
11707 # the KAI C++ compiler.
11708 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11709 ;;
11710 RCC*)
11711 # Rational C++ 2.4.1
11712 # FIXME: insert proper C++ library support
11713 ld_shlibs_CXX=no
11714 ;;
11715 cxx*)
11716 allow_undefined_flag_CXX=' -expect_unresolved \*'
11717 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'
11718 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11719 echo "-hidden">> $lib.exp~
11720 $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~
11721 $rm $lib.exp'
11722
11723 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11724 hardcode_libdir_separator_CXX=:
11725
11726 # Commands to make compiler produce verbose output that lists
11727 # what "hidden" libraries, object files and flags are used when
11728 # linking a shared library.
11729 #
11730 # There doesn't appear to be a way to prevent this compiler from
11731 # explicitly linking system object files so we need to strip them
11732 # from the output so that they don't get included in the library
11733 # dependencies.
11734 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'
11735 ;;
11736 *)
11737 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11738 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11739 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'
11740
11741 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11742 hardcode_libdir_separator_CXX=:
11743
11744 # Commands to make compiler produce verbose output that lists
11745 # what "hidden" libraries, object files and flags are used when
11746 # linking a shared library.
11747 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11748
11749 else
11750 # FIXME: insert proper C++ library support
11751 ld_shlibs_CXX=no
11752 fi
11753 ;;
11754 esac
11755 ;;
11756 psos*)
11757 # FIXME: insert proper C++ library support
11758 ld_shlibs_CXX=no
11759 ;;
11760 sunos4*)
11761 case $cc_basename in
11762 CC*)
11763 # Sun C++ 4.x
11764 # FIXME: insert proper C++ library support
11765 ld_shlibs_CXX=no
11766 ;;
11767 lcc*)
11768 # Lucid
11769 # FIXME: insert proper C++ library support
11770 ld_shlibs_CXX=no
11771 ;;
11772 *)
11773 # FIXME: insert proper C++ library support
11774 ld_shlibs_CXX=no
11775 ;;
11776 esac
11777 ;;
11778 solaris*)
11779 case $cc_basename in
11780 CC*)
11781 # Sun C++ 4.2, 5.x and Centerline C++
11782 archive_cmds_need_lc_CXX=yes
11783 no_undefined_flag_CXX=' -zdefs'
11784 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11785 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11786 $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'
11787
11788 hardcode_libdir_flag_spec_CXX='-R$libdir'
11789 hardcode_shlibpath_var_CXX=no
11790 case $host_os in
11791 solaris2.[0-5] | solaris2.[0-5].*) ;;
11792 *)
11793 # The C++ compiler is used as linker so we must use $wl
11794 # flag to pass the commands to the underlying system
11795 # linker. We must also pass each convience library through
11796 # to the system linker between allextract/defaultextract.
11797 # The C++ compiler will combine linker options so we
11798 # cannot just pass the convience library names through
11799 # without $wl.
11800 # Supported since Solaris 2.6 (maybe 2.5.1?)
11801 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'
11802 ;;
11803 esac
11804 link_all_deplibs_CXX=yes
11805
11806 output_verbose_link_cmd='echo'
11807
11808 # Archives containing C++ object files must be created using
11809 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11810 # necessary to make sure instantiated templates are included
11811 # in the archive.
11812 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11813 ;;
11814 gcx*)
11815 # Green Hills C++ Compiler
11816 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11817
11818 # The C++ compiler must be used to create the archive.
11819 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11820 ;;
11821 *)
11822 # GNU C++ compiler with Solaris linker
11823 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11824 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11825 if $CC --version | grep -v '^2\.7' > /dev/null; then
11826 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11827 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11828 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11829
11830 # Commands to make compiler produce verbose output that lists
11831 # what "hidden" libraries, object files and flags are used when
11832 # linking a shared library.
11833 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11834 else
11835 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11836 # platform.
11837 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11838 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11839 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11840
11841 # Commands to make compiler produce verbose output that lists
11842 # what "hidden" libraries, object files and flags are used when
11843 # linking a shared library.
11844 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11845 fi
11846
11847 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11848 fi
11849 ;;
11850 esac
11851 ;;
11852 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11853 no_undefined_flag_CXX='${wl}-z,text'
11854 archive_cmds_need_lc_CXX=no
11855 hardcode_shlibpath_var_CXX=no
11856 runpath_var='LD_RUN_PATH'
11857
11858 case $cc_basename in
11859 CC*)
11860 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11861 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11862 ;;
11863 *)
11864 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11865 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11866 ;;
11867 esac
11868 ;;
11869 sysv5* | sco3.2v5* | sco5v6*)
11870 # Note: We can NOT use -z defs as we might desire, because we do not
11871 # link with -lc, and that would cause any symbols used from libc to
11872 # always be unresolved, which means just about no library would
11873 # ever link correctly. If we're not using GNU ld we use -z text
11874 # though, which does catch some bad symbols but isn't as heavy-handed
11875 # as -z defs.
11876 # For security reasons, it is highly recommended that you always
11877 # use absolute paths for naming shared libraries, and exclude the
11878 # DT_RUNPATH tag from executables and libraries. But doing so
11879 # requires that you compile everything twice, which is a pain.
11880 # So that behaviour is only enabled if SCOABSPATH is set to a
11881 # non-empty value in the environment. Most likely only useful for
11882 # creating official distributions of packages.
11883 # This is a hack until libtool officially supports absolute path
11884 # names for shared libraries.
11885 no_undefined_flag_CXX='${wl}-z,text'
11886 allow_undefined_flag_CXX='${wl}-z,nodefs'
11887 archive_cmds_need_lc_CXX=no
11888 hardcode_shlibpath_var_CXX=no
11889 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11890 hardcode_libdir_separator_CXX=':'
11891 link_all_deplibs_CXX=yes
11892 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11893 runpath_var='LD_RUN_PATH'
11894
11895 case $cc_basename in
11896 CC*)
11897 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11898 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11899 ;;
11900 *)
11901 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11902 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11903 ;;
11904 esac
11905 ;;
11906 tandem*)
11907 case $cc_basename in
11908 NCC*)
11909 # NonStop-UX NCC 3.20
11910 # FIXME: insert proper C++ library support
11911 ld_shlibs_CXX=no
11912 ;;
11913 *)
11914 # FIXME: insert proper C++ library support
11915 ld_shlibs_CXX=no
11916 ;;
11917 esac
11918 ;;
11919 vxworks*)
11920 # FIXME: insert proper C++ library support
11921 ld_shlibs_CXX=no
11922 ;;
11923 *)
11924 # FIXME: insert proper C++ library support
11925 ld_shlibs_CXX=no
11926 ;;
11927esac
11928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11929$as_echo "$ld_shlibs_CXX" >&6; }
11930test "$ld_shlibs_CXX" = no && can_build_shared=no
11931
11932GCC_CXX="$GXX"
11933LD_CXX="$LD"
11934
11935## CAVEAT EMPTOR:
11936## There is no encapsulation within the following macros, do not change
11937## the running order or otherwise move them around unless you know exactly
11938## what you are doing...
11939
11940cat > conftest.$ac_ext <<EOF
11941class Foo
11942{
11943public:
11944 Foo (void) { a = 0; }
11945private:
11946 int a;
11947};
11948EOF
11949
11950if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11951 (eval $ac_compile) 2>&5
11952 ac_status=$?
11953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11954 test $ac_status = 0; }; then
11955 # Parse the compiler output and extract the necessary
11956 # objects, libraries and library flags.
11957
11958 # Sentinel used to keep track of whether or not we are before
11959 # the conftest object file.
11960 pre_test_object_deps_done=no
11961
11962 # The `*' in the case matches for architectures that use `case' in
11963 # $output_verbose_cmd can trigger glob expansion during the loop
11964 # eval without this substitution.
11965 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11966
11967 for p in `eval $output_verbose_link_cmd`; do
11968 case $p in
11969
11970 -L* | -R* | -l*)
11971 # Some compilers place space between "-{L,R}" and the path.
11972 # Remove the space.
11973 if test $p = "-L" \
11974 || test $p = "-R"; then
11975 prev=$p
11976 continue
11977 else
11978 prev=
11979 fi
11980
11981 if test "$pre_test_object_deps_done" = no; then
11982 case $p in
11983 -L* | -R*)
11984 # Internal compiler library paths should come after those
11985 # provided the user. The postdeps already come after the
11986 # user supplied libs so there is no need to process them.
11987 if test -z "$compiler_lib_search_path_CXX"; then
11988 compiler_lib_search_path_CXX="${prev}${p}"
11989 else
11990 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11991 fi
11992 ;;
11993 # The "-l" case would never come before the object being
11994 # linked, so don't bother handling this case.
11995 esac
11996 else
11997 if test -z "$postdeps_CXX"; then
11998 postdeps_CXX="${prev}${p}"
11999 else
12000 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12001 fi
12002 fi
12003 ;;
12004
12005 *.$objext)
12006 # This assumes that the test object file only shows up
12007 # once in the compiler output.
12008 if test "$p" = "conftest.$objext"; then
12009 pre_test_object_deps_done=yes
12010 continue
12011 fi
12012
12013 if test "$pre_test_object_deps_done" = no; then
12014 if test -z "$predep_objects_CXX"; then
12015 predep_objects_CXX="$p"
12016 else
12017 predep_objects_CXX="$predep_objects_CXX $p"
12018 fi
12019 else
12020 if test -z "$postdep_objects_CXX"; then
12021 postdep_objects_CXX="$p"
12022 else
12023 postdep_objects_CXX="$postdep_objects_CXX $p"
12024 fi
12025 fi
12026 ;;
12027
12028 *) ;; # Ignore the rest.
12029
12030 esac
12031 done
12032
12033 # Clean up.
12034 rm -f a.out a.exe
12035else
12036 echo "libtool.m4: error: problem compiling CXX test program"
12037fi
12038
12039$rm -f confest.$objext
12040
12041# PORTME: override above test on systems where it is broken
12042case $host_os in
12043interix3*)
12044 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12045 # hack all around it, let's just trust "g++" to DTRT.
12046 predep_objects_CXX=
12047 postdep_objects_CXX=
12048 postdeps_CXX=
12049 ;;
12050
12051solaris*)
12052 case $cc_basename in
12053 CC*)
12054 # Adding this requires a known-good setup of shared libraries for
12055 # Sun compiler versions before 5.6, else PIC objects from an old
12056 # archive will be linked into the output, leading to subtle bugs.
12057 postdeps_CXX='-lCstd -lCrun'
12058 ;;
12059 esac
12060 ;;
12061esac
12062
12063
12064case " $postdeps_CXX " in
12065*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12066esac
12067
12068lt_prog_compiler_wl_CXX=
12069lt_prog_compiler_pic_CXX=
12070lt_prog_compiler_static_CXX=
12071
12072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12073$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12074
12075 # C++ specific cases for pic, static, wl, etc.
12076 if test "$GXX" = yes; then
12077 lt_prog_compiler_wl_CXX='-Wl,'
12078 lt_prog_compiler_static_CXX='-static'
12079
12080 case $host_os in
12081 aix*)
12082 # All AIX code is PIC.
12083 if test "$host_cpu" = ia64; then
12084 # AIX 5 now supports IA64 processor
12085 lt_prog_compiler_static_CXX='-Bstatic'
12086 fi
12087 ;;
12088 amigaos*)
12089 # FIXME: we need at least 68020 code to build shared libraries, but
12090 # adding the `-m68020' flag to GCC prevents building anything better,
12091 # like `-m68040'.
12092 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12093 ;;
12094 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12095 # PIC is the default for these OSes.
12096 ;;
12097 mingw* | os2* | pw32*)
12098 # This hack is so that the source file can tell whether it is being
12099 # built for inclusion in a dll (and should export symbols for example).
12100 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12101 ;;
12102 darwin* | rhapsody*)
12103 # PIC is the default on this platform
12104 # Common symbols not allowed in MH_DYLIB files
12105 lt_prog_compiler_pic_CXX='-fno-common'
12106 ;;
12107 *djgpp*)
12108 # DJGPP does not support shared libraries at all
12109 lt_prog_compiler_pic_CXX=
12110 ;;
12111 interix3*)
12112 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12113 # Instead, we relocate shared libraries at runtime.
12114 ;;
12115 sysv4*MP*)
12116 if test -d /usr/nec; then
12117 lt_prog_compiler_pic_CXX=-Kconform_pic
12118 fi
12119 ;;
12120 hpux*)
12121 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12122 # not for PA HP-UX.
12123 case $host_cpu in
12124 hppa*64*|ia64*)
12125 ;;
12126 *)
12127 lt_prog_compiler_pic_CXX='-fPIC'
12128 ;;
12129 esac
12130 ;;
12131 *)
12132 lt_prog_compiler_pic_CXX='-fPIC'
12133 ;;
12134 esac
12135 else
12136 case $host_os in
12137 aix4* | aix5*)
12138 # All AIX code is PIC.
12139 if test "$host_cpu" = ia64; then
12140 # AIX 5 now supports IA64 processor
12141 lt_prog_compiler_static_CXX='-Bstatic'
12142 else
12143 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12144 fi
12145 ;;
12146 chorus*)
12147 case $cc_basename in
12148 cxch68*)
12149 # Green Hills C++ Compiler
12150 # _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"
12151 ;;
12152 esac
12153 ;;
12154 darwin*)
12155 # PIC is the default on this platform
12156 # Common symbols not allowed in MH_DYLIB files
12157 case $cc_basename in
12158 xlc*)
12159 lt_prog_compiler_pic_CXX='-qnocommon'
12160 lt_prog_compiler_wl_CXX='-Wl,'
12161 ;;
12162 esac
12163 ;;
12164 dgux*)
12165 case $cc_basename in
12166 ec++*)
12167 lt_prog_compiler_pic_CXX='-KPIC'
12168 ;;
12169 ghcx*)
12170 # Green Hills C++ Compiler
12171 lt_prog_compiler_pic_CXX='-pic'
12172 ;;
12173 *)
12174 ;;
12175 esac
12176 ;;
12177 freebsd* | kfreebsd*-gnu | dragonfly*)
12178 # FreeBSD uses GNU C++
12179 ;;
12180 hpux9* | hpux10* | hpux11*)
12181 case $cc_basename in
12182 CC*)
12183 lt_prog_compiler_wl_CXX='-Wl,'
12184 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12185 if test "$host_cpu" != ia64; then
12186 lt_prog_compiler_pic_CXX='+Z'
12187 fi
12188 ;;
12189 aCC*)
12190 lt_prog_compiler_wl_CXX='-Wl,'
12191 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12192 case $host_cpu in
12193 hppa*64*|ia64*)
12194 # +Z the default
12195 ;;
12196 *)
12197 lt_prog_compiler_pic_CXX='+Z'
12198 ;;
12199 esac
12200 ;;
12201 *)
12202 ;;
12203 esac
12204 ;;
12205 interix*)
12206 # This is c89, which is MS Visual C++ (no shared libs)
12207 # Anyone wants to do a port?
12208 ;;
12209 irix5* | irix6* | nonstopux*)
12210 case $cc_basename in
12211 CC*)
12212 lt_prog_compiler_wl_CXX='-Wl,'
12213 lt_prog_compiler_static_CXX='-non_shared'
12214 # CC pic flag -KPIC is the default.
12215 ;;
12216 *)
12217 ;;
12218 esac
12219 ;;
12220 linux*)
12221 case $cc_basename in
12222 KCC*)
12223 # KAI C++ Compiler
12224 lt_prog_compiler_wl_CXX='--backend -Wl,'
12225 lt_prog_compiler_pic_CXX='-fPIC'
12226 ;;
12227 icpc* | ecpc*)
12228 # Intel C++
12229 lt_prog_compiler_wl_CXX='-Wl,'
12230 lt_prog_compiler_pic_CXX='-KPIC'
12231 lt_prog_compiler_static_CXX='-static'
12232 ;;
12233 pgCC*)
12234 # Portland Group C++ compiler.
12235 lt_prog_compiler_wl_CXX='-Wl,'
12236 lt_prog_compiler_pic_CXX='-fpic'
12237 lt_prog_compiler_static_CXX='-Bstatic'
12238 ;;
12239 cxx*)
12240 # Compaq C++
12241 # Make sure the PIC flag is empty. It appears that all Alpha
12242 # Linux and Compaq Tru64 Unix objects are PIC.
12243 lt_prog_compiler_pic_CXX=
12244 lt_prog_compiler_static_CXX='-non_shared'
12245 ;;
12246 *)
12247 ;;
12248 esac
12249 ;;
12250 lynxos*)
12251 ;;
12252 m88k*)
12253 ;;
12254 mvs*)
12255 case $cc_basename in
12256 cxx*)
12257 lt_prog_compiler_pic_CXX='-W c,exportall'
12258 ;;
12259 *)
12260 ;;
12261 esac
12262 ;;
12263 netbsd*)
12264 ;;
12265 osf3* | osf4* | osf5*)
12266 case $cc_basename in
12267 KCC*)
12268 lt_prog_compiler_wl_CXX='--backend -Wl,'
12269 ;;
12270 RCC*)
12271 # Rational C++ 2.4.1
12272 lt_prog_compiler_pic_CXX='-pic'
12273 ;;
12274 cxx*)
12275 # Digital/Compaq C++
12276 lt_prog_compiler_wl_CXX='-Wl,'
12277 # Make sure the PIC flag is empty. It appears that all Alpha
12278 # Linux and Compaq Tru64 Unix objects are PIC.
12279 lt_prog_compiler_pic_CXX=
12280 lt_prog_compiler_static_CXX='-non_shared'
12281 ;;
12282 *)
12283 ;;
12284 esac
12285 ;;
12286 psos*)
12287 ;;
12288 solaris*)
12289 case $cc_basename in
12290 CC*)
12291 # Sun C++ 4.2, 5.x and Centerline C++
12292 lt_prog_compiler_pic_CXX='-KPIC'
12293 lt_prog_compiler_static_CXX='-Bstatic'
12294 lt_prog_compiler_wl_CXX='-Qoption ld '
12295 ;;
12296 gcx*)
12297 # Green Hills C++ Compiler
12298 lt_prog_compiler_pic_CXX='-PIC'
12299 ;;
12300 *)
12301 ;;
12302 esac
12303 ;;
12304 sunos4*)
12305 case $cc_basename in
12306 CC*)
12307 # Sun C++ 4.x
12308 lt_prog_compiler_pic_CXX='-pic'
12309 lt_prog_compiler_static_CXX='-Bstatic'
12310 ;;
12311 lcc*)
12312 # Lucid
12313 lt_prog_compiler_pic_CXX='-pic'
12314 ;;
12315 *)
12316 ;;
12317 esac
12318 ;;
12319 tandem*)
12320 case $cc_basename in
12321 NCC*)
12322 # NonStop-UX NCC 3.20
12323 lt_prog_compiler_pic_CXX='-KPIC'
12324 ;;
12325 *)
12326 ;;
12327 esac
12328 ;;
12329 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12330 case $cc_basename in
12331 CC*)
12332 lt_prog_compiler_wl_CXX='-Wl,'
12333 lt_prog_compiler_pic_CXX='-KPIC'
12334 lt_prog_compiler_static_CXX='-Bstatic'
12335 ;;
12336 esac
12337 ;;
12338 vxworks*)
12339 ;;
12340 *)
12341 lt_prog_compiler_can_build_shared_CXX=no
12342 ;;
12343 esac
12344 fi
12345
12346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12347$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12348
12349#
12350# Check to make sure the PIC flag actually works.
12351#
12352if test -n "$lt_prog_compiler_pic_CXX"; then
12353
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12355$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12356if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12357 $as_echo_n "(cached) " >&6
12358else
12359 lt_prog_compiler_pic_works_CXX=no
12360 ac_outfile=conftest.$ac_objext
12361 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12362 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12363 # Insert the option either (1) after the last *FLAGS variable, or
12364 # (2) before a word containing "conftest.", or (3) at the end.
12365 # Note that $ac_compile itself does not contain backslashes and begins
12366 # with a dollar sign (not a hyphen), so the echo should work correctly.
12367 # The option is referenced via a variable to avoid confusing sed.
12368 lt_compile=`echo "$ac_compile" | $SED \
12369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12371 -e 's:$: $lt_compiler_flag:'`
12372 (eval echo "\"\$as_me:12372: $lt_compile\"" >&5)
12373 (eval "$lt_compile" 2>conftest.err)
12374 ac_status=$?
12375 cat conftest.err >&5
12376 echo "$as_me:12376: \$? = $ac_status" >&5
12377 if (exit $ac_status) && test -s "$ac_outfile"; then
12378 # The compiler can only warn and ignore the option if not recognized
12379 # So say no if there are warnings other than the usual output.
12380 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12383 lt_prog_compiler_pic_works_CXX=yes
12384 fi
12385 fi
12386 $rm conftest*
12387
12388fi
12389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12390$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12391
12392if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12393 case $lt_prog_compiler_pic_CXX in
12394 "" | " "*) ;;
12395 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12396 esac
12397else
12398 lt_prog_compiler_pic_CXX=
12399 lt_prog_compiler_can_build_shared_CXX=no
12400fi
12401
12402fi
12403case $host_os in
12404 # For platforms which do not support PIC, -DPIC is meaningless:
12405 *djgpp*)
12406 lt_prog_compiler_pic_CXX=
12407 ;;
12408 *)
12409 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12410 ;;
12411esac
12412
12413#
12414# Check to make sure the static flag actually works.
12415#
12416wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12418$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12419if ${lt_prog_compiler_static_works_CXX+:} false; then :
12420 $as_echo_n "(cached) " >&6
12421else
12422 lt_prog_compiler_static_works_CXX=no
12423 save_LDFLAGS="$LDFLAGS"
12424 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12425 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12426 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12427 # The linker can only warn and ignore the option if not recognized
12428 # So say no if there are warnings
12429 if test -s conftest.err; then
12430 # Append any errors to the config.log.
12431 cat conftest.err 1>&5
12432 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12433 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12434 if diff conftest.exp conftest.er2 >/dev/null; then
12435 lt_prog_compiler_static_works_CXX=yes
12436 fi
12437 else
12438 lt_prog_compiler_static_works_CXX=yes
12439 fi
12440 fi
12441 $rm conftest*
12442 LDFLAGS="$save_LDFLAGS"
12443
12444fi
12445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12446$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12447
12448if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12449 :
12450else
12451 lt_prog_compiler_static_CXX=
12452fi
12453
12454
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12456$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12457if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12458 $as_echo_n "(cached) " >&6
12459else
12460 lt_cv_prog_compiler_c_o_CXX=no
12461 $rm -r conftest 2>/dev/null
12462 mkdir conftest
12463 cd conftest
12464 mkdir out
12465 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12466
12467 lt_compiler_flag="-o out/conftest2.$ac_objext"
12468 # Insert the option either (1) after the last *FLAGS variable, or
12469 # (2) before a word containing "conftest.", or (3) at the end.
12470 # Note that $ac_compile itself does not contain backslashes and begins
12471 # with a dollar sign (not a hyphen), so the echo should work correctly.
12472 lt_compile=`echo "$ac_compile" | $SED \
12473 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12474 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12475 -e 's:$: $lt_compiler_flag:'`
12476 (eval echo "\"\$as_me:12476: $lt_compile\"" >&5)
12477 (eval "$lt_compile" 2>out/conftest.err)
12478 ac_status=$?
12479 cat out/conftest.err >&5
12480 echo "$as_me:12480: \$? = $ac_status" >&5
12481 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12482 then
12483 # The compiler can only warn and ignore the option if not recognized
12484 # So say no if there are warnings
12485 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12486 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12487 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12488 lt_cv_prog_compiler_c_o_CXX=yes
12489 fi
12490 fi
12491 chmod u+w . 2>&5
12492 $rm conftest*
12493 # SGI C++ compiler will create directory out/ii_files/ for
12494 # template instantiation
12495 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12496 $rm out/* && rmdir out
12497 cd ..
12498 rmdir conftest
12499 $rm conftest*
12500
12501fi
12502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12503$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12504
12505
12506hard_links="nottested"
12507if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12508 # do not overwrite the value of need_locks provided by the user
12509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12510$as_echo_n "checking if we can lock with hard links... " >&6; }
12511 hard_links=yes
12512 $rm conftest*
12513 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12514 touch conftest.a
12515 ln conftest.a conftest.b 2>&5 || hard_links=no
12516 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12518$as_echo "$hard_links" >&6; }
12519 if test "$hard_links" = no; then
12520 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12521$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12522 need_locks=warn
12523 fi
12524else
12525 need_locks=no
12526fi
12527
12528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12529$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12530
12531 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12532 case $host_os in
12533 aix4* | aix5*)
12534 # If we're using GNU nm, then we don't want the "-C" option.
12535 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12536 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12537 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'
12538 else
12539 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'
12540 fi
12541 ;;
12542 pw32*)
12543 export_symbols_cmds_CXX="$ltdll_cmds"
12544 ;;
12545 cygwin* | mingw*)
12546 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'
12547 ;;
12548 *)
12549 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12550 ;;
12551 esac
12552
12553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12554$as_echo "$ld_shlibs_CXX" >&6; }
12555test "$ld_shlibs_CXX" = no && can_build_shared=no
12556
12557#
12558# Do we need to explicitly link libc?
12559#
12560case "x$archive_cmds_need_lc_CXX" in
12561x|xyes)
12562 # Assume -lc should be added
12563 archive_cmds_need_lc_CXX=yes
12564
12565 if test "$enable_shared" = yes && test "$GCC" = yes; then
12566 case $archive_cmds_CXX in
12567 *'~'*)
12568 # FIXME: we may have to deal with multi-command sequences.
12569 ;;
12570 '$CC '*)
12571 # Test whether the compiler implicitly links with -lc since on some
12572 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12573 # to ld, don't add -lc before -lgcc.
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12575$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12576 $rm conftest*
12577 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12578
12579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12580 (eval $ac_compile) 2>&5
12581 ac_status=$?
12582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12583 test $ac_status = 0; } 2>conftest.err; then
12584 soname=conftest
12585 lib=conftest
12586 libobjs=conftest.$ac_objext
12587 deplibs=
12588 wl=$lt_prog_compiler_wl_CXX
12589 pic_flag=$lt_prog_compiler_pic_CXX
12590 compiler_flags=-v
12591 linker_flags=-v
12592 verstring=
12593 output_objdir=.
12594 libname=conftest
12595 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12596 allow_undefined_flag_CXX=
12597 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12598 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12599 ac_status=$?
12600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12601 test $ac_status = 0; }
12602 then
12603 archive_cmds_need_lc_CXX=no
12604 else
12605 archive_cmds_need_lc_CXX=yes
12606 fi
12607 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12608 else
12609 cat conftest.err 1>&5
12610 fi
12611 $rm conftest*
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12613$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12614 ;;
12615 esac
12616 fi
12617 ;;
12618esac
12619
12620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12621$as_echo_n "checking dynamic linker characteristics... " >&6; }
12622library_names_spec=
12623libname_spec='lib$name'
12624soname_spec=
12625shrext_cmds=".so"
12626postinstall_cmds=
12627postuninstall_cmds=
12628finish_cmds=
12629finish_eval=
12630shlibpath_var=
12631shlibpath_overrides_runpath=unknown
12632version_type=none
12633dynamic_linker="$host_os ld.so"
12634sys_lib_dlsearch_path_spec="/lib /usr/lib"
12635if test "$GCC" = yes; then
12636 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12637 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12638 # if the path contains ";" then we assume it to be the separator
12639 # otherwise default to the standard path separator (i.e. ":") - it is
12640 # assumed that no part of a normal pathname contains ";" but that should
12641 # okay in the real world where ";" in dirpaths is itself problematic.
12642 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12643 else
12644 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12645 fi
12646else
12647 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12648fi
12649need_lib_prefix=unknown
12650hardcode_into_libs=no
12651
12652# when you set need_version to no, make sure it does not cause -set_version
12653# flags to be left without arguments
12654need_version=unknown
12655
12656case $host_os in
12657aix3*)
12658 version_type=linux
12659 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12660 shlibpath_var=LIBPATH
12661
12662 # AIX 3 has no versioning support, so we append a major version to the name.
12663 soname_spec='${libname}${release}${shared_ext}$major'
12664 ;;
12665
12666aix4* | aix5*)
12667 version_type=linux
12668 need_lib_prefix=no
12669 need_version=no
12670 hardcode_into_libs=yes
12671 if test "$host_cpu" = ia64; then
12672 # AIX 5 supports IA64
12673 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12674 shlibpath_var=LD_LIBRARY_PATH
12675 else
12676 # With GCC up to 2.95.x, collect2 would create an import file
12677 # for dependence libraries. The import file would start with
12678 # the line `#! .'. This would cause the generated library to
12679 # depend on `.', always an invalid library. This was fixed in
12680 # development snapshots of GCC prior to 3.0.
12681 case $host_os in
12682 aix4 | aix4.[01] | aix4.[01].*)
12683 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12684 echo ' yes '
12685 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12686 :
12687 else
12688 can_build_shared=no
12689 fi
12690 ;;
12691 esac
12692 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12693 # soname into executable. Probably we can add versioning support to
12694 # collect2, so additional links can be useful in future.
12695 if test "$aix_use_runtimelinking" = yes; then
12696 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12697 # instead of lib<name>.a to let people know that these are not
12698 # typical AIX shared libraries.
12699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12700 else
12701 # We preserve .a as extension for shared libraries through AIX4.2
12702 # and later when we are not doing run time linking.
12703 library_names_spec='${libname}${release}.a $libname.a'
12704 soname_spec='${libname}${release}${shared_ext}$major'
12705 fi
12706 shlibpath_var=LIBPATH
12707 fi
12708 ;;
12709
12710amigaos*)
12711 library_names_spec='$libname.ixlibrary $libname.a'
12712 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12713 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'
12714 ;;
12715
12716beos*)
12717 library_names_spec='${libname}${shared_ext}'
12718 dynamic_linker="$host_os ld.so"
12719 shlibpath_var=LIBRARY_PATH
12720 ;;
12721
12722bsdi[45]*)
12723 version_type=linux
12724 need_version=no
12725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12726 soname_spec='${libname}${release}${shared_ext}$major'
12727 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12728 shlibpath_var=LD_LIBRARY_PATH
12729 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12730 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12731 # the default ld.so.conf also contains /usr/contrib/lib and
12732 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12733 # libtool to hard-code these into programs
12734 ;;
12735
12736cygwin* | mingw* | pw32*)
12737 version_type=windows
12738 shrext_cmds=".dll"
12739 need_version=no
12740 need_lib_prefix=no
12741
12742 case $GCC,$host_os in
12743 yes,cygwin* | yes,mingw* | yes,pw32*)
12744 library_names_spec='$libname.dll.a'
12745 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12746 postinstall_cmds='base_file=`basename \${file}`~
12747 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12748 dldir=$destdir/`dirname \$dlpath`~
12749 test -d \$dldir || mkdir -p \$dldir~
12750 $install_prog $dir/$dlname \$dldir/$dlname~
12751 chmod a+x \$dldir/$dlname'
12752 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12753 dlpath=$dir/\$dldll~
12754 $rm \$dlpath'
12755 shlibpath_overrides_runpath=yes
12756
12757 case $host_os in
12758 cygwin*)
12759 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12760 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12761 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12762 ;;
12763 mingw*)
12764 # MinGW DLLs use traditional 'lib' prefix
12765 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12766 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12767 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12768 # It is most probably a Windows format PATH printed by
12769 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12770 # path with ; separators, and with drive letters. We can handle the
12771 # drive letters (cygwin fileutils understands them), so leave them,
12772 # especially as we might pass files found there to a mingw objdump,
12773 # which wouldn't understand a cygwinified path. Ahh.
12774 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12775 else
12776 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12777 fi
12778 ;;
12779 pw32*)
12780 # pw32 DLLs use 'pw' prefix rather than 'lib'
12781 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12782 ;;
12783 esac
12784 ;;
12785
12786 *)
12787 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12788 ;;
12789 esac
12790 dynamic_linker='Win32 ld.exe'
12791 # FIXME: first we should search . and the directory the executable is in
12792 shlibpath_var=PATH
12793 ;;
12794
12795darwin* | rhapsody*)
12796 dynamic_linker="$host_os dyld"
12797 version_type=darwin
12798 need_lib_prefix=no
12799 need_version=no
12800 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12801 soname_spec='${libname}${release}${major}$shared_ext'
12802 shlibpath_overrides_runpath=yes
12803 shlibpath_var=DYLD_LIBRARY_PATH
12804 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12805 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12806 if test "$GCC" = yes; then
12807 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"`
12808 else
12809 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12810 fi
12811 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12812 ;;
12813
12814dgux*)
12815 version_type=linux
12816 need_lib_prefix=no
12817 need_version=no
12818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12819 soname_spec='${libname}${release}${shared_ext}$major'
12820 shlibpath_var=LD_LIBRARY_PATH
12821 ;;
12822
12823freebsd1*)
12824 dynamic_linker=no
12825 ;;
12826
12827kfreebsd*-gnu)
12828 version_type=linux
12829 need_lib_prefix=no
12830 need_version=no
12831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12832 soname_spec='${libname}${release}${shared_ext}$major'
12833 shlibpath_var=LD_LIBRARY_PATH
12834 shlibpath_overrides_runpath=no
12835 hardcode_into_libs=yes
12836 dynamic_linker='GNU ld.so'
12837 ;;
12838
12839freebsd* | dragonfly*)
12840 # DragonFly does not have aout. When/if they implement a new
12841 # versioning mechanism, adjust this.
12842 if test -x /usr/bin/objformat; then
12843 objformat=`/usr/bin/objformat`
12844 else
12845 case $host_os in
12846 freebsd[123]*) objformat=aout ;;
12847 *) objformat=elf ;;
12848 esac
12849 fi
12850 version_type=freebsd-$objformat
12851 case $version_type in
12852 freebsd-elf*)
12853 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12854 need_version=no
12855 need_lib_prefix=no
12856 ;;
12857 freebsd-*)
12858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12859 need_version=yes
12860 ;;
12861 esac
12862 shlibpath_var=LD_LIBRARY_PATH
12863 case $host_os in
12864 freebsd2*)
12865 shlibpath_overrides_runpath=yes
12866 ;;
12867 freebsd3.[01]* | freebsdelf3.[01]*)
12868 shlibpath_overrides_runpath=yes
12869 hardcode_into_libs=yes
12870 ;;
12871 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12872 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12873 shlibpath_overrides_runpath=no
12874 hardcode_into_libs=yes
12875 ;;
12876 freebsd*) # from 4.6 on
12877 shlibpath_overrides_runpath=yes
12878 hardcode_into_libs=yes
12879 ;;
12880 esac
12881 ;;
12882
12883gnu*)
12884 version_type=linux
12885 need_lib_prefix=no
12886 need_version=no
12887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12888 soname_spec='${libname}${release}${shared_ext}$major'
12889 shlibpath_var=LD_LIBRARY_PATH
12890 hardcode_into_libs=yes
12891 ;;
12892
12893hpux9* | hpux10* | hpux11*)
12894 # Give a soname corresponding to the major version so that dld.sl refuses to
12895 # link against other versions.
12896 version_type=sunos
12897 need_lib_prefix=no
12898 need_version=no
12899 case $host_cpu in
12900 ia64*)
12901 shrext_cmds='.so'
12902 hardcode_into_libs=yes
12903 dynamic_linker="$host_os dld.so"
12904 shlibpath_var=LD_LIBRARY_PATH
12905 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12907 soname_spec='${libname}${release}${shared_ext}$major'
12908 if test "X$HPUX_IA64_MODE" = X32; then
12909 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12910 else
12911 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12912 fi
12913 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12914 ;;
12915 hppa*64*)
12916 shrext_cmds='.sl'
12917 hardcode_into_libs=yes
12918 dynamic_linker="$host_os dld.sl"
12919 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12920 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12922 soname_spec='${libname}${release}${shared_ext}$major'
12923 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12924 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12925 ;;
12926 *)
12927 shrext_cmds='.sl'
12928 dynamic_linker="$host_os dld.sl"
12929 shlibpath_var=SHLIB_PATH
12930 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12932 soname_spec='${libname}${release}${shared_ext}$major'
12933 ;;
12934 esac
12935 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12936 postinstall_cmds='chmod 555 $lib'
12937 ;;
12938
12939interix3*)
12940 version_type=linux
12941 need_lib_prefix=no
12942 need_version=no
12943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12944 soname_spec='${libname}${release}${shared_ext}$major'
12945 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12946 shlibpath_var=LD_LIBRARY_PATH
12947 shlibpath_overrides_runpath=no
12948 hardcode_into_libs=yes
12949 ;;
12950
12951irix5* | irix6* | nonstopux*)
12952 case $host_os in
12953 nonstopux*) version_type=nonstopux ;;
12954 *)
12955 if test "$lt_cv_prog_gnu_ld" = yes; then
12956 version_type=linux
12957 else
12958 version_type=irix
12959 fi ;;
12960 esac
12961 need_lib_prefix=no
12962 need_version=no
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12965 case $host_os in
12966 irix5* | nonstopux*)
12967 libsuff= shlibsuff=
12968 ;;
12969 *)
12970 case $LD in # libtool.m4 will add one of these switches to LD
12971 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12972 libsuff= shlibsuff= libmagic=32-bit;;
12973 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12974 libsuff=32 shlibsuff=N32 libmagic=N32;;
12975 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12976 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12977 *) libsuff= shlibsuff= libmagic=never-match;;
12978 esac
12979 ;;
12980 esac
12981 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12982 shlibpath_overrides_runpath=no
12983 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12984 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12985 hardcode_into_libs=yes
12986 ;;
12987
12988# No shared lib support for Linux oldld, aout, or coff.
12989linux*oldld* | linux*aout* | linux*coff*)
12990 dynamic_linker=no
12991 ;;
12992
12993# This must be Linux ELF.
12994linux*)
12995 version_type=linux
12996 need_lib_prefix=no
12997 need_version=no
12998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12999 soname_spec='${libname}${release}${shared_ext}$major'
13000 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13001 shlibpath_var=LD_LIBRARY_PATH
13002 shlibpath_overrides_runpath=no
13003 # This implies no fast_install, which is unacceptable.
13004 # Some rework will be needed to allow for fast_install
13005 # before this can be enabled.
13006 hardcode_into_libs=yes
13007
13008 # Append ld.so.conf contents to the search path
13009 if test -f /etc/ld.so.conf; then
13010 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13011 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13012 fi
13013
13014 # We used to test for /lib/ld.so.1 and disable shared libraries on
13015 # powerpc, because MkLinux only supported shared libraries with the
13016 # GNU dynamic linker. Since this was broken with cross compilers,
13017 # most powerpc-linux boxes support dynamic linking these days and
13018 # people can always --disable-shared, the test was removed, and we
13019 # assume the GNU/Linux dynamic linker is in use.
13020 dynamic_linker='GNU/Linux ld.so'
13021 ;;
13022
13023knetbsd*-gnu)
13024 version_type=linux
13025 need_lib_prefix=no
13026 need_version=no
13027 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13028 soname_spec='${libname}${release}${shared_ext}$major'
13029 shlibpath_var=LD_LIBRARY_PATH
13030 shlibpath_overrides_runpath=no
13031 hardcode_into_libs=yes
13032 dynamic_linker='GNU ld.so'
13033 ;;
13034
13035netbsd*)
13036 version_type=sunos
13037 need_lib_prefix=no
13038 need_version=no
13039 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13041 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13042 dynamic_linker='NetBSD (a.out) ld.so'
13043 else
13044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13045 soname_spec='${libname}${release}${shared_ext}$major'
13046 dynamic_linker='NetBSD ld.elf_so'
13047 fi
13048 shlibpath_var=LD_LIBRARY_PATH
13049 shlibpath_overrides_runpath=yes
13050 hardcode_into_libs=yes
13051 ;;
13052
13053newsos6)
13054 version_type=linux
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13056 shlibpath_var=LD_LIBRARY_PATH
13057 shlibpath_overrides_runpath=yes
13058 ;;
13059
13060nto-qnx*)
13061 version_type=linux
13062 need_lib_prefix=no
13063 need_version=no
13064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13065 soname_spec='${libname}${release}${shared_ext}$major'
13066 shlibpath_var=LD_LIBRARY_PATH
13067 shlibpath_overrides_runpath=yes
13068 ;;
13069
13070openbsd*)
13071 version_type=sunos
13072 sys_lib_dlsearch_path_spec="/usr/lib"
13073 need_lib_prefix=no
13074 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13075 case $host_os in
13076 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13077 *) need_version=no ;;
13078 esac
13079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13080 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13081 shlibpath_var=LD_LIBRARY_PATH
13082 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13083 case $host_os in
13084 openbsd2.[89] | openbsd2.[89].*)
13085 shlibpath_overrides_runpath=no
13086 ;;
13087 *)
13088 shlibpath_overrides_runpath=yes
13089 ;;
13090 esac
13091 else
13092 shlibpath_overrides_runpath=yes
13093 fi
13094 ;;
13095
13096os2*)
13097 libname_spec='$name'
13098 shrext_cmds=".dll"
13099 need_lib_prefix=no
13100 library_names_spec='$libname${shared_ext} $libname.a'
13101 dynamic_linker='OS/2 ld.exe'
13102 shlibpath_var=LIBPATH
13103 ;;
13104
13105osf3* | osf4* | osf5*)
13106 version_type=osf
13107 need_lib_prefix=no
13108 need_version=no
13109 soname_spec='${libname}${release}${shared_ext}$major'
13110 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13111 shlibpath_var=LD_LIBRARY_PATH
13112 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13113 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13114 ;;
13115
13116solaris*)
13117 version_type=linux
13118 need_lib_prefix=no
13119 need_version=no
13120 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13121 soname_spec='${libname}${release}${shared_ext}$major'
13122 shlibpath_var=LD_LIBRARY_PATH
13123 shlibpath_overrides_runpath=yes
13124 hardcode_into_libs=yes
13125 # ldd complains unless libraries are executable
13126 postinstall_cmds='chmod +x $lib'
13127 ;;
13128
13129sunos4*)
13130 version_type=sunos
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13132 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13133 shlibpath_var=LD_LIBRARY_PATH
13134 shlibpath_overrides_runpath=yes
13135 if test "$with_gnu_ld" = yes; then
13136 need_lib_prefix=no
13137 fi
13138 need_version=yes
13139 ;;
13140
13141sysv4 | sysv4.3*)
13142 version_type=linux
13143 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13144 soname_spec='${libname}${release}${shared_ext}$major'
13145 shlibpath_var=LD_LIBRARY_PATH
13146 case $host_vendor in
13147 sni)
13148 shlibpath_overrides_runpath=no
13149 need_lib_prefix=no
13150 export_dynamic_flag_spec='${wl}-Blargedynsym'
13151 runpath_var=LD_RUN_PATH
13152 ;;
13153 siemens)
13154 need_lib_prefix=no
13155 ;;
13156 motorola)
13157 need_lib_prefix=no
13158 need_version=no
13159 shlibpath_overrides_runpath=no
13160 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13161 ;;
13162 esac
13163 ;;
13164
13165sysv4*MP*)
13166 if test -d /usr/nec ;then
13167 version_type=linux
13168 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13169 soname_spec='$libname${shared_ext}.$major'
13170 shlibpath_var=LD_LIBRARY_PATH
13171 fi
13172 ;;
13173
13174sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13175 version_type=freebsd-elf
13176 need_lib_prefix=no
13177 need_version=no
13178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13179 soname_spec='${libname}${release}${shared_ext}$major'
13180 shlibpath_var=LD_LIBRARY_PATH
13181 hardcode_into_libs=yes
13182 if test "$with_gnu_ld" = yes; then
13183 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13184 shlibpath_overrides_runpath=no
13185 else
13186 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13187 shlibpath_overrides_runpath=yes
13188 case $host_os in
13189 sco3.2v5*)
13190 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13191 ;;
13192 esac
13193 fi
13194 sys_lib_dlsearch_path_spec='/usr/lib'
13195 ;;
13196
13197uts4*)
13198 version_type=linux
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 shlibpath_var=LD_LIBRARY_PATH
13202 ;;
13203
13204*)
13205 dynamic_linker=no
13206 ;;
13207esac
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13209$as_echo "$dynamic_linker" >&6; }
13210test "$dynamic_linker" = no && can_build_shared=no
13211
13212variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13213if test "$GCC" = yes; then
13214 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13215fi
13216
13217{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13218$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13219hardcode_action_CXX=
13220if test -n "$hardcode_libdir_flag_spec_CXX" || \
13221 test -n "$runpath_var_CXX" || \
13222 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13223
13224 # We can hardcode non-existant directories.
13225 if test "$hardcode_direct_CXX" != no &&
13226 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13227 # have to relink, otherwise we might link with an installed library
13228 # when we should be linking with a yet-to-be-installed one
13229 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13230 test "$hardcode_minus_L_CXX" != no; then
13231 # Linking always hardcodes the temporary library directory.
13232 hardcode_action_CXX=relink
13233 else
13234 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13235 hardcode_action_CXX=immediate
13236 fi
13237else
13238 # We cannot hardcode anything, or else we can only hardcode existing
13239 # directories.
13240 hardcode_action_CXX=unsupported
13241fi
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13243$as_echo "$hardcode_action_CXX" >&6; }
13244
13245if test "$hardcode_action_CXX" = relink; then
13246 # Fast installation is not supported
13247 enable_fast_install=no
13248elif test "$shlibpath_overrides_runpath" = yes ||
13249 test "$enable_shared" = no; then
13250 # Fast installation is not necessary
13251 enable_fast_install=needless
13252fi
13253
13254
13255# The else clause should only fire when bootstrapping the
13256# libtool distribution, otherwise you forgot to ship ltmain.sh
13257# with your package, and you will get complaints that there are
13258# no rules to generate ltmain.sh.
13259if test -f "$ltmain"; then
13260 # See if we are running on zsh, and set the options which allow our commands through
13261 # without removal of \ escapes.
13262 if test -n "${ZSH_VERSION+set}" ; then
13263 setopt NO_GLOB_SUBST
13264 fi
13265 # Now quote all the things that may contain metacharacters while being
13266 # careful not to overquote the AC_SUBSTed values. We take copies of the
13267 # variables and quote the copies for generation of the libtool script.
13268 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13269 SED SHELL STRIP \
13270 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13271 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13272 deplibs_check_method reload_flag reload_cmds need_locks \
13273 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13274 lt_cv_sys_global_symbol_to_c_name_address \
13275 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13276 old_postinstall_cmds old_postuninstall_cmds \
13277 compiler_CXX \
13278 CC_CXX \
13279 LD_CXX \
13280 lt_prog_compiler_wl_CXX \
13281 lt_prog_compiler_pic_CXX \
13282 lt_prog_compiler_static_CXX \
13283 lt_prog_compiler_no_builtin_flag_CXX \
13284 export_dynamic_flag_spec_CXX \
13285 thread_safe_flag_spec_CXX \
13286 whole_archive_flag_spec_CXX \
13287 enable_shared_with_static_runtimes_CXX \
13288 old_archive_cmds_CXX \
13289 old_archive_from_new_cmds_CXX \
13290 predep_objects_CXX \
13291 postdep_objects_CXX \
13292 predeps_CXX \
13293 postdeps_CXX \
13294 compiler_lib_search_path_CXX \
13295 archive_cmds_CXX \
13296 archive_expsym_cmds_CXX \
13297 postinstall_cmds_CXX \
13298 postuninstall_cmds_CXX \
13299 old_archive_from_expsyms_cmds_CXX \
13300 allow_undefined_flag_CXX \
13301 no_undefined_flag_CXX \
13302 export_symbols_cmds_CXX \
13303 hardcode_libdir_flag_spec_CXX \
13304 hardcode_libdir_flag_spec_ld_CXX \
13305 hardcode_libdir_separator_CXX \
13306 hardcode_automatic_CXX \
13307 module_cmds_CXX \
13308 module_expsym_cmds_CXX \
13309 lt_cv_prog_compiler_c_o_CXX \
13310 exclude_expsyms_CXX \
13311 include_expsyms_CXX; do
13312
13313 case $var in
13314 old_archive_cmds_CXX | \
13315 old_archive_from_new_cmds_CXX | \
13316 archive_cmds_CXX | \
13317 archive_expsym_cmds_CXX | \
13318 module_cmds_CXX | \
13319 module_expsym_cmds_CXX | \
13320 old_archive_from_expsyms_cmds_CXX | \
13321 export_symbols_cmds_CXX | \
13322 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13323 postinstall_cmds | postuninstall_cmds | \
13324 old_postinstall_cmds | old_postuninstall_cmds | \
13325 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13326 # Double-quote double-evaled strings.
13327 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13328 ;;
13329 *)
13330 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13331 ;;
13332 esac
13333 done
13334
13335 case $lt_echo in
13336 *'\$0 --fallback-echo"')
13337 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13338 ;;
13339 esac
13340
13341cfgfile="$ofile"
13342
13343 cat <<__EOF__ >> "$cfgfile"
13344# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13345
13346# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13347
13348# Shell to use when invoking shell scripts.
13349SHELL=$lt_SHELL
13350
13351# Whether or not to build shared libraries.
13352build_libtool_libs=$enable_shared
13353
13354# Whether or not to build static libraries.
13355build_old_libs=$enable_static
13356
13357# Whether or not to add -lc for building shared libraries.
13358build_libtool_need_lc=$archive_cmds_need_lc_CXX
13359
13360# Whether or not to disallow shared libs when runtime libs are static
13361allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13362
13363# Whether or not to optimize for fast installation.
13364fast_install=$enable_fast_install
13365
13366# The host system.
13367host_alias=$host_alias
13368host=$host
13369host_os=$host_os
13370
13371# The build system.
13372build_alias=$build_alias
13373build=$build
13374build_os=$build_os
13375
13376# An echo program that does not interpret backslashes.
13377echo=$lt_echo
13378
13379# The archiver.
13380AR=$lt_AR
13381AR_FLAGS=$lt_AR_FLAGS
13382
13383# A C compiler.
13384LTCC=$lt_LTCC
13385
13386# LTCC compiler flags.
13387LTCFLAGS=$lt_LTCFLAGS
13388
13389# A language-specific compiler.
13390CC=$lt_compiler_CXX
13391
13392# Is the compiler the GNU C compiler?
13393with_gcc=$GCC_CXX
13394
13395# An ERE matcher.
13396EGREP=$lt_EGREP
13397
13398# The linker used to build libraries.
13399LD=$lt_LD_CXX
13400
13401# Whether we need hard or soft links.
13402LN_S=$lt_LN_S
13403
13404# A BSD-compatible nm program.
13405NM=$lt_NM
13406
13407# A symbol stripping program
13408STRIP=$lt_STRIP
13409
13410# Used to examine libraries when file_magic_cmd begins "file"
13411MAGIC_CMD=$MAGIC_CMD
13412
13413# Used on cygwin: DLL creation program.
13414DLLTOOL="$DLLTOOL"
13415
13416# Used on cygwin: object dumper.
13417OBJDUMP="$OBJDUMP"
13418
13419# Used on cygwin: assembler.
13420AS="$AS"
13421
13422# The name of the directory that contains temporary libtool files.
13423objdir=$objdir
13424
13425# How to create reloadable object files.
13426reload_flag=$lt_reload_flag
13427reload_cmds=$lt_reload_cmds
13428
13429# How to pass a linker flag through the compiler.
13430wl=$lt_lt_prog_compiler_wl_CXX
13431
13432# Object file suffix (normally "o").
13433objext="$ac_objext"
13434
13435# Old archive suffix (normally "a").
13436libext="$libext"
13437
13438# Shared library suffix (normally ".so").
13439shrext_cmds='$shrext_cmds'
13440
13441# Executable file suffix (normally "").
13442exeext="$exeext"
13443
13444# Additional compiler flags for building library objects.
13445pic_flag=$lt_lt_prog_compiler_pic_CXX
13446pic_mode=$pic_mode
13447
13448# What is the maximum length of a command?
13449max_cmd_len=$lt_cv_sys_max_cmd_len
13450
13451# Does compiler simultaneously support -c and -o options?
13452compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13453
13454# Must we lock files when doing compilation?
13455need_locks=$lt_need_locks
13456
13457# Do we need the lib prefix for modules?
13458need_lib_prefix=$need_lib_prefix
13459
13460# Do we need a version for libraries?
13461need_version=$need_version
13462
13463# Whether dlopen is supported.
13464dlopen_support=$enable_dlopen
13465
13466# Whether dlopen of programs is supported.
13467dlopen_self=$enable_dlopen_self
13468
13469# Whether dlopen of statically linked programs is supported.
13470dlopen_self_static=$enable_dlopen_self_static
13471
13472# Compiler flag to prevent dynamic linking.
13473link_static_flag=$lt_lt_prog_compiler_static_CXX
13474
13475# Compiler flag to turn off builtin functions.
13476no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13477
13478# Compiler flag to allow reflexive dlopens.
13479export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13480
13481# Compiler flag to generate shared objects directly from archives.
13482whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13483
13484# Compiler flag to generate thread-safe objects.
13485thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13486
13487# Library versioning type.
13488version_type=$version_type
13489
13490# Format of library name prefix.
13491libname_spec=$lt_libname_spec
13492
13493# List of archive names. First name is the real one, the rest are links.
13494# The last name is the one that the linker finds with -lNAME.
13495library_names_spec=$lt_library_names_spec
13496
13497# The coded name of the library, if different from the real name.
13498soname_spec=$lt_soname_spec
13499
13500# Commands used to build and install an old-style archive.
13501RANLIB=$lt_RANLIB
13502old_archive_cmds=$lt_old_archive_cmds_CXX
13503old_postinstall_cmds=$lt_old_postinstall_cmds
13504old_postuninstall_cmds=$lt_old_postuninstall_cmds
13505
13506# Create an old-style archive from a shared archive.
13507old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13508
13509# Create a temporary old-style archive to link instead of a shared archive.
13510old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13511
13512# Commands used to build and install a shared archive.
13513archive_cmds=$lt_archive_cmds_CXX
13514archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13515postinstall_cmds=$lt_postinstall_cmds
13516postuninstall_cmds=$lt_postuninstall_cmds
13517
13518# Commands used to build a loadable module (assumed same as above if empty)
13519module_cmds=$lt_module_cmds_CXX
13520module_expsym_cmds=$lt_module_expsym_cmds_CXX
13521
13522# Commands to strip libraries.
13523old_striplib=$lt_old_striplib
13524striplib=$lt_striplib
13525
13526# Dependencies to place before the objects being linked to create a
13527# shared library.
13528predep_objects=$lt_predep_objects_CXX
13529
13530# Dependencies to place after the objects being linked to create a
13531# shared library.
13532postdep_objects=$lt_postdep_objects_CXX
13533
13534# Dependencies to place before the objects being linked to create a
13535# shared library.
13536predeps=$lt_predeps_CXX
13537
13538# Dependencies to place after the objects being linked to create a
13539# shared library.
13540postdeps=$lt_postdeps_CXX
13541
13542# The library search path used internally by the compiler when linking
13543# a shared library.
13544compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13545
13546# Method to check whether dependent libraries are shared objects.
13547deplibs_check_method=$lt_deplibs_check_method
13548
13549# Command to use when deplibs_check_method == file_magic.
13550file_magic_cmd=$lt_file_magic_cmd
13551
13552# Flag that allows shared libraries with undefined symbols to be built.
13553allow_undefined_flag=$lt_allow_undefined_flag_CXX
13554
13555# Flag that forces no undefined symbols.
13556no_undefined_flag=$lt_no_undefined_flag_CXX
13557
13558# Commands used to finish a libtool library installation in a directory.
13559finish_cmds=$lt_finish_cmds
13560
13561# Same as above, but a single script fragment to be evaled but not shown.
13562finish_eval=$lt_finish_eval
13563
13564# Take the output of nm and produce a listing of raw symbols and C names.
13565global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13566
13567# Transform the output of nm in a proper C declaration
13568global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13569
13570# Transform the output of nm in a C name address pair
13571global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13572
13573# This is the shared library runtime path variable.
13574runpath_var=$runpath_var
13575
13576# This is the shared library path variable.
13577shlibpath_var=$shlibpath_var
13578
13579# Is shlibpath searched before the hard-coded library search path?
13580shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13581
13582# How to hardcode a shared library path into an executable.
13583hardcode_action=$hardcode_action_CXX
13584
13585# Whether we should hardcode library paths into libraries.
13586hardcode_into_libs=$hardcode_into_libs
13587
13588# Flag to hardcode \$libdir into a binary during linking.
13589# This must work even if \$libdir does not exist.
13590hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13591
13592# If ld is used when linking, flag to hardcode \$libdir into
13593# a binary during linking. This must work even if \$libdir does
13594# not exist.
13595hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13596
13597# Whether we need a single -rpath flag with a separated argument.
13598hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13599
13600# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13601# resulting binary.
13602hardcode_direct=$hardcode_direct_CXX
13603
13604# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13605# resulting binary.
13606hardcode_minus_L=$hardcode_minus_L_CXX
13607
13608# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13609# the resulting binary.
13610hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13611
13612# Set to yes if building a shared library automatically hardcodes DIR into the library
13613# and all subsequent libraries and executables linked against it.
13614hardcode_automatic=$hardcode_automatic_CXX
13615
13616# Variables whose values should be saved in libtool wrapper scripts and
13617# restored at relink time.
13618variables_saved_for_relink="$variables_saved_for_relink"
13619
13620# Whether libtool must link a program against all its dependency libraries.
13621link_all_deplibs=$link_all_deplibs_CXX
13622
13623# Compile-time system search path for libraries
13624sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13625
13626# Run-time system search path for libraries
13627sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13628
13629# Fix the shell variable \$srcfile for the compiler.
13630fix_srcfile_path="$fix_srcfile_path_CXX"
13631
13632# Set to yes if exported symbols are required.
13633always_export_symbols=$always_export_symbols_CXX
13634
13635# The commands to list exported symbols.
13636export_symbols_cmds=$lt_export_symbols_cmds_CXX
13637
13638# The commands to extract the exported symbol list from a shared archive.
13639extract_expsyms_cmds=$lt_extract_expsyms_cmds
13640
13641# Symbols that should not be listed in the preloaded symbols.
13642exclude_expsyms=$lt_exclude_expsyms_CXX
13643
13644# Symbols that must always be exported.
13645include_expsyms=$lt_include_expsyms_CXX
13646
13647# ### END LIBTOOL TAG CONFIG: $tagname
13648
13649__EOF__
13650
13651
13652else
13653 # If there is no Makefile yet, we rely on a make rule to execute
13654 # `config.status --recheck' to rerun these tests and create the
13655 # libtool script then.
13656 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13657 if test -f "$ltmain_in"; then
13658 test -f Makefile && make "$ltmain"
13659 fi
13660fi
13661
13662
13663ac_ext=c
13664ac_cpp='$CPP $CPPFLAGS'
13665ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13666ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13667ac_compiler_gnu=$ac_cv_c_compiler_gnu
13668
13669CC=$lt_save_CC
13670LDCXX=$LD
13671LD=$lt_save_LD
13672GCC=$lt_save_GCC
13673with_gnu_ldcxx=$with_gnu_ld
13674with_gnu_ld=$lt_save_with_gnu_ld
13675lt_cv_path_LDCXX=$lt_cv_path_LD
13676lt_cv_path_LD=$lt_save_path_LD
13677lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13678lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13679
13680 else
13681 tagname=""
13682 fi
13683 ;;
13684
13685 F77)
13686 if test -n "$F77" && test "X$F77" != "Xno"; then
13687
13688ac_ext=f
13689ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13690ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13691ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13692
13693
13694archive_cmds_need_lc_F77=no
13695allow_undefined_flag_F77=
13696always_export_symbols_F77=no
13697archive_expsym_cmds_F77=
13698export_dynamic_flag_spec_F77=
13699hardcode_direct_F77=no
13700hardcode_libdir_flag_spec_F77=
13701hardcode_libdir_flag_spec_ld_F77=
13702hardcode_libdir_separator_F77=
13703hardcode_minus_L_F77=no
13704hardcode_automatic_F77=no
13705module_cmds_F77=
13706module_expsym_cmds_F77=
13707link_all_deplibs_F77=unknown
13708old_archive_cmds_F77=$old_archive_cmds
13709no_undefined_flag_F77=
13710whole_archive_flag_spec_F77=
13711enable_shared_with_static_runtimes_F77=no
13712
13713# Source file extension for f77 test sources.
13714ac_ext=f
13715
13716# Object file extension for compiled f77 test sources.
13717objext=o
13718objext_F77=$objext
13719
13720# Code to be used in simple compile tests
13721lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13722
13723# Code to be used in simple link tests
13724lt_simple_link_test_code=" program t\n end\n"
13725
13726# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13727
13728# If no C compiler was specified, use CC.
13729LTCC=${LTCC-"$CC"}
13730
13731# If no C compiler flags were specified, use CFLAGS.
13732LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13733
13734# Allow CC to be a program name with arguments.
13735compiler=$CC
13736
13737
13738# save warnings/boilerplate of simple test code
13739ac_outfile=conftest.$ac_objext
13740printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13741eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13742_lt_compiler_boilerplate=`cat conftest.err`
13743$rm conftest*
13744
13745ac_outfile=conftest.$ac_objext
13746printf "$lt_simple_link_test_code" >conftest.$ac_ext
13747eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13748_lt_linker_boilerplate=`cat conftest.err`
13749$rm conftest*
13750
13751
13752# Allow CC to be a program name with arguments.
13753lt_save_CC="$CC"
13754CC=${F77-"f77"}
13755compiler=$CC
13756compiler_F77=$CC
13757for cc_temp in $compiler""; do
13758 case $cc_temp in
13759 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13760 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13761 \-*) ;;
13762 *) break;;
13763 esac
13764done
13765cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13766
13767
13768{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13769$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13771$as_echo "$can_build_shared" >&6; }
13772
13773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13774$as_echo_n "checking whether to build shared libraries... " >&6; }
13775test "$can_build_shared" = "no" && enable_shared=no
13776
13777# On AIX, shared libraries and static libraries use the same namespace, and
13778# are all built from PIC.
13779case $host_os in
13780aix3*)
13781 test "$enable_shared" = yes && enable_static=no
13782 if test -n "$RANLIB"; then
13783 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13784 postinstall_cmds='$RANLIB $lib'
13785 fi
13786 ;;
13787aix4* | aix5*)
13788 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13789 test "$enable_shared" = yes && enable_static=no
13790 fi
13791 ;;
13792esac
13793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13794$as_echo "$enable_shared" >&6; }
13795
13796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13797$as_echo_n "checking whether to build static libraries... " >&6; }
13798# Make sure either enable_shared or enable_static is yes.
13799test "$enable_shared" = yes || enable_static=yes
13800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13801$as_echo "$enable_static" >&6; }
13802
13803GCC_F77="$G77"
13804LD_F77="$LD"
13805
13806lt_prog_compiler_wl_F77=
13807lt_prog_compiler_pic_F77=
13808lt_prog_compiler_static_F77=
13809
13810{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13811$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13812
13813 if test "$GCC" = yes; then
13814 lt_prog_compiler_wl_F77='-Wl,'
13815 lt_prog_compiler_static_F77='-static'
13816
13817 case $host_os in
13818 aix*)
13819 # All AIX code is PIC.
13820 if test "$host_cpu" = ia64; then
13821 # AIX 5 now supports IA64 processor
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 fi
13824 ;;
13825
13826 amigaos*)
13827 # FIXME: we need at least 68020 code to build shared libraries, but
13828 # adding the `-m68020' flag to GCC prevents building anything better,
13829 # like `-m68040'.
13830 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13831 ;;
13832
13833 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13834 # PIC is the default for these OSes.
13835 ;;
13836
13837 mingw* | pw32* | os2*)
13838 # This hack is so that the source file can tell whether it is being
13839 # built for inclusion in a dll (and should export symbols for example).
13840 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13841 ;;
13842
13843 darwin* | rhapsody*)
13844 # PIC is the default on this platform
13845 # Common symbols not allowed in MH_DYLIB files
13846 lt_prog_compiler_pic_F77='-fno-common'
13847 ;;
13848
13849 interix3*)
13850 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13851 # Instead, we relocate shared libraries at runtime.
13852 ;;
13853
13854 msdosdjgpp*)
13855 # Just because we use GCC doesn't mean we suddenly get shared libraries
13856 # on systems that don't support them.
13857 lt_prog_compiler_can_build_shared_F77=no
13858 enable_shared=no
13859 ;;
13860
13861 sysv4*MP*)
13862 if test -d /usr/nec; then
13863 lt_prog_compiler_pic_F77=-Kconform_pic
13864 fi
13865 ;;
13866
13867 hpux*)
13868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13869 # not for PA HP-UX.
13870 case $host_cpu in
13871 hppa*64*|ia64*)
13872 # +Z the default
13873 ;;
13874 *)
13875 lt_prog_compiler_pic_F77='-fPIC'
13876 ;;
13877 esac
13878 ;;
13879
13880 *)
13881 lt_prog_compiler_pic_F77='-fPIC'
13882 ;;
13883 esac
13884 else
13885 # PORTME Check for flag to pass linker flags through the system compiler.
13886 case $host_os in
13887 aix*)
13888 lt_prog_compiler_wl_F77='-Wl,'
13889 if test "$host_cpu" = ia64; then
13890 # AIX 5 now supports IA64 processor
13891 lt_prog_compiler_static_F77='-Bstatic'
13892 else
13893 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13894 fi
13895 ;;
13896 darwin*)
13897 # PIC is the default on this platform
13898 # Common symbols not allowed in MH_DYLIB files
13899 case $cc_basename in
13900 xlc*)
13901 lt_prog_compiler_pic_F77='-qnocommon'
13902 lt_prog_compiler_wl_F77='-Wl,'
13903 ;;
13904 esac
13905 ;;
13906
13907 mingw* | pw32* | os2*)
13908 # This hack is so that the source file can tell whether it is being
13909 # built for inclusion in a dll (and should export symbols for example).
13910 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13911 ;;
13912
13913 hpux9* | hpux10* | hpux11*)
13914 lt_prog_compiler_wl_F77='-Wl,'
13915 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13916 # not for PA HP-UX.
13917 case $host_cpu in
13918 hppa*64*|ia64*)
13919 # +Z the default
13920 ;;
13921 *)
13922 lt_prog_compiler_pic_F77='+Z'
13923 ;;
13924 esac
13925 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13926 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13927 ;;
13928
13929 irix5* | irix6* | nonstopux*)
13930 lt_prog_compiler_wl_F77='-Wl,'
13931 # PIC (with -KPIC) is the default.
13932 lt_prog_compiler_static_F77='-non_shared'
13933 ;;
13934
13935 newsos6)
13936 lt_prog_compiler_pic_F77='-KPIC'
13937 lt_prog_compiler_static_F77='-Bstatic'
13938 ;;
13939
13940 linux*)
13941 case $cc_basename in
13942 icc* | ecc*)
13943 lt_prog_compiler_wl_F77='-Wl,'
13944 lt_prog_compiler_pic_F77='-KPIC'
13945 lt_prog_compiler_static_F77='-static'
13946 ;;
13947 pgcc* | pgf77* | pgf90* | pgf95*)
13948 # Portland Group compilers (*not* the Pentium gcc compiler,
13949 # which looks to be a dead project)
13950 lt_prog_compiler_wl_F77='-Wl,'
13951 lt_prog_compiler_pic_F77='-fpic'
13952 lt_prog_compiler_static_F77='-Bstatic'
13953 ;;
13954 ccc*)
13955 lt_prog_compiler_wl_F77='-Wl,'
13956 # All Alpha code is PIC.
13957 lt_prog_compiler_static_F77='-non_shared'
13958 ;;
13959 esac
13960 ;;
13961
13962 osf3* | osf4* | osf5*)
13963 lt_prog_compiler_wl_F77='-Wl,'
13964 # All OSF/1 code is PIC.
13965 lt_prog_compiler_static_F77='-non_shared'
13966 ;;
13967
13968 solaris*)
13969 lt_prog_compiler_pic_F77='-KPIC'
13970 lt_prog_compiler_static_F77='-Bstatic'
13971 case $cc_basename in
13972 f77* | f90* | f95*)
13973 lt_prog_compiler_wl_F77='-Qoption ld ';;
13974 *)
13975 lt_prog_compiler_wl_F77='-Wl,';;
13976 esac
13977 ;;
13978
13979 sunos4*)
13980 lt_prog_compiler_wl_F77='-Qoption ld '
13981 lt_prog_compiler_pic_F77='-PIC'
13982 lt_prog_compiler_static_F77='-Bstatic'
13983 ;;
13984
13985 sysv4 | sysv4.2uw2* | sysv4.3*)
13986 lt_prog_compiler_wl_F77='-Wl,'
13987 lt_prog_compiler_pic_F77='-KPIC'
13988 lt_prog_compiler_static_F77='-Bstatic'
13989 ;;
13990
13991 sysv4*MP*)
13992 if test -d /usr/nec ;then
13993 lt_prog_compiler_pic_F77='-Kconform_pic'
13994 lt_prog_compiler_static_F77='-Bstatic'
13995 fi
13996 ;;
13997
13998 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13999 lt_prog_compiler_wl_F77='-Wl,'
14000 lt_prog_compiler_pic_F77='-KPIC'
14001 lt_prog_compiler_static_F77='-Bstatic'
14002 ;;
14003
14004 unicos*)
14005 lt_prog_compiler_wl_F77='-Wl,'
14006 lt_prog_compiler_can_build_shared_F77=no
14007 ;;
14008
14009 uts4*)
14010 lt_prog_compiler_pic_F77='-pic'
14011 lt_prog_compiler_static_F77='-Bstatic'
14012 ;;
14013
14014 *)
14015 lt_prog_compiler_can_build_shared_F77=no
14016 ;;
14017 esac
14018 fi
14019
14020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
14021$as_echo "$lt_prog_compiler_pic_F77" >&6; }
14022
14023#
14024# Check to make sure the PIC flag actually works.
14025#
14026if test -n "$lt_prog_compiler_pic_F77"; then
14027
14028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14029$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14030if ${lt_prog_compiler_pic_works_F77+:} false; then :
14031 $as_echo_n "(cached) " >&6
14032else
14033 lt_prog_compiler_pic_works_F77=no
14034 ac_outfile=conftest.$ac_objext
14035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14036 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14037 # Insert the option either (1) after the last *FLAGS variable, or
14038 # (2) before a word containing "conftest.", or (3) at the end.
14039 # Note that $ac_compile itself does not contain backslashes and begins
14040 # with a dollar sign (not a hyphen), so the echo should work correctly.
14041 # The option is referenced via a variable to avoid confusing sed.
14042 lt_compile=`echo "$ac_compile" | $SED \
14043 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14045 -e 's:$: $lt_compiler_flag:'`
14046 (eval echo "\"\$as_me:14046: $lt_compile\"" >&5)
14047 (eval "$lt_compile" 2>conftest.err)
14048 ac_status=$?
14049 cat conftest.err >&5
14050 echo "$as_me:14050: \$? = $ac_status" >&5
14051 if (exit $ac_status) && test -s "$ac_outfile"; then
14052 # The compiler can only warn and ignore the option if not recognized
14053 # So say no if there are warnings other than the usual output.
14054 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14055 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14056 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14057 lt_prog_compiler_pic_works_F77=yes
14058 fi
14059 fi
14060 $rm conftest*
14061
14062fi
14063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14064$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14065
14066if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14067 case $lt_prog_compiler_pic_F77 in
14068 "" | " "*) ;;
14069 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14070 esac
14071else
14072 lt_prog_compiler_pic_F77=
14073 lt_prog_compiler_can_build_shared_F77=no
14074fi
14075
14076fi
14077case $host_os in
14078 # For platforms which do not support PIC, -DPIC is meaningless:
14079 *djgpp*)
14080 lt_prog_compiler_pic_F77=
14081 ;;
14082 *)
14083 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14084 ;;
14085esac
14086
14087#
14088# Check to make sure the static flag actually works.
14089#
14090wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14092$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14093if ${lt_prog_compiler_static_works_F77+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095else
14096 lt_prog_compiler_static_works_F77=no
14097 save_LDFLAGS="$LDFLAGS"
14098 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14099 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14100 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14101 # The linker can only warn and ignore the option if not recognized
14102 # So say no if there are warnings
14103 if test -s conftest.err; then
14104 # Append any errors to the config.log.
14105 cat conftest.err 1>&5
14106 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14107 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14108 if diff conftest.exp conftest.er2 >/dev/null; then
14109 lt_prog_compiler_static_works_F77=yes
14110 fi
14111 else
14112 lt_prog_compiler_static_works_F77=yes
14113 fi
14114 fi
14115 $rm conftest*
14116 LDFLAGS="$save_LDFLAGS"
14117
14118fi
14119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14120$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14121
14122if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14123 :
14124else
14125 lt_prog_compiler_static_F77=
14126fi
14127
14128
14129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14130$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14131if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14132 $as_echo_n "(cached) " >&6
14133else
14134 lt_cv_prog_compiler_c_o_F77=no
14135 $rm -r conftest 2>/dev/null
14136 mkdir conftest
14137 cd conftest
14138 mkdir out
14139 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14140
14141 lt_compiler_flag="-o out/conftest2.$ac_objext"
14142 # Insert the option either (1) after the last *FLAGS variable, or
14143 # (2) before a word containing "conftest.", or (3) at the end.
14144 # Note that $ac_compile itself does not contain backslashes and begins
14145 # with a dollar sign (not a hyphen), so the echo should work correctly.
14146 lt_compile=`echo "$ac_compile" | $SED \
14147 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14148 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14149 -e 's:$: $lt_compiler_flag:'`
14150 (eval echo "\"\$as_me:14150: $lt_compile\"" >&5)
14151 (eval "$lt_compile" 2>out/conftest.err)
14152 ac_status=$?
14153 cat out/conftest.err >&5
14154 echo "$as_me:14154: \$? = $ac_status" >&5
14155 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14156 then
14157 # The compiler can only warn and ignore the option if not recognized
14158 # So say no if there are warnings
14159 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14160 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14161 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14162 lt_cv_prog_compiler_c_o_F77=yes
14163 fi
14164 fi
14165 chmod u+w . 2>&5
14166 $rm conftest*
14167 # SGI C++ compiler will create directory out/ii_files/ for
14168 # template instantiation
14169 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14170 $rm out/* && rmdir out
14171 cd ..
14172 rmdir conftest
14173 $rm conftest*
14174
14175fi
14176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14177$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14178
14179
14180hard_links="nottested"
14181if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14182 # do not overwrite the value of need_locks provided by the user
14183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14184$as_echo_n "checking if we can lock with hard links... " >&6; }
14185 hard_links=yes
14186 $rm conftest*
14187 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14188 touch conftest.a
14189 ln conftest.a conftest.b 2>&5 || hard_links=no
14190 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14192$as_echo "$hard_links" >&6; }
14193 if test "$hard_links" = no; then
14194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14195$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14196 need_locks=warn
14197 fi
14198else
14199 need_locks=no
14200fi
14201
14202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14203$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14204
14205 runpath_var=
14206 allow_undefined_flag_F77=
14207 enable_shared_with_static_runtimes_F77=no
14208 archive_cmds_F77=
14209 archive_expsym_cmds_F77=
14210 old_archive_From_new_cmds_F77=
14211 old_archive_from_expsyms_cmds_F77=
14212 export_dynamic_flag_spec_F77=
14213 whole_archive_flag_spec_F77=
14214 thread_safe_flag_spec_F77=
14215 hardcode_libdir_flag_spec_F77=
14216 hardcode_libdir_flag_spec_ld_F77=
14217 hardcode_libdir_separator_F77=
14218 hardcode_direct_F77=no
14219 hardcode_minus_L_F77=no
14220 hardcode_shlibpath_var_F77=unsupported
14221 link_all_deplibs_F77=unknown
14222 hardcode_automatic_F77=no
14223 module_cmds_F77=
14224 module_expsym_cmds_F77=
14225 always_export_symbols_F77=no
14226 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14227 # include_expsyms should be a list of space-separated symbols to be *always*
14228 # included in the symbol list
14229 include_expsyms_F77=
14230 # exclude_expsyms can be an extended regexp of symbols to exclude
14231 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14232 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14233 # as well as any symbol that contains `d'.
14234 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14235 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14236 # platforms (ab)use it in PIC code, but their linkers get confused if
14237 # the symbol is explicitly referenced. Since portable code cannot
14238 # rely on this symbol name, it's probably fine to never include it in
14239 # preloaded symbol tables.
14240 extract_expsyms_cmds=
14241 # Just being paranoid about ensuring that cc_basename is set.
14242 for cc_temp in $compiler""; do
14243 case $cc_temp in
14244 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14245 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14246 \-*) ;;
14247 *) break;;
14248 esac
14249done
14250cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14251
14252 case $host_os in
14253 cygwin* | mingw* | pw32*)
14254 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14255 # When not using gcc, we currently assume that we are using
14256 # Microsoft Visual C++.
14257 if test "$GCC" != yes; then
14258 with_gnu_ld=no
14259 fi
14260 ;;
14261 interix*)
14262 # we just hope/assume this is gcc and not c89 (= MSVC++)
14263 with_gnu_ld=yes
14264 ;;
14265 openbsd*)
14266 with_gnu_ld=no
14267 ;;
14268 esac
14269
14270 ld_shlibs_F77=yes
14271 if test "$with_gnu_ld" = yes; then
14272 # If archive_cmds runs LD, not CC, wlarc should be empty
14273 wlarc='${wl}'
14274
14275 # Set some defaults for GNU ld with shared library support. These
14276 # are reset later if shared libraries are not supported. Putting them
14277 # here allows them to be overridden if necessary.
14278 runpath_var=LD_RUN_PATH
14279 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14280 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14281 # ancient GNU ld didn't support --whole-archive et. al.
14282 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14283 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14284 else
14285 whole_archive_flag_spec_F77=
14286 fi
14287 supports_anon_versioning=no
14288 case `$LD -v 2>/dev/null` in
14289 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14290 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14291 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14292 *\ 2.11.*) ;; # other 2.11 versions
14293 *) supports_anon_versioning=yes ;;
14294 esac
14295
14296 # See if GNU ld supports shared libraries.
14297 case $host_os in
14298 aix3* | aix4* | aix5*)
14299 # On AIX/PPC, the GNU linker is very broken
14300 if test "$host_cpu" != ia64; then
14301 ld_shlibs_F77=no
14302 cat <<EOF 1>&2
14303
14304*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14305*** to be unable to reliably create shared libraries on AIX.
14306*** Therefore, libtool is disabling shared libraries support. If you
14307*** really care for shared libraries, you may want to modify your PATH
14308*** so that a non-GNU linker is found, and then restart.
14309
14310EOF
14311 fi
14312 ;;
14313
14314 amigaos*)
14315 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)'
14316 hardcode_libdir_flag_spec_F77='-L$libdir'
14317 hardcode_minus_L_F77=yes
14318
14319 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14320 # that the semantics of dynamic libraries on AmigaOS, at least up
14321 # to version 4, is to share data among multiple programs linked
14322 # with the same dynamic library. Since this doesn't match the
14323 # behavior of shared libraries on other platforms, we can't use
14324 # them.
14325 ld_shlibs_F77=no
14326 ;;
14327
14328 beos*)
14329 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14330 allow_undefined_flag_F77=unsupported
14331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14332 # support --undefined. This deserves some investigation. FIXME
14333 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14334 else
14335 ld_shlibs_F77=no
14336 fi
14337 ;;
14338
14339 cygwin* | mingw* | pw32*)
14340 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14341 # as there is no search path for DLLs.
14342 hardcode_libdir_flag_spec_F77='-L$libdir'
14343 allow_undefined_flag_F77=unsupported
14344 always_export_symbols_F77=no
14345 enable_shared_with_static_runtimes_F77=yes
14346 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14347
14348 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14349 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14350 # If the export-symbols file already is a .def file (1st line
14351 # is EXPORTS), use it as is; otherwise, prepend...
14352 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14353 cp $export_symbols $output_objdir/$soname.def;
14354 else
14355 echo EXPORTS > $output_objdir/$soname.def;
14356 cat $export_symbols >> $output_objdir/$soname.def;
14357 fi~
14358 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14359 else
14360 ld_shlibs_F77=no
14361 fi
14362 ;;
14363
14364 interix3*)
14365 hardcode_direct_F77=no
14366 hardcode_shlibpath_var_F77=no
14367 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14368 export_dynamic_flag_spec_F77='${wl}-E'
14369 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14370 # Instead, shared libraries are loaded at an image base (0x10000000 by
14371 # default) and relocated if they conflict, which is a slow very memory
14372 # consuming and fragmenting process. To avoid this, we pick a random,
14373 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14374 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14375 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'
14376 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'
14377 ;;
14378
14379 linux*)
14380 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14381 tmp_addflag=
14382 case $cc_basename,$host_cpu in
14383 pgcc*) # Portland Group C compiler
14384 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'
14385 tmp_addflag=' $pic_flag'
14386 ;;
14387 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14388 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'
14389 tmp_addflag=' $pic_flag -Mnomain' ;;
14390 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14391 tmp_addflag=' -i_dynamic' ;;
14392 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14393 tmp_addflag=' -i_dynamic -nofor_main' ;;
14394 ifc* | ifort*) # Intel Fortran compiler
14395 tmp_addflag=' -nofor_main' ;;
14396 esac
14397 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14398
14399 if test $supports_anon_versioning = yes; then
14400 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14401 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14402 $echo "local: *; };" >> $output_objdir/$libname.ver~
14403 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14404 fi
14405 else
14406 ld_shlibs_F77=no
14407 fi
14408 ;;
14409
14410 netbsd*)
14411 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14412 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14413 wlarc=
14414 else
14415 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14416 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14417 fi
14418 ;;
14419
14420 solaris*)
14421 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14422 ld_shlibs_F77=no
14423 cat <<EOF 1>&2
14424
14425*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14426*** create shared libraries on Solaris systems. Therefore, libtool
14427*** is disabling shared libraries support. We urge you to upgrade GNU
14428*** binutils to release 2.9.1 or newer. Another option is to modify
14429*** your PATH or compiler configuration so that the native linker is
14430*** used, and then restart.
14431
14432EOF
14433 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14434 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14435 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14436 else
14437 ld_shlibs_F77=no
14438 fi
14439 ;;
14440
14441 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14442 case `$LD -v 2>&1` in
14443 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14444 ld_shlibs_F77=no
14445 cat <<_LT_EOF 1>&2
14446
14447*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14448*** reliably create shared libraries on SCO systems. Therefore, libtool
14449*** is disabling shared libraries support. We urge you to upgrade GNU
14450*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14451*** your PATH or compiler configuration so that the native linker is
14452*** used, and then restart.
14453
14454_LT_EOF
14455 ;;
14456 *)
14457 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14458 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14459 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14460 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14461 else
14462 ld_shlibs_F77=no
14463 fi
14464 ;;
14465 esac
14466 ;;
14467
14468 sunos4*)
14469 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14470 wlarc=
14471 hardcode_direct_F77=yes
14472 hardcode_shlibpath_var_F77=no
14473 ;;
14474
14475 *)
14476 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14477 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14478 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14479 else
14480 ld_shlibs_F77=no
14481 fi
14482 ;;
14483 esac
14484
14485 if test "$ld_shlibs_F77" = no; then
14486 runpath_var=
14487 hardcode_libdir_flag_spec_F77=
14488 export_dynamic_flag_spec_F77=
14489 whole_archive_flag_spec_F77=
14490 fi
14491 else
14492 # PORTME fill in a description of your system's linker (not GNU ld)
14493 case $host_os in
14494 aix3*)
14495 allow_undefined_flag_F77=unsupported
14496 always_export_symbols_F77=yes
14497 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'
14498 # Note: this linker hardcodes the directories in LIBPATH if there
14499 # are no directories specified by -L.
14500 hardcode_minus_L_F77=yes
14501 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14502 # Neither direct hardcoding nor static linking is supported with a
14503 # broken collect2.
14504 hardcode_direct_F77=unsupported
14505 fi
14506 ;;
14507
14508 aix4* | aix5*)
14509 if test "$host_cpu" = ia64; then
14510 # On IA64, the linker does run time linking by default, so we don't
14511 # have to do anything special.
14512 aix_use_runtimelinking=no
14513 exp_sym_flag='-Bexport'
14514 no_entry_flag=""
14515 else
14516 # If we're using GNU nm, then we don't want the "-C" option.
14517 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14518 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14519 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'
14520 else
14521 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'
14522 fi
14523 aix_use_runtimelinking=no
14524
14525 # Test if we are trying to use run time linking or normal
14526 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14527 # need to do runtime linking.
14528 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14529 for ld_flag in $LDFLAGS; do
14530 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14531 aix_use_runtimelinking=yes
14532 break
14533 fi
14534 done
14535 ;;
14536 esac
14537
14538 exp_sym_flag='-bexport'
14539 no_entry_flag='-bnoentry'
14540 fi
14541
14542 # When large executables or shared objects are built, AIX ld can
14543 # have problems creating the table of contents. If linking a library
14544 # or program results in "error TOC overflow" add -mminimal-toc to
14545 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14546 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14547
14548 archive_cmds_F77=''
14549 hardcode_direct_F77=yes
14550 hardcode_libdir_separator_F77=':'
14551 link_all_deplibs_F77=yes
14552
14553 if test "$GCC" = yes; then
14554 case $host_os in aix4.[012]|aix4.[012].*)
14555 # We only want to do this on AIX 4.2 and lower, the check
14556 # below for broken collect2 doesn't work under 4.3+
14557 collect2name=`${CC} -print-prog-name=collect2`
14558 if test -f "$collect2name" && \
14559 strings "$collect2name" | grep resolve_lib_name >/dev/null
14560 then
14561 # We have reworked collect2
14562 hardcode_direct_F77=yes
14563 else
14564 # We have old collect2
14565 hardcode_direct_F77=unsupported
14566 # It fails to find uninstalled libraries when the uninstalled
14567 # path is not listed in the libpath. Setting hardcode_minus_L
14568 # to unsupported forces relinking
14569 hardcode_minus_L_F77=yes
14570 hardcode_libdir_flag_spec_F77='-L$libdir'
14571 hardcode_libdir_separator_F77=
14572 fi
14573 ;;
14574 esac
14575 shared_flag='-shared'
14576 if test "$aix_use_runtimelinking" = yes; then
14577 shared_flag="$shared_flag "'${wl}-G'
14578 fi
14579 else
14580 # not using gcc
14581 if test "$host_cpu" = ia64; then
14582 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14583 # chokes on -Wl,-G. The following line is correct:
14584 shared_flag='-G'
14585 else
14586 if test "$aix_use_runtimelinking" = yes; then
14587 shared_flag='${wl}-G'
14588 else
14589 shared_flag='${wl}-bM:SRE'
14590 fi
14591 fi
14592 fi
14593
14594 # It seems that -bexpall does not export symbols beginning with
14595 # underscore (_), so it is better to generate a list of symbols to export.
14596 always_export_symbols_F77=yes
14597 if test "$aix_use_runtimelinking" = yes; then
14598 # Warning - without using the other runtime loading flags (-brtl),
14599 # -berok will link without error, but may produce a broken library.
14600 allow_undefined_flag_F77='-berok'
14601 # Determine the default libpath from the value encoded in an empty executable.
14602 cat > conftest.$ac_ext <<_ACEOF
14603 program main
14604
14605 end
14606_ACEOF
14607if ac_fn_f77_try_link "$LINENO"; then :
14608
14609aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14610}'`
14611# Check for a 64-bit object if we didn't find anything.
14612if 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; }
14613}'`; fi
14614fi
14615rm -f core conftest.err conftest.$ac_objext \
14616 conftest$ac_exeext conftest.$ac_ext
14617if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14618
14619 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14620 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"
14621 else
14622 if test "$host_cpu" = ia64; then
14623 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14624 allow_undefined_flag_F77="-z nodefs"
14625 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"
14626 else
14627 # Determine the default libpath from the value encoded in an empty executable.
14628 cat > conftest.$ac_ext <<_ACEOF
14629 program main
14630
14631 end
14632_ACEOF
14633if ac_fn_f77_try_link "$LINENO"; then :
14634
14635aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14636}'`
14637# Check for a 64-bit object if we didn't find anything.
14638if 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; }
14639}'`; fi
14640fi
14641rm -f core conftest.err conftest.$ac_objext \
14642 conftest$ac_exeext conftest.$ac_ext
14643if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14644
14645 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14646 # Warning - without using the other run time loading flags,
14647 # -berok will link without error, but may produce a broken library.
14648 no_undefined_flag_F77=' ${wl}-bernotok'
14649 allow_undefined_flag_F77=' ${wl}-berok'
14650 # Exported symbols can be pulled into shared objects from archives
14651 whole_archive_flag_spec_F77='$convenience'
14652 archive_cmds_need_lc_F77=yes
14653 # This is similar to how AIX traditionally builds its shared libraries.
14654 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'
14655 fi
14656 fi
14657 ;;
14658
14659 amigaos*)
14660 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)'
14661 hardcode_libdir_flag_spec_F77='-L$libdir'
14662 hardcode_minus_L_F77=yes
14663 # see comment about different semantics on the GNU ld section
14664 ld_shlibs_F77=no
14665 ;;
14666
14667 bsdi[45]*)
14668 export_dynamic_flag_spec_F77=-rdynamic
14669 ;;
14670
14671 cygwin* | mingw* | pw32*)
14672 # When not using gcc, we currently assume that we are using
14673 # Microsoft Visual C++.
14674 # hardcode_libdir_flag_spec is actually meaningless, as there is
14675 # no search path for DLLs.
14676 hardcode_libdir_flag_spec_F77=' '
14677 allow_undefined_flag_F77=unsupported
14678 # Tell ltmain to make .lib files, not .a files.
14679 libext=lib
14680 # Tell ltmain to make .dll files, not .so files.
14681 shrext_cmds=".dll"
14682 # FIXME: Setting linknames here is a bad hack.
14683 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14684 # The linker will automatically build a .lib file if we build a DLL.
14685 old_archive_From_new_cmds_F77='true'
14686 # FIXME: Should let the user specify the lib program.
14687 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14688 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14689 enable_shared_with_static_runtimes_F77=yes
14690 ;;
14691
14692 darwin* | rhapsody*)
14693 case $host_os in
14694 rhapsody* | darwin1.[012])
14695 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14696 ;;
14697 *) # Darwin 1.3 on
14698 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14699 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14700 else
14701 case ${MACOSX_DEPLOYMENT_TARGET} in
14702 10.[012])
14703 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14704 ;;
14705 10.*)
14706 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14707 ;;
14708 esac
14709 fi
14710 ;;
14711 esac
14712 archive_cmds_need_lc_F77=no
14713 hardcode_direct_F77=no
14714 hardcode_automatic_F77=yes
14715 hardcode_shlibpath_var_F77=unsupported
14716 whole_archive_flag_spec_F77=''
14717 link_all_deplibs_F77=yes
14718 if test "$GCC" = yes ; then
14719 output_verbose_link_cmd='echo'
14720 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14721 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14722 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14723 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}'
14724 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}'
14725 else
14726 case $cc_basename in
14727 xlc*)
14728 output_verbose_link_cmd='echo'
14729 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14730 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14731 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14732 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}'
14733 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}'
14734 ;;
14735 *)
14736 ld_shlibs_F77=no
14737 ;;
14738 esac
14739 fi
14740 ;;
14741
14742 dgux*)
14743 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14744 hardcode_libdir_flag_spec_F77='-L$libdir'
14745 hardcode_shlibpath_var_F77=no
14746 ;;
14747
14748 freebsd1*)
14749 ld_shlibs_F77=no
14750 ;;
14751
14752 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14753 # support. Future versions do this automatically, but an explicit c++rt0.o
14754 # does not break anything, and helps significantly (at the cost of a little
14755 # extra space).
14756 freebsd2.2*)
14757 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14758 hardcode_libdir_flag_spec_F77='-R$libdir'
14759 hardcode_direct_F77=yes
14760 hardcode_shlibpath_var_F77=no
14761 ;;
14762
14763 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14764 freebsd2*)
14765 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14766 hardcode_direct_F77=yes
14767 hardcode_minus_L_F77=yes
14768 hardcode_shlibpath_var_F77=no
14769 ;;
14770
14771 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14772 freebsd* | kfreebsd*-gnu | dragonfly*)
14773 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14774 hardcode_libdir_flag_spec_F77='-R$libdir'
14775 hardcode_direct_F77=yes
14776 hardcode_shlibpath_var_F77=no
14777 ;;
14778
14779 hpux9*)
14780 if test "$GCC" = yes; then
14781 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'
14782 else
14783 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'
14784 fi
14785 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14786 hardcode_libdir_separator_F77=:
14787 hardcode_direct_F77=yes
14788
14789 # hardcode_minus_L: Not really in the search PATH,
14790 # but as the default location of the library.
14791 hardcode_minus_L_F77=yes
14792 export_dynamic_flag_spec_F77='${wl}-E'
14793 ;;
14794
14795 hpux10*)
14796 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14797 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14798 else
14799 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14800 fi
14801 if test "$with_gnu_ld" = no; then
14802 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14803 hardcode_libdir_separator_F77=:
14804
14805 hardcode_direct_F77=yes
14806 export_dynamic_flag_spec_F77='${wl}-E'
14807
14808 # hardcode_minus_L: Not really in the search PATH,
14809 # but as the default location of the library.
14810 hardcode_minus_L_F77=yes
14811 fi
14812 ;;
14813
14814 hpux11*)
14815 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14816 case $host_cpu in
14817 hppa*64*)
14818 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14819 ;;
14820 ia64*)
14821 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14822 ;;
14823 *)
14824 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14825 ;;
14826 esac
14827 else
14828 case $host_cpu in
14829 hppa*64*)
14830 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14831 ;;
14832 ia64*)
14833 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14834 ;;
14835 *)
14836 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14837 ;;
14838 esac
14839 fi
14840 if test "$with_gnu_ld" = no; then
14841 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14842 hardcode_libdir_separator_F77=:
14843
14844 case $host_cpu in
14845 hppa*64*|ia64*)
14846 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14847 hardcode_direct_F77=no
14848 hardcode_shlibpath_var_F77=no
14849 ;;
14850 *)
14851 hardcode_direct_F77=yes
14852 export_dynamic_flag_spec_F77='${wl}-E'
14853
14854 # hardcode_minus_L: Not really in the search PATH,
14855 # but as the default location of the library.
14856 hardcode_minus_L_F77=yes
14857 ;;
14858 esac
14859 fi
14860 ;;
14861
14862 irix5* | irix6* | nonstopux*)
14863 if test "$GCC" = yes; then
14864 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'
14865 else
14866 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'
14867 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14868 fi
14869 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14870 hardcode_libdir_separator_F77=:
14871 link_all_deplibs_F77=yes
14872 ;;
14873
14874 netbsd*)
14875 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14876 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14877 else
14878 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14879 fi
14880 hardcode_libdir_flag_spec_F77='-R$libdir'
14881 hardcode_direct_F77=yes
14882 hardcode_shlibpath_var_F77=no
14883 ;;
14884
14885 newsos6)
14886 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14887 hardcode_direct_F77=yes
14888 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14889 hardcode_libdir_separator_F77=:
14890 hardcode_shlibpath_var_F77=no
14891 ;;
14892
14893 openbsd*)
14894 hardcode_direct_F77=yes
14895 hardcode_shlibpath_var_F77=no
14896 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14897 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14898 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14899 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14900 export_dynamic_flag_spec_F77='${wl}-E'
14901 else
14902 case $host_os in
14903 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14904 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14905 hardcode_libdir_flag_spec_F77='-R$libdir'
14906 ;;
14907 *)
14908 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14909 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14910 ;;
14911 esac
14912 fi
14913 ;;
14914
14915 os2*)
14916 hardcode_libdir_flag_spec_F77='-L$libdir'
14917 hardcode_minus_L_F77=yes
14918 allow_undefined_flag_F77=unsupported
14919 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'
14920 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14921 ;;
14922
14923 osf3*)
14924 if test "$GCC" = yes; then
14925 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14926 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'
14927 else
14928 allow_undefined_flag_F77=' -expect_unresolved \*'
14929 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'
14930 fi
14931 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14932 hardcode_libdir_separator_F77=:
14933 ;;
14934
14935 osf4* | osf5*) # as osf3* with the addition of -msym flag
14936 if test "$GCC" = yes; then
14937 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14938 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'
14939 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14940 else
14941 allow_undefined_flag_F77=' -expect_unresolved \*'
14942 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'
14943 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~
14944 $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'
14945
14946 # Both c and cxx compiler support -rpath directly
14947 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14948 fi
14949 hardcode_libdir_separator_F77=:
14950 ;;
14951
14952 solaris*)
14953 no_undefined_flag_F77=' -z text'
14954 if test "$GCC" = yes; then
14955 wlarc='${wl}'
14956 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14957 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14958 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14959 else
14960 wlarc=''
14961 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14962 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14963 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14964 fi
14965 hardcode_libdir_flag_spec_F77='-R$libdir'
14966 hardcode_shlibpath_var_F77=no
14967 case $host_os in
14968 solaris2.[0-5] | solaris2.[0-5].*) ;;
14969 *)
14970 # The compiler driver will combine linker options so we
14971 # cannot just pass the convience library names through
14972 # without $wl, iff we do not link with $LD.
14973 # Luckily, gcc supports the same syntax we need for Sun Studio.
14974 # Supported since Solaris 2.6 (maybe 2.5.1?)
14975 case $wlarc in
14976 '')
14977 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14978 *)
14979 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' ;;
14980 esac ;;
14981 esac
14982 link_all_deplibs_F77=yes
14983 ;;
14984
14985 sunos4*)
14986 if test "x$host_vendor" = xsequent; then
14987 # Use $CC to link under sequent, because it throws in some extra .o
14988 # files that make .init and .fini sections work.
14989 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14990 else
14991 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14992 fi
14993 hardcode_libdir_flag_spec_F77='-L$libdir'
14994 hardcode_direct_F77=yes
14995 hardcode_minus_L_F77=yes
14996 hardcode_shlibpath_var_F77=no
14997 ;;
14998
14999 sysv4)
15000 case $host_vendor in
15001 sni)
15002 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15003 hardcode_direct_F77=yes # is this really true???
15004 ;;
15005 siemens)
15006 ## LD is ld it makes a PLAMLIB
15007 ## CC just makes a GrossModule.
15008 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15009 reload_cmds_F77='$CC -r -o $output$reload_objs'
15010 hardcode_direct_F77=no
15011 ;;
15012 motorola)
15013 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15014 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15015 ;;
15016 esac
15017 runpath_var='LD_RUN_PATH'
15018 hardcode_shlibpath_var_F77=no
15019 ;;
15020
15021 sysv4.3*)
15022 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15023 hardcode_shlibpath_var_F77=no
15024 export_dynamic_flag_spec_F77='-Bexport'
15025 ;;
15026
15027 sysv4*MP*)
15028 if test -d /usr/nec; then
15029 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15030 hardcode_shlibpath_var_F77=no
15031 runpath_var=LD_RUN_PATH
15032 hardcode_runpath_var=yes
15033 ld_shlibs_F77=yes
15034 fi
15035 ;;
15036
15037 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15038 no_undefined_flag_F77='${wl}-z,text'
15039 archive_cmds_need_lc_F77=no
15040 hardcode_shlibpath_var_F77=no
15041 runpath_var='LD_RUN_PATH'
15042
15043 if test "$GCC" = yes; then
15044 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15045 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15046 else
15047 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15049 fi
15050 ;;
15051
15052 sysv5* | sco3.2v5* | sco5v6*)
15053 # Note: We can NOT use -z defs as we might desire, because we do not
15054 # link with -lc, and that would cause any symbols used from libc to
15055 # always be unresolved, which means just about no library would
15056 # ever link correctly. If we're not using GNU ld we use -z text
15057 # though, which does catch some bad symbols but isn't as heavy-handed
15058 # as -z defs.
15059 no_undefined_flag_F77='${wl}-z,text'
15060 allow_undefined_flag_F77='${wl}-z,nodefs'
15061 archive_cmds_need_lc_F77=no
15062 hardcode_shlibpath_var_F77=no
15063 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15064 hardcode_libdir_separator_F77=':'
15065 link_all_deplibs_F77=yes
15066 export_dynamic_flag_spec_F77='${wl}-Bexport'
15067 runpath_var='LD_RUN_PATH'
15068
15069 if test "$GCC" = yes; then
15070 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15071 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15072 else
15073 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15074 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15075 fi
15076 ;;
15077
15078 uts4*)
15079 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15080 hardcode_libdir_flag_spec_F77='-L$libdir'
15081 hardcode_shlibpath_var_F77=no
15082 ;;
15083
15084 *)
15085 ld_shlibs_F77=no
15086 ;;
15087 esac
15088 fi
15089
15090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15091$as_echo "$ld_shlibs_F77" >&6; }
15092test "$ld_shlibs_F77" = no && can_build_shared=no
15093
15094#
15095# Do we need to explicitly link libc?
15096#
15097case "x$archive_cmds_need_lc_F77" in
15098x|xyes)
15099 # Assume -lc should be added
15100 archive_cmds_need_lc_F77=yes
15101
15102 if test "$enable_shared" = yes && test "$GCC" = yes; then
15103 case $archive_cmds_F77 in
15104 *'~'*)
15105 # FIXME: we may have to deal with multi-command sequences.
15106 ;;
15107 '$CC '*)
15108 # Test whether the compiler implicitly links with -lc since on some
15109 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15110 # to ld, don't add -lc before -lgcc.
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15112$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15113 $rm conftest*
15114 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15115
15116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15117 (eval $ac_compile) 2>&5
15118 ac_status=$?
15119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15120 test $ac_status = 0; } 2>conftest.err; then
15121 soname=conftest
15122 lib=conftest
15123 libobjs=conftest.$ac_objext
15124 deplibs=
15125 wl=$lt_prog_compiler_wl_F77
15126 pic_flag=$lt_prog_compiler_pic_F77
15127 compiler_flags=-v
15128 linker_flags=-v
15129 verstring=
15130 output_objdir=.
15131 libname=conftest
15132 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15133 allow_undefined_flag_F77=
15134 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15135 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15136 ac_status=$?
15137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15138 test $ac_status = 0; }
15139 then
15140 archive_cmds_need_lc_F77=no
15141 else
15142 archive_cmds_need_lc_F77=yes
15143 fi
15144 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15145 else
15146 cat conftest.err 1>&5
15147 fi
15148 $rm conftest*
15149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15150$as_echo "$archive_cmds_need_lc_F77" >&6; }
15151 ;;
15152 esac
15153 fi
15154 ;;
15155esac
15156
15157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15158$as_echo_n "checking dynamic linker characteristics... " >&6; }
15159library_names_spec=
15160libname_spec='lib$name'
15161soname_spec=
15162shrext_cmds=".so"
15163postinstall_cmds=
15164postuninstall_cmds=
15165finish_cmds=
15166finish_eval=
15167shlibpath_var=
15168shlibpath_overrides_runpath=unknown
15169version_type=none
15170dynamic_linker="$host_os ld.so"
15171sys_lib_dlsearch_path_spec="/lib /usr/lib"
15172if test "$GCC" = yes; then
15173 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15174 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15175 # if the path contains ";" then we assume it to be the separator
15176 # otherwise default to the standard path separator (i.e. ":") - it is
15177 # assumed that no part of a normal pathname contains ";" but that should
15178 # okay in the real world where ";" in dirpaths is itself problematic.
15179 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15180 else
15181 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15182 fi
15183else
15184 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15185fi
15186need_lib_prefix=unknown
15187hardcode_into_libs=no
15188
15189# when you set need_version to no, make sure it does not cause -set_version
15190# flags to be left without arguments
15191need_version=unknown
15192
15193case $host_os in
15194aix3*)
15195 version_type=linux
15196 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15197 shlibpath_var=LIBPATH
15198
15199 # AIX 3 has no versioning support, so we append a major version to the name.
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 ;;
15202
15203aix4* | aix5*)
15204 version_type=linux
15205 need_lib_prefix=no
15206 need_version=no
15207 hardcode_into_libs=yes
15208 if test "$host_cpu" = ia64; then
15209 # AIX 5 supports IA64
15210 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15211 shlibpath_var=LD_LIBRARY_PATH
15212 else
15213 # With GCC up to 2.95.x, collect2 would create an import file
15214 # for dependence libraries. The import file would start with
15215 # the line `#! .'. This would cause the generated library to
15216 # depend on `.', always an invalid library. This was fixed in
15217 # development snapshots of GCC prior to 3.0.
15218 case $host_os in
15219 aix4 | aix4.[01] | aix4.[01].*)
15220 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15221 echo ' yes '
15222 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15223 :
15224 else
15225 can_build_shared=no
15226 fi
15227 ;;
15228 esac
15229 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15230 # soname into executable. Probably we can add versioning support to
15231 # collect2, so additional links can be useful in future.
15232 if test "$aix_use_runtimelinking" = yes; then
15233 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15234 # instead of lib<name>.a to let people know that these are not
15235 # typical AIX shared libraries.
15236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15237 else
15238 # We preserve .a as extension for shared libraries through AIX4.2
15239 # and later when we are not doing run time linking.
15240 library_names_spec='${libname}${release}.a $libname.a'
15241 soname_spec='${libname}${release}${shared_ext}$major'
15242 fi
15243 shlibpath_var=LIBPATH
15244 fi
15245 ;;
15246
15247amigaos*)
15248 library_names_spec='$libname.ixlibrary $libname.a'
15249 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15250 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'
15251 ;;
15252
15253beos*)
15254 library_names_spec='${libname}${shared_ext}'
15255 dynamic_linker="$host_os ld.so"
15256 shlibpath_var=LIBRARY_PATH
15257 ;;
15258
15259bsdi[45]*)
15260 version_type=linux
15261 need_version=no
15262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15263 soname_spec='${libname}${release}${shared_ext}$major'
15264 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15265 shlibpath_var=LD_LIBRARY_PATH
15266 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15267 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15268 # the default ld.so.conf also contains /usr/contrib/lib and
15269 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15270 # libtool to hard-code these into programs
15271 ;;
15272
15273cygwin* | mingw* | pw32*)
15274 version_type=windows
15275 shrext_cmds=".dll"
15276 need_version=no
15277 need_lib_prefix=no
15278
15279 case $GCC,$host_os in
15280 yes,cygwin* | yes,mingw* | yes,pw32*)
15281 library_names_spec='$libname.dll.a'
15282 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15283 postinstall_cmds='base_file=`basename \${file}`~
15284 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15285 dldir=$destdir/`dirname \$dlpath`~
15286 test -d \$dldir || mkdir -p \$dldir~
15287 $install_prog $dir/$dlname \$dldir/$dlname~
15288 chmod a+x \$dldir/$dlname'
15289 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15290 dlpath=$dir/\$dldll~
15291 $rm \$dlpath'
15292 shlibpath_overrides_runpath=yes
15293
15294 case $host_os in
15295 cygwin*)
15296 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15297 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15298 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15299 ;;
15300 mingw*)
15301 # MinGW DLLs use traditional 'lib' prefix
15302 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15303 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15304 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15305 # It is most probably a Windows format PATH printed by
15306 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15307 # path with ; separators, and with drive letters. We can handle the
15308 # drive letters (cygwin fileutils understands them), so leave them,
15309 # especially as we might pass files found there to a mingw objdump,
15310 # which wouldn't understand a cygwinified path. Ahh.
15311 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15312 else
15313 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15314 fi
15315 ;;
15316 pw32*)
15317 # pw32 DLLs use 'pw' prefix rather than 'lib'
15318 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15319 ;;
15320 esac
15321 ;;
15322
15323 *)
15324 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15325 ;;
15326 esac
15327 dynamic_linker='Win32 ld.exe'
15328 # FIXME: first we should search . and the directory the executable is in
15329 shlibpath_var=PATH
15330 ;;
15331
15332darwin* | rhapsody*)
15333 dynamic_linker="$host_os dyld"
15334 version_type=darwin
15335 need_lib_prefix=no
15336 need_version=no
15337 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15338 soname_spec='${libname}${release}${major}$shared_ext'
15339 shlibpath_overrides_runpath=yes
15340 shlibpath_var=DYLD_LIBRARY_PATH
15341 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15342 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15343 if test "$GCC" = yes; then
15344 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"`
15345 else
15346 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15347 fi
15348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15349 ;;
15350
15351dgux*)
15352 version_type=linux
15353 need_lib_prefix=no
15354 need_version=no
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15356 soname_spec='${libname}${release}${shared_ext}$major'
15357 shlibpath_var=LD_LIBRARY_PATH
15358 ;;
15359
15360freebsd1*)
15361 dynamic_linker=no
15362 ;;
15363
15364kfreebsd*-gnu)
15365 version_type=linux
15366 need_lib_prefix=no
15367 need_version=no
15368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15369 soname_spec='${libname}${release}${shared_ext}$major'
15370 shlibpath_var=LD_LIBRARY_PATH
15371 shlibpath_overrides_runpath=no
15372 hardcode_into_libs=yes
15373 dynamic_linker='GNU ld.so'
15374 ;;
15375
15376freebsd* | dragonfly*)
15377 # DragonFly does not have aout. When/if they implement a new
15378 # versioning mechanism, adjust this.
15379 if test -x /usr/bin/objformat; then
15380 objformat=`/usr/bin/objformat`
15381 else
15382 case $host_os in
15383 freebsd[123]*) objformat=aout ;;
15384 *) objformat=elf ;;
15385 esac
15386 fi
15387 version_type=freebsd-$objformat
15388 case $version_type in
15389 freebsd-elf*)
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15391 need_version=no
15392 need_lib_prefix=no
15393 ;;
15394 freebsd-*)
15395 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15396 need_version=yes
15397 ;;
15398 esac
15399 shlibpath_var=LD_LIBRARY_PATH
15400 case $host_os in
15401 freebsd2*)
15402 shlibpath_overrides_runpath=yes
15403 ;;
15404 freebsd3.[01]* | freebsdelf3.[01]*)
15405 shlibpath_overrides_runpath=yes
15406 hardcode_into_libs=yes
15407 ;;
15408 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15409 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15410 shlibpath_overrides_runpath=no
15411 hardcode_into_libs=yes
15412 ;;
15413 freebsd*) # from 4.6 on
15414 shlibpath_overrides_runpath=yes
15415 hardcode_into_libs=yes
15416 ;;
15417 esac
15418 ;;
15419
15420gnu*)
15421 version_type=linux
15422 need_lib_prefix=no
15423 need_version=no
15424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15425 soname_spec='${libname}${release}${shared_ext}$major'
15426 shlibpath_var=LD_LIBRARY_PATH
15427 hardcode_into_libs=yes
15428 ;;
15429
15430hpux9* | hpux10* | hpux11*)
15431 # Give a soname corresponding to the major version so that dld.sl refuses to
15432 # link against other versions.
15433 version_type=sunos
15434 need_lib_prefix=no
15435 need_version=no
15436 case $host_cpu in
15437 ia64*)
15438 shrext_cmds='.so'
15439 hardcode_into_libs=yes
15440 dynamic_linker="$host_os dld.so"
15441 shlibpath_var=LD_LIBRARY_PATH
15442 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15444 soname_spec='${libname}${release}${shared_ext}$major'
15445 if test "X$HPUX_IA64_MODE" = X32; then
15446 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15447 else
15448 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15449 fi
15450 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15451 ;;
15452 hppa*64*)
15453 shrext_cmds='.sl'
15454 hardcode_into_libs=yes
15455 dynamic_linker="$host_os dld.sl"
15456 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15457 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15458 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15459 soname_spec='${libname}${release}${shared_ext}$major'
15460 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15462 ;;
15463 *)
15464 shrext_cmds='.sl'
15465 dynamic_linker="$host_os dld.sl"
15466 shlibpath_var=SHLIB_PATH
15467 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15469 soname_spec='${libname}${release}${shared_ext}$major'
15470 ;;
15471 esac
15472 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15473 postinstall_cmds='chmod 555 $lib'
15474 ;;
15475
15476interix3*)
15477 version_type=linux
15478 need_lib_prefix=no
15479 need_version=no
15480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15481 soname_spec='${libname}${release}${shared_ext}$major'
15482 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15483 shlibpath_var=LD_LIBRARY_PATH
15484 shlibpath_overrides_runpath=no
15485 hardcode_into_libs=yes
15486 ;;
15487
15488irix5* | irix6* | nonstopux*)
15489 case $host_os in
15490 nonstopux*) version_type=nonstopux ;;
15491 *)
15492 if test "$lt_cv_prog_gnu_ld" = yes; then
15493 version_type=linux
15494 else
15495 version_type=irix
15496 fi ;;
15497 esac
15498 need_lib_prefix=no
15499 need_version=no
15500 soname_spec='${libname}${release}${shared_ext}$major'
15501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15502 case $host_os in
15503 irix5* | nonstopux*)
15504 libsuff= shlibsuff=
15505 ;;
15506 *)
15507 case $LD in # libtool.m4 will add one of these switches to LD
15508 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15509 libsuff= shlibsuff= libmagic=32-bit;;
15510 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15511 libsuff=32 shlibsuff=N32 libmagic=N32;;
15512 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15513 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15514 *) libsuff= shlibsuff= libmagic=never-match;;
15515 esac
15516 ;;
15517 esac
15518 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15519 shlibpath_overrides_runpath=no
15520 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15521 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15522 hardcode_into_libs=yes
15523 ;;
15524
15525# No shared lib support for Linux oldld, aout, or coff.
15526linux*oldld* | linux*aout* | linux*coff*)
15527 dynamic_linker=no
15528 ;;
15529
15530# This must be Linux ELF.
15531linux*)
15532 version_type=linux
15533 need_lib_prefix=no
15534 need_version=no
15535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15538 shlibpath_var=LD_LIBRARY_PATH
15539 shlibpath_overrides_runpath=no
15540 # This implies no fast_install, which is unacceptable.
15541 # Some rework will be needed to allow for fast_install
15542 # before this can be enabled.
15543 hardcode_into_libs=yes
15544
15545 # Append ld.so.conf contents to the search path
15546 if test -f /etc/ld.so.conf; then
15547 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15548 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15549 fi
15550
15551 # We used to test for /lib/ld.so.1 and disable shared libraries on
15552 # powerpc, because MkLinux only supported shared libraries with the
15553 # GNU dynamic linker. Since this was broken with cross compilers,
15554 # most powerpc-linux boxes support dynamic linking these days and
15555 # people can always --disable-shared, the test was removed, and we
15556 # assume the GNU/Linux dynamic linker is in use.
15557 dynamic_linker='GNU/Linux ld.so'
15558 ;;
15559
15560knetbsd*-gnu)
15561 version_type=linux
15562 need_lib_prefix=no
15563 need_version=no
15564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15565 soname_spec='${libname}${release}${shared_ext}$major'
15566 shlibpath_var=LD_LIBRARY_PATH
15567 shlibpath_overrides_runpath=no
15568 hardcode_into_libs=yes
15569 dynamic_linker='GNU ld.so'
15570 ;;
15571
15572netbsd*)
15573 version_type=sunos
15574 need_lib_prefix=no
15575 need_version=no
15576 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15579 dynamic_linker='NetBSD (a.out) ld.so'
15580 else
15581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15582 soname_spec='${libname}${release}${shared_ext}$major'
15583 dynamic_linker='NetBSD ld.elf_so'
15584 fi
15585 shlibpath_var=LD_LIBRARY_PATH
15586 shlibpath_overrides_runpath=yes
15587 hardcode_into_libs=yes
15588 ;;
15589
15590newsos6)
15591 version_type=linux
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15593 shlibpath_var=LD_LIBRARY_PATH
15594 shlibpath_overrides_runpath=yes
15595 ;;
15596
15597nto-qnx*)
15598 version_type=linux
15599 need_lib_prefix=no
15600 need_version=no
15601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15602 soname_spec='${libname}${release}${shared_ext}$major'
15603 shlibpath_var=LD_LIBRARY_PATH
15604 shlibpath_overrides_runpath=yes
15605 ;;
15606
15607openbsd*)
15608 version_type=sunos
15609 sys_lib_dlsearch_path_spec="/usr/lib"
15610 need_lib_prefix=no
15611 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15612 case $host_os in
15613 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15614 *) need_version=no ;;
15615 esac
15616 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15617 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15618 shlibpath_var=LD_LIBRARY_PATH
15619 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15620 case $host_os in
15621 openbsd2.[89] | openbsd2.[89].*)
15622 shlibpath_overrides_runpath=no
15623 ;;
15624 *)
15625 shlibpath_overrides_runpath=yes
15626 ;;
15627 esac
15628 else
15629 shlibpath_overrides_runpath=yes
15630 fi
15631 ;;
15632
15633os2*)
15634 libname_spec='$name'
15635 shrext_cmds=".dll"
15636 need_lib_prefix=no
15637 library_names_spec='$libname${shared_ext} $libname.a'
15638 dynamic_linker='OS/2 ld.exe'
15639 shlibpath_var=LIBPATH
15640 ;;
15641
15642osf3* | osf4* | osf5*)
15643 version_type=osf
15644 need_lib_prefix=no
15645 need_version=no
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15648 shlibpath_var=LD_LIBRARY_PATH
15649 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15650 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15651 ;;
15652
15653solaris*)
15654 version_type=linux
15655 need_lib_prefix=no
15656 need_version=no
15657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15658 soname_spec='${libname}${release}${shared_ext}$major'
15659 shlibpath_var=LD_LIBRARY_PATH
15660 shlibpath_overrides_runpath=yes
15661 hardcode_into_libs=yes
15662 # ldd complains unless libraries are executable
15663 postinstall_cmds='chmod +x $lib'
15664 ;;
15665
15666sunos4*)
15667 version_type=sunos
15668 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15669 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15670 shlibpath_var=LD_LIBRARY_PATH
15671 shlibpath_overrides_runpath=yes
15672 if test "$with_gnu_ld" = yes; then
15673 need_lib_prefix=no
15674 fi
15675 need_version=yes
15676 ;;
15677
15678sysv4 | sysv4.3*)
15679 version_type=linux
15680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15681 soname_spec='${libname}${release}${shared_ext}$major'
15682 shlibpath_var=LD_LIBRARY_PATH
15683 case $host_vendor in
15684 sni)
15685 shlibpath_overrides_runpath=no
15686 need_lib_prefix=no
15687 export_dynamic_flag_spec='${wl}-Blargedynsym'
15688 runpath_var=LD_RUN_PATH
15689 ;;
15690 siemens)
15691 need_lib_prefix=no
15692 ;;
15693 motorola)
15694 need_lib_prefix=no
15695 need_version=no
15696 shlibpath_overrides_runpath=no
15697 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15698 ;;
15699 esac
15700 ;;
15701
15702sysv4*MP*)
15703 if test -d /usr/nec ;then
15704 version_type=linux
15705 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15706 soname_spec='$libname${shared_ext}.$major'
15707 shlibpath_var=LD_LIBRARY_PATH
15708 fi
15709 ;;
15710
15711sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15712 version_type=freebsd-elf
15713 need_lib_prefix=no
15714 need_version=no
15715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15716 soname_spec='${libname}${release}${shared_ext}$major'
15717 shlibpath_var=LD_LIBRARY_PATH
15718 hardcode_into_libs=yes
15719 if test "$with_gnu_ld" = yes; then
15720 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15721 shlibpath_overrides_runpath=no
15722 else
15723 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15724 shlibpath_overrides_runpath=yes
15725 case $host_os in
15726 sco3.2v5*)
15727 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15728 ;;
15729 esac
15730 fi
15731 sys_lib_dlsearch_path_spec='/usr/lib'
15732 ;;
15733
15734uts4*)
15735 version_type=linux
15736 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15737 soname_spec='${libname}${release}${shared_ext}$major'
15738 shlibpath_var=LD_LIBRARY_PATH
15739 ;;
15740
15741*)
15742 dynamic_linker=no
15743 ;;
15744esac
15745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15746$as_echo "$dynamic_linker" >&6; }
15747test "$dynamic_linker" = no && can_build_shared=no
15748
15749variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15750if test "$GCC" = yes; then
15751 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15752fi
15753
15754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15755$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15756hardcode_action_F77=
15757if test -n "$hardcode_libdir_flag_spec_F77" || \
15758 test -n "$runpath_var_F77" || \
15759 test "X$hardcode_automatic_F77" = "Xyes" ; then
15760
15761 # We can hardcode non-existant directories.
15762 if test "$hardcode_direct_F77" != no &&
15763 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15764 # have to relink, otherwise we might link with an installed library
15765 # when we should be linking with a yet-to-be-installed one
15766 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15767 test "$hardcode_minus_L_F77" != no; then
15768 # Linking always hardcodes the temporary library directory.
15769 hardcode_action_F77=relink
15770 else
15771 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15772 hardcode_action_F77=immediate
15773 fi
15774else
15775 # We cannot hardcode anything, or else we can only hardcode existing
15776 # directories.
15777 hardcode_action_F77=unsupported
15778fi
15779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15780$as_echo "$hardcode_action_F77" >&6; }
15781
15782if test "$hardcode_action_F77" = relink; then
15783 # Fast installation is not supported
15784 enable_fast_install=no
15785elif test "$shlibpath_overrides_runpath" = yes ||
15786 test "$enable_shared" = no; then
15787 # Fast installation is not necessary
15788 enable_fast_install=needless
15789fi
15790
15791
15792# The else clause should only fire when bootstrapping the
15793# libtool distribution, otherwise you forgot to ship ltmain.sh
15794# with your package, and you will get complaints that there are
15795# no rules to generate ltmain.sh.
15796if test -f "$ltmain"; then
15797 # See if we are running on zsh, and set the options which allow our commands through
15798 # without removal of \ escapes.
15799 if test -n "${ZSH_VERSION+set}" ; then
15800 setopt NO_GLOB_SUBST
15801 fi
15802 # Now quote all the things that may contain metacharacters while being
15803 # careful not to overquote the AC_SUBSTed values. We take copies of the
15804 # variables and quote the copies for generation of the libtool script.
15805 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15806 SED SHELL STRIP \
15807 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15808 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15809 deplibs_check_method reload_flag reload_cmds need_locks \
15810 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15811 lt_cv_sys_global_symbol_to_c_name_address \
15812 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15813 old_postinstall_cmds old_postuninstall_cmds \
15814 compiler_F77 \
15815 CC_F77 \
15816 LD_F77 \
15817 lt_prog_compiler_wl_F77 \
15818 lt_prog_compiler_pic_F77 \
15819 lt_prog_compiler_static_F77 \
15820 lt_prog_compiler_no_builtin_flag_F77 \
15821 export_dynamic_flag_spec_F77 \
15822 thread_safe_flag_spec_F77 \
15823 whole_archive_flag_spec_F77 \
15824 enable_shared_with_static_runtimes_F77 \
15825 old_archive_cmds_F77 \
15826 old_archive_from_new_cmds_F77 \
15827 predep_objects_F77 \
15828 postdep_objects_F77 \
15829 predeps_F77 \
15830 postdeps_F77 \
15831 compiler_lib_search_path_F77 \
15832 archive_cmds_F77 \
15833 archive_expsym_cmds_F77 \
15834 postinstall_cmds_F77 \
15835 postuninstall_cmds_F77 \
15836 old_archive_from_expsyms_cmds_F77 \
15837 allow_undefined_flag_F77 \
15838 no_undefined_flag_F77 \
15839 export_symbols_cmds_F77 \
15840 hardcode_libdir_flag_spec_F77 \
15841 hardcode_libdir_flag_spec_ld_F77 \
15842 hardcode_libdir_separator_F77 \
15843 hardcode_automatic_F77 \
15844 module_cmds_F77 \
15845 module_expsym_cmds_F77 \
15846 lt_cv_prog_compiler_c_o_F77 \
15847 exclude_expsyms_F77 \
15848 include_expsyms_F77; do
15849
15850 case $var in
15851 old_archive_cmds_F77 | \
15852 old_archive_from_new_cmds_F77 | \
15853 archive_cmds_F77 | \
15854 archive_expsym_cmds_F77 | \
15855 module_cmds_F77 | \
15856 module_expsym_cmds_F77 | \
15857 old_archive_from_expsyms_cmds_F77 | \
15858 export_symbols_cmds_F77 | \
15859 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15860 postinstall_cmds | postuninstall_cmds | \
15861 old_postinstall_cmds | old_postuninstall_cmds | \
15862 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15863 # Double-quote double-evaled strings.
15864 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15865 ;;
15866 *)
15867 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15868 ;;
15869 esac
15870 done
15871
15872 case $lt_echo in
15873 *'\$0 --fallback-echo"')
15874 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15875 ;;
15876 esac
15877
15878cfgfile="$ofile"
15879
15880 cat <<__EOF__ >> "$cfgfile"
15881# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15882
15883# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15884
15885# Shell to use when invoking shell scripts.
15886SHELL=$lt_SHELL
15887
15888# Whether or not to build shared libraries.
15889build_libtool_libs=$enable_shared
15890
15891# Whether or not to build static libraries.
15892build_old_libs=$enable_static
15893
15894# Whether or not to add -lc for building shared libraries.
15895build_libtool_need_lc=$archive_cmds_need_lc_F77
15896
15897# Whether or not to disallow shared libs when runtime libs are static
15898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15899
15900# Whether or not to optimize for fast installation.
15901fast_install=$enable_fast_install
15902
15903# The host system.
15904host_alias=$host_alias
15905host=$host
15906host_os=$host_os
15907
15908# The build system.
15909build_alias=$build_alias
15910build=$build
15911build_os=$build_os
15912
15913# An echo program that does not interpret backslashes.
15914echo=$lt_echo
15915
15916# The archiver.
15917AR=$lt_AR
15918AR_FLAGS=$lt_AR_FLAGS
15919
15920# A C compiler.
15921LTCC=$lt_LTCC
15922
15923# LTCC compiler flags.
15924LTCFLAGS=$lt_LTCFLAGS
15925
15926# A language-specific compiler.
15927CC=$lt_compiler_F77
15928
15929# Is the compiler the GNU C compiler?
15930with_gcc=$GCC_F77
15931
15932# An ERE matcher.
15933EGREP=$lt_EGREP
15934
15935# The linker used to build libraries.
15936LD=$lt_LD_F77
15937
15938# Whether we need hard or soft links.
15939LN_S=$lt_LN_S
15940
15941# A BSD-compatible nm program.
15942NM=$lt_NM
15943
15944# A symbol stripping program
15945STRIP=$lt_STRIP
15946
15947# Used to examine libraries when file_magic_cmd begins "file"
15948MAGIC_CMD=$MAGIC_CMD
15949
15950# Used on cygwin: DLL creation program.
15951DLLTOOL="$DLLTOOL"
15952
15953# Used on cygwin: object dumper.
15954OBJDUMP="$OBJDUMP"
15955
15956# Used on cygwin: assembler.
15957AS="$AS"
15958
15959# The name of the directory that contains temporary libtool files.
15960objdir=$objdir
15961
15962# How to create reloadable object files.
15963reload_flag=$lt_reload_flag
15964reload_cmds=$lt_reload_cmds
15965
15966# How to pass a linker flag through the compiler.
15967wl=$lt_lt_prog_compiler_wl_F77
15968
15969# Object file suffix (normally "o").
15970objext="$ac_objext"
15971
15972# Old archive suffix (normally "a").
15973libext="$libext"
15974
15975# Shared library suffix (normally ".so").
15976shrext_cmds='$shrext_cmds'
15977
15978# Executable file suffix (normally "").
15979exeext="$exeext"
15980
15981# Additional compiler flags for building library objects.
15982pic_flag=$lt_lt_prog_compiler_pic_F77
15983pic_mode=$pic_mode
15984
15985# What is the maximum length of a command?
15986max_cmd_len=$lt_cv_sys_max_cmd_len
15987
15988# Does compiler simultaneously support -c and -o options?
15989compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15990
15991# Must we lock files when doing compilation?
15992need_locks=$lt_need_locks
15993
15994# Do we need the lib prefix for modules?
15995need_lib_prefix=$need_lib_prefix
15996
15997# Do we need a version for libraries?
15998need_version=$need_version
15999
16000# Whether dlopen is supported.
16001dlopen_support=$enable_dlopen
16002
16003# Whether dlopen of programs is supported.
16004dlopen_self=$enable_dlopen_self
16005
16006# Whether dlopen of statically linked programs is supported.
16007dlopen_self_static=$enable_dlopen_self_static
16008
16009# Compiler flag to prevent dynamic linking.
16010link_static_flag=$lt_lt_prog_compiler_static_F77
16011
16012# Compiler flag to turn off builtin functions.
16013no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16014
16015# Compiler flag to allow reflexive dlopens.
16016export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16017
16018# Compiler flag to generate shared objects directly from archives.
16019whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16020
16021# Compiler flag to generate thread-safe objects.
16022thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16023
16024# Library versioning type.
16025version_type=$version_type
16026
16027# Format of library name prefix.
16028libname_spec=$lt_libname_spec
16029
16030# List of archive names. First name is the real one, the rest are links.
16031# The last name is the one that the linker finds with -lNAME.
16032library_names_spec=$lt_library_names_spec
16033
16034# The coded name of the library, if different from the real name.
16035soname_spec=$lt_soname_spec
16036
16037# Commands used to build and install an old-style archive.
16038RANLIB=$lt_RANLIB
16039old_archive_cmds=$lt_old_archive_cmds_F77
16040old_postinstall_cmds=$lt_old_postinstall_cmds
16041old_postuninstall_cmds=$lt_old_postuninstall_cmds
16042
16043# Create an old-style archive from a shared archive.
16044old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16045
16046# Create a temporary old-style archive to link instead of a shared archive.
16047old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16048
16049# Commands used to build and install a shared archive.
16050archive_cmds=$lt_archive_cmds_F77
16051archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16052postinstall_cmds=$lt_postinstall_cmds
16053postuninstall_cmds=$lt_postuninstall_cmds
16054
16055# Commands used to build a loadable module (assumed same as above if empty)
16056module_cmds=$lt_module_cmds_F77
16057module_expsym_cmds=$lt_module_expsym_cmds_F77
16058
16059# Commands to strip libraries.
16060old_striplib=$lt_old_striplib
16061striplib=$lt_striplib
16062
16063# Dependencies to place before the objects being linked to create a
16064# shared library.
16065predep_objects=$lt_predep_objects_F77
16066
16067# Dependencies to place after the objects being linked to create a
16068# shared library.
16069postdep_objects=$lt_postdep_objects_F77
16070
16071# Dependencies to place before the objects being linked to create a
16072# shared library.
16073predeps=$lt_predeps_F77
16074
16075# Dependencies to place after the objects being linked to create a
16076# shared library.
16077postdeps=$lt_postdeps_F77
16078
16079# The library search path used internally by the compiler when linking
16080# a shared library.
16081compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16082
16083# Method to check whether dependent libraries are shared objects.
16084deplibs_check_method=$lt_deplibs_check_method
16085
16086# Command to use when deplibs_check_method == file_magic.
16087file_magic_cmd=$lt_file_magic_cmd
16088
16089# Flag that allows shared libraries with undefined symbols to be built.
16090allow_undefined_flag=$lt_allow_undefined_flag_F77
16091
16092# Flag that forces no undefined symbols.
16093no_undefined_flag=$lt_no_undefined_flag_F77
16094
16095# Commands used to finish a libtool library installation in a directory.
16096finish_cmds=$lt_finish_cmds
16097
16098# Same as above, but a single script fragment to be evaled but not shown.
16099finish_eval=$lt_finish_eval
16100
16101# Take the output of nm and produce a listing of raw symbols and C names.
16102global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16103
16104# Transform the output of nm in a proper C declaration
16105global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16106
16107# Transform the output of nm in a C name address pair
16108global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16109
16110# This is the shared library runtime path variable.
16111runpath_var=$runpath_var
16112
16113# This is the shared library path variable.
16114shlibpath_var=$shlibpath_var
16115
16116# Is shlibpath searched before the hard-coded library search path?
16117shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16118
16119# How to hardcode a shared library path into an executable.
16120hardcode_action=$hardcode_action_F77
16121
16122# Whether we should hardcode library paths into libraries.
16123hardcode_into_libs=$hardcode_into_libs
16124
16125# Flag to hardcode \$libdir into a binary during linking.
16126# This must work even if \$libdir does not exist.
16127hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16128
16129# If ld is used when linking, flag to hardcode \$libdir into
16130# a binary during linking. This must work even if \$libdir does
16131# not exist.
16132hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16133
16134# Whether we need a single -rpath flag with a separated argument.
16135hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16136
16137# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16138# resulting binary.
16139hardcode_direct=$hardcode_direct_F77
16140
16141# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16142# resulting binary.
16143hardcode_minus_L=$hardcode_minus_L_F77
16144
16145# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16146# the resulting binary.
16147hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16148
16149# Set to yes if building a shared library automatically hardcodes DIR into the library
16150# and all subsequent libraries and executables linked against it.
16151hardcode_automatic=$hardcode_automatic_F77
16152
16153# Variables whose values should be saved in libtool wrapper scripts and
16154# restored at relink time.
16155variables_saved_for_relink="$variables_saved_for_relink"
16156
16157# Whether libtool must link a program against all its dependency libraries.
16158link_all_deplibs=$link_all_deplibs_F77
16159
16160# Compile-time system search path for libraries
16161sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16162
16163# Run-time system search path for libraries
16164sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16165
16166# Fix the shell variable \$srcfile for the compiler.
16167fix_srcfile_path="$fix_srcfile_path_F77"
16168
16169# Set to yes if exported symbols are required.
16170always_export_symbols=$always_export_symbols_F77
16171
16172# The commands to list exported symbols.
16173export_symbols_cmds=$lt_export_symbols_cmds_F77
16174
16175# The commands to extract the exported symbol list from a shared archive.
16176extract_expsyms_cmds=$lt_extract_expsyms_cmds
16177
16178# Symbols that should not be listed in the preloaded symbols.
16179exclude_expsyms=$lt_exclude_expsyms_F77
16180
16181# Symbols that must always be exported.
16182include_expsyms=$lt_include_expsyms_F77
16183
16184# ### END LIBTOOL TAG CONFIG: $tagname
16185
16186__EOF__
16187
16188
16189else
16190 # If there is no Makefile yet, we rely on a make rule to execute
16191 # `config.status --recheck' to rerun these tests and create the
16192 # libtool script then.
16193 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16194 if test -f "$ltmain_in"; then
16195 test -f Makefile && make "$ltmain"
16196 fi
16197fi
16198
16199
16200ac_ext=c
16201ac_cpp='$CPP $CPPFLAGS'
16202ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16203ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16204ac_compiler_gnu=$ac_cv_c_compiler_gnu
16205
16206CC="$lt_save_CC"
16207
16208 else
16209 tagname=""
16210 fi
16211 ;;
16212
16213 GCJ)
16214 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16215
16216
16217# Source file extension for Java test sources.
16218ac_ext=java
16219
16220# Object file extension for compiled Java test sources.
16221objext=o
16222objext_GCJ=$objext
16223
16224# Code to be used in simple compile tests
16225lt_simple_compile_test_code="class foo {}\n"
16226
16227# Code to be used in simple link tests
16228lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16229
16230# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16231
16232# If no C compiler was specified, use CC.
16233LTCC=${LTCC-"$CC"}
16234
16235# If no C compiler flags were specified, use CFLAGS.
16236LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16237
16238# Allow CC to be a program name with arguments.
16239compiler=$CC
16240
16241
16242# save warnings/boilerplate of simple test code
16243ac_outfile=conftest.$ac_objext
16244printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16245eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16246_lt_compiler_boilerplate=`cat conftest.err`
16247$rm conftest*
16248
16249ac_outfile=conftest.$ac_objext
16250printf "$lt_simple_link_test_code" >conftest.$ac_ext
16251eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16252_lt_linker_boilerplate=`cat conftest.err`
16253$rm conftest*
16254
16255
16256# Allow CC to be a program name with arguments.
16257lt_save_CC="$CC"
16258CC=${GCJ-"gcj"}
16259compiler=$CC
16260compiler_GCJ=$CC
16261for cc_temp in $compiler""; do
16262 case $cc_temp in
16263 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16264 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16265 \-*) ;;
16266 *) break;;
16267 esac
16268done
16269cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16270
16271
16272# GCJ did not exist at the time GCC didn't implicitly link libc in.
16273archive_cmds_need_lc_GCJ=no
16274
16275old_archive_cmds_GCJ=$old_archive_cmds
16276
16277## CAVEAT EMPTOR:
16278## There is no encapsulation within the following macros, do not change
16279## the running order or otherwise move them around unless you know exactly
16280## what you are doing...
16281
16282lt_prog_compiler_no_builtin_flag_GCJ=
16283
16284if test "$GCC" = yes; then
16285 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16286
16287
16288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16289$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16290if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16291 $as_echo_n "(cached) " >&6
16292else
16293 lt_cv_prog_compiler_rtti_exceptions=no
16294 ac_outfile=conftest.$ac_objext
16295 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16296 lt_compiler_flag="-fno-rtti -fno-exceptions"
16297 # Insert the option either (1) after the last *FLAGS variable, or
16298 # (2) before a word containing "conftest.", or (3) at the end.
16299 # Note that $ac_compile itself does not contain backslashes and begins
16300 # with a dollar sign (not a hyphen), so the echo should work correctly.
16301 # The option is referenced via a variable to avoid confusing sed.
16302 lt_compile=`echo "$ac_compile" | $SED \
16303 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16304 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16305 -e 's:$: $lt_compiler_flag:'`
16306 (eval echo "\"\$as_me:16306: $lt_compile\"" >&5)
16307 (eval "$lt_compile" 2>conftest.err)
16308 ac_status=$?
16309 cat conftest.err >&5
16310 echo "$as_me:16310: \$? = $ac_status" >&5
16311 if (exit $ac_status) && test -s "$ac_outfile"; then
16312 # The compiler can only warn and ignore the option if not recognized
16313 # So say no if there are warnings other than the usual output.
16314 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16315 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16316 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16317 lt_cv_prog_compiler_rtti_exceptions=yes
16318 fi
16319 fi
16320 $rm conftest*
16321
16322fi
16323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16324$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16325
16326if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16327 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16328else
16329 :
16330fi
16331
16332fi
16333
16334lt_prog_compiler_wl_GCJ=
16335lt_prog_compiler_pic_GCJ=
16336lt_prog_compiler_static_GCJ=
16337
16338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16339$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16340
16341 if test "$GCC" = yes; then
16342 lt_prog_compiler_wl_GCJ='-Wl,'
16343 lt_prog_compiler_static_GCJ='-static'
16344
16345 case $host_os in
16346 aix*)
16347 # All AIX code is PIC.
16348 if test "$host_cpu" = ia64; then
16349 # AIX 5 now supports IA64 processor
16350 lt_prog_compiler_static_GCJ='-Bstatic'
16351 fi
16352 ;;
16353
16354 amigaos*)
16355 # FIXME: we need at least 68020 code to build shared libraries, but
16356 # adding the `-m68020' flag to GCC prevents building anything better,
16357 # like `-m68040'.
16358 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16359 ;;
16360
16361 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16362 # PIC is the default for these OSes.
16363 ;;
16364
16365 mingw* | pw32* | os2*)
16366 # This hack is so that the source file can tell whether it is being
16367 # built for inclusion in a dll (and should export symbols for example).
16368 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16369 ;;
16370
16371 darwin* | rhapsody*)
16372 # PIC is the default on this platform
16373 # Common symbols not allowed in MH_DYLIB files
16374 lt_prog_compiler_pic_GCJ='-fno-common'
16375 ;;
16376
16377 interix3*)
16378 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16379 # Instead, we relocate shared libraries at runtime.
16380 ;;
16381
16382 msdosdjgpp*)
16383 # Just because we use GCC doesn't mean we suddenly get shared libraries
16384 # on systems that don't support them.
16385 lt_prog_compiler_can_build_shared_GCJ=no
16386 enable_shared=no
16387 ;;
16388
16389 sysv4*MP*)
16390 if test -d /usr/nec; then
16391 lt_prog_compiler_pic_GCJ=-Kconform_pic
16392 fi
16393 ;;
16394
16395 hpux*)
16396 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16397 # not for PA HP-UX.
16398 case $host_cpu in
16399 hppa*64*|ia64*)
16400 # +Z the default
16401 ;;
16402 *)
16403 lt_prog_compiler_pic_GCJ='-fPIC'
16404 ;;
16405 esac
16406 ;;
16407
16408 *)
16409 lt_prog_compiler_pic_GCJ='-fPIC'
16410 ;;
16411 esac
16412 else
16413 # PORTME Check for flag to pass linker flags through the system compiler.
16414 case $host_os in
16415 aix*)
16416 lt_prog_compiler_wl_GCJ='-Wl,'
16417 if test "$host_cpu" = ia64; then
16418 # AIX 5 now supports IA64 processor
16419 lt_prog_compiler_static_GCJ='-Bstatic'
16420 else
16421 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16422 fi
16423 ;;
16424 darwin*)
16425 # PIC is the default on this platform
16426 # Common symbols not allowed in MH_DYLIB files
16427 case $cc_basename in
16428 xlc*)
16429 lt_prog_compiler_pic_GCJ='-qnocommon'
16430 lt_prog_compiler_wl_GCJ='-Wl,'
16431 ;;
16432 esac
16433 ;;
16434
16435 mingw* | pw32* | os2*)
16436 # This hack is so that the source file can tell whether it is being
16437 # built for inclusion in a dll (and should export symbols for example).
16438 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16439 ;;
16440
16441 hpux9* | hpux10* | hpux11*)
16442 lt_prog_compiler_wl_GCJ='-Wl,'
16443 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16444 # not for PA HP-UX.
16445 case $host_cpu in
16446 hppa*64*|ia64*)
16447 # +Z the default
16448 ;;
16449 *)
16450 lt_prog_compiler_pic_GCJ='+Z'
16451 ;;
16452 esac
16453 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16454 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16455 ;;
16456
16457 irix5* | irix6* | nonstopux*)
16458 lt_prog_compiler_wl_GCJ='-Wl,'
16459 # PIC (with -KPIC) is the default.
16460 lt_prog_compiler_static_GCJ='-non_shared'
16461 ;;
16462
16463 newsos6)
16464 lt_prog_compiler_pic_GCJ='-KPIC'
16465 lt_prog_compiler_static_GCJ='-Bstatic'
16466 ;;
16467
16468 linux*)
16469 case $cc_basename in
16470 icc* | ecc*)
16471 lt_prog_compiler_wl_GCJ='-Wl,'
16472 lt_prog_compiler_pic_GCJ='-KPIC'
16473 lt_prog_compiler_static_GCJ='-static'
16474 ;;
16475 pgcc* | pgf77* | pgf90* | pgf95*)
16476 # Portland Group compilers (*not* the Pentium gcc compiler,
16477 # which looks to be a dead project)
16478 lt_prog_compiler_wl_GCJ='-Wl,'
16479 lt_prog_compiler_pic_GCJ='-fpic'
16480 lt_prog_compiler_static_GCJ='-Bstatic'
16481 ;;
16482 ccc*)
16483 lt_prog_compiler_wl_GCJ='-Wl,'
16484 # All Alpha code is PIC.
16485 lt_prog_compiler_static_GCJ='-non_shared'
16486 ;;
16487 esac
16488 ;;
16489
16490 osf3* | osf4* | osf5*)
16491 lt_prog_compiler_wl_GCJ='-Wl,'
16492 # All OSF/1 code is PIC.
16493 lt_prog_compiler_static_GCJ='-non_shared'
16494 ;;
16495
16496 solaris*)
16497 lt_prog_compiler_pic_GCJ='-KPIC'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16499 case $cc_basename in
16500 f77* | f90* | f95*)
16501 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16502 *)
16503 lt_prog_compiler_wl_GCJ='-Wl,';;
16504 esac
16505 ;;
16506
16507 sunos4*)
16508 lt_prog_compiler_wl_GCJ='-Qoption ld '
16509 lt_prog_compiler_pic_GCJ='-PIC'
16510 lt_prog_compiler_static_GCJ='-Bstatic'
16511 ;;
16512
16513 sysv4 | sysv4.2uw2* | sysv4.3*)
16514 lt_prog_compiler_wl_GCJ='-Wl,'
16515 lt_prog_compiler_pic_GCJ='-KPIC'
16516 lt_prog_compiler_static_GCJ='-Bstatic'
16517 ;;
16518
16519 sysv4*MP*)
16520 if test -d /usr/nec ;then
16521 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16522 lt_prog_compiler_static_GCJ='-Bstatic'
16523 fi
16524 ;;
16525
16526 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16527 lt_prog_compiler_wl_GCJ='-Wl,'
16528 lt_prog_compiler_pic_GCJ='-KPIC'
16529 lt_prog_compiler_static_GCJ='-Bstatic'
16530 ;;
16531
16532 unicos*)
16533 lt_prog_compiler_wl_GCJ='-Wl,'
16534 lt_prog_compiler_can_build_shared_GCJ=no
16535 ;;
16536
16537 uts4*)
16538 lt_prog_compiler_pic_GCJ='-pic'
16539 lt_prog_compiler_static_GCJ='-Bstatic'
16540 ;;
16541
16542 *)
16543 lt_prog_compiler_can_build_shared_GCJ=no
16544 ;;
16545 esac
16546 fi
16547
16548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16549$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16550
16551#
16552# Check to make sure the PIC flag actually works.
16553#
16554if test -n "$lt_prog_compiler_pic_GCJ"; then
16555
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16557$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16558if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16559 $as_echo_n "(cached) " >&6
16560else
16561 lt_prog_compiler_pic_works_GCJ=no
16562 ac_outfile=conftest.$ac_objext
16563 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16564 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16565 # Insert the option either (1) after the last *FLAGS variable, or
16566 # (2) before a word containing "conftest.", or (3) at the end.
16567 # Note that $ac_compile itself does not contain backslashes and begins
16568 # with a dollar sign (not a hyphen), so the echo should work correctly.
16569 # The option is referenced via a variable to avoid confusing sed.
16570 lt_compile=`echo "$ac_compile" | $SED \
16571 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16572 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16573 -e 's:$: $lt_compiler_flag:'`
16574 (eval echo "\"\$as_me:16574: $lt_compile\"" >&5)
16575 (eval "$lt_compile" 2>conftest.err)
16576 ac_status=$?
16577 cat conftest.err >&5
16578 echo "$as_me:16578: \$? = $ac_status" >&5
16579 if (exit $ac_status) && test -s "$ac_outfile"; then
16580 # The compiler can only warn and ignore the option if not recognized
16581 # So say no if there are warnings other than the usual output.
16582 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16583 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16584 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16585 lt_prog_compiler_pic_works_GCJ=yes
16586 fi
16587 fi
16588 $rm conftest*
16589
16590fi
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16592$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16593
16594if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16595 case $lt_prog_compiler_pic_GCJ in
16596 "" | " "*) ;;
16597 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16598 esac
16599else
16600 lt_prog_compiler_pic_GCJ=
16601 lt_prog_compiler_can_build_shared_GCJ=no
16602fi
16603
16604fi
16605case $host_os in
16606 # For platforms which do not support PIC, -DPIC is meaningless:
16607 *djgpp*)
16608 lt_prog_compiler_pic_GCJ=
16609 ;;
16610 *)
16611 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16612 ;;
16613esac
16614
16615#
16616# Check to make sure the static flag actually works.
16617#
16618wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16620$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16621if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16622 $as_echo_n "(cached) " >&6
16623else
16624 lt_prog_compiler_static_works_GCJ=no
16625 save_LDFLAGS="$LDFLAGS"
16626 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16627 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16628 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16629 # The linker can only warn and ignore the option if not recognized
16630 # So say no if there are warnings
16631 if test -s conftest.err; then
16632 # Append any errors to the config.log.
16633 cat conftest.err 1>&5
16634 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16635 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16636 if diff conftest.exp conftest.er2 >/dev/null; then
16637 lt_prog_compiler_static_works_GCJ=yes
16638 fi
16639 else
16640 lt_prog_compiler_static_works_GCJ=yes
16641 fi
16642 fi
16643 $rm conftest*
16644 LDFLAGS="$save_LDFLAGS"
16645
16646fi
16647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16648$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16649
16650if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16651 :
16652else
16653 lt_prog_compiler_static_GCJ=
16654fi
16655
16656
16657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16658$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16659if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16660 $as_echo_n "(cached) " >&6
16661else
16662 lt_cv_prog_compiler_c_o_GCJ=no
16663 $rm -r conftest 2>/dev/null
16664 mkdir conftest
16665 cd conftest
16666 mkdir out
16667 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16668
16669 lt_compiler_flag="-o out/conftest2.$ac_objext"
16670 # Insert the option either (1) after the last *FLAGS variable, or
16671 # (2) before a word containing "conftest.", or (3) at the end.
16672 # Note that $ac_compile itself does not contain backslashes and begins
16673 # with a dollar sign (not a hyphen), so the echo should work correctly.
16674 lt_compile=`echo "$ac_compile" | $SED \
16675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16677 -e 's:$: $lt_compiler_flag:'`
16678 (eval echo "\"\$as_me:16678: $lt_compile\"" >&5)
16679 (eval "$lt_compile" 2>out/conftest.err)
16680 ac_status=$?
16681 cat out/conftest.err >&5
16682 echo "$as_me:16682: \$? = $ac_status" >&5
16683 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16684 then
16685 # The compiler can only warn and ignore the option if not recognized
16686 # So say no if there are warnings
16687 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16688 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16689 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16690 lt_cv_prog_compiler_c_o_GCJ=yes
16691 fi
16692 fi
16693 chmod u+w . 2>&5
16694 $rm conftest*
16695 # SGI C++ compiler will create directory out/ii_files/ for
16696 # template instantiation
16697 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16698 $rm out/* && rmdir out
16699 cd ..
16700 rmdir conftest
16701 $rm conftest*
16702
16703fi
16704{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16705$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16706
16707
16708hard_links="nottested"
16709if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16710 # do not overwrite the value of need_locks provided by the user
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16712$as_echo_n "checking if we can lock with hard links... " >&6; }
16713 hard_links=yes
16714 $rm conftest*
16715 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16716 touch conftest.a
16717 ln conftest.a conftest.b 2>&5 || hard_links=no
16718 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16720$as_echo "$hard_links" >&6; }
16721 if test "$hard_links" = no; then
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16723$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16724 need_locks=warn
16725 fi
16726else
16727 need_locks=no
16728fi
16729
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16731$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16732
16733 runpath_var=
16734 allow_undefined_flag_GCJ=
16735 enable_shared_with_static_runtimes_GCJ=no
16736 archive_cmds_GCJ=
16737 archive_expsym_cmds_GCJ=
16738 old_archive_From_new_cmds_GCJ=
16739 old_archive_from_expsyms_cmds_GCJ=
16740 export_dynamic_flag_spec_GCJ=
16741 whole_archive_flag_spec_GCJ=
16742 thread_safe_flag_spec_GCJ=
16743 hardcode_libdir_flag_spec_GCJ=
16744 hardcode_libdir_flag_spec_ld_GCJ=
16745 hardcode_libdir_separator_GCJ=
16746 hardcode_direct_GCJ=no
16747 hardcode_minus_L_GCJ=no
16748 hardcode_shlibpath_var_GCJ=unsupported
16749 link_all_deplibs_GCJ=unknown
16750 hardcode_automatic_GCJ=no
16751 module_cmds_GCJ=
16752 module_expsym_cmds_GCJ=
16753 always_export_symbols_GCJ=no
16754 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16755 # include_expsyms should be a list of space-separated symbols to be *always*
16756 # included in the symbol list
16757 include_expsyms_GCJ=
16758 # exclude_expsyms can be an extended regexp of symbols to exclude
16759 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16760 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16761 # as well as any symbol that contains `d'.
16762 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16763 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16764 # platforms (ab)use it in PIC code, but their linkers get confused if
16765 # the symbol is explicitly referenced. Since portable code cannot
16766 # rely on this symbol name, it's probably fine to never include it in
16767 # preloaded symbol tables.
16768 extract_expsyms_cmds=
16769 # Just being paranoid about ensuring that cc_basename is set.
16770 for cc_temp in $compiler""; do
16771 case $cc_temp in
16772 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16773 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16774 \-*) ;;
16775 *) break;;
16776 esac
16777done
16778cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16779
16780 case $host_os in
16781 cygwin* | mingw* | pw32*)
16782 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16783 # When not using gcc, we currently assume that we are using
16784 # Microsoft Visual C++.
16785 if test "$GCC" != yes; then
16786 with_gnu_ld=no
16787 fi
16788 ;;
16789 interix*)
16790 # we just hope/assume this is gcc and not c89 (= MSVC++)
16791 with_gnu_ld=yes
16792 ;;
16793 openbsd*)
16794 with_gnu_ld=no
16795 ;;
16796 esac
16797
16798 ld_shlibs_GCJ=yes
16799 if test "$with_gnu_ld" = yes; then
16800 # If archive_cmds runs LD, not CC, wlarc should be empty
16801 wlarc='${wl}'
16802
16803 # Set some defaults for GNU ld with shared library support. These
16804 # are reset later if shared libraries are not supported. Putting them
16805 # here allows them to be overridden if necessary.
16806 runpath_var=LD_RUN_PATH
16807 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16808 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16809 # ancient GNU ld didn't support --whole-archive et. al.
16810 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16811 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16812 else
16813 whole_archive_flag_spec_GCJ=
16814 fi
16815 supports_anon_versioning=no
16816 case `$LD -v 2>/dev/null` in
16817 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16818 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16819 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16820 *\ 2.11.*) ;; # other 2.11 versions
16821 *) supports_anon_versioning=yes ;;
16822 esac
16823
16824 # See if GNU ld supports shared libraries.
16825 case $host_os in
16826 aix3* | aix4* | aix5*)
16827 # On AIX/PPC, the GNU linker is very broken
16828 if test "$host_cpu" != ia64; then
16829 ld_shlibs_GCJ=no
16830 cat <<EOF 1>&2
16831
16832*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16833*** to be unable to reliably create shared libraries on AIX.
16834*** Therefore, libtool is disabling shared libraries support. If you
16835*** really care for shared libraries, you may want to modify your PATH
16836*** so that a non-GNU linker is found, and then restart.
16837
16838EOF
16839 fi
16840 ;;
16841
16842 amigaos*)
16843 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)'
16844 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16845 hardcode_minus_L_GCJ=yes
16846
16847 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16848 # that the semantics of dynamic libraries on AmigaOS, at least up
16849 # to version 4, is to share data among multiple programs linked
16850 # with the same dynamic library. Since this doesn't match the
16851 # behavior of shared libraries on other platforms, we can't use
16852 # them.
16853 ld_shlibs_GCJ=no
16854 ;;
16855
16856 beos*)
16857 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16858 allow_undefined_flag_GCJ=unsupported
16859 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16860 # support --undefined. This deserves some investigation. FIXME
16861 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16862 else
16863 ld_shlibs_GCJ=no
16864 fi
16865 ;;
16866
16867 cygwin* | mingw* | pw32*)
16868 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16869 # as there is no search path for DLLs.
16870 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16871 allow_undefined_flag_GCJ=unsupported
16872 always_export_symbols_GCJ=no
16873 enable_shared_with_static_runtimes_GCJ=yes
16874 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16875
16876 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16877 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16878 # If the export-symbols file already is a .def file (1st line
16879 # is EXPORTS), use it as is; otherwise, prepend...
16880 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16881 cp $export_symbols $output_objdir/$soname.def;
16882 else
16883 echo EXPORTS > $output_objdir/$soname.def;
16884 cat $export_symbols >> $output_objdir/$soname.def;
16885 fi~
16886 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16887 else
16888 ld_shlibs_GCJ=no
16889 fi
16890 ;;
16891
16892 interix3*)
16893 hardcode_direct_GCJ=no
16894 hardcode_shlibpath_var_GCJ=no
16895 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16896 export_dynamic_flag_spec_GCJ='${wl}-E'
16897 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16898 # Instead, shared libraries are loaded at an image base (0x10000000 by
16899 # default) and relocated if they conflict, which is a slow very memory
16900 # consuming and fragmenting process. To avoid this, we pick a random,
16901 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16902 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16903 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'
16904 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'
16905 ;;
16906
16907 linux*)
16908 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16909 tmp_addflag=
16910 case $cc_basename,$host_cpu in
16911 pgcc*) # Portland Group C compiler
16912 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'
16913 tmp_addflag=' $pic_flag'
16914 ;;
16915 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16916 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'
16917 tmp_addflag=' $pic_flag -Mnomain' ;;
16918 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16919 tmp_addflag=' -i_dynamic' ;;
16920 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16921 tmp_addflag=' -i_dynamic -nofor_main' ;;
16922 ifc* | ifort*) # Intel Fortran compiler
16923 tmp_addflag=' -nofor_main' ;;
16924 esac
16925 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16926
16927 if test $supports_anon_versioning = yes; then
16928 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16929 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16930 $echo "local: *; };" >> $output_objdir/$libname.ver~
16931 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16932 fi
16933 else
16934 ld_shlibs_GCJ=no
16935 fi
16936 ;;
16937
16938 netbsd*)
16939 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16940 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16941 wlarc=
16942 else
16943 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16944 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16945 fi
16946 ;;
16947
16948 solaris*)
16949 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16950 ld_shlibs_GCJ=no
16951 cat <<EOF 1>&2
16952
16953*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16954*** create shared libraries on Solaris systems. Therefore, libtool
16955*** is disabling shared libraries support. We urge you to upgrade GNU
16956*** binutils to release 2.9.1 or newer. Another option is to modify
16957*** your PATH or compiler configuration so that the native linker is
16958*** used, and then restart.
16959
16960EOF
16961 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16962 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16963 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16964 else
16965 ld_shlibs_GCJ=no
16966 fi
16967 ;;
16968
16969 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16970 case `$LD -v 2>&1` in
16971 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16972 ld_shlibs_GCJ=no
16973 cat <<_LT_EOF 1>&2
16974
16975*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16976*** reliably create shared libraries on SCO systems. Therefore, libtool
16977*** is disabling shared libraries support. We urge you to upgrade GNU
16978*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16979*** your PATH or compiler configuration so that the native linker is
16980*** used, and then restart.
16981
16982_LT_EOF
16983 ;;
16984 *)
16985 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16986 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16987 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16988 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16989 else
16990 ld_shlibs_GCJ=no
16991 fi
16992 ;;
16993 esac
16994 ;;
16995
16996 sunos4*)
16997 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16998 wlarc=
16999 hardcode_direct_GCJ=yes
17000 hardcode_shlibpath_var_GCJ=no
17001 ;;
17002
17003 *)
17004 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17005 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17006 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17007 else
17008 ld_shlibs_GCJ=no
17009 fi
17010 ;;
17011 esac
17012
17013 if test "$ld_shlibs_GCJ" = no; then
17014 runpath_var=
17015 hardcode_libdir_flag_spec_GCJ=
17016 export_dynamic_flag_spec_GCJ=
17017 whole_archive_flag_spec_GCJ=
17018 fi
17019 else
17020 # PORTME fill in a description of your system's linker (not GNU ld)
17021 case $host_os in
17022 aix3*)
17023 allow_undefined_flag_GCJ=unsupported
17024 always_export_symbols_GCJ=yes
17025 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'
17026 # Note: this linker hardcodes the directories in LIBPATH if there
17027 # are no directories specified by -L.
17028 hardcode_minus_L_GCJ=yes
17029 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17030 # Neither direct hardcoding nor static linking is supported with a
17031 # broken collect2.
17032 hardcode_direct_GCJ=unsupported
17033 fi
17034 ;;
17035
17036 aix4* | aix5*)
17037 if test "$host_cpu" = ia64; then
17038 # On IA64, the linker does run time linking by default, so we don't
17039 # have to do anything special.
17040 aix_use_runtimelinking=no
17041 exp_sym_flag='-Bexport'
17042 no_entry_flag=""
17043 else
17044 # If we're using GNU nm, then we don't want the "-C" option.
17045 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17046 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17047 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'
17048 else
17049 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'
17050 fi
17051 aix_use_runtimelinking=no
17052
17053 # Test if we are trying to use run time linking or normal
17054 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17055 # need to do runtime linking.
17056 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17057 for ld_flag in $LDFLAGS; do
17058 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17059 aix_use_runtimelinking=yes
17060 break
17061 fi
17062 done
17063 ;;
17064 esac
17065
17066 exp_sym_flag='-bexport'
17067 no_entry_flag='-bnoentry'
17068 fi
17069
17070 # When large executables or shared objects are built, AIX ld can
17071 # have problems creating the table of contents. If linking a library
17072 # or program results in "error TOC overflow" add -mminimal-toc to
17073 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17074 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17075
17076 archive_cmds_GCJ=''
17077 hardcode_direct_GCJ=yes
17078 hardcode_libdir_separator_GCJ=':'
17079 link_all_deplibs_GCJ=yes
17080
17081 if test "$GCC" = yes; then
17082 case $host_os in aix4.[012]|aix4.[012].*)
17083 # We only want to do this on AIX 4.2 and lower, the check
17084 # below for broken collect2 doesn't work under 4.3+
17085 collect2name=`${CC} -print-prog-name=collect2`
17086 if test -f "$collect2name" && \
17087 strings "$collect2name" | grep resolve_lib_name >/dev/null
17088 then
17089 # We have reworked collect2
17090 hardcode_direct_GCJ=yes
17091 else
17092 # We have old collect2
17093 hardcode_direct_GCJ=unsupported
17094 # It fails to find uninstalled libraries when the uninstalled
17095 # path is not listed in the libpath. Setting hardcode_minus_L
17096 # to unsupported forces relinking
17097 hardcode_minus_L_GCJ=yes
17098 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17099 hardcode_libdir_separator_GCJ=
17100 fi
17101 ;;
17102 esac
17103 shared_flag='-shared'
17104 if test "$aix_use_runtimelinking" = yes; then
17105 shared_flag="$shared_flag "'${wl}-G'
17106 fi
17107 else
17108 # not using gcc
17109 if test "$host_cpu" = ia64; then
17110 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17111 # chokes on -Wl,-G. The following line is correct:
17112 shared_flag='-G'
17113 else
17114 if test "$aix_use_runtimelinking" = yes; then
17115 shared_flag='${wl}-G'
17116 else
17117 shared_flag='${wl}-bM:SRE'
17118 fi
17119 fi
17120 fi
17121
17122 # It seems that -bexpall does not export symbols beginning with
17123 # underscore (_), so it is better to generate a list of symbols to export.
17124 always_export_symbols_GCJ=yes
17125 if test "$aix_use_runtimelinking" = yes; then
17126 # Warning - without using the other runtime loading flags (-brtl),
17127 # -berok will link without error, but may produce a broken library.
17128 allow_undefined_flag_GCJ='-berok'
17129 # Determine the default libpath from the value encoded in an empty executable.
17130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17131/* end confdefs.h. */
17132
17133int
17134main ()
17135{
17136
17137 ;
17138 return 0;
17139}
17140_ACEOF
17141if ac_fn_c_try_link "$LINENO"; then :
17142
17143aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17144}'`
17145# Check for a 64-bit object if we didn't find anything.
17146if 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; }
17147}'`; fi
17148fi
17149rm -f core conftest.err conftest.$ac_objext \
17150 conftest$ac_exeext conftest.$ac_ext
17151if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17152
17153 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17154 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"
17155 else
17156 if test "$host_cpu" = ia64; then
17157 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17158 allow_undefined_flag_GCJ="-z nodefs"
17159 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"
17160 else
17161 # Determine the default libpath from the value encoded in an empty executable.
17162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17163/* end confdefs.h. */
17164
17165int
17166main ()
17167{
17168
17169 ;
17170 return 0;
17171}
17172_ACEOF
17173if ac_fn_c_try_link "$LINENO"; then :
17174
17175aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17176}'`
17177# Check for a 64-bit object if we didn't find anything.
17178if 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; }
17179}'`; fi
17180fi
17181rm -f core conftest.err conftest.$ac_objext \
17182 conftest$ac_exeext conftest.$ac_ext
17183if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17184
17185 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17186 # Warning - without using the other run time loading flags,
17187 # -berok will link without error, but may produce a broken library.
17188 no_undefined_flag_GCJ=' ${wl}-bernotok'
17189 allow_undefined_flag_GCJ=' ${wl}-berok'
17190 # Exported symbols can be pulled into shared objects from archives
17191 whole_archive_flag_spec_GCJ='$convenience'
17192 archive_cmds_need_lc_GCJ=yes
17193 # This is similar to how AIX traditionally builds its shared libraries.
17194 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'
17195 fi
17196 fi
17197 ;;
17198
17199 amigaos*)
17200 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)'
17201 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17202 hardcode_minus_L_GCJ=yes
17203 # see comment about different semantics on the GNU ld section
17204 ld_shlibs_GCJ=no
17205 ;;
17206
17207 bsdi[45]*)
17208 export_dynamic_flag_spec_GCJ=-rdynamic
17209 ;;
17210
17211 cygwin* | mingw* | pw32*)
17212 # When not using gcc, we currently assume that we are using
17213 # Microsoft Visual C++.
17214 # hardcode_libdir_flag_spec is actually meaningless, as there is
17215 # no search path for DLLs.
17216 hardcode_libdir_flag_spec_GCJ=' '
17217 allow_undefined_flag_GCJ=unsupported
17218 # Tell ltmain to make .lib files, not .a files.
17219 libext=lib
17220 # Tell ltmain to make .dll files, not .so files.
17221 shrext_cmds=".dll"
17222 # FIXME: Setting linknames here is a bad hack.
17223 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17224 # The linker will automatically build a .lib file if we build a DLL.
17225 old_archive_From_new_cmds_GCJ='true'
17226 # FIXME: Should let the user specify the lib program.
17227 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17228 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17229 enable_shared_with_static_runtimes_GCJ=yes
17230 ;;
17231
17232 darwin* | rhapsody*)
17233 case $host_os in
17234 rhapsody* | darwin1.[012])
17235 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17236 ;;
17237 *) # Darwin 1.3 on
17238 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17239 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17240 else
17241 case ${MACOSX_DEPLOYMENT_TARGET} in
17242 10.[012])
17243 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17244 ;;
17245 10.*)
17246 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17247 ;;
17248 esac
17249 fi
17250 ;;
17251 esac
17252 archive_cmds_need_lc_GCJ=no
17253 hardcode_direct_GCJ=no
17254 hardcode_automatic_GCJ=yes
17255 hardcode_shlibpath_var_GCJ=unsupported
17256 whole_archive_flag_spec_GCJ=''
17257 link_all_deplibs_GCJ=yes
17258 if test "$GCC" = yes ; then
17259 output_verbose_link_cmd='echo'
17260 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17261 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17262 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17263 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}'
17264 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}'
17265 else
17266 case $cc_basename in
17267 xlc*)
17268 output_verbose_link_cmd='echo'
17269 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17270 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17271 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17272 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}'
17273 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}'
17274 ;;
17275 *)
17276 ld_shlibs_GCJ=no
17277 ;;
17278 esac
17279 fi
17280 ;;
17281
17282 dgux*)
17283 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17284 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17285 hardcode_shlibpath_var_GCJ=no
17286 ;;
17287
17288 freebsd1*)
17289 ld_shlibs_GCJ=no
17290 ;;
17291
17292 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17293 # support. Future versions do this automatically, but an explicit c++rt0.o
17294 # does not break anything, and helps significantly (at the cost of a little
17295 # extra space).
17296 freebsd2.2*)
17297 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17298 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17299 hardcode_direct_GCJ=yes
17300 hardcode_shlibpath_var_GCJ=no
17301 ;;
17302
17303 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17304 freebsd2*)
17305 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17306 hardcode_direct_GCJ=yes
17307 hardcode_minus_L_GCJ=yes
17308 hardcode_shlibpath_var_GCJ=no
17309 ;;
17310
17311 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17312 freebsd* | kfreebsd*-gnu | dragonfly*)
17313 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17314 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17315 hardcode_direct_GCJ=yes
17316 hardcode_shlibpath_var_GCJ=no
17317 ;;
17318
17319 hpux9*)
17320 if test "$GCC" = yes; then
17321 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'
17322 else
17323 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'
17324 fi
17325 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17326 hardcode_libdir_separator_GCJ=:
17327 hardcode_direct_GCJ=yes
17328
17329 # hardcode_minus_L: Not really in the search PATH,
17330 # but as the default location of the library.
17331 hardcode_minus_L_GCJ=yes
17332 export_dynamic_flag_spec_GCJ='${wl}-E'
17333 ;;
17334
17335 hpux10*)
17336 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17337 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17338 else
17339 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17340 fi
17341 if test "$with_gnu_ld" = no; then
17342 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17343 hardcode_libdir_separator_GCJ=:
17344
17345 hardcode_direct_GCJ=yes
17346 export_dynamic_flag_spec_GCJ='${wl}-E'
17347
17348 # hardcode_minus_L: Not really in the search PATH,
17349 # but as the default location of the library.
17350 hardcode_minus_L_GCJ=yes
17351 fi
17352 ;;
17353
17354 hpux11*)
17355 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17356 case $host_cpu in
17357 hppa*64*)
17358 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17359 ;;
17360 ia64*)
17361 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17362 ;;
17363 *)
17364 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17365 ;;
17366 esac
17367 else
17368 case $host_cpu in
17369 hppa*64*)
17370 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17371 ;;
17372 ia64*)
17373 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17374 ;;
17375 *)
17376 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17377 ;;
17378 esac
17379 fi
17380 if test "$with_gnu_ld" = no; then
17381 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17382 hardcode_libdir_separator_GCJ=:
17383
17384 case $host_cpu in
17385 hppa*64*|ia64*)
17386 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17387 hardcode_direct_GCJ=no
17388 hardcode_shlibpath_var_GCJ=no
17389 ;;
17390 *)
17391 hardcode_direct_GCJ=yes
17392 export_dynamic_flag_spec_GCJ='${wl}-E'
17393
17394 # hardcode_minus_L: Not really in the search PATH,
17395 # but as the default location of the library.
17396 hardcode_minus_L_GCJ=yes
17397 ;;
17398 esac
17399 fi
17400 ;;
17401
17402 irix5* | irix6* | nonstopux*)
17403 if test "$GCC" = yes; then
17404 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'
17405 else
17406 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'
17407 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17408 fi
17409 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17410 hardcode_libdir_separator_GCJ=:
17411 link_all_deplibs_GCJ=yes
17412 ;;
17413
17414 netbsd*)
17415 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17416 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17417 else
17418 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17419 fi
17420 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17421 hardcode_direct_GCJ=yes
17422 hardcode_shlibpath_var_GCJ=no
17423 ;;
17424
17425 newsos6)
17426 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17427 hardcode_direct_GCJ=yes
17428 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17429 hardcode_libdir_separator_GCJ=:
17430 hardcode_shlibpath_var_GCJ=no
17431 ;;
17432
17433 openbsd*)
17434 hardcode_direct_GCJ=yes
17435 hardcode_shlibpath_var_GCJ=no
17436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17437 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17438 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17439 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17440 export_dynamic_flag_spec_GCJ='${wl}-E'
17441 else
17442 case $host_os in
17443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17444 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17445 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17446 ;;
17447 *)
17448 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17449 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17450 ;;
17451 esac
17452 fi
17453 ;;
17454
17455 os2*)
17456 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17457 hardcode_minus_L_GCJ=yes
17458 allow_undefined_flag_GCJ=unsupported
17459 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'
17460 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17461 ;;
17462
17463 osf3*)
17464 if test "$GCC" = yes; then
17465 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17466 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'
17467 else
17468 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17469 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'
17470 fi
17471 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17472 hardcode_libdir_separator_GCJ=:
17473 ;;
17474
17475 osf4* | osf5*) # as osf3* with the addition of -msym flag
17476 if test "$GCC" = yes; then
17477 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17478 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'
17479 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17480 else
17481 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17482 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'
17483 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~
17484 $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'
17485
17486 # Both c and cxx compiler support -rpath directly
17487 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17488 fi
17489 hardcode_libdir_separator_GCJ=:
17490 ;;
17491
17492 solaris*)
17493 no_undefined_flag_GCJ=' -z text'
17494 if test "$GCC" = yes; then
17495 wlarc='${wl}'
17496 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17497 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17498 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17499 else
17500 wlarc=''
17501 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17502 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17503 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17504 fi
17505 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17506 hardcode_shlibpath_var_GCJ=no
17507 case $host_os in
17508 solaris2.[0-5] | solaris2.[0-5].*) ;;
17509 *)
17510 # The compiler driver will combine linker options so we
17511 # cannot just pass the convience library names through
17512 # without $wl, iff we do not link with $LD.
17513 # Luckily, gcc supports the same syntax we need for Sun Studio.
17514 # Supported since Solaris 2.6 (maybe 2.5.1?)
17515 case $wlarc in
17516 '')
17517 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17518 *)
17519 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' ;;
17520 esac ;;
17521 esac
17522 link_all_deplibs_GCJ=yes
17523 ;;
17524
17525 sunos4*)
17526 if test "x$host_vendor" = xsequent; then
17527 # Use $CC to link under sequent, because it throws in some extra .o
17528 # files that make .init and .fini sections work.
17529 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17530 else
17531 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17532 fi
17533 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17534 hardcode_direct_GCJ=yes
17535 hardcode_minus_L_GCJ=yes
17536 hardcode_shlibpath_var_GCJ=no
17537 ;;
17538
17539 sysv4)
17540 case $host_vendor in
17541 sni)
17542 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17543 hardcode_direct_GCJ=yes # is this really true???
17544 ;;
17545 siemens)
17546 ## LD is ld it makes a PLAMLIB
17547 ## CC just makes a GrossModule.
17548 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17549 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17550 hardcode_direct_GCJ=no
17551 ;;
17552 motorola)
17553 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17554 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17555 ;;
17556 esac
17557 runpath_var='LD_RUN_PATH'
17558 hardcode_shlibpath_var_GCJ=no
17559 ;;
17560
17561 sysv4.3*)
17562 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17563 hardcode_shlibpath_var_GCJ=no
17564 export_dynamic_flag_spec_GCJ='-Bexport'
17565 ;;
17566
17567 sysv4*MP*)
17568 if test -d /usr/nec; then
17569 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17570 hardcode_shlibpath_var_GCJ=no
17571 runpath_var=LD_RUN_PATH
17572 hardcode_runpath_var=yes
17573 ld_shlibs_GCJ=yes
17574 fi
17575 ;;
17576
17577 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17578 no_undefined_flag_GCJ='${wl}-z,text'
17579 archive_cmds_need_lc_GCJ=no
17580 hardcode_shlibpath_var_GCJ=no
17581 runpath_var='LD_RUN_PATH'
17582
17583 if test "$GCC" = yes; then
17584 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17585 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 else
17587 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17589 fi
17590 ;;
17591
17592 sysv5* | sco3.2v5* | sco5v6*)
17593 # Note: We can NOT use -z defs as we might desire, because we do not
17594 # link with -lc, and that would cause any symbols used from libc to
17595 # always be unresolved, which means just about no library would
17596 # ever link correctly. If we're not using GNU ld we use -z text
17597 # though, which does catch some bad symbols but isn't as heavy-handed
17598 # as -z defs.
17599 no_undefined_flag_GCJ='${wl}-z,text'
17600 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17601 archive_cmds_need_lc_GCJ=no
17602 hardcode_shlibpath_var_GCJ=no
17603 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17604 hardcode_libdir_separator_GCJ=':'
17605 link_all_deplibs_GCJ=yes
17606 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17607 runpath_var='LD_RUN_PATH'
17608
17609 if test "$GCC" = yes; then
17610 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17611 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 else
17613 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17614 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17615 fi
17616 ;;
17617
17618 uts4*)
17619 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17620 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17621 hardcode_shlibpath_var_GCJ=no
17622 ;;
17623
17624 *)
17625 ld_shlibs_GCJ=no
17626 ;;
17627 esac
17628 fi
17629
17630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17631$as_echo "$ld_shlibs_GCJ" >&6; }
17632test "$ld_shlibs_GCJ" = no && can_build_shared=no
17633
17634#
17635# Do we need to explicitly link libc?
17636#
17637case "x$archive_cmds_need_lc_GCJ" in
17638x|xyes)
17639 # Assume -lc should be added
17640 archive_cmds_need_lc_GCJ=yes
17641
17642 if test "$enable_shared" = yes && test "$GCC" = yes; then
17643 case $archive_cmds_GCJ in
17644 *'~'*)
17645 # FIXME: we may have to deal with multi-command sequences.
17646 ;;
17647 '$CC '*)
17648 # Test whether the compiler implicitly links with -lc since on some
17649 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17650 # to ld, don't add -lc before -lgcc.
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17652$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17653 $rm conftest*
17654 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17655
17656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17657 (eval $ac_compile) 2>&5
17658 ac_status=$?
17659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17660 test $ac_status = 0; } 2>conftest.err; then
17661 soname=conftest
17662 lib=conftest
17663 libobjs=conftest.$ac_objext
17664 deplibs=
17665 wl=$lt_prog_compiler_wl_GCJ
17666 pic_flag=$lt_prog_compiler_pic_GCJ
17667 compiler_flags=-v
17668 linker_flags=-v
17669 verstring=
17670 output_objdir=.
17671 libname=conftest
17672 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17673 allow_undefined_flag_GCJ=
17674 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17675 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17676 ac_status=$?
17677 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17678 test $ac_status = 0; }
17679 then
17680 archive_cmds_need_lc_GCJ=no
17681 else
17682 archive_cmds_need_lc_GCJ=yes
17683 fi
17684 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17685 else
17686 cat conftest.err 1>&5
17687 fi
17688 $rm conftest*
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17690$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17691 ;;
17692 esac
17693 fi
17694 ;;
17695esac
17696
17697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17698$as_echo_n "checking dynamic linker characteristics... " >&6; }
17699library_names_spec=
17700libname_spec='lib$name'
17701soname_spec=
17702shrext_cmds=".so"
17703postinstall_cmds=
17704postuninstall_cmds=
17705finish_cmds=
17706finish_eval=
17707shlibpath_var=
17708shlibpath_overrides_runpath=unknown
17709version_type=none
17710dynamic_linker="$host_os ld.so"
17711sys_lib_dlsearch_path_spec="/lib /usr/lib"
17712if test "$GCC" = yes; then
17713 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17714 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17715 # if the path contains ";" then we assume it to be the separator
17716 # otherwise default to the standard path separator (i.e. ":") - it is
17717 # assumed that no part of a normal pathname contains ";" but that should
17718 # okay in the real world where ";" in dirpaths is itself problematic.
17719 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17720 else
17721 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17722 fi
17723else
17724 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17725fi
17726need_lib_prefix=unknown
17727hardcode_into_libs=no
17728
17729# when you set need_version to no, make sure it does not cause -set_version
17730# flags to be left without arguments
17731need_version=unknown
17732
17733case $host_os in
17734aix3*)
17735 version_type=linux
17736 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17737 shlibpath_var=LIBPATH
17738
17739 # AIX 3 has no versioning support, so we append a major version to the name.
17740 soname_spec='${libname}${release}${shared_ext}$major'
17741 ;;
17742
17743aix4* | aix5*)
17744 version_type=linux
17745 need_lib_prefix=no
17746 need_version=no
17747 hardcode_into_libs=yes
17748 if test "$host_cpu" = ia64; then
17749 # AIX 5 supports IA64
17750 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17751 shlibpath_var=LD_LIBRARY_PATH
17752 else
17753 # With GCC up to 2.95.x, collect2 would create an import file
17754 # for dependence libraries. The import file would start with
17755 # the line `#! .'. This would cause the generated library to
17756 # depend on `.', always an invalid library. This was fixed in
17757 # development snapshots of GCC prior to 3.0.
17758 case $host_os in
17759 aix4 | aix4.[01] | aix4.[01].*)
17760 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17761 echo ' yes '
17762 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17763 :
17764 else
17765 can_build_shared=no
17766 fi
17767 ;;
17768 esac
17769 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17770 # soname into executable. Probably we can add versioning support to
17771 # collect2, so additional links can be useful in future.
17772 if test "$aix_use_runtimelinking" = yes; then
17773 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17774 # instead of lib<name>.a to let people know that these are not
17775 # typical AIX shared libraries.
17776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17777 else
17778 # We preserve .a as extension for shared libraries through AIX4.2
17779 # and later when we are not doing run time linking.
17780 library_names_spec='${libname}${release}.a $libname.a'
17781 soname_spec='${libname}${release}${shared_ext}$major'
17782 fi
17783 shlibpath_var=LIBPATH
17784 fi
17785 ;;
17786
17787amigaos*)
17788 library_names_spec='$libname.ixlibrary $libname.a'
17789 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17790 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'
17791 ;;
17792
17793beos*)
17794 library_names_spec='${libname}${shared_ext}'
17795 dynamic_linker="$host_os ld.so"
17796 shlibpath_var=LIBRARY_PATH
17797 ;;
17798
17799bsdi[45]*)
17800 version_type=linux
17801 need_version=no
17802 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17803 soname_spec='${libname}${release}${shared_ext}$major'
17804 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17805 shlibpath_var=LD_LIBRARY_PATH
17806 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17807 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17808 # the default ld.so.conf also contains /usr/contrib/lib and
17809 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17810 # libtool to hard-code these into programs
17811 ;;
17812
17813cygwin* | mingw* | pw32*)
17814 version_type=windows
17815 shrext_cmds=".dll"
17816 need_version=no
17817 need_lib_prefix=no
17818
17819 case $GCC,$host_os in
17820 yes,cygwin* | yes,mingw* | yes,pw32*)
17821 library_names_spec='$libname.dll.a'
17822 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17823 postinstall_cmds='base_file=`basename \${file}`~
17824 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17825 dldir=$destdir/`dirname \$dlpath`~
17826 test -d \$dldir || mkdir -p \$dldir~
17827 $install_prog $dir/$dlname \$dldir/$dlname~
17828 chmod a+x \$dldir/$dlname'
17829 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17830 dlpath=$dir/\$dldll~
17831 $rm \$dlpath'
17832 shlibpath_overrides_runpath=yes
17833
17834 case $host_os in
17835 cygwin*)
17836 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17837 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17838 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17839 ;;
17840 mingw*)
17841 # MinGW DLLs use traditional 'lib' prefix
17842 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17843 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17844 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17845 # It is most probably a Windows format PATH printed by
17846 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17847 # path with ; separators, and with drive letters. We can handle the
17848 # drive letters (cygwin fileutils understands them), so leave them,
17849 # especially as we might pass files found there to a mingw objdump,
17850 # which wouldn't understand a cygwinified path. Ahh.
17851 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17852 else
17853 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17854 fi
17855 ;;
17856 pw32*)
17857 # pw32 DLLs use 'pw' prefix rather than 'lib'
17858 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17859 ;;
17860 esac
17861 ;;
17862
17863 *)
17864 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17865 ;;
17866 esac
17867 dynamic_linker='Win32 ld.exe'
17868 # FIXME: first we should search . and the directory the executable is in
17869 shlibpath_var=PATH
17870 ;;
17871
17872darwin* | rhapsody*)
17873 dynamic_linker="$host_os dyld"
17874 version_type=darwin
17875 need_lib_prefix=no
17876 need_version=no
17877 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17878 soname_spec='${libname}${release}${major}$shared_ext'
17879 shlibpath_overrides_runpath=yes
17880 shlibpath_var=DYLD_LIBRARY_PATH
17881 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17882 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17883 if test "$GCC" = yes; then
17884 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"`
17885 else
17886 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17887 fi
17888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17889 ;;
17890
17891dgux*)
17892 version_type=linux
17893 need_lib_prefix=no
17894 need_version=no
17895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17896 soname_spec='${libname}${release}${shared_ext}$major'
17897 shlibpath_var=LD_LIBRARY_PATH
17898 ;;
17899
17900freebsd1*)
17901 dynamic_linker=no
17902 ;;
17903
17904kfreebsd*-gnu)
17905 version_type=linux
17906 need_lib_prefix=no
17907 need_version=no
17908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17909 soname_spec='${libname}${release}${shared_ext}$major'
17910 shlibpath_var=LD_LIBRARY_PATH
17911 shlibpath_overrides_runpath=no
17912 hardcode_into_libs=yes
17913 dynamic_linker='GNU ld.so'
17914 ;;
17915
17916freebsd* | dragonfly*)
17917 # DragonFly does not have aout. When/if they implement a new
17918 # versioning mechanism, adjust this.
17919 if test -x /usr/bin/objformat; then
17920 objformat=`/usr/bin/objformat`
17921 else
17922 case $host_os in
17923 freebsd[123]*) objformat=aout ;;
17924 *) objformat=elf ;;
17925 esac
17926 fi
17927 version_type=freebsd-$objformat
17928 case $version_type in
17929 freebsd-elf*)
17930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17931 need_version=no
17932 need_lib_prefix=no
17933 ;;
17934 freebsd-*)
17935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17936 need_version=yes
17937 ;;
17938 esac
17939 shlibpath_var=LD_LIBRARY_PATH
17940 case $host_os in
17941 freebsd2*)
17942 shlibpath_overrides_runpath=yes
17943 ;;
17944 freebsd3.[01]* | freebsdelf3.[01]*)
17945 shlibpath_overrides_runpath=yes
17946 hardcode_into_libs=yes
17947 ;;
17948 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17949 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17950 shlibpath_overrides_runpath=no
17951 hardcode_into_libs=yes
17952 ;;
17953 freebsd*) # from 4.6 on
17954 shlibpath_overrides_runpath=yes
17955 hardcode_into_libs=yes
17956 ;;
17957 esac
17958 ;;
17959
17960gnu*)
17961 version_type=linux
17962 need_lib_prefix=no
17963 need_version=no
17964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17965 soname_spec='${libname}${release}${shared_ext}$major'
17966 shlibpath_var=LD_LIBRARY_PATH
17967 hardcode_into_libs=yes
17968 ;;
17969
17970hpux9* | hpux10* | hpux11*)
17971 # Give a soname corresponding to the major version so that dld.sl refuses to
17972 # link against other versions.
17973 version_type=sunos
17974 need_lib_prefix=no
17975 need_version=no
17976 case $host_cpu in
17977 ia64*)
17978 shrext_cmds='.so'
17979 hardcode_into_libs=yes
17980 dynamic_linker="$host_os dld.so"
17981 shlibpath_var=LD_LIBRARY_PATH
17982 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17984 soname_spec='${libname}${release}${shared_ext}$major'
17985 if test "X$HPUX_IA64_MODE" = X32; then
17986 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17987 else
17988 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17989 fi
17990 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17991 ;;
17992 hppa*64*)
17993 shrext_cmds='.sl'
17994 hardcode_into_libs=yes
17995 dynamic_linker="$host_os dld.sl"
17996 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17997 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17999 soname_spec='${libname}${release}${shared_ext}$major'
18000 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18001 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18002 ;;
18003 *)
18004 shrext_cmds='.sl'
18005 dynamic_linker="$host_os dld.sl"
18006 shlibpath_var=SHLIB_PATH
18007 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18008 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18009 soname_spec='${libname}${release}${shared_ext}$major'
18010 ;;
18011 esac
18012 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18013 postinstall_cmds='chmod 555 $lib'
18014 ;;
18015
18016interix3*)
18017 version_type=linux
18018 need_lib_prefix=no
18019 need_version=no
18020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18021 soname_spec='${libname}${release}${shared_ext}$major'
18022 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18023 shlibpath_var=LD_LIBRARY_PATH
18024 shlibpath_overrides_runpath=no
18025 hardcode_into_libs=yes
18026 ;;
18027
18028irix5* | irix6* | nonstopux*)
18029 case $host_os in
18030 nonstopux*) version_type=nonstopux ;;
18031 *)
18032 if test "$lt_cv_prog_gnu_ld" = yes; then
18033 version_type=linux
18034 else
18035 version_type=irix
18036 fi ;;
18037 esac
18038 need_lib_prefix=no
18039 need_version=no
18040 soname_spec='${libname}${release}${shared_ext}$major'
18041 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18042 case $host_os in
18043 irix5* | nonstopux*)
18044 libsuff= shlibsuff=
18045 ;;
18046 *)
18047 case $LD in # libtool.m4 will add one of these switches to LD
18048 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18049 libsuff= shlibsuff= libmagic=32-bit;;
18050 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18051 libsuff=32 shlibsuff=N32 libmagic=N32;;
18052 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18053 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18054 *) libsuff= shlibsuff= libmagic=never-match;;
18055 esac
18056 ;;
18057 esac
18058 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18059 shlibpath_overrides_runpath=no
18060 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18061 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18062 hardcode_into_libs=yes
18063 ;;
18064
18065# No shared lib support for Linux oldld, aout, or coff.
18066linux*oldld* | linux*aout* | linux*coff*)
18067 dynamic_linker=no
18068 ;;
18069
18070# This must be Linux ELF.
18071linux*)
18072 version_type=linux
18073 need_lib_prefix=no
18074 need_version=no
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18076 soname_spec='${libname}${release}${shared_ext}$major'
18077 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18078 shlibpath_var=LD_LIBRARY_PATH
18079 shlibpath_overrides_runpath=no
18080 # This implies no fast_install, which is unacceptable.
18081 # Some rework will be needed to allow for fast_install
18082 # before this can be enabled.
18083 hardcode_into_libs=yes
18084
18085 # Append ld.so.conf contents to the search path
18086 if test -f /etc/ld.so.conf; then
18087 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18088 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18089 fi
18090
18091 # We used to test for /lib/ld.so.1 and disable shared libraries on
18092 # powerpc, because MkLinux only supported shared libraries with the
18093 # GNU dynamic linker. Since this was broken with cross compilers,
18094 # most powerpc-linux boxes support dynamic linking these days and
18095 # people can always --disable-shared, the test was removed, and we
18096 # assume the GNU/Linux dynamic linker is in use.
18097 dynamic_linker='GNU/Linux ld.so'
18098 ;;
18099
18100knetbsd*-gnu)
18101 version_type=linux
18102 need_lib_prefix=no
18103 need_version=no
18104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18105 soname_spec='${libname}${release}${shared_ext}$major'
18106 shlibpath_var=LD_LIBRARY_PATH
18107 shlibpath_overrides_runpath=no
18108 hardcode_into_libs=yes
18109 dynamic_linker='GNU ld.so'
18110 ;;
18111
18112netbsd*)
18113 version_type=sunos
18114 need_lib_prefix=no
18115 need_version=no
18116 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18119 dynamic_linker='NetBSD (a.out) ld.so'
18120 else
18121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18122 soname_spec='${libname}${release}${shared_ext}$major'
18123 dynamic_linker='NetBSD ld.elf_so'
18124 fi
18125 shlibpath_var=LD_LIBRARY_PATH
18126 shlibpath_overrides_runpath=yes
18127 hardcode_into_libs=yes
18128 ;;
18129
18130newsos6)
18131 version_type=linux
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18133 shlibpath_var=LD_LIBRARY_PATH
18134 shlibpath_overrides_runpath=yes
18135 ;;
18136
18137nto-qnx*)
18138 version_type=linux
18139 need_lib_prefix=no
18140 need_version=no
18141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18142 soname_spec='${libname}${release}${shared_ext}$major'
18143 shlibpath_var=LD_LIBRARY_PATH
18144 shlibpath_overrides_runpath=yes
18145 ;;
18146
18147openbsd*)
18148 version_type=sunos
18149 sys_lib_dlsearch_path_spec="/usr/lib"
18150 need_lib_prefix=no
18151 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18152 case $host_os in
18153 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18154 *) need_version=no ;;
18155 esac
18156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18157 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18158 shlibpath_var=LD_LIBRARY_PATH
18159 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18160 case $host_os in
18161 openbsd2.[89] | openbsd2.[89].*)
18162 shlibpath_overrides_runpath=no
18163 ;;
18164 *)
18165 shlibpath_overrides_runpath=yes
18166 ;;
18167 esac
18168 else
18169 shlibpath_overrides_runpath=yes
18170 fi
18171 ;;
18172
18173os2*)
18174 libname_spec='$name'
18175 shrext_cmds=".dll"
18176 need_lib_prefix=no
18177 library_names_spec='$libname${shared_ext} $libname.a'
18178 dynamic_linker='OS/2 ld.exe'
18179 shlibpath_var=LIBPATH
18180 ;;
18181
18182osf3* | osf4* | osf5*)
18183 version_type=osf
18184 need_lib_prefix=no
18185 need_version=no
18186 soname_spec='${libname}${release}${shared_ext}$major'
18187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18188 shlibpath_var=LD_LIBRARY_PATH
18189 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18190 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18191 ;;
18192
18193solaris*)
18194 version_type=linux
18195 need_lib_prefix=no
18196 need_version=no
18197 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18198 soname_spec='${libname}${release}${shared_ext}$major'
18199 shlibpath_var=LD_LIBRARY_PATH
18200 shlibpath_overrides_runpath=yes
18201 hardcode_into_libs=yes
18202 # ldd complains unless libraries are executable
18203 postinstall_cmds='chmod +x $lib'
18204 ;;
18205
18206sunos4*)
18207 version_type=sunos
18208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18209 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18210 shlibpath_var=LD_LIBRARY_PATH
18211 shlibpath_overrides_runpath=yes
18212 if test "$with_gnu_ld" = yes; then
18213 need_lib_prefix=no
18214 fi
18215 need_version=yes
18216 ;;
18217
18218sysv4 | sysv4.3*)
18219 version_type=linux
18220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18221 soname_spec='${libname}${release}${shared_ext}$major'
18222 shlibpath_var=LD_LIBRARY_PATH
18223 case $host_vendor in
18224 sni)
18225 shlibpath_overrides_runpath=no
18226 need_lib_prefix=no
18227 export_dynamic_flag_spec='${wl}-Blargedynsym'
18228 runpath_var=LD_RUN_PATH
18229 ;;
18230 siemens)
18231 need_lib_prefix=no
18232 ;;
18233 motorola)
18234 need_lib_prefix=no
18235 need_version=no
18236 shlibpath_overrides_runpath=no
18237 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18238 ;;
18239 esac
18240 ;;
18241
18242sysv4*MP*)
18243 if test -d /usr/nec ;then
18244 version_type=linux
18245 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18246 soname_spec='$libname${shared_ext}.$major'
18247 shlibpath_var=LD_LIBRARY_PATH
18248 fi
18249 ;;
18250
18251sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18252 version_type=freebsd-elf
18253 need_lib_prefix=no
18254 need_version=no
18255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18256 soname_spec='${libname}${release}${shared_ext}$major'
18257 shlibpath_var=LD_LIBRARY_PATH
18258 hardcode_into_libs=yes
18259 if test "$with_gnu_ld" = yes; then
18260 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18261 shlibpath_overrides_runpath=no
18262 else
18263 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18264 shlibpath_overrides_runpath=yes
18265 case $host_os in
18266 sco3.2v5*)
18267 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18268 ;;
18269 esac
18270 fi
18271 sys_lib_dlsearch_path_spec='/usr/lib'
18272 ;;
18273
18274uts4*)
18275 version_type=linux
18276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18277 soname_spec='${libname}${release}${shared_ext}$major'
18278 shlibpath_var=LD_LIBRARY_PATH
18279 ;;
18280
18281*)
18282 dynamic_linker=no
18283 ;;
18284esac
18285{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18286$as_echo "$dynamic_linker" >&6; }
18287test "$dynamic_linker" = no && can_build_shared=no
18288
18289variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18290if test "$GCC" = yes; then
18291 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18292fi
18293
18294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18295$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18296hardcode_action_GCJ=
18297if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18298 test -n "$runpath_var_GCJ" || \
18299 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18300
18301 # We can hardcode non-existant directories.
18302 if test "$hardcode_direct_GCJ" != no &&
18303 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18304 # have to relink, otherwise we might link with an installed library
18305 # when we should be linking with a yet-to-be-installed one
18306 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18307 test "$hardcode_minus_L_GCJ" != no; then
18308 # Linking always hardcodes the temporary library directory.
18309 hardcode_action_GCJ=relink
18310 else
18311 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18312 hardcode_action_GCJ=immediate
18313 fi
18314else
18315 # We cannot hardcode anything, or else we can only hardcode existing
18316 # directories.
18317 hardcode_action_GCJ=unsupported
18318fi
18319{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18320$as_echo "$hardcode_action_GCJ" >&6; }
18321
18322if test "$hardcode_action_GCJ" = relink; then
18323 # Fast installation is not supported
18324 enable_fast_install=no
18325elif test "$shlibpath_overrides_runpath" = yes ||
18326 test "$enable_shared" = no; then
18327 # Fast installation is not necessary
18328 enable_fast_install=needless
18329fi
18330
18331
18332# The else clause should only fire when bootstrapping the
18333# libtool distribution, otherwise you forgot to ship ltmain.sh
18334# with your package, and you will get complaints that there are
18335# no rules to generate ltmain.sh.
18336if test -f "$ltmain"; then
18337 # See if we are running on zsh, and set the options which allow our commands through
18338 # without removal of \ escapes.
18339 if test -n "${ZSH_VERSION+set}" ; then
18340 setopt NO_GLOB_SUBST
18341 fi
18342 # Now quote all the things that may contain metacharacters while being
18343 # careful not to overquote the AC_SUBSTed values. We take copies of the
18344 # variables and quote the copies for generation of the libtool script.
18345 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18346 SED SHELL STRIP \
18347 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18348 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18349 deplibs_check_method reload_flag reload_cmds need_locks \
18350 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18351 lt_cv_sys_global_symbol_to_c_name_address \
18352 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18353 old_postinstall_cmds old_postuninstall_cmds \
18354 compiler_GCJ \
18355 CC_GCJ \
18356 LD_GCJ \
18357 lt_prog_compiler_wl_GCJ \
18358 lt_prog_compiler_pic_GCJ \
18359 lt_prog_compiler_static_GCJ \
18360 lt_prog_compiler_no_builtin_flag_GCJ \
18361 export_dynamic_flag_spec_GCJ \
18362 thread_safe_flag_spec_GCJ \
18363 whole_archive_flag_spec_GCJ \
18364 enable_shared_with_static_runtimes_GCJ \
18365 old_archive_cmds_GCJ \
18366 old_archive_from_new_cmds_GCJ \
18367 predep_objects_GCJ \
18368 postdep_objects_GCJ \
18369 predeps_GCJ \
18370 postdeps_GCJ \
18371 compiler_lib_search_path_GCJ \
18372 archive_cmds_GCJ \
18373 archive_expsym_cmds_GCJ \
18374 postinstall_cmds_GCJ \
18375 postuninstall_cmds_GCJ \
18376 old_archive_from_expsyms_cmds_GCJ \
18377 allow_undefined_flag_GCJ \
18378 no_undefined_flag_GCJ \
18379 export_symbols_cmds_GCJ \
18380 hardcode_libdir_flag_spec_GCJ \
18381 hardcode_libdir_flag_spec_ld_GCJ \
18382 hardcode_libdir_separator_GCJ \
18383 hardcode_automatic_GCJ \
18384 module_cmds_GCJ \
18385 module_expsym_cmds_GCJ \
18386 lt_cv_prog_compiler_c_o_GCJ \
18387 exclude_expsyms_GCJ \
18388 include_expsyms_GCJ; do
18389
18390 case $var in
18391 old_archive_cmds_GCJ | \
18392 old_archive_from_new_cmds_GCJ | \
18393 archive_cmds_GCJ | \
18394 archive_expsym_cmds_GCJ | \
18395 module_cmds_GCJ | \
18396 module_expsym_cmds_GCJ | \
18397 old_archive_from_expsyms_cmds_GCJ | \
18398 export_symbols_cmds_GCJ | \
18399 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18400 postinstall_cmds | postuninstall_cmds | \
18401 old_postinstall_cmds | old_postuninstall_cmds | \
18402 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18403 # Double-quote double-evaled strings.
18404 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18405 ;;
18406 *)
18407 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18408 ;;
18409 esac
18410 done
18411
18412 case $lt_echo in
18413 *'\$0 --fallback-echo"')
18414 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18415 ;;
18416 esac
18417
18418cfgfile="$ofile"
18419
18420 cat <<__EOF__ >> "$cfgfile"
18421# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18422
18423# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18424
18425# Shell to use when invoking shell scripts.
18426SHELL=$lt_SHELL
18427
18428# Whether or not to build shared libraries.
18429build_libtool_libs=$enable_shared
18430
18431# Whether or not to build static libraries.
18432build_old_libs=$enable_static
18433
18434# Whether or not to add -lc for building shared libraries.
18435build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18436
18437# Whether or not to disallow shared libs when runtime libs are static
18438allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18439
18440# Whether or not to optimize for fast installation.
18441fast_install=$enable_fast_install
18442
18443# The host system.
18444host_alias=$host_alias
18445host=$host
18446host_os=$host_os
18447
18448# The build system.
18449build_alias=$build_alias
18450build=$build
18451build_os=$build_os
18452
18453# An echo program that does not interpret backslashes.
18454echo=$lt_echo
18455
18456# The archiver.
18457AR=$lt_AR
18458AR_FLAGS=$lt_AR_FLAGS
18459
18460# A C compiler.
18461LTCC=$lt_LTCC
18462
18463# LTCC compiler flags.
18464LTCFLAGS=$lt_LTCFLAGS
18465
18466# A language-specific compiler.
18467CC=$lt_compiler_GCJ
18468
18469# Is the compiler the GNU C compiler?
18470with_gcc=$GCC_GCJ
18471
18472# An ERE matcher.
18473EGREP=$lt_EGREP
18474
18475# The linker used to build libraries.
18476LD=$lt_LD_GCJ
18477
18478# Whether we need hard or soft links.
18479LN_S=$lt_LN_S
18480
18481# A BSD-compatible nm program.
18482NM=$lt_NM
18483
18484# A symbol stripping program
18485STRIP=$lt_STRIP
18486
18487# Used to examine libraries when file_magic_cmd begins "file"
18488MAGIC_CMD=$MAGIC_CMD
18489
18490# Used on cygwin: DLL creation program.
18491DLLTOOL="$DLLTOOL"
18492
18493# Used on cygwin: object dumper.
18494OBJDUMP="$OBJDUMP"
18495
18496# Used on cygwin: assembler.
18497AS="$AS"
18498
18499# The name of the directory that contains temporary libtool files.
18500objdir=$objdir
18501
18502# How to create reloadable object files.
18503reload_flag=$lt_reload_flag
18504reload_cmds=$lt_reload_cmds
18505
18506# How to pass a linker flag through the compiler.
18507wl=$lt_lt_prog_compiler_wl_GCJ
18508
18509# Object file suffix (normally "o").
18510objext="$ac_objext"
18511
18512# Old archive suffix (normally "a").
18513libext="$libext"
18514
18515# Shared library suffix (normally ".so").
18516shrext_cmds='$shrext_cmds'
18517
18518# Executable file suffix (normally "").
18519exeext="$exeext"
18520
18521# Additional compiler flags for building library objects.
18522pic_flag=$lt_lt_prog_compiler_pic_GCJ
18523pic_mode=$pic_mode
18524
18525# What is the maximum length of a command?
18526max_cmd_len=$lt_cv_sys_max_cmd_len
18527
18528# Does compiler simultaneously support -c and -o options?
18529compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18530
18531# Must we lock files when doing compilation?
18532need_locks=$lt_need_locks
18533
18534# Do we need the lib prefix for modules?
18535need_lib_prefix=$need_lib_prefix
18536
18537# Do we need a version for libraries?
18538need_version=$need_version
18539
18540# Whether dlopen is supported.
18541dlopen_support=$enable_dlopen
18542
18543# Whether dlopen of programs is supported.
18544dlopen_self=$enable_dlopen_self
18545
18546# Whether dlopen of statically linked programs is supported.
18547dlopen_self_static=$enable_dlopen_self_static
18548
18549# Compiler flag to prevent dynamic linking.
18550link_static_flag=$lt_lt_prog_compiler_static_GCJ
18551
18552# Compiler flag to turn off builtin functions.
18553no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18554
18555# Compiler flag to allow reflexive dlopens.
18556export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18557
18558# Compiler flag to generate shared objects directly from archives.
18559whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18560
18561# Compiler flag to generate thread-safe objects.
18562thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18563
18564# Library versioning type.
18565version_type=$version_type
18566
18567# Format of library name prefix.
18568libname_spec=$lt_libname_spec
18569
18570# List of archive names. First name is the real one, the rest are links.
18571# The last name is the one that the linker finds with -lNAME.
18572library_names_spec=$lt_library_names_spec
18573
18574# The coded name of the library, if different from the real name.
18575soname_spec=$lt_soname_spec
18576
18577# Commands used to build and install an old-style archive.
18578RANLIB=$lt_RANLIB
18579old_archive_cmds=$lt_old_archive_cmds_GCJ
18580old_postinstall_cmds=$lt_old_postinstall_cmds
18581old_postuninstall_cmds=$lt_old_postuninstall_cmds
18582
18583# Create an old-style archive from a shared archive.
18584old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18585
18586# Create a temporary old-style archive to link instead of a shared archive.
18587old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18588
18589# Commands used to build and install a shared archive.
18590archive_cmds=$lt_archive_cmds_GCJ
18591archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18592postinstall_cmds=$lt_postinstall_cmds
18593postuninstall_cmds=$lt_postuninstall_cmds
18594
18595# Commands used to build a loadable module (assumed same as above if empty)
18596module_cmds=$lt_module_cmds_GCJ
18597module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18598
18599# Commands to strip libraries.
18600old_striplib=$lt_old_striplib
18601striplib=$lt_striplib
18602
18603# Dependencies to place before the objects being linked to create a
18604# shared library.
18605predep_objects=$lt_predep_objects_GCJ
18606
18607# Dependencies to place after the objects being linked to create a
18608# shared library.
18609postdep_objects=$lt_postdep_objects_GCJ
18610
18611# Dependencies to place before the objects being linked to create a
18612# shared library.
18613predeps=$lt_predeps_GCJ
18614
18615# Dependencies to place after the objects being linked to create a
18616# shared library.
18617postdeps=$lt_postdeps_GCJ
18618
18619# The library search path used internally by the compiler when linking
18620# a shared library.
18621compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18622
18623# Method to check whether dependent libraries are shared objects.
18624deplibs_check_method=$lt_deplibs_check_method
18625
18626# Command to use when deplibs_check_method == file_magic.
18627file_magic_cmd=$lt_file_magic_cmd
18628
18629# Flag that allows shared libraries with undefined symbols to be built.
18630allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18631
18632# Flag that forces no undefined symbols.
18633no_undefined_flag=$lt_no_undefined_flag_GCJ
18634
18635# Commands used to finish a libtool library installation in a directory.
18636finish_cmds=$lt_finish_cmds
18637
18638# Same as above, but a single script fragment to be evaled but not shown.
18639finish_eval=$lt_finish_eval
18640
18641# Take the output of nm and produce a listing of raw symbols and C names.
18642global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18643
18644# Transform the output of nm in a proper C declaration
18645global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18646
18647# Transform the output of nm in a C name address pair
18648global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18649
18650# This is the shared library runtime path variable.
18651runpath_var=$runpath_var
18652
18653# This is the shared library path variable.
18654shlibpath_var=$shlibpath_var
18655
18656# Is shlibpath searched before the hard-coded library search path?
18657shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18658
18659# How to hardcode a shared library path into an executable.
18660hardcode_action=$hardcode_action_GCJ
18661
18662# Whether we should hardcode library paths into libraries.
18663hardcode_into_libs=$hardcode_into_libs
18664
18665# Flag to hardcode \$libdir into a binary during linking.
18666# This must work even if \$libdir does not exist.
18667hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18668
18669# If ld is used when linking, flag to hardcode \$libdir into
18670# a binary during linking. This must work even if \$libdir does
18671# not exist.
18672hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18673
18674# Whether we need a single -rpath flag with a separated argument.
18675hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18676
18677# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18678# resulting binary.
18679hardcode_direct=$hardcode_direct_GCJ
18680
18681# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18682# resulting binary.
18683hardcode_minus_L=$hardcode_minus_L_GCJ
18684
18685# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18686# the resulting binary.
18687hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18688
18689# Set to yes if building a shared library automatically hardcodes DIR into the library
18690# and all subsequent libraries and executables linked against it.
18691hardcode_automatic=$hardcode_automatic_GCJ
18692
18693# Variables whose values should be saved in libtool wrapper scripts and
18694# restored at relink time.
18695variables_saved_for_relink="$variables_saved_for_relink"
18696
18697# Whether libtool must link a program against all its dependency libraries.
18698link_all_deplibs=$link_all_deplibs_GCJ
18699
18700# Compile-time system search path for libraries
18701sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18702
18703# Run-time system search path for libraries
18704sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18705
18706# Fix the shell variable \$srcfile for the compiler.
18707fix_srcfile_path="$fix_srcfile_path_GCJ"
18708
18709# Set to yes if exported symbols are required.
18710always_export_symbols=$always_export_symbols_GCJ
18711
18712# The commands to list exported symbols.
18713export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18714
18715# The commands to extract the exported symbol list from a shared archive.
18716extract_expsyms_cmds=$lt_extract_expsyms_cmds
18717
18718# Symbols that should not be listed in the preloaded symbols.
18719exclude_expsyms=$lt_exclude_expsyms_GCJ
18720
18721# Symbols that must always be exported.
18722include_expsyms=$lt_include_expsyms_GCJ
18723
18724# ### END LIBTOOL TAG CONFIG: $tagname
18725
18726__EOF__
18727
18728
18729else
18730 # If there is no Makefile yet, we rely on a make rule to execute
18731 # `config.status --recheck' to rerun these tests and create the
18732 # libtool script then.
18733 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18734 if test -f "$ltmain_in"; then
18735 test -f Makefile && make "$ltmain"
18736 fi
18737fi
18738
18739
18740ac_ext=c
18741ac_cpp='$CPP $CPPFLAGS'
18742ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18743ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18744ac_compiler_gnu=$ac_cv_c_compiler_gnu
18745
18746CC="$lt_save_CC"
18747
18748 else
18749 tagname=""
18750 fi
18751 ;;
18752
18753 RC)
18754
18755
18756# Source file extension for RC test sources.
18757ac_ext=rc
18758
18759# Object file extension for compiled RC test sources.
18760objext=o
18761objext_RC=$objext
18762
18763# Code to be used in simple compile tests
18764lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18765
18766# Code to be used in simple link tests
18767lt_simple_link_test_code="$lt_simple_compile_test_code"
18768
18769# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18770
18771# If no C compiler was specified, use CC.
18772LTCC=${LTCC-"$CC"}
18773
18774# If no C compiler flags were specified, use CFLAGS.
18775LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18776
18777# Allow CC to be a program name with arguments.
18778compiler=$CC
18779
18780
18781# save warnings/boilerplate of simple test code
18782ac_outfile=conftest.$ac_objext
18783printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18784eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18785_lt_compiler_boilerplate=`cat conftest.err`
18786$rm conftest*
18787
18788ac_outfile=conftest.$ac_objext
18789printf "$lt_simple_link_test_code" >conftest.$ac_ext
18790eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18791_lt_linker_boilerplate=`cat conftest.err`
18792$rm conftest*
18793
18794
18795# Allow CC to be a program name with arguments.
18796lt_save_CC="$CC"
18797CC=${RC-"windres"}
18798compiler=$CC
18799compiler_RC=$CC
18800for cc_temp in $compiler""; do
18801 case $cc_temp in
18802 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18803 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18804 \-*) ;;
18805 *) break;;
18806 esac
18807done
18808cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18809
18810lt_cv_prog_compiler_c_o_RC=yes
18811
18812# The else clause should only fire when bootstrapping the
18813# libtool distribution, otherwise you forgot to ship ltmain.sh
18814# with your package, and you will get complaints that there are
18815# no rules to generate ltmain.sh.
18816if test -f "$ltmain"; then
18817 # See if we are running on zsh, and set the options which allow our commands through
18818 # without removal of \ escapes.
18819 if test -n "${ZSH_VERSION+set}" ; then
18820 setopt NO_GLOB_SUBST
18821 fi
18822 # Now quote all the things that may contain metacharacters while being
18823 # careful not to overquote the AC_SUBSTed values. We take copies of the
18824 # variables and quote the copies for generation of the libtool script.
18825 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18826 SED SHELL STRIP \
18827 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18828 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18829 deplibs_check_method reload_flag reload_cmds need_locks \
18830 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18831 lt_cv_sys_global_symbol_to_c_name_address \
18832 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18833 old_postinstall_cmds old_postuninstall_cmds \
18834 compiler_RC \
18835 CC_RC \
18836 LD_RC \
18837 lt_prog_compiler_wl_RC \
18838 lt_prog_compiler_pic_RC \
18839 lt_prog_compiler_static_RC \
18840 lt_prog_compiler_no_builtin_flag_RC \
18841 export_dynamic_flag_spec_RC \
18842 thread_safe_flag_spec_RC \
18843 whole_archive_flag_spec_RC \
18844 enable_shared_with_static_runtimes_RC \
18845 old_archive_cmds_RC \
18846 old_archive_from_new_cmds_RC \
18847 predep_objects_RC \
18848 postdep_objects_RC \
18849 predeps_RC \
18850 postdeps_RC \
18851 compiler_lib_search_path_RC \
18852 archive_cmds_RC \
18853 archive_expsym_cmds_RC \
18854 postinstall_cmds_RC \
18855 postuninstall_cmds_RC \
18856 old_archive_from_expsyms_cmds_RC \
18857 allow_undefined_flag_RC \
18858 no_undefined_flag_RC \
18859 export_symbols_cmds_RC \
18860 hardcode_libdir_flag_spec_RC \
18861 hardcode_libdir_flag_spec_ld_RC \
18862 hardcode_libdir_separator_RC \
18863 hardcode_automatic_RC \
18864 module_cmds_RC \
18865 module_expsym_cmds_RC \
18866 lt_cv_prog_compiler_c_o_RC \
18867 exclude_expsyms_RC \
18868 include_expsyms_RC; do
18869
18870 case $var in
18871 old_archive_cmds_RC | \
18872 old_archive_from_new_cmds_RC | \
18873 archive_cmds_RC | \
18874 archive_expsym_cmds_RC | \
18875 module_cmds_RC | \
18876 module_expsym_cmds_RC | \
18877 old_archive_from_expsyms_cmds_RC | \
18878 export_symbols_cmds_RC | \
18879 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18880 postinstall_cmds | postuninstall_cmds | \
18881 old_postinstall_cmds | old_postuninstall_cmds | \
18882 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18883 # Double-quote double-evaled strings.
18884 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18885 ;;
18886 *)
18887 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18888 ;;
18889 esac
18890 done
18891
18892 case $lt_echo in
18893 *'\$0 --fallback-echo"')
18894 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18895 ;;
18896 esac
18897
18898cfgfile="$ofile"
18899
18900 cat <<__EOF__ >> "$cfgfile"
18901# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18902
18903# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18904
18905# Shell to use when invoking shell scripts.
18906SHELL=$lt_SHELL
18907
18908# Whether or not to build shared libraries.
18909build_libtool_libs=$enable_shared
18910
18911# Whether or not to build static libraries.
18912build_old_libs=$enable_static
18913
18914# Whether or not to add -lc for building shared libraries.
18915build_libtool_need_lc=$archive_cmds_need_lc_RC
18916
18917# Whether or not to disallow shared libs when runtime libs are static
18918allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18919
18920# Whether or not to optimize for fast installation.
18921fast_install=$enable_fast_install
18922
18923# The host system.
18924host_alias=$host_alias
18925host=$host
18926host_os=$host_os
18927
18928# The build system.
18929build_alias=$build_alias
18930build=$build
18931build_os=$build_os
18932
18933# An echo program that does not interpret backslashes.
18934echo=$lt_echo
18935
18936# The archiver.
18937AR=$lt_AR
18938AR_FLAGS=$lt_AR_FLAGS
18939
18940# A C compiler.
18941LTCC=$lt_LTCC
18942
18943# LTCC compiler flags.
18944LTCFLAGS=$lt_LTCFLAGS
18945
18946# A language-specific compiler.
18947CC=$lt_compiler_RC
18948
18949# Is the compiler the GNU C compiler?
18950with_gcc=$GCC_RC
18951
18952# An ERE matcher.
18953EGREP=$lt_EGREP
18954
18955# The linker used to build libraries.
18956LD=$lt_LD_RC
18957
18958# Whether we need hard or soft links.
18959LN_S=$lt_LN_S
18960
18961# A BSD-compatible nm program.
18962NM=$lt_NM
18963
18964# A symbol stripping program
18965STRIP=$lt_STRIP
18966
18967# Used to examine libraries when file_magic_cmd begins "file"
18968MAGIC_CMD=$MAGIC_CMD
18969
18970# Used on cygwin: DLL creation program.
18971DLLTOOL="$DLLTOOL"
18972
18973# Used on cygwin: object dumper.
18974OBJDUMP="$OBJDUMP"
18975
18976# Used on cygwin: assembler.
18977AS="$AS"
18978
18979# The name of the directory that contains temporary libtool files.
18980objdir=$objdir
18981
18982# How to create reloadable object files.
18983reload_flag=$lt_reload_flag
18984reload_cmds=$lt_reload_cmds
18985
18986# How to pass a linker flag through the compiler.
18987wl=$lt_lt_prog_compiler_wl_RC
18988
18989# Object file suffix (normally "o").
18990objext="$ac_objext"
18991
18992# Old archive suffix (normally "a").
18993libext="$libext"
18994
18995# Shared library suffix (normally ".so").
18996shrext_cmds='$shrext_cmds'
18997
18998# Executable file suffix (normally "").
18999exeext="$exeext"
19000
19001# Additional compiler flags for building library objects.
19002pic_flag=$lt_lt_prog_compiler_pic_RC
19003pic_mode=$pic_mode
19004
19005# What is the maximum length of a command?
19006max_cmd_len=$lt_cv_sys_max_cmd_len
19007
19008# Does compiler simultaneously support -c and -o options?
19009compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19010
19011# Must we lock files when doing compilation?
19012need_locks=$lt_need_locks
19013
19014# Do we need the lib prefix for modules?
19015need_lib_prefix=$need_lib_prefix
19016
19017# Do we need a version for libraries?
19018need_version=$need_version
19019
19020# Whether dlopen is supported.
19021dlopen_support=$enable_dlopen
19022
19023# Whether dlopen of programs is supported.
19024dlopen_self=$enable_dlopen_self
19025
19026# Whether dlopen of statically linked programs is supported.
19027dlopen_self_static=$enable_dlopen_self_static
19028
19029# Compiler flag to prevent dynamic linking.
19030link_static_flag=$lt_lt_prog_compiler_static_RC
19031
19032# Compiler flag to turn off builtin functions.
19033no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19034
19035# Compiler flag to allow reflexive dlopens.
19036export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19037
19038# Compiler flag to generate shared objects directly from archives.
19039whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19040
19041# Compiler flag to generate thread-safe objects.
19042thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19043
19044# Library versioning type.
19045version_type=$version_type
19046
19047# Format of library name prefix.
19048libname_spec=$lt_libname_spec
19049
19050# List of archive names. First name is the real one, the rest are links.
19051# The last name is the one that the linker finds with -lNAME.
19052library_names_spec=$lt_library_names_spec
19053
19054# The coded name of the library, if different from the real name.
19055soname_spec=$lt_soname_spec
19056
19057# Commands used to build and install an old-style archive.
19058RANLIB=$lt_RANLIB
19059old_archive_cmds=$lt_old_archive_cmds_RC
19060old_postinstall_cmds=$lt_old_postinstall_cmds
19061old_postuninstall_cmds=$lt_old_postuninstall_cmds
19062
19063# Create an old-style archive from a shared archive.
19064old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19065
19066# Create a temporary old-style archive to link instead of a shared archive.
19067old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19068
19069# Commands used to build and install a shared archive.
19070archive_cmds=$lt_archive_cmds_RC
19071archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19072postinstall_cmds=$lt_postinstall_cmds
19073postuninstall_cmds=$lt_postuninstall_cmds
19074
19075# Commands used to build a loadable module (assumed same as above if empty)
19076module_cmds=$lt_module_cmds_RC
19077module_expsym_cmds=$lt_module_expsym_cmds_RC
19078
19079# Commands to strip libraries.
19080old_striplib=$lt_old_striplib
19081striplib=$lt_striplib
19082
19083# Dependencies to place before the objects being linked to create a
19084# shared library.
19085predep_objects=$lt_predep_objects_RC
19086
19087# Dependencies to place after the objects being linked to create a
19088# shared library.
19089postdep_objects=$lt_postdep_objects_RC
19090
19091# Dependencies to place before the objects being linked to create a
19092# shared library.
19093predeps=$lt_predeps_RC
19094
19095# Dependencies to place after the objects being linked to create a
19096# shared library.
19097postdeps=$lt_postdeps_RC
19098
19099# The library search path used internally by the compiler when linking
19100# a shared library.
19101compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19102
19103# Method to check whether dependent libraries are shared objects.
19104deplibs_check_method=$lt_deplibs_check_method
19105
19106# Command to use when deplibs_check_method == file_magic.
19107file_magic_cmd=$lt_file_magic_cmd
19108
19109# Flag that allows shared libraries with undefined symbols to be built.
19110allow_undefined_flag=$lt_allow_undefined_flag_RC
19111
19112# Flag that forces no undefined symbols.
19113no_undefined_flag=$lt_no_undefined_flag_RC
19114
19115# Commands used to finish a libtool library installation in a directory.
19116finish_cmds=$lt_finish_cmds
19117
19118# Same as above, but a single script fragment to be evaled but not shown.
19119finish_eval=$lt_finish_eval
19120
19121# Take the output of nm and produce a listing of raw symbols and C names.
19122global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19123
19124# Transform the output of nm in a proper C declaration
19125global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19126
19127# Transform the output of nm in a C name address pair
19128global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19129
19130# This is the shared library runtime path variable.
19131runpath_var=$runpath_var
19132
19133# This is the shared library path variable.
19134shlibpath_var=$shlibpath_var
19135
19136# Is shlibpath searched before the hard-coded library search path?
19137shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19138
19139# How to hardcode a shared library path into an executable.
19140hardcode_action=$hardcode_action_RC
19141
19142# Whether we should hardcode library paths into libraries.
19143hardcode_into_libs=$hardcode_into_libs
19144
19145# Flag to hardcode \$libdir into a binary during linking.
19146# This must work even if \$libdir does not exist.
19147hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19148
19149# If ld is used when linking, flag to hardcode \$libdir into
19150# a binary during linking. This must work even if \$libdir does
19151# not exist.
19152hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19153
19154# Whether we need a single -rpath flag with a separated argument.
19155hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19156
19157# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19158# resulting binary.
19159hardcode_direct=$hardcode_direct_RC
19160
19161# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19162# resulting binary.
19163hardcode_minus_L=$hardcode_minus_L_RC
19164
19165# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19166# the resulting binary.
19167hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19168
19169# Set to yes if building a shared library automatically hardcodes DIR into the library
19170# and all subsequent libraries and executables linked against it.
19171hardcode_automatic=$hardcode_automatic_RC
19172
19173# Variables whose values should be saved in libtool wrapper scripts and
19174# restored at relink time.
19175variables_saved_for_relink="$variables_saved_for_relink"
19176
19177# Whether libtool must link a program against all its dependency libraries.
19178link_all_deplibs=$link_all_deplibs_RC
19179
19180# Compile-time system search path for libraries
19181sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19182
19183# Run-time system search path for libraries
19184sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19185
19186# Fix the shell variable \$srcfile for the compiler.
19187fix_srcfile_path="$fix_srcfile_path_RC"
19188
19189# Set to yes if exported symbols are required.
19190always_export_symbols=$always_export_symbols_RC
19191
19192# The commands to list exported symbols.
19193export_symbols_cmds=$lt_export_symbols_cmds_RC
19194
19195# The commands to extract the exported symbol list from a shared archive.
19196extract_expsyms_cmds=$lt_extract_expsyms_cmds
19197
19198# Symbols that should not be listed in the preloaded symbols.
19199exclude_expsyms=$lt_exclude_expsyms_RC
19200
19201# Symbols that must always be exported.
19202include_expsyms=$lt_include_expsyms_RC
19203
19204# ### END LIBTOOL TAG CONFIG: $tagname
19205
19206__EOF__
19207
19208
19209else
19210 # If there is no Makefile yet, we rely on a make rule to execute
19211 # `config.status --recheck' to rerun these tests and create the
19212 # libtool script then.
19213 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19214 if test -f "$ltmain_in"; then
19215 test -f Makefile && make "$ltmain"
19216 fi
19217fi
19218
19219
19220ac_ext=c
19221ac_cpp='$CPP $CPPFLAGS'
19222ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19223ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19224ac_compiler_gnu=$ac_cv_c_compiler_gnu
19225
19226CC="$lt_save_CC"
19227
19228 ;;
19229
19230 *)
19231 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19232 ;;
19233 esac
19234
19235 # Append the new tag name to the list of available tags.
19236 if test -n "$tagname" ; then
19237 available_tags="$available_tags $tagname"
19238 fi
19239 fi
19240 done
19241 IFS="$lt_save_ifs"
19242
19243 # Now substitute the updated list of available tags.
19244 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19245 mv "${ofile}T" "$ofile"
19246 chmod +x "$ofile"
19247 else
19248 rm -f "${ofile}T"
19249 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19250 fi
19251fi
19252
19253
19254
19255# This can be used to rebuild libtool when needed
19256LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19257
19258# Always use our own libtool.
19259LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19260
19261# Prevent multiple expansion
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276
19277
19278
19279
19280
19281
19282# Extract the first word of "ar", so it can be a program name with args.
19283set dummy ar; ac_word=$2
19284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19285$as_echo_n "checking for $ac_word... " >&6; }
19286if ${ac_cv_path_AR+:} false; then :
19287 $as_echo_n "(cached) " >&6
19288else
19289 case $AR in
19290 [\\/]* | ?:[\\/]*)
19291 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19292 ;;
19293 *)
19294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19295as_dummy="$PATH:/usr/ccs/bin"
19296for as_dir in $as_dummy
19297do
19298 IFS=$as_save_IFS
19299 test -z "$as_dir" && as_dir=.
19300 for ac_exec_ext in '' $ac_executable_extensions; do
19301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19302 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19304 break 2
19305 fi
19306done
19307 done
19308IFS=$as_save_IFS
19309
19310 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
19311 ;;
19312esac
19313fi
19314AR=$ac_cv_path_AR
19315if test -n "$AR"; then
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19317$as_echo "$AR" >&6; }
19318else
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19320$as_echo "no" >&6; }
19321fi
19322
19323
19324
19325# Options
19326
19327
19328# Check whether --with-tightvnc-filetransfer was given.
19329if test "${with_tightvnc_filetransfer+set}" = set; then :
19330 withval=$with_tightvnc_filetransfer;
19331else
19332 with_tightvnc_filetransfer=yes
19333fi
19334
19335# AC_DEFINE moved to after libpthread check.
19336
19337# WebSockets support
19338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop in -lresolv" >&5
19339$as_echo_n "checking for __b64_ntop in -lresolv... " >&6; }
19340if ${ac_cv_lib_resolv___b64_ntop+:} false; then :
19341 $as_echo_n "(cached) " >&6
19342else
19343 ac_check_lib_save_LIBS=$LIBS
19344LIBS="-lresolv $LIBS"
19345cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19346/* end confdefs.h. */
19347
19348/* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19351#ifdef __cplusplus
19352extern "C"
19353#endif
19354char __b64_ntop ();
19355int
19356main ()
19357{
19358return __b64_ntop ();
19359 ;
19360 return 0;
19361}
19362_ACEOF
19363if ac_fn_c_try_link "$LINENO"; then :
19364 ac_cv_lib_resolv___b64_ntop=yes
19365else
19366 ac_cv_lib_resolv___b64_ntop=no
19367fi
19368rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370LIBS=$ac_check_lib_save_LIBS
19371fi
19372{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___b64_ntop" >&5
19373$as_echo "$ac_cv_lib_resolv___b64_ntop" >&6; }
19374if test "x$ac_cv_lib_resolv___b64_ntop" = xyes; then :
19375 HAVE_B64="true"
19376else
19377 HAVE_B64="false"
19378fi
19379
19380
19381
19382# Check whether --with-websockets was given.
19383if test "${with_websockets+set}" = set; then :
19384 withval=$with_websockets;
19385else
19386 with_websockets=yes
19387fi
19388
19389# AC_DEFINE moved to after libresolve check.
19390
19391
19392
19393# Check whether --with-24bpp was given.
19394if test "${with_24bpp+set}" = set; then :
19395 withval=$with_24bpp;
19396else
19397 with_24bpp=yes
19398fi
19399
19400if test "x$with_24bpp" = "xyes"; then
19401 $as_echo "#define ALLOW24BPP 1" >>confdefs.h
19402
19403fi
19404
19405
19406# Check whether --with-ffmpeg was given.
19407if test "${with_ffmpeg+set}" = set; then :
19408 withval=$with_ffmpeg;
19409fi
19410
19411
19412 if test ! -z "$with_ffmpeg"; then
19413 WITH_FFMPEG_TRUE=
19414 WITH_FFMPEG_FALSE='#'
19415else
19416 WITH_FFMPEG_TRUE='#'
19417 WITH_FFMPEG_FALSE=
19418fi
19419
19420if test ! -z "$with_ffmpeg"; then
19421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
19422$as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
19423if ${ac_cv_lib_mp3lame_lame_init+:} false; then :
19424 $as_echo_n "(cached) " >&6
19425else
19426 ac_check_lib_save_LIBS=$LIBS
19427LIBS="-lmp3lame $LIBS"
19428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19429/* end confdefs.h. */
19430
19431/* Override any GCC internal prototype to avoid an error.
19432 Use char because int might match the return type of a GCC
19433 builtin and then its argument prototype would still apply. */
19434#ifdef __cplusplus
19435extern "C"
19436#endif
19437char lame_init ();
19438int
19439main ()
19440{
19441return lame_init ();
19442 ;
19443 return 0;
19444}
19445_ACEOF
19446if ac_fn_c_try_link "$LINENO"; then :
19447 ac_cv_lib_mp3lame_lame_init=yes
19448else
19449 ac_cv_lib_mp3lame_lame_init=no
19450fi
19451rm -f core conftest.err conftest.$ac_objext \
19452 conftest$ac_exeext conftest.$ac_ext
19453LIBS=$ac_check_lib_save_LIBS
19454fi
19455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
19456$as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
19457if test "x$ac_cv_lib_mp3lame_lame_init" = xyes; then :
19458 HAVE_MP3LAME="true"
19459else
19460 HAVE_MP3LAME="false"
19461fi
19462
19463fi
19464 if test "$HAVE_MP3LAME" = "true"; then
19465 HAVE_MP3LAME_TRUE=
19466 HAVE_MP3LAME_FALSE='#'
19467else
19468 HAVE_MP3LAME_TRUE='#'
19469 HAVE_MP3LAME_FALSE=
19470fi
19471
19472
19473# Seem to need this dummy here to induce the 'checking for egrep... grep -E', etc.
19474# before it seemed to be inside the with_jpeg conditional.
19475ac_fn_c_check_header_mongrel "$LINENO" "thenonexistentheader.h" "ac_cv_header_thenonexistentheader_h" "$ac_includes_default"
19476if test "x$ac_cv_header_thenonexistentheader_h" = xyes; then :
19477 HAVE_THENONEXISTENTHEADER_H="true"
19478fi
19479
19480
19481
19482# set some ld -R nonsense
19483#
19484uname_s=`(uname -s) 2>/dev/null`
19485ld_minus_R="yes"
19486if test "x$uname_s" = "xHP-UX"; then
19487 ld_minus_R="no"
19488elif test "x$uname_s" = "xOSF1"; then
19489 ld_minus_R="no"
19490elif test "x$uname_s" = "xDarwin"; then
19491 ld_minus_R="no"
19492fi
19493
19494# Check for OpenSSL
19495
19496
19497# Check whether --with-crypt was given.
19498if test "${with_crypt+set}" = set; then :
19499 withval=$with_crypt;
19500fi
19501
19502if test "x$with_crypt" != "xno"; then
19503 for ac_func in crypt
19504do :
19505 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
19506if test "x$ac_cv_func_crypt" = xyes; then :
19507 cat >>confdefs.h <<_ACEOF
19508#define HAVE_CRYPT 1
19509_ACEOF
19510 HAVE_LIBC_CRYPT="true"
19511fi
19512done
19513
19514 if test -z "$HAVE_LIBC_CRYPT"; then
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19516$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19517if ${ac_cv_lib_crypt_crypt+:} false; then :
19518 $as_echo_n "(cached) " >&6
19519else
19520 ac_check_lib_save_LIBS=$LIBS
19521LIBS="-lcrypt $LIBS"
19522cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523/* end confdefs.h. */
19524
19525/* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19528#ifdef __cplusplus
19529extern "C"
19530#endif
19531char crypt ();
19532int
19533main ()
19534{
19535return crypt ();
19536 ;
19537 return 0;
19538}
19539_ACEOF
19540if ac_fn_c_try_link "$LINENO"; then :
19541 ac_cv_lib_crypt_crypt=yes
19542else
19543 ac_cv_lib_crypt_crypt=no
19544fi
19545rm -f core conftest.err conftest.$ac_objext \
19546 conftest$ac_exeext conftest.$ac_ext
19547LIBS=$ac_check_lib_save_LIBS
19548fi
19549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19550$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19551if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19552 CRYPT_LIBS="-lcrypt"
19553 $as_echo "#define HAVE_LIBCRYPT 1" >>confdefs.h
19554
19555fi
19556
19557 fi
19558fi
19559
19560
19561# some OS's need both -lssl and -lcrypto on link line:
19562
19563
19564# Check whether --with-crypto was given.
19565if test "${with_crypto+set}" = set; then :
19566 withval=$with_crypto;
19567fi
19568
19569
19570
19571
19572# Check whether --with-ssl was given.
19573if test "${with_ssl+set}" = set; then :
19574 withval=$with_ssl;
19575fi
19576
19577
19578if test "x$with_crypto" != "xno" -a "x$with_ssl" != "xno"; then
19579 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
19580 saved_CPPFLAGS="$CPPFLAGS"
19581 saved_LDFLAGS="$LDFLAGS"
19582 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
19583 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
19584 if test "x$ld_minus_R" = "xno"; then
19585 :
19586 elif test "x$GCC" = "xyes"; then
19587 LDFLAGS="$LDFLAGS -Xlinker -R$with_ssl/lib"
19588 else
19589 LDFLAGS="$LDFLAGS -R$with_ssl/lib"
19590 fi
19591 fi
19592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_file_name in -lcrypto" >&5
19593$as_echo_n "checking for RAND_file_name in -lcrypto... " >&6; }
19594if ${ac_cv_lib_crypto_RAND_file_name+:} false; then :
19595 $as_echo_n "(cached) " >&6
19596else
19597 ac_check_lib_save_LIBS=$LIBS
19598LIBS="-lcrypto $LIBS"
19599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19600/* end confdefs.h. */
19601
19602/* Override any GCC internal prototype to avoid an error.
19603 Use char because int might match the return type of a GCC
19604 builtin and then its argument prototype would still apply. */
19605#ifdef __cplusplus
19606extern "C"
19607#endif
19608char RAND_file_name ();
19609int
19610main ()
19611{
19612return RAND_file_name ();
19613 ;
19614 return 0;
19615}
19616_ACEOF
19617if ac_fn_c_try_link "$LINENO"; then :
19618 ac_cv_lib_crypto_RAND_file_name=yes
19619else
19620 ac_cv_lib_crypto_RAND_file_name=no
19621fi
19622rm -f core conftest.err conftest.$ac_objext \
19623 conftest$ac_exeext conftest.$ac_ext
19624LIBS=$ac_check_lib_save_LIBS
19625fi
19626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_file_name" >&5
19627$as_echo "$ac_cv_lib_crypto_RAND_file_name" >&6; }
19628if test "x$ac_cv_lib_crypto_RAND_file_name" = xyes; then :
19629 $as_echo "#define HAVE_LIBCRYPTO 1" >>confdefs.h
19630 HAVE_LIBCRYPTO="true"
19631fi
19632
19633 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
19634 if test "x$HAVE_LIBCRYPTO" != "xtrue"; then
19635 CPPFLAGS="$saved_CPPFLAGS"
19636 LDFLAGS="$saved_LDFLAGS"
19637 fi
19638 fi
19639fi
19640
19641
19642if test "x$with_ssl" != "xno"; then
19643 if test "x$HAVE_LIBCRYPTO" = "xtrue"; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
19645$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
19646if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
19647 $as_echo_n "(cached) " >&6
19648else
19649 ac_check_lib_save_LIBS=$LIBS
19650LIBS="-lssl -lcrypto $LIBS"
19651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19652/* end confdefs.h. */
19653
19654/* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657#ifdef __cplusplus
19658extern "C"
19659#endif
19660char SSL_library_init ();
19661int
19662main ()
19663{
19664return SSL_library_init ();
19665 ;
19666 return 0;
19667}
19668_ACEOF
19669if ac_fn_c_try_link "$LINENO"; then :
19670 ac_cv_lib_ssl_SSL_library_init=yes
19671else
19672 ac_cv_lib_ssl_SSL_library_init=no
19673fi
19674rm -f core conftest.err conftest.$ac_objext \
19675 conftest$ac_exeext conftest.$ac_ext
19676LIBS=$ac_check_lib_save_LIBS
19677fi
19678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19679$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
19680if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
19681 SSL_LIBS="-lssl -lcrypto"
19682 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
19683 HAVE_LIBSSL="true"
19684fi
19685
19686 else
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
19688$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
19689if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
19690 $as_echo_n "(cached) " >&6
19691else
19692 ac_check_lib_save_LIBS=$LIBS
19693LIBS="-lssl $LIBS"
19694cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695/* end confdefs.h. */
19696
19697/* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19700#ifdef __cplusplus
19701extern "C"
19702#endif
19703char SSL_library_init ();
19704int
19705main ()
19706{
19707return SSL_library_init ();
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712if ac_fn_c_try_link "$LINENO"; then :
19713 ac_cv_lib_ssl_SSL_library_init=yes
19714else
19715 ac_cv_lib_ssl_SSL_library_init=no
19716fi
19717rm -f core conftest.err conftest.$ac_objext \
19718 conftest$ac_exeext conftest.$ac_ext
19719LIBS=$ac_check_lib_save_LIBS
19720fi
19721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19722$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
19723if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
19724 SSL_LIBS="-lssl"
19725 $as_echo "#define HAVE_LIBSSL 1" >>confdefs.h
19726 HAVE_LIBSSL="true"
19727fi
19728
19729 fi
19730fi
19731
19732 if test ! -z "$SSL_LIBS"; then
19733 HAVE_LIBSSL_TRUE=
19734 HAVE_LIBSSL_FALSE='#'
19735else
19736 HAVE_LIBSSL_TRUE='#'
19737 HAVE_LIBSSL_FALSE=
19738fi
19739
19740
19741# Checks for X libraries
19742HAVE_X11="false"
19743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19744$as_echo_n "checking for X... " >&6; }
19745
19746
19747# Check whether --with-x was given.
19748if test "${with_x+set}" = set; then :
19749 withval=$with_x;
19750fi
19751
19752# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19753if test "x$with_x" = xno; then
19754 # The user explicitly disabled X.
19755 have_x=disabled
19756else
19757 case $x_includes,$x_libraries in #(
19758 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19759 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19760 $as_echo_n "(cached) " >&6
19761else
19762 # One or both of the vars are not set, and there is no cached value.
19763ac_x_includes=no ac_x_libraries=no
19764rm -f -r conftest.dir
19765if mkdir conftest.dir; then
19766 cd conftest.dir
19767 cat >Imakefile <<'_ACEOF'
19768incroot:
19769 @echo incroot='${INCROOT}'
19770usrlibdir:
19771 @echo usrlibdir='${USRLIBDIR}'
19772libdir:
19773 @echo libdir='${LIBDIR}'
19774_ACEOF
19775 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19776 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19777 for ac_var in incroot usrlibdir libdir; do
19778 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19779 done
19780 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19781 for ac_extension in a so sl dylib la dll; do
19782 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19783 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19784 ac_im_usrlibdir=$ac_im_libdir; break
19785 fi
19786 done
19787 # Screen out bogus values from the imake configuration. They are
19788 # bogus both because they are the default anyway, and because
19789 # using them would break gcc on systems where it needs fixed includes.
19790 case $ac_im_incroot in
19791 /usr/include) ac_x_includes= ;;
19792 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19793 esac
19794 case $ac_im_usrlibdir in
19795 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19796 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19797 esac
19798 fi
19799 cd ..
19800 rm -f -r conftest.dir
19801fi
19802
19803# Standard set of common directories for X headers.
19804# Check X11 before X11Rn because it is often a symlink to the current release.
19805ac_x_header_dirs='
19806/usr/X11/include
19807/usr/X11R7/include
19808/usr/X11R6/include
19809/usr/X11R5/include
19810/usr/X11R4/include
19811
19812/usr/include/X11
19813/usr/include/X11R7
19814/usr/include/X11R6
19815/usr/include/X11R5
19816/usr/include/X11R4
19817
19818/usr/local/X11/include
19819/usr/local/X11R7/include
19820/usr/local/X11R6/include
19821/usr/local/X11R5/include
19822/usr/local/X11R4/include
19823
19824/usr/local/include/X11
19825/usr/local/include/X11R7
19826/usr/local/include/X11R6
19827/usr/local/include/X11R5
19828/usr/local/include/X11R4
19829
19830/usr/X386/include
19831/usr/x386/include
19832/usr/XFree86/include/X11
19833
19834/usr/include
19835/usr/local/include
19836/usr/unsupported/include
19837/usr/athena/include
19838/usr/local/x11r5/include
19839/usr/lpp/Xamples/include
19840
19841/usr/openwin/include
19842/usr/openwin/share/include'
19843
19844if test "$ac_x_includes" = no; then
19845 # Guess where to find include files, by looking for Xlib.h.
19846 # First, try using that file with no special directory specified.
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848/* end confdefs.h. */
19849#include <X11/Xlib.h>
19850_ACEOF
19851if ac_fn_c_try_cpp "$LINENO"; then :
19852 # We can compile using X headers with no special include directory.
19853ac_x_includes=
19854else
19855 for ac_dir in $ac_x_header_dirs; do
19856 if test -r "$ac_dir/X11/Xlib.h"; then
19857 ac_x_includes=$ac_dir
19858 break
19859 fi
19860done
19861fi
19862rm -f conftest.err conftest.i conftest.$ac_ext
19863fi # $ac_x_includes = no
19864
19865if test "$ac_x_libraries" = no; then
19866 # Check for the libraries.
19867 # See if we find them without any special options.
19868 # Don't add to $LIBS permanently.
19869 ac_save_LIBS=$LIBS
19870 LIBS="-lX11 $LIBS"
19871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19872/* end confdefs.h. */
19873#include <X11/Xlib.h>
19874int
19875main ()
19876{
19877XrmInitialize ()
19878 ;
19879 return 0;
19880}
19881_ACEOF
19882if ac_fn_c_try_link "$LINENO"; then :
19883 LIBS=$ac_save_LIBS
19884# We can link X programs with no special library path.
19885ac_x_libraries=
19886else
19887 LIBS=$ac_save_LIBS
19888for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19889do
19890 # Don't even attempt the hair of trying to link an X program!
19891 for ac_extension in a so sl dylib la dll; do
19892 if test -r "$ac_dir/libX11.$ac_extension"; then
19893 ac_x_libraries=$ac_dir
19894 break 2
19895 fi
19896 done
19897done
19898fi
19899rm -f core conftest.err conftest.$ac_objext \
19900 conftest$ac_exeext conftest.$ac_ext
19901fi # $ac_x_libraries = no
19902
19903case $ac_x_includes,$ac_x_libraries in #(
19904 no,* | *,no | *\'*)
19905 # Didn't find X, or a directory has "'" in its name.
19906 ac_cv_have_x="have_x=no";; #(
19907 *)
19908 # Record where we found X for the cache.
19909 ac_cv_have_x="have_x=yes\
19910 ac_x_includes='$ac_x_includes'\
19911 ac_x_libraries='$ac_x_libraries'"
19912esac
19913fi
19914;; #(
19915 *) have_x=yes;;
19916 esac
19917 eval "$ac_cv_have_x"
19918fi # $with_x != no
19919
19920if test "$have_x" != yes; then
19921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19922$as_echo "$have_x" >&6; }
19923 no_x=yes
19924else
19925 # If each of the values was on the command line, it overrides each guess.
19926 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19927 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19928 # Update the cache value to reflect the command line values.
19929 ac_cv_have_x="have_x=yes\
19930 ac_x_includes='$x_includes'\
19931 ac_x_libraries='$x_libraries'"
19932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19933$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19934fi
19935
19936if test "$no_x" = yes; then
19937 # Not all programs may use this symbol, but it does not hurt to define it.
19938
19939$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19940
19941 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19942else
19943 if test -n "$x_includes"; then
19944 X_CFLAGS="$X_CFLAGS -I$x_includes"
19945 fi
19946
19947 # It would also be nice to do this for all -L options, not just this one.
19948 if test -n "$x_libraries"; then
19949 X_LIBS="$X_LIBS -L$x_libraries"
19950 # For Solaris; some versions of Sun CC require a space after -R and
19951 # others require no space. Words are not sufficient . . . .
19952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19953$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19954 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19955 ac_xsave_c_werror_flag=$ac_c_werror_flag
19956 ac_c_werror_flag=yes
19957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19958/* end confdefs.h. */
19959
19960int
19961main ()
19962{
19963
19964 ;
19965 return 0;
19966}
19967_ACEOF
19968if ac_fn_c_try_link "$LINENO"; then :
19969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19970$as_echo "no" >&6; }
19971 X_LIBS="$X_LIBS -R$x_libraries"
19972else
19973 LIBS="$ac_xsave_LIBS -R $x_libraries"
19974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19975/* end confdefs.h. */
19976
19977int
19978main ()
19979{
19980
19981 ;
19982 return 0;
19983}
19984_ACEOF
19985if ac_fn_c_try_link "$LINENO"; then :
19986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19987$as_echo "yes" >&6; }
19988 X_LIBS="$X_LIBS -R $x_libraries"
19989else
19990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19991$as_echo "neither works" >&6; }
19992fi
19993rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19995fi
19996rm -f core conftest.err conftest.$ac_objext \
19997 conftest$ac_exeext conftest.$ac_ext
19998 ac_c_werror_flag=$ac_xsave_c_werror_flag
19999 LIBS=$ac_xsave_LIBS
20000 fi
20001
20002 # Check for system-dependent libraries X programs must link with.
20003 # Do this before checking for the system-independent R6 libraries
20004 # (-lICE), since we may need -lsocket or whatever for X linking.
20005
20006 if test "$ISC" = yes; then
20007 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20008 else
20009 # Martyn Johnson says this is needed for Ultrix, if the X
20010 # libraries were built with DECnet support. And Karl Berry says
20011 # the Alpha needs dnet_stub (dnet does not exist).
20012 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20014/* end confdefs.h. */
20015
20016/* Override any GCC internal prototype to avoid an error.
20017 Use char because int might match the return type of a GCC
20018 builtin and then its argument prototype would still apply. */
20019#ifdef __cplusplus
20020extern "C"
20021#endif
20022char XOpenDisplay ();
20023int
20024main ()
20025{
20026return XOpenDisplay ();
20027 ;
20028 return 0;
20029}
20030_ACEOF
20031if ac_fn_c_try_link "$LINENO"; then :
20032
20033else
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20035$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20036if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038else
20039 ac_check_lib_save_LIBS=$LIBS
20040LIBS="-ldnet $LIBS"
20041cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042/* end confdefs.h. */
20043
20044/* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20047#ifdef __cplusplus
20048extern "C"
20049#endif
20050char dnet_ntoa ();
20051int
20052main ()
20053{
20054return dnet_ntoa ();
20055 ;
20056 return 0;
20057}
20058_ACEOF
20059if ac_fn_c_try_link "$LINENO"; then :
20060 ac_cv_lib_dnet_dnet_ntoa=yes
20061else
20062 ac_cv_lib_dnet_dnet_ntoa=no
20063fi
20064rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066LIBS=$ac_check_lib_save_LIBS
20067fi
20068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20069$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20070if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20071 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20072fi
20073
20074 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20076$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20077if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20078 $as_echo_n "(cached) " >&6
20079else
20080 ac_check_lib_save_LIBS=$LIBS
20081LIBS="-ldnet_stub $LIBS"
20082cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20083/* end confdefs.h. */
20084
20085/* Override any GCC internal prototype to avoid an error.
20086 Use char because int might match the return type of a GCC
20087 builtin and then its argument prototype would still apply. */
20088#ifdef __cplusplus
20089extern "C"
20090#endif
20091char dnet_ntoa ();
20092int
20093main ()
20094{
20095return dnet_ntoa ();
20096 ;
20097 return 0;
20098}
20099_ACEOF
20100if ac_fn_c_try_link "$LINENO"; then :
20101 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20102else
20103 ac_cv_lib_dnet_stub_dnet_ntoa=no
20104fi
20105rm -f core conftest.err conftest.$ac_objext \
20106 conftest$ac_exeext conftest.$ac_ext
20107LIBS=$ac_check_lib_save_LIBS
20108fi
20109{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20110$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20111if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20112 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20113fi
20114
20115 fi
20116fi
20117rm -f core conftest.err conftest.$ac_objext \
20118 conftest$ac_exeext conftest.$ac_ext
20119 LIBS="$ac_xsave_LIBS"
20120
20121 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20122 # to get the SysV transport functions.
20123 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20124 # needs -lnsl.
20125 # The nsl library prevents programs from opening the X display
20126 # on Irix 5.2, according to T.E. Dickey.
20127 # The functions gethostbyname, getservbyname, and inet_addr are
20128 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20129 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20130if test "x$ac_cv_func_gethostbyname" = xyes; then :
20131
20132fi
20133
20134 if test $ac_cv_func_gethostbyname = no; then
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20136$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20137if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20138 $as_echo_n "(cached) " >&6
20139else
20140 ac_check_lib_save_LIBS=$LIBS
20141LIBS="-lnsl $LIBS"
20142cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20143/* end confdefs.h. */
20144
20145/* Override any GCC internal prototype to avoid an error.
20146 Use char because int might match the return type of a GCC
20147 builtin and then its argument prototype would still apply. */
20148#ifdef __cplusplus
20149extern "C"
20150#endif
20151char gethostbyname ();
20152int
20153main ()
20154{
20155return gethostbyname ();
20156 ;
20157 return 0;
20158}
20159_ACEOF
20160if ac_fn_c_try_link "$LINENO"; then :
20161 ac_cv_lib_nsl_gethostbyname=yes
20162else
20163 ac_cv_lib_nsl_gethostbyname=no
20164fi
20165rm -f core conftest.err conftest.$ac_objext \
20166 conftest$ac_exeext conftest.$ac_ext
20167LIBS=$ac_check_lib_save_LIBS
20168fi
20169{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20170$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20171if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20172 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20173fi
20174
20175 if test $ac_cv_lib_nsl_gethostbyname = no; then
20176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20177$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20178if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20179 $as_echo_n "(cached) " >&6
20180else
20181 ac_check_lib_save_LIBS=$LIBS
20182LIBS="-lbsd $LIBS"
20183cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20184/* end confdefs.h. */
20185
20186/* Override any GCC internal prototype to avoid an error.
20187 Use char because int might match the return type of a GCC
20188 builtin and then its argument prototype would still apply. */
20189#ifdef __cplusplus
20190extern "C"
20191#endif
20192char gethostbyname ();
20193int
20194main ()
20195{
20196return gethostbyname ();
20197 ;
20198 return 0;
20199}
20200_ACEOF
20201if ac_fn_c_try_link "$LINENO"; then :
20202 ac_cv_lib_bsd_gethostbyname=yes
20203else
20204 ac_cv_lib_bsd_gethostbyname=no
20205fi
20206rm -f core conftest.err conftest.$ac_objext \
20207 conftest$ac_exeext conftest.$ac_ext
20208LIBS=$ac_check_lib_save_LIBS
20209fi
20210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20211$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20212if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20213 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20214fi
20215
20216 fi
20217 fi
20218
20219 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20220 # socket/setsockopt and other routines are undefined under SCO ODT
20221 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20222 # on later versions), says Simon Leinen: it contains gethostby*
20223 # variants that don't use the name server (or something). -lsocket
20224 # must be given before -lnsl if both are needed. We assume that
20225 # if connect needs -lnsl, so does gethostbyname.
20226 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20227if test "x$ac_cv_func_connect" = xyes; then :
20228
20229fi
20230
20231 if test $ac_cv_func_connect = no; then
20232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20233$as_echo_n "checking for connect in -lsocket... " >&6; }
20234if ${ac_cv_lib_socket_connect+:} false; then :
20235 $as_echo_n "(cached) " >&6
20236else
20237 ac_check_lib_save_LIBS=$LIBS
20238LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20240/* end confdefs.h. */
20241
20242/* Override any GCC internal prototype to avoid an error.
20243 Use char because int might match the return type of a GCC
20244 builtin and then its argument prototype would still apply. */
20245#ifdef __cplusplus
20246extern "C"
20247#endif
20248char connect ();
20249int
20250main ()
20251{
20252return connect ();
20253 ;
20254 return 0;
20255}
20256_ACEOF
20257if ac_fn_c_try_link "$LINENO"; then :
20258 ac_cv_lib_socket_connect=yes
20259else
20260 ac_cv_lib_socket_connect=no
20261fi
20262rm -f core conftest.err conftest.$ac_objext \
20263 conftest$ac_exeext conftest.$ac_ext
20264LIBS=$ac_check_lib_save_LIBS
20265fi
20266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20267$as_echo "$ac_cv_lib_socket_connect" >&6; }
20268if test "x$ac_cv_lib_socket_connect" = xyes; then :
20269 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20270fi
20271
20272 fi
20273
20274 # Guillermo Gomez says -lposix is necessary on A/UX.
20275 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20276if test "x$ac_cv_func_remove" = xyes; then :
20277
20278fi
20279
20280 if test $ac_cv_func_remove = no; then
20281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20282$as_echo_n "checking for remove in -lposix... " >&6; }
20283if ${ac_cv_lib_posix_remove+:} false; then :
20284 $as_echo_n "(cached) " >&6
20285else
20286 ac_check_lib_save_LIBS=$LIBS
20287LIBS="-lposix $LIBS"
20288cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20289/* end confdefs.h. */
20290
20291/* Override any GCC internal prototype to avoid an error.
20292 Use char because int might match the return type of a GCC
20293 builtin and then its argument prototype would still apply. */
20294#ifdef __cplusplus
20295extern "C"
20296#endif
20297char remove ();
20298int
20299main ()
20300{
20301return remove ();
20302 ;
20303 return 0;
20304}
20305_ACEOF
20306if ac_fn_c_try_link "$LINENO"; then :
20307 ac_cv_lib_posix_remove=yes
20308else
20309 ac_cv_lib_posix_remove=no
20310fi
20311rm -f core conftest.err conftest.$ac_objext \
20312 conftest$ac_exeext conftest.$ac_ext
20313LIBS=$ac_check_lib_save_LIBS
20314fi
20315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20316$as_echo "$ac_cv_lib_posix_remove" >&6; }
20317if test "x$ac_cv_lib_posix_remove" = xyes; then :
20318 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20319fi
20320
20321 fi
20322
20323 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20324 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20325if test "x$ac_cv_func_shmat" = xyes; then :
20326
20327fi
20328
20329 if test $ac_cv_func_shmat = no; then
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20331$as_echo_n "checking for shmat in -lipc... " >&6; }
20332if ${ac_cv_lib_ipc_shmat+:} false; then :
20333 $as_echo_n "(cached) " >&6
20334else
20335 ac_check_lib_save_LIBS=$LIBS
20336LIBS="-lipc $LIBS"
20337cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20338/* end confdefs.h. */
20339
20340/* Override any GCC internal prototype to avoid an error.
20341 Use char because int might match the return type of a GCC
20342 builtin and then its argument prototype would still apply. */
20343#ifdef __cplusplus
20344extern "C"
20345#endif
20346char shmat ();
20347int
20348main ()
20349{
20350return shmat ();
20351 ;
20352 return 0;
20353}
20354_ACEOF
20355if ac_fn_c_try_link "$LINENO"; then :
20356 ac_cv_lib_ipc_shmat=yes
20357else
20358 ac_cv_lib_ipc_shmat=no
20359fi
20360rm -f core conftest.err conftest.$ac_objext \
20361 conftest$ac_exeext conftest.$ac_ext
20362LIBS=$ac_check_lib_save_LIBS
20363fi
20364{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20365$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20366if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20367 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20368fi
20369
20370 fi
20371 fi
20372
20373 # Check for libraries that X11R6 Xt/Xaw programs need.
20374 ac_save_LDFLAGS=$LDFLAGS
20375 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20376 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20377 # check for ICE first), but we must link in the order -lSM -lICE or
20378 # we get undefined symbols. So assume we have SM if we have ICE.
20379 # These have to be linked with before -lX11, unlike the other
20380 # libraries we check for below, so use a different variable.
20381 # John Interrante, Karl Berry
20382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20383$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20384if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20385 $as_echo_n "(cached) " >&6
20386else
20387 ac_check_lib_save_LIBS=$LIBS
20388LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20389cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20390/* end confdefs.h. */
20391
20392/* Override any GCC internal prototype to avoid an error.
20393 Use char because int might match the return type of a GCC
20394 builtin and then its argument prototype would still apply. */
20395#ifdef __cplusplus
20396extern "C"
20397#endif
20398char IceConnectionNumber ();
20399int
20400main ()
20401{
20402return IceConnectionNumber ();
20403 ;
20404 return 0;
20405}
20406_ACEOF
20407if ac_fn_c_try_link "$LINENO"; then :
20408 ac_cv_lib_ICE_IceConnectionNumber=yes
20409else
20410 ac_cv_lib_ICE_IceConnectionNumber=no
20411fi
20412rm -f core conftest.err conftest.$ac_objext \
20413 conftest$ac_exeext conftest.$ac_ext
20414LIBS=$ac_check_lib_save_LIBS
20415fi
20416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20417$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20418if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
20419 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20420fi
20421
20422 LDFLAGS=$ac_save_LDFLAGS
20423
20424fi
20425
20426
20427
20428# See if we are to build x11vnc:
20429
20430
20431# Check whether --with-system-libvncserver was given.
20432if test "${with_system_libvncserver+set}" = set; then :
20433 withval=$with_system_libvncserver;
20434fi
20435
20436
20437# Check whether --with-x11vnc was given.
20438if test "${with_x11vnc+set}" = set; then :
20439 withval=$with_x11vnc;
20440fi
20441
20442
20443if test ! -z "$with_x11vnc" -a "$with_x11vnc" = "yes"; then
20444 build_x11vnc="yes"
20445elif test "$PACKAGE_NAME" = "x11vnc"; then
20446 build_x11vnc="yes"
20447else
20448 build_x11vnc="no"
20449fi
20450
20451# x11vnc only:
20452if test "$build_x11vnc" = "yes"; then
20453
20454
20455
20456
20457
20458
20459
20460
20461
20462
20463
20464
20465
20466
20467
20468
20469
20470
20471
20472
20473
20474
20475
20476# Check whether --with-xkeyboard was given.
20477if test "${with_xkeyboard+set}" = set; then :
20478 withval=$with_xkeyboard;
20479fi
20480
20481
20482# Check whether --with-xinerama was given.
20483if test "${with_xinerama+set}" = set; then :
20484 withval=$with_xinerama;
20485fi
20486
20487
20488# Check whether --with-xrandr was given.
20489if test "${with_xrandr+set}" = set; then :
20490 withval=$with_xrandr;
20491fi
20492
20493
20494# Check whether --with-xfixes was given.
20495if test "${with_xfixes+set}" = set; then :
20496 withval=$with_xfixes;
20497fi
20498
20499
20500# Check whether --with-xdamage was given.
20501if test "${with_xdamage+set}" = set; then :
20502 withval=$with_xdamage;
20503fi
20504
20505
20506# Check whether --with-xtrap was given.
20507if test "${with_xtrap+set}" = set; then :
20508 withval=$with_xtrap;
20509fi
20510
20511
20512# Check whether --with-xrecord was given.
20513if test "${with_xrecord+set}" = set; then :
20514 withval=$with_xrecord;
20515fi
20516
20517
20518# Check whether --with-fbpm was given.
20519if test "${with_fbpm+set}" = set; then :
20520 withval=$with_fbpm;
20521fi
20522
20523
20524# Check whether --with-dpms was given.
20525if test "${with_dpms+set}" = set; then :
20526 withval=$with_dpms;
20527fi
20528
20529
20530# Check whether --with-v4l was given.
20531if test "${with_v4l+set}" = set; then :
20532 withval=$with_v4l;
20533fi
20534
20535
20536# Check whether --with-fbdev was given.
20537if test "${with_fbdev+set}" = set; then :
20538 withval=$with_fbdev;
20539fi
20540
20541
20542# Check whether --with-uinput was given.
20543if test "${with_uinput+set}" = set; then :
20544 withval=$with_uinput;
20545fi
20546
20547
20548# Check whether --with-macosx-native was given.
20549if test "${with_macosx_native+set}" = set; then :
20550 withval=$with_macosx_native;
20551fi
20552
20553
20554fi
20555# end x11vnc only.
20556
20557if test "x$with_x" = "xno"; then
20558 HAVE_X11="false"
20559elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then
20560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGetImage in -lX11" >&5
20561$as_echo_n "checking for XGetImage in -lX11... " >&6; }
20562if ${ac_cv_lib_X11_XGetImage+:} false; then :
20563 $as_echo_n "(cached) " >&6
20564else
20565 ac_check_lib_save_LIBS=$LIBS
20566LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20568/* end confdefs.h. */
20569
20570/* Override any GCC internal prototype to avoid an error.
20571 Use char because int might match the return type of a GCC
20572 builtin and then its argument prototype would still apply. */
20573#ifdef __cplusplus
20574extern "C"
20575#endif
20576char XGetImage ();
20577int
20578main ()
20579{
20580return XGetImage ();
20581 ;
20582 return 0;
20583}
20584_ACEOF
20585if ac_fn_c_try_link "$LINENO"; then :
20586 ac_cv_lib_X11_XGetImage=yes
20587else
20588 ac_cv_lib_X11_XGetImage=no
20589fi
20590rm -f core conftest.err conftest.$ac_objext \
20591 conftest$ac_exeext conftest.$ac_ext
20592LIBS=$ac_check_lib_save_LIBS
20593fi
20594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XGetImage" >&5
20595$as_echo "$ac_cv_lib_X11_XGetImage" >&6; }
20596if test "x$ac_cv_lib_X11_XGetImage" = xyes; then :
20597 $as_echo "#define HAVE_X11 1" >>confdefs.h
20598 HAVE_X11="true"
20599else
20600 HAVE_X11="false"
20601fi
20602
20603
20604 # x11vnc only:
20605 if test $HAVE_X11 = "true" -a "$build_x11vnc" = "yes"; then
20606 X_PRELIBS="$X_PRELIBS -lXext"
20607
20608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmGetImage in -lXext" >&5
20609$as_echo_n "checking for XShmGetImage in -lXext... " >&6; }
20610if ${ac_cv_lib_Xext_XShmGetImage+:} false; then :
20611 $as_echo_n "(cached) " >&6
20612else
20613 ac_check_lib_save_LIBS=$LIBS
20614LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20615cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20616/* end confdefs.h. */
20617
20618/* Override any GCC internal prototype to avoid an error.
20619 Use char because int might match the return type of a GCC
20620 builtin and then its argument prototype would still apply. */
20621#ifdef __cplusplus
20622extern "C"
20623#endif
20624char XShmGetImage ();
20625int
20626main ()
20627{
20628return XShmGetImage ();
20629 ;
20630 return 0;
20631}
20632_ACEOF
20633if ac_fn_c_try_link "$LINENO"; then :
20634 ac_cv_lib_Xext_XShmGetImage=yes
20635else
20636 ac_cv_lib_Xext_XShmGetImage=no
20637fi
20638rm -f core conftest.err conftest.$ac_objext \
20639 conftest$ac_exeext conftest.$ac_ext
20640LIBS=$ac_check_lib_save_LIBS
20641fi
20642{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmGetImage" >&5
20643$as_echo "$ac_cv_lib_Xext_XShmGetImage" >&6; }
20644if test "x$ac_cv_lib_Xext_XShmGetImage" = xyes; then :
20645 $as_echo "#define HAVE_XSHM 1" >>confdefs.h
20646
20647fi
20648
20649
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadScreen in -lXext" >&5
20651$as_echo_n "checking for XReadScreen in -lXext... " >&6; }
20652if ${ac_cv_lib_Xext_XReadScreen+:} false; then :
20653 $as_echo_n "(cached) " >&6
20654else
20655 ac_check_lib_save_LIBS=$LIBS
20656LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20657cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20658/* end confdefs.h. */
20659
20660/* Override any GCC internal prototype to avoid an error.
20661 Use char because int might match the return type of a GCC
20662 builtin and then its argument prototype would still apply. */
20663#ifdef __cplusplus
20664extern "C"
20665#endif
20666char XReadScreen ();
20667int
20668main ()
20669{
20670return XReadScreen ();
20671 ;
20672 return 0;
20673}
20674_ACEOF
20675if ac_fn_c_try_link "$LINENO"; then :
20676 ac_cv_lib_Xext_XReadScreen=yes
20677else
20678 ac_cv_lib_Xext_XReadScreen=no
20679fi
20680rm -f core conftest.err conftest.$ac_objext \
20681 conftest$ac_exeext conftest.$ac_ext
20682LIBS=$ac_check_lib_save_LIBS
20683fi
20684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XReadScreen" >&5
20685$as_echo "$ac_cv_lib_Xext_XReadScreen" >&6; }
20686if test "x$ac_cv_lib_Xext_XReadScreen" = xyes; then :
20687 $as_echo "#define HAVE_SOLARIS_XREADSCREEN 1" >>confdefs.h
20688
20689fi
20690
20691
20692 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
20693"
20694if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
20695 $as_echo "#define HAVE_IRIX_XREADDISPLAY 1" >>confdefs.h
20696
20697fi
20698
20699
20700
20701 if test "x$with_fbpm" != "xno"; then
20702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FBPMForceLevel in -lXext" >&5
20703$as_echo_n "checking for FBPMForceLevel in -lXext... " >&6; }
20704if ${ac_cv_lib_Xext_FBPMForceLevel+:} false; then :
20705 $as_echo_n "(cached) " >&6
20706else
20707 ac_check_lib_save_LIBS=$LIBS
20708LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20709cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20710/* end confdefs.h. */
20711
20712/* Override any GCC internal prototype to avoid an error.
20713 Use char because int might match the return type of a GCC
20714 builtin and then its argument prototype would still apply. */
20715#ifdef __cplusplus
20716extern "C"
20717#endif
20718char FBPMForceLevel ();
20719int
20720main ()
20721{
20722return FBPMForceLevel ();
20723 ;
20724 return 0;
20725}
20726_ACEOF
20727if ac_fn_c_try_link "$LINENO"; then :
20728 ac_cv_lib_Xext_FBPMForceLevel=yes
20729else
20730 ac_cv_lib_Xext_FBPMForceLevel=no
20731fi
20732rm -f core conftest.err conftest.$ac_objext \
20733 conftest$ac_exeext conftest.$ac_ext
20734LIBS=$ac_check_lib_save_LIBS
20735fi
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_FBPMForceLevel" >&5
20737$as_echo "$ac_cv_lib_Xext_FBPMForceLevel" >&6; }
20738if test "x$ac_cv_lib_Xext_FBPMForceLevel" = xyes; then :
20739 $as_echo "#define HAVE_FBPM 1" >>confdefs.h
20740
20741fi
20742
20743 fi
20744
20745 if test "x$with_dpms" != "xno"; then
20746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSForceLevel in -lXext" >&5
20747$as_echo_n "checking for DPMSForceLevel in -lXext... " >&6; }
20748if ${ac_cv_lib_Xext_DPMSForceLevel+:} false; then :
20749 $as_echo_n "(cached) " >&6
20750else
20751 ac_check_lib_save_LIBS=$LIBS
20752LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20753cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20754/* end confdefs.h. */
20755
20756/* Override any GCC internal prototype to avoid an error.
20757 Use char because int might match the return type of a GCC
20758 builtin and then its argument prototype would still apply. */
20759#ifdef __cplusplus
20760extern "C"
20761#endif
20762char DPMSForceLevel ();
20763int
20764main ()
20765{
20766return DPMSForceLevel ();
20767 ;
20768 return 0;
20769}
20770_ACEOF
20771if ac_fn_c_try_link "$LINENO"; then :
20772 ac_cv_lib_Xext_DPMSForceLevel=yes
20773else
20774 ac_cv_lib_Xext_DPMSForceLevel=no
20775fi
20776rm -f core conftest.err conftest.$ac_objext \
20777 conftest$ac_exeext conftest.$ac_ext
20778LIBS=$ac_check_lib_save_LIBS
20779fi
20780{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSForceLevel" >&5
20781$as_echo "$ac_cv_lib_Xext_DPMSForceLevel" >&6; }
20782if test "x$ac_cv_lib_Xext_DPMSForceLevel" = xyes; then :
20783 $as_echo "#define HAVE_DPMS 1" >>confdefs.h
20784
20785fi
20786
20787 fi
20788
20789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestGrabControl in -lXtst" >&5
20790$as_echo_n "checking for XTestGrabControl in -lXtst... " >&6; }
20791if ${ac_cv_lib_Xtst_XTestGrabControl+:} false; then :
20792 $as_echo_n "(cached) " >&6
20793else
20794 ac_check_lib_save_LIBS=$LIBS
20795LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20796cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20797/* end confdefs.h. */
20798
20799/* Override any GCC internal prototype to avoid an error.
20800 Use char because int might match the return type of a GCC
20801 builtin and then its argument prototype would still apply. */
20802#ifdef __cplusplus
20803extern "C"
20804#endif
20805char XTestGrabControl ();
20806int
20807main ()
20808{
20809return XTestGrabControl ();
20810 ;
20811 return 0;
20812}
20813_ACEOF
20814if ac_fn_c_try_link "$LINENO"; then :
20815 ac_cv_lib_Xtst_XTestGrabControl=yes
20816else
20817 ac_cv_lib_Xtst_XTestGrabControl=no
20818fi
20819rm -f core conftest.err conftest.$ac_objext \
20820 conftest$ac_exeext conftest.$ac_ext
20821LIBS=$ac_check_lib_save_LIBS
20822fi
20823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
20824$as_echo "$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
20825if test "x$ac_cv_lib_Xtst_XTestGrabControl" = xyes; then :
20826 X_PRELIBS="-lXtst $X_PRELIBS"
20827 $as_echo "#define HAVE_XTESTGRABCONTROL 1" >>confdefs.h
20828 HAVE_XTESTGRABCONTROL="true"
20829fi
20830
20831
20832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeKeyEvent in -lXtst" >&5
20833$as_echo_n "checking for XTestFakeKeyEvent in -lXtst... " >&6; }
20834if ${ac_cv_lib_Xtst_XTestFakeKeyEvent+:} false; then :
20835 $as_echo_n "(cached) " >&6
20836else
20837 ac_check_lib_save_LIBS=$LIBS
20838LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20839cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20840/* end confdefs.h. */
20841
20842/* Override any GCC internal prototype to avoid an error.
20843 Use char because int might match the return type of a GCC
20844 builtin and then its argument prototype would still apply. */
20845#ifdef __cplusplus
20846extern "C"
20847#endif
20848char XTestFakeKeyEvent ();
20849int
20850main ()
20851{
20852return XTestFakeKeyEvent ();
20853 ;
20854 return 0;
20855}
20856_ACEOF
20857if ac_fn_c_try_link "$LINENO"; then :
20858 ac_cv_lib_Xtst_XTestFakeKeyEvent=yes
20859else
20860 ac_cv_lib_Xtst_XTestFakeKeyEvent=no
20861fi
20862rm -f core conftest.err conftest.$ac_objext \
20863 conftest$ac_exeext conftest.$ac_ext
20864LIBS=$ac_check_lib_save_LIBS
20865fi
20866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5
20867$as_echo "$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6; }
20868if test "x$ac_cv_lib_Xtst_XTestFakeKeyEvent" = xyes; then :
20869 X_PRELIBS="-lXtst $X_PRELIBS"
20870 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
20871 HAVE_XTEST="true"
20872fi
20873
20874
20875 if test "x$with_xrecord" != "xno"; then
20876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRecordEnableContextAsync in -lXtst" >&5
20877$as_echo_n "checking for XRecordEnableContextAsync in -lXtst... " >&6; }
20878if ${ac_cv_lib_Xtst_XRecordEnableContextAsync+:} false; then :
20879 $as_echo_n "(cached) " >&6
20880else
20881 ac_check_lib_save_LIBS=$LIBS
20882LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20884/* end confdefs.h. */
20885
20886/* Override any GCC internal prototype to avoid an error.
20887 Use char because int might match the return type of a GCC
20888 builtin and then its argument prototype would still apply. */
20889#ifdef __cplusplus
20890extern "C"
20891#endif
20892char XRecordEnableContextAsync ();
20893int
20894main ()
20895{
20896return XRecordEnableContextAsync ();
20897 ;
20898 return 0;
20899}
20900_ACEOF
20901if ac_fn_c_try_link "$LINENO"; then :
20902 ac_cv_lib_Xtst_XRecordEnableContextAsync=yes
20903else
20904 ac_cv_lib_Xtst_XRecordEnableContextAsync=no
20905fi
20906rm -f core conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20908LIBS=$ac_check_lib_save_LIBS
20909fi
20910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XRecordEnableContextAsync" >&5
20911$as_echo "$ac_cv_lib_Xtst_XRecordEnableContextAsync" >&6; }
20912if test "x$ac_cv_lib_Xtst_XRecordEnableContextAsync" = xyes; then :
20913 X_PRELIBS="-lXtst $X_PRELIBS"
20914 $as_echo "#define HAVE_RECORD 1" >>confdefs.h
20915
20916fi
20917
20918 fi
20919
20920 # we use XTRAP on X11R5, or user can set X11VNC_USE_XTRAP
20921 if test "x$with_xtrap" != "xno"; then
20922 if test ! -z "$X11VNC_USE_XTRAP" -o -z "$HAVE_XTESTGRABCONTROL"; then
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XETrapSetGrabServer in -lXTrap" >&5
20924$as_echo_n "checking for XETrapSetGrabServer in -lXTrap... " >&6; }
20925if ${ac_cv_lib_XTrap_XETrapSetGrabServer+:} false; then :
20926 $as_echo_n "(cached) " >&6
20927else
20928 ac_check_lib_save_LIBS=$LIBS
20929LIBS="-lXTrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20930cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20931/* end confdefs.h. */
20932
20933/* Override any GCC internal prototype to avoid an error.
20934 Use char because int might match the return type of a GCC
20935 builtin and then its argument prototype would still apply. */
20936#ifdef __cplusplus
20937extern "C"
20938#endif
20939char XETrapSetGrabServer ();
20940int
20941main ()
20942{
20943return XETrapSetGrabServer ();
20944 ;
20945 return 0;
20946}
20947_ACEOF
20948if ac_fn_c_try_link "$LINENO"; then :
20949 ac_cv_lib_XTrap_XETrapSetGrabServer=yes
20950else
20951 ac_cv_lib_XTrap_XETrapSetGrabServer=no
20952fi
20953rm -f core conftest.err conftest.$ac_objext \
20954 conftest$ac_exeext conftest.$ac_ext
20955LIBS=$ac_check_lib_save_LIBS
20956fi
20957{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XTrap_XETrapSetGrabServer" >&5
20958$as_echo "$ac_cv_lib_XTrap_XETrapSetGrabServer" >&6; }
20959if test "x$ac_cv_lib_XTrap_XETrapSetGrabServer" = xyes; then :
20960 X_PRELIBS="$X_PRELIBS -lXTrap"
20961 $as_echo "#define HAVE_LIBXTRAP 1" >>confdefs.h
20962
20963fi
20964
20965 # tru64 uses libXETrap.so
20966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XETrapSetGrabServer in -lXETrap" >&5
20967$as_echo_n "checking for XETrapSetGrabServer in -lXETrap... " >&6; }
20968if ${ac_cv_lib_XETrap_XETrapSetGrabServer+:} false; then :
20969 $as_echo_n "(cached) " >&6
20970else
20971 ac_check_lib_save_LIBS=$LIBS
20972LIBS="-lXETrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20973cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20974/* end confdefs.h. */
20975
20976/* Override any GCC internal prototype to avoid an error.
20977 Use char because int might match the return type of a GCC
20978 builtin and then its argument prototype would still apply. */
20979#ifdef __cplusplus
20980extern "C"
20981#endif
20982char XETrapSetGrabServer ();
20983int
20984main ()
20985{
20986return XETrapSetGrabServer ();
20987 ;
20988 return 0;
20989}
20990_ACEOF
20991if ac_fn_c_try_link "$LINENO"; then :
20992 ac_cv_lib_XETrap_XETrapSetGrabServer=yes
20993else
20994 ac_cv_lib_XETrap_XETrapSetGrabServer=no
20995fi
20996rm -f core conftest.err conftest.$ac_objext \
20997 conftest$ac_exeext conftest.$ac_ext
20998LIBS=$ac_check_lib_save_LIBS
20999fi
21000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XETrap_XETrapSetGrabServer" >&5
21001$as_echo "$ac_cv_lib_XETrap_XETrapSetGrabServer" >&6; }
21002if test "x$ac_cv_lib_XETrap_XETrapSetGrabServer" = xyes; then :
21003 X_PRELIBS="$X_PRELIBS -lXETrap"
21004 $as_echo "#define HAVE_LIBXTRAP 1" >>confdefs.h
21005
21006fi
21007
21008 fi
21009 fi
21010
21011 if test "x$with_xkeyboard" != "xno"; then
21012 saved_CPPFLAGS="$CPPFLAGS"
21013 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
21014 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
21015"
21016if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
21017 HAVE_XKBLIB_H="true"
21018else
21019 HAVE_XKBLIB_H="false"
21020fi
21021
21022
21023 CPPFLAGS="$saved_CPPFLAGS"
21024 if test $HAVE_XKBLIB_H = "true"; then
21025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbSelectEvents in -lX11" >&5
21026$as_echo_n "checking for XkbSelectEvents in -lX11... " >&6; }
21027if ${ac_cv_lib_X11_XkbSelectEvents+:} false; then :
21028 $as_echo_n "(cached) " >&6
21029else
21030 ac_check_lib_save_LIBS=$LIBS
21031LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21032cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21033/* end confdefs.h. */
21034
21035/* Override any GCC internal prototype to avoid an error.
21036 Use char because int might match the return type of a GCC
21037 builtin and then its argument prototype would still apply. */
21038#ifdef __cplusplus
21039extern "C"
21040#endif
21041char XkbSelectEvents ();
21042int
21043main ()
21044{
21045return XkbSelectEvents ();
21046 ;
21047 return 0;
21048}
21049_ACEOF
21050if ac_fn_c_try_link "$LINENO"; then :
21051 ac_cv_lib_X11_XkbSelectEvents=yes
21052else
21053 ac_cv_lib_X11_XkbSelectEvents=no
21054fi
21055rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21057LIBS=$ac_check_lib_save_LIBS
21058fi
21059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbSelectEvents" >&5
21060$as_echo "$ac_cv_lib_X11_XkbSelectEvents" >&6; }
21061if test "x$ac_cv_lib_X11_XkbSelectEvents" = xyes; then :
21062 $as_echo "#define HAVE_XKEYBOARD 1" >>confdefs.h
21063
21064fi
21065
21066 fi
21067 fi
21068
21069 if test "x$with_xinerama" != "xno"; then
21070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
21071$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
21072if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
21073 $as_echo_n "(cached) " >&6
21074else
21075 ac_check_lib_save_LIBS=$LIBS
21076LIBS="-lXinerama $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21078/* end confdefs.h. */
21079
21080/* Override any GCC internal prototype to avoid an error.
21081 Use char because int might match the return type of a GCC
21082 builtin and then its argument prototype would still apply. */
21083#ifdef __cplusplus
21084extern "C"
21085#endif
21086char XineramaQueryScreens ();
21087int
21088main ()
21089{
21090return XineramaQueryScreens ();
21091 ;
21092 return 0;
21093}
21094_ACEOF
21095if ac_fn_c_try_link "$LINENO"; then :
21096 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
21097else
21098 ac_cv_lib_Xinerama_XineramaQueryScreens=no
21099fi
21100rm -f core conftest.err conftest.$ac_objext \
21101 conftest$ac_exeext conftest.$ac_ext
21102LIBS=$ac_check_lib_save_LIBS
21103fi
21104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
21105$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
21106if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
21107 X_PRELIBS="$X_PRELIBS -lXinerama"
21108 $as_echo "#define HAVE_LIBXINERAMA 1" >>confdefs.h
21109
21110fi
21111
21112 fi
21113
21114 if test "x$with_xrandr" != "xno"; then
21115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRSelectInput in -lXrandr" >&5
21116$as_echo_n "checking for XRRSelectInput in -lXrandr... " >&6; }
21117if ${ac_cv_lib_Xrandr_XRRSelectInput+:} false; then :
21118 $as_echo_n "(cached) " >&6
21119else
21120 ac_check_lib_save_LIBS=$LIBS
21121LIBS="-lXrandr $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21122cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21123/* end confdefs.h. */
21124
21125/* Override any GCC internal prototype to avoid an error.
21126 Use char because int might match the return type of a GCC
21127 builtin and then its argument prototype would still apply. */
21128#ifdef __cplusplus
21129extern "C"
21130#endif
21131char XRRSelectInput ();
21132int
21133main ()
21134{
21135return XRRSelectInput ();
21136 ;
21137 return 0;
21138}
21139_ACEOF
21140if ac_fn_c_try_link "$LINENO"; then :
21141 ac_cv_lib_Xrandr_XRRSelectInput=yes
21142else
21143 ac_cv_lib_Xrandr_XRRSelectInput=no
21144fi
21145rm -f core conftest.err conftest.$ac_objext \
21146 conftest$ac_exeext conftest.$ac_ext
21147LIBS=$ac_check_lib_save_LIBS
21148fi
21149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRSelectInput" >&5
21150$as_echo "$ac_cv_lib_Xrandr_XRRSelectInput" >&6; }
21151if test "x$ac_cv_lib_Xrandr_XRRSelectInput" = xyes; then :
21152 X_PRELIBS="$X_PRELIBS -lXrandr"
21153 $as_echo "#define HAVE_LIBXRANDR 1" >>confdefs.h
21154 HAVE_LIBXRANDR="true"
21155fi
21156
21157 fi
21158
21159 if test "x$with_xfixes" != "xno"; then
21160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesGetCursorImage in -lXfixes" >&5
21161$as_echo_n "checking for XFixesGetCursorImage in -lXfixes... " >&6; }
21162if ${ac_cv_lib_Xfixes_XFixesGetCursorImage+:} false; then :
21163 $as_echo_n "(cached) " >&6
21164else
21165 ac_check_lib_save_LIBS=$LIBS
21166LIBS="-lXfixes $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21167cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21168/* end confdefs.h. */
21169
21170/* Override any GCC internal prototype to avoid an error.
21171 Use char because int might match the return type of a GCC
21172 builtin and then its argument prototype would still apply. */
21173#ifdef __cplusplus
21174extern "C"
21175#endif
21176char XFixesGetCursorImage ();
21177int
21178main ()
21179{
21180return XFixesGetCursorImage ();
21181 ;
21182 return 0;
21183}
21184_ACEOF
21185if ac_fn_c_try_link "$LINENO"; then :
21186 ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
21187else
21188 ac_cv_lib_Xfixes_XFixesGetCursorImage=no
21189fi
21190rm -f core conftest.err conftest.$ac_objext \
21191 conftest$ac_exeext conftest.$ac_ext
21192LIBS=$ac_check_lib_save_LIBS
21193fi
21194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
21195$as_echo "$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
21196if test "x$ac_cv_lib_Xfixes_XFixesGetCursorImage" = xyes; then :
21197 X_PRELIBS="$X_PRELIBS -lXfixes"
21198 $as_echo "#define HAVE_LIBXFIXES 1" >>confdefs.h
21199 HAVE_LIBXFIXES="true"
21200fi
21201
21202 fi
21203
21204 if test "x$with_xdamage" != "xno"; then
21205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageQueryExtension in -lXdamage" >&5
21206$as_echo_n "checking for XDamageQueryExtension in -lXdamage... " >&6; }
21207if ${ac_cv_lib_Xdamage_XDamageQueryExtension+:} false; then :
21208 $as_echo_n "(cached) " >&6
21209else
21210 ac_check_lib_save_LIBS=$LIBS
21211LIBS="-lXdamage $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21212cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21213/* end confdefs.h. */
21214
21215/* Override any GCC internal prototype to avoid an error.
21216 Use char because int might match the return type of a GCC
21217 builtin and then its argument prototype would still apply. */
21218#ifdef __cplusplus
21219extern "C"
21220#endif
21221char XDamageQueryExtension ();
21222int
21223main ()
21224{
21225return XDamageQueryExtension ();
21226 ;
21227 return 0;
21228}
21229_ACEOF
21230if ac_fn_c_try_link "$LINENO"; then :
21231 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
21232else
21233 ac_cv_lib_Xdamage_XDamageQueryExtension=no
21234fi
21235rm -f core conftest.err conftest.$ac_objext \
21236 conftest$ac_exeext conftest.$ac_ext
21237LIBS=$ac_check_lib_save_LIBS
21238fi
21239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
21240$as_echo "$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
21241if test "x$ac_cv_lib_Xdamage_XDamageQueryExtension" = xyes; then :
21242 X_PRELIBS="$X_PRELIBS -lXdamage"
21243 $as_echo "#define HAVE_LIBXDAMAGE 1" >>confdefs.h
21244 HAVE_LIBXDAMAGE="true"
21245fi
21246
21247 fi
21248
21249 if test ! -z "$HAVE_LIBXFIXES" -o ! -z "$HAVE_LIBXDAMAGE"; then
21250 # need /usr/sfw/lib in RPATH for Solaris 10 and later
21251 case `(uname -sr) 2>/dev/null` in
21252 "SunOS 5"*) X_EXTRA_LIBS="$X_EXTRA_LIBS -R/usr/sfw/lib" ;;
21253 esac
21254 fi
21255 if test ! -z "$HAVE_LIBXRANDR"; then
21256 # also need /usr/X11/include for Solaris 10 10/08 and later
21257 case `(uname -sr) 2>/dev/null` in
21258 "SunOS 5"*) CPPFLAGS="$CPPFLAGS -I/usr/X11/include" ;;
21259 esac
21260 fi
21261
21262 X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS"
21263 fi
21264 # end x11vnc only.
21265fi
21266
21267
21268 if test $HAVE_X11 != "false"; then
21269 HAVE_X11_TRUE=
21270 HAVE_X11_FALSE='#'
21271else
21272 HAVE_X11_TRUE='#'
21273 HAVE_X11_FALSE=
21274fi
21275
21276
21277# x11vnc only:
21278if test "$build_x11vnc" = "yes"; then
21279
21280if test "x$HAVE_X11" = "xfalse" -a "x$with_x" != "xno"; then
21281 as_fn_error $? "
21282==========================================================================
21283*** A working X window system build environment is required to build ***
21284x11vnc. Make sure any required X development packages are installed.
21285If they are installed in non-standard locations, one can use the
21286--x-includes=DIR and --x-libraries=DIR configure options or set the
21287CPPFLAGS and LDFLAGS environment variables to indicate where the X
21288window system header files and libraries may be found. On 64+32 bit
21289machines you may need to point to lib64 or lib32 directories to pick up
21290the correct word size.
21291
21292If you want to build x11vnc without X support (e.g. for -rawfb use only
21293or for native Mac OS X), specify the --without-x configure option.
21294==========================================================================
21295" "$LINENO" 5
21296fi
21297
21298if test "x$HAVE_X11" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21300==========================================================================
21301*** A working build environment for the XTEST extension was not found ***
21302(libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21303You will be able to move the mouse but not click or type. There can
21304also be deadlocks if an application grabs the X server.
21305
21306It is recommended that you install the necessary development packages
21307for XTEST (perhaps it is named something like libxtst-dev) and run
21308configure again.
21309==========================================================================
21310" >&5
21311$as_echo "$as_me: WARNING:
21312==========================================================================
21313*** A working build environment for the XTEST extension was not found ***
21314(libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21315You will be able to move the mouse but not click or type. There can
21316also be deadlocks if an application grabs the X server.
21317
21318It is recommended that you install the necessary development packages
21319for XTEST (perhaps it is named something like libxtst-dev) and run
21320configure again.
21321==========================================================================
21322" >&2;}
21323 sleep 5
21324fi
21325
21326if test "x$with_v4l" != "xno"; then
21327 ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
21328if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
21329 $as_echo "#define HAVE_LINUX_VIDEODEV_H 1" >>confdefs.h
21330
21331fi
21332
21333
21334fi
21335if test "x$with_fbdev" != "xno"; then
21336 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
21337if test "x$ac_cv_header_linux_fb_h" = xyes; then :
21338 $as_echo "#define HAVE_LINUX_FB_H 1" >>confdefs.h
21339
21340fi
21341
21342
21343fi
21344if test "x$with_uinput" != "xno"; then
21345 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
21346if test "x$ac_cv_header_linux_input_h" = xyes; then :
21347 $as_echo "#define HAVE_LINUX_INPUT_H 1" >>confdefs.h
21348 HAVE_LINUX_INPUT_H="true"
21349fi
21350
21351
21352 if test "x$HAVE_LINUX_INPUT_H" = "xtrue"; then
21353 ac_fn_c_check_header_compile "$LINENO" "linux/uinput.h" "ac_cv_header_linux_uinput_h" "#include <linux/input.h>
21354"
21355if test "x$ac_cv_header_linux_uinput_h" = xyes; then :
21356 $as_echo "#define HAVE_LINUX_UINPUT_H 1" >>confdefs.h
21357
21358fi
21359
21360
21361 fi
21362fi
21363
21364if test "x$with_macosx_native" != "xno"; then
21365 $as_echo "#define HAVE_MACOSX_NATIVE_DISPLAY 1" >>confdefs.h
21366
21367fi
21368
21369# Check for OS X opengl header
21370ac_fn_c_check_header_mongrel "$LINENO" "OpenGL/OpenGL.h" "ac_cv_header_OpenGL_OpenGL_h" "$ac_includes_default"
21371if test "x$ac_cv_header_OpenGL_OpenGL_h" = xyes; then :
21372 $as_echo "#define HAVE_MACOSX_OPENGL_H 1" >>confdefs.h
21373 HAVE_MACOSX_OPENGL_H="true"
21374fi
21375
21376
21377
21378
21379
21380# Check whether --with-avahi was given.
21381if test "${with_avahi+set}" = set; then :
21382 withval=$with_avahi;
21383fi
21384
21385if test "x$with_avahi" != "xno"; then
21386 printf "checking for avahi... "
21387 if test ! -z "$with_avahi" -a "x$with_avahi" != "xyes"; then
21388 AVAHI_CFLAGS="-I$with_avahi/include"
21389 AVAHI_LIBS="-L$with_avahi/lib -lavahi-common -lavahi-client"
21390 echo "using $with_avahi"
21391 with_avahi=yes
21392 elif pkg-config --atleast-version=0.6.4 avahi-client >/dev/null 2>&1; then
21393 AVAHI_CFLAGS=`pkg-config --cflags avahi-client`
21394 AVAHI_LIBS=`pkg-config --libs avahi-client`
21395 with_avahi=yes
21396 echo yes
21397 else
21398 with_avahi=no
21399 echo no
21400 fi
21401fi
21402if test "x$with_avahi" = "xyes"; then
21403 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
21404
21405
21406
21407fi
21408
21409fi
21410# end x11vnc only.
21411
21412# only used in x11vnc/Makefile.am but needs to always be defined:
21413 if test "$HAVE_MACOSX_OPENGL_H" = "true"; then
21414 OSX_OPENGL_TRUE=
21415 OSX_OPENGL_FALSE='#'
21416else
21417 OSX_OPENGL_TRUE='#'
21418 OSX_OPENGL_FALSE=
21419fi
21420
21421
21422# Checks for libraries.
21423
21424if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
21425 printf "checking for system libvncserver... "
21426 vneed="0.9.1"
21427 if test "X$VNEED" != "X"; then
21428 vneed=$VNEED
21429 fi
21430 if test "x$with_system_libvncserver" != "xyes"; then
21431 rflag=""
21432 if test "x$ld_minus_R" = "xno"; then
21433 :
21434 elif test "x$GCC" = "xyes"; then
21435 rflag="-Xlinker -R$with_system_libvncserver/lib"
21436 else
21437 rflag="-R$with_system_libvncserver/lib"
21438 fi
21439 cmd="$with_system_libvncserver/bin/libvncserver-config"
21440 if $cmd --version 1>/dev/null 2>&1; then
21441 cvers=`$cmd --version 2>/dev/null`
21442 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21443 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21444
21445 if test $cscore -lt $nscore; then
21446 echo "no"
21447 with_system_libvncserver=no
21448 as_fn_error $? "
21449==========================================================================
21450*** Need libvncserver version $vneed, have version $cvers ***
21451You are building with a system installed libvncserver and it is not
21452new enough.
21453==========================================================================
21454" "$LINENO" 5
21455 else
21456 SYSTEM_LIBVNCSERVER_CFLAGS="-I$with_system_libvncserver/include"
21457 SYSTEM_LIBVNCSERVER_LIBS="-L$with_system_libvncserver/lib $rflag -lvncserver -lvncclient"
21458 echo "using $with_system_libvncserver"
21459 with_system_libvncserver=yes
21460 fi
21461 else
21462 echo " *** cannot run $cmd *** " 1>&2
21463 with_system_libvncserver=no
21464 echo no
21465 fi
21466 elif libvncserver-config --version 1>/dev/null 2>&1; then
21467 rflag=""
21468 rprefix=`libvncserver-config --prefix`
21469 if test "x$ld_minus_R" = "xno"; then
21470 :
21471 elif test "x$GCC" = "xyes"; then
21472 rflag=" -Xlinker -R$rprefix/lib "
21473 else
21474 rflag=" -R$rprefix/lib "
21475 fi
21476 cvers=`libvncserver-config --version 2>/dev/null`
21477 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21478 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21479
21480 if test $cscore -lt $nscore; then
21481 echo "no"
21482 as_fn_error $? "
21483==========================================================================
21484*** Need libvncserver version $vneed, have version $cvers ***
21485You are building with a system installed libvncserver and it is not
21486new enough.
21487==========================================================================
21488" "$LINENO" 5
21489 else
21490 SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
21491 SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
21492 with_system_libvncserver=yes
21493 echo yes
21494 fi
21495 else
21496 with_system_libvncserver=no
21497 echo no
21498 fi
21499fi
21500
21501if test "x$with_system_libvncserver" = "xyes"; then
21502 $as_echo "#define HAVE_SYSTEM_LIBVNCSERVER 1" >>confdefs.h
21503
21504
21505
21506fi
21507 if test "x$with_system_libvncserver" = "xyes"; then
21508 HAVE_SYSTEM_LIBVNCSERVER_TRUE=
21509 HAVE_SYSTEM_LIBVNCSERVER_FALSE='#'
21510else
21511 HAVE_SYSTEM_LIBVNCSERVER_TRUE='#'
21512 HAVE_SYSTEM_LIBVNCSERVER_FALSE=
21513fi
21514
21515
21516
21517
21518# Check whether --with-jpeg was given.
21519if test "${with_jpeg+set}" = set; then :
21520 withval=$with_jpeg;
21521fi
21522
21523
21524# At this point:
21525# no jpeg on command line with_jpeg=""
21526# -with-jpeg with_jpeg="yes"
21527# -without-jpeg with_jpeg="no"
21528# -with-jpeg=/foo/dir with_jpeg="/foo/dir"
21529
21530HAVE_LIBJPEG_TURBO="false"
21531
21532if test "x$with_jpeg" != "xno"; then
21533
21534 saved_CPPFLAGS="$CPPFLAGS"
21535 saved_LDFLAGS="$LDFLAGS"
21536 saved_LIBS="$LIBS"
21537 if test ! -z "$with_jpeg" -a "x$with_jpeg" != "xyes"; then
21538 # add user supplied directory to flags:
21539 CPPFLAGS="$CPPFLAGS -I$with_jpeg/include"
21540 LDFLAGS="$LDFLAGS -L$with_jpeg/lib"
21541 if test "x$ld_minus_R" = "xno"; then
21542 :
21543 elif test "x$GCC" = "xyes"; then
21544 # this is not complete... in general a rat's nest.
21545 LDFLAGS="$LDFLAGS -Xlinker -R$with_jpeg/lib"
21546 else
21547 LDFLAGS="$LDFLAGS -R$with_jpeg/lib"
21548 fi
21549 fi
21550 if test "x$JPEG_LDFLAGS" != "x"; then
21551 LDFLAGS="$saved_LDFLAGS"
21552 LIBS="$LIBS $JPEG_LDFLAGS"
21553 else
21554 LIBS="-ljpeg"
21555 fi
21556 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
21557if test "x$ac_cv_header_jpeglib_h" = xyes; then :
21558 HAVE_JPEGLIB_H="true"
21559fi
21560
21561
21562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in libjpeg" >&5
21563$as_echo_n "checking for jpeg_CreateCompress in libjpeg... " >&6; }
21564 if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
21565 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566/* end confdefs.h. */
21567
21568/* Override any GCC internal prototype to avoid an error.
21569 Use char because int might match the return type of a GCC
21570 builtin and then its argument prototype would still apply. */
21571#ifdef __cplusplus
21572extern "C"
21573#endif
21574char jpeg_CreateCompress ();
21575int
21576main ()
21577{
21578return jpeg_CreateCompress ();
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583if ac_fn_c_try_link "$LINENO"; then :
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21585$as_echo "yes" >&6; };
21586
21587$as_echo "#define HAVE_LIBJPEG 1" >>confdefs.h
21588
21589else
21590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21591$as_echo "no" >&6; }; HAVE_JPEGLIB_H=""
21592fi
21593rm -f core conftest.err conftest.$ac_objext \
21594 conftest$ac_exeext conftest.$ac_ext
21595 fi
21596 if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
21597 # restore old flags on failure:
21598 CPPFLAGS="$saved_CPPFLAGS"
21599 LDFLAGS="$saved_LDFLAGS"
21600 LIBS="$saved_LIBS"
21601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21602==========================================================================
21603*** The libjpeg compression library was not found. ***
21604This may lead to reduced performance, especially over slow links.
21605If libjpeg is in a non-standard location use --with-jpeg=DIR to
21606indicate the header file is in DIR/include/jpeglib.h and the library
21607in DIR/lib/libjpeg.a. You can also set the JPEG_LDFLAGS variable to
21608specify more detailed linker flags. A copy of libjpeg-turbo may be
21609obtained from: https://sourceforge.net/projects/libjpeg-turbo/files/
21610A copy of libjpeg may be obtained from: http://ijg.org/files/
21611==========================================================================
21612" >&5
21613$as_echo "$as_me: WARNING:
21614==========================================================================
21615*** The libjpeg compression library was not found. ***
21616This may lead to reduced performance, especially over slow links.
21617If libjpeg is in a non-standard location use --with-jpeg=DIR to
21618indicate the header file is in DIR/include/jpeglib.h and the library
21619in DIR/lib/libjpeg.a. You can also set the JPEG_LDFLAGS variable to
21620specify more detailed linker flags. A copy of libjpeg-turbo may be
21621obtained from: https://sourceforge.net/projects/libjpeg-turbo/files/
21622A copy of libjpeg may be obtained from: http://ijg.org/files/
21623==========================================================================
21624" >&2;}
21625 sleep 5
21626 fi
21627
21628 if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
21629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether JPEG library is libjpeg-turbo" >&5
21630$as_echo_n "checking whether JPEG library is libjpeg-turbo... " >&6; }
21631
21632 if test "x$cross_compiling" != "xyes"; then
21633 if test "$cross_compiling" = yes; then :
21634 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21635$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21636as_fn_error $? "cannot run test program while cross compiling
21637See \`config.log' for more details" "$LINENO" 5; }
21638else
21639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21640/* end confdefs.h. */
21641#include <stdio.h>
21642 #include <jpeglib.h>
21643int
21644main ()
21645{
21646struct jpeg_compress_struct cinfo;
21647 struct jpeg_error_mgr jerr;
21648 cinfo.err=jpeg_std_error(&jerr);
21649 jpeg_create_compress(&cinfo);
21650 cinfo.input_components = 3;
21651 jpeg_set_defaults(&cinfo);
21652 cinfo.in_color_space = JCS_EXT_RGB;
21653 jpeg_default_colorspace(&cinfo);
21654 return 0;
21655 ;
21656 return 0;
21657}
21658
21659_ACEOF
21660if ac_fn_c_try_run "$LINENO"; then :
21661 HAVE_LIBJPEG_TURBO="true"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21662$as_echo "yes" >&6; }
21663else
21664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21665$as_echo "no" >&6; }
21666fi
21667rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21668 conftest.$ac_objext conftest.beam conftest.$ac_ext
21669fi
21670
21671 else
21672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21673/* end confdefs.h. */
21674#include <stdio.h>
21675 #include <jpeglib.h>
21676int
21677main ()
21678{
21679struct jpeg_compress_struct cinfo;
21680 struct jpeg_error_mgr jerr;
21681 cinfo.err=jpeg_std_error(&jerr);
21682 jpeg_create_compress(&cinfo);
21683 cinfo.input_components = 3;
21684 jpeg_set_defaults(&cinfo);
21685 cinfo.in_color_space = JCS_EXT_RGB;
21686 jpeg_default_colorspace(&cinfo);
21687 return 0;
21688 ;
21689 return 0;
21690}
21691
21692_ACEOF
21693if ac_fn_c_try_link "$LINENO"; then :
21694 HAVE_LIBJPEG_TURBO="true"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21695$as_echo "yes" >&6; }
21696else
21697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21698$as_echo "no" >&6; }
21699fi
21700rm -f core conftest.err conftest.$ac_objext \
21701 conftest$ac_exeext conftest.$ac_ext
21702 fi
21703 fi
21704
21705 if test "x$HAVE_JPEGLIB_H" = "xtrue" -a "x$HAVE_LIBJPEG_TURBO" != "xtrue"; then
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21707==========================================================================
21708*** The libjpeg library you are building against is not libjpeg-turbo.
21709Performance will be reduced. You can obtain libjpeg-turbo from:
21710https://sourceforge.net/projects/libjpeg-turbo/files/ ***
21711==========================================================================
21712" >&5
21713$as_echo "$as_me: WARNING:
21714==========================================================================
21715*** The libjpeg library you are building against is not libjpeg-turbo.
21716Performance will be reduced. You can obtain libjpeg-turbo from:
21717https://sourceforge.net/projects/libjpeg-turbo/files/ ***
21718==========================================================================
21719" >&2;}
21720 fi
21721
21722fi
21723
21724
21725# Check whether --with-png was given.
21726if test "${with_png+set}" = set; then :
21727 withval=$with_png;
21728fi
21729
21730
21731# At this point:
21732# no png on command line with_png=""
21733# -with-png with_png="yes"
21734# -without-png with_png="no"
21735# -with-png=/foo/dir with_png="/foo/dir"
21736
21737if test "x$with_png" != "xno"; then
21738 if test ! -z "$with_png" -a "x$with_png" != "xyes"; then
21739 # add user supplied directory to flags:
21740 saved_CPPFLAGS="$CPPFLAGS"
21741 saved_LDFLAGS="$LDFLAGS"
21742 CPPFLAGS="$CPPFLAGS -I$with_png/include"
21743 LDFLAGS="$LDFLAGS -L$with_png/lib"
21744 if test "x$ld_minus_R" = "xno"; then
21745 :
21746 elif test "x$GCC" = "xyes"; then
21747 # this is not complete... in general a rat's nest.
21748 LDFLAGS="$LDFLAGS -Xlinker -R$with_png/lib"
21749 else
21750 LDFLAGS="$LDFLAGS -R$with_png/lib"
21751 fi
21752 fi
21753 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
21754if test "x$ac_cv_header_png_h" = xyes; then :
21755 HAVE_PNGLIB_H="true"
21756fi
21757
21758
21759 if test "x$HAVE_PNGLIB_H" = "xtrue"; then
21760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5
21761$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; }
21762if ${ac_cv_lib_png_png_create_write_struct+:} false; then :
21763 $as_echo_n "(cached) " >&6
21764else
21765 ac_check_lib_save_LIBS=$LIBS
21766LIBS="-lpng $LIBS"
21767cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768/* end confdefs.h. */
21769
21770/* Override any GCC internal prototype to avoid an error.
21771 Use char because int might match the return type of a GCC
21772 builtin and then its argument prototype would still apply. */
21773#ifdef __cplusplus
21774extern "C"
21775#endif
21776char png_create_write_struct ();
21777int
21778main ()
21779{
21780return png_create_write_struct ();
21781 ;
21782 return 0;
21783}
21784_ACEOF
21785if ac_fn_c_try_link "$LINENO"; then :
21786 ac_cv_lib_png_png_create_write_struct=yes
21787else
21788 ac_cv_lib_png_png_create_write_struct=no
21789fi
21790rm -f core conftest.err conftest.$ac_objext \
21791 conftest$ac_exeext conftest.$ac_ext
21792LIBS=$ac_check_lib_save_LIBS
21793fi
21794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5
21795$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; }
21796if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then :
21797 cat >>confdefs.h <<_ACEOF
21798#define HAVE_LIBPNG 1
21799_ACEOF
21800
21801 LIBS="-lpng $LIBS"
21802
21803else
21804 HAVE_PNGLIB_H=""
21805fi
21806
21807 fi
21808 if test ! -z "$with_png" -a "x$with_png" != "xyes"; then
21809 if test "x$HAVE_PNGLIB_H" != "xtrue"; then
21810 # restore old flags on failure:
21811 CPPFLAGS="$saved_CPPFLAGS"
21812 LDFLAGS="$saved_LDFLAGS"
21813 fi
21814 fi
21815 if test "$build_x11vnc" = "yes"; then
21816 if test "x$HAVE_PNGLIB_H" != "xtrue"; then
21817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21818==========================================================================
21819*** The libpng compression library was not found. ***
21820This may lead to reduced performance, especially over slow links.
21821If libpng is in a non-standard location use --with-png=DIR to
21822indicate the header file is in DIR/include/png.h and the library
21823in DIR/lib/libpng.a. A copy of libpng may be obtained from:
21824http://www.libpng.org/pub/png/libpng.html
21825==========================================================================
21826" >&5
21827$as_echo "$as_me: WARNING:
21828==========================================================================
21829*** The libpng compression library was not found. ***
21830This may lead to reduced performance, especially over slow links.
21831If libpng is in a non-standard location use --with-png=DIR to
21832indicate the header file is in DIR/include/png.h and the library
21833in DIR/lib/libpng.a. A copy of libpng may be obtained from:
21834http://www.libpng.org/pub/png/libpng.html
21835==========================================================================
21836" >&2;}
21837 sleep 5
21838 fi
21839 fi
21840fi
21841
21842
21843# Check whether --with-libz was given.
21844if test "${with_libz+set}" = set; then :
21845 withval=$with_libz;
21846fi
21847
21848
21849# Check whether --with-zlib was given.
21850if test "${with_zlib+set}" = set; then :
21851 withval=$with_zlib;
21852fi
21853
21854
21855if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
21856 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
21857 saved_CPPFLAGS="$CPPFLAGS"
21858 saved_LDFLAGS="$LDFLAGS"
21859 CPPFLAGS="$CPPFLAGS -I$with_zlib/include"
21860 LDFLAGS="$LDFLAGS -L$with_zlib/lib"
21861 if test "x$ld_minus_R" = "xno"; then
21862 :
21863 elif test "x$GCC" = "xyes"; then
21864 LDFLAGS="$LDFLAGS -Xlinker -R$with_zlib/lib"
21865 else
21866 LDFLAGS="$LDFLAGS -R$with_zlib/lib"
21867 fi
21868 fi
21869 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21870if test "x$ac_cv_header_zlib_h" = xyes; then :
21871 HAVE_ZLIB_H="true"
21872fi
21873
21874
21875 if test "x$HAVE_ZLIB_H" = "xtrue"; then
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
21877$as_echo_n "checking for deflate in -lz... " >&6; }
21878if ${ac_cv_lib_z_deflate+:} false; then :
21879 $as_echo_n "(cached) " >&6
21880else
21881 ac_check_lib_save_LIBS=$LIBS
21882LIBS="-lz $LIBS"
21883cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21884/* end confdefs.h. */
21885
21886/* Override any GCC internal prototype to avoid an error.
21887 Use char because int might match the return type of a GCC
21888 builtin and then its argument prototype would still apply. */
21889#ifdef __cplusplus
21890extern "C"
21891#endif
21892char deflate ();
21893int
21894main ()
21895{
21896return deflate ();
21897 ;
21898 return 0;
21899}
21900_ACEOF
21901if ac_fn_c_try_link "$LINENO"; then :
21902 ac_cv_lib_z_deflate=yes
21903else
21904 ac_cv_lib_z_deflate=no
21905fi
21906rm -f core conftest.err conftest.$ac_objext \
21907 conftest$ac_exeext conftest.$ac_ext
21908LIBS=$ac_check_lib_save_LIBS
21909fi
21910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
21911$as_echo "$ac_cv_lib_z_deflate" >&6; }
21912if test "x$ac_cv_lib_z_deflate" = xyes; then :
21913 cat >>confdefs.h <<_ACEOF
21914#define HAVE_LIBZ 1
21915_ACEOF
21916
21917 LIBS="-lz $LIBS"
21918
21919else
21920 HAVE_ZLIB_H=""
21921fi
21922
21923 fi
21924 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
21925 if test "x$HAVE_ZLIB_H" != "xtrue"; then
21926 CPPFLAGS="$saved_CPPFLAGS"
21927 LDFLAGS="$saved_LDFLAGS"
21928 fi
21929 fi
21930 if test "$build_x11vnc" = "yes"; then
21931 if test "x$HAVE_ZLIB_H" != "xtrue"; then
21932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21933==========================================================================
21934*** The libz compression library was not found. ***
21935This may lead to reduced performance, especially over slow links.
21936If libz is in a non-standard location use --with-zlib=DIR to indicate the
21937header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
21938A copy of libz may be obtained from: http://www.gzip.org/zlib/
21939==========================================================================
21940" >&5
21941$as_echo "$as_me: WARNING:
21942==========================================================================
21943*** The libz compression library was not found. ***
21944This may lead to reduced performance, especially over slow links.
21945If libz is in a non-standard location use --with-zlib=DIR to indicate the
21946header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
21947A copy of libz may be obtained from: http://www.gzip.org/zlib/
21948==========================================================================
21949" >&2;}
21950 sleep 5
21951 fi
21952 fi
21953fi
21954
21955
21956# Check whether --with-pthread was given.
21957if test "${with_pthread+set}" = set; then :
21958 withval=$with_pthread;
21959fi
21960
21961
21962if test "x$with_pthread" != "xno"; then
21963 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21964if test "x$ac_cv_header_pthread_h" = xyes; then :
21965 HAVE_PTHREAD_H="true"
21966fi
21967
21968
21969 if test ! -z "$HAVE_PTHREAD_H"; then
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
21971$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
21972if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
21973 $as_echo_n "(cached) " >&6
21974else
21975 ac_check_lib_save_LIBS=$LIBS
21976LIBS="-lpthread $LIBS"
21977cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21978/* end confdefs.h. */
21979
21980/* Override any GCC internal prototype to avoid an error.
21981 Use char because int might match the return type of a GCC
21982 builtin and then its argument prototype would still apply. */
21983#ifdef __cplusplus
21984extern "C"
21985#endif
21986char pthread_mutex_lock ();
21987int
21988main ()
21989{
21990return pthread_mutex_lock ();
21991 ;
21992 return 0;
21993}
21994_ACEOF
21995if ac_fn_c_try_link "$LINENO"; then :
21996 ac_cv_lib_pthread_pthread_mutex_lock=yes
21997else
21998 ac_cv_lib_pthread_pthread_mutex_lock=no
21999fi
22000rm -f core conftest.err conftest.$ac_objext \
22001 conftest$ac_exeext conftest.$ac_ext
22002LIBS=$ac_check_lib_save_LIBS
22003fi
22004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
22005$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
22006if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
22007 cat >>confdefs.h <<_ACEOF
22008#define HAVE_LIBPTHREAD 1
22009_ACEOF
22010
22011 LIBS="-lpthread $LIBS"
22012
22013fi
22014
22015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
22016$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
22017if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
22018 $as_echo_n "(cached) " >&6
22019else
22020 ac_check_lib_save_LIBS=$LIBS
22021LIBS="-lpthread $LIBS"
22022cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22023/* end confdefs.h. */
22024
22025/* Override any GCC internal prototype to avoid an error.
22026 Use char because int might match the return type of a GCC
22027 builtin and then its argument prototype would still apply. */
22028#ifdef __cplusplus
22029extern "C"
22030#endif
22031char pthread_mutex_lock ();
22032int
22033main ()
22034{
22035return pthread_mutex_lock ();
22036 ;
22037 return 0;
22038}
22039_ACEOF
22040if ac_fn_c_try_link "$LINENO"; then :
22041 ac_cv_lib_pthread_pthread_mutex_lock=yes
22042else
22043 ac_cv_lib_pthread_pthread_mutex_lock=no
22044fi
22045rm -f core conftest.err conftest.$ac_objext \
22046 conftest$ac_exeext conftest.$ac_ext
22047LIBS=$ac_check_lib_save_LIBS
22048fi
22049{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
22050$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
22051if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
22052 HAVE_LIBPTHREAD="true"
22053fi
22054
22055 fi
22056fi
22057 if test ! -z "$HAVE_LIBPTHREAD"; then
22058 HAVE_LIBPTHREAD_TRUE=
22059 HAVE_LIBPTHREAD_FALSE='#'
22060else
22061 HAVE_LIBPTHREAD_TRUE='#'
22062 HAVE_LIBPTHREAD_FALSE=
22063fi
22064
22065
22066{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
22067$as_echo_n "checking for __thread... " >&6; }
22068cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22069/* end confdefs.h. */
22070
22071int
22072main ()
22073{
22074static __thread int p = 0
22075 ;
22076 return 0;
22077}
22078_ACEOF
22079if ac_fn_c_try_link "$LINENO"; then :
22080
22081$as_echo "#define HAVE_TLS 1" >>confdefs.h
22082
22083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22084$as_echo "yes" >&6; }
22085else
22086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22087$as_echo "no" >&6; }
22088fi
22089rm -f core conftest.err conftest.$ac_objext \
22090 conftest$ac_exeext conftest.$ac_ext
22091
22092# tightvnc-filetransfer implemented using threads:
22093if test -z "$HAVE_LIBPTHREAD"; then
22094 with_tightvnc_filetransfer=""
22095fi
22096if test "x$with_tightvnc_filetransfer" = "xyes"; then
22097 $as_echo "#define WITH_TIGHTVNC_FILETRANSFER 1" >>confdefs.h
22098
22099fi
22100 if test "$with_tightvnc_filetransfer" = "yes"; then
22101 WITH_TIGHTVNC_FILETRANSFER_TRUE=
22102 WITH_TIGHTVNC_FILETRANSFER_FALSE='#'
22103else
22104 WITH_TIGHTVNC_FILETRANSFER_TRUE='#'
22105 WITH_TIGHTVNC_FILETRANSFER_FALSE=
22106fi
22107
22108
22109# websockets implemented using base64 from resolve
22110if test "x$HAVE_B64" != "xtrue"; then
22111 with_websockets=""
22112fi
22113if test "x$with_websockets" = "xyes"; then
22114 LIBS="$LIBS -lresolv $SSL_LIBS"
22115 $as_echo "#define WITH_WEBSOCKETS 1" >>confdefs.h
22116
22117fi
22118 if test "$with_websockets" = "yes"; then
22119 WITH_WEBSOCKETS_TRUE=
22120 WITH_WEBSOCKETS_FALSE='#'
22121else
22122 WITH_WEBSOCKETS_TRUE='#'
22123 WITH_WEBSOCKETS_FALSE=
22124fi
22125
22126
22127 if test ! -z "$HAVE_ZLIB_H"; then
22128 HAVE_LIBZ_TRUE=
22129 HAVE_LIBZ_FALSE='#'
22130else
22131 HAVE_LIBZ_TRUE='#'
22132 HAVE_LIBZ_FALSE=
22133fi
22134
22135 if test ! -z "$HAVE_JPEGLIB_H"; then
22136 HAVE_LIBJPEG_TRUE=
22137 HAVE_LIBJPEG_FALSE='#'
22138else
22139 HAVE_LIBJPEG_TRUE='#'
22140 HAVE_LIBJPEG_FALSE=
22141fi
22142
22143 if test ! -z "$HAVE_PNGLIB_H"; then
22144 HAVE_LIBPNG_TRUE=
22145 HAVE_LIBPNG_FALSE='#'
22146else
22147 HAVE_LIBPNG_TRUE='#'
22148 HAVE_LIBPNG_FALSE=
22149fi
22150
22151
22152
22153SDLCONFIG="sdl-config"
22154
22155# Check whether --with-sdl-config was given.
22156if test "${with_sdl_config+set}" = set; then :
22157 withval=$with_sdl_config;
22158 if test "$withval" != "yes" -a "$withval" != ""; then
22159 SDLCONFIG=$withval
22160 fi
22161
22162fi
22163
22164
22165if test -z "$with_sdl"; then
22166 if $SDLCONFIG --version >/dev/null 2>&1; then
22167 with_sdl=yes
22168 SDL_CFLAGS=`$SDLCONFIG --cflags`
22169 SDL_LIBS=`$SDLCONFIG --libs`
22170 else
22171 with_sdl=no
22172 fi
22173fi
22174 if test "x$with_sdl" = "xyes"; then
22175 HAVE_LIBSDL_TRUE=
22176 HAVE_LIBSDL_FALSE='#'
22177else
22178 HAVE_LIBSDL_TRUE='#'
22179 HAVE_LIBSDL_FALSE=
22180fi
22181
22182
22183
22184
22185
22186# Check for GTK+. if present, build the GTK+ vnc viewer example
22187
22188
22189
22190
22191
22192
22193
22194if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
22195 if test -n "$ac_tool_prefix"; then
22196 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
22197set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
22198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22199$as_echo_n "checking for $ac_word... " >&6; }
22200if ${ac_cv_path_PKG_CONFIG+:} false; then :
22201 $as_echo_n "(cached) " >&6
22202else
22203 case $PKG_CONFIG in
22204 [\\/]* | ?:[\\/]*)
22205 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22206 ;;
22207 *)
22208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22209for as_dir in $PATH
22210do
22211 IFS=$as_save_IFS
22212 test -z "$as_dir" && as_dir=.
22213 for ac_exec_ext in '' $ac_executable_extensions; do
22214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22215 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22216 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22217 break 2
22218 fi
22219done
22220 done
22221IFS=$as_save_IFS
22222
22223 ;;
22224esac
22225fi
22226PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22227if test -n "$PKG_CONFIG"; then
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22229$as_echo "$PKG_CONFIG" >&6; }
22230else
22231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22232$as_echo "no" >&6; }
22233fi
22234
22235
22236fi
22237if test -z "$ac_cv_path_PKG_CONFIG"; then
22238 ac_pt_PKG_CONFIG=$PKG_CONFIG
22239 # Extract the first word of "pkg-config", so it can be a program name with args.
22240set dummy pkg-config; ac_word=$2
22241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22242$as_echo_n "checking for $ac_word... " >&6; }
22243if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
22244 $as_echo_n "(cached) " >&6
22245else
22246 case $ac_pt_PKG_CONFIG in
22247 [\\/]* | ?:[\\/]*)
22248 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
22249 ;;
22250 *)
22251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22252for as_dir in $PATH
22253do
22254 IFS=$as_save_IFS
22255 test -z "$as_dir" && as_dir=.
22256 for ac_exec_ext in '' $ac_executable_extensions; do
22257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22258 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22260 break 2
22261 fi
22262done
22263 done
22264IFS=$as_save_IFS
22265
22266 ;;
22267esac
22268fi
22269ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
22270if test -n "$ac_pt_PKG_CONFIG"; then
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
22272$as_echo "$ac_pt_PKG_CONFIG" >&6; }
22273else
22274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22275$as_echo "no" >&6; }
22276fi
22277
22278 if test "x$ac_pt_PKG_CONFIG" = x; then
22279 PKG_CONFIG=""
22280 else
22281 case $cross_compiling:$ac_tool_warned in
22282yes:)
22283{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
22284$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
22285ac_tool_warned=yes ;;
22286esac
22287 PKG_CONFIG=$ac_pt_PKG_CONFIG
22288 fi
22289else
22290 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
22291fi
22292
22293fi
22294if test -n "$PKG_CONFIG"; then
22295 _pkg_min_version=0.9.0
22296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
22297$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
22298 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
22299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22300$as_echo "yes" >&6; }
22301 else
22302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22303$as_echo "no" >&6; }
22304 PKG_CONFIG=""
22305 fi
22306fi
22307
22308pkg_failed=no
22309{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
22310$as_echo_n "checking for GTK... " >&6; }
22311
22312if test -n "$GTK_CFLAGS"; then
22313 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
22314 elif test -n "$PKG_CONFIG"; then
22315 if test -n "$PKG_CONFIG" && \
22316 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22317 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22318 ac_status=$?
22319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22320 test $ac_status = 0; }; then
22321 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
22322 test "x$?" != "x0" && pkg_failed=yes
22323else
22324 pkg_failed=yes
22325fi
22326 else
22327 pkg_failed=untried
22328fi
22329if test -n "$GTK_LIBS"; then
22330 pkg_cv_GTK_LIBS="$GTK_LIBS"
22331 elif test -n "$PKG_CONFIG"; then
22332 if test -n "$PKG_CONFIG" && \
22333 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
22334 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
22335 ac_status=$?
22336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22337 test $ac_status = 0; }; then
22338 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
22339 test "x$?" != "x0" && pkg_failed=yes
22340else
22341 pkg_failed=yes
22342fi
22343 else
22344 pkg_failed=untried
22345fi
22346
22347
22348
22349if test $pkg_failed = yes; then
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22351$as_echo "no" >&6; }
22352
22353if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22354 _pkg_short_errors_supported=yes
22355else
22356 _pkg_short_errors_supported=no
22357fi
22358 if test $_pkg_short_errors_supported = yes; then
22359 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22360 else
22361 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
22362 fi
22363 # Put the nasty error message in config.log where it belongs
22364 echo "$GTK_PKG_ERRORS" >&5
22365
22366 :
22367elif test $pkg_failed = untried; then
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22369$as_echo "no" >&6; }
22370 :
22371else
22372 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
22373 GTK_LIBS=$pkg_cv_GTK_LIBS
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22375$as_echo "yes" >&6; }
22376
22377fi
22378 if test ! -z "$GTK_LIBS"; then
22379 HAVE_LIBGTK_TRUE=
22380 HAVE_LIBGTK_FALSE='#'
22381else
22382 HAVE_LIBGTK_TRUE='#'
22383 HAVE_LIBGTK_FALSE=
22384fi
22385
22386
22387
22388MINGW=`echo $host_os | grep mingw32 2>/dev/null`
22389 if test ! -z "$MINGW" ; then
22390 MINGW_TRUE=
22391 MINGW_FALSE='#'
22392else
22393 MINGW_TRUE='#'
22394 MINGW_FALSE=
22395fi
22396
22397if test ! -z "$MINGW"; then
22398 WSOCKLIB="-lws2_32"
22399 LDFLAGS="$LDFLAGS -no-undefined"
22400fi
22401
22402
22403# Check for libgcrypt
22404
22405
22406# Check whether --with-gcrypt was given.
22407if test "${with_gcrypt+set}" = set; then :
22408 withval=$with_gcrypt;
22409fi
22410
22411
22412# Check whether --with-client-gcrypt was given.
22413if test "${with_client_gcrypt+set}" = set; then :
22414 withval=$with_client_gcrypt;
22415fi
22416
22417
22418if test "x$with_gcrypt" != "xno"; then
22419
22420# Check whether --with-libgcrypt-prefix was given.
22421if test "${with_libgcrypt_prefix+set}" = set; then :
22422 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
22423else
22424 libgcrypt_config_prefix=""
22425fi
22426
22427 if test x$libgcrypt_config_prefix != x ; then
22428 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
22429 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
22430 fi
22431 fi
22432
22433 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
22434set dummy libgcrypt-config; ac_word=$2
22435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22436$as_echo_n "checking for $ac_word... " >&6; }
22437if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
22438 $as_echo_n "(cached) " >&6
22439else
22440 case $LIBGCRYPT_CONFIG in
22441 [\\/]* | ?:[\\/]*)
22442 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
22443 ;;
22444 *)
22445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22446for as_dir in $PATH
22447do
22448 IFS=$as_save_IFS
22449 test -z "$as_dir" && as_dir=.
22450 for ac_exec_ext in '' $ac_executable_extensions; do
22451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22452 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22453 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22454 break 2
22455 fi
22456done
22457 done
22458IFS=$as_save_IFS
22459
22460 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
22461 ;;
22462esac
22463fi
22464LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
22465if test -n "$LIBGCRYPT_CONFIG"; then
22466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
22467$as_echo "$LIBGCRYPT_CONFIG" >&6; }
22468else
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22470$as_echo "no" >&6; }
22471fi
22472
22473
22474 tmp=1.4.0
22475 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
22476 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
22477 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
22478 else
22479 req_libgcrypt_api=0
22480 min_libgcrypt_version="$tmp"
22481 fi
22482
22483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
22484$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
22485 ok=no
22486 if test "$LIBGCRYPT_CONFIG" != "no" ; then
22487 req_major=`echo $min_libgcrypt_version | \
22488 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
22489 req_minor=`echo $min_libgcrypt_version | \
22490 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
22491 req_micro=`echo $min_libgcrypt_version | \
22492 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
22493 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
22494 major=`echo $libgcrypt_config_version | \
22495 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
22496 minor=`echo $libgcrypt_config_version | \
22497 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
22498 micro=`echo $libgcrypt_config_version | \
22499 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
22500 if test "$major" -gt "$req_major"; then
22501 ok=yes
22502 else
22503 if test "$major" -eq "$req_major"; then
22504 if test "$minor" -gt "$req_minor"; then
22505 ok=yes
22506 else
22507 if test "$minor" -eq "$req_minor"; then
22508 if test "$micro" -ge "$req_micro"; then
22509 ok=yes
22510 fi
22511 fi
22512 fi
22513 fi
22514 fi
22515 fi
22516 if test $ok = yes; then
22517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
22518$as_echo "yes ($libgcrypt_config_version)" >&6; }
22519 else
22520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22521$as_echo "no" >&6; }
22522 fi
22523 if test $ok = yes; then
22524 # If we have a recent libgcrypt, we should also check that the
22525 # API is compatible
22526 if test "$req_libgcrypt_api" -gt 0 ; then
22527 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
22528 if test "$tmp" -gt 0 ; then
22529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
22530$as_echo_n "checking LIBGCRYPT API version... " >&6; }
22531 if test "$req_libgcrypt_api" -eq "$tmp" ; then
22532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
22533$as_echo "okay" >&6; }
22534 else
22535 ok=no
22536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
22537$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
22538 fi
22539 fi
22540 fi
22541 fi
22542 if test $ok = yes; then
22543 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
22544 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
22545 :
22546 else
22547 LIBGCRYPT_CFLAGS=""
22548 LIBGCRYPT_LIBS=""
22549 with_client_gcrypt=no
22550 fi
22551
22552
22553
22554 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
22555 LIBS="$LIBS $LIBGCRYPT_LIBS"
22556 if test "x$with_client_gcrypt" != "xno"; then
22557 $as_echo "#define WITH_CLIENT_GCRYPT 1" >>confdefs.h
22558
22559 fi
22560fi
22561
22562# Checks for GnuTLS
22563
22564
22565# Check whether --with-gnutls was given.
22566if test "${with_gnutls+set}" = set; then :
22567 withval=$with_gnutls;
22568fi
22569
22570
22571if test "x$with_gnutls" != "xno"; then
22572
22573pkg_failed=no
22574{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNUTLS" >&5
22575$as_echo_n "checking for GNUTLS... " >&6; }
22576
22577if test -n "$GNUTLS_CFLAGS"; then
22578 pkg_cv_GNUTLS_CFLAGS="$GNUTLS_CFLAGS"
22579 elif test -n "$PKG_CONFIG"; then
22580 if test -n "$PKG_CONFIG" && \
22581 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.4.0\""; } >&5
22582 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.4.0") 2>&5
22583 ac_status=$?
22584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22585 test $ac_status = 0; }; then
22586 pkg_cv_GNUTLS_CFLAGS=`$PKG_CONFIG --cflags "gnutls >= 2.4.0" 2>/dev/null`
22587 test "x$?" != "x0" && pkg_failed=yes
22588else
22589 pkg_failed=yes
22590fi
22591 else
22592 pkg_failed=untried
22593fi
22594if test -n "$GNUTLS_LIBS"; then
22595 pkg_cv_GNUTLS_LIBS="$GNUTLS_LIBS"
22596 elif test -n "$PKG_CONFIG"; then
22597 if test -n "$PKG_CONFIG" && \
22598 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gnutls >= 2.4.0\""; } >&5
22599 ($PKG_CONFIG --exists --print-errors "gnutls >= 2.4.0") 2>&5
22600 ac_status=$?
22601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22602 test $ac_status = 0; }; then
22603 pkg_cv_GNUTLS_LIBS=`$PKG_CONFIG --libs "gnutls >= 2.4.0" 2>/dev/null`
22604 test "x$?" != "x0" && pkg_failed=yes
22605else
22606 pkg_failed=yes
22607fi
22608 else
22609 pkg_failed=untried
22610fi
22611
22612
22613
22614if test $pkg_failed = yes; then
22615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22616$as_echo "no" >&6; }
22617
22618if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
22619 _pkg_short_errors_supported=yes
22620else
22621 _pkg_short_errors_supported=no
22622fi
22623 if test $_pkg_short_errors_supported = yes; then
22624 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gnutls >= 2.4.0" 2>&1`
22625 else
22626 GNUTLS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gnutls >= 2.4.0" 2>&1`
22627 fi
22628 # Put the nasty error message in config.log where it belongs
22629 echo "$GNUTLS_PKG_ERRORS" >&5
22630
22631 :
22632elif test $pkg_failed = untried; then
22633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22634$as_echo "no" >&6; }
22635 :
22636else
22637 GNUTLS_CFLAGS=$pkg_cv_GNUTLS_CFLAGS
22638 GNUTLS_LIBS=$pkg_cv_GNUTLS_LIBS
22639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22640$as_echo "yes" >&6; }
22641
22642fi
22643 CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
22644 LIBS="$LIBS $GNUTLS_LIBS"
22645fi
22646 if test ! -z "$GNUTLS_LIBS"; then
22647 HAVE_GNUTLS_TRUE=
22648 HAVE_GNUTLS_FALSE='#'
22649else
22650 HAVE_GNUTLS_TRUE='#'
22651 HAVE_GNUTLS_FALSE=
22652fi
22653
22654if test ! -z "$GNUTLS_LIBS" ; then
22655 $as_echo "#define HAVE_GNUTLS 1" >>confdefs.h
22656
22657fi
22658
22659
22660# warn if neither GnuTLS nor OpenSSL are available
22661if test -z "$SSL_LIBS" -a -z "$GNUTLS_LIBS"; then
22662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22663==========================================================================
22664*** No encryption library could be found. ***
22665A libvncserver/libvncclient built this way will not support SSL encryption.
22666To enable SSL install the necessary development packages (perhaps it is named
22667something like libssl-dev or gnutls-dev) and run configure again.
22668==========================================================================
22669" >&5
22670$as_echo "$as_me: WARNING:
22671==========================================================================
22672*** No encryption library could be found. ***
22673A libvncserver/libvncclient built this way will not support SSL encryption.
22674To enable SSL install the necessary development packages (perhaps it is named
22675something like libssl-dev or gnutls-dev) and run configure again.
22676==========================================================================
22677" >&2;}
22678 sleep 5
22679fi
22680
22681
22682# IPv6
22683
22684
22685# Check whether --with-ipv6 was given.
22686if test "${with_ipv6+set}" = set; then :
22687 withval=$with_ipv6;
22688fi
22689
22690if test "x$with_ipv6" != "xno"; then
22691 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
22692if test "x$ac_cv_func_getaddrinfo" = xyes; then :
22693 $as_echo "#define IPv6 1" >>confdefs.h
22694
22695else
22696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
22697$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
22698if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
22699 $as_echo_n "(cached) " >&6
22700else
22701 ac_check_lib_save_LIBS=$LIBS
22702LIBS="-lsocket $LIBS"
22703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22704/* end confdefs.h. */
22705
22706/* Override any GCC internal prototype to avoid an error.
22707 Use char because int might match the return type of a GCC
22708 builtin and then its argument prototype would still apply. */
22709#ifdef __cplusplus
22710extern "C"
22711#endif
22712char getaddrinfo ();
22713int
22714main ()
22715{
22716return getaddrinfo ();
22717 ;
22718 return 0;
22719}
22720_ACEOF
22721if ac_fn_c_try_link "$LINENO"; then :
22722 ac_cv_lib_socket_getaddrinfo=yes
22723else
22724 ac_cv_lib_socket_getaddrinfo=no
22725fi
22726rm -f core conftest.err conftest.$ac_objext \
22727 conftest$ac_exeext conftest.$ac_ext
22728LIBS=$ac_check_lib_save_LIBS
22729fi
22730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
22731$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
22732if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
22733 $as_echo "#define IPv6 1" >>confdefs.h
22734
22735else
22736
22737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lws2_32" >&5
22738$as_echo_n "checking for getaddrinfo in -lws2_32... " >&6; }
22739 LIBS="$LIBS -lws2_32"
22740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22741/* end confdefs.h. */
22742#include <ws2tcpip.h>
22743int
22744main ()
22745{
22746getaddrinfo(0, 0, 0, 0);
22747 ;
22748 return 0;
22749}
22750_ACEOF
22751if ac_fn_c_try_link "$LINENO"; then :
22752
22753 $as_echo "#define IPv6 1" >>confdefs.h
22754
22755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22756$as_echo "yes" >&6; }
22757
22758else
22759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22760$as_echo "no" >&6; }
22761fi
22762rm -f core conftest.err conftest.$ac_objext \
22763 conftest$ac_exeext conftest.$ac_ext
22764
22765fi
22766
22767fi
22768
22769fi
22770
22771
22772
22773# Checks for header files.
22774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22775$as_echo_n "checking for ANSI C header files... " >&6; }
22776if ${ac_cv_header_stdc+:} false; then :
22777 $as_echo_n "(cached) " >&6
22778else
22779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22780/* end confdefs.h. */
22781#include <stdlib.h>
22782#include <stdarg.h>
22783#include <string.h>
22784#include <float.h>
22785
22786int
22787main ()
22788{
22789
22790 ;
22791 return 0;
22792}
22793_ACEOF
22794if ac_fn_c_try_compile "$LINENO"; then :
22795 ac_cv_header_stdc=yes
22796else
22797 ac_cv_header_stdc=no
22798fi
22799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22800
22801if test $ac_cv_header_stdc = yes; then
22802 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22804/* end confdefs.h. */
22805#include <string.h>
22806
22807_ACEOF
22808if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22809 $EGREP "memchr" >/dev/null 2>&1; then :
22810
22811else
22812 ac_cv_header_stdc=no
22813fi
22814rm -f conftest*
22815
22816fi
22817
22818if test $ac_cv_header_stdc = yes; then
22819 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22821/* end confdefs.h. */
22822#include <stdlib.h>
22823
22824_ACEOF
22825if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22826 $EGREP "free" >/dev/null 2>&1; then :
22827
22828else
22829 ac_cv_header_stdc=no
22830fi
22831rm -f conftest*
22832
22833fi
22834
22835if test $ac_cv_header_stdc = yes; then
22836 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22837 if test "$cross_compiling" = yes; then :
22838 :
22839else
22840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22841/* end confdefs.h. */
22842#include <ctype.h>
22843#include <stdlib.h>
22844#if ((' ' & 0x0FF) == 0x020)
22845# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22846# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22847#else
22848# define ISLOWER(c) \
22849 (('a' <= (c) && (c) <= 'i') \
22850 || ('j' <= (c) && (c) <= 'r') \
22851 || ('s' <= (c) && (c) <= 'z'))
22852# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22853#endif
22854
22855#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22856int
22857main ()
22858{
22859 int i;
22860 for (i = 0; i < 256; i++)
22861 if (XOR (islower (i), ISLOWER (i))
22862 || toupper (i) != TOUPPER (i))
22863 return 2;
22864 return 0;
22865}
22866_ACEOF
22867if ac_fn_c_try_run "$LINENO"; then :
22868
22869else
22870 ac_cv_header_stdc=no
22871fi
22872rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22873 conftest.$ac_objext conftest.beam conftest.$ac_ext
22874fi
22875
22876fi
22877fi
22878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22879$as_echo "$ac_cv_header_stdc" >&6; }
22880if test $ac_cv_header_stdc = yes; then
22881
22882$as_echo "#define STDC_HEADERS 1" >>confdefs.h
22883
22884fi
22885
22886for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdlib.h string.h sys/socket.h sys/time.h sys/timeb.h syslog.h unistd.h ws2tcpip.h
22887do :
22888 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22889ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22890if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22891 cat >>confdefs.h <<_ACEOF
22892#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22893_ACEOF
22894
22895fi
22896
22897done
22898
22899
22900# x11vnc only:
22901if test "$build_x11vnc" = "yes"; then
22902 for ac_header in pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h
22903do :
22904 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22905ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22906if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22907 cat >>confdefs.h <<_ACEOF
22908#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22909_ACEOF
22910
22911fi
22912
22913done
22914
22915fi
22916
22917# Checks for typedefs, structures, and compiler characteristics.
22918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22919$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22920if ${ac_cv_c_const+:} false; then :
22921 $as_echo_n "(cached) " >&6
22922else
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h. */
22925
22926int
22927main ()
22928{
22929
22930#ifndef __cplusplus
22931 /* Ultrix mips cc rejects this sort of thing. */
22932 typedef int charset[2];
22933 const charset cs = { 0, 0 };
22934 /* SunOS 4.1.1 cc rejects this. */
22935 char const *const *pcpcc;
22936 char **ppc;
22937 /* NEC SVR4.0.2 mips cc rejects this. */
22938 struct point {int x, y;};
22939 static struct point const zero = {0,0};
22940 /* AIX XL C 1.02.0.0 rejects this.
22941 It does not let you subtract one const X* pointer from another in
22942 an arm of an if-expression whose if-part is not a constant
22943 expression */
22944 const char *g = "string";
22945 pcpcc = &g + (g ? g-g : 0);
22946 /* HPUX 7.0 cc rejects these. */
22947 ++pcpcc;
22948 ppc = (char**) pcpcc;
22949 pcpcc = (char const *const *) ppc;
22950 { /* SCO 3.2v4 cc rejects this sort of thing. */
22951 char tx;
22952 char *t = &tx;
22953 char const *s = 0 ? (char *) 0 : (char const *) 0;
22954
22955 *t++ = 0;
22956 if (s) return 0;
22957 }
22958 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22959 int x[] = {25, 17};
22960 const int *foo = &x[0];
22961 ++foo;
22962 }
22963 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22964 typedef const int *iptr;
22965 iptr p = 0;
22966 ++p;
22967 }
22968 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22969 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22970 struct s { int j; const int *ap[3]; } bx;
22971 struct s *b = &bx; b->j = 5;
22972 }
22973 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22974 const int foo = 10;
22975 if (!foo) return 0;
22976 }
22977 return !cs[0] && !zero.x;
22978#endif
22979
22980 ;
22981 return 0;
22982}
22983_ACEOF
22984if ac_fn_c_try_compile "$LINENO"; then :
22985 ac_cv_c_const=yes
22986else
22987 ac_cv_c_const=no
22988fi
22989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22990fi
22991{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22992$as_echo "$ac_cv_c_const" >&6; }
22993if test $ac_cv_c_const = no; then
22994
22995$as_echo "#define const /**/" >>confdefs.h
22996
22997fi
22998
22999{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
23000$as_echo_n "checking for inline... " >&6; }
23001if ${ac_cv_c_inline+:} false; then :
23002 $as_echo_n "(cached) " >&6
23003else
23004 ac_cv_c_inline=no
23005for ac_kw in inline __inline__ __inline; do
23006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23007/* end confdefs.h. */
23008#ifndef __cplusplus
23009typedef int foo_t;
23010static $ac_kw foo_t static_foo () {return 0; }
23011$ac_kw foo_t foo () {return 0; }
23012#endif
23013
23014_ACEOF
23015if ac_fn_c_try_compile "$LINENO"; then :
23016 ac_cv_c_inline=$ac_kw
23017fi
23018rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23019 test "$ac_cv_c_inline" != no && break
23020done
23021
23022fi
23023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
23024$as_echo "$ac_cv_c_inline" >&6; }
23025
23026case $ac_cv_c_inline in
23027 inline | yes) ;;
23028 *)
23029 case $ac_cv_c_inline in
23030 no) ac_val=;;
23031 *) ac_val=$ac_cv_c_inline;;
23032 esac
23033 cat >>confdefs.h <<_ACEOF
23034#ifndef __cplusplus
23035#define inline $ac_val
23036#endif
23037_ACEOF
23038 ;;
23039esac
23040
23041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
23042$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
23043if ${ac_cv_c_bigendian+:} false; then :
23044 $as_echo_n "(cached) " >&6
23045else
23046 ac_cv_c_bigendian=unknown
23047 # See if we're dealing with a universal compiler.
23048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23049/* end confdefs.h. */
23050#ifndef __APPLE_CC__
23051 not a universal capable compiler
23052 #endif
23053 typedef int dummy;
23054
23055_ACEOF
23056if ac_fn_c_try_compile "$LINENO"; then :
23057
23058 # Check for potential -arch flags. It is not universal unless
23059 # there are at least two -arch flags with different values.
23060 ac_arch=
23061 ac_prev=
23062 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23063 if test -n "$ac_prev"; then
23064 case $ac_word in
23065 i?86 | x86_64 | ppc | ppc64)
23066 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23067 ac_arch=$ac_word
23068 else
23069 ac_cv_c_bigendian=universal
23070 break
23071 fi
23072 ;;
23073 esac
23074 ac_prev=
23075 elif test "x$ac_word" = "x-arch"; then
23076 ac_prev=arch
23077 fi
23078 done
23079fi
23080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 if test $ac_cv_c_bigendian = unknown; then
23082 # See if sys/param.h defines the BYTE_ORDER macro.
23083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23084/* end confdefs.h. */
23085#include <sys/types.h>
23086 #include <sys/param.h>
23087
23088int
23089main ()
23090{
23091#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23092 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23093 && LITTLE_ENDIAN)
23094 bogus endian macros
23095 #endif
23096
23097 ;
23098 return 0;
23099}
23100_ACEOF
23101if ac_fn_c_try_compile "$LINENO"; then :
23102 # It does; now see whether it defined to BIG_ENDIAN or not.
23103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23104/* end confdefs.h. */
23105#include <sys/types.h>
23106 #include <sys/param.h>
23107
23108int
23109main ()
23110{
23111#if BYTE_ORDER != BIG_ENDIAN
23112 not big endian
23113 #endif
23114
23115 ;
23116 return 0;
23117}
23118_ACEOF
23119if ac_fn_c_try_compile "$LINENO"; then :
23120 ac_cv_c_bigendian=yes
23121else
23122 ac_cv_c_bigendian=no
23123fi
23124rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23125fi
23126rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23127 fi
23128 if test $ac_cv_c_bigendian = unknown; then
23129 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
23130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23131/* end confdefs.h. */
23132#include <limits.h>
23133
23134int
23135main ()
23136{
23137#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23138 bogus endian macros
23139 #endif
23140
23141 ;
23142 return 0;
23143}
23144_ACEOF
23145if ac_fn_c_try_compile "$LINENO"; then :
23146 # It does; now see whether it defined to _BIG_ENDIAN or not.
23147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23148/* end confdefs.h. */
23149#include <limits.h>
23150
23151int
23152main ()
23153{
23154#ifndef _BIG_ENDIAN
23155 not big endian
23156 #endif
23157
23158 ;
23159 return 0;
23160}
23161_ACEOF
23162if ac_fn_c_try_compile "$LINENO"; then :
23163 ac_cv_c_bigendian=yes
23164else
23165 ac_cv_c_bigendian=no
23166fi
23167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23168fi
23169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23170 fi
23171 if test $ac_cv_c_bigendian = unknown; then
23172 # Compile a test program.
23173 if test "$cross_compiling" = yes; then :
23174 # Try to guess by grepping values from an object file.
23175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23176/* end confdefs.h. */
23177short int ascii_mm[] =
23178 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23179 short int ascii_ii[] =
23180 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23181 int use_ascii (int i) {
23182 return ascii_mm[i] + ascii_ii[i];
23183 }
23184 short int ebcdic_ii[] =
23185 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23186 short int ebcdic_mm[] =
23187 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23188 int use_ebcdic (int i) {
23189 return ebcdic_mm[i] + ebcdic_ii[i];
23190 }
23191 extern int foo;
23192
23193int
23194main ()
23195{
23196return use_ascii (foo) == use_ebcdic (foo);
23197 ;
23198 return 0;
23199}
23200_ACEOF
23201if ac_fn_c_try_compile "$LINENO"; then :
23202 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23203 ac_cv_c_bigendian=yes
23204 fi
23205 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23206 if test "$ac_cv_c_bigendian" = unknown; then
23207 ac_cv_c_bigendian=no
23208 else
23209 # finding both strings is unlikely to happen, but who knows?
23210 ac_cv_c_bigendian=unknown
23211 fi
23212 fi
23213fi
23214rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23215else
23216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23217/* end confdefs.h. */
23218$ac_includes_default
23219int
23220main ()
23221{
23222
23223 /* Are we little or big endian? From Harbison&Steele. */
23224 union
23225 {
23226 long int l;
23227 char c[sizeof (long int)];
23228 } u;
23229 u.l = 1;
23230 return u.c[sizeof (long int) - 1] == 1;
23231
23232 ;
23233 return 0;
23234}
23235_ACEOF
23236if ac_fn_c_try_run "$LINENO"; then :
23237 ac_cv_c_bigendian=no
23238else
23239 ac_cv_c_bigendian=yes
23240fi
23241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23242 conftest.$ac_objext conftest.beam conftest.$ac_ext
23243fi
23244
23245 fi
23246fi
23247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
23248$as_echo "$ac_cv_c_bigendian" >&6; }
23249 case $ac_cv_c_bigendian in #(
23250 yes)
23251 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
23252;; #(
23253 no)
23254 ;; #(
23255 universal)
23256
23257$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
23258
23259 ;; #(
23260 *)
23261 as_fn_error $? "unknown endianness
23262 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
23263 esac
23264
23265ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23266if test "x$ac_cv_type_size_t" = xyes; then :
23267
23268else
23269
23270cat >>confdefs.h <<_ACEOF
23271#define size_t unsigned int
23272_ACEOF
23273
23274fi
23275
23276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23277$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23278if ${ac_cv_header_time+:} false; then :
23279 $as_echo_n "(cached) " >&6
23280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283#include <sys/types.h>
23284#include <sys/time.h>
23285#include <time.h>
23286
23287int
23288main ()
23289{
23290if ((struct tm *) 0)
23291return 0;
23292 ;
23293 return 0;
23294}
23295_ACEOF
23296if ac_fn_c_try_compile "$LINENO"; then :
23297 ac_cv_header_time=yes
23298else
23299 ac_cv_header_time=no
23300fi
23301rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23302fi
23303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23304$as_echo "$ac_cv_header_time" >&6; }
23305if test $ac_cv_header_time = yes; then
23306
23307$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23308
23309fi
23310
23311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
23312$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
23313if ${ac_cv_header_sys_wait_h+:} false; then :
23314 $as_echo_n "(cached) " >&6
23315else
23316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23317/* end confdefs.h. */
23318#include <sys/types.h>
23319#include <sys/wait.h>
23320#ifndef WEXITSTATUS
23321# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23322#endif
23323#ifndef WIFEXITED
23324# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23325#endif
23326
23327int
23328main ()
23329{
23330 int s;
23331 wait (&s);
23332 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23333 ;
23334 return 0;
23335}
23336_ACEOF
23337if ac_fn_c_try_compile "$LINENO"; then :
23338 ac_cv_header_sys_wait_h=yes
23339else
23340 ac_cv_header_sys_wait_h=no
23341fi
23342rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23343fi
23344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
23345$as_echo "$ac_cv_header_sys_wait_h" >&6; }
23346if test $ac_cv_header_sys_wait_h = yes; then
23347
23348$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
23349
23350fi
23351
23352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23353$as_echo_n "checking for socklen_t... " >&6; }
23354if ${ac_cv_type_socklen_t+:} false; then :
23355 $as_echo_n "(cached) " >&6
23356else
23357
23358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23359/* end confdefs.h. */
23360#include <sys/types.h>
23361 #include <sys/socket.h>
23362int
23363main ()
23364{
23365socklen_t len = 42; return 0;
23366 ;
23367 return 0;
23368}
23369_ACEOF
23370if ac_fn_c_try_compile "$LINENO"; then :
23371 ac_cv_type_socklen_t=yes
23372else
23373 ac_cv_type_socklen_t=no
23374fi
23375rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23376
23377fi
23378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
23379$as_echo "$ac_cv_type_socklen_t" >&6; }
23380 if test $ac_cv_type_socklen_t != yes; then
23381 $as_echo "#define socklen_t int" >>confdefs.h
23382
23383 fi
23384
23385if test ! -d ./rfb; then
23386 echo "creating subdir ./rfb for rfbint.h"
23387 mkdir ./rfb
23388fi
23389# ------ AC CREATE STDINT H -------------------------------------
23390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint-types...." >&5
23391$as_echo_n "checking for stdint-types....... " >&6; }
23392ac_stdint_h=`echo rfb/rfbint.h`
23393if test "$ac_stdint_h" = "stdint.h" ; then
23394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
23395$as_echo "\"(are you sure you want them in ./stdint.h?)\"" >&6; }
23396elif test "$ac_stdint_h" = "inttypes.h" ; then
23397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
23398$as_echo "\"(are you sure you want them in ./inttypes.h?)\"" >&6; }
23399else
23400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(putting them into $ac_stdint_h)\"" >&5
23401$as_echo "\"(putting them into $ac_stdint_h)\"" >&6; }
23402fi
23403
23404inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \
23405| sed -e 's/,/ /g'`
23406
23407 ac_cv_header_stdint_x="no-file"
23408 ac_cv_header_stdint_o="no-file"
23409 ac_cv_header_stdint_u="no-file"
23410 for i in stdint.h $inttype_headers ; do
23411 unset ac_cv_type_uintptr_t
23412 unset ac_cv_type_uint64_t
23413 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23414"
23415if test "x$ac_cv_type_uintptr_t" = xyes; then :
23416 ac_cv_header_stdint_x=$i
23417else
23418 continue
23419fi
23420
23421 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23422"
23423if test "x$ac_cv_type_uint64_t" = xyes; then :
23424 and64="(uint64_t too)"
23425else
23426 and64=""
23427fi
23428
23429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uintptr_t in $i $and64" >&5
23430$as_echo "... seen our uintptr_t in $i $and64" >&6; }
23431 break;
23432 done
23433 if test "$ac_cv_header_stdint_x" = "no-file" ; then
23434 for i in stdint.h $inttype_headers ; do
23435 unset ac_cv_type_uint32_t
23436 unset ac_cv_type_uint64_t
23437 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23438"
23439if test "x$ac_cv_type_uint32_t" = xyes; then :
23440 ac_cv_header_stdint_o=$i
23441else
23442 continue
23443fi
23444
23445 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23446"
23447if test "x$ac_cv_type_uint64_t" = xyes; then :
23448 and64="(uint64_t too)"
23449else
23450 and64=""
23451fi
23452
23453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uint32_t in $i $and64" >&5
23454$as_echo "... seen our uint32_t in $i $and64" >&6; }
23455 break;
23456 done
23457 if test "$ac_cv_header_stdint_o" = "no-file" ; then
23458 for i in sys/types.h $inttype_headers ; do
23459 unset ac_cv_type_u_int32_t
23460 unset ac_cv_type_u_int64_t
23461 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23462"
23463if test "x$ac_cv_type_u_int32_t" = xyes; then :
23464 ac_cv_header_stdint_u=$i
23465else
23466 continue
23467fi
23468
23469 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23470"
23471if test "x$ac_cv_type_uint64_t" = xyes; then :
23472 and64="(u_int64_t too)"
23473else
23474 and64=""
23475fi
23476
23477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our u_int32_t in $i $and64" >&5
23478$as_echo "... seen our u_int32_t in $i $and64" >&6; }
23479 break;
23480 done
23481 fi
23482 fi
23483
23484# ----------------- DONE inttypes.h checks MAYBE C basic types --------
23485
23486if test "$ac_cv_header_stdint_x" = "no-file" ; then
23487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23488$as_echo_n "checking size of char... " >&6; }
23489if ${ac_cv_sizeof_char+:} false; then :
23490 $as_echo_n "(cached) " >&6
23491else
23492 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23494/* end confdefs.h. */
23495#include "confdefs.h"
23496#include <sys/types.h>
23497
23498
23499int
23500main ()
23501{
23502switch (0) case 0: case (sizeof (char) == $ac_size):;
23503 ;
23504 return 0;
23505}
23506_ACEOF
23507if ac_fn_c_try_compile "$LINENO"; then :
23508 ac_cv_sizeof_char=$ac_size
23509fi
23510rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23511 if test x$ac_cv_sizeof_char != x ; then break; fi
23512done
23513
23514fi
23515
23516if test x$ac_cv_sizeof_char = x ; then
23517 as_fn_error $? "cannot determine a size for char" "$LINENO" 5
23518fi
23519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23520$as_echo "$ac_cv_sizeof_char" >&6; }
23521
23522cat >>confdefs.h <<_ACEOF
23523#define SIZEOF_CHAR $ac_cv_sizeof_char
23524_ACEOF
23525
23526
23527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23528$as_echo_n "checking size of short... " >&6; }
23529if ${ac_cv_sizeof_short+:} false; then :
23530 $as_echo_n "(cached) " >&6
23531else
23532 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23534/* end confdefs.h. */
23535#include "confdefs.h"
23536#include <sys/types.h>
23537
23538
23539int
23540main ()
23541{
23542switch (0) case 0: case (sizeof (short) == $ac_size):;
23543 ;
23544 return 0;
23545}
23546_ACEOF
23547if ac_fn_c_try_compile "$LINENO"; then :
23548 ac_cv_sizeof_short=$ac_size
23549fi
23550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23551 if test x$ac_cv_sizeof_short != x ; then break; fi
23552done
23553
23554fi
23555
23556if test x$ac_cv_sizeof_short = x ; then
23557 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
23558fi
23559{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23560$as_echo "$ac_cv_sizeof_short" >&6; }
23561
23562cat >>confdefs.h <<_ACEOF
23563#define SIZEOF_SHORT $ac_cv_sizeof_short
23564_ACEOF
23565
23566
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23568$as_echo_n "checking size of int... " >&6; }
23569if ${ac_cv_sizeof_int+:} false; then :
23570 $as_echo_n "(cached) " >&6
23571else
23572 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23574/* end confdefs.h. */
23575#include "confdefs.h"
23576#include <sys/types.h>
23577
23578
23579int
23580main ()
23581{
23582switch (0) case 0: case (sizeof (int) == $ac_size):;
23583 ;
23584 return 0;
23585}
23586_ACEOF
23587if ac_fn_c_try_compile "$LINENO"; then :
23588 ac_cv_sizeof_int=$ac_size
23589fi
23590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23591 if test x$ac_cv_sizeof_int != x ; then break; fi
23592done
23593
23594fi
23595
23596if test x$ac_cv_sizeof_int = x ; then
23597 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
23598fi
23599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23600$as_echo "$ac_cv_sizeof_int" >&6; }
23601
23602cat >>confdefs.h <<_ACEOF
23603#define SIZEOF_INT $ac_cv_sizeof_int
23604_ACEOF
23605
23606
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23608$as_echo_n "checking size of long... " >&6; }
23609if ${ac_cv_sizeof_long+:} false; then :
23610 $as_echo_n "(cached) " >&6
23611else
23612 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23614/* end confdefs.h. */
23615#include "confdefs.h"
23616#include <sys/types.h>
23617
23618
23619int
23620main ()
23621{
23622switch (0) case 0: case (sizeof (long) == $ac_size):;
23623 ;
23624 return 0;
23625}
23626_ACEOF
23627if ac_fn_c_try_compile "$LINENO"; then :
23628 ac_cv_sizeof_long=$ac_size
23629fi
23630rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23631 if test x$ac_cv_sizeof_long != x ; then break; fi
23632done
23633
23634fi
23635
23636if test x$ac_cv_sizeof_long = x ; then
23637 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
23638fi
23639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23640$as_echo "$ac_cv_sizeof_long" >&6; }
23641
23642cat >>confdefs.h <<_ACEOF
23643#define SIZEOF_LONG $ac_cv_sizeof_long
23644_ACEOF
23645
23646
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23648$as_echo_n "checking size of void*... " >&6; }
23649if ${ac_cv_sizeof_voidp+:} false; then :
23650 $as_echo_n "(cached) " >&6
23651else
23652 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23654/* end confdefs.h. */
23655#include "confdefs.h"
23656#include <sys/types.h>
23657
23658
23659int
23660main ()
23661{
23662switch (0) case 0: case (sizeof (void*) == $ac_size):;
23663 ;
23664 return 0;
23665}
23666_ACEOF
23667if ac_fn_c_try_compile "$LINENO"; then :
23668 ac_cv_sizeof_voidp=$ac_size
23669fi
23670rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23671 if test x$ac_cv_sizeof_voidp != x ; then break; fi
23672done
23673
23674fi
23675
23676if test x$ac_cv_sizeof_voidp = x ; then
23677 as_fn_error $? "cannot determine a size for void*" "$LINENO" 5
23678fi
23679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23680$as_echo "$ac_cv_sizeof_voidp" >&6; }
23681
23682cat >>confdefs.h <<_ACEOF
23683#define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23684_ACEOF
23685
23686
23687 ac_cv_header_stdint_test="yes"
23688else
23689 ac_cv_header_stdint_test="no"
23690fi
23691
23692# ----------------- DONE inttypes.h checks START header -------------
23693_ac_stdint_h=`$as_echo "_$ac_stdint_h" | $as_tr_cpp`
23694{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
23695$as_echo "creating $ac_stdint_h : $_ac_stdint_h" >&6; }
23696echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
23697echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
23698echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
23699echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
23700if test "$GCC" = "yes" ; then
23701 echo "/* generated using a gnu compiler version" `$CC --version` "*/" \
23702 >>$ac_stdint_h
23703else
23704 echo "/* generated using $CC */" >>$ac_stdint_h
23705fi
23706echo "" >>$ac_stdint_h
23707
23708if test "$ac_cv_header_stdint_x" != "no-file" ; then
23709 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23710elif test "$ac_cv_header_stdint_o" != "no-file" ; then
23711 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23712elif test "$ac_cv_header_stdint_u" != "no-file" ; then
23713 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23714else
23715 ac_cv_header_stdint="stddef.h"
23716fi
23717
23718# ----------------- See if int_least and int_fast types are present
23719unset ac_cv_type_int_least32_t
23720unset ac_cv_type_int_fast32_t
23721ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23722"
23723if test "x$ac_cv_type_int_least32_t" = xyes; then :
23724
23725fi
23726
23727ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23728"
23729if test "x$ac_cv_type_int_fast32_t" = xyes; then :
23730
23731fi
23732
23733
23734if test "$ac_cv_header_stdint" != "stddef.h" ; then
23735if test "$ac_cv_header_stdint" != "stdint.h" ; then
23736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include stddef.h" >&5
23737$as_echo "..adding include stddef.h" >&6; }
23738 echo "#include <stddef.h>" >>$ac_stdint_h
23739fi ; fi
23740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include $ac_cv_header_stdint" >&5
23741$as_echo "..adding include $ac_cv_header_stdint" >&6; }
23742 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
23743echo "" >>$ac_stdint_h
23744
23745# ----------------- DONE header START basic int types -------------
23746if test "$ac_cv_header_stdint_x" = "no-file" ; then
23747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... need to look at C basic types" >&5
23748$as_echo "... need to look at C basic types" >&6; }
23749else
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good stdint.h inttypes" >&5
23751$as_echo "... seen good stdint.h inttypes" >&6; }
23752fi
23753
23754if test "$ac_cv_header_stdint_u" != "no-file" ; then
23755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen bsd/sysv typedefs" >&5
23756$as_echo "... seen bsd/sysv typedefs" >&6; }
23757 cat >>$ac_stdint_h <<EOF
23758
23759/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23760typedef u_int8_t uint8_t;
23761typedef u_int16_t uint16_t;
23762typedef u_int32_t uint32_t;
23763EOF
23764 cat >>$ac_stdint_h <<EOF
23765
23766/* glibc compatibility */
23767#ifndef __int8_t_defined
23768#define __int8_t_defined
23769#endif
23770EOF
23771fi
23772
23773ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short"
23774ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int"
23775ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long"
23776if test "$ac_cv_header_stdint" = "stddef.h" ; then
23777# we must guess all the basic types. Apart from byte-adressable system,
23778# there a few 32-bit-only dsp-systems. nibble-addressable systems are way off.
23779 cat >>$ac_stdint_h <<EOF
23780/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
23781EOF
23782 t="typedefs for a"
23783 case "$ac_cv_sizeof_X" in
23784 1:2:2:2:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 16-bit system" >&5
23785$as_echo "..adding $t normal 16-bit system" >&6; }
23786 cat >>$ac_stdint_h <<EOF
23787/* a normal 16-bit system */
23788typedef unsigned char uint8_t;
23789typedef unsigned short uint16_t;
23790typedef unsigned long uint32_t;
23791#ifndef __int8_t_defined
23792#define __int8_t_defined
23793typedef char int8_t;
23794typedef short int16_t;
23795typedef long int32_t;
23796#endif
23797EOF
23798;;
23799 1:2:2:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system derived from a 16-bit" >&5
23800$as_echo "..adding $t 32-bit system derived from a 16-bit" >&6; }
23801 cat >>$ac_stdint_h <<EOF
23802/* a 32-bit system derived from a 16-bit */
23803typedef unsigned char uint8_t;
23804typedef unsigned short uint16_t;
23805typedef unsigned int uint32_t;
23806#ifndef __int8_t_defined
23807#define __int8_t_defined
23808typedef char int8_t;
23809typedef short int16_t;
23810typedef int int32_t;
23811#endif
23812EOF
23813;;
23814 1:2:4:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 32-bit system" >&5
23815$as_echo "..adding $t normal 32-bit system" >&6; }
23816 cat >>$ac_stdint_h <<EOF
23817/* a normal 32-bit system */
23818typedef unsigned char uint8_t;
23819typedef unsigned short uint16_t;
23820typedef unsigned int uint32_t;
23821#ifndef __int8_t_defined
23822#define __int8_t_defined
23823typedef char int8_t;
23824typedef short int16_t;
23825typedef int int32_t;
23826#endif
23827EOF
23828;;
23829 1:2:4:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system prepared for 64-bit" >&5
23830$as_echo "..adding $t 32-bit system prepared for 64-bit" >&6; }
23831 cat >>$ac_stdint_h <<EOF
23832
23833/* a 32-bit system prepared for 64-bit */
23834typedef unsigned char uint8_t;
23835typedef unsigned short uint16_t;
23836typedef unsigned int uint32_t;
23837#ifndef __int8_t_defined
23838#define __int8_t_defined
23839typedef char int8_t;
23840typedef short int16_t;
23841typedef int int32_t;
23842#endif
23843EOF
23844;;
23845 1:2:4:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 64-bit system" >&5
23846$as_echo "..adding $t normal 64-bit system" >&6; }
23847 cat >>$ac_stdint_h <<EOF
23848
23849/* a normal 64-bit system */
23850typedef unsigned char uint8_t;
23851typedef unsigned short uint16_t;
23852typedef unsigned int uint32_t;
23853#ifndef __int8_t_defined
23854#define __int8_t_defined
23855typedef char int8_t;
23856typedef short int16_t;
23857typedef int int32_t;
23858#endif
23859EOF
23860;;
23861 1:2:4:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 64-bit system derived from a 32-bit" >&5
23862$as_echo "..adding $t 64-bit system derived from a 32-bit" >&6; }
23863 cat >>$ac_stdint_h <<EOF
23864
23865/* a 64-bit system derived from a 32-bit system */
23866typedef unsigned char uint8_t;
23867typedef unsigned short uint16_t;
23868typedef unsigned int uint32_t;
23869#ifndef __int8_t_defined
23870#define __int8_t_defined
23871typedef char int8_t;
23872typedef short int16_t;
23873typedef int int32_t;
23874#endif
23875EOF
23876;;
23877 *)
23878 as_fn_error $? " $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" "$LINENO" 5
23879 exit 1
23880;;
23881 esac
23882fi
23883
23884# ------------- DONE basic int types START int64_t types ------------
23885if test "$ac_cv_type_uint64_t" = "yes"
23886then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good uint64_t" >&5
23887$as_echo "... seen good uint64_t" >&6; }
23888 cat >>$ac_stdint_h <<EOF
23889
23890/* system headers have good uint64_t */
23891#ifndef _HAVE_UINT64_T
23892#define _HAVE_UINT64_T
23893#endif
23894EOF
23895
23896elif test "$ac_cv_type_u_int64_t" = "yes"
23897then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef u_int64_t uint64_t" >&5
23898$as_echo "..adding typedef u_int64_t uint64_t" >&6; }
23899 cat >>$ac_stdint_h <<EOF
23900
23901/* system headers have an u_int64_t */
23902#ifndef _HAVE_UINT64_T
23903#define _HAVE_UINT64_T
23904typedef u_int64_t uint64_t;
23905#endif
23906EOF
23907else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic uint64_t runtime checks" >&5
23908$as_echo "..adding generic uint64_t runtime checks" >&6; }
23909 cat >>$ac_stdint_h <<EOF
23910
23911/* -------------------- 64 BIT GENERIC SECTION -------------------- */
23912/* here are some common heuristics using compiler runtime specifics */
23913#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
23914
23915#ifndef _HAVE_UINT64_T
23916#define _HAVE_UINT64_T
23917typedef long long int64_t;
23918typedef unsigned long long uint64_t;
23919#endif
23920
23921#elif !defined __STRICT_ANSI__
23922#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23923
23924#ifndef _HAVE_UINT64_T
23925#define _HAVE_UINT64_T
23926typedef __int64 int64_t;
23927typedef unsigned __int64 uint64_t;
23928#endif
23929
23930#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23931
23932#if !defined _NO_LONGLONG
23933#ifndef _HAVE_UINT64_T
23934#define _HAVE_UINT64_T
23935typedef long long int64_t;
23936typedef unsigned long long uint64_t;
23937#endif
23938#endif
23939
23940#elif defined __alpha || (defined __mips && defined _ABIN32)
23941
23942#if !defined _NO_LONGLONG
23943#ifndef _HAVE_UINT64_T
23944#define _HAVE_UINT64_T
23945typedef long int64_t;
23946typedef unsigned long uint64_t;
23947#endif
23948#endif
23949 /* compiler/cpu type ... or just ISO C99 */
23950#endif
23951#endif
23952EOF
23953
23954# plus a default 64-bit for systems that are likely to be 64-bit ready
23955 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
23956 1:2:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23957$as_echo "..adding uint64_t default" >&6; }
23958cat >>$ac_stdint_h <<EOF
23959/* DEFAULT: */
23960/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
23961#ifndef _HAVE_UINT64_T
23962#define _HAVE_UINT64_T
23963typedef long int64_t;
23964typedef unsigned long uint64_t;
23965#endif
23966EOF
23967;;
23968 1:2:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23969$as_echo "..adding uint64_t default" >&6; }
23970cat >>$ac_stdint_h <<EOF
23971/* DEFAULT: */
23972/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
23973#ifndef _HAVE_UINT64_T
23974#define _HAVE_UINT64_T
23975typedef long int64_t;
23976typedef unsigned long uint64_t;
23977#endif
23978EOF
23979;;
23980 1:2:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23981$as_echo "..adding uint64_t default" >&6; }
23982cat >>$ac_stdint_h <<EOF
23983/* DEFAULT: */
23984/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
23985#ifndef _HAVE_UINT64_T
23986#define _HAVE_UINT64_T
23987typedef long long int64_t;
23988typedef unsigned long long uint64_t;
23989#endif
23990EOF
23991;;
23992 *)
23993cat >>$ac_stdint_h <<EOF
23994/* NOTE: */
23995/* the configure-checks for the basic types did not make us believe */
23996/* that we could add a fallback to a 'long long' typedef to int64_t */
23997EOF
23998 esac
23999fi
24000
24001# ------------- DONE int64_t types START intptr types ------------
24002if test "$ac_cv_header_stdint_x" = "no-file" ; then
24003 cat >>$ac_stdint_h <<EOF
24004
24005/* -------------------------- INPTR SECTION --------------------------- */
24006EOF
24007 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
24008 1:2:2)
24009 a="int16_t" ; cat >>$ac_stdint_h <<EOF
24010/* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */
24011
24012typedef uint16_t uintptr_t;
24013typedef int16_t intptr_t;
24014EOF
24015;;
24016 1:2:4)
24017 a="int32_t" ; cat >>$ac_stdint_h <<EOF
24018/* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */
24019
24020typedef uint32_t uintptr_t;
24021typedef int32_t intptr_t;
24022EOF
24023;;
24024 1:2:8)
24025 a="int64_t" ; cat >>$ac_stdint_h <<EOF
24026/* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */
24027
24028typedef uint64_t uintptr_t;
24029typedef int64_t intptr_t;
24030EOF
24031;;
24032 *)
24033 a="long" ; cat >>$ac_stdint_h <<EOF
24034/* we tested sizeof(void*) but got no guess, hence we declare it as if long */
24035
24036typedef unsigned long uintptr_t;
24037typedef long intptr_t;
24038EOF
24039;;
24040 esac
24041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef $a intptr_t" >&5
24042$as_echo "..adding typedef $a intptr_t" >&6; }
24043fi
24044
24045# ------------- DONE intptr types START int_least types ------------
24046if test "$ac_cv_type_int_least32_t" = "no"; then
24047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_least-types" >&5
24048$as_echo "..adding generic int_least-types" >&6; }
24049 cat >>$ac_stdint_h <<EOF
24050
24051/* --------------GENERIC INT_LEAST ------------------ */
24052
24053typedef int8_t int_least8_t;
24054typedef int16_t int_least16_t;
24055typedef int32_t int_least32_t;
24056#ifdef _HAVE_INT64_T
24057typedef int64_t int_least64_t;
24058#endif
24059
24060typedef uint8_t uint_least8_t;
24061typedef uint16_t uint_least16_t;
24062typedef uint32_t uint_least32_t;
24063#ifdef _HAVE_INT64_T
24064typedef uint64_t uint_least64_t;
24065#endif
24066EOF
24067fi
24068
24069# ------------- DONE intptr types START int_least types ------------
24070if test "$ac_cv_type_int_fast32_t" = "no"; then
24071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_fast-types" >&5
24072$as_echo "..adding generic int_fast-types" >&6; }
24073 cat >>$ac_stdint_h <<EOF
24074
24075/* --------------GENERIC INT_FAST ------------------ */
24076
24077typedef int8_t int_fast8_t;
24078typedef int32_t int_fast16_t;
24079typedef int32_t int_fast32_t;
24080#ifdef _HAVE_INT64_T
24081typedef int64_t int_fast64_t;
24082#endif
24083
24084typedef uint8_t uint_fast8_t;
24085typedef uint32_t uint_fast16_t;
24086typedef uint32_t uint_fast32_t;
24087#ifdef _HAVE_INT64_T
24088typedef uint64_t uint_fast64_t;
24089#endif
24090EOF
24091fi
24092
24093if test "$ac_cv_header_stdint_x" = "no-file" ; then
24094 cat >>$ac_stdint_h <<EOF
24095
24096#ifdef _HAVE_INT64_T
24097typedef int64_t intmax_t;
24098typedef uint64_t uintmax_t;
24099#else
24100typedef long int intmax_t;
24101typedef unsigned long uintmax_t;
24102#endif
24103EOF
24104fi
24105
24106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ... DONE $ac_stdint_h" >&5
24107$as_echo "... DONE $ac_stdint_h" >&6; }
24108 cat >>$ac_stdint_h <<EOF
24109
24110 /* once */
24111#endif
24112#endif
24113EOF
24114
24115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
24116$as_echo_n "checking for in_addr_t... " >&6; }
24117if ${vnc_cv_inaddrt+:} false; then :
24118 $as_echo_n "(cached) " >&6
24119else
24120
24121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24122/* end confdefs.h. */
24123#include <sys/types.h>
24124#include <netinet/in.h>
24125int
24126main ()
24127{
24128in_addr_t foo; return 0;
24129 ;
24130 return 0;
24131}
24132_ACEOF
24133if ac_fn_c_try_compile "$LINENO"; then :
24134 inaddrt=yes
24135else
24136 inaddrt=no
24137fi
24138rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext,
24139
24140fi
24141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vnc_cv_inaddrt" >&5
24142$as_echo "$vnc_cv_inaddrt" >&6; }
24143
24144if test $inaddrt = no ; then
24145 $as_echo "#define NEED_INADDR_T 1" >>confdefs.h
24146
24147fi
24148# Checks for library functions.
24149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
24150$as_echo_n "checking for working memcmp... " >&6; }
24151if ${ac_cv_func_memcmp_working+:} false; then :
24152 $as_echo_n "(cached) " >&6
24153else
24154 if test "$cross_compiling" = yes; then :
24155 ac_cv_func_memcmp_working=no
24156else
24157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24158/* end confdefs.h. */
24159$ac_includes_default
24160int
24161main ()
24162{
24163
24164 /* Some versions of memcmp are not 8-bit clean. */
24165 char c0 = '\100', c1 = '\200', c2 = '\201';
24166 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24167 return 1;
24168
24169 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24170 or more and with at least one buffer not starting on a 4-byte boundary.
24171 William Lewis provided this test program. */
24172 {
24173 char foo[21];
24174 char bar[21];
24175 int i;
24176 for (i = 0; i < 4; i++)
24177 {
24178 char *a = foo + i;
24179 char *b = bar + i;
24180 strcpy (a, "--------01111111");
24181 strcpy (b, "--------10000000");
24182 if (memcmp (a, b, 16) >= 0)
24183 return 1;
24184 }
24185 return 0;
24186 }
24187
24188 ;
24189 return 0;
24190}
24191_ACEOF
24192if ac_fn_c_try_run "$LINENO"; then :
24193 ac_cv_func_memcmp_working=yes
24194else
24195 ac_cv_func_memcmp_working=no
24196fi
24197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24198 conftest.$ac_objext conftest.beam conftest.$ac_ext
24199fi
24200
24201fi
24202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
24203$as_echo "$ac_cv_func_memcmp_working" >&6; }
24204test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24205 *" memcmp.$ac_objext "* ) ;;
24206 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24207 ;;
24208esac
24209
24210
24211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
24212$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
24213if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
24214 $as_echo_n "(cached) " >&6
24215else
24216 rm -f conftest.sym conftest.file
24217echo >conftest.file
24218if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
24219 if test "$cross_compiling" = yes; then :
24220 ac_cv_func_lstat_dereferences_slashed_symlink=no
24221else
24222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24223/* end confdefs.h. */
24224$ac_includes_default
24225int
24226main ()
24227{
24228struct stat sbuf;
24229 /* Linux will dereference the symlink and fail, as required by POSIX.
24230 That is better in the sense that it means we will not
24231 have to compile and use the lstat wrapper. */
24232 return lstat ("conftest.sym/", &sbuf) == 0;
24233 ;
24234 return 0;
24235}
24236_ACEOF
24237if ac_fn_c_try_run "$LINENO"; then :
24238 ac_cv_func_lstat_dereferences_slashed_symlink=yes
24239else
24240 ac_cv_func_lstat_dereferences_slashed_symlink=no
24241fi
24242rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24243 conftest.$ac_objext conftest.beam conftest.$ac_ext
24244fi
24245
24246else
24247 # If the `ln -s' command failed, then we probably don't even
24248 # have an lstat function.
24249 ac_cv_func_lstat_dereferences_slashed_symlink=no
24250fi
24251rm -f conftest.sym conftest.file
24252
24253fi
24254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
24255$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
24256
24257test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
24258
24259cat >>confdefs.h <<_ACEOF
24260#define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
24261_ACEOF
24262
24263
24264if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
24265 case " $LIBOBJS " in
24266 *" lstat.$ac_objext "* ) ;;
24267 *) LIBOBJS="$LIBOBJS lstat.$ac_objext"
24268 ;;
24269esac
24270
24271fi
24272
24273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
24274$as_echo_n "checking whether stat accepts an empty string... " >&6; }
24275if ${ac_cv_func_stat_empty_string_bug+:} false; then :
24276 $as_echo_n "(cached) " >&6
24277else
24278 if test "$cross_compiling" = yes; then :
24279 ac_cv_func_stat_empty_string_bug=yes
24280else
24281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24282/* end confdefs.h. */
24283$ac_includes_default
24284int
24285main ()
24286{
24287struct stat sbuf;
24288 return stat ("", &sbuf) == 0;
24289 ;
24290 return 0;
24291}
24292_ACEOF
24293if ac_fn_c_try_run "$LINENO"; then :
24294 ac_cv_func_stat_empty_string_bug=no
24295else
24296 ac_cv_func_stat_empty_string_bug=yes
24297fi
24298rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24299 conftest.$ac_objext conftest.beam conftest.$ac_ext
24300fi
24301
24302fi
24303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
24304$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
24305if test $ac_cv_func_stat_empty_string_bug = yes; then
24306 case " $LIBOBJS " in
24307 *" stat.$ac_objext "* ) ;;
24308 *) LIBOBJS="$LIBOBJS stat.$ac_objext"
24309 ;;
24310esac
24311
24312
24313cat >>confdefs.h <<_ACEOF
24314#define HAVE_STAT_EMPTY_STRING_BUG 1
24315_ACEOF
24316
24317fi
24318
24319for ac_func in strftime
24320do :
24321 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
24322if test "x$ac_cv_func_strftime" = xyes; then :
24323 cat >>confdefs.h <<_ACEOF
24324#define HAVE_STRFTIME 1
24325_ACEOF
24326
24327else
24328 # strftime is in -lintl on SCO UNIX.
24329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
24330$as_echo_n "checking for strftime in -lintl... " >&6; }
24331if ${ac_cv_lib_intl_strftime+:} false; then :
24332 $as_echo_n "(cached) " >&6
24333else
24334 ac_check_lib_save_LIBS=$LIBS
24335LIBS="-lintl $LIBS"
24336cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24337/* end confdefs.h. */
24338
24339/* Override any GCC internal prototype to avoid an error.
24340 Use char because int might match the return type of a GCC
24341 builtin and then its argument prototype would still apply. */
24342#ifdef __cplusplus
24343extern "C"
24344#endif
24345char strftime ();
24346int
24347main ()
24348{
24349return strftime ();
24350 ;
24351 return 0;
24352}
24353_ACEOF
24354if ac_fn_c_try_link "$LINENO"; then :
24355 ac_cv_lib_intl_strftime=yes
24356else
24357 ac_cv_lib_intl_strftime=no
24358fi
24359rm -f core conftest.err conftest.$ac_objext \
24360 conftest$ac_exeext conftest.$ac_ext
24361LIBS=$ac_check_lib_save_LIBS
24362fi
24363{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
24364$as_echo "$ac_cv_lib_intl_strftime" >&6; }
24365if test "x$ac_cv_lib_intl_strftime" = xyes; then :
24366 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h
24367
24368LIBS="-lintl $LIBS"
24369fi
24370
24371fi
24372done
24373
24374for ac_func in vprintf
24375do :
24376 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24377if test "x$ac_cv_func_vprintf" = xyes; then :
24378 cat >>confdefs.h <<_ACEOF
24379#define HAVE_VPRINTF 1
24380_ACEOF
24381
24382ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24383if test "x$ac_cv_func__doprnt" = xyes; then :
24384
24385$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
24386
24387fi
24388
24389fi
24390done
24391
24392
24393ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24394if test "x$ac_cv_type_pid_t" = xyes; then :
24395
24396else
24397
24398cat >>confdefs.h <<_ACEOF
24399#define pid_t int
24400_ACEOF
24401
24402fi
24403
24404for ac_header in vfork.h
24405do :
24406 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24407if test "x$ac_cv_header_vfork_h" = xyes; then :
24408 cat >>confdefs.h <<_ACEOF
24409#define HAVE_VFORK_H 1
24410_ACEOF
24411
24412fi
24413
24414done
24415
24416for ac_func in fork vfork
24417do :
24418 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24419ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24420if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24421 cat >>confdefs.h <<_ACEOF
24422#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24423_ACEOF
24424
24425fi
24426done
24427
24428if test "x$ac_cv_func_fork" = xyes; then
24429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24430$as_echo_n "checking for working fork... " >&6; }
24431if ${ac_cv_func_fork_works+:} false; then :
24432 $as_echo_n "(cached) " >&6
24433else
24434 if test "$cross_compiling" = yes; then :
24435 ac_cv_func_fork_works=cross
24436else
24437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24438/* end confdefs.h. */
24439$ac_includes_default
24440int
24441main ()
24442{
24443
24444 /* By Ruediger Kuhlmann. */
24445 return fork () < 0;
24446
24447 ;
24448 return 0;
24449}
24450_ACEOF
24451if ac_fn_c_try_run "$LINENO"; then :
24452 ac_cv_func_fork_works=yes
24453else
24454 ac_cv_func_fork_works=no
24455fi
24456rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24457 conftest.$ac_objext conftest.beam conftest.$ac_ext
24458fi
24459
24460fi
24461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24462$as_echo "$ac_cv_func_fork_works" >&6; }
24463
24464else
24465 ac_cv_func_fork_works=$ac_cv_func_fork
24466fi
24467if test "x$ac_cv_func_fork_works" = xcross; then
24468 case $host in
24469 *-*-amigaos* | *-*-msdosdjgpp*)
24470 # Override, as these systems have only a dummy fork() stub
24471 ac_cv_func_fork_works=no
24472 ;;
24473 *)
24474 ac_cv_func_fork_works=yes
24475 ;;
24476 esac
24477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24478$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24479fi
24480ac_cv_func_vfork_works=$ac_cv_func_vfork
24481if test "x$ac_cv_func_vfork" = xyes; then
24482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24483$as_echo_n "checking for working vfork... " >&6; }
24484if ${ac_cv_func_vfork_works+:} false; then :
24485 $as_echo_n "(cached) " >&6
24486else
24487 if test "$cross_compiling" = yes; then :
24488 ac_cv_func_vfork_works=cross
24489else
24490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24491/* end confdefs.h. */
24492/* Thanks to Paul Eggert for this test. */
24493$ac_includes_default
24494#include <sys/wait.h>
24495#ifdef HAVE_VFORK_H
24496# include <vfork.h>
24497#endif
24498/* On some sparc systems, changes by the child to local and incoming
24499 argument registers are propagated back to the parent. The compiler
24500 is told about this with #include <vfork.h>, but some compilers
24501 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24502 static variable whose address is put into a register that is
24503 clobbered by the vfork. */
24504static void
24505#ifdef __cplusplus
24506sparc_address_test (int arg)
24507# else
24508sparc_address_test (arg) int arg;
24509#endif
24510{
24511 static pid_t child;
24512 if (!child) {
24513 child = vfork ();
24514 if (child < 0) {
24515 perror ("vfork");
24516 _exit(2);
24517 }
24518 if (!child) {
24519 arg = getpid();
24520 write(-1, "", 0);
24521 _exit (arg);
24522 }
24523 }
24524}
24525
24526int
24527main ()
24528{
24529 pid_t parent = getpid ();
24530 pid_t child;
24531
24532 sparc_address_test (0);
24533
24534 child = vfork ();
24535
24536 if (child == 0) {
24537 /* Here is another test for sparc vfork register problems. This
24538 test uses lots of local variables, at least as many local
24539 variables as main has allocated so far including compiler
24540 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24541 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24542 reuse the register of parent for one of the local variables,
24543 since it will think that parent can't possibly be used any more
24544 in this routine. Assigning to the local variable will thus
24545 munge parent in the parent process. */
24546 pid_t
24547 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24548 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24549 /* Convince the compiler that p..p7 are live; otherwise, it might
24550 use the same hardware register for all 8 local variables. */
24551 if (p != p1 || p != p2 || p != p3 || p != p4
24552 || p != p5 || p != p6 || p != p7)
24553 _exit(1);
24554
24555 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24556 from child file descriptors. If the child closes a descriptor
24557 before it execs or exits, this munges the parent's descriptor
24558 as well. Test for this by closing stdout in the child. */
24559 _exit(close(fileno(stdout)) != 0);
24560 } else {
24561 int status;
24562 struct stat st;
24563
24564 while (wait(&status) != child)
24565 ;
24566 return (
24567 /* Was there some problem with vforking? */
24568 child < 0
24569
24570 /* Did the child fail? (This shouldn't happen.) */
24571 || status
24572
24573 /* Did the vfork/compiler bug occur? */
24574 || parent != getpid()
24575
24576 /* Did the file descriptor bug occur? */
24577 || fstat(fileno(stdout), &st) != 0
24578 );
24579 }
24580}
24581_ACEOF
24582if ac_fn_c_try_run "$LINENO"; then :
24583 ac_cv_func_vfork_works=yes
24584else
24585 ac_cv_func_vfork_works=no
24586fi
24587rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24588 conftest.$ac_objext conftest.beam conftest.$ac_ext
24589fi
24590
24591fi
24592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24593$as_echo "$ac_cv_func_vfork_works" >&6; }
24594
24595fi;
24596if test "x$ac_cv_func_fork_works" = xcross; then
24597 ac_cv_func_vfork_works=$ac_cv_func_vfork
24598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24599$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24600fi
24601
24602if test "x$ac_cv_func_vfork_works" = xyes; then
24603
24604$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
24605
24606else
24607
24608$as_echo "#define vfork fork" >>confdefs.h
24609
24610fi
24611if test "x$ac_cv_func_fork_works" = xyes; then
24612
24613$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
24614
24615fi
24616
24617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24618$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24619if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24620 $as_echo_n "(cached) " >&6
24621else
24622 ac_check_lib_save_LIBS=$LIBS
24623LIBS="-lnsl $LIBS"
24624cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24625/* end confdefs.h. */
24626
24627/* Override any GCC internal prototype to avoid an error.
24628 Use char because int might match the return type of a GCC
24629 builtin and then its argument prototype would still apply. */
24630#ifdef __cplusplus
24631extern "C"
24632#endif
24633char gethostbyname ();
24634int
24635main ()
24636{
24637return gethostbyname ();
24638 ;
24639 return 0;
24640}
24641_ACEOF
24642if ac_fn_c_try_link "$LINENO"; then :
24643 ac_cv_lib_nsl_gethostbyname=yes
24644else
24645 ac_cv_lib_nsl_gethostbyname=no
24646fi
24647rm -f core conftest.err conftest.$ac_objext \
24648 conftest$ac_exeext conftest.$ac_ext
24649LIBS=$ac_check_lib_save_LIBS
24650fi
24651{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24652$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24653if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24654 cat >>confdefs.h <<_ACEOF
24655#define HAVE_LIBNSL 1
24656_ACEOF
24657
24658 LIBS="-lnsl $LIBS"
24659
24660fi
24661
24662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24663$as_echo_n "checking for socket in -lsocket... " >&6; }
24664if ${ac_cv_lib_socket_socket+:} false; then :
24665 $as_echo_n "(cached) " >&6
24666else
24667 ac_check_lib_save_LIBS=$LIBS
24668LIBS="-lsocket $LIBS"
24669cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24670/* end confdefs.h. */
24671
24672/* Override any GCC internal prototype to avoid an error.
24673 Use char because int might match the return type of a GCC
24674 builtin and then its argument prototype would still apply. */
24675#ifdef __cplusplus
24676extern "C"
24677#endif
24678char socket ();
24679int
24680main ()
24681{
24682return socket ();
24683 ;
24684 return 0;
24685}
24686_ACEOF
24687if ac_fn_c_try_link "$LINENO"; then :
24688 ac_cv_lib_socket_socket=yes
24689else
24690 ac_cv_lib_socket_socket=no
24691fi
24692rm -f core conftest.err conftest.$ac_objext \
24693 conftest$ac_exeext conftest.$ac_ext
24694LIBS=$ac_check_lib_save_LIBS
24695fi
24696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24697$as_echo "$ac_cv_lib_socket_socket" >&6; }
24698if test "x$ac_cv_lib_socket_socket" = xyes; then :
24699 cat >>confdefs.h <<_ACEOF
24700#define HAVE_LIBSOCKET 1
24701_ACEOF
24702
24703 LIBS="-lsocket $LIBS"
24704
24705fi
24706
24707
24708uname_s=`(uname -s) 2>/dev/null`
24709if test "x$uname_s" = "xHP-UX"; then
24710 # need -lsec for getspnam()
24711 LDFLAGS="$LDFLAGS -lsec"
24712fi
24713
24714for ac_func in ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr
24715do :
24716 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24717ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24718if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24719 cat >>confdefs.h <<_ACEOF
24720#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24721_ACEOF
24722
24723fi
24724done
24725
24726# x11vnc only:
24727if test "$build_x11vnc" = "yes"; then
24728 for ac_func in setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid initgroups waitpid setutxent grantpt shmat
24729do :
24730 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24731ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24732if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24733 cat >>confdefs.h <<_ACEOF
24734#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24735_ACEOF
24736
24737fi
24738done
24739
24740fi
24741
24742# check, if shmget is in cygipc.a
24743{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmget in -lcygipc" >&5
24744$as_echo_n "checking for shmget in -lcygipc... " >&6; }
24745if ${ac_cv_lib_cygipc_shmget+:} false; then :
24746 $as_echo_n "(cached) " >&6
24747else
24748 ac_check_lib_save_LIBS=$LIBS
24749LIBS="-lcygipc $LIBS"
24750cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24751/* end confdefs.h. */
24752
24753/* Override any GCC internal prototype to avoid an error.
24754 Use char because int might match the return type of a GCC
24755 builtin and then its argument prototype would still apply. */
24756#ifdef __cplusplus
24757extern "C"
24758#endif
24759char shmget ();
24760int
24761main ()
24762{
24763return shmget ();
24764 ;
24765 return 0;
24766}
24767_ACEOF
24768if ac_fn_c_try_link "$LINENO"; then :
24769 ac_cv_lib_cygipc_shmget=yes
24770else
24771 ac_cv_lib_cygipc_shmget=no
24772fi
24773rm -f core conftest.err conftest.$ac_objext \
24774 conftest$ac_exeext conftest.$ac_ext
24775LIBS=$ac_check_lib_save_LIBS
24776fi
24777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygipc_shmget" >&5
24778$as_echo "$ac_cv_lib_cygipc_shmget" >&6; }
24779if test "x$ac_cv_lib_cygipc_shmget" = xyes; then :
24780 cat >>confdefs.h <<_ACEOF
24781#define HAVE_LIBCYGIPC 1
24782_ACEOF
24783
24784 LIBS="-lcygipc $LIBS"
24785
24786fi
24787
24788 if test "$HAVE_CYGIPC" = "true"; then
24789 CYGIPC_TRUE=
24790 CYGIPC_FALSE='#'
24791else
24792 CYGIPC_TRUE='#'
24793 CYGIPC_FALSE=
24794fi
24795
24796
24797# Check if /usr/include/linux exists, if so, define LINUX
24798 if test -d /usr/include/linux; then
24799 LINUX_TRUE=
24800 LINUX_FALSE='#'
24801else
24802 LINUX_TRUE='#'
24803 LINUX_FALSE=
24804fi
24805
24806
24807# Check for OS X specific header
24808ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
24809if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
24810 HAVE_OSX="true"
24811fi
24812
24813
24814 if test "$HAVE_OSX" = "true"; then
24815 OSX_TRUE=
24816 OSX_FALSE='#'
24817else
24818 OSX_TRUE='#'
24819 OSX_FALSE=
24820fi
24821
24822
24823# Check for Android specific header
24824ac_fn_c_check_header_mongrel "$LINENO" "android/api-level.h" "ac_cv_header_android_api_level_h" "$ac_includes_default"
24825if test "x$ac_cv_header_android_api_level_h" = xyes; then :
24826 HAVE_ANDROID="true"
24827fi
24828
24829
24830 if test "$HAVE_ANDROID" = "true"; then
24831 ANDROID_TRUE=
24832 ANDROID_FALSE='#'
24833else
24834 ANDROID_TRUE='#'
24835 ANDROID_FALSE=
24836fi
24837
24838if test "$HAVE_ANDROID" = "true"; then
24839
24840$as_echo "#define HAVE_ANDROID 1" >>confdefs.h
24841
24842fi
24843
24844# On Solaris 2.7, write() returns ENOENT when it really means EAGAIN
24845
24846case `(uname -sr) 2>/dev/null` in
24847 "SunOS 5.7")
24848 $as_echo "#define ENOENT_WORKAROUND 1" >>confdefs.h
24849
24850 ;;
24851esac
24852
24853# Check for rpm SOURCES path
24854printf "checking for rpm sources path... "
24855RPMSOURCEDIR="NOT-FOUND"
24856for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
24857 if test -d /usr/src/${directory}/SOURCES; then
24858 RPMSOURCEDIR="/usr/src/${directory}/SOURCES/"
24859 fi
24860done
24861echo "$RPMSOURCEDIR"
24862 if test "$RPMSOURCEDIR" != "NOT-FOUND"; then
24863 HAVE_RPM_TRUE=
24864 HAVE_RPM_FALSE='#'
24865else
24866 HAVE_RPM_TRUE='#'
24867 HAVE_RPM_FALSE=
24868fi
24869
24870 if test "$build_x11vnc" = "yes"; then
24871 WITH_X11VNC_TRUE=
24872 WITH_X11VNC_FALSE='#'
24873else
24874 WITH_X11VNC_TRUE='#'
24875 WITH_X11VNC_FALSE=
24876fi
24877
24878
24879
24880ac_config_files="$ac_config_files Makefile libvncserver.pc libvncclient.pc libvncserver/Makefile examples/Makefile examples/android/Makefile vncterm/Makefile webclients/Makefile webclients/java-applet/Makefile webclients/java-applet/ssl/Makefile libvncclient/Makefile client_examples/Makefile test/Makefile libvncserver-config LibVNCServer.spec"
24881
24882#
24883# x11vnc only:
24884#
24885if test "$build_x11vnc" = "yes"; then
24886 #
24887 # NOTE: if you are using the LibVNCServer-X.Y.Z.tar.gz source
24888 # tarball and nevertheless want to run autoconf (i.e. aclocal,
24889 # autoheader, automake, autoconf) AGAIN (perhaps you have a
24890 # special target system, e.g. embedded) then you will need to
24891 # comment out the following 'AC_CONFIG_FILES' line to avoid
24892 # automake error messages like:
24893 #
24894 # configure.ac:690: required file `x11vnc/Makefile.in' not found
24895 #
24896 ac_config_files="$ac_config_files x11vnc/Makefile x11vnc/misc/Makefile x11vnc/misc/turbovnc/Makefile"
24897
24898
24899 if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
24900 # need to move local tarball rfb headers aside:
24901 hdrs="rfb.h rfbclient.h rfbproto.h rfbregion.h rfbint.h"
24902 echo "with-system-libvncserver: moving aside headers $hdrs"
24903 for hdr in $hdrs
24904 do
24905 if test -f "rfb/$hdr"; then
24906 echo "with-system-libvncserver: moving rfb/$hdr to rfb/$hdr.ORIG"
24907 mv rfb/$hdr rfb/$hdr.ORIG
24908 fi
24909 done
24910 echo "with-system-libvncserver: *NOTE* move them back manually to start over."
24911 fi
24912fi
24913
24914ac_config_commands="$ac_config_commands chmod-libvncserver-config"
24915
24916cat >confcache <<\_ACEOF
24917# This file is a shell script that caches the results of configure
24918# tests run on this system so they can be shared between configure
24919# scripts and configure runs, see configure's option --config-cache.
24920# It is not useful on other systems. If it contains results you don't
24921# want to keep, you may remove or edit it.
24922#
24923# config.status only pays attention to the cache file if you give it
24924# the --recheck option to rerun configure.
24925#
24926# `ac_cv_env_foo' variables (set or unset) will be overridden when
24927# loading this file, other *unset* `ac_cv_foo' will be assigned the
24928# following values.
24929
24930_ACEOF
24931
24932# The following way of writing the cache mishandles newlines in values,
24933# but we know of no workaround that is simple, portable, and efficient.
24934# So, we kill variables containing newlines.
24935# Ultrix sh set writes to stderr and can't be redirected directly,
24936# and sets the high bit in the cache file unless we assign to the vars.
24937(
24938 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24939 eval ac_val=\$$ac_var
24940 case $ac_val in #(
24941 *${as_nl}*)
24942 case $ac_var in #(
24943 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24944$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24945 esac
24946 case $ac_var in #(
24947 _ | IFS | as_nl) ;; #(
24948 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24949 *) { eval $ac_var=; unset $ac_var;} ;;
24950 esac ;;
24951 esac
24952 done
24953
24954 (set) 2>&1 |
24955 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24956 *${as_nl}ac_space=\ *)
24957 # `set' does not quote correctly, so add quotes: double-quote
24958 # substitution turns \\\\ into \\, and sed turns \\ into \.
24959 sed -n \
24960 "s/'/'\\\\''/g;
24961 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24962 ;; #(
24963 *)
24964 # `set' quotes correctly as required by POSIX, so do not add quotes.
24965 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24966 ;;
24967 esac |
24968 sort
24969) |
24970 sed '
24971 /^ac_cv_env_/b end
24972 t clear
24973 :clear
24974 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24975 t end
24976 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24977 :end' >>confcache
24978if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24979 if test -w "$cache_file"; then
24980 if test "x$cache_file" != "x/dev/null"; then
24981 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24982$as_echo "$as_me: updating cache $cache_file" >&6;}
24983 if test ! -f "$cache_file" || test -h "$cache_file"; then
24984 cat confcache >"$cache_file"
24985 else
24986 case $cache_file in #(
24987 */* | ?:*)
24988 mv -f confcache "$cache_file"$$ &&
24989 mv -f "$cache_file"$$ "$cache_file" ;; #(
24990 *)
24991 mv -f confcache "$cache_file" ;;
24992 esac
24993 fi
24994 fi
24995 else
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24997$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24998 fi
24999fi
25000rm -f confcache
25001
25002test "x$prefix" = xNONE && prefix=$ac_default_prefix
25003# Let make expand exec_prefix.
25004test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
25005
25006DEFS=-DHAVE_CONFIG_H
25007
25008ac_libobjs=
25009ac_ltlibobjs=
25010U=
25011for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
25012 # 1. Remove the extension, and $U if already installed.
25013 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
25014 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
25015 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
25016 # will be set to the directory where LIBOBJS objects are built.
25017 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
25018 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
25019done
25020LIBOBJS=$ac_libobjs
25021
25022LTLIBOBJS=$ac_ltlibobjs
25023
25024
25025 if test -n "$EXEEXT"; then
25026 am__EXEEXT_TRUE=
25027 am__EXEEXT_FALSE='#'
25028else
25029 am__EXEEXT_TRUE='#'
25030 am__EXEEXT_FALSE=
25031fi
25032
25033if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
25034 as_fn_error $? "conditional \"AMDEP\" was never defined.
25035Usually this means the macro was only invoked conditionally." "$LINENO" 5
25036fi
25037if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
25038 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
25039Usually this means the macro was only invoked conditionally." "$LINENO" 5
25040fi
25041if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
25042 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
25043Usually this means the macro was only invoked conditionally." "$LINENO" 5
25044fi
25045if test -z "${WITH_FFMPEG_TRUE}" && test -z "${WITH_FFMPEG_FALSE}"; then
25046 as_fn_error $? "conditional \"WITH_FFMPEG\" was never defined.
25047Usually this means the macro was only invoked conditionally." "$LINENO" 5
25048fi
25049if test -z "${HAVE_MP3LAME_TRUE}" && test -z "${HAVE_MP3LAME_FALSE}"; then
25050 as_fn_error $? "conditional \"HAVE_MP3LAME\" was never defined.
25051Usually this means the macro was only invoked conditionally." "$LINENO" 5
25052fi
25053if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
25054 as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
25055Usually this means the macro was only invoked conditionally." "$LINENO" 5
25056fi
25057if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
25058 as_fn_error $? "conditional \"HAVE_X11\" was never defined.
25059Usually this means the macro was only invoked conditionally." "$LINENO" 5
25060fi
25061if test -z "${OSX_OPENGL_TRUE}" && test -z "${OSX_OPENGL_FALSE}"; then
25062 as_fn_error $? "conditional \"OSX_OPENGL\" was never defined.
25063Usually this means the macro was only invoked conditionally." "$LINENO" 5
25064fi
25065if test -z "${HAVE_SYSTEM_LIBVNCSERVER_TRUE}" && test -z "${HAVE_SYSTEM_LIBVNCSERVER_FALSE}"; then
25066 as_fn_error $? "conditional \"HAVE_SYSTEM_LIBVNCSERVER\" was never defined.
25067Usually this means the macro was only invoked conditionally." "$LINENO" 5
25068fi
25069if test -z "${HAVE_LIBPTHREAD_TRUE}" && test -z "${HAVE_LIBPTHREAD_FALSE}"; then
25070 as_fn_error $? "conditional \"HAVE_LIBPTHREAD\" was never defined.
25071Usually this means the macro was only invoked conditionally." "$LINENO" 5
25072fi
25073if test -z "${WITH_TIGHTVNC_FILETRANSFER_TRUE}" && test -z "${WITH_TIGHTVNC_FILETRANSFER_FALSE}"; then
25074 as_fn_error $? "conditional \"WITH_TIGHTVNC_FILETRANSFER\" was never defined.
25075Usually this means the macro was only invoked conditionally." "$LINENO" 5
25076fi
25077if test -z "${WITH_WEBSOCKETS_TRUE}" && test -z "${WITH_WEBSOCKETS_FALSE}"; then
25078 as_fn_error $? "conditional \"WITH_WEBSOCKETS\" was never defined.
25079Usually this means the macro was only invoked conditionally." "$LINENO" 5
25080fi
25081if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
25082 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
25083Usually this means the macro was only invoked conditionally." "$LINENO" 5
25084fi
25085if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
25086 as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined.
25087Usually this means the macro was only invoked conditionally." "$LINENO" 5
25088fi
25089if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
25090 as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined.
25091Usually this means the macro was only invoked conditionally." "$LINENO" 5
25092fi
25093if test -z "${HAVE_LIBSDL_TRUE}" && test -z "${HAVE_LIBSDL_FALSE}"; then
25094 as_fn_error $? "conditional \"HAVE_LIBSDL\" was never defined.
25095Usually this means the macro was only invoked conditionally." "$LINENO" 5
25096fi
25097if test -z "${HAVE_LIBGTK_TRUE}" && test -z "${HAVE_LIBGTK_FALSE}"; then
25098 as_fn_error $? "conditional \"HAVE_LIBGTK\" was never defined.
25099Usually this means the macro was only invoked conditionally." "$LINENO" 5
25100fi
25101if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
25102 as_fn_error $? "conditional \"MINGW\" was never defined.
25103Usually this means the macro was only invoked conditionally." "$LINENO" 5
25104fi
25105if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
25106 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
25107Usually this means the macro was only invoked conditionally." "$LINENO" 5
25108fi
25109
25110if test -z "${CYGIPC_TRUE}" && test -z "${CYGIPC_FALSE}"; then
25111 as_fn_error $? "conditional \"CYGIPC\" was never defined.
25112Usually this means the macro was only invoked conditionally." "$LINENO" 5
25113fi
25114if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
25115 as_fn_error $? "conditional \"LINUX\" was never defined.
25116Usually this means the macro was only invoked conditionally." "$LINENO" 5
25117fi
25118if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
25119 as_fn_error $? "conditional \"OSX\" was never defined.
25120Usually this means the macro was only invoked conditionally." "$LINENO" 5
25121fi
25122if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
25123 as_fn_error $? "conditional \"ANDROID\" was never defined.
25124Usually this means the macro was only invoked conditionally." "$LINENO" 5
25125fi
25126if test -z "${HAVE_RPM_TRUE}" && test -z "${HAVE_RPM_FALSE}"; then
25127 as_fn_error $? "conditional \"HAVE_RPM\" was never defined.
25128Usually this means the macro was only invoked conditionally." "$LINENO" 5
25129fi
25130if test -z "${WITH_X11VNC_TRUE}" && test -z "${WITH_X11VNC_FALSE}"; then
25131 as_fn_error $? "conditional \"WITH_X11VNC\" was never defined.
25132Usually this means the macro was only invoked conditionally." "$LINENO" 5
25133fi
25134
25135: "${CONFIG_STATUS=./config.status}"
25136ac_write_fail=0
25137ac_clean_files_save=$ac_clean_files
25138ac_clean_files="$ac_clean_files $CONFIG_STATUS"
25139{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
25140$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
25141as_write_fail=0
25142cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
25143#! $SHELL
25144# Generated by $as_me.
25145# Run this file to recreate the current configuration.
25146# Compiler output produced by configure, useful for debugging
25147# configure, is in config.log if it exists.
25148
25149debug=false
25150ac_cs_recheck=false
25151ac_cs_silent=false
25152
25153SHELL=\${CONFIG_SHELL-$SHELL}
25154export SHELL
25155_ASEOF
25156cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
25157## -------------------- ##
25158## M4sh Initialization. ##
25159## -------------------- ##
25160
25161# Be more Bourne compatible
25162DUALCASE=1; export DUALCASE # for MKS sh
25163if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
25164 emulate sh
25165 NULLCMD=:
25166 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25167 # is contrary to our usage. Disable this feature.
25168 alias -g '${1+"$@"}'='"$@"'
25169 setopt NO_GLOB_SUBST
25170else
25171 case `(set -o) 2>/dev/null` in #(
25172 *posix*) :
25173 set -o posix ;; #(
25174 *) :
25175 ;;
25176esac
25177fi
25178
25179
25180as_nl='
25181'
25182export as_nl
25183# Printing a long string crashes Solaris 7 /usr/bin/printf.
25184as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
25185as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
25186as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
25187# Prefer a ksh shell builtin over an external printf program on Solaris,
25188# but without wasting forks for bash or zsh.
25189if test -z "$BASH_VERSION$ZSH_VERSION" \
25190 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
25191 as_echo='print -r --'
25192 as_echo_n='print -rn --'
25193elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
25194 as_echo='printf %s\n'
25195 as_echo_n='printf %s'
25196else
25197 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
25198 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
25199 as_echo_n='/usr/ucb/echo -n'
25200 else
25201 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
25202 as_echo_n_body='eval
25203 arg=$1;
25204 case $arg in #(
25205 *"$as_nl"*)
25206 expr "X$arg" : "X\\(.*\\)$as_nl";
25207 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
25208 esac;
25209 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
25210 '
25211 export as_echo_n_body
25212 as_echo_n='sh -c $as_echo_n_body as_echo'
25213 fi
25214 export as_echo_body
25215 as_echo='sh -c $as_echo_body as_echo'
25216fi
25217
25218# The user is always right.
25219if test "${PATH_SEPARATOR+set}" != set; then
25220 PATH_SEPARATOR=:
25221 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
25222 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
25223 PATH_SEPARATOR=';'
25224 }
25225fi
25226
25227
25228# IFS
25229# We need space, tab and new line, in precisely that order. Quoting is
25230# there to prevent editors from complaining about space-tab.
25231# (If _AS_PATH_WALK were called with IFS unset, it would disable word
25232# splitting by setting IFS to empty value.)
25233IFS=" "" $as_nl"
25234
25235# Find who we are. Look in the path if we contain no directory separator.
25236as_myself=
25237case $0 in #((
25238 *[\\/]* ) as_myself=$0 ;;
25239 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25240for as_dir in $PATH
25241do
25242 IFS=$as_save_IFS
25243 test -z "$as_dir" && as_dir=.
25244 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
25245 done
25246IFS=$as_save_IFS
25247
25248 ;;
25249esac
25250# We did not find ourselves, most probably we were run as `sh COMMAND'
25251# in which case we are not to be found in the path.
25252if test "x$as_myself" = x; then
25253 as_myself=$0
25254fi
25255if test ! -f "$as_myself"; then
25256 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
25257 exit 1
25258fi
25259
25260# Unset variables that we do not need and which cause bugs (e.g. in
25261# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
25262# suppresses any "Segmentation fault" message there. '((' could
25263# trigger a bug in pdksh 5.2.14.
25264for as_var in BASH_ENV ENV MAIL MAILPATH
25265do eval test x\${$as_var+set} = xset \
25266 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
25267done
25268PS1='$ '
25269PS2='> '
25270PS4='+ '
25271
25272# NLS nuisances.
25273LC_ALL=C
25274export LC_ALL
25275LANGUAGE=C
25276export LANGUAGE
25277
25278# CDPATH.
25279(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25280
25281
25282# as_fn_error STATUS ERROR [LINENO LOG_FD]
25283# ----------------------------------------
25284# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25285# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25286# script with STATUS, using 1 if that was 0.
25287as_fn_error ()
25288{
25289 as_status=$1; test $as_status -eq 0 && as_status=1
25290 if test "$4"; then
25291 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25292 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25293 fi
25294 $as_echo "$as_me: error: $2" >&2
25295 as_fn_exit $as_status
25296} # as_fn_error
25297
25298
25299# as_fn_set_status STATUS
25300# -----------------------
25301# Set $? to STATUS, without forking.
25302as_fn_set_status ()
25303{
25304 return $1
25305} # as_fn_set_status
25306
25307# as_fn_exit STATUS
25308# -----------------
25309# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25310as_fn_exit ()
25311{
25312 set +e
25313 as_fn_set_status $1
25314 exit $1
25315} # as_fn_exit
25316
25317# as_fn_unset VAR
25318# ---------------
25319# Portably unset VAR.
25320as_fn_unset ()
25321{
25322 { eval $1=; unset $1;}
25323}
25324as_unset=as_fn_unset
25325# as_fn_append VAR VALUE
25326# ----------------------
25327# Append the text in VALUE to the end of the definition contained in VAR. Take
25328# advantage of any shell optimizations that allow amortized linear growth over
25329# repeated appends, instead of the typical quadratic growth present in naive
25330# implementations.
25331if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25332 eval 'as_fn_append ()
25333 {
25334 eval $1+=\$2
25335 }'
25336else
25337 as_fn_append ()
25338 {
25339 eval $1=\$$1\$2
25340 }
25341fi # as_fn_append
25342
25343# as_fn_arith ARG...
25344# ------------------
25345# Perform arithmetic evaluation on the ARGs, and store the result in the
25346# global $as_val. Take advantage of shells that can avoid forks. The arguments
25347# must be portable across $(()) and expr.
25348if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25349 eval 'as_fn_arith ()
25350 {
25351 as_val=$(( $* ))
25352 }'
25353else
25354 as_fn_arith ()
25355 {
25356 as_val=`expr "$@" || test $? -eq 1`
25357 }
25358fi # as_fn_arith
25359
25360
25361if expr a : '\(a\)' >/dev/null 2>&1 &&
25362 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25363 as_expr=expr
25364else
25365 as_expr=false
25366fi
25367
25368if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25369 as_basename=basename
25370else
25371 as_basename=false
25372fi
25373
25374if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25375 as_dirname=dirname
25376else
25377 as_dirname=false
25378fi
25379
25380as_me=`$as_basename -- "$0" ||
25381$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25382 X"$0" : 'X\(//\)$' \| \
25383 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25384$as_echo X/"$0" |
25385 sed '/^.*\/\([^/][^/]*\)\/*$/{
25386 s//\1/
25387 q
25388 }
25389 /^X\/\(\/\/\)$/{
25390 s//\1/
25391 q
25392 }
25393 /^X\/\(\/\).*/{
25394 s//\1/
25395 q
25396 }
25397 s/.*/./; q'`
25398
25399# Avoid depending upon Character Ranges.
25400as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25401as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25402as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25403as_cr_digits='0123456789'
25404as_cr_alnum=$as_cr_Letters$as_cr_digits
25405
25406ECHO_C= ECHO_N= ECHO_T=
25407case `echo -n x` in #(((((
25408-n*)
25409 case `echo 'xy\c'` in
25410 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25411 xy) ECHO_C='\c';;
25412 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25413 ECHO_T=' ';;
25414 esac;;
25415*)
25416 ECHO_N='-n';;
25417esac
25418
25419rm -f conf$$ conf$$.exe conf$$.file
25420if test -d conf$$.dir; then
25421 rm -f conf$$.dir/conf$$.file
25422else
25423 rm -f conf$$.dir
25424 mkdir conf$$.dir 2>/dev/null
25425fi
25426if (echo >conf$$.file) 2>/dev/null; then
25427 if ln -s conf$$.file conf$$ 2>/dev/null; then
25428 as_ln_s='ln -s'
25429 # ... but there are two gotchas:
25430 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25431 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25432 # In both cases, we have to default to `cp -pR'.
25433 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25434 as_ln_s='cp -pR'
25435 elif ln conf$$.file conf$$ 2>/dev/null; then
25436 as_ln_s=ln
25437 else
25438 as_ln_s='cp -pR'
25439 fi
25440else
25441 as_ln_s='cp -pR'
25442fi
25443rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25444rmdir conf$$.dir 2>/dev/null
25445
25446
25447# as_fn_mkdir_p
25448# -------------
25449# Create "$as_dir" as a directory, including parents if necessary.
25450as_fn_mkdir_p ()
25451{
25452
25453 case $as_dir in #(
25454 -*) as_dir=./$as_dir;;
25455 esac
25456 test -d "$as_dir" || eval $as_mkdir_p || {
25457 as_dirs=
25458 while :; do
25459 case $as_dir in #(
25460 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25461 *) as_qdir=$as_dir;;
25462 esac
25463 as_dirs="'$as_qdir' $as_dirs"
25464 as_dir=`$as_dirname -- "$as_dir" ||
25465$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25466 X"$as_dir" : 'X\(//\)[^/]' \| \
25467 X"$as_dir" : 'X\(//\)$' \| \
25468 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25469$as_echo X"$as_dir" |
25470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25471 s//\1/
25472 q
25473 }
25474 /^X\(\/\/\)[^/].*/{
25475 s//\1/
25476 q
25477 }
25478 /^X\(\/\/\)$/{
25479 s//\1/
25480 q
25481 }
25482 /^X\(\/\).*/{
25483 s//\1/
25484 q
25485 }
25486 s/.*/./; q'`
25487 test -d "$as_dir" && break
25488 done
25489 test -z "$as_dirs" || eval "mkdir $as_dirs"
25490 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25491
25492
25493} # as_fn_mkdir_p
25494if mkdir -p . 2>/dev/null; then
25495 as_mkdir_p='mkdir -p "$as_dir"'
25496else
25497 test -d ./-p && rmdir ./-p
25498 as_mkdir_p=false
25499fi
25500
25501
25502# as_fn_executable_p FILE
25503# -----------------------
25504# Test if FILE is an executable regular file.
25505as_fn_executable_p ()
25506{
25507 test -f "$1" && test -x "$1"
25508} # as_fn_executable_p
25509as_test_x='test -x'
25510as_executable_p=as_fn_executable_p
25511
25512# Sed expression to map a string onto a valid CPP name.
25513as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25514
25515# Sed expression to map a string onto a valid variable name.
25516as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25517
25518
25519exec 6>&1
25520## ----------------------------------- ##
25521## Main body of $CONFIG_STATUS script. ##
25522## ----------------------------------- ##
25523_ASEOF
25524test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25525
25526cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25527# Save the log message, to keep $0 and so on meaningful, and to
25528# report actual input values of CONFIG_FILES etc. instead of their
25529# values after options handling.
25530ac_log="
25531This file was extended by LibVNCServer $as_me 0.9.9, which was
25532generated by GNU Autoconf 2.69. Invocation command line was
25533
25534 CONFIG_FILES = $CONFIG_FILES
25535 CONFIG_HEADERS = $CONFIG_HEADERS
25536 CONFIG_LINKS = $CONFIG_LINKS
25537 CONFIG_COMMANDS = $CONFIG_COMMANDS
25538 $ $0 $@
25539
25540on `(hostname || uname -n) 2>/dev/null | sed 1q`
25541"
25542
25543_ACEOF
25544
25545case $ac_config_files in *"
25546"*) set x $ac_config_files; shift; ac_config_files=$*;;
25547esac
25548
25549case $ac_config_headers in *"
25550"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25551esac
25552
25553
25554cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25555# Files that config.status was made for.
25556config_files="$ac_config_files"
25557config_headers="$ac_config_headers"
25558config_commands="$ac_config_commands"
25559
25560_ACEOF
25561
25562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25563ac_cs_usage="\
25564\`$as_me' instantiates files and other configuration actions
25565from templates according to the current configuration. Unless the files
25566and actions are specified as TAGs, all are instantiated by default.
25567
25568Usage: $0 [OPTION]... [TAG]...
25569
25570 -h, --help print this help, then exit
25571 -V, --version print version number and configuration settings, then exit
25572 --config print configuration, then exit
25573 -q, --quiet, --silent
25574 do not print progress messages
25575 -d, --debug don't remove temporary files
25576 --recheck update $as_me by reconfiguring in the same conditions
25577 --file=FILE[:TEMPLATE]
25578 instantiate the configuration file FILE
25579 --header=FILE[:TEMPLATE]
25580 instantiate the configuration header FILE
25581
25582Configuration files:
25583$config_files
25584
25585Configuration headers:
25586$config_headers
25587
25588Configuration commands:
25589$config_commands
25590
25591Report bugs to <http://sourceforge.net/projects/libvncserver>."
25592
25593_ACEOF
25594cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25595ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25596ac_cs_version="\\
25597LibVNCServer config.status 0.9.9
25598configured by $0, generated by GNU Autoconf 2.69,
25599 with options \\"\$ac_cs_config\\"
25600
25601Copyright (C) 2012 Free Software Foundation, Inc.
25602This config.status script is free software; the Free Software Foundation
25603gives unlimited permission to copy, distribute and modify it."
25604
25605ac_pwd='$ac_pwd'
25606srcdir='$srcdir'
25607INSTALL='$INSTALL'
25608MKDIR_P='$MKDIR_P'
25609AWK='$AWK'
25610test -n "\$AWK" || AWK=awk
25611_ACEOF
25612
25613cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25614# The default lists apply if the user does not specify any file.
25615ac_need_defaults=:
25616while test $# != 0
25617do
25618 case $1 in
25619 --*=?*)
25620 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25621 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25622 ac_shift=:
25623 ;;
25624 --*=)
25625 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25626 ac_optarg=
25627 ac_shift=:
25628 ;;
25629 *)
25630 ac_option=$1
25631 ac_optarg=$2
25632 ac_shift=shift
25633 ;;
25634 esac
25635
25636 case $ac_option in
25637 # Handling of the options.
25638 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25639 ac_cs_recheck=: ;;
25640 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25641 $as_echo "$ac_cs_version"; exit ;;
25642 --config | --confi | --conf | --con | --co | --c )
25643 $as_echo "$ac_cs_config"; exit ;;
25644 --debug | --debu | --deb | --de | --d | -d )
25645 debug=: ;;
25646 --file | --fil | --fi | --f )
25647 $ac_shift
25648 case $ac_optarg in
25649 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25650 '') as_fn_error $? "missing file argument" ;;
25651 esac
25652 as_fn_append CONFIG_FILES " '$ac_optarg'"
25653 ac_need_defaults=false;;
25654 --header | --heade | --head | --hea )
25655 $ac_shift
25656 case $ac_optarg in
25657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25658 esac
25659 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25660 ac_need_defaults=false;;
25661 --he | --h)
25662 # Conflict between --help and --header
25663 as_fn_error $? "ambiguous option: \`$1'
25664Try \`$0 --help' for more information.";;
25665 --help | --hel | -h )
25666 $as_echo "$ac_cs_usage"; exit ;;
25667 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25668 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25669 ac_cs_silent=: ;;
25670
25671 # This is an error.
25672 -*) as_fn_error $? "unrecognized option: \`$1'
25673Try \`$0 --help' for more information." ;;
25674
25675 *) as_fn_append ac_config_targets " $1"
25676 ac_need_defaults=false ;;
25677
25678 esac
25679 shift
25680done
25681
25682ac_configure_extra_args=
25683
25684if $ac_cs_silent; then
25685 exec 6>/dev/null
25686 ac_configure_extra_args="$ac_configure_extra_args --silent"
25687fi
25688
25689_ACEOF
25690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25691if \$ac_cs_recheck; then
25692 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25693 shift
25694 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25695 CONFIG_SHELL='$SHELL'
25696 export CONFIG_SHELL
25697 exec "\$@"
25698fi
25699
25700_ACEOF
25701cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25702exec 5>>config.log
25703{
25704 echo
25705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25706## Running $as_me. ##
25707_ASBOX
25708 $as_echo "$ac_log"
25709} >&5
25710
25711_ACEOF
25712cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25713#
25714# INIT-COMMANDS
25715#
25716PACKAGE="$PACKAGE"
25717AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25718
25719_ACEOF
25720
25721cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25722
25723# Handling of arguments.
25724for ac_config_target in $ac_config_targets
25725do
25726 case $ac_config_target in
25727 "rfbconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rfbconfig.h" ;;
25728 "rfb/rfbconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rfb/rfbconfig.h" ;;
25729 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25730 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25731 "libvncserver.pc") CONFIG_FILES="$CONFIG_FILES libvncserver.pc" ;;
25732 "libvncclient.pc") CONFIG_FILES="$CONFIG_FILES libvncclient.pc" ;;
25733 "libvncserver/Makefile") CONFIG_FILES="$CONFIG_FILES libvncserver/Makefile" ;;
25734 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25735 "examples/android/Makefile") CONFIG_FILES="$CONFIG_FILES examples/android/Makefile" ;;
25736 "vncterm/Makefile") CONFIG_FILES="$CONFIG_FILES vncterm/Makefile" ;;
25737 "webclients/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/Makefile" ;;
25738 "webclients/java-applet/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/java-applet/Makefile" ;;
25739 "webclients/java-applet/ssl/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/java-applet/ssl/Makefile" ;;
25740 "libvncclient/Makefile") CONFIG_FILES="$CONFIG_FILES libvncclient/Makefile" ;;
25741 "client_examples/Makefile") CONFIG_FILES="$CONFIG_FILES client_examples/Makefile" ;;
25742 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25743 "libvncserver-config") CONFIG_FILES="$CONFIG_FILES libvncserver-config" ;;
25744 "LibVNCServer.spec") CONFIG_FILES="$CONFIG_FILES LibVNCServer.spec" ;;
25745 "x11vnc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/Makefile" ;;
25746 "x11vnc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/misc/Makefile" ;;
25747 "x11vnc/misc/turbovnc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/misc/turbovnc/Makefile" ;;
25748 "chmod-libvncserver-config") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-libvncserver-config" ;;
25749
25750 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25751 esac
25752done
25753
25754
25755# If the user did not use the arguments to specify the items to instantiate,
25756# then the envvar interface is used. Set only those that are not.
25757# We use the long form for the default assignment because of an extremely
25758# bizarre bug on SunOS 4.1.3.
25759if $ac_need_defaults; then
25760 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25761 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25762 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25763fi
25764
25765# Have a temporary directory for convenience. Make it in the build tree
25766# simply because there is no reason against having it here, and in addition,
25767# creating and moving files from /tmp can sometimes cause problems.
25768# Hook for its removal unless debugging.
25769# Note that there is a small window in which the directory will not be cleaned:
25770# after its creation but before its name has been assigned to `$tmp'.
25771$debug ||
25772{
25773 tmp= ac_tmp=
25774 trap 'exit_status=$?
25775 : "${ac_tmp:=$tmp}"
25776 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25777' 0
25778 trap 'as_fn_exit 1' 1 2 13 15
25779}
25780# Create a (secure) tmp directory for tmp files.
25781
25782{
25783 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25784 test -d "$tmp"
25785} ||
25786{
25787 tmp=./conf$$-$RANDOM
25788 (umask 077 && mkdir "$tmp")
25789} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25790ac_tmp=$tmp
25791
25792# Set up the scripts for CONFIG_FILES section.
25793# No need to generate them if there are no CONFIG_FILES.
25794# This happens for instance with `./config.status config.h'.
25795if test -n "$CONFIG_FILES"; then
25796
25797
25798ac_cr=`echo X | tr X '\015'`
25799# On cygwin, bash can eat \r inside `` if the user requested igncr.
25800# But we know of no other shell where ac_cr would be empty at this
25801# point, so we can use a bashism as a fallback.
25802if test "x$ac_cr" = x; then
25803 eval ac_cr=\$\'\\r\'
25804fi
25805ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25806if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25807 ac_cs_awk_cr='\\r'
25808else
25809 ac_cs_awk_cr=$ac_cr
25810fi
25811
25812echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25813_ACEOF
25814
25815
25816{
25817 echo "cat >conf$$subs.awk <<_ACEOF" &&
25818 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25819 echo "_ACEOF"
25820} >conf$$subs.sh ||
25821 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25822ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25823ac_delim='%!_!# '
25824for ac_last_try in false false false false false :; do
25825 . ./conf$$subs.sh ||
25826 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25827
25828 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25829 if test $ac_delim_n = $ac_delim_num; then
25830 break
25831 elif $ac_last_try; then
25832 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25833 else
25834 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25835 fi
25836done
25837rm -f conf$$subs.sh
25838
25839cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25840cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25841_ACEOF
25842sed -n '
25843h
25844s/^/S["/; s/!.*/"]=/
25845p
25846g
25847s/^[^!]*!//
25848:repl
25849t repl
25850s/'"$ac_delim"'$//
25851t delim
25852:nl
25853h
25854s/\(.\{148\}\)..*/\1/
25855t more1
25856s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25857p
25858n
25859b repl
25860:more1
25861s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25862p
25863g
25864s/.\{148\}//
25865t nl
25866:delim
25867h
25868s/\(.\{148\}\)..*/\1/
25869t more2
25870s/["\\]/\\&/g; s/^/"/; s/$/"/
25871p
25872b
25873:more2
25874s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25875p
25876g
25877s/.\{148\}//
25878t delim
25879' <conf$$subs.awk | sed '
25880/^[^""]/{
25881 N
25882 s/\n//
25883}
25884' >>$CONFIG_STATUS || ac_write_fail=1
25885rm -f conf$$subs.awk
25886cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25887_ACAWK
25888cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25889 for (key in S) S_is_set[key] = 1
25890 FS = ""
25891
25892}
25893{
25894 line = $ 0
25895 nfields = split(line, field, "@")
25896 substed = 0
25897 len = length(field[1])
25898 for (i = 2; i < nfields; i++) {
25899 key = field[i]
25900 keylen = length(key)
25901 if (S_is_set[key]) {
25902 value = S[key]
25903 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25904 len += length(value) + length(field[++i])
25905 substed = 1
25906 } else
25907 len += 1 + keylen
25908 }
25909
25910 print line
25911}
25912
25913_ACAWK
25914_ACEOF
25915cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25916if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25917 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25918else
25919 cat
25920fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25921 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25922_ACEOF
25923
25924# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25925# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25926# trailing colons and then remove the whole line if VPATH becomes empty
25927# (actually we leave an empty line to preserve line numbers).
25928if test "x$srcdir" = x.; then
25929 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25930h
25931s///
25932s/^/:/
25933s/[ ]*$/:/
25934s/:\$(srcdir):/:/g
25935s/:\${srcdir}:/:/g
25936s/:@srcdir@:/:/g
25937s/^:*//
25938s/:*$//
25939x
25940s/\(=[ ]*\).*/\1/
25941G
25942s/\n//
25943s/^[^=]*=[ ]*$//
25944}'
25945fi
25946
25947cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25948fi # test -n "$CONFIG_FILES"
25949
25950# Set up the scripts for CONFIG_HEADERS section.
25951# No need to generate them if there are no CONFIG_HEADERS.
25952# This happens for instance with `./config.status Makefile'.
25953if test -n "$CONFIG_HEADERS"; then
25954cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25955BEGIN {
25956_ACEOF
25957
25958# Transform confdefs.h into an awk script `defines.awk', embedded as
25959# here-document in config.status, that substitutes the proper values into
25960# config.h.in to produce config.h.
25961
25962# Create a delimiter string that does not exist in confdefs.h, to ease
25963# handling of long lines.
25964ac_delim='%!_!# '
25965for ac_last_try in false false :; do
25966 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25967 if test -z "$ac_tt"; then
25968 break
25969 elif $ac_last_try; then
25970 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25971 else
25972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25973 fi
25974done
25975
25976# For the awk script, D is an array of macro values keyed by name,
25977# likewise P contains macro parameters if any. Preserve backslash
25978# newline sequences.
25979
25980ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25981sed -n '
25982s/.\{148\}/&'"$ac_delim"'/g
25983t rset
25984:rset
25985s/^[ ]*#[ ]*define[ ][ ]*/ /
25986t def
25987d
25988:def
25989s/\\$//
25990t bsnl
25991s/["\\]/\\&/g
25992s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25993D["\1"]=" \3"/p
25994s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25995d
25996:bsnl
25997s/["\\]/\\&/g
25998s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25999D["\1"]=" \3\\\\\\n"\\/p
26000t cont
26001s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26002t cont
26003d
26004:cont
26005n
26006s/.\{148\}/&'"$ac_delim"'/g
26007t clear
26008:clear
26009s/\\$//
26010t bsnlc
26011s/["\\]/\\&/g; s/^/"/; s/$/"/p
26012d
26013:bsnlc
26014s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26015b cont
26016' <confdefs.h | sed '
26017s/'"$ac_delim"'/"\\\
26018"/g' >>$CONFIG_STATUS || ac_write_fail=1
26019
26020cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26021 for (key in D) D_is_set[key] = 1
26022 FS = ""
26023}
26024/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26025 line = \$ 0
26026 split(line, arg, " ")
26027 if (arg[1] == "#") {
26028 defundef = arg[2]
26029 mac1 = arg[3]
26030 } else {
26031 defundef = substr(arg[1], 2)
26032 mac1 = arg[2]
26033 }
26034 split(mac1, mac2, "(") #)
26035 macro = mac2[1]
26036 prefix = substr(line, 1, index(line, defundef) - 1)
26037 if (D_is_set[macro]) {
26038 # Preserve the white space surrounding the "#".
26039 print prefix "define", macro P[macro] D[macro]
26040 next
26041 } else {
26042 # Replace #undef with comments. This is necessary, for example,
26043 # in the case of _POSIX_SOURCE, which is predefined and required
26044 # on some systems where configure will not decide to define it.
26045 if (defundef == "undef") {
26046 print "/*", prefix defundef, macro, "*/"
26047 next
26048 }
26049 }
26050}
26051{ print }
26052_ACAWK
26053_ACEOF
26054cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26055 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
26056fi # test -n "$CONFIG_HEADERS"
26057
26058
26059eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
26060shift
26061for ac_tag
26062do
26063 case $ac_tag in
26064 :[FHLC]) ac_mode=$ac_tag; continue;;
26065 esac
26066 case $ac_mode$ac_tag in
26067 :[FHL]*:*);;
26068 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
26069 :[FH]-) ac_tag=-:-;;
26070 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26071 esac
26072 ac_save_IFS=$IFS
26073 IFS=:
26074 set x $ac_tag
26075 IFS=$ac_save_IFS
26076 shift
26077 ac_file=$1
26078 shift
26079
26080 case $ac_mode in
26081 :L) ac_source=$1;;
26082 :[FH])
26083 ac_file_inputs=
26084 for ac_f
26085 do
26086 case $ac_f in
26087 -) ac_f="$ac_tmp/stdin";;
26088 *) # Look for the file first in the build tree, then in the source tree
26089 # (if the path is not absolute). The absolute path cannot be DOS-style,
26090 # because $ac_f cannot contain `:'.
26091 test -f "$ac_f" ||
26092 case $ac_f in
26093 [\\/$]*) false;;
26094 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26095 esac ||
26096 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26097 esac
26098 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26099 as_fn_append ac_file_inputs " '$ac_f'"
26100 done
26101
26102 # Let's still pretend it is `configure' which instantiates (i.e., don't
26103 # use $as_me), people would be surprised to read:
26104 # /* config.h. Generated by config.status. */
26105 configure_input='Generated from '`
26106 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26107 `' by configure.'
26108 if test x"$ac_file" != x-; then
26109 configure_input="$ac_file. $configure_input"
26110 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26111$as_echo "$as_me: creating $ac_file" >&6;}
26112 fi
26113 # Neutralize special characters interpreted by sed in replacement strings.
26114 case $configure_input in #(
26115 *\&* | *\|* | *\\* )
26116 ac_sed_conf_input=`$as_echo "$configure_input" |
26117 sed 's/[\\\\&|]/\\\\&/g'`;; #(
26118 *) ac_sed_conf_input=$configure_input;;
26119 esac
26120
26121 case $ac_tag in
26122 *:-:* | *:-) cat >"$ac_tmp/stdin" \
26123 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
26124 esac
26125 ;;
26126 esac
26127
26128 ac_dir=`$as_dirname -- "$ac_file" ||
26129$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26130 X"$ac_file" : 'X\(//\)[^/]' \| \
26131 X"$ac_file" : 'X\(//\)$' \| \
26132 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26133$as_echo X"$ac_file" |
26134 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26135 s//\1/
26136 q
26137 }
26138 /^X\(\/\/\)[^/].*/{
26139 s//\1/
26140 q
26141 }
26142 /^X\(\/\/\)$/{
26143 s//\1/
26144 q
26145 }
26146 /^X\(\/\).*/{
26147 s//\1/
26148 q
26149 }
26150 s/.*/./; q'`
26151 as_dir="$ac_dir"; as_fn_mkdir_p
26152 ac_builddir=.
26153
26154case "$ac_dir" in
26155.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26156*)
26157 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26158 # A ".." for each directory in $ac_dir_suffix.
26159 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26160 case $ac_top_builddir_sub in
26161 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26162 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26163 esac ;;
26164esac
26165ac_abs_top_builddir=$ac_pwd
26166ac_abs_builddir=$ac_pwd$ac_dir_suffix
26167# for backward compatibility:
26168ac_top_builddir=$ac_top_build_prefix
26169
26170case $srcdir in
26171 .) # We are building in place.
26172 ac_srcdir=.
26173 ac_top_srcdir=$ac_top_builddir_sub
26174 ac_abs_top_srcdir=$ac_pwd ;;
26175 [\\/]* | ?:[\\/]* ) # Absolute name.
26176 ac_srcdir=$srcdir$ac_dir_suffix;
26177 ac_top_srcdir=$srcdir
26178 ac_abs_top_srcdir=$srcdir ;;
26179 *) # Relative name.
26180 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26181 ac_top_srcdir=$ac_top_build_prefix$srcdir
26182 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26183esac
26184ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26185
26186
26187 case $ac_mode in
26188 :F)
26189 #
26190 # CONFIG_FILE
26191 #
26192
26193 case $INSTALL in
26194 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26195 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26196 esac
26197 ac_MKDIR_P=$MKDIR_P
26198 case $MKDIR_P in
26199 [\\/$]* | ?:[\\/]* ) ;;
26200 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26201 esac
26202_ACEOF
26203
26204cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26205# If the template does not know about datarootdir, expand it.
26206# FIXME: This hack should be removed a few years after 2.60.
26207ac_datarootdir_hack=; ac_datarootdir_seen=
26208ac_sed_dataroot='
26209/datarootdir/ {
26210 p
26211 q
26212}
26213/@datadir@/p
26214/@docdir@/p
26215/@infodir@/p
26216/@localedir@/p
26217/@mandir@/p'
26218case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26219*datarootdir*) ac_datarootdir_seen=yes;;
26220*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26222$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26223_ACEOF
26224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26225 ac_datarootdir_hack='
26226 s&@datadir@&$datadir&g
26227 s&@docdir@&$docdir&g
26228 s&@infodir@&$infodir&g
26229 s&@localedir@&$localedir&g
26230 s&@mandir@&$mandir&g
26231 s&\\\${datarootdir}&$datarootdir&g' ;;
26232esac
26233_ACEOF
26234
26235# Neutralize VPATH when `$srcdir' = `.'.
26236# Shell code in configure.ac might set extrasub.
26237# FIXME: do we really want to maintain this feature?
26238cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26239ac_sed_extra="$ac_vpsub
26240$extrasub
26241_ACEOF
26242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26243:t
26244/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26245s|@configure_input@|$ac_sed_conf_input|;t t
26246s&@top_builddir@&$ac_top_builddir_sub&;t t
26247s&@top_build_prefix@&$ac_top_build_prefix&;t t
26248s&@srcdir@&$ac_srcdir&;t t
26249s&@abs_srcdir@&$ac_abs_srcdir&;t t
26250s&@top_srcdir@&$ac_top_srcdir&;t t
26251s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26252s&@builddir@&$ac_builddir&;t t
26253s&@abs_builddir@&$ac_abs_builddir&;t t
26254s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26255s&@INSTALL@&$ac_INSTALL&;t t
26256s&@MKDIR_P@&$ac_MKDIR_P&;t t
26257$ac_datarootdir_hack
26258"
26259eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
26260 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26261
26262test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26263 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
26264 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
26265 "$ac_tmp/out"`; test -z "$ac_out"; } &&
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26267which seems to be undefined. Please make sure it is defined" >&5
26268$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26269which seems to be undefined. Please make sure it is defined" >&2;}
26270
26271 rm -f "$ac_tmp/stdin"
26272 case $ac_file in
26273 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
26274 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
26275 esac \
26276 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26277 ;;
26278 :H)
26279 #
26280 # CONFIG_HEADER
26281 #
26282 if test x"$ac_file" != x-; then
26283 {
26284 $as_echo "/* $configure_input */" \
26285 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26286 } >"$ac_tmp/config.h" \
26287 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26288 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26289 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26290$as_echo "$as_me: $ac_file is unchanged" >&6;}
26291 else
26292 rm -f "$ac_file"
26293 mv "$ac_tmp/config.h" "$ac_file" \
26294 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26295 fi
26296 else
26297 $as_echo "/* $configure_input */" \
26298 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26299 || as_fn_error $? "could not create -" "$LINENO" 5
26300 fi
26301# Compute "$ac_file"'s index in $config_headers.
26302_am_arg="$ac_file"
26303_am_stamp_count=1
26304for _am_header in $config_headers :; do
26305 case $_am_header in
26306 $_am_arg | $_am_arg:* )
26307 break ;;
26308 * )
26309 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26310 esac
26311done
26312echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26313$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26314 X"$_am_arg" : 'X\(//\)[^/]' \| \
26315 X"$_am_arg" : 'X\(//\)$' \| \
26316 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26317$as_echo X"$_am_arg" |
26318 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26319 s//\1/
26320 q
26321 }
26322 /^X\(\/\/\)[^/].*/{
26323 s//\1/
26324 q
26325 }
26326 /^X\(\/\/\)$/{
26327 s//\1/
26328 q
26329 }
26330 /^X\(\/\).*/{
26331 s//\1/
26332 q
26333 }
26334 s/.*/./; q'`/stamp-h$_am_stamp_count
26335 ;;
26336
26337 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26338$as_echo "$as_me: executing $ac_file commands" >&6;}
26339 ;;
26340 esac
26341
26342
26343 case $ac_file$ac_mode in
26344 "rfb/rfbconfig.h":C) ac_prefix_conf_OUT=`echo rfb/rfbconfig.h`
26345ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
26346ac_prefix_conf_PKG=`echo $PACKAGE`
26347ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
26348ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
26349ac_prefix_conf_INP=`echo _`
26350if test "$ac_prefix_conf_INP" = "_"; then
26351 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
26352 test -f "$ac_prefix_conf_INP" && continue
26353 case $ac_file in
26354 *.h) test -f $ac_file && ac_prefix_conf_INP=$ac_file ;;
26355 *)
26356 esac
26357 done
26358fi
26359if test "$ac_prefix_conf_INP" = "_"; then
26360 case "$ac_prefix_conf_OUT" in
26361 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
26362 ;;
26363 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
26364 ;;
26365 *) ac_prefix_conf_INP=config.h
26366 ;;
26367 esac
26368fi
26369if test -z "$ac_prefix_conf_PKG" ; then
26370 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
26371else
26372 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
26373 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
26374 fi fi
26375 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
26376$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
26377 if test -f $ac_prefix_conf_INP ; then
26378 echo "s/#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
26379 # no! these are things like socklen_t, const, vfork
26380 # echo "s/#undef *\\([m4_cr_letters]\\)/#undef $_LOW""_\\1/" >> _script
26381 echo "s/#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
26382 echo "#define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
26383 echo "#endif/" >>conftest.prefix
26384 # no! these are things like socklen_t, const, vfork
26385 # echo "s/#def[]ine *\\([m4_cr_letters][_symbol]*\\)\\(.*\\)/#ifndef $_LOW""_\\1 \\" >> _script
26386 # echo "#define $_LOW""_\\1 \\2 \\" >> _script
26387 # echo "#endif/" >> _script
26388 # now executing _script on _DEF input to create _OUT output file
26389 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
26390 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
26391 echo ' ' >>$tmp/pconfig.h
26392 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
26393
26394 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
26395 echo ' ' >>$tmp/pconfig.h
26396 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
26397 echo "#endif" >>$tmp/pconfig.h
26398 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
26400$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
26401 else
26402 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
26403$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26404 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
26405 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
26406 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
26407$as_echo X"$ac_prefix_conf_OUT" |
26408 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26409 s//\1/
26410 q
26411 }
26412 /^X\(\/\/\)[^/].*/{
26413 s//\1/
26414 q
26415 }
26416 /^X\(\/\/\)$/{
26417 s//\1/
26418 q
26419 }
26420 /^X\(\/\).*/{
26421 s//\1/
26422 q
26423 }
26424 s/.*/./; q'`
26425 as_dir="$ac_dir"; as_fn_mkdir_p
26426 rm -f "$ac_prefix_conf_OUT"
26427 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
26428 fi
26429 cp conftest.prefix _configs.sed
26430 else
26431 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
26432 fi
26433 rm -f conftest.*
26434fi
26435 ;;
26436 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26437 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26438 # are listed without --file. Let's play safe and only enable the eval
26439 # if we detect the quoting.
26440 case $CONFIG_FILES in
26441 *\'*) eval set x "$CONFIG_FILES" ;;
26442 *) set x $CONFIG_FILES ;;
26443 esac
26444 shift
26445 for mf
26446 do
26447 # Strip MF so we end up with the name of the file.
26448 mf=`echo "$mf" | sed -e 's/:.*$//'`
26449 # Check whether this is an Automake generated Makefile or not.
26450 # We used to match only the files named `Makefile.in', but
26451 # some people rename them; so instead we look at the file content.
26452 # Grep'ing the first line is not enough: some people post-process
26453 # each Makefile.in and add a new line on top of each file to say so.
26454 # Grep'ing the whole file is not good either: AIX grep has a line
26455 # limit of 2048, but all sed's we know have understand at least 4000.
26456 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26457 dirpart=`$as_dirname -- "$mf" ||
26458$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26459 X"$mf" : 'X\(//\)[^/]' \| \
26460 X"$mf" : 'X\(//\)$' \| \
26461 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26462$as_echo X"$mf" |
26463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26464 s//\1/
26465 q
26466 }
26467 /^X\(\/\/\)[^/].*/{
26468 s//\1/
26469 q
26470 }
26471 /^X\(\/\/\)$/{
26472 s//\1/
26473 q
26474 }
26475 /^X\(\/\).*/{
26476 s//\1/
26477 q
26478 }
26479 s/.*/./; q'`
26480 else
26481 continue
26482 fi
26483 # Extract the definition of DEPDIR, am__include, and am__quote
26484 # from the Makefile without running `make'.
26485 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26486 test -z "$DEPDIR" && continue
26487 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26488 test -z "am__include" && continue
26489 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26490 # When using ansi2knr, U may be empty or an underscore; expand it
26491 U=`sed -n 's/^U = //p' < "$mf"`
26492 # Find all dependency output files, they are included files with
26493 # $(DEPDIR) in their names. We invoke sed twice because it is the
26494 # simplest approach to changing $(DEPDIR) to its actual value in the
26495 # expansion.
26496 for file in `sed -n "
26497 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26498 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26499 # Make sure the directory exists.
26500 test -f "$dirpart/$file" && continue
26501 fdir=`$as_dirname -- "$file" ||
26502$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26503 X"$file" : 'X\(//\)[^/]' \| \
26504 X"$file" : 'X\(//\)$' \| \
26505 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26506$as_echo X"$file" |
26507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26508 s//\1/
26509 q
26510 }
26511 /^X\(\/\/\)[^/].*/{
26512 s//\1/
26513 q
26514 }
26515 /^X\(\/\/\)$/{
26516 s//\1/
26517 q
26518 }
26519 /^X\(\/\).*/{
26520 s//\1/
26521 q
26522 }
26523 s/.*/./; q'`
26524 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26525 # echo "creating $dirpart/$file"
26526 echo '# dummy' > "$dirpart/$file"
26527 done
26528 done
26529}
26530 ;;
26531 "chmod-libvncserver-config":C) chmod a+x libvncserver-config ;;
26532
26533 esac
26534done # for ac_tag
26535
26536
26537as_fn_exit 0
26538_ACEOF
26539ac_clean_files=$ac_clean_files_save
26540
26541test $ac_write_fail = 0 ||
26542 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26543
26544
26545# configure is writing to config.log, and then calls config.status.
26546# config.status does its own redirection, appending to config.log.
26547# Unfortunately, on DOS this fails, as config.log is still kept open
26548# by configure, so config.status won't be able to write to it; its
26549# output is simply discarded. So we exec the FD to /dev/null,
26550# effectively closing config.log, so it can be properly (re)opened and
26551# appended to by config.status. When coming back to configure, we
26552# need to make the FD available again.
26553if test "$no_create" != yes; then
26554 ac_cs_success=:
26555 ac_config_status_args=
26556 test "$silent" = yes &&
26557 ac_config_status_args="$ac_config_status_args --quiet"
26558 exec 5>/dev/null
26559 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26560 exec 5>>config.log
26561 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26562 # would make configure fail if this is the last instruction.
26563 $ac_cs_success || as_fn_exit 1
26564fi
26565if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26567$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26568fi
26569
26570chmod a+x ./libvncserver-config
26571