blob: 66c0ef870e1336b28ec70c3d9fd8b7a315902875 [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 @S|@? 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 "@S|@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 @S|@as_val. Take advantage of shells that can avoid forks. The arguments
392@%:@ must be portable across @S|@(()) 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 @S|@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=.
728LIB@&t@OBJS=
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
794LIB@&t@OBJS
795HAVE_GNUTLS_FALSE
796HAVE_GNUTLS_TRUE
797LIBGCRYPT_LIBS
798LIBGCRYPT_CFLAGS
799LIBGCRYPT_CONFIG
800WSOCKLIB
801MINGW_FALSE
802MINGW_TRUE
803HAVE_LIBGTK_FALSE
804HAVE_LIBGTK_TRUE
805SDL_LIBS
806SDL_CFLAGS
807HAVE_LIBSDL_FALSE
808HAVE_LIBSDL_TRUE
809HAVE_LIBPNG_FALSE
810HAVE_LIBPNG_TRUE
811HAVE_LIBJPEG_FALSE
812HAVE_LIBJPEG_TRUE
813HAVE_LIBZ_FALSE
814HAVE_LIBZ_TRUE
815WITH_WEBSOCKETS_FALSE
816WITH_WEBSOCKETS_TRUE
817WITH_TIGHTVNC_FILETRANSFER_FALSE
818WITH_TIGHTVNC_FILETRANSFER_TRUE
819HAVE_LIBPTHREAD_FALSE
820HAVE_LIBPTHREAD_TRUE
821JPEG_LDFLAGS
822HAVE_SYSTEM_LIBVNCSERVER_FALSE
823HAVE_SYSTEM_LIBVNCSERVER_TRUE
824SYSTEM_LIBVNCSERVER_LIBS
825SYSTEM_LIBVNCSERVER_CFLAGS
826OSX_OPENGL_FALSE
827OSX_OPENGL_TRUE
828AVAHI_LIBS
829AVAHI_CFLAGS
830HAVE_X11_FALSE
831HAVE_X11_TRUE
832X_EXTRA_LIBS
833X_LIBS
834X_PRE_LIBS
835X_CFLAGS
836XMKMF
837HAVE_LIBSSL_FALSE
838HAVE_LIBSSL_TRUE
839SSL_LIBS
840CRYPT_LIBS
841HAVE_MP3LAME_FALSE
842HAVE_MP3LAME_TRUE
843WITH_FFMPEG_FALSE
844WITH_FFMPEG_TRUE
845with_ffmpeg
846LIBTOOL
847ac_ct_F77
848FFLAGS
849F77
850CXXCPP
851am__fastdepCXX_FALSE
852am__fastdepCXX_TRUE
853CXXDEPMODE
854ac_ct_CXX
855CXXFLAGS
856CXX
857CPP
858OBJDUMP
859AS
860DLLTOOL
861RANLIB
862AR
863ECHO
864LN_S
865EGREP
866GREP
867host_os
868host_vendor
869host_cpu
870host
871build_os
872build_vendor
873build_cpu
874build
875am__fastdepCC_FALSE
876am__fastdepCC_TRUE
877CCDEPMODE
878am__nodep
879AMDEPBACKSLASH
880AMDEP_FALSE
881AMDEP_TRUE
882am__quote
883am__include
884DEPDIR
885OBJEXT
886EXEEXT
887ac_ct_CC
888CPPFLAGS
889LDFLAGS
890CFLAGS
891CC
892AM_BACKSLASH
893AM_DEFAULT_VERBOSITY
894AM_DEFAULT_V
895AM_V
896am__untar
897am__tar
898AMTAR
899am__leading_dot
900SET_MAKE
901AWK
902mkdir_p
903MKDIR_P
904INSTALL_STRIP_PROGRAM
905STRIP
906install_sh
907MAKEINFO
908AUTOHEADER
909AUTOMAKE
910AUTOCONF
911ACLOCAL
912VERSION
913PACKAGE
914CYGPATH_W
915am__isrc
916INSTALL_DATA
917INSTALL_SCRIPT
918INSTALL_PROGRAM
919target_alias
920host_alias
921build_alias
922LIBS
923ECHO_T
924ECHO_N
925ECHO_C
926DEFS
927mandir
928localedir
929libdir
930psdir
931pdfdir
932dvidir
933htmldir
934infodir
935docdir
936oldincludedir
937includedir
938localstatedir
939sharedstatedir
940sysconfdir
941datadir
942datarootdir
943libexecdir
944sbindir
945bindir
946program_transform_name
947prefix
948exec_prefix
949PACKAGE_URL
950PACKAGE_BUGREPORT
951PACKAGE_STRING
952PACKAGE_VERSION
953PACKAGE_TARNAME
954PACKAGE_NAME
955PATH_SEPARATOR
956SHELL'
957ac_subst_files=''
958ac_user_opts='
959enable_option_checking
960enable_silent_rules
961enable_dependency_tracking
962enable_shared
963enable_static
964enable_fast_install
965with_gnu_ld
966enable_libtool_lock
967with_pic
968with_tags
969with_tightvnc_filetransfer
970with_websockets
971with_24bpp
972with_ffmpeg
973with_crypt
974with_crypto
975with_ssl
976with_x
977with_system_libvncserver
978with_x11vnc
979with_xkeyboard
980with_xinerama
981with_xrandr
982with_xfixes
983with_xdamage
984with_xtrap
985with_xrecord
986with_fbpm
987with_dpms
988with_v4l
989with_fbdev
990with_uinput
991with_macosx_native
992with_avahi
993with_jpeg
994with_png
995with_libz
996with_zlib
997with_pthread
998with_sdl_config
999with_gcrypt
1000with_client_gcrypt
1001with_libgcrypt_prefix
1002with_gnutls
1003with_ipv6
1004'
1005 ac_precious_vars='build_alias
1006host_alias
1007target_alias
1008CC
1009CFLAGS
1010LDFLAGS
1011LIBS
1012CPPFLAGS
1013CPP
1014CXX
1015CXXFLAGS
1016CCC
1017CXXCPP
1018F77
1019FFLAGS
1020XMKMF
1021JPEG_LDFLAGS'
1022
1023
1024# Initialize some variables set by options.
1025ac_init_help=
1026ac_init_version=false
1027ac_unrecognized_opts=
1028ac_unrecognized_sep=
1029# The variables have the same names as the options, with
1030# dashes changed to underlines.
1031cache_file=/dev/null
1032exec_prefix=NONE
1033no_create=
1034no_recursion=
1035prefix=NONE
1036program_prefix=NONE
1037program_suffix=NONE
1038program_transform_name=s,x,x,
1039silent=
1040site=
1041srcdir=
1042verbose=
1043x_includes=NONE
1044x_libraries=NONE
1045
1046# Installation directory options.
1047# These are left unexpanded so users can "make install exec_prefix=/foo"
1048# and all the variables that are supposed to be based on exec_prefix
1049# by default will actually change.
1050# Use braces instead of parens because sh, perl, etc. also accept them.
1051# (The list follows the same order as the GNU Coding Standards.)
1052bindir='${exec_prefix}/bin'
1053sbindir='${exec_prefix}/sbin'
1054libexecdir='${exec_prefix}/libexec'
1055datarootdir='${prefix}/share'
1056datadir='${datarootdir}'
1057sysconfdir='${prefix}/etc'
1058sharedstatedir='${prefix}/com'
1059localstatedir='${prefix}/var'
1060includedir='${prefix}/include'
1061oldincludedir='/usr/include'
1062docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1063infodir='${datarootdir}/info'
1064htmldir='${docdir}'
1065dvidir='${docdir}'
1066pdfdir='${docdir}'
1067psdir='${docdir}'
1068libdir='${exec_prefix}/lib'
1069localedir='${datarootdir}/locale'
1070mandir='${datarootdir}/man'
1071
1072ac_prev=
1073ac_dashdash=
1074for ac_option
1075do
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1081 fi
1082
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1088
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1090
1091 case $ac_dashdash$ac_option in
1092 --)
1093 ac_dashdash=yes ;;
1094
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096 ac_prev=bindir ;;
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1099
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1104
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1111
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1114
1115 -datadir | --datadir | --datadi | --datad)
1116 ac_prev=datadir ;;
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1119
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1126
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1135 *"
1136"enable_$ac_useropt"
1137"*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval enable_$ac_useropt=no ;;
1142
1143 -docdir | --docdir | --docdi | --doc | --do)
1144 ac_prev=docdir ;;
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1147
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149 ac_prev=dvidir ;;
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1152
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1161 *"
1162"enable_$ac_useropt"
1163"*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1168
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1177
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1180 with_gas=yes ;;
1181
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1188
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1193
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195 ac_prev=htmldir ;;
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197 | --ht=*)
1198 htmldir=$ac_optarg ;;
1199
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1206
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1208 ac_prev=infodir ;;
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1211
1212 -libdir | --libdir | --libdi | --libd)
1213 ac_prev=libdir ;;
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1216
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1223
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1228
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1235
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237 ac_prev=mandir ;;
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1240
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1243 with_fp=no ;;
1244
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1247 no_create=yes ;;
1248
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 no_recursion=yes ;;
1252
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1261
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263 ac_prev=prefix ;;
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1266
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1273
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1280
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1297
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299 ac_prev=pdfdir ;;
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1302
1303 -psdir | --psdir | --psdi | --psd | --ps)
1304 ac_prev=psdir ;;
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 psdir=$ac_optarg ;;
1307
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1310 silent=yes ;;
1311
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 ac_prev=sbindir ;;
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 | --sbi=* | --sb=*)
1316 sbindir=$ac_optarg ;;
1317
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1321 | --sha | --sh)
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 | --sha=* | --sh=*)
1327 sharedstatedir=$ac_optarg ;;
1328
1329 -site | --site | --sit)
1330 ac_prev=site ;;
1331 -site=* | --site=* | --sit=*)
1332 site=$ac_optarg ;;
1333
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 ac_prev=srcdir ;;
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1338
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1345
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1350
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 verbose=yes ;;
1353
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1356
1357 -with-* | --with-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1365 *"
1366"with_$ac_useropt"
1367"*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=\$ac_optarg ;;
1372
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1381 *"
1382"with_$ac_useropt"
1383"*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=no ;;
1388
1389 --x)
1390 # Obsolete; use --with-x.
1391 with_x=yes ;;
1392
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1399
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1406
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408Try \`$0 --help' for more information"
1409 ;;
1410
1411 *=*)
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 esac
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1420
1421 *)
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1427 ;;
1428
1429 esac
1430done
1431
1432if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1435fi
1436
1437if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1439 no) ;;
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442 esac
1443fi
1444
1445# Check all directory arguments for consistency.
1446for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1450do
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1453 case $ac_val in
1454 */ )
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1457 esac
1458 # Be sure to have absolute directory names.
1459 case $ac_val in
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 esac
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464done
1465
1466# There might be people who depend on the old broken behavior: `$host'
1467# used to hold the argument of --host etc.
1468# FIXME: To remove some day.
1469build=$build_alias
1470host=$host_alias
1471target=$target_alias
1472
1473# FIXME: To remove some day.
1474if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1478 cross_compiling=yes
1479 fi
1480fi
1481
1482ac_tool_prefix=
1483test -n "$host_alias" && ac_tool_prefix=$host_alias-
1484
1485test "$silent" = yes && exec 6>/dev/null
1486
1487
1488ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489ac_ls_di=`ls -di .` &&
1490ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1494
1495
1496# Find the source files, if location was not specified.
1497if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505$as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 s//\1/
1508 q
1509 }
1510 /^X\(\/\/\)[^/].*/{
1511 s//\1/
1512 q
1513 }
1514 /^X\(\/\/\)$/{
1515 s//\1/
1516 q
1517 }
1518 /^X\(\/\).*/{
1519 s//\1/
1520 q
1521 }
1522 s/.*/./; q'`
1523 srcdir=$ac_confdir
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 srcdir=..
1526 fi
1527else
1528 ac_srcdir_defaulted=no
1529fi
1530if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1533fi
1534ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535ac_abs_confdir=`(
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 pwd)`
1538# When building in place, set srcdir=.
1539if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 srcdir=.
1541fi
1542# Remove unnecessary trailing slashes from srcdir.
1543# Double slashes in file names in object file debugging info
1544# mess up M-x gdb in Emacs.
1545case $srcdir in
1546*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547esac
1548for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553done
1554
1555#
1556# Report the --help message.
1557#
1558if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1561 cat <<_ACEOF
1562\`configure' configures LibVNCServer 0.9.9 to adapt to many kinds of systems.
1563
1564Usage: $0 [OPTION]... [VAR=VALUE]...
1565
1566To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567VAR=VALUE. See below for descriptions of some of the useful variables.
1568
1569Defaults for the options are specified in brackets.
1570
1571Configuration:
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1581
1582Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 @<:@@S|@ac_default_prefix@:>@
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 @<:@PREFIX@:>@
1587
1588By default, \`make install' will install all the files in
1589\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591for instance \`--prefix=\$HOME'.
1592
1593For better control, use the options below.
1594
1595Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libvncserver@:>@
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1615_ACEOF
1616
1617 cat <<\_ACEOF
1618
1619Program names:
1620 --program-prefix=PREFIX prepend PREFIX to installed program names
1621 --program-suffix=SUFFIX append SUFFIX to installed program names
1622 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1623
1624X features:
1625 --x-includes=DIR X include files are in DIR
1626 --x-libraries=DIR X library files are in DIR
1627
1628System types:
1629 --build=BUILD configure for building on BUILD [guessed]
1630 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1631_ACEOF
1632fi
1633
1634if test -n "$ac_init_help"; then
1635 case $ac_init_help in
1636 short | recursive ) echo "Configuration of LibVNCServer 0.9.9:";;
1637 esac
1638 cat <<\_ACEOF
1639
1640Optional Features:
1641 --disable-option-checking ignore unrecognized --enable/--with options
1642 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1643 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1644 --enable-silent-rules less verbose build output (undo: `make V=1')
1645 --disable-silent-rules verbose build output (undo: `make V=0')
1646 --disable-dependency-tracking speeds up one-time build
1647 --enable-dependency-tracking do not reject slow dependency extractors
1648 --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
1649 --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
1650 --enable-fast-install@<:@=PKGS@:>@
1651 optimize for fast installation @<:@default=yes@:>@
1652 --disable-libtool-lock avoid locking (might break parallel builds)
1653
1654Optional Packages:
1655 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1656 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1657 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
1658 --with-pic try to use only PIC/non-PIC objects @<:@default=use
1659 both@:>@
1660 --with-tags@<:@=TAGS@:>@ include additional configurations @<:@automatic@:>@
1661 --without-filetransfer disable TightVNC file transfer protocol
1662 --without-websockets disable WebSockets support
1663 --without-24bpp disable 24 bpp framebuffers
1664 --with-ffmpeg=dir set ffmpeg home directory
1665 --without-crypt disable support for libcrypt
1666 --without-crypto disable support for openssl libcrypto
1667 --without-ssl disable support for openssl libssl
1668 --with-ssl=DIR use openssl include/library files in DIR
1669 --with-x use the X Window System
1670 --with-system-libvncserver use installed libvncserver for x11vnc
1671 --with-system-libvncserver=DIR use libvncserver installed in DIR for x11vnc
1672 --with-x11vnc configure for building the x11vnc subdir (if present)
1673 you will need to cd to x11vnc and run 'make' etc.
1674 --without-xkeyboard disable xkeyboard extension support
1675 --without-xinerama disable xinerama extension support
1676 --without-xrandr disable xrandr extension support
1677 --without-xfixes disable xfixes extension support
1678 --without-xdamage disable xdamage extension support
1679 --without-xtrap disable xtrap extension support
1680 --without-xrecord disable xrecord extension support
1681 --without-fbpm disable fbpm extension support
1682 --without-dpms disable dpms extension support
1683 --without-v4l disable video4linux support
1684 --without-fbdev disable linux fb device support
1685 --without-uinput disable linux uinput device support
1686 --without-macosx-native disable MacOS X native display support
1687 --without-avahi disable support for Avahi/mDNS
1688 --with-avahi=DIR use avahi include/library files in DIR
1689 --without-jpeg disable support for jpeg
1690 --with-jpeg=DIR use jpeg include/library files in DIR
1691 --without-png disable support for png
1692 --with-png=DIR use png include/library files in DIR
1693 --without-libz disable support for deflate
1694 --without-zlib disable support for deflate
1695 --with-zlib=DIR use zlib include/library files in DIR
1696 --without-pthread disable support for libpthread
1697 --with-sdl-config=FILE
1698 Use the given path to sdl-config when determining
1699 SDL configuration; defaults to "sdl-config"
1700 --without-gcrypt disable support for gcrypt
1701 --without-client-gcrypt disable support for gcrypt in libvncclient
1702 --with-libgcrypt-prefix=PFX
1703 prefix where LIBGCRYPT is installed (optional)
1704 --without-gnutls disable support for gnutls
1705 --with-gnutls=DIR use gnutls include/library files in DIR
1706 --without-ipv6 disable IPv6 support
1707
1708Some influential environment variables:
1709 CC C compiler command
1710 CFLAGS C compiler flags
1711 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1712 nonstandard directory <lib dir>
1713 LIBS libraries to pass to the linker, e.g. -l<library>
1714 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1715 you have headers in a nonstandard directory <include dir>
1716 CPP C preprocessor
1717 CXX C++ compiler command
1718 CXXFLAGS C++ compiler flags
1719 CXXCPP C++ preprocessor
1720 F77 Fortran 77 compiler command
1721 FFLAGS Fortran 77 compiler flags
1722 XMKMF Path to xmkmf, Makefile generator for X Window System
1723 JPEG_LDFLAGS
1724 Linker flags to use when linking with libjpeg, e.g.
1725 -L/foo/dir/lib -Wl,-static -ljpeg -Wl,-shared. This overrides
1726 the linker flags set by --with-jpeg.
1727
1728Use these variables to override the choices made by `configure' or to help
1729it to find libraries and programs with nonstandard names/locations.
1730
1731Report bugs to <http://sourceforge.net/projects/libvncserver>.
1732_ACEOF
1733ac_status=$?
1734fi
1735
1736if test "$ac_init_help" = "recursive"; then
1737 # If there are subdirs, report their specific --help.
1738 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1739 test -d "$ac_dir" ||
1740 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1741 continue
1742 ac_builddir=.
1743
1744case "$ac_dir" in
1745.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1746*)
1747 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1748 # A ".." for each directory in $ac_dir_suffix.
1749 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1750 case $ac_top_builddir_sub in
1751 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1752 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1753 esac ;;
1754esac
1755ac_abs_top_builddir=$ac_pwd
1756ac_abs_builddir=$ac_pwd$ac_dir_suffix
1757# for backward compatibility:
1758ac_top_builddir=$ac_top_build_prefix
1759
1760case $srcdir in
1761 .) # We are building in place.
1762 ac_srcdir=.
1763 ac_top_srcdir=$ac_top_builddir_sub
1764 ac_abs_top_srcdir=$ac_pwd ;;
1765 [\\/]* | ?:[\\/]* ) # Absolute name.
1766 ac_srcdir=$srcdir$ac_dir_suffix;
1767 ac_top_srcdir=$srcdir
1768 ac_abs_top_srcdir=$srcdir ;;
1769 *) # Relative name.
1770 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1771 ac_top_srcdir=$ac_top_build_prefix$srcdir
1772 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1773esac
1774ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1775
1776 cd "$ac_dir" || { ac_status=$?; continue; }
1777 # Check for guested configure.
1778 if test -f "$ac_srcdir/configure.gnu"; then
1779 echo &&
1780 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1781 elif test -f "$ac_srcdir/configure"; then
1782 echo &&
1783 $SHELL "$ac_srcdir/configure" --help=recursive
1784 else
1785 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1786 fi || ac_status=$?
1787 cd "$ac_pwd" || { ac_status=$?; break; }
1788 done
1789fi
1790
1791test -n "$ac_init_help" && exit $ac_status
1792if $ac_init_version; then
1793 cat <<\_ACEOF
1794LibVNCServer configure 0.9.9
1795generated by GNU Autoconf 2.69
1796
1797Copyright (C) 2012 Free Software Foundation, Inc.
1798This configure script is free software; the Free Software Foundation
1799gives unlimited permission to copy, distribute and modify it.
1800_ACEOF
1801 exit
1802fi
1803
1804## ------------------------ ##
1805## Autoconf initialization. ##
1806## ------------------------ ##
1807
1808@%:@ ac_fn_c_try_compile LINENO
1809@%:@ --------------------------
1810@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
1811ac_fn_c_try_compile ()
1812{
1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1814 rm -f conftest.$ac_objext
1815 if { { ac_try="$ac_compile"
1816case "(($ac_try" in
1817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1818 *) ac_try_echo=$ac_try;;
1819esac
1820eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1821$as_echo "$ac_try_echo"; } >&5
1822 (eval "$ac_compile") 2>conftest.err
1823 ac_status=$?
1824 if test -s conftest.err; then
1825 grep -v '^ *+' conftest.err >conftest.er1
1826 cat conftest.er1 >&5
1827 mv -f conftest.er1 conftest.err
1828 fi
1829 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1830 test $ac_status = 0; } && {
1831 test -z "$ac_c_werror_flag" ||
1832 test ! -s conftest.err
1833 } && test -s conftest.$ac_objext; then :
1834 ac_retval=0
1835else
1836 $as_echo "$as_me: failed program was:" >&5
1837sed 's/^/| /' conftest.$ac_ext >&5
1838
1839 ac_retval=1
1840fi
1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1842 as_fn_set_status $ac_retval
1843
1844} @%:@ ac_fn_c_try_compile
1845
1846@%:@ ac_fn_c_try_link LINENO
1847@%:@ -----------------------
1848@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
1849ac_fn_c_try_link ()
1850{
1851 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1852 rm -f conftest.$ac_objext conftest$ac_exeext
1853 if { { ac_try="$ac_link"
1854case "(($ac_try" in
1855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1856 *) ac_try_echo=$ac_try;;
1857esac
1858eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1859$as_echo "$ac_try_echo"; } >&5
1860 (eval "$ac_link") 2>conftest.err
1861 ac_status=$?
1862 if test -s conftest.err; then
1863 grep -v '^ *+' conftest.err >conftest.er1
1864 cat conftest.er1 >&5
1865 mv -f conftest.er1 conftest.err
1866 fi
1867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1868 test $ac_status = 0; } && {
1869 test -z "$ac_c_werror_flag" ||
1870 test ! -s conftest.err
1871 } && test -s conftest$ac_exeext && {
1872 test "$cross_compiling" = yes ||
1873 test -x conftest$ac_exeext
1874 }; then :
1875 ac_retval=0
1876else
1877 $as_echo "$as_me: failed program was:" >&5
1878sed 's/^/| /' conftest.$ac_ext >&5
1879
1880 ac_retval=1
1881fi
1882 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1883 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1884 # interfere with the next link command; also delete a directory that is
1885 # left behind by Apple's compiler. We do this before executing the actions.
1886 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1887 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1888 as_fn_set_status $ac_retval
1889
1890} @%:@ ac_fn_c_try_link
1891
1892@%:@ ac_fn_c_try_cpp LINENO
1893@%:@ ----------------------
1894@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
1895ac_fn_c_try_cpp ()
1896{
1897 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1898 if { { ac_try="$ac_cpp conftest.$ac_ext"
1899case "(($ac_try" in
1900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1901 *) ac_try_echo=$ac_try;;
1902esac
1903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1904$as_echo "$ac_try_echo"; } >&5
1905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1906 ac_status=$?
1907 if test -s conftest.err; then
1908 grep -v '^ *+' conftest.err >conftest.er1
1909 cat conftest.er1 >&5
1910 mv -f conftest.er1 conftest.err
1911 fi
1912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1913 test $ac_status = 0; } > conftest.i && {
1914 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1915 test ! -s conftest.err
1916 }; then :
1917 ac_retval=0
1918else
1919 $as_echo "$as_me: failed program was:" >&5
1920sed 's/^/| /' conftest.$ac_ext >&5
1921
1922 ac_retval=1
1923fi
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1925 as_fn_set_status $ac_retval
1926
1927} @%:@ ac_fn_c_try_cpp
1928
1929@%:@ ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1930@%:@ -------------------------------------------------------
1931@%:@ Tests whether HEADER exists, giving a warning if it cannot be compiled using
1932@%:@ the include files in INCLUDES and setting the cache variable VAR
1933@%:@ accordingly.
1934ac_fn_c_check_header_mongrel ()
1935{
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if eval \${$3+:} false; then :
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1939$as_echo_n "checking for $2... " >&6; }
1940if eval \${$3+:} false; then :
1941 $as_echo_n "(cached) " >&6
1942fi
1943eval ac_res=\$$3
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1945$as_echo "$ac_res" >&6; }
1946else
1947 # Is the header compilable?
1948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1949$as_echo_n "checking $2 usability... " >&6; }
1950cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1951/* end confdefs.h. */
1952$4
1953@%:@include <$2>
1954_ACEOF
1955if ac_fn_c_try_compile "$LINENO"; then :
1956 ac_header_compiler=yes
1957else
1958 ac_header_compiler=no
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1962$as_echo "$ac_header_compiler" >&6; }
1963
1964# Is the header present?
1965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1966$as_echo_n "checking $2 presence... " >&6; }
1967cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1968/* end confdefs.h. */
1969@%:@include <$2>
1970_ACEOF
1971if ac_fn_c_try_cpp "$LINENO"; then :
1972 ac_header_preproc=yes
1973else
1974 ac_header_preproc=no
1975fi
1976rm -f conftest.err conftest.i conftest.$ac_ext
1977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1978$as_echo "$ac_header_preproc" >&6; }
1979
1980# So? What about this header?
1981case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1982 yes:no: )
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1984$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1986$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1987 ;;
1988 no:yes:* )
1989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1990$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1991 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1992$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1994$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1996$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1998$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1999( $as_echo "## ----------------------------------------------------------- ##
2000## Report this to http://sourceforge.net/projects/libvncserver ##
2001## ----------------------------------------------------------- ##"
2002 ) | sed "s/^/$as_me: WARNING: /" >&2
2003 ;;
2004esac
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2006$as_echo_n "checking for $2... " >&6; }
2007if eval \${$3+:} false; then :
2008 $as_echo_n "(cached) " >&6
2009else
2010 eval "$3=\$ac_header_compiler"
2011fi
2012eval ac_res=\$$3
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2014$as_echo "$ac_res" >&6; }
2015fi
2016 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2017
2018} @%:@ ac_fn_c_check_header_mongrel
2019
2020@%:@ ac_fn_c_try_run LINENO
2021@%:@ ----------------------
2022@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
2023@%:@ that executables *can* be run.
2024ac_fn_c_try_run ()
2025{
2026 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2027 if { { ac_try="$ac_link"
2028case "(($ac_try" in
2029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2030 *) ac_try_echo=$ac_try;;
2031esac
2032eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2033$as_echo "$ac_try_echo"; } >&5
2034 (eval "$ac_link") 2>&5
2035 ac_status=$?
2036 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2037 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2038 { { case "(($ac_try" in
2039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2040 *) ac_try_echo=$ac_try;;
2041esac
2042eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2043$as_echo "$ac_try_echo"; } >&5
2044 (eval "$ac_try") 2>&5
2045 ac_status=$?
2046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2047 test $ac_status = 0; }; }; then :
2048 ac_retval=0
2049else
2050 $as_echo "$as_me: program exited with status $ac_status" >&5
2051 $as_echo "$as_me: failed program was:" >&5
2052sed 's/^/| /' conftest.$ac_ext >&5
2053
2054 ac_retval=$ac_status
2055fi
2056 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2058 as_fn_set_status $ac_retval
2059
2060} @%:@ ac_fn_c_try_run
2061
2062@%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2063@%:@ -------------------------------------------------------
2064@%:@ Tests whether HEADER exists and can be compiled using the include files in
2065@%:@ INCLUDES, setting the cache variable VAR accordingly.
2066ac_fn_c_check_header_compile ()
2067{
2068 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2070$as_echo_n "checking for $2... " >&6; }
2071if eval \${$3+:} false; then :
2072 $as_echo_n "(cached) " >&6
2073else
2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2075/* end confdefs.h. */
2076$4
2077@%:@include <$2>
2078_ACEOF
2079if ac_fn_c_try_compile "$LINENO"; then :
2080 eval "$3=yes"
2081else
2082 eval "$3=no"
2083fi
2084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085fi
2086eval ac_res=\$$3
2087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2088$as_echo "$ac_res" >&6; }
2089 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090
2091} @%:@ ac_fn_c_check_header_compile
2092
2093@%:@ ac_fn_c_check_func LINENO FUNC VAR
2094@%:@ ----------------------------------
2095@%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
2096ac_fn_c_check_func ()
2097{
2098 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2100$as_echo_n "checking for $2... " >&6; }
2101if eval \${$3+:} false; then :
2102 $as_echo_n "(cached) " >&6
2103else
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105/* end confdefs.h. */
2106/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2108#define $2 innocuous_$2
2109
2110/* System header to define __stub macros and hopefully few prototypes,
2111 which can conflict with char $2 (); below.
2112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2113 <limits.h> exists even on freestanding compilers. */
2114
2115#ifdef __STDC__
2116# include <limits.h>
2117#else
2118# include <assert.h>
2119#endif
2120
2121#undef $2
2122
2123/* Override any GCC internal prototype to avoid an error.
2124 Use char because int might match the return type of a GCC
2125 builtin and then its argument prototype would still apply. */
2126#ifdef __cplusplus
2127extern "C"
2128#endif
2129char $2 ();
2130/* The GNU C library defines this for functions which it implements
2131 to always fail with ENOSYS. Some functions are actually named
2132 something starting with __ and the normal name is an alias. */
2133#if defined __stub_$2 || defined __stub___$2
2134choke me
2135#endif
2136
2137int
2138main ()
2139{
2140return $2 ();
2141 ;
2142 return 0;
2143}
2144_ACEOF
2145if ac_fn_c_try_link "$LINENO"; then :
2146 eval "$3=yes"
2147else
2148 eval "$3=no"
2149fi
2150rm -f core conftest.err conftest.$ac_objext \
2151 conftest$ac_exeext conftest.$ac_ext
2152fi
2153eval ac_res=\$$3
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2155$as_echo "$ac_res" >&6; }
2156 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2157
2158} @%:@ ac_fn_c_check_func
2159
2160@%:@ ac_fn_cxx_try_compile LINENO
2161@%:@ ----------------------------
2162@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2163ac_fn_cxx_try_compile ()
2164{
2165 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2166 rm -f conftest.$ac_objext
2167 if { { ac_try="$ac_compile"
2168case "(($ac_try" in
2169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2170 *) ac_try_echo=$ac_try;;
2171esac
2172eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2173$as_echo "$ac_try_echo"; } >&5
2174 (eval "$ac_compile") 2>conftest.err
2175 ac_status=$?
2176 if test -s conftest.err; then
2177 grep -v '^ *+' conftest.err >conftest.er1
2178 cat conftest.er1 >&5
2179 mv -f conftest.er1 conftest.err
2180 fi
2181 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2182 test $ac_status = 0; } && {
2183 test -z "$ac_cxx_werror_flag" ||
2184 test ! -s conftest.err
2185 } && test -s conftest.$ac_objext; then :
2186 ac_retval=0
2187else
2188 $as_echo "$as_me: failed program was:" >&5
2189sed 's/^/| /' conftest.$ac_ext >&5
2190
2191 ac_retval=1
2192fi
2193 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2194 as_fn_set_status $ac_retval
2195
2196} @%:@ ac_fn_cxx_try_compile
2197
2198@%:@ ac_fn_cxx_try_cpp LINENO
2199@%:@ ------------------------
2200@%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
2201ac_fn_cxx_try_cpp ()
2202{
2203 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2204 if { { ac_try="$ac_cpp conftest.$ac_ext"
2205case "(($ac_try" in
2206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2207 *) ac_try_echo=$ac_try;;
2208esac
2209eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2210$as_echo "$ac_try_echo"; } >&5
2211 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2212 ac_status=$?
2213 if test -s conftest.err; then
2214 grep -v '^ *+' conftest.err >conftest.er1
2215 cat conftest.er1 >&5
2216 mv -f conftest.er1 conftest.err
2217 fi
2218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2219 test $ac_status = 0; } > conftest.i && {
2220 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2221 test ! -s conftest.err
2222 }; then :
2223 ac_retval=0
2224else
2225 $as_echo "$as_me: failed program was:" >&5
2226sed 's/^/| /' conftest.$ac_ext >&5
2227
2228 ac_retval=1
2229fi
2230 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2231 as_fn_set_status $ac_retval
2232
2233} @%:@ ac_fn_cxx_try_cpp
2234
2235@%:@ ac_fn_cxx_try_link LINENO
2236@%:@ -------------------------
2237@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2238ac_fn_cxx_try_link ()
2239{
2240 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2241 rm -f conftest.$ac_objext conftest$ac_exeext
2242 if { { ac_try="$ac_link"
2243case "(($ac_try" in
2244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2245 *) ac_try_echo=$ac_try;;
2246esac
2247eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2248$as_echo "$ac_try_echo"; } >&5
2249 (eval "$ac_link") 2>conftest.err
2250 ac_status=$?
2251 if test -s conftest.err; then
2252 grep -v '^ *+' conftest.err >conftest.er1
2253 cat conftest.er1 >&5
2254 mv -f conftest.er1 conftest.err
2255 fi
2256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2257 test $ac_status = 0; } && {
2258 test -z "$ac_cxx_werror_flag" ||
2259 test ! -s conftest.err
2260 } && test -s conftest$ac_exeext && {
2261 test "$cross_compiling" = yes ||
2262 test -x conftest$ac_exeext
2263 }; then :
2264 ac_retval=0
2265else
2266 $as_echo "$as_me: failed program was:" >&5
2267sed 's/^/| /' conftest.$ac_ext >&5
2268
2269 ac_retval=1
2270fi
2271 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2272 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2273 # interfere with the next link command; also delete a directory that is
2274 # left behind by Apple's compiler. We do this before executing the actions.
2275 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2276 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2277 as_fn_set_status $ac_retval
2278
2279} @%:@ ac_fn_cxx_try_link
2280
2281@%:@ ac_fn_f77_try_compile LINENO
2282@%:@ ----------------------------
2283@%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
2284ac_fn_f77_try_compile ()
2285{
2286 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2287 rm -f conftest.$ac_objext
2288 if { { ac_try="$ac_compile"
2289case "(($ac_try" in
2290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2291 *) ac_try_echo=$ac_try;;
2292esac
2293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2294$as_echo "$ac_try_echo"; } >&5
2295 (eval "$ac_compile") 2>conftest.err
2296 ac_status=$?
2297 if test -s conftest.err; then
2298 grep -v '^ *+' conftest.err >conftest.er1
2299 cat conftest.er1 >&5
2300 mv -f conftest.er1 conftest.err
2301 fi
2302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2303 test $ac_status = 0; } && {
2304 test -z "$ac_f77_werror_flag" ||
2305 test ! -s conftest.err
2306 } && test -s conftest.$ac_objext; then :
2307 ac_retval=0
2308else
2309 $as_echo "$as_me: failed program was:" >&5
2310sed 's/^/| /' conftest.$ac_ext >&5
2311
2312 ac_retval=1
2313fi
2314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2315 as_fn_set_status $ac_retval
2316
2317} @%:@ ac_fn_f77_try_compile
2318
2319@%:@ ac_fn_f77_try_link LINENO
2320@%:@ -------------------------
2321@%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
2322ac_fn_f77_try_link ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext conftest$ac_exeext
2326 if { { ac_try="$ac_link"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_link") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_f77_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest$ac_exeext && {
2345 test "$cross_compiling" = yes ||
2346 test -x conftest$ac_exeext
2347 }; then :
2348 ac_retval=0
2349else
2350 $as_echo "$as_me: failed program was:" >&5
2351sed 's/^/| /' conftest.$ac_ext >&5
2352
2353 ac_retval=1
2354fi
2355 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2356 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2357 # interfere with the next link command; also delete a directory that is
2358 # left behind by Apple's compiler. We do this before executing the actions.
2359 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2360 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2361 as_fn_set_status $ac_retval
2362
2363} @%:@ ac_fn_f77_try_link
2364
2365@%:@ ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2366@%:@ -------------------------------------------
2367@%:@ Tests whether TYPE exists after having included INCLUDES, setting cache
2368@%:@ variable VAR accordingly.
2369ac_fn_c_check_type ()
2370{
2371 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2373$as_echo_n "checking for $2... " >&6; }
2374if eval \${$3+:} false; then :
2375 $as_echo_n "(cached) " >&6
2376else
2377 eval "$3=no"
2378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2379/* end confdefs.h. */
2380$4
2381int
2382main ()
2383{
2384if (sizeof ($2))
2385 return 0;
2386 ;
2387 return 0;
2388}
2389_ACEOF
2390if ac_fn_c_try_compile "$LINENO"; then :
2391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2392/* end confdefs.h. */
2393$4
2394int
2395main ()
2396{
2397if (sizeof (($2)))
2398 return 0;
2399 ;
2400 return 0;
2401}
2402_ACEOF
2403if ac_fn_c_try_compile "$LINENO"; then :
2404
2405else
2406 eval "$3=yes"
2407fi
2408rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2409fi
2410rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2411fi
2412eval ac_res=\$$3
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2414$as_echo "$ac_res" >&6; }
2415 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2416
2417} @%:@ ac_fn_c_check_type
2418cat >config.log <<_ACEOF
2419This file contains any messages produced by compilers while
2420running configure, to aid debugging if configure makes a mistake.
2421
2422It was created by LibVNCServer $as_me 0.9.9, which was
2423generated by GNU Autoconf 2.69. Invocation command line was
2424
2425 $ $0 $@
2426
2427_ACEOF
2428exec 5>>config.log
2429{
2430cat <<_ASUNAME
2431## --------- ##
2432## Platform. ##
2433## --------- ##
2434
2435hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2436uname -m = `(uname -m) 2>/dev/null || echo unknown`
2437uname -r = `(uname -r) 2>/dev/null || echo unknown`
2438uname -s = `(uname -s) 2>/dev/null || echo unknown`
2439uname -v = `(uname -v) 2>/dev/null || echo unknown`
2440
2441/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2442/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2443
2444/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2445/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2446/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2447/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2448/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2449/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2450/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2451
2452_ASUNAME
2453
2454as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2455for as_dir in $PATH
2456do
2457 IFS=$as_save_IFS
2458 test -z "$as_dir" && as_dir=.
2459 $as_echo "PATH: $as_dir"
2460 done
2461IFS=$as_save_IFS
2462
2463} >&5
2464
2465cat >&5 <<_ACEOF
2466
2467
2468## ----------- ##
2469## Core tests. ##
2470## ----------- ##
2471
2472_ACEOF
2473
2474
2475# Keep a trace of the command line.
2476# Strip out --no-create and --no-recursion so they do not pile up.
2477# Strip out --silent because we don't want to record it for future runs.
2478# Also quote any args containing shell meta-characters.
2479# Make two passes to allow for proper duplicate-argument suppression.
2480ac_configure_args=
2481ac_configure_args0=
2482ac_configure_args1=
2483ac_must_keep_next=false
2484for ac_pass in 1 2
2485do
2486 for ac_arg
2487 do
2488 case $ac_arg in
2489 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2490 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2491 | -silent | --silent | --silen | --sile | --sil)
2492 continue ;;
2493 *\'*)
2494 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2495 esac
2496 case $ac_pass in
2497 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2498 2)
2499 as_fn_append ac_configure_args1 " '$ac_arg'"
2500 if test $ac_must_keep_next = true; then
2501 ac_must_keep_next=false # Got value, back to normal.
2502 else
2503 case $ac_arg in
2504 *=* | --config-cache | -C | -disable-* | --disable-* \
2505 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2506 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2507 | -with-* | --with-* | -without-* | --without-* | --x)
2508 case "$ac_configure_args0 " in
2509 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2510 esac
2511 ;;
2512 -* ) ac_must_keep_next=true ;;
2513 esac
2514 fi
2515 as_fn_append ac_configure_args " '$ac_arg'"
2516 ;;
2517 esac
2518 done
2519done
2520{ ac_configure_args0=; unset ac_configure_args0;}
2521{ ac_configure_args1=; unset ac_configure_args1;}
2522
2523# When interrupted or exit'd, cleanup temporary files, and complete
2524# config.log. We remove comments because anyway the quotes in there
2525# would cause problems or look ugly.
2526# WARNING: Use '\'' to represent an apostrophe within the trap.
2527# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2528trap 'exit_status=$?
2529 # Save into config.log some information that might help in debugging.
2530 {
2531 echo
2532
2533 $as_echo "## ---------------- ##
2534## Cache variables. ##
2535## ---------------- ##"
2536 echo
2537 # The following way of writing the cache mishandles newlines in values,
2538(
2539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2540 eval ac_val=\$$ac_var
2541 case $ac_val in #(
2542 *${as_nl}*)
2543 case $ac_var in #(
2544 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2545$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2546 esac
2547 case $ac_var in #(
2548 _ | IFS | as_nl) ;; #(
2549 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2550 *) { eval $ac_var=; unset $ac_var;} ;;
2551 esac ;;
2552 esac
2553 done
2554 (set) 2>&1 |
2555 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2556 *${as_nl}ac_space=\ *)
2557 sed -n \
2558 "s/'\''/'\''\\\\'\'''\''/g;
2559 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2560 ;; #(
2561 *)
2562 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2563 ;;
2564 esac |
2565 sort
2566)
2567 echo
2568
2569 $as_echo "## ----------------- ##
2570## Output variables. ##
2571## ----------------- ##"
2572 echo
2573 for ac_var in $ac_subst_vars
2574 do
2575 eval ac_val=\$$ac_var
2576 case $ac_val in
2577 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2578 esac
2579 $as_echo "$ac_var='\''$ac_val'\''"
2580 done | sort
2581 echo
2582
2583 if test -n "$ac_subst_files"; then
2584 $as_echo "## ------------------- ##
2585## File substitutions. ##
2586## ------------------- ##"
2587 echo
2588 for ac_var in $ac_subst_files
2589 do
2590 eval ac_val=\$$ac_var
2591 case $ac_val in
2592 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2593 esac
2594 $as_echo "$ac_var='\''$ac_val'\''"
2595 done | sort
2596 echo
2597 fi
2598
2599 if test -s confdefs.h; then
2600 $as_echo "## ----------- ##
2601## confdefs.h. ##
2602## ----------- ##"
2603 echo
2604 cat confdefs.h
2605 echo
2606 fi
2607 test "$ac_signal" != 0 &&
2608 $as_echo "$as_me: caught signal $ac_signal"
2609 $as_echo "$as_me: exit $exit_status"
2610 } >&5
2611 rm -f core *.core core.conftest.* &&
2612 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2613 exit $exit_status
2614' 0
2615for ac_signal in 1 2 13 15; do
2616 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2617done
2618ac_signal=0
2619
2620# confdefs.h avoids OS command line length limits that DEFS can exceed.
2621rm -f -r conftest* confdefs.h
2622
2623$as_echo "/* confdefs.h */" > confdefs.h
2624
2625# Predefined preprocessor variables.
2626
2627cat >>confdefs.h <<_ACEOF
2628@%:@define PACKAGE_NAME "$PACKAGE_NAME"
2629_ACEOF
2630
2631cat >>confdefs.h <<_ACEOF
2632@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2633_ACEOF
2634
2635cat >>confdefs.h <<_ACEOF
2636@%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
2637_ACEOF
2638
2639cat >>confdefs.h <<_ACEOF
2640@%:@define PACKAGE_STRING "$PACKAGE_STRING"
2641_ACEOF
2642
2643cat >>confdefs.h <<_ACEOF
2644@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2645_ACEOF
2646
2647cat >>confdefs.h <<_ACEOF
2648@%:@define PACKAGE_URL "$PACKAGE_URL"
2649_ACEOF
2650
2651
2652# Let the site file select an alternate cache file if it wants to.
2653# Prefer an explicitly selected file to automatically selected ones.
2654ac_site_file1=NONE
2655ac_site_file2=NONE
2656if test -n "$CONFIG_SITE"; then
2657 # We do not want a PATH search for config.site.
2658 case $CONFIG_SITE in @%:@((
2659 -*) ac_site_file1=./$CONFIG_SITE;;
2660 */*) ac_site_file1=$CONFIG_SITE;;
2661 *) ac_site_file1=./$CONFIG_SITE;;
2662 esac
2663elif test "x$prefix" != xNONE; then
2664 ac_site_file1=$prefix/share/config.site
2665 ac_site_file2=$prefix/etc/config.site
2666else
2667 ac_site_file1=$ac_default_prefix/share/config.site
2668 ac_site_file2=$ac_default_prefix/etc/config.site
2669fi
2670for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2671do
2672 test "x$ac_site_file" = xNONE && continue
2673 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2675$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2676 sed 's/^/| /' "$ac_site_file" >&5
2677 . "$ac_site_file" \
2678 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2679$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2680as_fn_error $? "failed to load site script $ac_site_file
2681See \`config.log' for more details" "$LINENO" 5; }
2682 fi
2683done
2684
2685if test -r "$cache_file"; then
2686 # Some versions of bash will fail to source /dev/null (special files
2687 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2688 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2690$as_echo "$as_me: loading cache $cache_file" >&6;}
2691 case $cache_file in
2692 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2693 *) . "./$cache_file";;
2694 esac
2695 fi
2696else
2697 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2698$as_echo "$as_me: creating cache $cache_file" >&6;}
2699 >$cache_file
2700fi
2701
2702# Check that the precious variables saved in the cache have kept the same
2703# value.
2704ac_cache_corrupted=false
2705for ac_var in $ac_precious_vars; do
2706 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2707 eval ac_new_set=\$ac_env_${ac_var}_set
2708 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2709 eval ac_new_val=\$ac_env_${ac_var}_value
2710 case $ac_old_set,$ac_new_set in
2711 set,)
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2713$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2714 ac_cache_corrupted=: ;;
2715 ,set)
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2717$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2718 ac_cache_corrupted=: ;;
2719 ,);;
2720 *)
2721 if test "x$ac_old_val" != "x$ac_new_val"; then
2722 # differences in whitespace do not lead to failure.
2723 ac_old_val_w=`echo x $ac_old_val`
2724 ac_new_val_w=`echo x $ac_new_val`
2725 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2727$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2728 ac_cache_corrupted=:
2729 else
2730 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2731$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2732 eval $ac_var=\$ac_old_val
2733 fi
2734 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2735$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2737$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2738 fi;;
2739 esac
2740 # Pass precious variables to config.status.
2741 if test "$ac_new_set" = set; then
2742 case $ac_new_val in
2743 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2744 *) ac_arg=$ac_var=$ac_new_val ;;
2745 esac
2746 case " $ac_configure_args " in
2747 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2748 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2749 esac
2750 fi
2751done
2752if $ac_cache_corrupted; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2754$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2756$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2757 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2758fi
2759## -------------------- ##
2760## Main body of script. ##
2761## -------------------- ##
2762
2763ac_ext=c
2764ac_cpp='$CPP $CPPFLAGS'
2765ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2766ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2767ac_compiler_gnu=$ac_cv_c_compiler_gnu
2768
2769
2770am__api_version='1.11'
2771
2772ac_aux_dir=
2773for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2774 if test -f "$ac_dir/install-sh"; then
2775 ac_aux_dir=$ac_dir
2776 ac_install_sh="$ac_aux_dir/install-sh -c"
2777 break
2778 elif test -f "$ac_dir/install.sh"; then
2779 ac_aux_dir=$ac_dir
2780 ac_install_sh="$ac_aux_dir/install.sh -c"
2781 break
2782 elif test -f "$ac_dir/shtool"; then
2783 ac_aux_dir=$ac_dir
2784 ac_install_sh="$ac_aux_dir/shtool install -c"
2785 break
2786 fi
2787done
2788if test -z "$ac_aux_dir"; then
2789 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2790fi
2791
2792# These three variables are undocumented and unsupported,
2793# and are intended to be withdrawn in a future Autoconf release.
2794# They can cause serious problems if a builder's source tree is in a directory
2795# whose full name contains unusual characters.
2796ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2797ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2798ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2799
2800
2801# Find a good install program. We prefer a C program (faster),
2802# so one script is as good as another. But avoid the broken or
2803# incompatible versions:
2804# SysV /etc/install, /usr/sbin/install
2805# SunOS /usr/etc/install
2806# IRIX /sbin/install
2807# AIX /bin/install
2808# AmigaOS /C/install, which installs bootblocks on floppy discs
2809# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2810# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2811# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2812# OS/2's system install, which has a completely different semantic
2813# ./install, which can be erroneously created by make from ./install.sh.
2814# Reject install programs that cannot install multiple files.
2815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2816$as_echo_n "checking for a BSD-compatible install... " >&6; }
2817if test -z "$INSTALL"; then
2818if ${ac_cv_path_install+:} false; then :
2819 $as_echo_n "(cached) " >&6
2820else
2821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2822for as_dir in $PATH
2823do
2824 IFS=$as_save_IFS
2825 test -z "$as_dir" && as_dir=.
2826 # Account for people who put trailing slashes in PATH elements.
2827case $as_dir/ in @%:@((
2828 ./ | .// | /[cC]/* | \
2829 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2830 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2831 /usr/ucb/* ) ;;
2832 *)
2833 # OSF1 and SCO ODT 3.0 have their own names for install.
2834 # Don't use installbsd from OSF since it installs stuff as root
2835 # by default.
2836 for ac_prog in ginstall scoinst install; do
2837 for ac_exec_ext in '' $ac_executable_extensions; do
2838 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2839 if test $ac_prog = install &&
2840 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2841 # AIX install. It has an incompatible calling convention.
2842 :
2843 elif test $ac_prog = install &&
2844 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2845 # program-specific install script used by HP pwplus--don't use.
2846 :
2847 else
2848 rm -rf conftest.one conftest.two conftest.dir
2849 echo one > conftest.one
2850 echo two > conftest.two
2851 mkdir conftest.dir
2852 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2853 test -s conftest.one && test -s conftest.two &&
2854 test -s conftest.dir/conftest.one &&
2855 test -s conftest.dir/conftest.two
2856 then
2857 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2858 break 3
2859 fi
2860 fi
2861 fi
2862 done
2863 done
2864 ;;
2865esac
2866
2867 done
2868IFS=$as_save_IFS
2869
2870rm -rf conftest.one conftest.two conftest.dir
2871
2872fi
2873 if test "${ac_cv_path_install+set}" = set; then
2874 INSTALL=$ac_cv_path_install
2875 else
2876 # As a last resort, use the slow shell script. Don't cache a
2877 # value for INSTALL within a source directory, because that will
2878 # break other packages using the cache if that directory is
2879 # removed, or if the value is a relative name.
2880 INSTALL=$ac_install_sh
2881 fi
2882fi
2883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2884$as_echo "$INSTALL" >&6; }
2885
2886# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2887# It thinks the first close brace ends the variable substitution.
2888test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2889
2890test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2891
2892test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2893
2894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2895$as_echo_n "checking whether build environment is sane... " >&6; }
2896# Just in case
2897sleep 1
2898echo timestamp > conftest.file
2899# Reject unsafe characters in $srcdir or the absolute working directory
2900# name. Accept space and tab only in the latter.
2901am_lf='
2902'
2903case `pwd` in
2904 *[\\\"\#\$\&\'\`$am_lf]*)
2905 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2906esac
2907case $srcdir in
2908 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2909 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2910esac
2911
2912# Do `set' in a subshell so we don't clobber the current shell's
2913# arguments. Must try -L first in case configure is actually a
2914# symlink; some systems play weird games with the mod time of symlinks
2915# (eg FreeBSD returns the mod time of the symlink's containing
2916# directory).
2917if (
2918 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2919 if test "$*" = "X"; then
2920 # -L didn't work.
2921 set X `ls -t "$srcdir/configure" conftest.file`
2922 fi
2923 rm -f conftest.file
2924 if test "$*" != "X $srcdir/configure conftest.file" \
2925 && test "$*" != "X conftest.file $srcdir/configure"; then
2926
2927 # If neither matched, then we have a broken ls. This can happen
2928 # if, for instance, CONFIG_SHELL is bash and it inherits a
2929 # broken ls alias from the environment. This has actually
2930 # happened. Such a system could not be considered "sane".
2931 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2932alias in your environment" "$LINENO" 5
2933 fi
2934
2935 test "$2" = conftest.file
2936 )
2937then
2938 # Ok.
2939 :
2940else
2941 as_fn_error $? "newly created file is older than distributed files!
2942Check your system clock" "$LINENO" 5
2943fi
2944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2945$as_echo "yes" >&6; }
2946test "$program_prefix" != NONE &&
2947 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2948# Use a double $ so make ignores it.
2949test "$program_suffix" != NONE &&
2950 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2951# Double any \ or $.
2952# By default was `s,x,x', remove it if useless.
2953ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2954program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2955
2956# expand $ac_aux_dir to an absolute path
2957am_aux_dir=`cd $ac_aux_dir && pwd`
2958
2959if test x"${MISSING+set}" != xset; then
2960 case $am_aux_dir in
2961 *\ * | *\ *)
2962 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2963 *)
2964 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2965 esac
2966fi
2967# Use eval to expand $SHELL
2968if eval "$MISSING --run true"; then
2969 am_missing_run="$MISSING --run "
2970else
2971 am_missing_run=
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2973$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2974fi
2975
2976if test x"${install_sh}" != xset; then
2977 case $am_aux_dir in
2978 *\ * | *\ *)
2979 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2980 *)
2981 install_sh="\${SHELL} $am_aux_dir/install-sh"
2982 esac
2983fi
2984
2985# Installed binaries are usually stripped using `strip' when the user
2986# run `make install-strip'. However `strip' might not be the right
2987# tool to use in cross-compilation environments, therefore Automake
2988# will honor the `STRIP' environment variable to overrule this program.
2989if test "$cross_compiling" != no; then
2990 if test -n "$ac_tool_prefix"; then
2991 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2992set dummy ${ac_tool_prefix}strip; ac_word=$2
2993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2994$as_echo_n "checking for $ac_word... " >&6; }
2995if ${ac_cv_prog_STRIP+:} false; then :
2996 $as_echo_n "(cached) " >&6
2997else
2998 if test -n "$STRIP"; then
2999 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3000else
3001as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3002for as_dir in $PATH
3003do
3004 IFS=$as_save_IFS
3005 test -z "$as_dir" && as_dir=.
3006 for ac_exec_ext in '' $ac_executable_extensions; do
3007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3008 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3010 break 2
3011 fi
3012done
3013 done
3014IFS=$as_save_IFS
3015
3016fi
3017fi
3018STRIP=$ac_cv_prog_STRIP
3019if test -n "$STRIP"; then
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3021$as_echo "$STRIP" >&6; }
3022else
3023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3024$as_echo "no" >&6; }
3025fi
3026
3027
3028fi
3029if test -z "$ac_cv_prog_STRIP"; then
3030 ac_ct_STRIP=$STRIP
3031 # Extract the first word of "strip", so it can be a program name with args.
3032set dummy strip; ac_word=$2
3033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3034$as_echo_n "checking for $ac_word... " >&6; }
3035if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3036 $as_echo_n "(cached) " >&6
3037else
3038 if test -n "$ac_ct_STRIP"; then
3039 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3040else
3041as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3042for as_dir in $PATH
3043do
3044 IFS=$as_save_IFS
3045 test -z "$as_dir" && as_dir=.
3046 for ac_exec_ext in '' $ac_executable_extensions; do
3047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3048 ac_cv_prog_ac_ct_STRIP="strip"
3049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3050 break 2
3051 fi
3052done
3053 done
3054IFS=$as_save_IFS
3055
3056fi
3057fi
3058ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3059if test -n "$ac_ct_STRIP"; then
3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3061$as_echo "$ac_ct_STRIP" >&6; }
3062else
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3064$as_echo "no" >&6; }
3065fi
3066
3067 if test "x$ac_ct_STRIP" = x; then
3068 STRIP=":"
3069 else
3070 case $cross_compiling:$ac_tool_warned in
3071yes:)
3072{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3073$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3074ac_tool_warned=yes ;;
3075esac
3076 STRIP=$ac_ct_STRIP
3077 fi
3078else
3079 STRIP="$ac_cv_prog_STRIP"
3080fi
3081
3082fi
3083INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3084
3085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3086$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3087if test -z "$MKDIR_P"; then
3088 if ${ac_cv_path_mkdir+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3092for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3093do
3094 IFS=$as_save_IFS
3095 test -z "$as_dir" && as_dir=.
3096 for ac_prog in mkdir gmkdir; do
3097 for ac_exec_ext in '' $ac_executable_extensions; do
3098 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3099 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3100 'mkdir (GNU coreutils) '* | \
3101 'mkdir (coreutils) '* | \
3102 'mkdir (fileutils) '4.1*)
3103 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3104 break 3;;
3105 esac
3106 done
3107 done
3108 done
3109IFS=$as_save_IFS
3110
3111fi
3112
3113 test -d ./--version && rmdir ./--version
3114 if test "${ac_cv_path_mkdir+set}" = set; then
3115 MKDIR_P="$ac_cv_path_mkdir -p"
3116 else
3117 # As a last resort, use the slow shell script. Don't cache a
3118 # value for MKDIR_P within a source directory, because that will
3119 # break other packages using the cache if that directory is
3120 # removed, or if the value is a relative name.
3121 MKDIR_P="$ac_install_sh -d"
3122 fi
3123fi
3124{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3125$as_echo "$MKDIR_P" >&6; }
3126
3127mkdir_p="$MKDIR_P"
3128case $mkdir_p in
3129 [\\/$]* | ?:[\\/]*) ;;
3130 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3131esac
3132
3133for ac_prog in gawk mawk nawk awk
3134do
3135 # Extract the first word of "$ac_prog", so it can be a program name with args.
3136set dummy $ac_prog; ac_word=$2
3137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3138$as_echo_n "checking for $ac_word... " >&6; }
3139if ${ac_cv_prog_AWK+:} false; then :
3140 $as_echo_n "(cached) " >&6
3141else
3142 if test -n "$AWK"; then
3143 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3144else
3145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3146for as_dir in $PATH
3147do
3148 IFS=$as_save_IFS
3149 test -z "$as_dir" && as_dir=.
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3152 ac_cv_prog_AWK="$ac_prog"
3153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3154 break 2
3155 fi
3156done
3157 done
3158IFS=$as_save_IFS
3159
3160fi
3161fi
3162AWK=$ac_cv_prog_AWK
3163if test -n "$AWK"; then
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3165$as_echo "$AWK" >&6; }
3166else
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3168$as_echo "no" >&6; }
3169fi
3170
3171
3172 test -n "$AWK" && break
3173done
3174
3175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3176$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3177set x ${MAKE-make}
3178ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3179if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3180 $as_echo_n "(cached) " >&6
3181else
3182 cat >conftest.make <<\_ACEOF
3183SHELL = /bin/sh
3184all:
3185 @echo '@@@%%%=$(MAKE)=@@@%%%'
3186_ACEOF
3187# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3188case `${MAKE-make} -f conftest.make 2>/dev/null` in
3189 *@@@%%%=?*=@@@%%%*)
3190 eval ac_cv_prog_make_${ac_make}_set=yes;;
3191 *)
3192 eval ac_cv_prog_make_${ac_make}_set=no;;
3193esac
3194rm -f conftest.make
3195fi
3196if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3198$as_echo "yes" >&6; }
3199 SET_MAKE=
3200else
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3202$as_echo "no" >&6; }
3203 SET_MAKE="MAKE=${MAKE-make}"
3204fi
3205
3206rm -rf .tst 2>/dev/null
3207mkdir .tst 2>/dev/null
3208if test -d .tst; then
3209 am__leading_dot=.
3210else
3211 am__leading_dot=_
3212fi
3213rmdir .tst 2>/dev/null
3214
3215if test "`cd $srcdir && pwd`" != "`pwd`"; then
3216 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3217 # is not polluted with repeated "-I."
3218 am__isrc=' -I$(srcdir)'
3219 # test to see if srcdir already configured
3220 if test -f $srcdir/config.status; then
3221 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3222 fi
3223fi
3224
3225# test whether we have cygpath
3226if test -z "$CYGPATH_W"; then
3227 if (cygpath --version) >/dev/null 2>/dev/null; then
3228 CYGPATH_W='cygpath -w'
3229 else
3230 CYGPATH_W=echo
3231 fi
3232fi
3233
3234
3235# Define the identity of the package.
3236 PACKAGE=LibVNCServer
3237 VERSION=0.9.9
3238
3239
3240cat >>confdefs.h <<_ACEOF
3241@%:@define PACKAGE "$PACKAGE"
3242_ACEOF
3243
3244
3245cat >>confdefs.h <<_ACEOF
3246@%:@define VERSION "$VERSION"
3247_ACEOF
3248
3249# Some tools Automake needs.
3250
3251ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3252
3253
3254AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3255
3256
3257AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3258
3259
3260AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3261
3262
3263MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3264
3265# We need awk for the "check" target. The system "awk" is bad on
3266# some platforms.
3267# Always define AMTAR for backward compatibility. Yes, it's still used
3268# in the wild :-( We should find a proper way to deprecate it ...
3269AMTAR='$${TAR-tar}'
3270
3271am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3272
3273
3274
3275
3276
3277@%:@ Check whether --enable-silent-rules was given.
3278if test "${enable_silent_rules+set}" = set; then :
3279 enableval=$enable_silent_rules;
3280fi
3281
3282case $enable_silent_rules in
3283yes) AM_DEFAULT_VERBOSITY=0;;
3284no) AM_DEFAULT_VERBOSITY=1;;
3285*) AM_DEFAULT_VERBOSITY=0;;
3286esac
3287am_make=${MAKE-make}
3288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3289$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3290if ${am_cv_make_support_nested_variables+:} false; then :
3291 $as_echo_n "(cached) " >&6
3292else
3293 if $as_echo 'TRUE=$(BAR$(V))
3294BAR0=false
3295BAR1=true
3296V=1
3297am__doit:
3298 @$(TRUE)
3299.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3300 am_cv_make_support_nested_variables=yes
3301else
3302 am_cv_make_support_nested_variables=no
3303fi
3304fi
3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3306$as_echo "$am_cv_make_support_nested_variables" >&6; }
3307if test $am_cv_make_support_nested_variables = yes; then
3308 AM_V='$(V)'
3309 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3310else
3311 AM_V=$AM_DEFAULT_VERBOSITY
3312 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3313fi
3314AM_BACKSLASH='\'
3315
3316ac_config_headers="$ac_config_headers rfbconfig.h"
3317
3318ac_config_headers="$ac_config_headers "
3319
3320
3321ac_config_commands="$ac_config_commands rfb/rfbconfig.h"
3322
3323
3324# Checks for programs.
3325ac_ext=c
3326ac_cpp='$CPP $CPPFLAGS'
3327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3329ac_compiler_gnu=$ac_cv_c_compiler_gnu
3330if test -n "$ac_tool_prefix"; then
3331 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3332set dummy ${ac_tool_prefix}gcc; ac_word=$2
3333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3334$as_echo_n "checking for $ac_word... " >&6; }
3335if ${ac_cv_prog_CC+:} false; then :
3336 $as_echo_n "(cached) " >&6
3337else
3338 if test -n "$CC"; then
3339 ac_cv_prog_CC="$CC" # Let the user override the test.
3340else
3341as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3342for as_dir in $PATH
3343do
3344 IFS=$as_save_IFS
3345 test -z "$as_dir" && as_dir=.
3346 for ac_exec_ext in '' $ac_executable_extensions; do
3347 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3348 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3350 break 2
3351 fi
3352done
3353 done
3354IFS=$as_save_IFS
3355
3356fi
3357fi
3358CC=$ac_cv_prog_CC
3359if test -n "$CC"; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3361$as_echo "$CC" >&6; }
3362else
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3364$as_echo "no" >&6; }
3365fi
3366
3367
3368fi
3369if test -z "$ac_cv_prog_CC"; then
3370 ac_ct_CC=$CC
3371 # Extract the first word of "gcc", so it can be a program name with args.
3372set dummy gcc; ac_word=$2
3373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3374$as_echo_n "checking for $ac_word... " >&6; }
3375if ${ac_cv_prog_ac_ct_CC+:} false; then :
3376 $as_echo_n "(cached) " >&6
3377else
3378 if test -n "$ac_ct_CC"; then
3379 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3380else
3381as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3382for as_dir in $PATH
3383do
3384 IFS=$as_save_IFS
3385 test -z "$as_dir" && as_dir=.
3386 for ac_exec_ext in '' $ac_executable_extensions; do
3387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3388 ac_cv_prog_ac_ct_CC="gcc"
3389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3390 break 2
3391 fi
3392done
3393 done
3394IFS=$as_save_IFS
3395
3396fi
3397fi
3398ac_ct_CC=$ac_cv_prog_ac_ct_CC
3399if test -n "$ac_ct_CC"; then
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3401$as_echo "$ac_ct_CC" >&6; }
3402else
3403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3404$as_echo "no" >&6; }
3405fi
3406
3407 if test "x$ac_ct_CC" = x; then
3408 CC=""
3409 else
3410 case $cross_compiling:$ac_tool_warned in
3411yes:)
3412{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3413$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3414ac_tool_warned=yes ;;
3415esac
3416 CC=$ac_ct_CC
3417 fi
3418else
3419 CC="$ac_cv_prog_CC"
3420fi
3421
3422if test -z "$CC"; then
3423 if test -n "$ac_tool_prefix"; then
3424 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3425set dummy ${ac_tool_prefix}cc; ac_word=$2
3426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3427$as_echo_n "checking for $ac_word... " >&6; }
3428if ${ac_cv_prog_CC+:} false; then :
3429 $as_echo_n "(cached) " >&6
3430else
3431 if test -n "$CC"; then
3432 ac_cv_prog_CC="$CC" # Let the user override the test.
3433else
3434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3435for as_dir in $PATH
3436do
3437 IFS=$as_save_IFS
3438 test -z "$as_dir" && as_dir=.
3439 for ac_exec_ext in '' $ac_executable_extensions; do
3440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3441 ac_cv_prog_CC="${ac_tool_prefix}cc"
3442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3443 break 2
3444 fi
3445done
3446 done
3447IFS=$as_save_IFS
3448
3449fi
3450fi
3451CC=$ac_cv_prog_CC
3452if test -n "$CC"; then
3453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3454$as_echo "$CC" >&6; }
3455else
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458fi
3459
3460
3461 fi
3462fi
3463if test -z "$CC"; then
3464 # Extract the first word of "cc", so it can be a program name with args.
3465set dummy cc; ac_word=$2
3466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3467$as_echo_n "checking for $ac_word... " >&6; }
3468if ${ac_cv_prog_CC+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470else
3471 if test -n "$CC"; then
3472 ac_cv_prog_CC="$CC" # Let the user override the test.
3473else
3474 ac_prog_rejected=no
3475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3476for as_dir in $PATH
3477do
3478 IFS=$as_save_IFS
3479 test -z "$as_dir" && as_dir=.
3480 for ac_exec_ext in '' $ac_executable_extensions; do
3481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3482 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3483 ac_prog_rejected=yes
3484 continue
3485 fi
3486 ac_cv_prog_CC="cc"
3487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3488 break 2
3489 fi
3490done
3491 done
3492IFS=$as_save_IFS
3493
3494if test $ac_prog_rejected = yes; then
3495 # We found a bogon in the path, so make sure we never use it.
3496 set dummy $ac_cv_prog_CC
3497 shift
3498 if test $@%:@ != 0; then
3499 # We chose a different compiler from the bogus one.
3500 # However, it has the same basename, so the bogon will be chosen
3501 # first if we set CC to just the basename; use the full file name.
3502 shift
3503 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3504 fi
3505fi
3506fi
3507fi
3508CC=$ac_cv_prog_CC
3509if test -n "$CC"; then
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3511$as_echo "$CC" >&6; }
3512else
3513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3514$as_echo "no" >&6; }
3515fi
3516
3517
3518fi
3519if test -z "$CC"; then
3520 if test -n "$ac_tool_prefix"; then
3521 for ac_prog in cl.exe
3522 do
3523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3524set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3525{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526$as_echo_n "checking for $ac_word... " >&6; }
3527if ${ac_cv_prog_CC+:} false; then :
3528 $as_echo_n "(cached) " >&6
3529else
3530 if test -n "$CC"; then
3531 ac_cv_prog_CC="$CC" # Let the user override the test.
3532else
3533as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534for as_dir in $PATH
3535do
3536 IFS=$as_save_IFS
3537 test -z "$as_dir" && as_dir=.
3538 for ac_exec_ext in '' $ac_executable_extensions; do
3539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3540 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542 break 2
3543 fi
3544done
3545 done
3546IFS=$as_save_IFS
3547
3548fi
3549fi
3550CC=$ac_cv_prog_CC
3551if test -n "$CC"; then
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3553$as_echo "$CC" >&6; }
3554else
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556$as_echo "no" >&6; }
3557fi
3558
3559
3560 test -n "$CC" && break
3561 done
3562fi
3563if test -z "$CC"; then
3564 ac_ct_CC=$CC
3565 for ac_prog in cl.exe
3566do
3567 # Extract the first word of "$ac_prog", so it can be a program name with args.
3568set dummy $ac_prog; ac_word=$2
3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3570$as_echo_n "checking for $ac_word... " >&6; }
3571if ${ac_cv_prog_ac_ct_CC+:} false; then :
3572 $as_echo_n "(cached) " >&6
3573else
3574 if test -n "$ac_ct_CC"; then
3575 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3576else
3577as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3578for as_dir in $PATH
3579do
3580 IFS=$as_save_IFS
3581 test -z "$as_dir" && as_dir=.
3582 for ac_exec_ext in '' $ac_executable_extensions; do
3583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3584 ac_cv_prog_ac_ct_CC="$ac_prog"
3585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3586 break 2
3587 fi
3588done
3589 done
3590IFS=$as_save_IFS
3591
3592fi
3593fi
3594ac_ct_CC=$ac_cv_prog_ac_ct_CC
3595if test -n "$ac_ct_CC"; then
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3597$as_echo "$ac_ct_CC" >&6; }
3598else
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3600$as_echo "no" >&6; }
3601fi
3602
3603
3604 test -n "$ac_ct_CC" && break
3605done
3606
3607 if test "x$ac_ct_CC" = x; then
3608 CC=""
3609 else
3610 case $cross_compiling:$ac_tool_warned in
3611yes:)
3612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3614ac_tool_warned=yes ;;
3615esac
3616 CC=$ac_ct_CC
3617 fi
3618fi
3619
3620fi
3621
3622
3623test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3624$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3625as_fn_error $? "no acceptable C compiler found in \$PATH
3626See \`config.log' for more details" "$LINENO" 5; }
3627
3628# Provide some information about the compiler.
3629$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3630set X $ac_compile
3631ac_compiler=$2
3632for ac_option in --version -v -V -qversion; do
3633 { { ac_try="$ac_compiler $ac_option >&5"
3634case "(($ac_try" in
3635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3636 *) ac_try_echo=$ac_try;;
3637esac
3638eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3639$as_echo "$ac_try_echo"; } >&5
3640 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3641 ac_status=$?
3642 if test -s conftest.err; then
3643 sed '10a\
3644... rest of stderr output deleted ...
3645 10q' conftest.err >conftest.er1
3646 cat conftest.er1 >&5
3647 fi
3648 rm -f conftest.er1 conftest.err
3649 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3650 test $ac_status = 0; }
3651done
3652
3653cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3654/* end confdefs.h. */
3655
3656int
3657main ()
3658{
3659
3660 ;
3661 return 0;
3662}
3663_ACEOF
3664ac_clean_files_save=$ac_clean_files
3665ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3666# Try to create an executable without -o first, disregard a.out.
3667# It will help us diagnose broken compilers, and finding out an intuition
3668# of exeext.
3669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3670$as_echo_n "checking whether the C compiler works... " >&6; }
3671ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3672
3673# The possible output files:
3674ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3675
3676ac_rmfiles=
3677for ac_file in $ac_files
3678do
3679 case $ac_file in
3680 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3681 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3682 esac
3683done
3684rm -f $ac_rmfiles
3685
3686if { { ac_try="$ac_link_default"
3687case "(($ac_try" in
3688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3689 *) ac_try_echo=$ac_try;;
3690esac
3691eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3692$as_echo "$ac_try_echo"; } >&5
3693 (eval "$ac_link_default") 2>&5
3694 ac_status=$?
3695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3696 test $ac_status = 0; }; then :
3697 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3698# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3699# in a Makefile. We should not override ac_cv_exeext if it was cached,
3700# so that the user can short-circuit this test for compilers unknown to
3701# Autoconf.
3702for ac_file in $ac_files ''
3703do
3704 test -f "$ac_file" || continue
3705 case $ac_file in
3706 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3707 ;;
3708 [ab].out )
3709 # We found the default executable, but exeext='' is most
3710 # certainly right.
3711 break;;
3712 *.* )
3713 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3714 then :; else
3715 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3716 fi
3717 # We set ac_cv_exeext here because the later test for it is not
3718 # safe: cross compilers may not add the suffix if given an `-o'
3719 # argument, so we may need to know it at that point already.
3720 # Even if this section looks crufty: it has the advantage of
3721 # actually working.
3722 break;;
3723 * )
3724 break;;
3725 esac
3726done
3727test "$ac_cv_exeext" = no && ac_cv_exeext=
3728
3729else
3730 ac_file=''
3731fi
3732if test -z "$ac_file"; then :
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734$as_echo "no" >&6; }
3735$as_echo "$as_me: failed program was:" >&5
3736sed 's/^/| /' conftest.$ac_ext >&5
3737
3738{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3739$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3740as_fn_error 77 "C compiler cannot create executables
3741See \`config.log' for more details" "$LINENO" 5; }
3742else
3743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3744$as_echo "yes" >&6; }
3745fi
3746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3747$as_echo_n "checking for C compiler default output file name... " >&6; }
3748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3749$as_echo "$ac_file" >&6; }
3750ac_exeext=$ac_cv_exeext
3751
3752rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3753ac_clean_files=$ac_clean_files_save
3754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3755$as_echo_n "checking for suffix of executables... " >&6; }
3756if { { ac_try="$ac_link"
3757case "(($ac_try" in
3758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3759 *) ac_try_echo=$ac_try;;
3760esac
3761eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3762$as_echo "$ac_try_echo"; } >&5
3763 (eval "$ac_link") 2>&5
3764 ac_status=$?
3765 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3766 test $ac_status = 0; }; then :
3767 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3768# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3769# work properly (i.e., refer to `conftest.exe'), while it won't with
3770# `rm'.
3771for ac_file in conftest.exe conftest conftest.*; do
3772 test -f "$ac_file" || continue
3773 case $ac_file in
3774 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3775 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3776 break;;
3777 * ) break;;
3778 esac
3779done
3780else
3781 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3782$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3783as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3784See \`config.log' for more details" "$LINENO" 5; }
3785fi
3786rm -f conftest conftest$ac_cv_exeext
3787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3788$as_echo "$ac_cv_exeext" >&6; }
3789
3790rm -f conftest.$ac_ext
3791EXEEXT=$ac_cv_exeext
3792ac_exeext=$EXEEXT
3793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3794/* end confdefs.h. */
3795@%:@include <stdio.h>
3796int
3797main ()
3798{
3799FILE *f = fopen ("conftest.out", "w");
3800 return ferror (f) || fclose (f) != 0;
3801
3802 ;
3803 return 0;
3804}
3805_ACEOF
3806ac_clean_files="$ac_clean_files conftest.out"
3807# Check that the compiler produces executables we can run. If not, either
3808# the compiler is broken, or we cross compile.
3809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3810$as_echo_n "checking whether we are cross compiling... " >&6; }
3811if test "$cross_compiling" != yes; then
3812 { { ac_try="$ac_link"
3813case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816esac
3817eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3818$as_echo "$ac_try_echo"; } >&5
3819 (eval "$ac_link") 2>&5
3820 ac_status=$?
3821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3822 test $ac_status = 0; }
3823 if { ac_try='./conftest$ac_cv_exeext'
3824 { { case "(($ac_try" in
3825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3826 *) ac_try_echo=$ac_try;;
3827esac
3828eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3829$as_echo "$ac_try_echo"; } >&5
3830 (eval "$ac_try") 2>&5
3831 ac_status=$?
3832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3833 test $ac_status = 0; }; }; then
3834 cross_compiling=no
3835 else
3836 if test "$cross_compiling" = maybe; then
3837 cross_compiling=yes
3838 else
3839 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3840$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3841as_fn_error $? "cannot run C compiled programs.
3842If you meant to cross compile, use \`--host'.
3843See \`config.log' for more details" "$LINENO" 5; }
3844 fi
3845 fi
3846fi
3847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3848$as_echo "$cross_compiling" >&6; }
3849
3850rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3851ac_clean_files=$ac_clean_files_save
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3853$as_echo_n "checking for suffix of object files... " >&6; }
3854if ${ac_cv_objext+:} false; then :
3855 $as_echo_n "(cached) " >&6
3856else
3857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3858/* end confdefs.h. */
3859
3860int
3861main ()
3862{
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
3868rm -f conftest.o conftest.obj
3869if { { ac_try="$ac_compile"
3870case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873esac
3874eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3875$as_echo "$ac_try_echo"; } >&5
3876 (eval "$ac_compile") 2>&5
3877 ac_status=$?
3878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3879 test $ac_status = 0; }; then :
3880 for ac_file in conftest.o conftest.obj conftest.*; do
3881 test -f "$ac_file" || continue;
3882 case $ac_file in
3883 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3884 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3885 break;;
3886 esac
3887done
3888else
3889 $as_echo "$as_me: failed program was:" >&5
3890sed 's/^/| /' conftest.$ac_ext >&5
3891
3892{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3893$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3894as_fn_error $? "cannot compute suffix of object files: cannot compile
3895See \`config.log' for more details" "$LINENO" 5; }
3896fi
3897rm -f conftest.$ac_cv_objext conftest.$ac_ext
3898fi
3899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3900$as_echo "$ac_cv_objext" >&6; }
3901OBJEXT=$ac_cv_objext
3902ac_objext=$OBJEXT
3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3904$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3905if ${ac_cv_c_compiler_gnu+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907else
3908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3909/* end confdefs.h. */
3910
3911int
3912main ()
3913{
3914#ifndef __GNUC__
3915 choke me
3916#endif
3917
3918 ;
3919 return 0;
3920}
3921_ACEOF
3922if ac_fn_c_try_compile "$LINENO"; then :
3923 ac_compiler_gnu=yes
3924else
3925 ac_compiler_gnu=no
3926fi
3927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3928ac_cv_c_compiler_gnu=$ac_compiler_gnu
3929
3930fi
3931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3932$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3933if test $ac_compiler_gnu = yes; then
3934 GCC=yes
3935else
3936 GCC=
3937fi
3938ac_test_CFLAGS=${CFLAGS+set}
3939ac_save_CFLAGS=$CFLAGS
3940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3941$as_echo_n "checking whether $CC accepts -g... " >&6; }
3942if ${ac_cv_prog_cc_g+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944else
3945 ac_save_c_werror_flag=$ac_c_werror_flag
3946 ac_c_werror_flag=yes
3947 ac_cv_prog_cc_g=no
3948 CFLAGS="-g"
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950/* end confdefs.h. */
3951
3952int
3953main ()
3954{
3955
3956 ;
3957 return 0;
3958}
3959_ACEOF
3960if ac_fn_c_try_compile "$LINENO"; then :
3961 ac_cv_prog_cc_g=yes
3962else
3963 CFLAGS=""
3964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3965/* end confdefs.h. */
3966
3967int
3968main ()
3969{
3970
3971 ;
3972 return 0;
3973}
3974_ACEOF
3975if ac_fn_c_try_compile "$LINENO"; then :
3976
3977else
3978 ac_c_werror_flag=$ac_save_c_werror_flag
3979 CFLAGS="-g"
3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3981/* end confdefs.h. */
3982
3983int
3984main ()
3985{
3986
3987 ;
3988 return 0;
3989}
3990_ACEOF
3991if ac_fn_c_try_compile "$LINENO"; then :
3992 ac_cv_prog_cc_g=yes
3993fi
3994rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995fi
3996rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3997fi
3998rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3999 ac_c_werror_flag=$ac_save_c_werror_flag
4000fi
4001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4002$as_echo "$ac_cv_prog_cc_g" >&6; }
4003if test "$ac_test_CFLAGS" = set; then
4004 CFLAGS=$ac_save_CFLAGS
4005elif test $ac_cv_prog_cc_g = yes; then
4006 if test "$GCC" = yes; then
4007 CFLAGS="-g -O2"
4008 else
4009 CFLAGS="-g"
4010 fi
4011else
4012 if test "$GCC" = yes; then
4013 CFLAGS="-O2"
4014 else
4015 CFLAGS=
4016 fi
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4019$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4020if ${ac_cv_prog_cc_c89+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022else
4023 ac_cv_prog_cc_c89=no
4024ac_save_CC=$CC
4025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4026/* end confdefs.h. */
4027#include <stdarg.h>
4028#include <stdio.h>
4029struct stat;
4030/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4031struct buf { int x; };
4032FILE * (*rcsopen) (struct buf *, struct stat *, int);
4033static char *e (p, i)
4034 char **p;
4035 int i;
4036{
4037 return p[i];
4038}
4039static char *f (char * (*g) (char **, int), char **p, ...)
4040{
4041 char *s;
4042 va_list v;
4043 va_start (v,p);
4044 s = g (p, va_arg (v,int));
4045 va_end (v);
4046 return s;
4047}
4048
4049/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4050 function prototypes and stuff, but not '\xHH' hex character constants.
4051 These don't provoke an error unfortunately, instead are silently treated
4052 as 'x'. The following induces an error, until -std is added to get
4053 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4054 array size at least. It's necessary to write '\x00'==0 to get something
4055 that's true only with -std. */
4056int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4057
4058/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4059 inside strings and character constants. */
4060#define FOO(x) 'x'
4061int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4062
4063int test (int i, double x);
4064struct s1 {int (*f) (int a);};
4065struct s2 {int (*f) (double a);};
4066int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4067int argc;
4068char **argv;
4069int
4070main ()
4071{
4072return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4073 ;
4074 return 0;
4075}
4076_ACEOF
4077for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4078 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4079do
4080 CC="$ac_save_CC $ac_arg"
4081 if ac_fn_c_try_compile "$LINENO"; then :
4082 ac_cv_prog_cc_c89=$ac_arg
4083fi
4084rm -f core conftest.err conftest.$ac_objext
4085 test "x$ac_cv_prog_cc_c89" != "xno" && break
4086done
4087rm -f conftest.$ac_ext
4088CC=$ac_save_CC
4089
4090fi
4091# AC_CACHE_VAL
4092case "x$ac_cv_prog_cc_c89" in
4093 x)
4094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4095$as_echo "none needed" >&6; } ;;
4096 xno)
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4098$as_echo "unsupported" >&6; } ;;
4099 *)
4100 CC="$CC $ac_cv_prog_cc_c89"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4102$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4103esac
4104if test "x$ac_cv_prog_cc_c89" != xno; then :
4105
4106fi
4107
4108ac_ext=c
4109ac_cpp='$CPP $CPPFLAGS'
4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4112ac_compiler_gnu=$ac_cv_c_compiler_gnu
4113DEPDIR="${am__leading_dot}deps"
4114
4115ac_config_commands="$ac_config_commands depfiles"
4116
4117
4118am_make=${MAKE-make}
4119cat > confinc << 'END'
4120am__doit:
4121 @echo this is the am__doit target
4122.PHONY: am__doit
4123END
4124# If we don't find an include directive, just comment out the code.
4125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4126$as_echo_n "checking for style of include used by $am_make... " >&6; }
4127am__include="#"
4128am__quote=
4129_am_result=none
4130# First try GNU make style include.
4131echo "include confinc" > confmf
4132# Ignore all kinds of additional output from `make'.
4133case `$am_make -s -f confmf 2> /dev/null` in #(
4134*the\ am__doit\ target*)
4135 am__include=include
4136 am__quote=
4137 _am_result=GNU
4138 ;;
4139esac
4140# Now try BSD make style include.
4141if test "$am__include" = "#"; then
4142 echo '.include "confinc"' > confmf
4143 case `$am_make -s -f confmf 2> /dev/null` in #(
4144 *the\ am__doit\ target*)
4145 am__include=.include
4146 am__quote="\""
4147 _am_result=BSD
4148 ;;
4149 esac
4150fi
4151
4152
4153{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4154$as_echo "$_am_result" >&6; }
4155rm -f confinc confmf
4156
4157@%:@ Check whether --enable-dependency-tracking was given.
4158if test "${enable_dependency_tracking+set}" = set; then :
4159 enableval=$enable_dependency_tracking;
4160fi
4161
4162if test "x$enable_dependency_tracking" != xno; then
4163 am_depcomp="$ac_aux_dir/depcomp"
4164 AMDEPBACKSLASH='\'
4165 am__nodep='_no'
4166fi
4167 if test "x$enable_dependency_tracking" != xno; then
4168 AMDEP_TRUE=
4169 AMDEP_FALSE='#'
4170else
4171 AMDEP_TRUE='#'
4172 AMDEP_FALSE=
4173fi
4174
4175
4176
4177depcc="$CC" am_compiler_list=
4178
4179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4180$as_echo_n "checking dependency style of $depcc... " >&6; }
4181if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183else
4184 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4185 # We make a subdir and do the tests there. Otherwise we can end up
4186 # making bogus files that we don't know about and never remove. For
4187 # instance it was reported that on HP-UX the gcc test will end up
4188 # making a dummy file named `D' -- because `-MD' means `put the output
4189 # in D'.
4190 rm -rf conftest.dir
4191 mkdir conftest.dir
4192 # Copy depcomp to subdir because otherwise we won't find it if we're
4193 # using a relative directory.
4194 cp "$am_depcomp" conftest.dir
4195 cd conftest.dir
4196 # We will build objects and dependencies in a subdirectory because
4197 # it helps to detect inapplicable dependency modes. For instance
4198 # both Tru64's cc and ICC support -MD to output dependencies as a
4199 # side effect of compilation, but ICC will put the dependencies in
4200 # the current directory while Tru64 will put them in the object
4201 # directory.
4202 mkdir sub
4203
4204 am_cv_CC_dependencies_compiler_type=none
4205 if test "$am_compiler_list" = ""; then
4206 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4207 fi
4208 am__universal=false
4209 case " $depcc " in #(
4210 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4211 esac
4212
4213 for depmode in $am_compiler_list; do
4214 # Setup a source with many dependencies, because some compilers
4215 # like to wrap large dependency lists on column 80 (with \), and
4216 # we should not choose a depcomp mode which is confused by this.
4217 #
4218 # We need to recreate these files for each test, as the compiler may
4219 # overwrite some of them when testing with obscure command lines.
4220 # This happens at least with the AIX C compiler.
4221 : > sub/conftest.c
4222 for i in 1 2 3 4 5 6; do
4223 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4224 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4225 # Solaris 8's {/usr,}/bin/sh.
4226 touch sub/conftst$i.h
4227 done
4228 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4229
4230 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4231 # mode. It turns out that the SunPro C++ compiler does not properly
4232 # handle `-M -o', and we need to detect this. Also, some Intel
4233 # versions had trouble with output in subdirs
4234 am__obj=sub/conftest.${OBJEXT-o}
4235 am__minus_obj="-o $am__obj"
4236 case $depmode in
4237 gcc)
4238 # This depmode causes a compiler race in universal mode.
4239 test "$am__universal" = false || continue
4240 ;;
4241 nosideeffect)
4242 # after this tag, mechanisms are not by side-effect, so they'll
4243 # only be used when explicitly requested
4244 if test "x$enable_dependency_tracking" = xyes; then
4245 continue
4246 else
4247 break
4248 fi
4249 ;;
4250 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4251 # This compiler won't grok `-c -o', but also, the minuso test has
4252 # not run yet. These depmodes are late enough in the game, and
4253 # so weak that their functioning should not be impacted.
4254 am__obj=conftest.${OBJEXT-o}
4255 am__minus_obj=
4256 ;;
4257 none) break ;;
4258 esac
4259 if depmode=$depmode \
4260 source=sub/conftest.c object=$am__obj \
4261 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4262 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4263 >/dev/null 2>conftest.err &&
4264 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4265 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4266 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4267 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4268 # icc doesn't choke on unknown options, it will just issue warnings
4269 # or remarks (even with -Werror). So we grep stderr for any message
4270 # that says an option was ignored or not supported.
4271 # When given -MP, icc 7.0 and 7.1 complain thusly:
4272 # icc: Command line warning: ignoring option '-M'; no argument required
4273 # The diagnosis changed in icc 8.0:
4274 # icc: Command line remark: option '-MP' not supported
4275 if (grep 'ignoring option' conftest.err ||
4276 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4277 am_cv_CC_dependencies_compiler_type=$depmode
4278 break
4279 fi
4280 fi
4281 done
4282
4283 cd ..
4284 rm -rf conftest.dir
4285else
4286 am_cv_CC_dependencies_compiler_type=none
4287fi
4288
4289fi
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4291$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4292CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4293
4294 if
4295 test "x$enable_dependency_tracking" != xno \
4296 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4297 am__fastdepCC_TRUE=
4298 am__fastdepCC_FALSE='#'
4299else
4300 am__fastdepCC_TRUE='#'
4301 am__fastdepCC_FALSE=
4302fi
4303
4304
4305if test "x$CC" != xcc; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4307$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4308else
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4310$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4311fi
4312set dummy $CC; ac_cc=`$as_echo "$2" |
4313 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4314if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4315 $as_echo_n "(cached) " >&6
4316else
4317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4318/* end confdefs.h. */
4319
4320int
4321main ()
4322{
4323
4324 ;
4325 return 0;
4326}
4327_ACEOF
4328# Make sure it works both with $CC and with simple cc.
4329# We do the test twice because some compilers refuse to overwrite an
4330# existing .o file with -o, though they will create one.
4331ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4332rm -f conftest2.*
4333if { { case "(($ac_try" in
4334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4335 *) ac_try_echo=$ac_try;;
4336esac
4337eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4338$as_echo "$ac_try_echo"; } >&5
4339 (eval "$ac_try") 2>&5
4340 ac_status=$?
4341 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4342 test $ac_status = 0; } &&
4343 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346esac
4347eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348$as_echo "$ac_try_echo"; } >&5
4349 (eval "$ac_try") 2>&5
4350 ac_status=$?
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; };
4353then
4354 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4355 if test "x$CC" != xcc; then
4356 # Test first that cc exists at all.
4357 if { ac_try='cc -c conftest.$ac_ext >&5'
4358 { { case "(($ac_try" in
4359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4360 *) ac_try_echo=$ac_try;;
4361esac
4362eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4363$as_echo "$ac_try_echo"; } >&5
4364 (eval "$ac_try") 2>&5
4365 ac_status=$?
4366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4367 test $ac_status = 0; }; }; then
4368 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4369 rm -f conftest2.*
4370 if { { case "(($ac_try" in
4371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4372 *) ac_try_echo=$ac_try;;
4373esac
4374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4375$as_echo "$ac_try_echo"; } >&5
4376 (eval "$ac_try") 2>&5
4377 ac_status=$?
4378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4379 test $ac_status = 0; } &&
4380 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383esac
4384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4385$as_echo "$ac_try_echo"; } >&5
4386 (eval "$ac_try") 2>&5
4387 ac_status=$?
4388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4389 test $ac_status = 0; };
4390 then
4391 # cc works too.
4392 :
4393 else
4394 # cc exists but doesn't like -o.
4395 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4396 fi
4397 fi
4398 fi
4399else
4400 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4401fi
4402rm -f core conftest*
4403
4404fi
4405if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4407$as_echo "yes" >&6; }
4408else
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410$as_echo "no" >&6; }
4411
4412$as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4413
4414fi
4415
4416# FIXME: we rely on the cache variable name because
4417# there is no other way.
4418set dummy $CC
4419am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4420eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4421if test "$am_t" != yes; then
4422 # Losing compiler, so override with the script.
4423 # FIXME: It is wrong to rewrite CC.
4424 # But if we don't then we get into trouble of one sort or another.
4425 # A longer-term fix would be to have automake use am__CC in this case,
4426 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4427 CC="$am_aux_dir/compile $CC"
4428fi
4429
4430
4431if test -z "$CC"; then
4432 CCLD="\$(CC)"
4433else
4434 CCLD="$CC"
4435fi
4436test "x$GCC" = "xyes" && CFLAGS="$CFLAGS -Wall"
4437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4438$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4439set x ${MAKE-make}
4440ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4441if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4442 $as_echo_n "(cached) " >&6
4443else
4444 cat >conftest.make <<\_ACEOF
4445SHELL = /bin/sh
4446all:
4447 @echo '@@@%%%=$(MAKE)=@@@%%%'
4448_ACEOF
4449# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4450case `${MAKE-make} -f conftest.make 2>/dev/null` in
4451 *@@@%%%=?*=@@@%%%*)
4452 eval ac_cv_prog_make_${ac_make}_set=yes;;
4453 *)
4454 eval ac_cv_prog_make_${ac_make}_set=no;;
4455esac
4456rm -f conftest.make
4457fi
4458if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4460$as_echo "yes" >&6; }
4461 SET_MAKE=
4462else
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464$as_echo "no" >&6; }
4465 SET_MAKE="MAKE=${MAKE-make}"
4466fi
4467
4468
4469
4470@%:@ Check whether --enable-shared was given.
4471if test "${enable_shared+set}" = set; then :
4472 enableval=$enable_shared; p=${PACKAGE-default}
4473 case $enableval in
4474 yes) enable_shared=yes ;;
4475 no) enable_shared=no ;;
4476 *)
4477 enable_shared=no
4478 # Look at the argument we got. We use all the common list separators.
4479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4480 for pkg in $enableval; do
4481 IFS="$lt_save_ifs"
4482 if test "X$pkg" = "X$p"; then
4483 enable_shared=yes
4484 fi
4485 done
4486 IFS="$lt_save_ifs"
4487 ;;
4488 esac
4489else
4490 enable_shared=yes
4491fi
4492
4493
4494@%:@ Check whether --enable-static was given.
4495if test "${enable_static+set}" = set; then :
4496 enableval=$enable_static; p=${PACKAGE-default}
4497 case $enableval in
4498 yes) enable_static=yes ;;
4499 no) enable_static=no ;;
4500 *)
4501 enable_static=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_static=yes
4508 fi
4509 done
4510 IFS="$lt_save_ifs"
4511 ;;
4512 esac
4513else
4514 enable_static=yes
4515fi
4516
4517
4518@%:@ Check whether --enable-fast-install was given.
4519if test "${enable_fast_install+set}" = set; then :
4520 enableval=$enable_fast_install; p=${PACKAGE-default}
4521 case $enableval in
4522 yes) enable_fast_install=yes ;;
4523 no) enable_fast_install=no ;;
4524 *)
4525 enable_fast_install=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_fast_install=yes
4532 fi
4533 done
4534 IFS="$lt_save_ifs"
4535 ;;
4536 esac
4537else
4538 enable_fast_install=yes
4539fi
4540
4541
4542# Make sure we can run config.sub.
4543$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4544 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4545
4546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4547$as_echo_n "checking build system type... " >&6; }
4548if ${ac_cv_build+:} false; then :
4549 $as_echo_n "(cached) " >&6
4550else
4551 ac_build_alias=$build_alias
4552test "x$ac_build_alias" = x &&
4553 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4554test "x$ac_build_alias" = x &&
4555 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4556ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4557 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4558
4559fi
4560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4561$as_echo "$ac_cv_build" >&6; }
4562case $ac_cv_build in
4563*-*-*) ;;
4564*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4565esac
4566build=$ac_cv_build
4567ac_save_IFS=$IFS; IFS='-'
4568set x $ac_cv_build
4569shift
4570build_cpu=$1
4571build_vendor=$2
4572shift; shift
4573# Remember, the first character of IFS is used to create $*,
4574# except with old shells:
4575build_os=$*
4576IFS=$ac_save_IFS
4577case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4578
4579
4580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4581$as_echo_n "checking host system type... " >&6; }
4582if ${ac_cv_host+:} false; then :
4583 $as_echo_n "(cached) " >&6
4584else
4585 if test "x$host_alias" = x; then
4586 ac_cv_host=$ac_cv_build
4587else
4588 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4589 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4590fi
4591
4592fi
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4594$as_echo "$ac_cv_host" >&6; }
4595case $ac_cv_host in
4596*-*-*) ;;
4597*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4598esac
4599host=$ac_cv_host
4600ac_save_IFS=$IFS; IFS='-'
4601set x $ac_cv_host
4602shift
4603host_cpu=$1
4604host_vendor=$2
4605shift; shift
4606# Remember, the first character of IFS is used to create $*,
4607# except with old shells:
4608host_os=$*
4609IFS=$ac_save_IFS
4610case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4611
4612
4613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4614$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4615if ${lt_cv_path_SED+:} false; then :
4616 $as_echo_n "(cached) " >&6
4617else
4618 # Loop through the user's path and test for sed and gsed.
4619# Then use that list of sed's as ones to test for truncation.
4620as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621for as_dir in $PATH
4622do
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for lt_ac_prog in sed gsed; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4628 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4629 fi
4630 done
4631 done
4632done
4633lt_ac_max=0
4634lt_ac_count=0
4635# Add /usr/xpg4/bin/sed as it is typically found on Solaris
4636# along with /bin/sed that truncates output.
4637for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4638 test ! -f $lt_ac_sed && continue
4639 cat /dev/null > conftest.in
4640 lt_ac_count=0
4641 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4642 # Check for GNU sed and select it if it is found.
4643 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4644 lt_cv_path_SED=$lt_ac_sed
4645 break
4646 fi
4647 while true; do
4648 cat conftest.in conftest.in >conftest.tmp
4649 mv conftest.tmp conftest.in
4650 cp conftest.in conftest.nl
4651 echo >>conftest.nl
4652 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4653 cmp -s conftest.out conftest.nl || break
4654 # 10000 chars as input seems more than enough
4655 test $lt_ac_count -gt 10 && break
4656 lt_ac_count=`expr $lt_ac_count + 1`
4657 if test $lt_ac_count -gt $lt_ac_max; then
4658 lt_ac_max=$lt_ac_count
4659 lt_cv_path_SED=$lt_ac_sed
4660 fi
4661 done
4662done
4663
4664fi
4665
4666SED=$lt_cv_path_SED
4667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4668$as_echo "$SED" >&6; }
4669
4670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4671$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4672if ${ac_cv_path_GREP+:} false; then :
4673 $as_echo_n "(cached) " >&6
4674else
4675 if test -z "$GREP"; then
4676 ac_path_GREP_found=false
4677 # Loop through the user's path and test for each of PROGNAME-LIST
4678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4679for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4680do
4681 IFS=$as_save_IFS
4682 test -z "$as_dir" && as_dir=.
4683 for ac_prog in grep ggrep; do
4684 for ac_exec_ext in '' $ac_executable_extensions; do
4685 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4686 as_fn_executable_p "$ac_path_GREP" || continue
4687# Check for GNU ac_path_GREP and select it if it is found.
4688 # Check for GNU $ac_path_GREP
4689case `"$ac_path_GREP" --version 2>&1` in
4690*GNU*)
4691 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4692*)
4693 ac_count=0
4694 $as_echo_n 0123456789 >"conftest.in"
4695 while :
4696 do
4697 cat "conftest.in" "conftest.in" >"conftest.tmp"
4698 mv "conftest.tmp" "conftest.in"
4699 cp "conftest.in" "conftest.nl"
4700 $as_echo 'GREP' >> "conftest.nl"
4701 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4702 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4703 as_fn_arith $ac_count + 1 && ac_count=$as_val
4704 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4705 # Best one so far, save it but keep looking for a better one
4706 ac_cv_path_GREP="$ac_path_GREP"
4707 ac_path_GREP_max=$ac_count
4708 fi
4709 # 10*(2^10) chars as input seems more than enough
4710 test $ac_count -gt 10 && break
4711 done
4712 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4713esac
4714
4715 $ac_path_GREP_found && break 3
4716 done
4717 done
4718 done
4719IFS=$as_save_IFS
4720 if test -z "$ac_cv_path_GREP"; then
4721 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4722 fi
4723else
4724 ac_cv_path_GREP=$GREP
4725fi
4726
4727fi
4728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4729$as_echo "$ac_cv_path_GREP" >&6; }
4730 GREP="$ac_cv_path_GREP"
4731
4732
4733{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4734$as_echo_n "checking for egrep... " >&6; }
4735if ${ac_cv_path_EGREP+:} false; then :
4736 $as_echo_n "(cached) " >&6
4737else
4738 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4739 then ac_cv_path_EGREP="$GREP -E"
4740 else
4741 if test -z "$EGREP"; then
4742 ac_path_EGREP_found=false
4743 # Loop through the user's path and test for each of PROGNAME-LIST
4744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4745for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4746do
4747 IFS=$as_save_IFS
4748 test -z "$as_dir" && as_dir=.
4749 for ac_prog in egrep; do
4750 for ac_exec_ext in '' $ac_executable_extensions; do
4751 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4752 as_fn_executable_p "$ac_path_EGREP" || continue
4753# Check for GNU ac_path_EGREP and select it if it is found.
4754 # Check for GNU $ac_path_EGREP
4755case `"$ac_path_EGREP" --version 2>&1` in
4756*GNU*)
4757 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4758*)
4759 ac_count=0
4760 $as_echo_n 0123456789 >"conftest.in"
4761 while :
4762 do
4763 cat "conftest.in" "conftest.in" >"conftest.tmp"
4764 mv "conftest.tmp" "conftest.in"
4765 cp "conftest.in" "conftest.nl"
4766 $as_echo 'EGREP' >> "conftest.nl"
4767 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4768 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4769 as_fn_arith $ac_count + 1 && ac_count=$as_val
4770 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4771 # Best one so far, save it but keep looking for a better one
4772 ac_cv_path_EGREP="$ac_path_EGREP"
4773 ac_path_EGREP_max=$ac_count
4774 fi
4775 # 10*(2^10) chars as input seems more than enough
4776 test $ac_count -gt 10 && break
4777 done
4778 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4779esac
4780
4781 $ac_path_EGREP_found && break 3
4782 done
4783 done
4784 done
4785IFS=$as_save_IFS
4786 if test -z "$ac_cv_path_EGREP"; then
4787 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4788 fi
4789else
4790 ac_cv_path_EGREP=$EGREP
4791fi
4792
4793 fi
4794fi
4795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4796$as_echo "$ac_cv_path_EGREP" >&6; }
4797 EGREP="$ac_cv_path_EGREP"
4798
4799
4800
4801@%:@ Check whether --with-gnu-ld was given.
4802if test "${with_gnu_ld+set}" = set; then :
4803 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4804else
4805 with_gnu_ld=no
4806fi
4807
4808ac_prog=ld
4809if test "$GCC" = yes; then
4810 # Check if gcc -print-prog-name=ld gives a path.
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4812$as_echo_n "checking for ld used by $CC... " >&6; }
4813 case $host in
4814 *-*-mingw*)
4815 # gcc leaves a trailing carriage return which upsets mingw
4816 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4817 *)
4818 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4819 esac
4820 case $ac_prog in
4821 # Accept absolute paths.
4822 [\\/]* | ?:[\\/]*)
4823 re_direlt='/[^/][^/]*/\.\./'
4824 # Canonicalize the pathname of ld
4825 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4826 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4827 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4828 done
4829 test -z "$LD" && LD="$ac_prog"
4830 ;;
4831 "")
4832 # If it fails, then pretend we aren't using GCC.
4833 ac_prog=ld
4834 ;;
4835 *)
4836 # If it is relative, then search for the first ld in PATH.
4837 with_gnu_ld=unknown
4838 ;;
4839 esac
4840elif test "$with_gnu_ld" = yes; then
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4842$as_echo_n "checking for GNU ld... " >&6; }
4843else
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4845$as_echo_n "checking for non-GNU ld... " >&6; }
4846fi
4847if ${lt_cv_path_LD+:} false; then :
4848 $as_echo_n "(cached) " >&6
4849else
4850 if test -z "$LD"; then
4851 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4852 for ac_dir in $PATH; do
4853 IFS="$lt_save_ifs"
4854 test -z "$ac_dir" && ac_dir=.
4855 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4856 lt_cv_path_LD="$ac_dir/$ac_prog"
4857 # Check to see if the program is GNU ld. I'd rather use --version,
4858 # but apparently some variants of GNU ld only accept -v.
4859 # Break only if it was the GNU/non-GNU ld that we prefer.
4860 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4861 *GNU* | *'with BFD'*)
4862 test "$with_gnu_ld" != no && break
4863 ;;
4864 *)
4865 test "$with_gnu_ld" != yes && break
4866 ;;
4867 esac
4868 fi
4869 done
4870 IFS="$lt_save_ifs"
4871else
4872 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4873fi
4874fi
4875
4876LD="$lt_cv_path_LD"
4877if test -n "$LD"; then
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4879$as_echo "$LD" >&6; }
4880else
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4882$as_echo "no" >&6; }
4883fi
4884test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4886$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4887if ${lt_cv_prog_gnu_ld+:} false; then :
4888 $as_echo_n "(cached) " >&6
4889else
4890 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4891case `$LD -v 2>&1 </dev/null` in
4892*GNU* | *'with BFD'*)
4893 lt_cv_prog_gnu_ld=yes
4894 ;;
4895*)
4896 lt_cv_prog_gnu_ld=no
4897 ;;
4898esac
4899fi
4900{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4901$as_echo "$lt_cv_prog_gnu_ld" >&6; }
4902with_gnu_ld=$lt_cv_prog_gnu_ld
4903
4904
4905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
4906$as_echo_n "checking for $LD option to reload object files... " >&6; }
4907if ${lt_cv_ld_reload_flag+:} false; then :
4908 $as_echo_n "(cached) " >&6
4909else
4910 lt_cv_ld_reload_flag='-r'
4911fi
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
4913$as_echo "$lt_cv_ld_reload_flag" >&6; }
4914reload_flag=$lt_cv_ld_reload_flag
4915case $reload_flag in
4916"" | " "*) ;;
4917*) reload_flag=" $reload_flag" ;;
4918esac
4919reload_cmds='$LD$reload_flag -o $output$reload_objs'
4920case $host_os in
4921 darwin*)
4922 if test "$GCC" = yes; then
4923 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4924 else
4925 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4926 fi
4927 ;;
4928esac
4929
4930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD-compatible nm" >&5
4931$as_echo_n "checking for BSD-compatible nm... " >&6; }
4932if ${lt_cv_path_NM+:} false; then :
4933 $as_echo_n "(cached) " >&6
4934else
4935 if test -n "$NM"; then
4936 # Let the user override the test.
4937 lt_cv_path_NM="$NM"
4938else
4939 lt_nm_to_check="${ac_tool_prefix}nm"
4940 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4941 lt_nm_to_check="$lt_nm_to_check nm"
4942 fi
4943 for lt_tmp_nm in $lt_nm_to_check; do
4944 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4945 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4946 IFS="$lt_save_ifs"
4947 test -z "$ac_dir" && ac_dir=.
4948 tmp_nm="$ac_dir/$lt_tmp_nm"
4949 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4950 # Check to see if the nm accepts a BSD-compat flag.
4951 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4952 # nm: unknown option "B" ignored
4953 # Tru64's nm complains that /dev/null is an invalid object file
4954 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4955 */dev/null* | *'Invalid file or object type'*)
4956 lt_cv_path_NM="$tmp_nm -B"
4957 break
4958 ;;
4959 *)
4960 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4961 */dev/null*)
4962 lt_cv_path_NM="$tmp_nm -p"
4963 break
4964 ;;
4965 *)
4966 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4967 continue # so that we can try to find one that supports BSD flags
4968 ;;
4969 esac
4970 ;;
4971 esac
4972 fi
4973 done
4974 IFS="$lt_save_ifs"
4975 done
4976 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4977fi
4978fi
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4980$as_echo "$lt_cv_path_NM" >&6; }
4981NM="$lt_cv_path_NM"
4982
4983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4984$as_echo_n "checking whether ln -s works... " >&6; }
4985LN_S=$as_ln_s
4986if test "$LN_S" = "ln -s"; then
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4988$as_echo "yes" >&6; }
4989else
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4991$as_echo "no, using $LN_S" >&6; }
4992fi
4993
4994{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognise dependent libraries" >&5
4995$as_echo_n "checking how to recognise dependent libraries... " >&6; }
4996if ${lt_cv_deplibs_check_method+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998else
4999 lt_cv_file_magic_cmd='$MAGIC_CMD'
5000lt_cv_file_magic_test_file=
5001lt_cv_deplibs_check_method='unknown'
5002# Need to set the preceding variable on all platforms that support
5003# interlibrary dependencies.
5004# 'none' -- dependencies not supported.
5005# `unknown' -- same as none, but documents that we really don't know.
5006# 'pass_all' -- all dependencies passed with no checks.
5007# 'test_compile' -- check by making test program.
5008# 'file_magic [[regex]]' -- check by looking for files in library path
5009# which responds to the $file_magic_cmd with a given extended regex.
5010# If you have `file' or equivalent on your system and you're not sure
5011# whether `pass_all' will *always* work, you probably want this one.
5012
5013case $host_os in
5014aix4* | aix5*)
5015 lt_cv_deplibs_check_method=pass_all
5016 ;;
5017
5018beos*)
5019 lt_cv_deplibs_check_method=pass_all
5020 ;;
5021
5022bsdi[45]*)
5023 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5024 lt_cv_file_magic_cmd='/usr/bin/file -L'
5025 lt_cv_file_magic_test_file=/shlib/libc.so
5026 ;;
5027
5028cygwin*)
5029 # func_win32_libid is a shell function defined in ltmain.sh
5030 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5031 lt_cv_file_magic_cmd='func_win32_libid'
5032 ;;
5033
5034mingw* | pw32*)
5035 # Base MSYS/MinGW do not provide the 'file' command needed by
5036 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5037 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5038 lt_cv_file_magic_cmd='$OBJDUMP -f'
5039 ;;
5040
5041darwin* | rhapsody*)
5042 lt_cv_deplibs_check_method=pass_all
5043 ;;
5044
5045freebsd* | kfreebsd*-gnu | dragonfly*)
5046 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5047 case $host_cpu in
5048 i*86 )
5049 # Not sure whether the presence of OpenBSD here was a mistake.
5050 # Let's accept both of them until this is cleared up.
5051 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5052 lt_cv_file_magic_cmd=/usr/bin/file
5053 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5054 ;;
5055 esac
5056 else
5057 lt_cv_deplibs_check_method=pass_all
5058 fi
5059 ;;
5060
5061gnu*)
5062 lt_cv_deplibs_check_method=pass_all
5063 ;;
5064
5065hpux10.20* | hpux11*)
5066 lt_cv_file_magic_cmd=/usr/bin/file
5067 case $host_cpu in
5068 ia64*)
5069 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5070 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5071 ;;
5072 hppa*64*)
5073 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]'
5074 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5075 ;;
5076 *)
5077 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
5078 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5079 ;;
5080 esac
5081 ;;
5082
5083interix3*)
5084 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5085 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5086 ;;
5087
5088irix5* | irix6* | nonstopux*)
5089 case $LD in
5090 *-32|*"-32 ") libmagic=32-bit;;
5091 *-n32|*"-n32 ") libmagic=N32;;
5092 *-64|*"-64 ") libmagic=64-bit;;
5093 *) libmagic=never-match;;
5094 esac
5095 lt_cv_deplibs_check_method=pass_all
5096 ;;
5097
5098# This must be Linux ELF.
5099linux*)
5100 lt_cv_deplibs_check_method=pass_all
5101 ;;
5102
5103netbsd*)
5104 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5105 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5106 else
5107 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5108 fi
5109 ;;
5110
5111newos6*)
5112 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5113 lt_cv_file_magic_cmd=/usr/bin/file
5114 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5115 ;;
5116
5117nto-qnx*)
5118 lt_cv_deplibs_check_method=unknown
5119 ;;
5120
5121openbsd*)
5122 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5123 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5124 else
5125 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5126 fi
5127 ;;
5128
5129osf3* | osf4* | osf5*)
5130 lt_cv_deplibs_check_method=pass_all
5131 ;;
5132
5133solaris*)
5134 lt_cv_deplibs_check_method=pass_all
5135 ;;
5136
5137sysv4 | sysv4.3*)
5138 case $host_vendor in
5139 motorola)
5140 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]'
5141 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5142 ;;
5143 ncr)
5144 lt_cv_deplibs_check_method=pass_all
5145 ;;
5146 sequent)
5147 lt_cv_file_magic_cmd='/bin/file'
5148 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5149 ;;
5150 sni)
5151 lt_cv_file_magic_cmd='/bin/file'
5152 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5153 lt_cv_file_magic_test_file=/lib/libc.so
5154 ;;
5155 siemens)
5156 lt_cv_deplibs_check_method=pass_all
5157 ;;
5158 pc)
5159 lt_cv_deplibs_check_method=pass_all
5160 ;;
5161 esac
5162 ;;
5163
5164sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5165 lt_cv_deplibs_check_method=pass_all
5166 ;;
5167esac
5168
5169fi
5170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5171$as_echo "$lt_cv_deplibs_check_method" >&6; }
5172file_magic_cmd=$lt_cv_file_magic_cmd
5173deplibs_check_method=$lt_cv_deplibs_check_method
5174test -z "$deplibs_check_method" && deplibs_check_method=unknown
5175
5176
5177
5178
5179# If no C compiler was specified, use CC.
5180LTCC=${LTCC-"$CC"}
5181
5182# If no C compiler flags were specified, use CFLAGS.
5183LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
5184
5185# Allow CC to be a program name with arguments.
5186compiler=$CC
5187
5188
5189@%:@ Check whether --enable-libtool-lock was given.
5190if test "${enable_libtool_lock+set}" = set; then :
5191 enableval=$enable_libtool_lock;
5192fi
5193
5194test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
5195
5196# Some flags need to be propagated to the compiler or linker for good
5197# libtool support.
5198case $host in
5199ia64-*-hpux*)
5200 # Find out which ABI we are using.
5201 echo 'int i;' > conftest.$ac_ext
5202 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5203 (eval $ac_compile) 2>&5
5204 ac_status=$?
5205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5206 test $ac_status = 0; }; then
5207 case `/usr/bin/file conftest.$ac_objext` in
5208 *ELF-32*)
5209 HPUX_IA64_MODE="32"
5210 ;;
5211 *ELF-64*)
5212 HPUX_IA64_MODE="64"
5213 ;;
5214 esac
5215 fi
5216 rm -rf conftest*
5217 ;;
5218*-*-irix6*)
5219 # Find out which ABI we are using.
5220 echo '#line __oline__ "configure"' > conftest.$ac_ext
5221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5222 (eval $ac_compile) 2>&5
5223 ac_status=$?
5224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5225 test $ac_status = 0; }; then
5226 if test "$lt_cv_prog_gnu_ld" = yes; then
5227 case `/usr/bin/file conftest.$ac_objext` in
5228 *32-bit*)
5229 LD="${LD-ld} -melf32bsmip"
5230 ;;
5231 *N32*)
5232 LD="${LD-ld} -melf32bmipn32"
5233 ;;
5234 *64-bit*)
5235 LD="${LD-ld} -melf64bmip"
5236 ;;
5237 esac
5238 else
5239 case `/usr/bin/file conftest.$ac_objext` in
5240 *32-bit*)
5241 LD="${LD-ld} -32"
5242 ;;
5243 *N32*)
5244 LD="${LD-ld} -n32"
5245 ;;
5246 *64-bit*)
5247 LD="${LD-ld} -64"
5248 ;;
5249 esac
5250 fi
5251 fi
5252 rm -rf conftest*
5253 ;;
5254
5255x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
5256 # Find out which ABI we are using.
5257 echo 'int i;' > conftest.$ac_ext
5258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5259 (eval $ac_compile) 2>&5
5260 ac_status=$?
5261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5262 test $ac_status = 0; }; then
5263 case `/usr/bin/file conftest.o` in
5264 *32-bit*)
5265 case $host in
5266 x86_64-*linux*)
5267 LD="${LD-ld} -m elf_i386"
5268 ;;
5269 ppc64-*linux*|powerpc64-*linux*)
5270 LD="${LD-ld} -m elf32ppclinux"
5271 ;;
5272 s390x-*linux*)
5273 LD="${LD-ld} -m elf_s390"
5274 ;;
5275 sparc64-*linux*)
5276 LD="${LD-ld} -m elf32_sparc"
5277 ;;
5278 esac
5279 ;;
5280 *64-bit*)
5281 case $host in
5282 x86_64-*linux*)
5283 LD="${LD-ld} -m elf_x86_64"
5284 ;;
5285 ppc*-*linux*|powerpc*-*linux*)
5286 LD="${LD-ld} -m elf64ppc"
5287 ;;
5288 s390*-*linux*)
5289 LD="${LD-ld} -m elf64_s390"
5290 ;;
5291 sparc*-*linux*)
5292 LD="${LD-ld} -m elf64_sparc"
5293 ;;
5294 esac
5295 ;;
5296 esac
5297 fi
5298 rm -rf conftest*
5299 ;;
5300
5301*-*-sco3.2v5*)
5302 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
5303 SAVE_CFLAGS="$CFLAGS"
5304 CFLAGS="$CFLAGS -belf"
5305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
5306$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
5307if ${lt_cv_cc_needs_belf+:} false; then :
5308 $as_echo_n "(cached) " >&6
5309else
5310 ac_ext=c
5311ac_cpp='$CPP $CPPFLAGS'
5312ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5313ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5314ac_compiler_gnu=$ac_cv_c_compiler_gnu
5315
5316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5317/* end confdefs.h. */
5318
5319int
5320main ()
5321{
5322
5323 ;
5324 return 0;
5325}
5326_ACEOF
5327if ac_fn_c_try_link "$LINENO"; then :
5328 lt_cv_cc_needs_belf=yes
5329else
5330 lt_cv_cc_needs_belf=no
5331fi
5332rm -f core conftest.err conftest.$ac_objext \
5333 conftest$ac_exeext conftest.$ac_ext
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
5340fi
5341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
5342$as_echo "$lt_cv_cc_needs_belf" >&6; }
5343 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
5344 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
5345 CFLAGS="$SAVE_CFLAGS"
5346 fi
5347 ;;
5348sparc*-*solaris*)
5349 # Find out which ABI we are using.
5350 echo 'int i;' > conftest.$ac_ext
5351 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
5352 (eval $ac_compile) 2>&5
5353 ac_status=$?
5354 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5355 test $ac_status = 0; }; then
5356 case `/usr/bin/file conftest.o` in
5357 *64-bit*)
5358 case $lt_cv_prog_gnu_ld in
5359 yes*) LD="${LD-ld} -m elf64_sparc" ;;
5360 *) LD="${LD-ld} -64" ;;
5361 esac
5362 ;;
5363 esac
5364 fi
5365 rm -rf conftest*
5366 ;;
5367
5368*-*-cygwin* | *-*-mingw* | *-*-pw32*)
5369 if test -n "$ac_tool_prefix"; then
5370 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5371set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5373$as_echo_n "checking for $ac_word... " >&6; }
5374if ${ac_cv_prog_DLLTOOL+:} false; then :
5375 $as_echo_n "(cached) " >&6
5376else
5377 if test -n "$DLLTOOL"; then
5378 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5379else
5380as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5381for as_dir in $PATH
5382do
5383 IFS=$as_save_IFS
5384 test -z "$as_dir" && as_dir=.
5385 for ac_exec_ext in '' $ac_executable_extensions; do
5386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5387 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5389 break 2
5390 fi
5391done
5392 done
5393IFS=$as_save_IFS
5394
5395fi
5396fi
5397DLLTOOL=$ac_cv_prog_DLLTOOL
5398if test -n "$DLLTOOL"; then
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5400$as_echo "$DLLTOOL" >&6; }
5401else
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406
5407fi
5408if test -z "$ac_cv_prog_DLLTOOL"; then
5409 ac_ct_DLLTOOL=$DLLTOOL
5410 # Extract the first word of "dlltool", so it can be a program name with args.
5411set dummy dlltool; ac_word=$2
5412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413$as_echo_n "checking for $ac_word... " >&6; }
5414if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5415 $as_echo_n "(cached) " >&6
5416else
5417 if test -n "$ac_ct_DLLTOOL"; then
5418 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5419else
5420as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5421for as_dir in $PATH
5422do
5423 IFS=$as_save_IFS
5424 test -z "$as_dir" && as_dir=.
5425 for ac_exec_ext in '' $ac_executable_extensions; do
5426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5429 break 2
5430 fi
5431done
5432 done
5433IFS=$as_save_IFS
5434
5435fi
5436fi
5437ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5438if test -n "$ac_ct_DLLTOOL"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5440$as_echo "$ac_ct_DLLTOOL" >&6; }
5441else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443$as_echo "no" >&6; }
5444fi
5445
5446 if test "x$ac_ct_DLLTOOL" = x; then
5447 DLLTOOL="false"
5448 else
5449 case $cross_compiling:$ac_tool_warned in
5450yes:)
5451{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5452$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5453ac_tool_warned=yes ;;
5454esac
5455 DLLTOOL=$ac_ct_DLLTOOL
5456 fi
5457else
5458 DLLTOOL="$ac_cv_prog_DLLTOOL"
5459fi
5460
5461 if test -n "$ac_tool_prefix"; then
5462 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5463set dummy ${ac_tool_prefix}as; ac_word=$2
5464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5465$as_echo_n "checking for $ac_word... " >&6; }
5466if ${ac_cv_prog_AS+:} false; then :
5467 $as_echo_n "(cached) " >&6
5468else
5469 if test -n "$AS"; then
5470 ac_cv_prog_AS="$AS" # Let the user override the test.
5471else
5472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5473for as_dir in $PATH
5474do
5475 IFS=$as_save_IFS
5476 test -z "$as_dir" && as_dir=.
5477 for ac_exec_ext in '' $ac_executable_extensions; do
5478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5479 ac_cv_prog_AS="${ac_tool_prefix}as"
5480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5481 break 2
5482 fi
5483done
5484 done
5485IFS=$as_save_IFS
5486
5487fi
5488fi
5489AS=$ac_cv_prog_AS
5490if test -n "$AS"; then
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5492$as_echo "$AS" >&6; }
5493else
5494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5495$as_echo "no" >&6; }
5496fi
5497
5498
5499fi
5500if test -z "$ac_cv_prog_AS"; then
5501 ac_ct_AS=$AS
5502 # Extract the first word of "as", so it can be a program name with args.
5503set dummy as; ac_word=$2
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505$as_echo_n "checking for $ac_word... " >&6; }
5506if ${ac_cv_prog_ac_ct_AS+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508else
5509 if test -n "$ac_ct_AS"; then
5510 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5511else
5512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5513for as_dir in $PATH
5514do
5515 IFS=$as_save_IFS
5516 test -z "$as_dir" && as_dir=.
5517 for ac_exec_ext in '' $ac_executable_extensions; do
5518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_ac_ct_AS="as"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5521 break 2
5522 fi
5523done
5524 done
5525IFS=$as_save_IFS
5526
5527fi
5528fi
5529ac_ct_AS=$ac_cv_prog_ac_ct_AS
5530if test -n "$ac_ct_AS"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5532$as_echo "$ac_ct_AS" >&6; }
5533else
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535$as_echo "no" >&6; }
5536fi
5537
5538 if test "x$ac_ct_AS" = x; then
5539 AS="false"
5540 else
5541 case $cross_compiling:$ac_tool_warned in
5542yes:)
5543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5545ac_tool_warned=yes ;;
5546esac
5547 AS=$ac_ct_AS
5548 fi
5549else
5550 AS="$ac_cv_prog_AS"
5551fi
5552
5553 if test -n "$ac_tool_prefix"; then
5554 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5555set dummy ${ac_tool_prefix}objdump; ac_word=$2
5556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5557$as_echo_n "checking for $ac_word... " >&6; }
5558if ${ac_cv_prog_OBJDUMP+:} false; then :
5559 $as_echo_n "(cached) " >&6
5560else
5561 if test -n "$OBJDUMP"; then
5562 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5563else
5564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5565for as_dir in $PATH
5566do
5567 IFS=$as_save_IFS
5568 test -z "$as_dir" && as_dir=.
5569 for ac_exec_ext in '' $ac_executable_extensions; do
5570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5571 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5573 break 2
5574 fi
5575done
5576 done
5577IFS=$as_save_IFS
5578
5579fi
5580fi
5581OBJDUMP=$ac_cv_prog_OBJDUMP
5582if test -n "$OBJDUMP"; then
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5584$as_echo "$OBJDUMP" >&6; }
5585else
5586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5587$as_echo "no" >&6; }
5588fi
5589
5590
5591fi
5592if test -z "$ac_cv_prog_OBJDUMP"; then
5593 ac_ct_OBJDUMP=$OBJDUMP
5594 # Extract the first word of "objdump", so it can be a program name with args.
5595set dummy objdump; ac_word=$2
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5597$as_echo_n "checking for $ac_word... " >&6; }
5598if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5599 $as_echo_n "(cached) " >&6
5600else
5601 if test -n "$ac_ct_OBJDUMP"; then
5602 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5603else
5604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5605for as_dir in $PATH
5606do
5607 IFS=$as_save_IFS
5608 test -z "$as_dir" && as_dir=.
5609 for ac_exec_ext in '' $ac_executable_extensions; do
5610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5611 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5613 break 2
5614 fi
5615done
5616 done
5617IFS=$as_save_IFS
5618
5619fi
5620fi
5621ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5622if test -n "$ac_ct_OBJDUMP"; then
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5624$as_echo "$ac_ct_OBJDUMP" >&6; }
5625else
5626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5627$as_echo "no" >&6; }
5628fi
5629
5630 if test "x$ac_ct_OBJDUMP" = x; then
5631 OBJDUMP="false"
5632 else
5633 case $cross_compiling:$ac_tool_warned in
5634yes:)
5635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5637ac_tool_warned=yes ;;
5638esac
5639 OBJDUMP=$ac_ct_OBJDUMP
5640 fi
5641else
5642 OBJDUMP="$ac_cv_prog_OBJDUMP"
5643fi
5644
5645 ;;
5646
5647esac
5648
5649need_locks="$enable_libtool_lock"
5650
5651
5652ac_ext=c
5653ac_cpp='$CPP $CPPFLAGS'
5654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5656ac_compiler_gnu=$ac_cv_c_compiler_gnu
5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5658$as_echo_n "checking how to run the C preprocessor... " >&6; }
5659# On Suns, sometimes $CPP names a directory.
5660if test -n "$CPP" && test -d "$CPP"; then
5661 CPP=
5662fi
5663if test -z "$CPP"; then
5664 if ${ac_cv_prog_CPP+:} false; then :
5665 $as_echo_n "(cached) " >&6
5666else
5667 # Double quotes because CPP needs to be expanded
5668 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5669 do
5670 ac_preproc_ok=false
5671for ac_c_preproc_warn_flag in '' yes
5672do
5673 # Use a header file that comes with gcc, so configuring glibc
5674 # with a fresh cross-compiler works.
5675 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5676 # <limits.h> exists even on freestanding compilers.
5677 # On the NeXT, cc -E runs the code through the compiler's parser,
5678 # not just through cpp. "Syntax error" is here to catch this case.
5679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5680/* end confdefs.h. */
5681@%:@ifdef __STDC__
5682@%:@ include <limits.h>
5683@%:@else
5684@%:@ include <assert.h>
5685@%:@endif
5686 Syntax error
5687_ACEOF
5688if ac_fn_c_try_cpp "$LINENO"; then :
5689
5690else
5691 # Broken: fails on valid input.
5692continue
5693fi
5694rm -f conftest.err conftest.i conftest.$ac_ext
5695
5696 # OK, works on sane cases. Now check whether nonexistent headers
5697 # can be detected and how.
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699/* end confdefs.h. */
5700@%:@include <ac_nonexistent.h>
5701_ACEOF
5702if ac_fn_c_try_cpp "$LINENO"; then :
5703 # Broken: success on invalid input.
5704continue
5705else
5706 # Passes both tests.
5707ac_preproc_ok=:
5708break
5709fi
5710rm -f conftest.err conftest.i conftest.$ac_ext
5711
5712done
5713# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5714rm -f conftest.i conftest.err conftest.$ac_ext
5715if $ac_preproc_ok; then :
5716 break
5717fi
5718
5719 done
5720 ac_cv_prog_CPP=$CPP
5721
5722fi
5723 CPP=$ac_cv_prog_CPP
5724else
5725 ac_cv_prog_CPP=$CPP
5726fi
5727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5728$as_echo "$CPP" >&6; }
5729ac_preproc_ok=false
5730for ac_c_preproc_warn_flag in '' yes
5731do
5732 # Use a header file that comes with gcc, so configuring glibc
5733 # with a fresh cross-compiler works.
5734 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5735 # <limits.h> exists even on freestanding compilers.
5736 # On the NeXT, cc -E runs the code through the compiler's parser,
5737 # not just through cpp. "Syntax error" is here to catch this case.
5738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5739/* end confdefs.h. */
5740@%:@ifdef __STDC__
5741@%:@ include <limits.h>
5742@%:@else
5743@%:@ include <assert.h>
5744@%:@endif
5745 Syntax error
5746_ACEOF
5747if ac_fn_c_try_cpp "$LINENO"; then :
5748
5749else
5750 # Broken: fails on valid input.
5751continue
5752fi
5753rm -f conftest.err conftest.i conftest.$ac_ext
5754
5755 # OK, works on sane cases. Now check whether nonexistent headers
5756 # can be detected and how.
5757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5758/* end confdefs.h. */
5759@%:@include <ac_nonexistent.h>
5760_ACEOF
5761if ac_fn_c_try_cpp "$LINENO"; then :
5762 # Broken: success on invalid input.
5763continue
5764else
5765 # Passes both tests.
5766ac_preproc_ok=:
5767break
5768fi
5769rm -f conftest.err conftest.i conftest.$ac_ext
5770
5771done
5772# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5773rm -f conftest.i conftest.err conftest.$ac_ext
5774if $ac_preproc_ok; then :
5775
5776else
5777 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5778$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5779as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5780See \`config.log' for more details" "$LINENO" 5; }
5781fi
5782
5783ac_ext=c
5784ac_cpp='$CPP $CPPFLAGS'
5785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5787ac_compiler_gnu=$ac_cv_c_compiler_gnu
5788
5789
5790{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5791$as_echo_n "checking for ANSI C header files... " >&6; }
5792if ${ac_cv_header_stdc+:} false; then :
5793 $as_echo_n "(cached) " >&6
5794else
5795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5796/* end confdefs.h. */
5797#include <stdlib.h>
5798#include <stdarg.h>
5799#include <string.h>
5800#include <float.h>
5801
5802int
5803main ()
5804{
5805
5806 ;
5807 return 0;
5808}
5809_ACEOF
5810if ac_fn_c_try_compile "$LINENO"; then :
5811 ac_cv_header_stdc=yes
5812else
5813 ac_cv_header_stdc=no
5814fi
5815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5816
5817if test $ac_cv_header_stdc = yes; then
5818 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5820/* end confdefs.h. */
5821#include <string.h>
5822
5823_ACEOF
5824if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5825 $EGREP "memchr" >/dev/null 2>&1; then :
5826
5827else
5828 ac_cv_header_stdc=no
5829fi
5830rm -f conftest*
5831
5832fi
5833
5834if test $ac_cv_header_stdc = yes; then
5835 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5837/* end confdefs.h. */
5838#include <stdlib.h>
5839
5840_ACEOF
5841if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5842 $EGREP "free" >/dev/null 2>&1; then :
5843
5844else
5845 ac_cv_header_stdc=no
5846fi
5847rm -f conftest*
5848
5849fi
5850
5851if test $ac_cv_header_stdc = yes; then
5852 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5853 if test "$cross_compiling" = yes; then :
5854 :
5855else
5856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5857/* end confdefs.h. */
5858#include <ctype.h>
5859#include <stdlib.h>
5860#if ((' ' & 0x0FF) == 0x020)
5861# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5862# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5863#else
5864# define ISLOWER(c) \
5865 (('a' <= (c) && (c) <= 'i') \
5866 || ('j' <= (c) && (c) <= 'r') \
5867 || ('s' <= (c) && (c) <= 'z'))
5868# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5869#endif
5870
5871#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5872int
5873main ()
5874{
5875 int i;
5876 for (i = 0; i < 256; i++)
5877 if (XOR (islower (i), ISLOWER (i))
5878 || toupper (i) != TOUPPER (i))
5879 return 2;
5880 return 0;
5881}
5882_ACEOF
5883if ac_fn_c_try_run "$LINENO"; then :
5884
5885else
5886 ac_cv_header_stdc=no
5887fi
5888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5889 conftest.$ac_objext conftest.beam conftest.$ac_ext
5890fi
5891
5892fi
5893fi
5894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5895$as_echo "$ac_cv_header_stdc" >&6; }
5896if test $ac_cv_header_stdc = yes; then
5897
5898$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
5899
5900fi
5901
5902# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5903for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5904 inttypes.h stdint.h unistd.h
5905do :
5906 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5907ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5908"
5909if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5910 cat >>confdefs.h <<_ACEOF
5911@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5912_ACEOF
5913
5914fi
5915
5916done
5917
5918
5919for ac_header in dlfcn.h
5920do :
5921 ac_fn_c_check_header_mongrel "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default"
5922if test "x$ac_cv_header_dlfcn_h" = xyes; then :
5923 cat >>confdefs.h <<_ACEOF
5924@%:@define HAVE_DLFCN_H 1
5925_ACEOF
5926
5927fi
5928
5929done
5930
5931ac_ext=cpp
5932ac_cpp='$CXXCPP $CPPFLAGS'
5933ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5934ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5935ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5936if test -z "$CXX"; then
5937 if test -n "$CCC"; then
5938 CXX=$CCC
5939 else
5940 if test -n "$ac_tool_prefix"; then
5941 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5942 do
5943 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5944set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5945{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5946$as_echo_n "checking for $ac_word... " >&6; }
5947if ${ac_cv_prog_CXX+:} false; then :
5948 $as_echo_n "(cached) " >&6
5949else
5950 if test -n "$CXX"; then
5951 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5952else
5953as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5954for as_dir in $PATH
5955do
5956 IFS=$as_save_IFS
5957 test -z "$as_dir" && as_dir=.
5958 for ac_exec_ext in '' $ac_executable_extensions; do
5959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5960 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5962 break 2
5963 fi
5964done
5965 done
5966IFS=$as_save_IFS
5967
5968fi
5969fi
5970CXX=$ac_cv_prog_CXX
5971if test -n "$CXX"; then
5972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5973$as_echo "$CXX" >&6; }
5974else
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5976$as_echo "no" >&6; }
5977fi
5978
5979
5980 test -n "$CXX" && break
5981 done
5982fi
5983if test -z "$CXX"; then
5984 ac_ct_CXX=$CXX
5985 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5986do
5987 # Extract the first word of "$ac_prog", so it can be a program name with args.
5988set dummy $ac_prog; ac_word=$2
5989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990$as_echo_n "checking for $ac_word... " >&6; }
5991if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993else
5994 if test -n "$ac_ct_CXX"; then
5995 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5996else
5997as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998for as_dir in $PATH
5999do
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_ac_ct_CXX="$ac_prog"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6007 fi
6008done
6009 done
6010IFS=$as_save_IFS
6011
6012fi
6013fi
6014ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6015if test -n "$ac_ct_CXX"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6017$as_echo "$ac_ct_CXX" >&6; }
6018else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020$as_echo "no" >&6; }
6021fi
6022
6023
6024 test -n "$ac_ct_CXX" && break
6025done
6026
6027 if test "x$ac_ct_CXX" = x; then
6028 CXX="g++"
6029 else
6030 case $cross_compiling:$ac_tool_warned in
6031yes:)
6032{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6033$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6034ac_tool_warned=yes ;;
6035esac
6036 CXX=$ac_ct_CXX
6037 fi
6038fi
6039
6040 fi
6041fi
6042# Provide some information about the compiler.
6043$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6044set X $ac_compile
6045ac_compiler=$2
6046for ac_option in --version -v -V -qversion; do
6047 { { ac_try="$ac_compiler $ac_option >&5"
6048case "(($ac_try" in
6049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6050 *) ac_try_echo=$ac_try;;
6051esac
6052eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6053$as_echo "$ac_try_echo"; } >&5
6054 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6055 ac_status=$?
6056 if test -s conftest.err; then
6057 sed '10a\
6058... rest of stderr output deleted ...
6059 10q' conftest.err >conftest.er1
6060 cat conftest.er1 >&5
6061 fi
6062 rm -f conftest.er1 conftest.err
6063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6064 test $ac_status = 0; }
6065done
6066
6067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6068$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6069if ${ac_cv_cxx_compiler_gnu+:} false; then :
6070 $as_echo_n "(cached) " >&6
6071else
6072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6073/* end confdefs.h. */
6074
6075int
6076main ()
6077{
6078#ifndef __GNUC__
6079 choke me
6080#endif
6081
6082 ;
6083 return 0;
6084}
6085_ACEOF
6086if ac_fn_cxx_try_compile "$LINENO"; then :
6087 ac_compiler_gnu=yes
6088else
6089 ac_compiler_gnu=no
6090fi
6091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6092ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6093
6094fi
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6096$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6097if test $ac_compiler_gnu = yes; then
6098 GXX=yes
6099else
6100 GXX=
6101fi
6102ac_test_CXXFLAGS=${CXXFLAGS+set}
6103ac_save_CXXFLAGS=$CXXFLAGS
6104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6105$as_echo_n "checking whether $CXX accepts -g... " >&6; }
6106if ${ac_cv_prog_cxx_g+:} false; then :
6107 $as_echo_n "(cached) " >&6
6108else
6109 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6110 ac_cxx_werror_flag=yes
6111 ac_cv_prog_cxx_g=no
6112 CXXFLAGS="-g"
6113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6114/* end confdefs.h. */
6115
6116int
6117main ()
6118{
6119
6120 ;
6121 return 0;
6122}
6123_ACEOF
6124if ac_fn_cxx_try_compile "$LINENO"; then :
6125 ac_cv_prog_cxx_g=yes
6126else
6127 CXXFLAGS=""
6128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6129/* end confdefs.h. */
6130
6131int
6132main ()
6133{
6134
6135 ;
6136 return 0;
6137}
6138_ACEOF
6139if ac_fn_cxx_try_compile "$LINENO"; then :
6140
6141else
6142 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6143 CXXFLAGS="-g"
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145/* end confdefs.h. */
6146
6147int
6148main ()
6149{
6150
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155if ac_fn_cxx_try_compile "$LINENO"; then :
6156 ac_cv_prog_cxx_g=yes
6157fi
6158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161fi
6162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6163 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6166$as_echo "$ac_cv_prog_cxx_g" >&6; }
6167if test "$ac_test_CXXFLAGS" = set; then
6168 CXXFLAGS=$ac_save_CXXFLAGS
6169elif test $ac_cv_prog_cxx_g = yes; then
6170 if test "$GXX" = yes; then
6171 CXXFLAGS="-g -O2"
6172 else
6173 CXXFLAGS="-g"
6174 fi
6175else
6176 if test "$GXX" = yes; then
6177 CXXFLAGS="-O2"
6178 else
6179 CXXFLAGS=
6180 fi
6181fi
6182ac_ext=cpp
6183ac_cpp='$CXXCPP $CPPFLAGS'
6184ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6185ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6186ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6187
6188depcc="$CXX" am_compiler_list=
6189
6190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6191$as_echo_n "checking dependency style of $depcc... " >&6; }
6192if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6193 $as_echo_n "(cached) " >&6
6194else
6195 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6196 # We make a subdir and do the tests there. Otherwise we can end up
6197 # making bogus files that we don't know about and never remove. For
6198 # instance it was reported that on HP-UX the gcc test will end up
6199 # making a dummy file named `D' -- because `-MD' means `put the output
6200 # in D'.
6201 rm -rf conftest.dir
6202 mkdir conftest.dir
6203 # Copy depcomp to subdir because otherwise we won't find it if we're
6204 # using a relative directory.
6205 cp "$am_depcomp" conftest.dir
6206 cd conftest.dir
6207 # We will build objects and dependencies in a subdirectory because
6208 # it helps to detect inapplicable dependency modes. For instance
6209 # both Tru64's cc and ICC support -MD to output dependencies as a
6210 # side effect of compilation, but ICC will put the dependencies in
6211 # the current directory while Tru64 will put them in the object
6212 # directory.
6213 mkdir sub
6214
6215 am_cv_CXX_dependencies_compiler_type=none
6216 if test "$am_compiler_list" = ""; then
6217 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6218 fi
6219 am__universal=false
6220 case " $depcc " in #(
6221 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6222 esac
6223
6224 for depmode in $am_compiler_list; do
6225 # Setup a source with many dependencies, because some compilers
6226 # like to wrap large dependency lists on column 80 (with \), and
6227 # we should not choose a depcomp mode which is confused by this.
6228 #
6229 # We need to recreate these files for each test, as the compiler may
6230 # overwrite some of them when testing with obscure command lines.
6231 # This happens at least with the AIX C compiler.
6232 : > sub/conftest.c
6233 for i in 1 2 3 4 5 6; do
6234 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6235 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6236 # Solaris 8's {/usr,}/bin/sh.
6237 touch sub/conftst$i.h
6238 done
6239 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6240
6241 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6242 # mode. It turns out that the SunPro C++ compiler does not properly
6243 # handle `-M -o', and we need to detect this. Also, some Intel
6244 # versions had trouble with output in subdirs
6245 am__obj=sub/conftest.${OBJEXT-o}
6246 am__minus_obj="-o $am__obj"
6247 case $depmode in
6248 gcc)
6249 # This depmode causes a compiler race in universal mode.
6250 test "$am__universal" = false || continue
6251 ;;
6252 nosideeffect)
6253 # after this tag, mechanisms are not by side-effect, so they'll
6254 # only be used when explicitly requested
6255 if test "x$enable_dependency_tracking" = xyes; then
6256 continue
6257 else
6258 break
6259 fi
6260 ;;
6261 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6262 # This compiler won't grok `-c -o', but also, the minuso test has
6263 # not run yet. These depmodes are late enough in the game, and
6264 # so weak that their functioning should not be impacted.
6265 am__obj=conftest.${OBJEXT-o}
6266 am__minus_obj=
6267 ;;
6268 none) break ;;
6269 esac
6270 if depmode=$depmode \
6271 source=sub/conftest.c object=$am__obj \
6272 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6273 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6274 >/dev/null 2>conftest.err &&
6275 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6276 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6277 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6278 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6279 # icc doesn't choke on unknown options, it will just issue warnings
6280 # or remarks (even with -Werror). So we grep stderr for any message
6281 # that says an option was ignored or not supported.
6282 # When given -MP, icc 7.0 and 7.1 complain thusly:
6283 # icc: Command line warning: ignoring option '-M'; no argument required
6284 # The diagnosis changed in icc 8.0:
6285 # icc: Command line remark: option '-MP' not supported
6286 if (grep 'ignoring option' conftest.err ||
6287 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6288 am_cv_CXX_dependencies_compiler_type=$depmode
6289 break
6290 fi
6291 fi
6292 done
6293
6294 cd ..
6295 rm -rf conftest.dir
6296else
6297 am_cv_CXX_dependencies_compiler_type=none
6298fi
6299
6300fi
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6302$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6303CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6304
6305 if
6306 test "x$enable_dependency_tracking" != xno \
6307 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6308 am__fastdepCXX_TRUE=
6309 am__fastdepCXX_FALSE='#'
6310else
6311 am__fastdepCXX_TRUE='#'
6312 am__fastdepCXX_FALSE=
6313fi
6314
6315
6316
6317
6318if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
6319 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
6320 (test "X$CXX" != "Xg++"))) ; then
6321 ac_ext=cpp
6322ac_cpp='$CXXCPP $CPPFLAGS'
6323ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6324ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6325ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6327$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6328if test -z "$CXXCPP"; then
6329 if ${ac_cv_prog_CXXCPP+:} false; then :
6330 $as_echo_n "(cached) " >&6
6331else
6332 # Double quotes because CXXCPP needs to be expanded
6333 for CXXCPP in "$CXX -E" "/lib/cpp"
6334 do
6335 ac_preproc_ok=false
6336for ac_cxx_preproc_warn_flag in '' yes
6337do
6338 # Use a header file that comes with gcc, so configuring glibc
6339 # with a fresh cross-compiler works.
6340 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6341 # <limits.h> exists even on freestanding compilers.
6342 # On the NeXT, cc -E runs the code through the compiler's parser,
6343 # not just through cpp. "Syntax error" is here to catch this case.
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345/* end confdefs.h. */
6346@%:@ifdef __STDC__
6347@%:@ include <limits.h>
6348@%:@else
6349@%:@ include <assert.h>
6350@%:@endif
6351 Syntax error
6352_ACEOF
6353if ac_fn_cxx_try_cpp "$LINENO"; then :
6354
6355else
6356 # Broken: fails on valid input.
6357continue
6358fi
6359rm -f conftest.err conftest.i conftest.$ac_ext
6360
6361 # OK, works on sane cases. Now check whether nonexistent headers
6362 # can be detected and how.
6363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h. */
6365@%:@include <ac_nonexistent.h>
6366_ACEOF
6367if ac_fn_cxx_try_cpp "$LINENO"; then :
6368 # Broken: success on invalid input.
6369continue
6370else
6371 # Passes both tests.
6372ac_preproc_ok=:
6373break
6374fi
6375rm -f conftest.err conftest.i conftest.$ac_ext
6376
6377done
6378# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6379rm -f conftest.i conftest.err conftest.$ac_ext
6380if $ac_preproc_ok; then :
6381 break
6382fi
6383
6384 done
6385 ac_cv_prog_CXXCPP=$CXXCPP
6386
6387fi
6388 CXXCPP=$ac_cv_prog_CXXCPP
6389else
6390 ac_cv_prog_CXXCPP=$CXXCPP
6391fi
6392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6393$as_echo "$CXXCPP" >&6; }
6394ac_preproc_ok=false
6395for ac_cxx_preproc_warn_flag in '' yes
6396do
6397 # Use a header file that comes with gcc, so configuring glibc
6398 # with a fresh cross-compiler works.
6399 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6400 # <limits.h> exists even on freestanding compilers.
6401 # On the NeXT, cc -E runs the code through the compiler's parser,
6402 # not just through cpp. "Syntax error" is here to catch this case.
6403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6404/* end confdefs.h. */
6405@%:@ifdef __STDC__
6406@%:@ include <limits.h>
6407@%:@else
6408@%:@ include <assert.h>
6409@%:@endif
6410 Syntax error
6411_ACEOF
6412if ac_fn_cxx_try_cpp "$LINENO"; then :
6413
6414else
6415 # Broken: fails on valid input.
6416continue
6417fi
6418rm -f conftest.err conftest.i conftest.$ac_ext
6419
6420 # OK, works on sane cases. Now check whether nonexistent headers
6421 # can be detected and how.
6422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6423/* end confdefs.h. */
6424@%:@include <ac_nonexistent.h>
6425_ACEOF
6426if ac_fn_cxx_try_cpp "$LINENO"; then :
6427 # Broken: success on invalid input.
6428continue
6429else
6430 # Passes both tests.
6431ac_preproc_ok=:
6432break
6433fi
6434rm -f conftest.err conftest.i conftest.$ac_ext
6435
6436done
6437# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6438rm -f conftest.i conftest.err conftest.$ac_ext
6439if $ac_preproc_ok; then :
6440
6441else
6442 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6443$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6444as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6445See \`config.log' for more details" "$LINENO" 5; }
6446fi
6447
6448ac_ext=cpp
6449ac_cpp='$CXXCPP $CPPFLAGS'
6450ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6451ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6452ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6453
6454fi
6455
6456
6457ac_ext=f
6458ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6459ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6460ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6461if test -n "$ac_tool_prefix"; then
6462 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
6463 do
6464 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6465set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6467$as_echo_n "checking for $ac_word... " >&6; }
6468if ${ac_cv_prog_F77+:} false; then :
6469 $as_echo_n "(cached) " >&6
6470else
6471 if test -n "$F77"; then
6472 ac_cv_prog_F77="$F77" # Let the user override the test.
6473else
6474as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6475for as_dir in $PATH
6476do
6477 IFS=$as_save_IFS
6478 test -z "$as_dir" && as_dir=.
6479 for ac_exec_ext in '' $ac_executable_extensions; do
6480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6481 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6483 break 2
6484 fi
6485done
6486 done
6487IFS=$as_save_IFS
6488
6489fi
6490fi
6491F77=$ac_cv_prog_F77
6492if test -n "$F77"; then
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
6494$as_echo "$F77" >&6; }
6495else
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497$as_echo "no" >&6; }
6498fi
6499
6500
6501 test -n "$F77" && break
6502 done
6503fi
6504if test -z "$F77"; then
6505 ac_ct_F77=$F77
6506 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
6507do
6508 # Extract the first word of "$ac_prog", so it can be a program name with args.
6509set dummy $ac_prog; ac_word=$2
6510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6511$as_echo_n "checking for $ac_word... " >&6; }
6512if ${ac_cv_prog_ac_ct_F77+:} false; then :
6513 $as_echo_n "(cached) " >&6
6514else
6515 if test -n "$ac_ct_F77"; then
6516 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6517else
6518as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6519for as_dir in $PATH
6520do
6521 IFS=$as_save_IFS
6522 test -z "$as_dir" && as_dir=.
6523 for ac_exec_ext in '' $ac_executable_extensions; do
6524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6525 ac_cv_prog_ac_ct_F77="$ac_prog"
6526 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6527 break 2
6528 fi
6529done
6530 done
6531IFS=$as_save_IFS
6532
6533fi
6534fi
6535ac_ct_F77=$ac_cv_prog_ac_ct_F77
6536if test -n "$ac_ct_F77"; then
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
6538$as_echo "$ac_ct_F77" >&6; }
6539else
6540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6541$as_echo "no" >&6; }
6542fi
6543
6544
6545 test -n "$ac_ct_F77" && break
6546done
6547
6548 if test "x$ac_ct_F77" = x; then
6549 F77=""
6550 else
6551 case $cross_compiling:$ac_tool_warned in
6552yes:)
6553{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6554$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6555ac_tool_warned=yes ;;
6556esac
6557 F77=$ac_ct_F77
6558 fi
6559fi
6560
6561
6562# Provide some information about the compiler.
6563$as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
6564set X $ac_compile
6565ac_compiler=$2
6566for ac_option in --version -v -V -qversion; do
6567 { { ac_try="$ac_compiler $ac_option >&5"
6568case "(($ac_try" in
6569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6570 *) ac_try_echo=$ac_try;;
6571esac
6572eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6573$as_echo "$ac_try_echo"; } >&5
6574 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6575 ac_status=$?
6576 if test -s conftest.err; then
6577 sed '10a\
6578... rest of stderr output deleted ...
6579 10q' conftest.err >conftest.er1
6580 cat conftest.er1 >&5
6581 fi
6582 rm -f conftest.er1 conftest.err
6583 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6584 test $ac_status = 0; }
6585done
6586rm -f a.out
6587
6588# If we don't use `.F' as extension, the preprocessor is not run on the
6589# input file. (Note that this only needs to work for GNU compilers.)
6590ac_save_ext=$ac_ext
6591ac_ext=F
6592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
6593$as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6594if ${ac_cv_f77_compiler_gnu+:} false; then :
6595 $as_echo_n "(cached) " >&6
6596else
6597 cat > conftest.$ac_ext <<_ACEOF
6598 program main
6599#ifndef __GNUC__
6600 choke me
6601#endif
6602
6603 end
6604_ACEOF
6605if ac_fn_f77_try_compile "$LINENO"; then :
6606 ac_compiler_gnu=yes
6607else
6608 ac_compiler_gnu=no
6609fi
6610rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6611ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6612
6613fi
6614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
6615$as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6616ac_ext=$ac_save_ext
6617ac_test_FFLAGS=${FFLAGS+set}
6618ac_save_FFLAGS=$FFLAGS
6619FFLAGS=
6620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
6621$as_echo_n "checking whether $F77 accepts -g... " >&6; }
6622if ${ac_cv_prog_f77_g+:} false; then :
6623 $as_echo_n "(cached) " >&6
6624else
6625 FFLAGS=-g
6626cat > conftest.$ac_ext <<_ACEOF
6627 program main
6628
6629 end
6630_ACEOF
6631if ac_fn_f77_try_compile "$LINENO"; then :
6632 ac_cv_prog_f77_g=yes
6633else
6634 ac_cv_prog_f77_g=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637
6638fi
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
6640$as_echo "$ac_cv_prog_f77_g" >&6; }
6641if test "$ac_test_FFLAGS" = set; then
6642 FFLAGS=$ac_save_FFLAGS
6643elif test $ac_cv_prog_f77_g = yes; then
6644 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6645 FFLAGS="-g -O2"
6646 else
6647 FFLAGS="-g"
6648 fi
6649else
6650 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6651 FFLAGS="-O2"
6652 else
6653 FFLAGS=
6654 fi
6655fi
6656
6657if test $ac_compiler_gnu = yes; then
6658 G77=yes
6659else
6660 G77=
6661fi
6662ac_ext=c
6663ac_cpp='$CPP $CPPFLAGS'
6664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6666ac_compiler_gnu=$ac_cv_c_compiler_gnu
6667
6668
6669
6670# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6671
6672# find the maximum length of command line arguments
6673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6674$as_echo_n "checking the maximum length of command line arguments... " >&6; }
6675if ${lt_cv_sys_max_cmd_len+:} false; then :
6676 $as_echo_n "(cached) " >&6
6677else
6678 i=0
6679 teststring="ABCD"
6680
6681 case $build_os in
6682 msdosdjgpp*)
6683 # On DJGPP, this test can blow up pretty badly due to problems in libc
6684 # (any single argument exceeding 2000 bytes causes a buffer overrun
6685 # during glob expansion). Even if it were fixed, the result of this
6686 # check would be larger than it should be.
6687 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6688 ;;
6689
6690 gnu*)
6691 # Under GNU Hurd, this test is not required because there is
6692 # no limit to the length of command line arguments.
6693 # Libtool will interpret -1 as no limit whatsoever
6694 lt_cv_sys_max_cmd_len=-1;
6695 ;;
6696
6697 cygwin* | mingw*)
6698 # On Win9x/ME, this test blows up -- it succeeds, but takes
6699 # about 5 minutes as the teststring grows exponentially.
6700 # Worse, since 9x/ME are not pre-emptively multitasking,
6701 # you end up with a "frozen" computer, even though with patience
6702 # the test eventually succeeds (with a max line length of 256k).
6703 # Instead, let's just punt: use the minimum linelength reported by
6704 # all of the supported platforms: 8192 (on NT/2K/XP).
6705 lt_cv_sys_max_cmd_len=8192;
6706 ;;
6707
6708 amigaos*)
6709 # On AmigaOS with pdksh, this test takes hours, literally.
6710 # So we just punt and use a minimum line length of 8192.
6711 lt_cv_sys_max_cmd_len=8192;
6712 ;;
6713
6714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6715 # This has been around since 386BSD, at least. Likely further.
6716 if test -x /sbin/sysctl; then
6717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6718 elif test -x /usr/sbin/sysctl; then
6719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6720 else
6721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6722 fi
6723 # And add a safety zone
6724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6726 ;;
6727
6728 interix*)
6729 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6730 lt_cv_sys_max_cmd_len=196608
6731 ;;
6732
6733 osf*)
6734 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6735 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6736 # nice to cause kernel panics so lets avoid the loop below.
6737 # First set a reasonable default.
6738 lt_cv_sys_max_cmd_len=16384
6739 #
6740 if test -x /sbin/sysconfig; then
6741 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6742 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6743 esac
6744 fi
6745 ;;
6746 sco3.2v5*)
6747 lt_cv_sys_max_cmd_len=102400
6748 ;;
6749 sysv5* | sco5v6* | sysv4.2uw2*)
6750 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6751 if test -n "$kargmax"; then
6752 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6753 else
6754 lt_cv_sys_max_cmd_len=32768
6755 fi
6756 ;;
6757 *)
6758 # If test is not a shell built-in, we'll probably end up computing a
6759 # maximum length that is only half of the actual maximum length, but
6760 # we can't tell.
6761 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6762 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6763 = "XX$teststring") >/dev/null 2>&1 &&
6764 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6765 lt_cv_sys_max_cmd_len=$new_result &&
6766 test $i != 17 # 1/2 MB should be enough
6767 do
6768 i=`expr $i + 1`
6769 teststring=$teststring$teststring
6770 done
6771 teststring=
6772 # Add a significant safety factor because C++ compilers can tack on massive
6773 # amounts of additional arguments before passing them to the linker.
6774 # It appears as though 1/2 is a usable value.
6775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6776 ;;
6777 esac
6778
6779fi
6780
6781if test -n $lt_cv_sys_max_cmd_len ; then
6782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6783$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6784else
6785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6786$as_echo "none" >&6; }
6787fi
6788
6789
6790
6791
6792# Check for command to grab the raw symbol name followed by C symbol from nm.
6793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6794$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6795if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6796 $as_echo_n "(cached) " >&6
6797else
6798
6799# These are sane defaults that work on at least a few old systems.
6800# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6801
6802# Character class describing NM global symbol codes.
6803symcode='[BCDEGRST]'
6804
6805# Regexp to match symbols that can be accessed directly from C.
6806sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6807
6808# Transform an extracted symbol line into a proper C declaration
6809lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6810
6811# Transform an extracted symbol line into symbol name and symbol address
6812lt_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'"
6813
6814# Define system-specific variables.
6815case $host_os in
6816aix*)
6817 symcode='[BCDT]'
6818 ;;
6819cygwin* | mingw* | pw32*)
6820 symcode='[ABCDGISTW]'
6821 ;;
6822hpux*) # Its linker distinguishes data from code symbols
6823 if test "$host_cpu" = ia64; then
6824 symcode='[ABCDEGRST]'
6825 fi
6826 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6827 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'"
6828 ;;
6829linux*)
6830 if test "$host_cpu" = ia64; then
6831 symcode='[ABCDGIRSTW]'
6832 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6833 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'"
6834 fi
6835 ;;
6836irix* | nonstopux*)
6837 symcode='[BCDEGRST]'
6838 ;;
6839osf*)
6840 symcode='[BCDEGQRST]'
6841 ;;
6842solaris*)
6843 symcode='[BDRT]'
6844 ;;
6845sco3.2v5*)
6846 symcode='[DT]'
6847 ;;
6848sysv4.2uw2*)
6849 symcode='[DT]'
6850 ;;
6851sysv5* | sco5v6* | unixware* | OpenUNIX*)
6852 symcode='[ABDT]'
6853 ;;
6854sysv4)
6855 symcode='[DFNSTU]'
6856 ;;
6857esac
6858
6859# Handle CRLF in mingw tool chain
6860opt_cr=
6861case $build_os in
6862mingw*)
6863 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6864 ;;
6865esac
6866
6867# If we're using GNU nm, then use its standard symbol codes.
6868case `$NM -V 2>&1` in
6869*GNU* | *'with BFD'*)
6870 symcode='[ABCDGIRSTW]' ;;
6871esac
6872
6873# Try without a prefix undercore, then with it.
6874for ac_symprfx in "" "_"; do
6875
6876 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6877 symxfrm="\\1 $ac_symprfx\\2 \\2"
6878
6879 # Write the raw and C identifiers.
6880 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6881
6882 # Check to see that the pipe works correctly.
6883 pipe_works=no
6884
6885 rm -f conftest*
6886 cat > conftest.$ac_ext <<EOF
6887#ifdef __cplusplus
6888extern "C" {
6889#endif
6890char nm_test_var;
6891void nm_test_func(){}
6892#ifdef __cplusplus
6893}
6894#endif
6895int main(){nm_test_var='a';nm_test_func();return(0);}
6896EOF
6897
6898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6899 (eval $ac_compile) 2>&5
6900 ac_status=$?
6901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6902 test $ac_status = 0; }; then
6903 # Now try to grab the symbols.
6904 nlist=conftest.nm
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
6906 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6907 ac_status=$?
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; } && test -s "$nlist"; then
6910 # Try sorting and uniquifying the output.
6911 if sort "$nlist" | uniq > "$nlist"T; then
6912 mv -f "$nlist"T "$nlist"
6913 else
6914 rm -f "$nlist"T
6915 fi
6916
6917 # Make sure that we snagged all the symbols we need.
6918 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6919 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6920 cat <<EOF > conftest.$ac_ext
6921#ifdef __cplusplus
6922extern "C" {
6923#endif
6924
6925EOF
6926 # Now generate the symbol file.
6927 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6928
6929 cat <<EOF >> conftest.$ac_ext
6930#if defined (__STDC__) && __STDC__
6931# define lt_ptr_t void *
6932#else
6933# define lt_ptr_t char *
6934# define const
6935#endif
6936
6937/* The mapping between symbol names and symbols. */
6938const struct {
6939 const char *name;
6940 lt_ptr_t address;
6941}
6942lt_preloaded_symbols[] =
6943{
6944EOF
6945 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6946 cat <<\EOF >> conftest.$ac_ext
6947 {0, (lt_ptr_t) 0}
6948};
6949
6950#ifdef __cplusplus
6951}
6952#endif
6953EOF
6954 # Now try linking the two files.
6955 mv conftest.$ac_objext conftstm.$ac_objext
6956 lt_save_LIBS="$LIBS"
6957 lt_save_CFLAGS="$CFLAGS"
6958 LIBS="conftstm.$ac_objext"
6959 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6961 (eval $ac_link) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6965 pipe_works=yes
6966 fi
6967 LIBS="$lt_save_LIBS"
6968 CFLAGS="$lt_save_CFLAGS"
6969 else
6970 echo "cannot find nm_test_func in $nlist" >&5
6971 fi
6972 else
6973 echo "cannot find nm_test_var in $nlist" >&5
6974 fi
6975 else
6976 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6977 fi
6978 else
6979 echo "$progname: failed program was:" >&5
6980 cat conftest.$ac_ext >&5
6981 fi
6982 rm -f conftest* conftst*
6983
6984 # Do not use the global_symbol_pipe unless it works.
6985 if test "$pipe_works" = yes; then
6986 break
6987 else
6988 lt_cv_sys_global_symbol_pipe=
6989 fi
6990done
6991
6992fi
6993
6994if test -z "$lt_cv_sys_global_symbol_pipe"; then
6995 lt_cv_sys_global_symbol_to_cdecl=
6996fi
6997if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6999$as_echo "failed" >&6; }
7000else
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7002$as_echo "ok" >&6; }
7003fi
7004
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7006$as_echo_n "checking for objdir... " >&6; }
7007if ${lt_cv_objdir+:} false; then :
7008 $as_echo_n "(cached) " >&6
7009else
7010 rm -f .libs 2>/dev/null
7011mkdir .libs 2>/dev/null
7012if test -d .libs; then
7013 lt_cv_objdir=.libs
7014else
7015 # MS-DOS does not allow filenames that begin with a dot.
7016 lt_cv_objdir=_libs
7017fi
7018rmdir .libs 2>/dev/null
7019fi
7020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7021$as_echo "$lt_cv_objdir" >&6; }
7022objdir=$lt_cv_objdir
7023
7024
7025
7026
7027
7028case $host_os in
7029aix3*)
7030 # AIX sometimes has problems with the GCC collect2 program. For some
7031 # reason, if we set the COLLECT_NAMES environment variable, the problems
7032 # vanish in a puff of smoke.
7033 if test "X${COLLECT_NAMES+set}" != Xset; then
7034 COLLECT_NAMES=
7035 export COLLECT_NAMES
7036 fi
7037 ;;
7038esac
7039
7040# Sed substitution that helps us do robust quoting. It backslashifies
7041# metacharacters that are still active within double-quoted strings.
7042Xsed='sed -e 1s/^X//'
7043sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7044
7045# Same as above, but do not quote variable references.
7046double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7047
7048# Sed substitution to delay expansion of an escaped shell variable in a
7049# double_quote_subst'ed string.
7050delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7051
7052# Sed substitution to avoid accidental globbing in evaled expressions
7053no_glob_subst='s/\*/\\\*/g'
7054
7055# Constants:
7056rm="rm -f"
7057
7058# Global variables:
7059default_ofile=libtool
7060can_build_shared=yes
7061
7062# All known linkers require a `.a' archive for static linking (except MSVC,
7063# which needs '.lib').
7064libext=a
7065ltmain="$ac_aux_dir/ltmain.sh"
7066ofile="$default_ofile"
7067with_gnu_ld="$lt_cv_prog_gnu_ld"
7068
7069if test -n "$ac_tool_prefix"; then
7070 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7071set dummy ${ac_tool_prefix}ar; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if ${ac_cv_prog_AR+:} false; then :
7075 $as_echo_n "(cached) " >&6
7076else
7077 if test -n "$AR"; then
7078 ac_cv_prog_AR="$AR" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083 IFS=$as_save_IFS
7084 test -z "$as_dir" && as_dir=.
7085 for ac_exec_ext in '' $ac_executable_extensions; do
7086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087 ac_cv_prog_AR="${ac_tool_prefix}ar"
7088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089 break 2
7090 fi
7091done
7092 done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097AR=$ac_cv_prog_AR
7098if test -n "$AR"; then
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7100$as_echo "$AR" >&6; }
7101else
7102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106
7107fi
7108if test -z "$ac_cv_prog_AR"; then
7109 ac_ct_AR=$AR
7110 # Extract the first word of "ar", so it can be a program name with args.
7111set dummy ar; ac_word=$2
7112{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7113$as_echo_n "checking for $ac_word... " >&6; }
7114if ${ac_cv_prog_ac_ct_AR+:} false; then :
7115 $as_echo_n "(cached) " >&6
7116else
7117 if test -n "$ac_ct_AR"; then
7118 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7119else
7120as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7121for as_dir in $PATH
7122do
7123 IFS=$as_save_IFS
7124 test -z "$as_dir" && as_dir=.
7125 for ac_exec_ext in '' $ac_executable_extensions; do
7126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7127 ac_cv_prog_ac_ct_AR="ar"
7128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7129 break 2
7130 fi
7131done
7132 done
7133IFS=$as_save_IFS
7134
7135fi
7136fi
7137ac_ct_AR=$ac_cv_prog_ac_ct_AR
7138if test -n "$ac_ct_AR"; then
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7140$as_echo "$ac_ct_AR" >&6; }
7141else
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7143$as_echo "no" >&6; }
7144fi
7145
7146 if test "x$ac_ct_AR" = x; then
7147 AR="false"
7148 else
7149 case $cross_compiling:$ac_tool_warned in
7150yes:)
7151{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7152$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7153ac_tool_warned=yes ;;
7154esac
7155 AR=$ac_ct_AR
7156 fi
7157else
7158 AR="$ac_cv_prog_AR"
7159fi
7160
7161if test -n "$ac_tool_prefix"; then
7162 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7163set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7164{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7165$as_echo_n "checking for $ac_word... " >&6; }
7166if ${ac_cv_prog_RANLIB+:} false; then :
7167 $as_echo_n "(cached) " >&6
7168else
7169 if test -n "$RANLIB"; then
7170 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7171else
7172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7173for as_dir in $PATH
7174do
7175 IFS=$as_save_IFS
7176 test -z "$as_dir" && as_dir=.
7177 for ac_exec_ext in '' $ac_executable_extensions; do
7178 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7179 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7181 break 2
7182 fi
7183done
7184 done
7185IFS=$as_save_IFS
7186
7187fi
7188fi
7189RANLIB=$ac_cv_prog_RANLIB
7190if test -n "$RANLIB"; then
7191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7192$as_echo "$RANLIB" >&6; }
7193else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195$as_echo "no" >&6; }
7196fi
7197
7198
7199fi
7200if test -z "$ac_cv_prog_RANLIB"; then
7201 ac_ct_RANLIB=$RANLIB
7202 # Extract the first word of "ranlib", so it can be a program name with args.
7203set dummy ranlib; ac_word=$2
7204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7205$as_echo_n "checking for $ac_word... " >&6; }
7206if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7207 $as_echo_n "(cached) " >&6
7208else
7209 if test -n "$ac_ct_RANLIB"; then
7210 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7211else
7212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213for as_dir in $PATH
7214do
7215 IFS=$as_save_IFS
7216 test -z "$as_dir" && as_dir=.
7217 for ac_exec_ext in '' $ac_executable_extensions; do
7218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7219 ac_cv_prog_ac_ct_RANLIB="ranlib"
7220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7221 break 2
7222 fi
7223done
7224 done
7225IFS=$as_save_IFS
7226
7227fi
7228fi
7229ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7230if test -n "$ac_ct_RANLIB"; then
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7232$as_echo "$ac_ct_RANLIB" >&6; }
7233else
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7235$as_echo "no" >&6; }
7236fi
7237
7238 if test "x$ac_ct_RANLIB" = x; then
7239 RANLIB=":"
7240 else
7241 case $cross_compiling:$ac_tool_warned in
7242yes:)
7243{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7244$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7245ac_tool_warned=yes ;;
7246esac
7247 RANLIB=$ac_ct_RANLIB
7248 fi
7249else
7250 RANLIB="$ac_cv_prog_RANLIB"
7251fi
7252
7253if test -n "$ac_tool_prefix"; then
7254 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7255set dummy ${ac_tool_prefix}strip; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_prog_STRIP+:} false; then :
7259 $as_echo_n "(cached) " >&6
7260else
7261 if test -n "$STRIP"; then
7262 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267 IFS=$as_save_IFS
7268 test -z "$as_dir" && as_dir=.
7269 for ac_exec_ext in '' $ac_executable_extensions; do
7270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273 break 2
7274 fi
7275done
7276 done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281STRIP=$ac_cv_prog_STRIP
7282if test -n "$STRIP"; then
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7284$as_echo "$STRIP" >&6; }
7285else
7286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291fi
7292if test -z "$ac_cv_prog_STRIP"; then
7293 ac_ct_STRIP=$STRIP
7294 # Extract the first word of "strip", so it can be a program name with args.
7295set dummy strip; ac_word=$2
7296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7297$as_echo_n "checking for $ac_word... " >&6; }
7298if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7299 $as_echo_n "(cached) " >&6
7300else
7301 if test -n "$ac_ct_STRIP"; then
7302 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7303else
7304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7311 ac_cv_prog_ac_ct_STRIP="strip"
7312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7313 break 2
7314 fi
7315done
7316 done
7317IFS=$as_save_IFS
7318
7319fi
7320fi
7321ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7322if test -n "$ac_ct_STRIP"; then
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7324$as_echo "$ac_ct_STRIP" >&6; }
7325else
7326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7327$as_echo "no" >&6; }
7328fi
7329
7330 if test "x$ac_ct_STRIP" = x; then
7331 STRIP=":"
7332 else
7333 case $cross_compiling:$ac_tool_warned in
7334yes:)
7335{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7336$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7337ac_tool_warned=yes ;;
7338esac
7339 STRIP=$ac_ct_STRIP
7340 fi
7341else
7342 STRIP="$ac_cv_prog_STRIP"
7343fi
7344
7345
7346old_CC="$CC"
7347old_CFLAGS="$CFLAGS"
7348
7349# Set sane defaults for various variables
7350test -z "$AR" && AR=ar
7351test -z "$AR_FLAGS" && AR_FLAGS=cru
7352test -z "$AS" && AS=as
7353test -z "$CC" && CC=cc
7354test -z "$LTCC" && LTCC=$CC
7355test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
7356test -z "$DLLTOOL" && DLLTOOL=dlltool
7357test -z "$LD" && LD=ld
7358test -z "$LN_S" && LN_S="ln -s"
7359test -z "$MAGIC_CMD" && MAGIC_CMD=file
7360test -z "$NM" && NM=nm
7361test -z "$SED" && SED=sed
7362test -z "$OBJDUMP" && OBJDUMP=objdump
7363test -z "$RANLIB" && RANLIB=:
7364test -z "$STRIP" && STRIP=:
7365test -z "$ac_objext" && ac_objext=o
7366
7367# Determine commands to create old-style static archives.
7368old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
7369old_postinstall_cmds='chmod 644 $oldlib'
7370old_postuninstall_cmds=
7371
7372if test -n "$RANLIB"; then
7373 case $host_os in
7374 openbsd*)
7375 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7376 ;;
7377 *)
7378 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7379 ;;
7380 esac
7381 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7382fi
7383
7384for cc_temp in $compiler""; do
7385 case $cc_temp in
7386 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7387 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7388 \-*) ;;
7389 *) break;;
7390 esac
7391done
7392cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7393
7394
7395# Only perform the check for file, if the check method requires it
7396case $deplibs_check_method in
7397file_magic*)
7398 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
7400$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
7401if ${lt_cv_path_MAGIC_CMD+:} false; then :
7402 $as_echo_n "(cached) " >&6
7403else
7404 case $MAGIC_CMD in
7405[\\/*] | ?:[\\/]*)
7406 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7407 ;;
7408*)
7409 lt_save_MAGIC_CMD="$MAGIC_CMD"
7410 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7411 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7412 for ac_dir in $ac_dummy; do
7413 IFS="$lt_save_ifs"
7414 test -z "$ac_dir" && ac_dir=.
7415 if test -f $ac_dir/${ac_tool_prefix}file; then
7416 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7417 if test -n "$file_magic_test_file"; then
7418 case $deplibs_check_method in
7419 "file_magic "*)
7420 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7421 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7422 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7423 $EGREP "$file_magic_regex" > /dev/null; then
7424 :
7425 else
7426 cat <<EOF 1>&2
7427
7428*** Warning: the command libtool uses to detect shared libraries,
7429*** $file_magic_cmd, produces output that libtool cannot recognize.
7430*** The result is that libtool may fail to recognize shared libraries
7431*** as such. This will affect the creation of libtool libraries that
7432*** depend on shared libraries, but programs linked with such libtool
7433*** libraries will work regardless of this problem. Nevertheless, you
7434*** may want to report the problem to your system manager and/or to
7435*** bug-libtool@gnu.org
7436
7437EOF
7438 fi ;;
7439 esac
7440 fi
7441 break
7442 fi
7443 done
7444 IFS="$lt_save_ifs"
7445 MAGIC_CMD="$lt_save_MAGIC_CMD"
7446 ;;
7447esac
7448fi
7449
7450MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7451if test -n "$MAGIC_CMD"; then
7452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7453$as_echo "$MAGIC_CMD" >&6; }
7454else
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7456$as_echo "no" >&6; }
7457fi
7458
7459if test -z "$lt_cv_path_MAGIC_CMD"; then
7460 if test -n "$ac_tool_prefix"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
7462$as_echo_n "checking for file... " >&6; }
7463if ${lt_cv_path_MAGIC_CMD+:} false; then :
7464 $as_echo_n "(cached) " >&6
7465else
7466 case $MAGIC_CMD in
7467[\\/*] | ?:[\\/]*)
7468 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7469 ;;
7470*)
7471 lt_save_MAGIC_CMD="$MAGIC_CMD"
7472 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7473 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7474 for ac_dir in $ac_dummy; do
7475 IFS="$lt_save_ifs"
7476 test -z "$ac_dir" && ac_dir=.
7477 if test -f $ac_dir/file; then
7478 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7479 if test -n "$file_magic_test_file"; then
7480 case $deplibs_check_method in
7481 "file_magic "*)
7482 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7483 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7484 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7485 $EGREP "$file_magic_regex" > /dev/null; then
7486 :
7487 else
7488 cat <<EOF 1>&2
7489
7490*** Warning: the command libtool uses to detect shared libraries,
7491*** $file_magic_cmd, produces output that libtool cannot recognize.
7492*** The result is that libtool may fail to recognize shared libraries
7493*** as such. This will affect the creation of libtool libraries that
7494*** depend on shared libraries, but programs linked with such libtool
7495*** libraries will work regardless of this problem. Nevertheless, you
7496*** may want to report the problem to your system manager and/or to
7497*** bug-libtool@gnu.org
7498
7499EOF
7500 fi ;;
7501 esac
7502 fi
7503 break
7504 fi
7505 done
7506 IFS="$lt_save_ifs"
7507 MAGIC_CMD="$lt_save_MAGIC_CMD"
7508 ;;
7509esac
7510fi
7511
7512MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7513if test -n "$MAGIC_CMD"; then
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
7515$as_echo "$MAGIC_CMD" >&6; }
7516else
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7518$as_echo "no" >&6; }
7519fi
7520
7521 else
7522 MAGIC_CMD=:
7523 fi
7524fi
7525
7526 fi
7527 ;;
7528esac
7529
7530enable_dlopen=no
7531enable_win32_dll=yes
7532
7533@%:@ Check whether --enable-libtool-lock was given.
7534if test "${enable_libtool_lock+set}" = set; then :
7535 enableval=$enable_libtool_lock;
7536fi
7537
7538test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7539
7540
7541@%:@ Check whether --with-pic was given.
7542if test "${with_pic+set}" = set; then :
7543 withval=$with_pic; pic_mode="$withval"
7544else
7545 pic_mode=default
7546fi
7547
7548test -z "$pic_mode" && pic_mode=default
7549
7550# Use C for the default configuration in the libtool script
7551tagname=
7552lt_save_CC="$CC"
7553ac_ext=c
7554ac_cpp='$CPP $CPPFLAGS'
7555ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7556ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7557ac_compiler_gnu=$ac_cv_c_compiler_gnu
7558
7559
7560# Source file extension for C test sources.
7561ac_ext=c
7562
7563# Object file extension for compiled C test sources.
7564objext=o
7565objext=$objext
7566
7567# Code to be used in simple compile tests
7568lt_simple_compile_test_code="int some_variable = 0;\n"
7569
7570# Code to be used in simple link tests
7571lt_simple_link_test_code='int main(){return(0);}\n'
7572
7573
7574# If no C compiler was specified, use CC.
7575LTCC=${LTCC-"$CC"}
7576
7577# If no C compiler flags were specified, use CFLAGS.
7578LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7579
7580# Allow CC to be a program name with arguments.
7581compiler=$CC
7582
7583
7584# save warnings/boilerplate of simple test code
7585ac_outfile=conftest.$ac_objext
7586printf "$lt_simple_compile_test_code" >conftest.$ac_ext
7587eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7588_lt_compiler_boilerplate=`cat conftest.err`
7589$rm conftest*
7590
7591ac_outfile=conftest.$ac_objext
7592printf "$lt_simple_link_test_code" >conftest.$ac_ext
7593eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7594_lt_linker_boilerplate=`cat conftest.err`
7595$rm conftest*
7596
7597
7598## CAVEAT EMPTOR:
7599## There is no encapsulation within the following macros, do not change
7600## the running order or otherwise move them around unless you know exactly
7601## what you are doing...
7602
7603lt_prog_compiler_no_builtin_flag=
7604
7605if test "$GCC" = yes; then
7606 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7607
7608
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7610$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7611if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
7612 $as_echo_n "(cached) " >&6
7613else
7614 lt_cv_prog_compiler_rtti_exceptions=no
7615 ac_outfile=conftest.$ac_objext
7616 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7617 lt_compiler_flag="-fno-rtti -fno-exceptions"
7618 # Insert the option either (1) after the last *FLAGS variable, or
7619 # (2) before a word containing "conftest.", or (3) at the end.
7620 # Note that $ac_compile itself does not contain backslashes and begins
7621 # with a dollar sign (not a hyphen), so the echo should work correctly.
7622 # The option is referenced via a variable to avoid confusing sed.
7623 lt_compile=`echo "$ac_compile" | $SED \
7624 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7625 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7626 -e 's:$: $lt_compiler_flag:'`
7627 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7628 (eval "$lt_compile" 2>conftest.err)
7629 ac_status=$?
7630 cat conftest.err >&5
7631 echo "$as_me:__oline__: \$? = $ac_status" >&5
7632 if (exit $ac_status) && test -s "$ac_outfile"; then
7633 # The compiler can only warn and ignore the option if not recognized
7634 # So say no if there are warnings other than the usual output.
7635 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7636 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7637 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7638 lt_cv_prog_compiler_rtti_exceptions=yes
7639 fi
7640 fi
7641 $rm conftest*
7642
7643fi
7644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7645$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7646
7647if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7648 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7649else
7650 :
7651fi
7652
7653fi
7654
7655lt_prog_compiler_wl=
7656lt_prog_compiler_pic=
7657lt_prog_compiler_static=
7658
7659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
7660$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7661
7662 if test "$GCC" = yes; then
7663 lt_prog_compiler_wl='-Wl,'
7664 lt_prog_compiler_static='-static'
7665
7666 case $host_os in
7667 aix*)
7668 # All AIX code is PIC.
7669 if test "$host_cpu" = ia64; then
7670 # AIX 5 now supports IA64 processor
7671 lt_prog_compiler_static='-Bstatic'
7672 fi
7673 ;;
7674
7675 amigaos*)
7676 # FIXME: we need at least 68020 code to build shared libraries, but
7677 # adding the `-m68020' flag to GCC prevents building anything better,
7678 # like `-m68040'.
7679 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7680 ;;
7681
7682 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7683 # PIC is the default for these OSes.
7684 ;;
7685
7686 mingw* | pw32* | os2*)
7687 # This hack is so that the source file can tell whether it is being
7688 # built for inclusion in a dll (and should export symbols for example).
7689 lt_prog_compiler_pic='-DDLL_EXPORT'
7690 ;;
7691
7692 darwin* | rhapsody*)
7693 # PIC is the default on this platform
7694 # Common symbols not allowed in MH_DYLIB files
7695 lt_prog_compiler_pic='-fno-common'
7696 ;;
7697
7698 interix3*)
7699 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7700 # Instead, we relocate shared libraries at runtime.
7701 ;;
7702
7703 msdosdjgpp*)
7704 # Just because we use GCC doesn't mean we suddenly get shared libraries
7705 # on systems that don't support them.
7706 lt_prog_compiler_can_build_shared=no
7707 enable_shared=no
7708 ;;
7709
7710 sysv4*MP*)
7711 if test -d /usr/nec; then
7712 lt_prog_compiler_pic=-Kconform_pic
7713 fi
7714 ;;
7715
7716 hpux*)
7717 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7718 # not for PA HP-UX.
7719 case $host_cpu in
7720 hppa*64*|ia64*)
7721 # +Z the default
7722 ;;
7723 *)
7724 lt_prog_compiler_pic='-fPIC'
7725 ;;
7726 esac
7727 ;;
7728
7729 *)
7730 lt_prog_compiler_pic='-fPIC'
7731 ;;
7732 esac
7733 else
7734 # PORTME Check for flag to pass linker flags through the system compiler.
7735 case $host_os in
7736 aix*)
7737 lt_prog_compiler_wl='-Wl,'
7738 if test "$host_cpu" = ia64; then
7739 # AIX 5 now supports IA64 processor
7740 lt_prog_compiler_static='-Bstatic'
7741 else
7742 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7743 fi
7744 ;;
7745 darwin*)
7746 # PIC is the default on this platform
7747 # Common symbols not allowed in MH_DYLIB files
7748 case $cc_basename in
7749 xlc*)
7750 lt_prog_compiler_pic='-qnocommon'
7751 lt_prog_compiler_wl='-Wl,'
7752 ;;
7753 esac
7754 ;;
7755
7756 mingw* | pw32* | os2*)
7757 # This hack is so that the source file can tell whether it is being
7758 # built for inclusion in a dll (and should export symbols for example).
7759 lt_prog_compiler_pic='-DDLL_EXPORT'
7760 ;;
7761
7762 hpux9* | hpux10* | hpux11*)
7763 lt_prog_compiler_wl='-Wl,'
7764 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7765 # not for PA HP-UX.
7766 case $host_cpu in
7767 hppa*64*|ia64*)
7768 # +Z the default
7769 ;;
7770 *)
7771 lt_prog_compiler_pic='+Z'
7772 ;;
7773 esac
7774 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7775 lt_prog_compiler_static='${wl}-a ${wl}archive'
7776 ;;
7777
7778 irix5* | irix6* | nonstopux*)
7779 lt_prog_compiler_wl='-Wl,'
7780 # PIC (with -KPIC) is the default.
7781 lt_prog_compiler_static='-non_shared'
7782 ;;
7783
7784 newsos6)
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 ;;
7788
7789 linux*)
7790 case $cc_basename in
7791 icc* | ecc*)
7792 lt_prog_compiler_wl='-Wl,'
7793 lt_prog_compiler_pic='-KPIC'
7794 lt_prog_compiler_static='-static'
7795 ;;
7796 pgcc* | pgf77* | pgf90* | pgf95*)
7797 # Portland Group compilers (*not* the Pentium gcc compiler,
7798 # which looks to be a dead project)
7799 lt_prog_compiler_wl='-Wl,'
7800 lt_prog_compiler_pic='-fpic'
7801 lt_prog_compiler_static='-Bstatic'
7802 ;;
7803 ccc*)
7804 lt_prog_compiler_wl='-Wl,'
7805 # All Alpha code is PIC.
7806 lt_prog_compiler_static='-non_shared'
7807 ;;
7808 esac
7809 ;;
7810
7811 osf3* | osf4* | osf5*)
7812 lt_prog_compiler_wl='-Wl,'
7813 # All OSF/1 code is PIC.
7814 lt_prog_compiler_static='-non_shared'
7815 ;;
7816
7817 solaris*)
7818 lt_prog_compiler_pic='-KPIC'
7819 lt_prog_compiler_static='-Bstatic'
7820 case $cc_basename in
7821 f77* | f90* | f95*)
7822 lt_prog_compiler_wl='-Qoption ld ';;
7823 *)
7824 lt_prog_compiler_wl='-Wl,';;
7825 esac
7826 ;;
7827
7828 sunos4*)
7829 lt_prog_compiler_wl='-Qoption ld '
7830 lt_prog_compiler_pic='-PIC'
7831 lt_prog_compiler_static='-Bstatic'
7832 ;;
7833
7834 sysv4 | sysv4.2uw2* | sysv4.3*)
7835 lt_prog_compiler_wl='-Wl,'
7836 lt_prog_compiler_pic='-KPIC'
7837 lt_prog_compiler_static='-Bstatic'
7838 ;;
7839
7840 sysv4*MP*)
7841 if test -d /usr/nec ;then
7842 lt_prog_compiler_pic='-Kconform_pic'
7843 lt_prog_compiler_static='-Bstatic'
7844 fi
7845 ;;
7846
7847 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7848 lt_prog_compiler_wl='-Wl,'
7849 lt_prog_compiler_pic='-KPIC'
7850 lt_prog_compiler_static='-Bstatic'
7851 ;;
7852
7853 unicos*)
7854 lt_prog_compiler_wl='-Wl,'
7855 lt_prog_compiler_can_build_shared=no
7856 ;;
7857
7858 uts4*)
7859 lt_prog_compiler_pic='-pic'
7860 lt_prog_compiler_static='-Bstatic'
7861 ;;
7862
7863 *)
7864 lt_prog_compiler_can_build_shared=no
7865 ;;
7866 esac
7867 fi
7868
7869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
7870$as_echo "$lt_prog_compiler_pic" >&6; }
7871
7872#
7873# Check to make sure the PIC flag actually works.
7874#
7875if test -n "$lt_prog_compiler_pic"; then
7876
7877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7878$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7879if ${lt_prog_compiler_pic_works+:} false; then :
7880 $as_echo_n "(cached) " >&6
7881else
7882 lt_prog_compiler_pic_works=no
7883 ac_outfile=conftest.$ac_objext
7884 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7885 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7886 # Insert the option either (1) after the last *FLAGS variable, or
7887 # (2) before a word containing "conftest.", or (3) at the end.
7888 # Note that $ac_compile itself does not contain backslashes and begins
7889 # with a dollar sign (not a hyphen), so the echo should work correctly.
7890 # The option is referenced via a variable to avoid confusing sed.
7891 lt_compile=`echo "$ac_compile" | $SED \
7892 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7893 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7894 -e 's:$: $lt_compiler_flag:'`
7895 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
7896 (eval "$lt_compile" 2>conftest.err)
7897 ac_status=$?
7898 cat conftest.err >&5
7899 echo "$as_me:__oline__: \$? = $ac_status" >&5
7900 if (exit $ac_status) && test -s "$ac_outfile"; then
7901 # The compiler can only warn and ignore the option if not recognized
7902 # So say no if there are warnings other than the usual output.
7903 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7904 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7905 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7906 lt_prog_compiler_pic_works=yes
7907 fi
7908 fi
7909 $rm conftest*
7910
7911fi
7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works" >&5
7913$as_echo "$lt_prog_compiler_pic_works" >&6; }
7914
7915if test x"$lt_prog_compiler_pic_works" = xyes; then
7916 case $lt_prog_compiler_pic in
7917 "" | " "*) ;;
7918 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7919 esac
7920else
7921 lt_prog_compiler_pic=
7922 lt_prog_compiler_can_build_shared=no
7923fi
7924
7925fi
7926case $host_os in
7927 # For platforms which do not support PIC, -DPIC is meaningless:
7928 *djgpp*)
7929 lt_prog_compiler_pic=
7930 ;;
7931 *)
7932 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7933 ;;
7934esac
7935
7936#
7937# Check to make sure the static flag actually works.
7938#
7939wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7941$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7942if ${lt_prog_compiler_static_works+:} false; then :
7943 $as_echo_n "(cached) " >&6
7944else
7945 lt_prog_compiler_static_works=no
7946 save_LDFLAGS="$LDFLAGS"
7947 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7948 printf "$lt_simple_link_test_code" > conftest.$ac_ext
7949 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7950 # The linker can only warn and ignore the option if not recognized
7951 # So say no if there are warnings
7952 if test -s conftest.err; then
7953 # Append any errors to the config.log.
7954 cat conftest.err 1>&5
7955 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7956 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7957 if diff conftest.exp conftest.er2 >/dev/null; then
7958 lt_prog_compiler_static_works=yes
7959 fi
7960 else
7961 lt_prog_compiler_static_works=yes
7962 fi
7963 fi
7964 $rm conftest*
7965 LDFLAGS="$save_LDFLAGS"
7966
7967fi
7968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works" >&5
7969$as_echo "$lt_prog_compiler_static_works" >&6; }
7970
7971if test x"$lt_prog_compiler_static_works" = xyes; then
7972 :
7973else
7974 lt_prog_compiler_static=
7975fi
7976
7977
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
7979$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7980if ${lt_cv_prog_compiler_c_o+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982else
7983 lt_cv_prog_compiler_c_o=no
7984 $rm -r conftest 2>/dev/null
7985 mkdir conftest
7986 cd conftest
7987 mkdir out
7988 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
7989
7990 lt_compiler_flag="-o out/conftest2.$ac_objext"
7991 # Insert the option either (1) after the last *FLAGS variable, or
7992 # (2) before a word containing "conftest.", or (3) at the end.
7993 # Note that $ac_compile itself does not contain backslashes and begins
7994 # with a dollar sign (not a hyphen), so the echo should work correctly.
7995 lt_compile=`echo "$ac_compile" | $SED \
7996 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7997 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7998 -e 's:$: $lt_compiler_flag:'`
7999 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
8000 (eval "$lt_compile" 2>out/conftest.err)
8001 ac_status=$?
8002 cat out/conftest.err >&5
8003 echo "$as_me:__oline__: \$? = $ac_status" >&5
8004 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8005 then
8006 # The compiler can only warn and ignore the option if not recognized
8007 # So say no if there are warnings
8008 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
8009 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8010 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8011 lt_cv_prog_compiler_c_o=yes
8012 fi
8013 fi
8014 chmod u+w . 2>&5
8015 $rm conftest*
8016 # SGI C++ compiler will create directory out/ii_files/ for
8017 # template instantiation
8018 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8019 $rm out/* && rmdir out
8020 cd ..
8021 rmdir conftest
8022 $rm conftest*
8023
8024fi
8025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8026$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8027
8028
8029hard_links="nottested"
8030if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8031 # do not overwrite the value of need_locks provided by the user
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8033$as_echo_n "checking if we can lock with hard links... " >&6; }
8034 hard_links=yes
8035 $rm conftest*
8036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8037 touch conftest.a
8038 ln conftest.a conftest.b 2>&5 || hard_links=no
8039 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
8041$as_echo "$hard_links" >&6; }
8042 if test "$hard_links" = no; then
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8044$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8045 need_locks=warn
8046 fi
8047else
8048 need_locks=no
8049fi
8050
8051{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8052$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8053
8054 runpath_var=
8055 allow_undefined_flag=
8056 enable_shared_with_static_runtimes=no
8057 archive_cmds=
8058 archive_expsym_cmds=
8059 old_archive_From_new_cmds=
8060 old_archive_from_expsyms_cmds=
8061 export_dynamic_flag_spec=
8062 whole_archive_flag_spec=
8063 thread_safe_flag_spec=
8064 hardcode_libdir_flag_spec=
8065 hardcode_libdir_flag_spec_ld=
8066 hardcode_libdir_separator=
8067 hardcode_direct=no
8068 hardcode_minus_L=no
8069 hardcode_shlibpath_var=unsupported
8070 link_all_deplibs=unknown
8071 hardcode_automatic=no
8072 module_cmds=
8073 module_expsym_cmds=
8074 always_export_symbols=no
8075 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8076 # include_expsyms should be a list of space-separated symbols to be *always*
8077 # included in the symbol list
8078 include_expsyms=
8079 # exclude_expsyms can be an extended regexp of symbols to exclude
8080 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8081 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8082 # as well as any symbol that contains `d'.
8083 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8084 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8085 # platforms (ab)use it in PIC code, but their linkers get confused if
8086 # the symbol is explicitly referenced. Since portable code cannot
8087 # rely on this symbol name, it's probably fine to never include it in
8088 # preloaded symbol tables.
8089 extract_expsyms_cmds=
8090 # Just being paranoid about ensuring that cc_basename is set.
8091 for cc_temp in $compiler""; do
8092 case $cc_temp in
8093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8095 \-*) ;;
8096 *) break;;
8097 esac
8098done
8099cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8100
8101 case $host_os in
8102 cygwin* | mingw* | pw32*)
8103 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8104 # When not using gcc, we currently assume that we are using
8105 # Microsoft Visual C++.
8106 if test "$GCC" != yes; then
8107 with_gnu_ld=no
8108 fi
8109 ;;
8110 interix*)
8111 # we just hope/assume this is gcc and not c89 (= MSVC++)
8112 with_gnu_ld=yes
8113 ;;
8114 openbsd*)
8115 with_gnu_ld=no
8116 ;;
8117 esac
8118
8119 ld_shlibs=yes
8120 if test "$with_gnu_ld" = yes; then
8121 # If archive_cmds runs LD, not CC, wlarc should be empty
8122 wlarc='${wl}'
8123
8124 # Set some defaults for GNU ld with shared library support. These
8125 # are reset later if shared libraries are not supported. Putting them
8126 # here allows them to be overridden if necessary.
8127 runpath_var=LD_RUN_PATH
8128 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8129 export_dynamic_flag_spec='${wl}--export-dynamic'
8130 # ancient GNU ld didn't support --whole-archive et. al.
8131 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8132 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8133 else
8134 whole_archive_flag_spec=
8135 fi
8136 supports_anon_versioning=no
8137 case `$LD -v 2>/dev/null` in
8138 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8139 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8140 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8141 *\ 2.11.*) ;; # other 2.11 versions
8142 *) supports_anon_versioning=yes ;;
8143 esac
8144
8145 # See if GNU ld supports shared libraries.
8146 case $host_os in
8147 aix3* | aix4* | aix5*)
8148 # On AIX/PPC, the GNU linker is very broken
8149 if test "$host_cpu" != ia64; then
8150 ld_shlibs=no
8151 cat <<EOF 1>&2
8152
8153*** Warning: the GNU linker, at least up to release 2.9.1, is reported
8154*** to be unable to reliably create shared libraries on AIX.
8155*** Therefore, libtool is disabling shared libraries support. If you
8156*** really care for shared libraries, you may want to modify your PATH
8157*** so that a non-GNU linker is found, and then restart.
8158
8159EOF
8160 fi
8161 ;;
8162
8163 amigaos*)
8164 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)'
8165 hardcode_libdir_flag_spec='-L$libdir'
8166 hardcode_minus_L=yes
8167
8168 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
8169 # that the semantics of dynamic libraries on AmigaOS, at least up
8170 # to version 4, is to share data among multiple programs linked
8171 # with the same dynamic library. Since this doesn't match the
8172 # behavior of shared libraries on other platforms, we can't use
8173 # them.
8174 ld_shlibs=no
8175 ;;
8176
8177 beos*)
8178 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8179 allow_undefined_flag=unsupported
8180 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
8181 # support --undefined. This deserves some investigation. FIXME
8182 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8183 else
8184 ld_shlibs=no
8185 fi
8186 ;;
8187
8188 cygwin* | mingw* | pw32*)
8189 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8190 # as there is no search path for DLLs.
8191 hardcode_libdir_flag_spec='-L$libdir'
8192 allow_undefined_flag=unsupported
8193 always_export_symbols=no
8194 enable_shared_with_static_runtimes=yes
8195 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8196
8197 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8198 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8199 # If the export-symbols file already is a .def file (1st line
8200 # is EXPORTS), use it as is; otherwise, prepend...
8201 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8202 cp $export_symbols $output_objdir/$soname.def;
8203 else
8204 echo EXPORTS > $output_objdir/$soname.def;
8205 cat $export_symbols >> $output_objdir/$soname.def;
8206 fi~
8207 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8208 else
8209 ld_shlibs=no
8210 fi
8211 ;;
8212
8213 interix3*)
8214 hardcode_direct=no
8215 hardcode_shlibpath_var=no
8216 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8217 export_dynamic_flag_spec='${wl}-E'
8218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8219 # Instead, shared libraries are loaded at an image base (0x10000000 by
8220 # default) and relocated if they conflict, which is a slow very memory
8221 # consuming and fragmenting process. To avoid this, we pick a random,
8222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8224 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8225 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'
8226 ;;
8227
8228 linux*)
8229 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230 tmp_addflag=
8231 case $cc_basename,$host_cpu in
8232 pgcc*) # Portland Group C compiler
8233 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'
8234 tmp_addflag=' $pic_flag'
8235 ;;
8236 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8237 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'
8238 tmp_addflag=' $pic_flag -Mnomain' ;;
8239 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8240 tmp_addflag=' -i_dynamic' ;;
8241 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8242 tmp_addflag=' -i_dynamic -nofor_main' ;;
8243 ifc* | ifort*) # Intel Fortran compiler
8244 tmp_addflag=' -nofor_main' ;;
8245 esac
8246 archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8247
8248 if test $supports_anon_versioning = yes; then
8249 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8250 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8251 $echo "local: *; };" >> $output_objdir/$libname.ver~
8252 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8253 fi
8254 else
8255 ld_shlibs=no
8256 fi
8257 ;;
8258
8259 netbsd*)
8260 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8261 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8262 wlarc=
8263 else
8264 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8265 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8266 fi
8267 ;;
8268
8269 solaris*)
8270 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8271 ld_shlibs=no
8272 cat <<EOF 1>&2
8273
8274*** Warning: The releases 2.8.* of the GNU linker cannot reliably
8275*** create shared libraries on Solaris systems. Therefore, libtool
8276*** is disabling shared libraries support. We urge you to upgrade GNU
8277*** binutils to release 2.9.1 or newer. Another option is to modify
8278*** your PATH or compiler configuration so that the native linker is
8279*** used, and then restart.
8280
8281EOF
8282 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8284 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8285 else
8286 ld_shlibs=no
8287 fi
8288 ;;
8289
8290 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8291 case `$LD -v 2>&1` in
8292 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8293 ld_shlibs=no
8294 cat <<_LT_EOF 1>&2
8295
8296*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8297*** reliably create shared libraries on SCO systems. Therefore, libtool
8298*** is disabling shared libraries support. We urge you to upgrade GNU
8299*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8300*** your PATH or compiler configuration so that the native linker is
8301*** used, and then restart.
8302
8303_LT_EOF
8304 ;;
8305 *)
8306 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8307 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8308 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8309 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8310 else
8311 ld_shlibs=no
8312 fi
8313 ;;
8314 esac
8315 ;;
8316
8317 sunos4*)
8318 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8319 wlarc=
8320 hardcode_direct=yes
8321 hardcode_shlibpath_var=no
8322 ;;
8323
8324 *)
8325 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8326 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8327 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8328 else
8329 ld_shlibs=no
8330 fi
8331 ;;
8332 esac
8333
8334 if test "$ld_shlibs" = no; then
8335 runpath_var=
8336 hardcode_libdir_flag_spec=
8337 export_dynamic_flag_spec=
8338 whole_archive_flag_spec=
8339 fi
8340 else
8341 # PORTME fill in a description of your system's linker (not GNU ld)
8342 case $host_os in
8343 aix3*)
8344 allow_undefined_flag=unsupported
8345 always_export_symbols=yes
8346 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'
8347 # Note: this linker hardcodes the directories in LIBPATH if there
8348 # are no directories specified by -L.
8349 hardcode_minus_L=yes
8350 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8351 # Neither direct hardcoding nor static linking is supported with a
8352 # broken collect2.
8353 hardcode_direct=unsupported
8354 fi
8355 ;;
8356
8357 aix4* | aix5*)
8358 if test "$host_cpu" = ia64; then
8359 # On IA64, the linker does run time linking by default, so we don't
8360 # have to do anything special.
8361 aix_use_runtimelinking=no
8362 exp_sym_flag='-Bexport'
8363 no_entry_flag=""
8364 else
8365 # If we're using GNU nm, then we don't want the "-C" option.
8366 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8367 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8368 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'
8369 else
8370 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'
8371 fi
8372 aix_use_runtimelinking=no
8373
8374 # Test if we are trying to use run time linking or normal
8375 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8376 # need to do runtime linking.
8377 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8378 for ld_flag in $LDFLAGS; do
8379 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8380 aix_use_runtimelinking=yes
8381 break
8382 fi
8383 done
8384 ;;
8385 esac
8386
8387 exp_sym_flag='-bexport'
8388 no_entry_flag='-bnoentry'
8389 fi
8390
8391 # When large executables or shared objects are built, AIX ld can
8392 # have problems creating the table of contents. If linking a library
8393 # or program results in "error TOC overflow" add -mminimal-toc to
8394 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8395 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8396
8397 archive_cmds=''
8398 hardcode_direct=yes
8399 hardcode_libdir_separator=':'
8400 link_all_deplibs=yes
8401
8402 if test "$GCC" = yes; then
8403 case $host_os in aix4.[012]|aix4.[012].*)
8404 # We only want to do this on AIX 4.2 and lower, the check
8405 # below for broken collect2 doesn't work under 4.3+
8406 collect2name=`${CC} -print-prog-name=collect2`
8407 if test -f "$collect2name" && \
8408 strings "$collect2name" | grep resolve_lib_name >/dev/null
8409 then
8410 # We have reworked collect2
8411 hardcode_direct=yes
8412 else
8413 # We have old collect2
8414 hardcode_direct=unsupported
8415 # It fails to find uninstalled libraries when the uninstalled
8416 # path is not listed in the libpath. Setting hardcode_minus_L
8417 # to unsupported forces relinking
8418 hardcode_minus_L=yes
8419 hardcode_libdir_flag_spec='-L$libdir'
8420 hardcode_libdir_separator=
8421 fi
8422 ;;
8423 esac
8424 shared_flag='-shared'
8425 if test "$aix_use_runtimelinking" = yes; then
8426 shared_flag="$shared_flag "'${wl}-G'
8427 fi
8428 else
8429 # not using gcc
8430 if test "$host_cpu" = ia64; then
8431 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8432 # chokes on -Wl,-G. The following line is correct:
8433 shared_flag='-G'
8434 else
8435 if test "$aix_use_runtimelinking" = yes; then
8436 shared_flag='${wl}-G'
8437 else
8438 shared_flag='${wl}-bM:SRE'
8439 fi
8440 fi
8441 fi
8442
8443 # It seems that -bexpall does not export symbols beginning with
8444 # underscore (_), so it is better to generate a list of symbols to export.
8445 always_export_symbols=yes
8446 if test "$aix_use_runtimelinking" = yes; then
8447 # Warning - without using the other runtime loading flags (-brtl),
8448 # -berok will link without error, but may produce a broken library.
8449 allow_undefined_flag='-berok'
8450 # Determine the default libpath from the value encoded in an empty executable.
8451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8452/* end confdefs.h. */
8453
8454int
8455main ()
8456{
8457
8458 ;
8459 return 0;
8460}
8461_ACEOF
8462if ac_fn_c_try_link "$LINENO"; then :
8463
8464aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8465}'`
8466# Check for a 64-bit object if we didn't find anything.
8467if 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; }
8468}'`; fi
8469fi
8470rm -f core conftest.err conftest.$ac_objext \
8471 conftest$ac_exeext conftest.$ac_ext
8472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8473
8474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8475 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"
8476 else
8477 if test "$host_cpu" = ia64; then
8478 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8479 allow_undefined_flag="-z nodefs"
8480 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"
8481 else
8482 # Determine the default libpath from the value encoded in an empty executable.
8483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8484/* end confdefs.h. */
8485
8486int
8487main ()
8488{
8489
8490 ;
8491 return 0;
8492}
8493_ACEOF
8494if ac_fn_c_try_link "$LINENO"; then :
8495
8496aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8497}'`
8498# Check for a 64-bit object if we didn't find anything.
8499if 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; }
8500}'`; fi
8501fi
8502rm -f core conftest.err conftest.$ac_objext \
8503 conftest$ac_exeext conftest.$ac_ext
8504if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8505
8506 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8507 # Warning - without using the other run time loading flags,
8508 # -berok will link without error, but may produce a broken library.
8509 no_undefined_flag=' ${wl}-bernotok'
8510 allow_undefined_flag=' ${wl}-berok'
8511 # Exported symbols can be pulled into shared objects from archives
8512 whole_archive_flag_spec='$convenience'
8513 archive_cmds_need_lc=yes
8514 # This is similar to how AIX traditionally builds its shared libraries.
8515 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'
8516 fi
8517 fi
8518 ;;
8519
8520 amigaos*)
8521 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)'
8522 hardcode_libdir_flag_spec='-L$libdir'
8523 hardcode_minus_L=yes
8524 # see comment about different semantics on the GNU ld section
8525 ld_shlibs=no
8526 ;;
8527
8528 bsdi[45]*)
8529 export_dynamic_flag_spec=-rdynamic
8530 ;;
8531
8532 cygwin* | mingw* | pw32*)
8533 # When not using gcc, we currently assume that we are using
8534 # Microsoft Visual C++.
8535 # hardcode_libdir_flag_spec is actually meaningless, as there is
8536 # no search path for DLLs.
8537 hardcode_libdir_flag_spec=' '
8538 allow_undefined_flag=unsupported
8539 # Tell ltmain to make .lib files, not .a files.
8540 libext=lib
8541 # Tell ltmain to make .dll files, not .so files.
8542 shrext_cmds=".dll"
8543 # FIXME: Setting linknames here is a bad hack.
8544 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8545 # The linker will automatically build a .lib file if we build a DLL.
8546 old_archive_From_new_cmds='true'
8547 # FIXME: Should let the user specify the lib program.
8548 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
8549 fix_srcfile_path='`cygpath -w "$srcfile"`'
8550 enable_shared_with_static_runtimes=yes
8551 ;;
8552
8553 darwin* | rhapsody*)
8554 case $host_os in
8555 rhapsody* | darwin1.[012])
8556 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8557 ;;
8558 *) # Darwin 1.3 on
8559 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8560 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8561 else
8562 case ${MACOSX_DEPLOYMENT_TARGET} in
8563 10.[012])
8564 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8565 ;;
8566 10.*)
8567 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8568 ;;
8569 esac
8570 fi
8571 ;;
8572 esac
8573 archive_cmds_need_lc=no
8574 hardcode_direct=no
8575 hardcode_automatic=yes
8576 hardcode_shlibpath_var=unsupported
8577 whole_archive_flag_spec=''
8578 link_all_deplibs=yes
8579 if test "$GCC" = yes ; then
8580 output_verbose_link_cmd='echo'
8581 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
8582 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8583 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8584 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}'
8585 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}'
8586 else
8587 case $cc_basename in
8588 xlc*)
8589 output_verbose_link_cmd='echo'
8590 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
8591 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8592 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8593 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}'
8594 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}'
8595 ;;
8596 *)
8597 ld_shlibs=no
8598 ;;
8599 esac
8600 fi
8601 ;;
8602
8603 dgux*)
8604 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8605 hardcode_libdir_flag_spec='-L$libdir'
8606 hardcode_shlibpath_var=no
8607 ;;
8608
8609 freebsd1*)
8610 ld_shlibs=no
8611 ;;
8612
8613 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8614 # support. Future versions do this automatically, but an explicit c++rt0.o
8615 # does not break anything, and helps significantly (at the cost of a little
8616 # extra space).
8617 freebsd2.2*)
8618 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8619 hardcode_libdir_flag_spec='-R$libdir'
8620 hardcode_direct=yes
8621 hardcode_shlibpath_var=no
8622 ;;
8623
8624 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8625 freebsd2*)
8626 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8627 hardcode_direct=yes
8628 hardcode_minus_L=yes
8629 hardcode_shlibpath_var=no
8630 ;;
8631
8632 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8633 freebsd* | kfreebsd*-gnu | dragonfly*)
8634 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8635 hardcode_libdir_flag_spec='-R$libdir'
8636 hardcode_direct=yes
8637 hardcode_shlibpath_var=no
8638 ;;
8639
8640 hpux9*)
8641 if test "$GCC" = yes; then
8642 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'
8643 else
8644 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'
8645 fi
8646 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8647 hardcode_libdir_separator=:
8648 hardcode_direct=yes
8649
8650 # hardcode_minus_L: Not really in the search PATH,
8651 # but as the default location of the library.
8652 hardcode_minus_L=yes
8653 export_dynamic_flag_spec='${wl}-E'
8654 ;;
8655
8656 hpux10*)
8657 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8658 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8659 else
8660 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8661 fi
8662 if test "$with_gnu_ld" = no; then
8663 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8664 hardcode_libdir_separator=:
8665
8666 hardcode_direct=yes
8667 export_dynamic_flag_spec='${wl}-E'
8668
8669 # hardcode_minus_L: Not really in the search PATH,
8670 # but as the default location of the library.
8671 hardcode_minus_L=yes
8672 fi
8673 ;;
8674
8675 hpux11*)
8676 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8677 case $host_cpu in
8678 hppa*64*)
8679 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8680 ;;
8681 ia64*)
8682 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8683 ;;
8684 *)
8685 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8686 ;;
8687 esac
8688 else
8689 case $host_cpu in
8690 hppa*64*)
8691 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8692 ;;
8693 ia64*)
8694 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8695 ;;
8696 *)
8697 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8698 ;;
8699 esac
8700 fi
8701 if test "$with_gnu_ld" = no; then
8702 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8703 hardcode_libdir_separator=:
8704
8705 case $host_cpu in
8706 hppa*64*|ia64*)
8707 hardcode_libdir_flag_spec_ld='+b $libdir'
8708 hardcode_direct=no
8709 hardcode_shlibpath_var=no
8710 ;;
8711 *)
8712 hardcode_direct=yes
8713 export_dynamic_flag_spec='${wl}-E'
8714
8715 # hardcode_minus_L: Not really in the search PATH,
8716 # but as the default location of the library.
8717 hardcode_minus_L=yes
8718 ;;
8719 esac
8720 fi
8721 ;;
8722
8723 irix5* | irix6* | nonstopux*)
8724 if test "$GCC" = yes; then
8725 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'
8726 else
8727 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'
8728 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8729 fi
8730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8731 hardcode_libdir_separator=:
8732 link_all_deplibs=yes
8733 ;;
8734
8735 netbsd*)
8736 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8737 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8738 else
8739 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8740 fi
8741 hardcode_libdir_flag_spec='-R$libdir'
8742 hardcode_direct=yes
8743 hardcode_shlibpath_var=no
8744 ;;
8745
8746 newsos6)
8747 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8748 hardcode_direct=yes
8749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8750 hardcode_libdir_separator=:
8751 hardcode_shlibpath_var=no
8752 ;;
8753
8754 openbsd*)
8755 hardcode_direct=yes
8756 hardcode_shlibpath_var=no
8757 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8758 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8759 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8760 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8761 export_dynamic_flag_spec='${wl}-E'
8762 else
8763 case $host_os in
8764 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8765 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8766 hardcode_libdir_flag_spec='-R$libdir'
8767 ;;
8768 *)
8769 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8770 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8771 ;;
8772 esac
8773 fi
8774 ;;
8775
8776 os2*)
8777 hardcode_libdir_flag_spec='-L$libdir'
8778 hardcode_minus_L=yes
8779 allow_undefined_flag=unsupported
8780 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'
8781 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8782 ;;
8783
8784 osf3*)
8785 if test "$GCC" = yes; then
8786 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8787 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'
8788 else
8789 allow_undefined_flag=' -expect_unresolved \*'
8790 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'
8791 fi
8792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8793 hardcode_libdir_separator=:
8794 ;;
8795
8796 osf4* | osf5*) # as osf3* with the addition of -msym flag
8797 if test "$GCC" = yes; then
8798 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8799 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'
8800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801 else
8802 allow_undefined_flag=' -expect_unresolved \*'
8803 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'
8804 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8805 $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'
8806
8807 # Both c and cxx compiler support -rpath directly
8808 hardcode_libdir_flag_spec='-rpath $libdir'
8809 fi
8810 hardcode_libdir_separator=:
8811 ;;
8812
8813 solaris*)
8814 no_undefined_flag=' -z text'
8815 if test "$GCC" = yes; then
8816 wlarc='${wl}'
8817 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8818 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8819 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8820 else
8821 wlarc=''
8822 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8823 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8824 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8825 fi
8826 hardcode_libdir_flag_spec='-R$libdir'
8827 hardcode_shlibpath_var=no
8828 case $host_os in
8829 solaris2.[0-5] | solaris2.[0-5].*) ;;
8830 *)
8831 # The compiler driver will combine linker options so we
8832 # cannot just pass the convience library names through
8833 # without $wl, iff we do not link with $LD.
8834 # Luckily, gcc supports the same syntax we need for Sun Studio.
8835 # Supported since Solaris 2.6 (maybe 2.5.1?)
8836 case $wlarc in
8837 '')
8838 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
8839 *)
8840 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' ;;
8841 esac ;;
8842 esac
8843 link_all_deplibs=yes
8844 ;;
8845
8846 sunos4*)
8847 if test "x$host_vendor" = xsequent; then
8848 # Use $CC to link under sequent, because it throws in some extra .o
8849 # files that make .init and .fini sections work.
8850 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8851 else
8852 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8853 fi
8854 hardcode_libdir_flag_spec='-L$libdir'
8855 hardcode_direct=yes
8856 hardcode_minus_L=yes
8857 hardcode_shlibpath_var=no
8858 ;;
8859
8860 sysv4)
8861 case $host_vendor in
8862 sni)
8863 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8864 hardcode_direct=yes # is this really true???
8865 ;;
8866 siemens)
8867 ## LD is ld it makes a PLAMLIB
8868 ## CC just makes a GrossModule.
8869 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8870 reload_cmds='$CC -r -o $output$reload_objs'
8871 hardcode_direct=no
8872 ;;
8873 motorola)
8874 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8875 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8876 ;;
8877 esac
8878 runpath_var='LD_RUN_PATH'
8879 hardcode_shlibpath_var=no
8880 ;;
8881
8882 sysv4.3*)
8883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8884 hardcode_shlibpath_var=no
8885 export_dynamic_flag_spec='-Bexport'
8886 ;;
8887
8888 sysv4*MP*)
8889 if test -d /usr/nec; then
8890 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8891 hardcode_shlibpath_var=no
8892 runpath_var=LD_RUN_PATH
8893 hardcode_runpath_var=yes
8894 ld_shlibs=yes
8895 fi
8896 ;;
8897
8898 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
8899 no_undefined_flag='${wl}-z,text'
8900 archive_cmds_need_lc=no
8901 hardcode_shlibpath_var=no
8902 runpath_var='LD_RUN_PATH'
8903
8904 if test "$GCC" = yes; then
8905 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8906 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8907 else
8908 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8909 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8910 fi
8911 ;;
8912
8913 sysv5* | sco3.2v5* | sco5v6*)
8914 # Note: We can NOT use -z defs as we might desire, because we do not
8915 # link with -lc, and that would cause any symbols used from libc to
8916 # always be unresolved, which means just about no library would
8917 # ever link correctly. If we're not using GNU ld we use -z text
8918 # though, which does catch some bad symbols but isn't as heavy-handed
8919 # as -z defs.
8920 no_undefined_flag='${wl}-z,text'
8921 allow_undefined_flag='${wl}-z,nodefs'
8922 archive_cmds_need_lc=no
8923 hardcode_shlibpath_var=no
8924 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8925 hardcode_libdir_separator=':'
8926 link_all_deplibs=yes
8927 export_dynamic_flag_spec='${wl}-Bexport'
8928 runpath_var='LD_RUN_PATH'
8929
8930 if test "$GCC" = yes; then
8931 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8933 else
8934 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8936 fi
8937 ;;
8938
8939 uts4*)
8940 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8941 hardcode_libdir_flag_spec='-L$libdir'
8942 hardcode_shlibpath_var=no
8943 ;;
8944
8945 *)
8946 ld_shlibs=no
8947 ;;
8948 esac
8949 fi
8950
8951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
8952$as_echo "$ld_shlibs" >&6; }
8953test "$ld_shlibs" = no && can_build_shared=no
8954
8955#
8956# Do we need to explicitly link libc?
8957#
8958case "x$archive_cmds_need_lc" in
8959x|xyes)
8960 # Assume -lc should be added
8961 archive_cmds_need_lc=yes
8962
8963 if test "$enable_shared" = yes && test "$GCC" = yes; then
8964 case $archive_cmds in
8965 *'~'*)
8966 # FIXME: we may have to deal with multi-command sequences.
8967 ;;
8968 '$CC '*)
8969 # Test whether the compiler implicitly links with -lc since on some
8970 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8971 # to ld, don't add -lc before -lgcc.
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
8973$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
8974 $rm conftest*
8975 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8976
8977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8978 (eval $ac_compile) 2>&5
8979 ac_status=$?
8980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8981 test $ac_status = 0; } 2>conftest.err; then
8982 soname=conftest
8983 lib=conftest
8984 libobjs=conftest.$ac_objext
8985 deplibs=
8986 wl=$lt_prog_compiler_wl
8987 pic_flag=$lt_prog_compiler_pic
8988 compiler_flags=-v
8989 linker_flags=-v
8990 verstring=
8991 output_objdir=.
8992 libname=conftest
8993 lt_save_allow_undefined_flag=$allow_undefined_flag
8994 allow_undefined_flag=
8995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
8996 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8997 ac_status=$?
8998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8999 test $ac_status = 0; }
9000 then
9001 archive_cmds_need_lc=no
9002 else
9003 archive_cmds_need_lc=yes
9004 fi
9005 allow_undefined_flag=$lt_save_allow_undefined_flag
9006 else
9007 cat conftest.err 1>&5
9008 fi
9009 $rm conftest*
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
9011$as_echo "$archive_cmds_need_lc" >&6; }
9012 ;;
9013 esac
9014 fi
9015 ;;
9016esac
9017
9018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
9019$as_echo_n "checking dynamic linker characteristics... " >&6; }
9020library_names_spec=
9021libname_spec='lib$name'
9022soname_spec=
9023shrext_cmds=".so"
9024postinstall_cmds=
9025postuninstall_cmds=
9026finish_cmds=
9027finish_eval=
9028shlibpath_var=
9029shlibpath_overrides_runpath=unknown
9030version_type=none
9031dynamic_linker="$host_os ld.so"
9032sys_lib_dlsearch_path_spec="/lib /usr/lib"
9033if test "$GCC" = yes; then
9034 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9035 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9036 # if the path contains ";" then we assume it to be the separator
9037 # otherwise default to the standard path separator (i.e. ":") - it is
9038 # assumed that no part of a normal pathname contains ";" but that should
9039 # okay in the real world where ";" in dirpaths is itself problematic.
9040 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9041 else
9042 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9043 fi
9044else
9045 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9046fi
9047need_lib_prefix=unknown
9048hardcode_into_libs=no
9049
9050# when you set need_version to no, make sure it does not cause -set_version
9051# flags to be left without arguments
9052need_version=unknown
9053
9054case $host_os in
9055aix3*)
9056 version_type=linux
9057 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9058 shlibpath_var=LIBPATH
9059
9060 # AIX 3 has no versioning support, so we append a major version to the name.
9061 soname_spec='${libname}${release}${shared_ext}$major'
9062 ;;
9063
9064aix4* | aix5*)
9065 version_type=linux
9066 need_lib_prefix=no
9067 need_version=no
9068 hardcode_into_libs=yes
9069 if test "$host_cpu" = ia64; then
9070 # AIX 5 supports IA64
9071 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9072 shlibpath_var=LD_LIBRARY_PATH
9073 else
9074 # With GCC up to 2.95.x, collect2 would create an import file
9075 # for dependence libraries. The import file would start with
9076 # the line `#! .'. This would cause the generated library to
9077 # depend on `.', always an invalid library. This was fixed in
9078 # development snapshots of GCC prior to 3.0.
9079 case $host_os in
9080 aix4 | aix4.[01] | aix4.[01].*)
9081 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9082 echo ' yes '
9083 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9084 :
9085 else
9086 can_build_shared=no
9087 fi
9088 ;;
9089 esac
9090 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9091 # soname into executable. Probably we can add versioning support to
9092 # collect2, so additional links can be useful in future.
9093 if test "$aix_use_runtimelinking" = yes; then
9094 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9095 # instead of lib<name>.a to let people know that these are not
9096 # typical AIX shared libraries.
9097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9098 else
9099 # We preserve .a as extension for shared libraries through AIX4.2
9100 # and later when we are not doing run time linking.
9101 library_names_spec='${libname}${release}.a $libname.a'
9102 soname_spec='${libname}${release}${shared_ext}$major'
9103 fi
9104 shlibpath_var=LIBPATH
9105 fi
9106 ;;
9107
9108amigaos*)
9109 library_names_spec='$libname.ixlibrary $libname.a'
9110 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9111 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'
9112 ;;
9113
9114beos*)
9115 library_names_spec='${libname}${shared_ext}'
9116 dynamic_linker="$host_os ld.so"
9117 shlibpath_var=LIBRARY_PATH
9118 ;;
9119
9120bsdi[45]*)
9121 version_type=linux
9122 need_version=no
9123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9124 soname_spec='${libname}${release}${shared_ext}$major'
9125 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9126 shlibpath_var=LD_LIBRARY_PATH
9127 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9128 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9129 # the default ld.so.conf also contains /usr/contrib/lib and
9130 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9131 # libtool to hard-code these into programs
9132 ;;
9133
9134cygwin* | mingw* | pw32*)
9135 version_type=windows
9136 shrext_cmds=".dll"
9137 need_version=no
9138 need_lib_prefix=no
9139
9140 case $GCC,$host_os in
9141 yes,cygwin* | yes,mingw* | yes,pw32*)
9142 library_names_spec='$libname.dll.a'
9143 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9144 postinstall_cmds='base_file=`basename \${file}`~
9145 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9146 dldir=$destdir/`dirname \$dlpath`~
9147 test -d \$dldir || mkdir -p \$dldir~
9148 $install_prog $dir/$dlname \$dldir/$dlname~
9149 chmod a+x \$dldir/$dlname'
9150 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9151 dlpath=$dir/\$dldll~
9152 $rm \$dlpath'
9153 shlibpath_overrides_runpath=yes
9154
9155 case $host_os in
9156 cygwin*)
9157 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9158 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9159 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9160 ;;
9161 mingw*)
9162 # MinGW DLLs use traditional 'lib' prefix
9163 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9164 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9165 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9166 # It is most probably a Windows format PATH printed by
9167 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9168 # path with ; separators, and with drive letters. We can handle the
9169 # drive letters (cygwin fileutils understands them), so leave them,
9170 # especially as we might pass files found there to a mingw objdump,
9171 # which wouldn't understand a cygwinified path. Ahh.
9172 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9173 else
9174 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9175 fi
9176 ;;
9177 pw32*)
9178 # pw32 DLLs use 'pw' prefix rather than 'lib'
9179 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9180 ;;
9181 esac
9182 ;;
9183
9184 *)
9185 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9186 ;;
9187 esac
9188 dynamic_linker='Win32 ld.exe'
9189 # FIXME: first we should search . and the directory the executable is in
9190 shlibpath_var=PATH
9191 ;;
9192
9193darwin* | rhapsody*)
9194 dynamic_linker="$host_os dyld"
9195 version_type=darwin
9196 need_lib_prefix=no
9197 need_version=no
9198 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9199 soname_spec='${libname}${release}${major}$shared_ext'
9200 shlibpath_overrides_runpath=yes
9201 shlibpath_var=DYLD_LIBRARY_PATH
9202 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9203 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9204 if test "$GCC" = yes; then
9205 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"`
9206 else
9207 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9208 fi
9209 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9210 ;;
9211
9212dgux*)
9213 version_type=linux
9214 need_lib_prefix=no
9215 need_version=no
9216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9217 soname_spec='${libname}${release}${shared_ext}$major'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 ;;
9220
9221freebsd1*)
9222 dynamic_linker=no
9223 ;;
9224
9225kfreebsd*-gnu)
9226 version_type=linux
9227 need_lib_prefix=no
9228 need_version=no
9229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9230 soname_spec='${libname}${release}${shared_ext}$major'
9231 shlibpath_var=LD_LIBRARY_PATH
9232 shlibpath_overrides_runpath=no
9233 hardcode_into_libs=yes
9234 dynamic_linker='GNU ld.so'
9235 ;;
9236
9237freebsd* | dragonfly*)
9238 # DragonFly does not have aout. When/if they implement a new
9239 # versioning mechanism, adjust this.
9240 if test -x /usr/bin/objformat; then
9241 objformat=`/usr/bin/objformat`
9242 else
9243 case $host_os in
9244 freebsd[123]*) objformat=aout ;;
9245 *) objformat=elf ;;
9246 esac
9247 fi
9248 version_type=freebsd-$objformat
9249 case $version_type in
9250 freebsd-elf*)
9251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9252 need_version=no
9253 need_lib_prefix=no
9254 ;;
9255 freebsd-*)
9256 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9257 need_version=yes
9258 ;;
9259 esac
9260 shlibpath_var=LD_LIBRARY_PATH
9261 case $host_os in
9262 freebsd2*)
9263 shlibpath_overrides_runpath=yes
9264 ;;
9265 freebsd3.[01]* | freebsdelf3.[01]*)
9266 shlibpath_overrides_runpath=yes
9267 hardcode_into_libs=yes
9268 ;;
9269 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9270 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9271 shlibpath_overrides_runpath=no
9272 hardcode_into_libs=yes
9273 ;;
9274 freebsd*) # from 4.6 on
9275 shlibpath_overrides_runpath=yes
9276 hardcode_into_libs=yes
9277 ;;
9278 esac
9279 ;;
9280
9281gnu*)
9282 version_type=linux
9283 need_lib_prefix=no
9284 need_version=no
9285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9286 soname_spec='${libname}${release}${shared_ext}$major'
9287 shlibpath_var=LD_LIBRARY_PATH
9288 hardcode_into_libs=yes
9289 ;;
9290
9291hpux9* | hpux10* | hpux11*)
9292 # Give a soname corresponding to the major version so that dld.sl refuses to
9293 # link against other versions.
9294 version_type=sunos
9295 need_lib_prefix=no
9296 need_version=no
9297 case $host_cpu in
9298 ia64*)
9299 shrext_cmds='.so'
9300 hardcode_into_libs=yes
9301 dynamic_linker="$host_os dld.so"
9302 shlibpath_var=LD_LIBRARY_PATH
9303 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 if test "X$HPUX_IA64_MODE" = X32; then
9307 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9308 else
9309 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9310 fi
9311 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9312 ;;
9313 hppa*64*)
9314 shrext_cmds='.sl'
9315 hardcode_into_libs=yes
9316 dynamic_linker="$host_os dld.sl"
9317 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9318 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9320 soname_spec='${libname}${release}${shared_ext}$major'
9321 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9322 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9323 ;;
9324 *)
9325 shrext_cmds='.sl'
9326 dynamic_linker="$host_os dld.sl"
9327 shlibpath_var=SHLIB_PATH
9328 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9330 soname_spec='${libname}${release}${shared_ext}$major'
9331 ;;
9332 esac
9333 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9334 postinstall_cmds='chmod 555 $lib'
9335 ;;
9336
9337interix3*)
9338 version_type=linux
9339 need_lib_prefix=no
9340 need_version=no
9341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9342 soname_spec='${libname}${release}${shared_ext}$major'
9343 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9344 shlibpath_var=LD_LIBRARY_PATH
9345 shlibpath_overrides_runpath=no
9346 hardcode_into_libs=yes
9347 ;;
9348
9349irix5* | irix6* | nonstopux*)
9350 case $host_os in
9351 nonstopux*) version_type=nonstopux ;;
9352 *)
9353 if test "$lt_cv_prog_gnu_ld" = yes; then
9354 version_type=linux
9355 else
9356 version_type=irix
9357 fi ;;
9358 esac
9359 need_lib_prefix=no
9360 need_version=no
9361 soname_spec='${libname}${release}${shared_ext}$major'
9362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9363 case $host_os in
9364 irix5* | nonstopux*)
9365 libsuff= shlibsuff=
9366 ;;
9367 *)
9368 case $LD in # libtool.m4 will add one of these switches to LD
9369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9370 libsuff= shlibsuff= libmagic=32-bit;;
9371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9372 libsuff=32 shlibsuff=N32 libmagic=N32;;
9373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9374 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9375 *) libsuff= shlibsuff= libmagic=never-match;;
9376 esac
9377 ;;
9378 esac
9379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9380 shlibpath_overrides_runpath=no
9381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9383 hardcode_into_libs=yes
9384 ;;
9385
9386# No shared lib support for Linux oldld, aout, or coff.
9387linux*oldld* | linux*aout* | linux*coff*)
9388 dynamic_linker=no
9389 ;;
9390
9391# This must be Linux ELF.
9392linux*)
9393 version_type=linux
9394 need_lib_prefix=no
9395 need_version=no
9396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9397 soname_spec='${libname}${release}${shared_ext}$major'
9398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9399 shlibpath_var=LD_LIBRARY_PATH
9400 shlibpath_overrides_runpath=no
9401 # This implies no fast_install, which is unacceptable.
9402 # Some rework will be needed to allow for fast_install
9403 # before this can be enabled.
9404 hardcode_into_libs=yes
9405
9406 # Append ld.so.conf contents to the search path
9407 if test -f /etc/ld.so.conf; then
9408 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' ' '`
9409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9410 fi
9411
9412 # We used to test for /lib/ld.so.1 and disable shared libraries on
9413 # powerpc, because MkLinux only supported shared libraries with the
9414 # GNU dynamic linker. Since this was broken with cross compilers,
9415 # most powerpc-linux boxes support dynamic linking these days and
9416 # people can always --disable-shared, the test was removed, and we
9417 # assume the GNU/Linux dynamic linker is in use.
9418 dynamic_linker='GNU/Linux ld.so'
9419 ;;
9420
9421knetbsd*-gnu)
9422 version_type=linux
9423 need_lib_prefix=no
9424 need_version=no
9425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9426 soname_spec='${libname}${release}${shared_ext}$major'
9427 shlibpath_var=LD_LIBRARY_PATH
9428 shlibpath_overrides_runpath=no
9429 hardcode_into_libs=yes
9430 dynamic_linker='GNU ld.so'
9431 ;;
9432
9433netbsd*)
9434 version_type=sunos
9435 need_lib_prefix=no
9436 need_version=no
9437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9440 dynamic_linker='NetBSD (a.out) ld.so'
9441 else
9442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9443 soname_spec='${libname}${release}${shared_ext}$major'
9444 dynamic_linker='NetBSD ld.elf_so'
9445 fi
9446 shlibpath_var=LD_LIBRARY_PATH
9447 shlibpath_overrides_runpath=yes
9448 hardcode_into_libs=yes
9449 ;;
9450
9451newsos6)
9452 version_type=linux
9453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9454 shlibpath_var=LD_LIBRARY_PATH
9455 shlibpath_overrides_runpath=yes
9456 ;;
9457
9458nto-qnx*)
9459 version_type=linux
9460 need_lib_prefix=no
9461 need_version=no
9462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9463 soname_spec='${libname}${release}${shared_ext}$major'
9464 shlibpath_var=LD_LIBRARY_PATH
9465 shlibpath_overrides_runpath=yes
9466 ;;
9467
9468openbsd*)
9469 version_type=sunos
9470 sys_lib_dlsearch_path_spec="/usr/lib"
9471 need_lib_prefix=no
9472 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9473 case $host_os in
9474 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9475 *) need_version=no ;;
9476 esac
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9479 shlibpath_var=LD_LIBRARY_PATH
9480 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9481 case $host_os in
9482 openbsd2.[89] | openbsd2.[89].*)
9483 shlibpath_overrides_runpath=no
9484 ;;
9485 *)
9486 shlibpath_overrides_runpath=yes
9487 ;;
9488 esac
9489 else
9490 shlibpath_overrides_runpath=yes
9491 fi
9492 ;;
9493
9494os2*)
9495 libname_spec='$name'
9496 shrext_cmds=".dll"
9497 need_lib_prefix=no
9498 library_names_spec='$libname${shared_ext} $libname.a'
9499 dynamic_linker='OS/2 ld.exe'
9500 shlibpath_var=LIBPATH
9501 ;;
9502
9503osf3* | osf4* | osf5*)
9504 version_type=osf
9505 need_lib_prefix=no
9506 need_version=no
9507 soname_spec='${libname}${release}${shared_ext}$major'
9508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9509 shlibpath_var=LD_LIBRARY_PATH
9510 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9511 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9512 ;;
9513
9514solaris*)
9515 version_type=linux
9516 need_lib_prefix=no
9517 need_version=no
9518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9519 soname_spec='${libname}${release}${shared_ext}$major'
9520 shlibpath_var=LD_LIBRARY_PATH
9521 shlibpath_overrides_runpath=yes
9522 hardcode_into_libs=yes
9523 # ldd complains unless libraries are executable
9524 postinstall_cmds='chmod +x $lib'
9525 ;;
9526
9527sunos4*)
9528 version_type=sunos
9529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9530 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes
9533 if test "$with_gnu_ld" = yes; then
9534 need_lib_prefix=no
9535 fi
9536 need_version=yes
9537 ;;
9538
9539sysv4 | sysv4.3*)
9540 version_type=linux
9541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9542 soname_spec='${libname}${release}${shared_ext}$major'
9543 shlibpath_var=LD_LIBRARY_PATH
9544 case $host_vendor in
9545 sni)
9546 shlibpath_overrides_runpath=no
9547 need_lib_prefix=no
9548 export_dynamic_flag_spec='${wl}-Blargedynsym'
9549 runpath_var=LD_RUN_PATH
9550 ;;
9551 siemens)
9552 need_lib_prefix=no
9553 ;;
9554 motorola)
9555 need_lib_prefix=no
9556 need_version=no
9557 shlibpath_overrides_runpath=no
9558 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9559 ;;
9560 esac
9561 ;;
9562
9563sysv4*MP*)
9564 if test -d /usr/nec ;then
9565 version_type=linux
9566 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9567 soname_spec='$libname${shared_ext}.$major'
9568 shlibpath_var=LD_LIBRARY_PATH
9569 fi
9570 ;;
9571
9572sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9573 version_type=freebsd-elf
9574 need_lib_prefix=no
9575 need_version=no
9576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9577 soname_spec='${libname}${release}${shared_ext}$major'
9578 shlibpath_var=LD_LIBRARY_PATH
9579 hardcode_into_libs=yes
9580 if test "$with_gnu_ld" = yes; then
9581 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9582 shlibpath_overrides_runpath=no
9583 else
9584 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9585 shlibpath_overrides_runpath=yes
9586 case $host_os in
9587 sco3.2v5*)
9588 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9589 ;;
9590 esac
9591 fi
9592 sys_lib_dlsearch_path_spec='/usr/lib'
9593 ;;
9594
9595uts4*)
9596 version_type=linux
9597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9598 soname_spec='${libname}${release}${shared_ext}$major'
9599 shlibpath_var=LD_LIBRARY_PATH
9600 ;;
9601
9602*)
9603 dynamic_linker=no
9604 ;;
9605esac
9606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
9607$as_echo "$dynamic_linker" >&6; }
9608test "$dynamic_linker" = no && can_build_shared=no
9609
9610variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9611if test "$GCC" = yes; then
9612 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9613fi
9614
9615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
9616$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9617hardcode_action=
9618if test -n "$hardcode_libdir_flag_spec" || \
9619 test -n "$runpath_var" || \
9620 test "X$hardcode_automatic" = "Xyes" ; then
9621
9622 # We can hardcode non-existant directories.
9623 if test "$hardcode_direct" != no &&
9624 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9625 # have to relink, otherwise we might link with an installed library
9626 # when we should be linking with a yet-to-be-installed one
9627 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9628 test "$hardcode_minus_L" != no; then
9629 # Linking always hardcodes the temporary library directory.
9630 hardcode_action=relink
9631 else
9632 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9633 hardcode_action=immediate
9634 fi
9635else
9636 # We cannot hardcode anything, or else we can only hardcode existing
9637 # directories.
9638 hardcode_action=unsupported
9639fi
9640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
9641$as_echo "$hardcode_action" >&6; }
9642
9643if test "$hardcode_action" = relink; then
9644 # Fast installation is not supported
9645 enable_fast_install=no
9646elif test "$shlibpath_overrides_runpath" = yes ||
9647 test "$enable_shared" = no; then
9648 # Fast installation is not necessary
9649 enable_fast_install=needless
9650fi
9651
9652striplib=
9653old_striplib=
9654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
9655$as_echo_n "checking whether stripping libraries is possible... " >&6; }
9656if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9657 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9658 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9660$as_echo "yes" >&6; }
9661else
9662# FIXME - insert some real tests, host_os isn't really good enough
9663 case $host_os in
9664 darwin*)
9665 if test -n "$STRIP" ; then
9666 striplib="$STRIP -x"
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9668$as_echo "yes" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671$as_echo "no" >&6; }
9672fi
9673 ;;
9674 *)
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9676$as_echo "no" >&6; }
9677 ;;
9678 esac
9679fi
9680
9681if test "x$enable_dlopen" != xyes; then
9682 enable_dlopen=unknown
9683 enable_dlopen_self=unknown
9684 enable_dlopen_self_static=unknown
9685else
9686 lt_cv_dlopen=no
9687 lt_cv_dlopen_libs=
9688
9689 case $host_os in
9690 beos*)
9691 lt_cv_dlopen="load_add_on"
9692 lt_cv_dlopen_libs=
9693 lt_cv_dlopen_self=yes
9694 ;;
9695
9696 mingw* | pw32*)
9697 lt_cv_dlopen="LoadLibrary"
9698 lt_cv_dlopen_libs=
9699 ;;
9700
9701 cygwin*)
9702 lt_cv_dlopen="dlopen"
9703 lt_cv_dlopen_libs=
9704 ;;
9705
9706 darwin*)
9707 # if libdl is installed we need to link against it
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9709$as_echo_n "checking for dlopen in -ldl... " >&6; }
9710if ${ac_cv_lib_dl_dlopen+:} false; then :
9711 $as_echo_n "(cached) " >&6
9712else
9713 ac_check_lib_save_LIBS=$LIBS
9714LIBS="-ldl $LIBS"
9715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9716/* end confdefs.h. */
9717
9718/* Override any GCC internal prototype to avoid an error.
9719 Use char because int might match the return type of a GCC
9720 builtin and then its argument prototype would still apply. */
9721#ifdef __cplusplus
9722extern "C"
9723#endif
9724char dlopen ();
9725int
9726main ()
9727{
9728return dlopen ();
9729 ;
9730 return 0;
9731}
9732_ACEOF
9733if ac_fn_c_try_link "$LINENO"; then :
9734 ac_cv_lib_dl_dlopen=yes
9735else
9736 ac_cv_lib_dl_dlopen=no
9737fi
9738rm -f core conftest.err conftest.$ac_objext \
9739 conftest$ac_exeext conftest.$ac_ext
9740LIBS=$ac_check_lib_save_LIBS
9741fi
9742{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9743$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9744if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9745 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9746else
9747
9748 lt_cv_dlopen="dyld"
9749 lt_cv_dlopen_libs=
9750 lt_cv_dlopen_self=yes
9751
9752fi
9753
9754 ;;
9755
9756 *)
9757 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
9758if test "x$ac_cv_func_shl_load" = xyes; then :
9759 lt_cv_dlopen="shl_load"
9760else
9761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
9762$as_echo_n "checking for shl_load in -ldld... " >&6; }
9763if ${ac_cv_lib_dld_shl_load+:} false; then :
9764 $as_echo_n "(cached) " >&6
9765else
9766 ac_check_lib_save_LIBS=$LIBS
9767LIBS="-ldld $LIBS"
9768cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9769/* end confdefs.h. */
9770
9771/* Override any GCC internal prototype to avoid an error.
9772 Use char because int might match the return type of a GCC
9773 builtin and then its argument prototype would still apply. */
9774#ifdef __cplusplus
9775extern "C"
9776#endif
9777char shl_load ();
9778int
9779main ()
9780{
9781return shl_load ();
9782 ;
9783 return 0;
9784}
9785_ACEOF
9786if ac_fn_c_try_link "$LINENO"; then :
9787 ac_cv_lib_dld_shl_load=yes
9788else
9789 ac_cv_lib_dld_shl_load=no
9790fi
9791rm -f core conftest.err conftest.$ac_objext \
9792 conftest$ac_exeext conftest.$ac_ext
9793LIBS=$ac_check_lib_save_LIBS
9794fi
9795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
9796$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
9797if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
9798 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
9799else
9800 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
9801if test "x$ac_cv_func_dlopen" = xyes; then :
9802 lt_cv_dlopen="dlopen"
9803else
9804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
9805$as_echo_n "checking for dlopen in -ldl... " >&6; }
9806if ${ac_cv_lib_dl_dlopen+:} false; then :
9807 $as_echo_n "(cached) " >&6
9808else
9809 ac_check_lib_save_LIBS=$LIBS
9810LIBS="-ldl $LIBS"
9811cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h. */
9813
9814/* Override any GCC internal prototype to avoid an error.
9815 Use char because int might match the return type of a GCC
9816 builtin and then its argument prototype would still apply. */
9817#ifdef __cplusplus
9818extern "C"
9819#endif
9820char dlopen ();
9821int
9822main ()
9823{
9824return dlopen ();
9825 ;
9826 return 0;
9827}
9828_ACEOF
9829if ac_fn_c_try_link "$LINENO"; then :
9830 ac_cv_lib_dl_dlopen=yes
9831else
9832 ac_cv_lib_dl_dlopen=no
9833fi
9834rm -f core conftest.err conftest.$ac_objext \
9835 conftest$ac_exeext conftest.$ac_ext
9836LIBS=$ac_check_lib_save_LIBS
9837fi
9838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
9839$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9840if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
9841 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9842else
9843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
9844$as_echo_n "checking for dlopen in -lsvld... " >&6; }
9845if ${ac_cv_lib_svld_dlopen+:} false; then :
9846 $as_echo_n "(cached) " >&6
9847else
9848 ac_check_lib_save_LIBS=$LIBS
9849LIBS="-lsvld $LIBS"
9850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9851/* end confdefs.h. */
9852
9853/* Override any GCC internal prototype to avoid an error.
9854 Use char because int might match the return type of a GCC
9855 builtin and then its argument prototype would still apply. */
9856#ifdef __cplusplus
9857extern "C"
9858#endif
9859char dlopen ();
9860int
9861main ()
9862{
9863return dlopen ();
9864 ;
9865 return 0;
9866}
9867_ACEOF
9868if ac_fn_c_try_link "$LINENO"; then :
9869 ac_cv_lib_svld_dlopen=yes
9870else
9871 ac_cv_lib_svld_dlopen=no
9872fi
9873rm -f core conftest.err conftest.$ac_objext \
9874 conftest$ac_exeext conftest.$ac_ext
9875LIBS=$ac_check_lib_save_LIBS
9876fi
9877{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
9878$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
9879if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
9880 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9881else
9882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
9883$as_echo_n "checking for dld_link in -ldld... " >&6; }
9884if ${ac_cv_lib_dld_dld_link+:} false; then :
9885 $as_echo_n "(cached) " >&6
9886else
9887 ac_check_lib_save_LIBS=$LIBS
9888LIBS="-ldld $LIBS"
9889cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9890/* end confdefs.h. */
9891
9892/* Override any GCC internal prototype to avoid an error.
9893 Use char because int might match the return type of a GCC
9894 builtin and then its argument prototype would still apply. */
9895#ifdef __cplusplus
9896extern "C"
9897#endif
9898char dld_link ();
9899int
9900main ()
9901{
9902return dld_link ();
9903 ;
9904 return 0;
9905}
9906_ACEOF
9907if ac_fn_c_try_link "$LINENO"; then :
9908 ac_cv_lib_dld_dld_link=yes
9909else
9910 ac_cv_lib_dld_dld_link=no
9911fi
9912rm -f core conftest.err conftest.$ac_objext \
9913 conftest$ac_exeext conftest.$ac_ext
9914LIBS=$ac_check_lib_save_LIBS
9915fi
9916{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
9917$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
9918if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
9919 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
9920fi
9921
9922
9923fi
9924
9925
9926fi
9927
9928
9929fi
9930
9931
9932fi
9933
9934
9935fi
9936
9937 ;;
9938 esac
9939
9940 if test "x$lt_cv_dlopen" != xno; then
9941 enable_dlopen=yes
9942 else
9943 enable_dlopen=no
9944 fi
9945
9946 case $lt_cv_dlopen in
9947 dlopen)
9948 save_CPPFLAGS="$CPPFLAGS"
9949 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9950
9951 save_LDFLAGS="$LDFLAGS"
9952 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9953
9954 save_LIBS="$LIBS"
9955 LIBS="$lt_cv_dlopen_libs $LIBS"
9956
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
9958$as_echo_n "checking whether a program can dlopen itself... " >&6; }
9959if ${lt_cv_dlopen_self+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961else
9962 if test "$cross_compiling" = yes; then :
9963 lt_cv_dlopen_self=cross
9964else
9965 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9966 lt_status=$lt_dlunknown
9967 cat > conftest.$ac_ext <<EOF
9968#line __oline__ "configure"
9969#include "confdefs.h"
9970
9971#if HAVE_DLFCN_H
9972#include <dlfcn.h>
9973#endif
9974
9975#include <stdio.h>
9976
9977#ifdef RTLD_GLOBAL
9978# define LT_DLGLOBAL RTLD_GLOBAL
9979#else
9980# ifdef DL_GLOBAL
9981# define LT_DLGLOBAL DL_GLOBAL
9982# else
9983# define LT_DLGLOBAL 0
9984# endif
9985#endif
9986
9987/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9988 find out it does not work in some platform. */
9989#ifndef LT_DLLAZY_OR_NOW
9990# ifdef RTLD_LAZY
9991# define LT_DLLAZY_OR_NOW RTLD_LAZY
9992# else
9993# ifdef DL_LAZY
9994# define LT_DLLAZY_OR_NOW DL_LAZY
9995# else
9996# ifdef RTLD_NOW
9997# define LT_DLLAZY_OR_NOW RTLD_NOW
9998# else
9999# ifdef DL_NOW
10000# define LT_DLLAZY_OR_NOW DL_NOW
10001# else
10002# define LT_DLLAZY_OR_NOW 0
10003# endif
10004# endif
10005# endif
10006# endif
10007#endif
10008
10009#ifdef __cplusplus
10010extern "C" void exit (int);
10011#endif
10012
10013void fnord() { int i=42;}
10014int main ()
10015{
10016 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10017 int status = $lt_dlunknown;
10018
10019 if (self)
10020 {
10021 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10022 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10023 /* dlclose (self); */
10024 }
10025 else
10026 puts (dlerror ());
10027
10028 exit (status);
10029}
10030EOF
10031 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10032 (eval $ac_link) 2>&5
10033 ac_status=$?
10034 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10035 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10036 (./conftest; exit; ) >&5 2>/dev/null
10037 lt_status=$?
10038 case x$lt_status in
10039 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10040 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10041 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10042 esac
10043 else :
10044 # compilation failed
10045 lt_cv_dlopen_self=no
10046 fi
10047fi
10048rm -fr conftest*
10049
10050
10051fi
10052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
10053$as_echo "$lt_cv_dlopen_self" >&6; }
10054
10055 if test "x$lt_cv_dlopen_self" = xyes; then
10056 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
10058$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10059if ${lt_cv_dlopen_self_static+:} false; then :
10060 $as_echo_n "(cached) " >&6
10061else
10062 if test "$cross_compiling" = yes; then :
10063 lt_cv_dlopen_self_static=cross
10064else
10065 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10066 lt_status=$lt_dlunknown
10067 cat > conftest.$ac_ext <<EOF
10068#line __oline__ "configure"
10069#include "confdefs.h"
10070
10071#if HAVE_DLFCN_H
10072#include <dlfcn.h>
10073#endif
10074
10075#include <stdio.h>
10076
10077#ifdef RTLD_GLOBAL
10078# define LT_DLGLOBAL RTLD_GLOBAL
10079#else
10080# ifdef DL_GLOBAL
10081# define LT_DLGLOBAL DL_GLOBAL
10082# else
10083# define LT_DLGLOBAL 0
10084# endif
10085#endif
10086
10087/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10088 find out it does not work in some platform. */
10089#ifndef LT_DLLAZY_OR_NOW
10090# ifdef RTLD_LAZY
10091# define LT_DLLAZY_OR_NOW RTLD_LAZY
10092# else
10093# ifdef DL_LAZY
10094# define LT_DLLAZY_OR_NOW DL_LAZY
10095# else
10096# ifdef RTLD_NOW
10097# define LT_DLLAZY_OR_NOW RTLD_NOW
10098# else
10099# ifdef DL_NOW
10100# define LT_DLLAZY_OR_NOW DL_NOW
10101# else
10102# define LT_DLLAZY_OR_NOW 0
10103# endif
10104# endif
10105# endif
10106# endif
10107#endif
10108
10109#ifdef __cplusplus
10110extern "C" void exit (int);
10111#endif
10112
10113void fnord() { int i=42;}
10114int main ()
10115{
10116 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10117 int status = $lt_dlunknown;
10118
10119 if (self)
10120 {
10121 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10122 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10123 /* dlclose (self); */
10124 }
10125 else
10126 puts (dlerror ());
10127
10128 exit (status);
10129}
10130EOF
10131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10132 (eval $ac_link) 2>&5
10133 ac_status=$?
10134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10135 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
10136 (./conftest; exit; ) >&5 2>/dev/null
10137 lt_status=$?
10138 case x$lt_status in
10139 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10140 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10141 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10142 esac
10143 else :
10144 # compilation failed
10145 lt_cv_dlopen_self_static=no
10146 fi
10147fi
10148rm -fr conftest*
10149
10150
10151fi
10152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
10153$as_echo "$lt_cv_dlopen_self_static" >&6; }
10154 fi
10155
10156 CPPFLAGS="$save_CPPFLAGS"
10157 LDFLAGS="$save_LDFLAGS"
10158 LIBS="$save_LIBS"
10159 ;;
10160 esac
10161
10162 case $lt_cv_dlopen_self in
10163 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10164 *) enable_dlopen_self=unknown ;;
10165 esac
10166
10167 case $lt_cv_dlopen_self_static in
10168 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10169 *) enable_dlopen_self_static=unknown ;;
10170 esac
10171fi
10172
10173
10174# Report which library types will actually be built
10175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
10176$as_echo_n "checking if libtool supports shared libraries... " >&6; }
10177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
10178$as_echo "$can_build_shared" >&6; }
10179
10180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
10181$as_echo_n "checking whether to build shared libraries... " >&6; }
10182test "$can_build_shared" = "no" && enable_shared=no
10183
10184# On AIX, shared libraries and static libraries use the same namespace, and
10185# are all built from PIC.
10186case $host_os in
10187aix3*)
10188 test "$enable_shared" = yes && enable_static=no
10189 if test -n "$RANLIB"; then
10190 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10191 postinstall_cmds='$RANLIB $lib'
10192 fi
10193 ;;
10194
10195aix4* | aix5*)
10196 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10197 test "$enable_shared" = yes && enable_static=no
10198 fi
10199 ;;
10200esac
10201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
10202$as_echo "$enable_shared" >&6; }
10203
10204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
10205$as_echo_n "checking whether to build static libraries... " >&6; }
10206# Make sure either enable_shared or enable_static is yes.
10207test "$enable_shared" = yes || enable_static=yes
10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
10209$as_echo "$enable_static" >&6; }
10210
10211# The else clause should only fire when bootstrapping the
10212# libtool distribution, otherwise you forgot to ship ltmain.sh
10213# with your package, and you will get complaints that there are
10214# no rules to generate ltmain.sh.
10215if test -f "$ltmain"; then
10216 # See if we are running on zsh, and set the options which allow our commands through
10217 # without removal of \ escapes.
10218 if test -n "${ZSH_VERSION+set}" ; then
10219 setopt NO_GLOB_SUBST
10220 fi
10221 # Now quote all the things that may contain metacharacters while being
10222 # careful not to overquote the AC_SUBSTed values. We take copies of the
10223 # variables and quote the copies for generation of the libtool script.
10224 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10225 SED SHELL STRIP \
10226 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10227 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10228 deplibs_check_method reload_flag reload_cmds need_locks \
10229 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10230 lt_cv_sys_global_symbol_to_c_name_address \
10231 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10232 old_postinstall_cmds old_postuninstall_cmds \
10233 compiler \
10234 CC \
10235 LD \
10236 lt_prog_compiler_wl \
10237 lt_prog_compiler_pic \
10238 lt_prog_compiler_static \
10239 lt_prog_compiler_no_builtin_flag \
10240 export_dynamic_flag_spec \
10241 thread_safe_flag_spec \
10242 whole_archive_flag_spec \
10243 enable_shared_with_static_runtimes \
10244 old_archive_cmds \
10245 old_archive_from_new_cmds \
10246 predep_objects \
10247 postdep_objects \
10248 predeps \
10249 postdeps \
10250 compiler_lib_search_path \
10251 archive_cmds \
10252 archive_expsym_cmds \
10253 postinstall_cmds \
10254 postuninstall_cmds \
10255 old_archive_from_expsyms_cmds \
10256 allow_undefined_flag \
10257 no_undefined_flag \
10258 export_symbols_cmds \
10259 hardcode_libdir_flag_spec \
10260 hardcode_libdir_flag_spec_ld \
10261 hardcode_libdir_separator \
10262 hardcode_automatic \
10263 module_cmds \
10264 module_expsym_cmds \
10265 lt_cv_prog_compiler_c_o \
10266 exclude_expsyms \
10267 include_expsyms; do
10268
10269 case $var in
10270 old_archive_cmds | \
10271 old_archive_from_new_cmds | \
10272 archive_cmds | \
10273 archive_expsym_cmds | \
10274 module_cmds | \
10275 module_expsym_cmds | \
10276 old_archive_from_expsyms_cmds | \
10277 export_symbols_cmds | \
10278 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10279 postinstall_cmds | postuninstall_cmds | \
10280 old_postinstall_cmds | old_postuninstall_cmds | \
10281 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10282 # Double-quote double-evaled strings.
10283 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10284 ;;
10285 *)
10286 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10287 ;;
10288 esac
10289 done
10290
10291 case $lt_echo in
10292 *'\$0 --fallback-echo"')
10293 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10294 ;;
10295 esac
10296
10297cfgfile="${ofile}T"
10298 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10299 $rm -f "$cfgfile"
10300 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ofile" >&5
10301$as_echo "$as_me: creating $ofile" >&6;}
10302
10303 cat <<__EOF__ >> "$cfgfile"
10304#! $SHELL
10305
10306# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10307# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10308# NOTE: Changes made to this file will be lost: look at ltmain.sh.
10309#
10310# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
10311# Free Software Foundation, Inc.
10312#
10313# This file is part of GNU Libtool:
10314# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10315#
10316# This program is free software; you can redistribute it and/or modify
10317# it under the terms of the GNU General Public License as published by
10318# the Free Software Foundation; either version 2 of the License, or
10319# (at your option) any later version.
10320#
10321# This program is distributed in the hope that it will be useful, but
10322# WITHOUT ANY WARRANTY; without even the implied warranty of
10323# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10324# General Public License for more details.
10325#
10326# You should have received a copy of the GNU General Public License
10327# along with this program; if not, write to the Free Software
10328# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10329#
10330# As a special exception to the GNU General Public License, if you
10331# distribute this file as part of a program that contains a
10332# configuration script generated by Autoconf, you may include it under
10333# the same distribution terms that you use for the rest of that program.
10334
10335# A sed program that does not truncate output.
10336SED=$lt_SED
10337
10338# Sed that helps us avoid accidentally triggering echo(1) options like -n.
10339Xsed="$SED -e 1s/^X//"
10340
10341# The HP-UX ksh and POSIX shell print the target directory to stdout
10342# if CDPATH is set.
10343(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10344
10345# The names of the tagged configurations supported by this script.
10346available_tags=
10347
10348# ### BEGIN LIBTOOL CONFIG
10349
10350# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10351
10352# Shell to use when invoking shell scripts.
10353SHELL=$lt_SHELL
10354
10355# Whether or not to build shared libraries.
10356build_libtool_libs=$enable_shared
10357
10358# Whether or not to build static libraries.
10359build_old_libs=$enable_static
10360
10361# Whether or not to add -lc for building shared libraries.
10362build_libtool_need_lc=$archive_cmds_need_lc
10363
10364# Whether or not to disallow shared libs when runtime libs are static
10365allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10366
10367# Whether or not to optimize for fast installation.
10368fast_install=$enable_fast_install
10369
10370# The host system.
10371host_alias=$host_alias
10372host=$host
10373host_os=$host_os
10374
10375# The build system.
10376build_alias=$build_alias
10377build=$build
10378build_os=$build_os
10379
10380# An echo program that does not interpret backslashes.
10381echo=$lt_echo
10382
10383# The archiver.
10384AR=$lt_AR
10385AR_FLAGS=$lt_AR_FLAGS
10386
10387# A C compiler.
10388LTCC=$lt_LTCC
10389
10390# LTCC compiler flags.
10391LTCFLAGS=$lt_LTCFLAGS
10392
10393# A language-specific compiler.
10394CC=$lt_compiler
10395
10396# Is the compiler the GNU C compiler?
10397with_gcc=$GCC
10398
10399# An ERE matcher.
10400EGREP=$lt_EGREP
10401
10402# The linker used to build libraries.
10403LD=$lt_LD
10404
10405# Whether we need hard or soft links.
10406LN_S=$lt_LN_S
10407
10408# A BSD-compatible nm program.
10409NM=$lt_NM
10410
10411# A symbol stripping program
10412STRIP=$lt_STRIP
10413
10414# Used to examine libraries when file_magic_cmd begins "file"
10415MAGIC_CMD=$MAGIC_CMD
10416
10417# Used on cygwin: DLL creation program.
10418DLLTOOL="$DLLTOOL"
10419
10420# Used on cygwin: object dumper.
10421OBJDUMP="$OBJDUMP"
10422
10423# Used on cygwin: assembler.
10424AS="$AS"
10425
10426# The name of the directory that contains temporary libtool files.
10427objdir=$objdir
10428
10429# How to create reloadable object files.
10430reload_flag=$lt_reload_flag
10431reload_cmds=$lt_reload_cmds
10432
10433# How to pass a linker flag through the compiler.
10434wl=$lt_lt_prog_compiler_wl
10435
10436# Object file suffix (normally "o").
10437objext="$ac_objext"
10438
10439# Old archive suffix (normally "a").
10440libext="$libext"
10441
10442# Shared library suffix (normally ".so").
10443shrext_cmds='$shrext_cmds'
10444
10445# Executable file suffix (normally "").
10446exeext="$exeext"
10447
10448# Additional compiler flags for building library objects.
10449pic_flag=$lt_lt_prog_compiler_pic
10450pic_mode=$pic_mode
10451
10452# What is the maximum length of a command?
10453max_cmd_len=$lt_cv_sys_max_cmd_len
10454
10455# Does compiler simultaneously support -c and -o options?
10456compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10457
10458# Must we lock files when doing compilation?
10459need_locks=$lt_need_locks
10460
10461# Do we need the lib prefix for modules?
10462need_lib_prefix=$need_lib_prefix
10463
10464# Do we need a version for libraries?
10465need_version=$need_version
10466
10467# Whether dlopen is supported.
10468dlopen_support=$enable_dlopen
10469
10470# Whether dlopen of programs is supported.
10471dlopen_self=$enable_dlopen_self
10472
10473# Whether dlopen of statically linked programs is supported.
10474dlopen_self_static=$enable_dlopen_self_static
10475
10476# Compiler flag to prevent dynamic linking.
10477link_static_flag=$lt_lt_prog_compiler_static
10478
10479# Compiler flag to turn off builtin functions.
10480no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10481
10482# Compiler flag to allow reflexive dlopens.
10483export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10484
10485# Compiler flag to generate shared objects directly from archives.
10486whole_archive_flag_spec=$lt_whole_archive_flag_spec
10487
10488# Compiler flag to generate thread-safe objects.
10489thread_safe_flag_spec=$lt_thread_safe_flag_spec
10490
10491# Library versioning type.
10492version_type=$version_type
10493
10494# Format of library name prefix.
10495libname_spec=$lt_libname_spec
10496
10497# List of archive names. First name is the real one, the rest are links.
10498# The last name is the one that the linker finds with -lNAME.
10499library_names_spec=$lt_library_names_spec
10500
10501# The coded name of the library, if different from the real name.
10502soname_spec=$lt_soname_spec
10503
10504# Commands used to build and install an old-style archive.
10505RANLIB=$lt_RANLIB
10506old_archive_cmds=$lt_old_archive_cmds
10507old_postinstall_cmds=$lt_old_postinstall_cmds
10508old_postuninstall_cmds=$lt_old_postuninstall_cmds
10509
10510# Create an old-style archive from a shared archive.
10511old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10512
10513# Create a temporary old-style archive to link instead of a shared archive.
10514old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10515
10516# Commands used to build and install a shared archive.
10517archive_cmds=$lt_archive_cmds
10518archive_expsym_cmds=$lt_archive_expsym_cmds
10519postinstall_cmds=$lt_postinstall_cmds
10520postuninstall_cmds=$lt_postuninstall_cmds
10521
10522# Commands used to build a loadable module (assumed same as above if empty)
10523module_cmds=$lt_module_cmds
10524module_expsym_cmds=$lt_module_expsym_cmds
10525
10526# Commands to strip libraries.
10527old_striplib=$lt_old_striplib
10528striplib=$lt_striplib
10529
10530# Dependencies to place before the objects being linked to create a
10531# shared library.
10532predep_objects=$lt_predep_objects
10533
10534# Dependencies to place after the objects being linked to create a
10535# shared library.
10536postdep_objects=$lt_postdep_objects
10537
10538# Dependencies to place before the objects being linked to create a
10539# shared library.
10540predeps=$lt_predeps
10541
10542# Dependencies to place after the objects being linked to create a
10543# shared library.
10544postdeps=$lt_postdeps
10545
10546# The library search path used internally by the compiler when linking
10547# a shared library.
10548compiler_lib_search_path=$lt_compiler_lib_search_path
10549
10550# Method to check whether dependent libraries are shared objects.
10551deplibs_check_method=$lt_deplibs_check_method
10552
10553# Command to use when deplibs_check_method == file_magic.
10554file_magic_cmd=$lt_file_magic_cmd
10555
10556# Flag that allows shared libraries with undefined symbols to be built.
10557allow_undefined_flag=$lt_allow_undefined_flag
10558
10559# Flag that forces no undefined symbols.
10560no_undefined_flag=$lt_no_undefined_flag
10561
10562# Commands used to finish a libtool library installation in a directory.
10563finish_cmds=$lt_finish_cmds
10564
10565# Same as above, but a single script fragment to be evaled but not shown.
10566finish_eval=$lt_finish_eval
10567
10568# Take the output of nm and produce a listing of raw symbols and C names.
10569global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10570
10571# Transform the output of nm in a proper C declaration
10572global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10573
10574# Transform the output of nm in a C name address pair
10575global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10576
10577# This is the shared library runtime path variable.
10578runpath_var=$runpath_var
10579
10580# This is the shared library path variable.
10581shlibpath_var=$shlibpath_var
10582
10583# Is shlibpath searched before the hard-coded library search path?
10584shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10585
10586# How to hardcode a shared library path into an executable.
10587hardcode_action=$hardcode_action
10588
10589# Whether we should hardcode library paths into libraries.
10590hardcode_into_libs=$hardcode_into_libs
10591
10592# Flag to hardcode \$libdir into a binary during linking.
10593# This must work even if \$libdir does not exist.
10594hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10595
10596# If ld is used when linking, flag to hardcode \$libdir into
10597# a binary during linking. This must work even if \$libdir does
10598# not exist.
10599hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10600
10601# Whether we need a single -rpath flag with a separated argument.
10602hardcode_libdir_separator=$lt_hardcode_libdir_separator
10603
10604# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10605# resulting binary.
10606hardcode_direct=$hardcode_direct
10607
10608# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10609# resulting binary.
10610hardcode_minus_L=$hardcode_minus_L
10611
10612# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10613# the resulting binary.
10614hardcode_shlibpath_var=$hardcode_shlibpath_var
10615
10616# Set to yes if building a shared library automatically hardcodes DIR into the library
10617# and all subsequent libraries and executables linked against it.
10618hardcode_automatic=$hardcode_automatic
10619
10620# Variables whose values should be saved in libtool wrapper scripts and
10621# restored at relink time.
10622variables_saved_for_relink="$variables_saved_for_relink"
10623
10624# Whether libtool must link a program against all its dependency libraries.
10625link_all_deplibs=$link_all_deplibs
10626
10627# Compile-time system search path for libraries
10628sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10629
10630# Run-time system search path for libraries
10631sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10632
10633# Fix the shell variable \$srcfile for the compiler.
10634fix_srcfile_path="$fix_srcfile_path"
10635
10636# Set to yes if exported symbols are required.
10637always_export_symbols=$always_export_symbols
10638
10639# The commands to list exported symbols.
10640export_symbols_cmds=$lt_export_symbols_cmds
10641
10642# The commands to extract the exported symbol list from a shared archive.
10643extract_expsyms_cmds=$lt_extract_expsyms_cmds
10644
10645# Symbols that should not be listed in the preloaded symbols.
10646exclude_expsyms=$lt_exclude_expsyms
10647
10648# Symbols that must always be exported.
10649include_expsyms=$lt_include_expsyms
10650
10651# ### END LIBTOOL CONFIG
10652
10653__EOF__
10654
10655
10656 case $host_os in
10657 aix3*)
10658 cat <<\EOF >> "$cfgfile"
10659
10660# AIX sometimes has problems with the GCC collect2 program. For some
10661# reason, if we set the COLLECT_NAMES environment variable, the problems
10662# vanish in a puff of smoke.
10663if test "X${COLLECT_NAMES+set}" != Xset; then
10664 COLLECT_NAMES=
10665 export COLLECT_NAMES
10666fi
10667EOF
10668 ;;
10669 esac
10670
10671 # We use sed instead of cat because bash on DJGPP gets confused if
10672 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10673 # text mode, it properly converts lines to CR/LF. This bash problem
10674 # is reportedly fixed, but why not run on old versions too?
10675 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10676
10677 mv -f "$cfgfile" "$ofile" || \
10678 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10679 chmod +x "$ofile"
10680
10681else
10682 # If there is no Makefile yet, we rely on a make rule to execute
10683 # `config.status --recheck' to rerun these tests and create the
10684 # libtool script then.
10685 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10686 if test -f "$ltmain_in"; then
10687 test -f Makefile && make "$ltmain"
10688 fi
10689fi
10690
10691
10692ac_ext=c
10693ac_cpp='$CPP $CPPFLAGS'
10694ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10695ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10696ac_compiler_gnu=$ac_cv_c_compiler_gnu
10697
10698CC="$lt_save_CC"
10699
10700
10701@%:@ Check whether --with-tags was given.
10702if test "${with_tags+set}" = set; then :
10703 withval=$with_tags; tagnames="$withval"
10704fi
10705
10706
10707if test -f "$ltmain" && test -n "$tagnames"; then
10708 if test ! -f "${ofile}"; then
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not exist" >&5
10710$as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10711 fi
10712
10713 if test -z "$LTCC"; then
10714 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10715 if test -z "$LTCC"; then
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10717$as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10718 else
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10720$as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10721 fi
10722 fi
10723 if test -z "$LTCFLAGS"; then
10724 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10725 fi
10726
10727 # Extract list of available tagged configurations in $ofile.
10728 # Note that this assumes the entire list is on one line.
10729 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10730
10731 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10732 for tagname in $tagnames; do
10733 IFS="$lt_save_ifs"
10734 # Check whether tagname contains only valid characters
10735 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10736 "") ;;
10737 *) as_fn_error $? "invalid tag name: $tagname" "$LINENO" 5
10738 ;;
10739 esac
10740
10741 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10742 then
10743 as_fn_error $? "tag name \"$tagname\" already exists" "$LINENO" 5
10744 fi
10745
10746 # Update the list of available tags.
10747 if test -n "$tagname"; then
10748 echo appending configuration tag \"$tagname\" to $ofile
10749
10750 case $tagname in
10751 CXX)
10752 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10753 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10754 (test "X$CXX" != "Xg++"))) ; then
10755 ac_ext=cpp
10756ac_cpp='$CXXCPP $CPPFLAGS'
10757ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10758ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10759ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10760
10761
10762
10763
10764archive_cmds_need_lc_CXX=no
10765allow_undefined_flag_CXX=
10766always_export_symbols_CXX=no
10767archive_expsym_cmds_CXX=
10768export_dynamic_flag_spec_CXX=
10769hardcode_direct_CXX=no
10770hardcode_libdir_flag_spec_CXX=
10771hardcode_libdir_flag_spec_ld_CXX=
10772hardcode_libdir_separator_CXX=
10773hardcode_minus_L_CXX=no
10774hardcode_shlibpath_var_CXX=unsupported
10775hardcode_automatic_CXX=no
10776module_cmds_CXX=
10777module_expsym_cmds_CXX=
10778link_all_deplibs_CXX=unknown
10779old_archive_cmds_CXX=$old_archive_cmds
10780no_undefined_flag_CXX=
10781whole_archive_flag_spec_CXX=
10782enable_shared_with_static_runtimes_CXX=no
10783
10784# Dependencies to place before and after the object being linked:
10785predep_objects_CXX=
10786postdep_objects_CXX=
10787predeps_CXX=
10788postdeps_CXX=
10789compiler_lib_search_path_CXX=
10790
10791# Source file extension for C++ test sources.
10792ac_ext=cpp
10793
10794# Object file extension for compiled C++ test sources.
10795objext=o
10796objext_CXX=$objext
10797
10798# Code to be used in simple compile tests
10799lt_simple_compile_test_code="int some_variable = 0;\n"
10800
10801# Code to be used in simple link tests
10802lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
10803
10804# ltmain only uses $CC for tagged configurations so make sure $CC is set.
10805
10806# If no C compiler was specified, use CC.
10807LTCC=${LTCC-"$CC"}
10808
10809# If no C compiler flags were specified, use CFLAGS.
10810LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10811
10812# Allow CC to be a program name with arguments.
10813compiler=$CC
10814
10815
10816# save warnings/boilerplate of simple test code
10817ac_outfile=conftest.$ac_objext
10818printf "$lt_simple_compile_test_code" >conftest.$ac_ext
10819eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10820_lt_compiler_boilerplate=`cat conftest.err`
10821$rm conftest*
10822
10823ac_outfile=conftest.$ac_objext
10824printf "$lt_simple_link_test_code" >conftest.$ac_ext
10825eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10826_lt_linker_boilerplate=`cat conftest.err`
10827$rm conftest*
10828
10829
10830# Allow CC to be a program name with arguments.
10831lt_save_CC=$CC
10832lt_save_LD=$LD
10833lt_save_GCC=$GCC
10834GCC=$GXX
10835lt_save_with_gnu_ld=$with_gnu_ld
10836lt_save_path_LD=$lt_cv_path_LD
10837if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10838 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10839else
10840 $as_unset lt_cv_prog_gnu_ld
10841fi
10842if test -n "${lt_cv_path_LDCXX+set}"; then
10843 lt_cv_path_LD=$lt_cv_path_LDCXX
10844else
10845 $as_unset lt_cv_path_LD
10846fi
10847test -z "${LDCXX+set}" || LD=$LDCXX
10848CC=${CXX-"c++"}
10849compiler=$CC
10850compiler_CXX=$CC
10851for cc_temp in $compiler""; do
10852 case $cc_temp in
10853 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10854 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10855 \-*) ;;
10856 *) break;;
10857 esac
10858done
10859cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10860
10861
10862# We don't want -fno-exception wen compiling C++ code, so set the
10863# no_builtin_flag separately
10864if test "$GXX" = yes; then
10865 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10866else
10867 lt_prog_compiler_no_builtin_flag_CXX=
10868fi
10869
10870if test "$GXX" = yes; then
10871 # Set up default GNU C++ configuration
10872
10873
10874@%:@ Check whether --with-gnu-ld was given.
10875if test "${with_gnu_ld+set}" = set; then :
10876 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
10877else
10878 with_gnu_ld=no
10879fi
10880
10881ac_prog=ld
10882if test "$GCC" = yes; then
10883 # Check if gcc -print-prog-name=ld gives a path.
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
10885$as_echo_n "checking for ld used by $CC... " >&6; }
10886 case $host in
10887 *-*-mingw*)
10888 # gcc leaves a trailing carriage return which upsets mingw
10889 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10890 *)
10891 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10892 esac
10893 case $ac_prog in
10894 # Accept absolute paths.
10895 [\\/]* | ?:[\\/]*)
10896 re_direlt='/[^/][^/]*/\.\./'
10897 # Canonicalize the pathname of ld
10898 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10899 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10900 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10901 done
10902 test -z "$LD" && LD="$ac_prog"
10903 ;;
10904 "")
10905 # If it fails, then pretend we aren't using GCC.
10906 ac_prog=ld
10907 ;;
10908 *)
10909 # If it is relative, then search for the first ld in PATH.
10910 with_gnu_ld=unknown
10911 ;;
10912 esac
10913elif test "$with_gnu_ld" = yes; then
10914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
10915$as_echo_n "checking for GNU ld... " >&6; }
10916else
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
10918$as_echo_n "checking for non-GNU ld... " >&6; }
10919fi
10920if ${lt_cv_path_LD+:} false; then :
10921 $as_echo_n "(cached) " >&6
10922else
10923 if test -z "$LD"; then
10924 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10925 for ac_dir in $PATH; do
10926 IFS="$lt_save_ifs"
10927 test -z "$ac_dir" && ac_dir=.
10928 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10929 lt_cv_path_LD="$ac_dir/$ac_prog"
10930 # Check to see if the program is GNU ld. I'd rather use --version,
10931 # but apparently some variants of GNU ld only accept -v.
10932 # Break only if it was the GNU/non-GNU ld that we prefer.
10933 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10934 *GNU* | *'with BFD'*)
10935 test "$with_gnu_ld" != no && break
10936 ;;
10937 *)
10938 test "$with_gnu_ld" != yes && break
10939 ;;
10940 esac
10941 fi
10942 done
10943 IFS="$lt_save_ifs"
10944else
10945 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10946fi
10947fi
10948
10949LD="$lt_cv_path_LD"
10950if test -n "$LD"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
10952$as_echo "$LD" >&6; }
10953else
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10955$as_echo "no" >&6; }
10956fi
10957test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
10959$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
10960if ${lt_cv_prog_gnu_ld+:} false; then :
10961 $as_echo_n "(cached) " >&6
10962else
10963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10964case `$LD -v 2>&1 </dev/null` in
10965*GNU* | *'with BFD'*)
10966 lt_cv_prog_gnu_ld=yes
10967 ;;
10968*)
10969 lt_cv_prog_gnu_ld=no
10970 ;;
10971esac
10972fi
10973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
10974$as_echo "$lt_cv_prog_gnu_ld" >&6; }
10975with_gnu_ld=$lt_cv_prog_gnu_ld
10976
10977
10978
10979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10980 # archiving commands below assume that GNU ld is being used.
10981 if test "$with_gnu_ld" = yes; then
10982 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10983 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'
10984
10985 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10986 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10987
10988 # If archive_cmds runs LD, not CC, wlarc should be empty
10989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10990 # investigate it a little bit more. (MM)
10991 wlarc='${wl}'
10992
10993 # ancient GNU ld didn't support --whole-archive et. al.
10994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10995 grep 'no-whole-archive' > /dev/null; then
10996 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10997 else
10998 whole_archive_flag_spec_CXX=
10999 fi
11000 else
11001 with_gnu_ld=no
11002 wlarc=
11003
11004 # A generic and very simple default shared library creation
11005 # command for GNU C++ for the case where it uses the native
11006 # linker, instead of GNU ld. If possible, this setting should
11007 # overridden to take advantage of the native linker features on
11008 # the platform it is being used on.
11009 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11010 fi
11011
11012 # Commands to make compiler produce verbose output that lists
11013 # what "hidden" libraries, object files and flags are used when
11014 # linking a shared library.
11015 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11016
11017else
11018 GXX=no
11019 with_gnu_ld=no
11020 wlarc=
11021fi
11022
11023# PORTME: fill in a description of your system's C++ link characteristics
11024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11025$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11026ld_shlibs_CXX=yes
11027case $host_os in
11028 aix3*)
11029 # FIXME: insert proper C++ library support
11030 ld_shlibs_CXX=no
11031 ;;
11032 aix4* | aix5*)
11033 if test "$host_cpu" = ia64; then
11034 # On IA64, the linker does run time linking by default, so we don't
11035 # have to do anything special.
11036 aix_use_runtimelinking=no
11037 exp_sym_flag='-Bexport'
11038 no_entry_flag=""
11039 else
11040 aix_use_runtimelinking=no
11041
11042 # Test if we are trying to use run time linking or normal
11043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11044 # need to do runtime linking.
11045 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11046 for ld_flag in $LDFLAGS; do
11047 case $ld_flag in
11048 *-brtl*)
11049 aix_use_runtimelinking=yes
11050 break
11051 ;;
11052 esac
11053 done
11054 ;;
11055 esac
11056
11057 exp_sym_flag='-bexport'
11058 no_entry_flag='-bnoentry'
11059 fi
11060
11061 # When large executables or shared objects are built, AIX ld can
11062 # have problems creating the table of contents. If linking a library
11063 # or program results in "error TOC overflow" add -mminimal-toc to
11064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11066
11067 archive_cmds_CXX=''
11068 hardcode_direct_CXX=yes
11069 hardcode_libdir_separator_CXX=':'
11070 link_all_deplibs_CXX=yes
11071
11072 if test "$GXX" = yes; then
11073 case $host_os in aix4.[012]|aix4.[012].*)
11074 # We only want to do this on AIX 4.2 and lower, the check
11075 # below for broken collect2 doesn't work under 4.3+
11076 collect2name=`${CC} -print-prog-name=collect2`
11077 if test -f "$collect2name" && \
11078 strings "$collect2name" | grep resolve_lib_name >/dev/null
11079 then
11080 # We have reworked collect2
11081 hardcode_direct_CXX=yes
11082 else
11083 # We have old collect2
11084 hardcode_direct_CXX=unsupported
11085 # It fails to find uninstalled libraries when the uninstalled
11086 # path is not listed in the libpath. Setting hardcode_minus_L
11087 # to unsupported forces relinking
11088 hardcode_minus_L_CXX=yes
11089 hardcode_libdir_flag_spec_CXX='-L$libdir'
11090 hardcode_libdir_separator_CXX=
11091 fi
11092 ;;
11093 esac
11094 shared_flag='-shared'
11095 if test "$aix_use_runtimelinking" = yes; then
11096 shared_flag="$shared_flag "'${wl}-G'
11097 fi
11098 else
11099 # not using gcc
11100 if test "$host_cpu" = ia64; then
11101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11102 # chokes on -Wl,-G. The following line is correct:
11103 shared_flag='-G'
11104 else
11105 if test "$aix_use_runtimelinking" = yes; then
11106 shared_flag='${wl}-G'
11107 else
11108 shared_flag='${wl}-bM:SRE'
11109 fi
11110 fi
11111 fi
11112
11113 # It seems that -bexpall does not export symbols beginning with
11114 # underscore (_), so it is better to generate a list of symbols to export.
11115 always_export_symbols_CXX=yes
11116 if test "$aix_use_runtimelinking" = yes; then
11117 # Warning - without using the other runtime loading flags (-brtl),
11118 # -berok will link without error, but may produce a broken library.
11119 allow_undefined_flag_CXX='-berok'
11120 # Determine the default libpath from the value encoded in an empty executable.
11121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11122/* end confdefs.h. */
11123
11124int
11125main ()
11126{
11127
11128 ;
11129 return 0;
11130}
11131_ACEOF
11132if ac_fn_cxx_try_link "$LINENO"; then :
11133
11134aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11135}'`
11136# Check for a 64-bit object if we didn't find anything.
11137if 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; }
11138}'`; fi
11139fi
11140rm -f core conftest.err conftest.$ac_objext \
11141 conftest$ac_exeext conftest.$ac_ext
11142if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11143
11144 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11145
11146 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"
11147 else
11148 if test "$host_cpu" = ia64; then
11149 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11150 allow_undefined_flag_CXX="-z nodefs"
11151 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"
11152 else
11153 # Determine the default libpath from the value encoded in an empty executable.
11154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11155/* end confdefs.h. */
11156
11157int
11158main ()
11159{
11160
11161 ;
11162 return 0;
11163}
11164_ACEOF
11165if ac_fn_cxx_try_link "$LINENO"; then :
11166
11167aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11168}'`
11169# Check for a 64-bit object if we didn't find anything.
11170if 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; }
11171}'`; fi
11172fi
11173rm -f core conftest.err conftest.$ac_objext \
11174 conftest$ac_exeext conftest.$ac_ext
11175if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11176
11177 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11178 # Warning - without using the other run time loading flags,
11179 # -berok will link without error, but may produce a broken library.
11180 no_undefined_flag_CXX=' ${wl}-bernotok'
11181 allow_undefined_flag_CXX=' ${wl}-berok'
11182 # Exported symbols can be pulled into shared objects from archives
11183 whole_archive_flag_spec_CXX='$convenience'
11184 archive_cmds_need_lc_CXX=yes
11185 # This is similar to how AIX traditionally builds its shared libraries.
11186 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'
11187 fi
11188 fi
11189 ;;
11190
11191 beos*)
11192 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11193 allow_undefined_flag_CXX=unsupported
11194 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
11195 # support --undefined. This deserves some investigation. FIXME
11196 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11197 else
11198 ld_shlibs_CXX=no
11199 fi
11200 ;;
11201
11202 chorus*)
11203 case $cc_basename in
11204 *)
11205 # FIXME: insert proper C++ library support
11206 ld_shlibs_CXX=no
11207 ;;
11208 esac
11209 ;;
11210
11211 cygwin* | mingw* | pw32*)
11212 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11213 # as there is no search path for DLLs.
11214 hardcode_libdir_flag_spec_CXX='-L$libdir'
11215 allow_undefined_flag_CXX=unsupported
11216 always_export_symbols_CXX=no
11217 enable_shared_with_static_runtimes_CXX=yes
11218
11219 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11220 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'
11221 # If the export-symbols file already is a .def file (1st line
11222 # is EXPORTS), use it as is; otherwise, prepend...
11223 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11224 cp $export_symbols $output_objdir/$soname.def;
11225 else
11226 echo EXPORTS > $output_objdir/$soname.def;
11227 cat $export_symbols >> $output_objdir/$soname.def;
11228 fi~
11229 $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'
11230 else
11231 ld_shlibs_CXX=no
11232 fi
11233 ;;
11234 darwin* | rhapsody*)
11235 case $host_os in
11236 rhapsody* | darwin1.[012])
11237 allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
11238 ;;
11239 *) # Darwin 1.3 on
11240 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11241 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11242 else
11243 case ${MACOSX_DEPLOYMENT_TARGET} in
11244 10.[012])
11245 allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
11246 ;;
11247 10.*)
11248 allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
11249 ;;
11250 esac
11251 fi
11252 ;;
11253 esac
11254 archive_cmds_need_lc_CXX=no
11255 hardcode_direct_CXX=no
11256 hardcode_automatic_CXX=yes
11257 hardcode_shlibpath_var_CXX=unsupported
11258 whole_archive_flag_spec_CXX=''
11259 link_all_deplibs_CXX=yes
11260
11261 if test "$GXX" = yes ; then
11262 lt_int_apple_cc_single_mod=no
11263 output_verbose_link_cmd='echo'
11264 if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
11265 lt_int_apple_cc_single_mod=yes
11266 fi
11267 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11268 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
11269 else
11270 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'
11271 fi
11272 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11273 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11274 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
11275 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}'
11276 else
11277 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}'
11278 fi
11279 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}'
11280 else
11281 case $cc_basename in
11282 xlc*)
11283 output_verbose_link_cmd='echo'
11284 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'
11285 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11286 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11287 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}'
11288 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}'
11289 ;;
11290 *)
11291 ld_shlibs_CXX=no
11292 ;;
11293 esac
11294 fi
11295 ;;
11296
11297 dgux*)
11298 case $cc_basename in
11299 ec++*)
11300 # FIXME: insert proper C++ library support
11301 ld_shlibs_CXX=no
11302 ;;
11303 ghcx*)
11304 # Green Hills C++ Compiler
11305 # FIXME: insert proper C++ library support
11306 ld_shlibs_CXX=no
11307 ;;
11308 *)
11309 # FIXME: insert proper C++ library support
11310 ld_shlibs_CXX=no
11311 ;;
11312 esac
11313 ;;
11314 freebsd[12]*)
11315 # C++ shared libraries reported to be fairly broken before switch to ELF
11316 ld_shlibs_CXX=no
11317 ;;
11318 freebsd-elf*)
11319 archive_cmds_need_lc_CXX=no
11320 ;;
11321 freebsd* | kfreebsd*-gnu | dragonfly*)
11322 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11323 # conventions
11324 ld_shlibs_CXX=yes
11325 ;;
11326 gnu*)
11327 ;;
11328 hpux9*)
11329 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11330 hardcode_libdir_separator_CXX=:
11331 export_dynamic_flag_spec_CXX='${wl}-E'
11332 hardcode_direct_CXX=yes
11333 hardcode_minus_L_CXX=yes # Not in the search PATH,
11334 # but as the default
11335 # location of the library.
11336
11337 case $cc_basename in
11338 CC*)
11339 # FIXME: insert proper C++ library support
11340 ld_shlibs_CXX=no
11341 ;;
11342 aCC*)
11343 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'
11344 # Commands to make compiler produce verbose output that lists
11345 # what "hidden" libraries, object files and flags are used when
11346 # linking a shared library.
11347 #
11348 # There doesn't appear to be a way to prevent this compiler from
11349 # explicitly linking system object files so we need to strip them
11350 # from the output so that they don't get included in the library
11351 # dependencies.
11352 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'
11353 ;;
11354 *)
11355 if test "$GXX" = yes; then
11356 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'
11357 else
11358 # FIXME: insert proper C++ library support
11359 ld_shlibs_CXX=no
11360 fi
11361 ;;
11362 esac
11363 ;;
11364 hpux10*|hpux11*)
11365 if test $with_gnu_ld = no; then
11366 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11367 hardcode_libdir_separator_CXX=:
11368
11369 case $host_cpu in
11370 hppa*64*|ia64*)
11371 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
11372 ;;
11373 *)
11374 export_dynamic_flag_spec_CXX='${wl}-E'
11375 ;;
11376 esac
11377 fi
11378 case $host_cpu in
11379 hppa*64*|ia64*)
11380 hardcode_direct_CXX=no
11381 hardcode_shlibpath_var_CXX=no
11382 ;;
11383 *)
11384 hardcode_direct_CXX=yes
11385 hardcode_minus_L_CXX=yes # Not in the search PATH,
11386 # but as the default
11387 # location of the library.
11388 ;;
11389 esac
11390
11391 case $cc_basename in
11392 CC*)
11393 # FIXME: insert proper C++ library support
11394 ld_shlibs_CXX=no
11395 ;;
11396 aCC*)
11397 case $host_cpu in
11398 hppa*64*)
11399 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11400 ;;
11401 ia64*)
11402 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11403 ;;
11404 *)
11405 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11406 ;;
11407 esac
11408 # Commands to make compiler produce verbose output that lists
11409 # what "hidden" libraries, object files and flags are used when
11410 # linking a shared library.
11411 #
11412 # There doesn't appear to be a way to prevent this compiler from
11413 # explicitly linking system object files so we need to strip them
11414 # from the output so that they don't get included in the library
11415 # dependencies.
11416 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'
11417 ;;
11418 *)
11419 if test "$GXX" = yes; then
11420 if test $with_gnu_ld = no; then
11421 case $host_cpu in
11422 hppa*64*)
11423 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11424 ;;
11425 ia64*)
11426 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11427 ;;
11428 *)
11429 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'
11430 ;;
11431 esac
11432 fi
11433 else
11434 # FIXME: insert proper C++ library support
11435 ld_shlibs_CXX=no
11436 fi
11437 ;;
11438 esac
11439 ;;
11440 interix3*)
11441 hardcode_direct_CXX=no
11442 hardcode_shlibpath_var_CXX=no
11443 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11444 export_dynamic_flag_spec_CXX='${wl}-E'
11445 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11446 # Instead, shared libraries are loaded at an image base (0x10000000 by
11447 # default) and relocated if they conflict, which is a slow very memory
11448 # consuming and fragmenting process. To avoid this, we pick a random,
11449 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11450 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11451 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'
11452 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'
11453 ;;
11454 irix5* | irix6*)
11455 case $cc_basename in
11456 CC*)
11457 # SGI C++
11458 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'
11459
11460 # Archives containing C++ object files must be created using
11461 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11462 # necessary to make sure instantiated templates are included
11463 # in the archive.
11464 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11465 ;;
11466 *)
11467 if test "$GXX" = yes; then
11468 if test "$with_gnu_ld" = no; then
11469 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'
11470 else
11471 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'
11472 fi
11473 fi
11474 link_all_deplibs_CXX=yes
11475 ;;
11476 esac
11477 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11478 hardcode_libdir_separator_CXX=:
11479 ;;
11480 linux*)
11481 case $cc_basename in
11482 KCC*)
11483 # Kuck and Associates, Inc. (KAI) C++ Compiler
11484
11485 # KCC will only create a shared library if the output file
11486 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11487 # to its proper name (with version) after linking.
11488 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'
11489 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'
11490 # Commands to make compiler produce verbose output that lists
11491 # what "hidden" libraries, object files and flags are used when
11492 # linking a shared library.
11493 #
11494 # There doesn't appear to be a way to prevent this compiler from
11495 # explicitly linking system object files so we need to strip them
11496 # from the output so that they don't get included in the library
11497 # dependencies.
11498 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'
11499
11500 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11501 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11502
11503 # Archives containing C++ object files must be created using
11504 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11505 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11506 ;;
11507 icpc*)
11508 # Intel C++
11509 with_gnu_ld=yes
11510 # version 8.0 and above of icpc choke on multiply defined symbols
11511 # if we add $predep_objects and $postdep_objects, however 7.1 and
11512 # earlier do not add the objects themselves.
11513 case `$CC -V 2>&1` in
11514 *"Version 7."*)
11515 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11516 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'
11517 ;;
11518 *) # Version 8.0 or newer
11519 tmp_idyn=
11520 case $host_cpu in
11521 ia64*) tmp_idyn=' -i_dynamic';;
11522 esac
11523 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11524 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'
11525 ;;
11526 esac
11527 archive_cmds_need_lc_CXX=no
11528 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11529 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11530 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11531 ;;
11532 pgCC*)
11533 # Portland Group C++ compiler
11534 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11535 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'
11536
11537 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11538 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11539 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'
11540 ;;
11541 cxx*)
11542 # Compaq C++
11543 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11544 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'
11545
11546 runpath_var=LD_RUN_PATH
11547 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11548 hardcode_libdir_separator_CXX=:
11549
11550 # Commands to make compiler produce verbose output that lists
11551 # what "hidden" libraries, object files and flags are used when
11552 # linking a shared library.
11553 #
11554 # There doesn't appear to be a way to prevent this compiler from
11555 # explicitly linking system object files so we need to strip them
11556 # from the output so that they don't get included in the library
11557 # dependencies.
11558 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'
11559 ;;
11560 esac
11561 ;;
11562 lynxos*)
11563 # FIXME: insert proper C++ library support
11564 ld_shlibs_CXX=no
11565 ;;
11566 m88k*)
11567 # FIXME: insert proper C++ library support
11568 ld_shlibs_CXX=no
11569 ;;
11570 mvs*)
11571 case $cc_basename in
11572 cxx*)
11573 # FIXME: insert proper C++ library support
11574 ld_shlibs_CXX=no
11575 ;;
11576 *)
11577 # FIXME: insert proper C++ library support
11578 ld_shlibs_CXX=no
11579 ;;
11580 esac
11581 ;;
11582 netbsd*)
11583 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11584 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11585 wlarc=
11586 hardcode_libdir_flag_spec_CXX='-R$libdir'
11587 hardcode_direct_CXX=yes
11588 hardcode_shlibpath_var_CXX=no
11589 fi
11590 # Workaround some broken pre-1.5 toolchains
11591 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11592 ;;
11593 openbsd2*)
11594 # C++ shared libraries are fairly broken
11595 ld_shlibs_CXX=no
11596 ;;
11597 openbsd*)
11598 hardcode_direct_CXX=yes
11599 hardcode_shlibpath_var_CXX=no
11600 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11601 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11602 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11603 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11604 export_dynamic_flag_spec_CXX='${wl}-E'
11605 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11606 fi
11607 output_verbose_link_cmd='echo'
11608 ;;
11609 osf3*)
11610 case $cc_basename in
11611 KCC*)
11612 # Kuck and Associates, Inc. (KAI) C++ Compiler
11613
11614 # KCC will only create a shared library if the output file
11615 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11616 # to its proper name (with version) after linking.
11617 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'
11618
11619 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11620 hardcode_libdir_separator_CXX=:
11621
11622 # Archives containing C++ object files must be created using
11623 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11624 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11625
11626 ;;
11627 RCC*)
11628 # Rational C++ 2.4.1
11629 # FIXME: insert proper C++ library support
11630 ld_shlibs_CXX=no
11631 ;;
11632 cxx*)
11633 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11634 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'
11635
11636 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11637 hardcode_libdir_separator_CXX=:
11638
11639 # Commands to make compiler produce verbose output that lists
11640 # what "hidden" libraries, object files and flags are used when
11641 # linking a shared library.
11642 #
11643 # There doesn't appear to be a way to prevent this compiler from
11644 # explicitly linking system object files so we need to strip them
11645 # from the output so that they don't get included in the library
11646 # dependencies.
11647 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'
11648 ;;
11649 *)
11650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11652 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'
11653
11654 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11655 hardcode_libdir_separator_CXX=:
11656
11657 # Commands to make compiler produce verbose output that lists
11658 # what "hidden" libraries, object files and flags are used when
11659 # linking a shared library.
11660 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11661
11662 else
11663 # FIXME: insert proper C++ library support
11664 ld_shlibs_CXX=no
11665 fi
11666 ;;
11667 esac
11668 ;;
11669 osf4* | osf5*)
11670 case $cc_basename in
11671 KCC*)
11672 # Kuck and Associates, Inc. (KAI) C++ Compiler
11673
11674 # KCC will only create a shared library if the output file
11675 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11676 # to its proper name (with version) after linking.
11677 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'
11678
11679 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11680 hardcode_libdir_separator_CXX=:
11681
11682 # Archives containing C++ object files must be created using
11683 # the KAI C++ compiler.
11684 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11685 ;;
11686 RCC*)
11687 # Rational C++ 2.4.1
11688 # FIXME: insert proper C++ library support
11689 ld_shlibs_CXX=no
11690 ;;
11691 cxx*)
11692 allow_undefined_flag_CXX=' -expect_unresolved \*'
11693 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'
11694 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11695 echo "-hidden">> $lib.exp~
11696 $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~
11697 $rm $lib.exp'
11698
11699 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11700 hardcode_libdir_separator_CXX=:
11701
11702 # Commands to make compiler produce verbose output that lists
11703 # what "hidden" libraries, object files and flags are used when
11704 # linking a shared library.
11705 #
11706 # There doesn't appear to be a way to prevent this compiler from
11707 # explicitly linking system object files so we need to strip them
11708 # from the output so that they don't get included in the library
11709 # dependencies.
11710 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'
11711 ;;
11712 *)
11713 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11714 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11715 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'
11716
11717 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11718 hardcode_libdir_separator_CXX=:
11719
11720 # Commands to make compiler produce verbose output that lists
11721 # what "hidden" libraries, object files and flags are used when
11722 # linking a shared library.
11723 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11724
11725 else
11726 # FIXME: insert proper C++ library support
11727 ld_shlibs_CXX=no
11728 fi
11729 ;;
11730 esac
11731 ;;
11732 psos*)
11733 # FIXME: insert proper C++ library support
11734 ld_shlibs_CXX=no
11735 ;;
11736 sunos4*)
11737 case $cc_basename in
11738 CC*)
11739 # Sun C++ 4.x
11740 # FIXME: insert proper C++ library support
11741 ld_shlibs_CXX=no
11742 ;;
11743 lcc*)
11744 # Lucid
11745 # FIXME: insert proper C++ library support
11746 ld_shlibs_CXX=no
11747 ;;
11748 *)
11749 # FIXME: insert proper C++ library support
11750 ld_shlibs_CXX=no
11751 ;;
11752 esac
11753 ;;
11754 solaris*)
11755 case $cc_basename in
11756 CC*)
11757 # Sun C++ 4.2, 5.x and Centerline C++
11758 archive_cmds_need_lc_CXX=yes
11759 no_undefined_flag_CXX=' -zdefs'
11760 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11761 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11762 $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'
11763
11764 hardcode_libdir_flag_spec_CXX='-R$libdir'
11765 hardcode_shlibpath_var_CXX=no
11766 case $host_os in
11767 solaris2.[0-5] | solaris2.[0-5].*) ;;
11768 *)
11769 # The C++ compiler is used as linker so we must use $wl
11770 # flag to pass the commands to the underlying system
11771 # linker. We must also pass each convience library through
11772 # to the system linker between allextract/defaultextract.
11773 # The C++ compiler will combine linker options so we
11774 # cannot just pass the convience library names through
11775 # without $wl.
11776 # Supported since Solaris 2.6 (maybe 2.5.1?)
11777 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'
11778 ;;
11779 esac
11780 link_all_deplibs_CXX=yes
11781
11782 output_verbose_link_cmd='echo'
11783
11784 # Archives containing C++ object files must be created using
11785 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11786 # necessary to make sure instantiated templates are included
11787 # in the archive.
11788 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11789 ;;
11790 gcx*)
11791 # Green Hills C++ Compiler
11792 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11793
11794 # The C++ compiler must be used to create the archive.
11795 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11796 ;;
11797 *)
11798 # GNU C++ compiler with Solaris linker
11799 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11800 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11801 if $CC --version | grep -v '^2\.7' > /dev/null; then
11802 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11803 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11804 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11805
11806 # Commands to make compiler produce verbose output that lists
11807 # what "hidden" libraries, object files and flags are used when
11808 # linking a shared library.
11809 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11810 else
11811 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11812 # platform.
11813 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11814 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11815 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11816
11817 # Commands to make compiler produce verbose output that lists
11818 # what "hidden" libraries, object files and flags are used when
11819 # linking a shared library.
11820 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11821 fi
11822
11823 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11824 fi
11825 ;;
11826 esac
11827 ;;
11828 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11829 no_undefined_flag_CXX='${wl}-z,text'
11830 archive_cmds_need_lc_CXX=no
11831 hardcode_shlibpath_var_CXX=no
11832 runpath_var='LD_RUN_PATH'
11833
11834 case $cc_basename in
11835 CC*)
11836 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11837 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11838 ;;
11839 *)
11840 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11841 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11842 ;;
11843 esac
11844 ;;
11845 sysv5* | sco3.2v5* | sco5v6*)
11846 # Note: We can NOT use -z defs as we might desire, because we do not
11847 # link with -lc, and that would cause any symbols used from libc to
11848 # always be unresolved, which means just about no library would
11849 # ever link correctly. If we're not using GNU ld we use -z text
11850 # though, which does catch some bad symbols but isn't as heavy-handed
11851 # as -z defs.
11852 # For security reasons, it is highly recommended that you always
11853 # use absolute paths for naming shared libraries, and exclude the
11854 # DT_RUNPATH tag from executables and libraries. But doing so
11855 # requires that you compile everything twice, which is a pain.
11856 # So that behaviour is only enabled if SCOABSPATH is set to a
11857 # non-empty value in the environment. Most likely only useful for
11858 # creating official distributions of packages.
11859 # This is a hack until libtool officially supports absolute path
11860 # names for shared libraries.
11861 no_undefined_flag_CXX='${wl}-z,text'
11862 allow_undefined_flag_CXX='${wl}-z,nodefs'
11863 archive_cmds_need_lc_CXX=no
11864 hardcode_shlibpath_var_CXX=no
11865 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11866 hardcode_libdir_separator_CXX=':'
11867 link_all_deplibs_CXX=yes
11868 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11869 runpath_var='LD_RUN_PATH'
11870
11871 case $cc_basename in
11872 CC*)
11873 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11874 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11875 ;;
11876 *)
11877 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11878 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11879 ;;
11880 esac
11881 ;;
11882 tandem*)
11883 case $cc_basename in
11884 NCC*)
11885 # NonStop-UX NCC 3.20
11886 # FIXME: insert proper C++ library support
11887 ld_shlibs_CXX=no
11888 ;;
11889 *)
11890 # FIXME: insert proper C++ library support
11891 ld_shlibs_CXX=no
11892 ;;
11893 esac
11894 ;;
11895 vxworks*)
11896 # FIXME: insert proper C++ library support
11897 ld_shlibs_CXX=no
11898 ;;
11899 *)
11900 # FIXME: insert proper C++ library support
11901 ld_shlibs_CXX=no
11902 ;;
11903esac
11904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
11905$as_echo "$ld_shlibs_CXX" >&6; }
11906test "$ld_shlibs_CXX" = no && can_build_shared=no
11907
11908GCC_CXX="$GXX"
11909LD_CXX="$LD"
11910
11911## CAVEAT EMPTOR:
11912## There is no encapsulation within the following macros, do not change
11913## the running order or otherwise move them around unless you know exactly
11914## what you are doing...
11915
11916cat > conftest.$ac_ext <<EOF
11917class Foo
11918{
11919public:
11920 Foo (void) { a = 0; }
11921private:
11922 int a;
11923};
11924EOF
11925
11926if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11927 (eval $ac_compile) 2>&5
11928 ac_status=$?
11929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11930 test $ac_status = 0; }; then
11931 # Parse the compiler output and extract the necessary
11932 # objects, libraries and library flags.
11933
11934 # Sentinel used to keep track of whether or not we are before
11935 # the conftest object file.
11936 pre_test_object_deps_done=no
11937
11938 # The `*' in the case matches for architectures that use `case' in
11939 # $output_verbose_cmd can trigger glob expansion during the loop
11940 # eval without this substitution.
11941 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11942
11943 for p in `eval $output_verbose_link_cmd`; do
11944 case $p in
11945
11946 -L* | -R* | -l*)
11947 # Some compilers place space between "-{L,R}" and the path.
11948 # Remove the space.
11949 if test $p = "-L" \
11950 || test $p = "-R"; then
11951 prev=$p
11952 continue
11953 else
11954 prev=
11955 fi
11956
11957 if test "$pre_test_object_deps_done" = no; then
11958 case $p in
11959 -L* | -R*)
11960 # Internal compiler library paths should come after those
11961 # provided the user. The postdeps already come after the
11962 # user supplied libs so there is no need to process them.
11963 if test -z "$compiler_lib_search_path_CXX"; then
11964 compiler_lib_search_path_CXX="${prev}${p}"
11965 else
11966 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11967 fi
11968 ;;
11969 # The "-l" case would never come before the object being
11970 # linked, so don't bother handling this case.
11971 esac
11972 else
11973 if test -z "$postdeps_CXX"; then
11974 postdeps_CXX="${prev}${p}"
11975 else
11976 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11977 fi
11978 fi
11979 ;;
11980
11981 *.$objext)
11982 # This assumes that the test object file only shows up
11983 # once in the compiler output.
11984 if test "$p" = "conftest.$objext"; then
11985 pre_test_object_deps_done=yes
11986 continue
11987 fi
11988
11989 if test "$pre_test_object_deps_done" = no; then
11990 if test -z "$predep_objects_CXX"; then
11991 predep_objects_CXX="$p"
11992 else
11993 predep_objects_CXX="$predep_objects_CXX $p"
11994 fi
11995 else
11996 if test -z "$postdep_objects_CXX"; then
11997 postdep_objects_CXX="$p"
11998 else
11999 postdep_objects_CXX="$postdep_objects_CXX $p"
12000 fi
12001 fi
12002 ;;
12003
12004 *) ;; # Ignore the rest.
12005
12006 esac
12007 done
12008
12009 # Clean up.
12010 rm -f a.out a.exe
12011else
12012 echo "libtool.m4: error: problem compiling CXX test program"
12013fi
12014
12015$rm -f confest.$objext
12016
12017# PORTME: override above test on systems where it is broken
12018case $host_os in
12019interix3*)
12020 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12021 # hack all around it, let's just trust "g++" to DTRT.
12022 predep_objects_CXX=
12023 postdep_objects_CXX=
12024 postdeps_CXX=
12025 ;;
12026
12027solaris*)
12028 case $cc_basename in
12029 CC*)
12030 # Adding this requires a known-good setup of shared libraries for
12031 # Sun compiler versions before 5.6, else PIC objects from an old
12032 # archive will be linked into the output, leading to subtle bugs.
12033 postdeps_CXX='-lCstd -lCrun'
12034 ;;
12035 esac
12036 ;;
12037esac
12038
12039
12040case " $postdeps_CXX " in
12041*" -lc "*) archive_cmds_need_lc_CXX=no ;;
12042esac
12043
12044lt_prog_compiler_wl_CXX=
12045lt_prog_compiler_pic_CXX=
12046lt_prog_compiler_static_CXX=
12047
12048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
12049$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12050
12051 # C++ specific cases for pic, static, wl, etc.
12052 if test "$GXX" = yes; then
12053 lt_prog_compiler_wl_CXX='-Wl,'
12054 lt_prog_compiler_static_CXX='-static'
12055
12056 case $host_os in
12057 aix*)
12058 # All AIX code is PIC.
12059 if test "$host_cpu" = ia64; then
12060 # AIX 5 now supports IA64 processor
12061 lt_prog_compiler_static_CXX='-Bstatic'
12062 fi
12063 ;;
12064 amigaos*)
12065 # FIXME: we need at least 68020 code to build shared libraries, but
12066 # adding the `-m68020' flag to GCC prevents building anything better,
12067 # like `-m68040'.
12068 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12069 ;;
12070 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12071 # PIC is the default for these OSes.
12072 ;;
12073 mingw* | os2* | pw32*)
12074 # This hack is so that the source file can tell whether it is being
12075 # built for inclusion in a dll (and should export symbols for example).
12076 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12077 ;;
12078 darwin* | rhapsody*)
12079 # PIC is the default on this platform
12080 # Common symbols not allowed in MH_DYLIB files
12081 lt_prog_compiler_pic_CXX='-fno-common'
12082 ;;
12083 *djgpp*)
12084 # DJGPP does not support shared libraries at all
12085 lt_prog_compiler_pic_CXX=
12086 ;;
12087 interix3*)
12088 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12089 # Instead, we relocate shared libraries at runtime.
12090 ;;
12091 sysv4*MP*)
12092 if test -d /usr/nec; then
12093 lt_prog_compiler_pic_CXX=-Kconform_pic
12094 fi
12095 ;;
12096 hpux*)
12097 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12098 # not for PA HP-UX.
12099 case $host_cpu in
12100 hppa*64*|ia64*)
12101 ;;
12102 *)
12103 lt_prog_compiler_pic_CXX='-fPIC'
12104 ;;
12105 esac
12106 ;;
12107 *)
12108 lt_prog_compiler_pic_CXX='-fPIC'
12109 ;;
12110 esac
12111 else
12112 case $host_os in
12113 aix4* | aix5*)
12114 # All AIX code is PIC.
12115 if test "$host_cpu" = ia64; then
12116 # AIX 5 now supports IA64 processor
12117 lt_prog_compiler_static_CXX='-Bstatic'
12118 else
12119 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12120 fi
12121 ;;
12122 chorus*)
12123 case $cc_basename in
12124 cxch68*)
12125 # Green Hills C++ Compiler
12126 # _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"
12127 ;;
12128 esac
12129 ;;
12130 darwin*)
12131 # PIC is the default on this platform
12132 # Common symbols not allowed in MH_DYLIB files
12133 case $cc_basename in
12134 xlc*)
12135 lt_prog_compiler_pic_CXX='-qnocommon'
12136 lt_prog_compiler_wl_CXX='-Wl,'
12137 ;;
12138 esac
12139 ;;
12140 dgux*)
12141 case $cc_basename in
12142 ec++*)
12143 lt_prog_compiler_pic_CXX='-KPIC'
12144 ;;
12145 ghcx*)
12146 # Green Hills C++ Compiler
12147 lt_prog_compiler_pic_CXX='-pic'
12148 ;;
12149 *)
12150 ;;
12151 esac
12152 ;;
12153 freebsd* | kfreebsd*-gnu | dragonfly*)
12154 # FreeBSD uses GNU C++
12155 ;;
12156 hpux9* | hpux10* | hpux11*)
12157 case $cc_basename in
12158 CC*)
12159 lt_prog_compiler_wl_CXX='-Wl,'
12160 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12161 if test "$host_cpu" != ia64; then
12162 lt_prog_compiler_pic_CXX='+Z'
12163 fi
12164 ;;
12165 aCC*)
12166 lt_prog_compiler_wl_CXX='-Wl,'
12167 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12168 case $host_cpu in
12169 hppa*64*|ia64*)
12170 # +Z the default
12171 ;;
12172 *)
12173 lt_prog_compiler_pic_CXX='+Z'
12174 ;;
12175 esac
12176 ;;
12177 *)
12178 ;;
12179 esac
12180 ;;
12181 interix*)
12182 # This is c89, which is MS Visual C++ (no shared libs)
12183 # Anyone wants to do a port?
12184 ;;
12185 irix5* | irix6* | nonstopux*)
12186 case $cc_basename in
12187 CC*)
12188 lt_prog_compiler_wl_CXX='-Wl,'
12189 lt_prog_compiler_static_CXX='-non_shared'
12190 # CC pic flag -KPIC is the default.
12191 ;;
12192 *)
12193 ;;
12194 esac
12195 ;;
12196 linux*)
12197 case $cc_basename in
12198 KCC*)
12199 # KAI C++ Compiler
12200 lt_prog_compiler_wl_CXX='--backend -Wl,'
12201 lt_prog_compiler_pic_CXX='-fPIC'
12202 ;;
12203 icpc* | ecpc*)
12204 # Intel C++
12205 lt_prog_compiler_wl_CXX='-Wl,'
12206 lt_prog_compiler_pic_CXX='-KPIC'
12207 lt_prog_compiler_static_CXX='-static'
12208 ;;
12209 pgCC*)
12210 # Portland Group C++ compiler.
12211 lt_prog_compiler_wl_CXX='-Wl,'
12212 lt_prog_compiler_pic_CXX='-fpic'
12213 lt_prog_compiler_static_CXX='-Bstatic'
12214 ;;
12215 cxx*)
12216 # Compaq C++
12217 # Make sure the PIC flag is empty. It appears that all Alpha
12218 # Linux and Compaq Tru64 Unix objects are PIC.
12219 lt_prog_compiler_pic_CXX=
12220 lt_prog_compiler_static_CXX='-non_shared'
12221 ;;
12222 *)
12223 ;;
12224 esac
12225 ;;
12226 lynxos*)
12227 ;;
12228 m88k*)
12229 ;;
12230 mvs*)
12231 case $cc_basename in
12232 cxx*)
12233 lt_prog_compiler_pic_CXX='-W c,exportall'
12234 ;;
12235 *)
12236 ;;
12237 esac
12238 ;;
12239 netbsd*)
12240 ;;
12241 osf3* | osf4* | osf5*)
12242 case $cc_basename in
12243 KCC*)
12244 lt_prog_compiler_wl_CXX='--backend -Wl,'
12245 ;;
12246 RCC*)
12247 # Rational C++ 2.4.1
12248 lt_prog_compiler_pic_CXX='-pic'
12249 ;;
12250 cxx*)
12251 # Digital/Compaq C++
12252 lt_prog_compiler_wl_CXX='-Wl,'
12253 # Make sure the PIC flag is empty. It appears that all Alpha
12254 # Linux and Compaq Tru64 Unix objects are PIC.
12255 lt_prog_compiler_pic_CXX=
12256 lt_prog_compiler_static_CXX='-non_shared'
12257 ;;
12258 *)
12259 ;;
12260 esac
12261 ;;
12262 psos*)
12263 ;;
12264 solaris*)
12265 case $cc_basename in
12266 CC*)
12267 # Sun C++ 4.2, 5.x and Centerline C++
12268 lt_prog_compiler_pic_CXX='-KPIC'
12269 lt_prog_compiler_static_CXX='-Bstatic'
12270 lt_prog_compiler_wl_CXX='-Qoption ld '
12271 ;;
12272 gcx*)
12273 # Green Hills C++ Compiler
12274 lt_prog_compiler_pic_CXX='-PIC'
12275 ;;
12276 *)
12277 ;;
12278 esac
12279 ;;
12280 sunos4*)
12281 case $cc_basename in
12282 CC*)
12283 # Sun C++ 4.x
12284 lt_prog_compiler_pic_CXX='-pic'
12285 lt_prog_compiler_static_CXX='-Bstatic'
12286 ;;
12287 lcc*)
12288 # Lucid
12289 lt_prog_compiler_pic_CXX='-pic'
12290 ;;
12291 *)
12292 ;;
12293 esac
12294 ;;
12295 tandem*)
12296 case $cc_basename in
12297 NCC*)
12298 # NonStop-UX NCC 3.20
12299 lt_prog_compiler_pic_CXX='-KPIC'
12300 ;;
12301 *)
12302 ;;
12303 esac
12304 ;;
12305 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12306 case $cc_basename in
12307 CC*)
12308 lt_prog_compiler_wl_CXX='-Wl,'
12309 lt_prog_compiler_pic_CXX='-KPIC'
12310 lt_prog_compiler_static_CXX='-Bstatic'
12311 ;;
12312 esac
12313 ;;
12314 vxworks*)
12315 ;;
12316 *)
12317 lt_prog_compiler_can_build_shared_CXX=no
12318 ;;
12319 esac
12320 fi
12321
12322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
12323$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12324
12325#
12326# Check to make sure the PIC flag actually works.
12327#
12328if test -n "$lt_prog_compiler_pic_CXX"; then
12329
12330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12331$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12332if ${lt_prog_compiler_pic_works_CXX+:} false; then :
12333 $as_echo_n "(cached) " >&6
12334else
12335 lt_prog_compiler_pic_works_CXX=no
12336 ac_outfile=conftest.$ac_objext
12337 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12338 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12339 # Insert the option either (1) after the last *FLAGS variable, or
12340 # (2) before a word containing "conftest.", or (3) at the end.
12341 # Note that $ac_compile itself does not contain backslashes and begins
12342 # with a dollar sign (not a hyphen), so the echo should work correctly.
12343 # The option is referenced via a variable to avoid confusing sed.
12344 lt_compile=`echo "$ac_compile" | $SED \
12345 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12346 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12347 -e 's:$: $lt_compiler_flag:'`
12348 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12349 (eval "$lt_compile" 2>conftest.err)
12350 ac_status=$?
12351 cat conftest.err >&5
12352 echo "$as_me:__oline__: \$? = $ac_status" >&5
12353 if (exit $ac_status) && test -s "$ac_outfile"; then
12354 # The compiler can only warn and ignore the option if not recognized
12355 # So say no if there are warnings other than the usual output.
12356 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12357 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12358 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12359 lt_prog_compiler_pic_works_CXX=yes
12360 fi
12361 fi
12362 $rm conftest*
12363
12364fi
12365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_CXX" >&5
12366$as_echo "$lt_prog_compiler_pic_works_CXX" >&6; }
12367
12368if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
12369 case $lt_prog_compiler_pic_CXX in
12370 "" | " "*) ;;
12371 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12372 esac
12373else
12374 lt_prog_compiler_pic_CXX=
12375 lt_prog_compiler_can_build_shared_CXX=no
12376fi
12377
12378fi
12379case $host_os in
12380 # For platforms which do not support PIC, -DPIC is meaningless:
12381 *djgpp*)
12382 lt_prog_compiler_pic_CXX=
12383 ;;
12384 *)
12385 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12386 ;;
12387esac
12388
12389#
12390# Check to make sure the static flag actually works.
12391#
12392wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12393{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12394$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12395if ${lt_prog_compiler_static_works_CXX+:} false; then :
12396 $as_echo_n "(cached) " >&6
12397else
12398 lt_prog_compiler_static_works_CXX=no
12399 save_LDFLAGS="$LDFLAGS"
12400 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12401 printf "$lt_simple_link_test_code" > conftest.$ac_ext
12402 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12403 # The linker can only warn and ignore the option if not recognized
12404 # So say no if there are warnings
12405 if test -s conftest.err; then
12406 # Append any errors to the config.log.
12407 cat conftest.err 1>&5
12408 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12409 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12410 if diff conftest.exp conftest.er2 >/dev/null; then
12411 lt_prog_compiler_static_works_CXX=yes
12412 fi
12413 else
12414 lt_prog_compiler_static_works_CXX=yes
12415 fi
12416 fi
12417 $rm conftest*
12418 LDFLAGS="$save_LDFLAGS"
12419
12420fi
12421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_CXX" >&5
12422$as_echo "$lt_prog_compiler_static_works_CXX" >&6; }
12423
12424if test x"$lt_prog_compiler_static_works_CXX" = xyes; then
12425 :
12426else
12427 lt_prog_compiler_static_CXX=
12428fi
12429
12430
12431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12432$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12433if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
12434 $as_echo_n "(cached) " >&6
12435else
12436 lt_cv_prog_compiler_c_o_CXX=no
12437 $rm -r conftest 2>/dev/null
12438 mkdir conftest
12439 cd conftest
12440 mkdir out
12441 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12442
12443 lt_compiler_flag="-o out/conftest2.$ac_objext"
12444 # Insert the option either (1) after the last *FLAGS variable, or
12445 # (2) before a word containing "conftest.", or (3) at the end.
12446 # Note that $ac_compile itself does not contain backslashes and begins
12447 # with a dollar sign (not a hyphen), so the echo should work correctly.
12448 lt_compile=`echo "$ac_compile" | $SED \
12449 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12450 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12451 -e 's:$: $lt_compiler_flag:'`
12452 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
12453 (eval "$lt_compile" 2>out/conftest.err)
12454 ac_status=$?
12455 cat out/conftest.err >&5
12456 echo "$as_me:__oline__: \$? = $ac_status" >&5
12457 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12458 then
12459 # The compiler can only warn and ignore the option if not recognized
12460 # So say no if there are warnings
12461 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12462 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12463 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12464 lt_cv_prog_compiler_c_o_CXX=yes
12465 fi
12466 fi
12467 chmod u+w . 2>&5
12468 $rm conftest*
12469 # SGI C++ compiler will create directory out/ii_files/ for
12470 # template instantiation
12471 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12472 $rm out/* && rmdir out
12473 cd ..
12474 rmdir conftest
12475 $rm conftest*
12476
12477fi
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12479$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
12480
12481
12482hard_links="nottested"
12483if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12484 # do not overwrite the value of need_locks provided by the user
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12486$as_echo_n "checking if we can lock with hard links... " >&6; }
12487 hard_links=yes
12488 $rm conftest*
12489 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12490 touch conftest.a
12491 ln conftest.a conftest.b 2>&5 || hard_links=no
12492 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12494$as_echo "$hard_links" >&6; }
12495 if test "$hard_links" = no; then
12496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12497$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12498 need_locks=warn
12499 fi
12500else
12501 need_locks=no
12502fi
12503
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12505$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12506
12507 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12508 case $host_os in
12509 aix4* | aix5*)
12510 # If we're using GNU nm, then we don't want the "-C" option.
12511 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12512 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12513 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'
12514 else
12515 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'
12516 fi
12517 ;;
12518 pw32*)
12519 export_symbols_cmds_CXX="$ltdll_cmds"
12520 ;;
12521 cygwin* | mingw*)
12522 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'
12523 ;;
12524 *)
12525 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12526 ;;
12527 esac
12528
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
12530$as_echo "$ld_shlibs_CXX" >&6; }
12531test "$ld_shlibs_CXX" = no && can_build_shared=no
12532
12533#
12534# Do we need to explicitly link libc?
12535#
12536case "x$archive_cmds_need_lc_CXX" in
12537x|xyes)
12538 # Assume -lc should be added
12539 archive_cmds_need_lc_CXX=yes
12540
12541 if test "$enable_shared" = yes && test "$GCC" = yes; then
12542 case $archive_cmds_CXX in
12543 *'~'*)
12544 # FIXME: we may have to deal with multi-command sequences.
12545 ;;
12546 '$CC '*)
12547 # Test whether the compiler implicitly links with -lc since on some
12548 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12549 # to ld, don't add -lc before -lgcc.
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
12551$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
12552 $rm conftest*
12553 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12554
12555 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12556 (eval $ac_compile) 2>&5
12557 ac_status=$?
12558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12559 test $ac_status = 0; } 2>conftest.err; then
12560 soname=conftest
12561 lib=conftest
12562 libobjs=conftest.$ac_objext
12563 deplibs=
12564 wl=$lt_prog_compiler_wl_CXX
12565 pic_flag=$lt_prog_compiler_pic_CXX
12566 compiler_flags=-v
12567 linker_flags=-v
12568 verstring=
12569 output_objdir=.
12570 libname=conftest
12571 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12572 allow_undefined_flag_CXX=
12573 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
12574 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12575 ac_status=$?
12576 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12577 test $ac_status = 0; }
12578 then
12579 archive_cmds_need_lc_CXX=no
12580 else
12581 archive_cmds_need_lc_CXX=yes
12582 fi
12583 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12584 else
12585 cat conftest.err 1>&5
12586 fi
12587 $rm conftest*
12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
12589$as_echo "$archive_cmds_need_lc_CXX" >&6; }
12590 ;;
12591 esac
12592 fi
12593 ;;
12594esac
12595
12596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
12597$as_echo_n "checking dynamic linker characteristics... " >&6; }
12598library_names_spec=
12599libname_spec='lib$name'
12600soname_spec=
12601shrext_cmds=".so"
12602postinstall_cmds=
12603postuninstall_cmds=
12604finish_cmds=
12605finish_eval=
12606shlibpath_var=
12607shlibpath_overrides_runpath=unknown
12608version_type=none
12609dynamic_linker="$host_os ld.so"
12610sys_lib_dlsearch_path_spec="/lib /usr/lib"
12611if test "$GCC" = yes; then
12612 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12613 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
12614 # if the path contains ";" then we assume it to be the separator
12615 # otherwise default to the standard path separator (i.e. ":") - it is
12616 # assumed that no part of a normal pathname contains ";" but that should
12617 # okay in the real world where ";" in dirpaths is itself problematic.
12618 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12619 else
12620 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12621 fi
12622else
12623 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
12624fi
12625need_lib_prefix=unknown
12626hardcode_into_libs=no
12627
12628# when you set need_version to no, make sure it does not cause -set_version
12629# flags to be left without arguments
12630need_version=unknown
12631
12632case $host_os in
12633aix3*)
12634 version_type=linux
12635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12636 shlibpath_var=LIBPATH
12637
12638 # AIX 3 has no versioning support, so we append a major version to the name.
12639 soname_spec='${libname}${release}${shared_ext}$major'
12640 ;;
12641
12642aix4* | aix5*)
12643 version_type=linux
12644 need_lib_prefix=no
12645 need_version=no
12646 hardcode_into_libs=yes
12647 if test "$host_cpu" = ia64; then
12648 # AIX 5 supports IA64
12649 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12650 shlibpath_var=LD_LIBRARY_PATH
12651 else
12652 # With GCC up to 2.95.x, collect2 would create an import file
12653 # for dependence libraries. The import file would start with
12654 # the line `#! .'. This would cause the generated library to
12655 # depend on `.', always an invalid library. This was fixed in
12656 # development snapshots of GCC prior to 3.0.
12657 case $host_os in
12658 aix4 | aix4.[01] | aix4.[01].*)
12659 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12660 echo ' yes '
12661 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12662 :
12663 else
12664 can_build_shared=no
12665 fi
12666 ;;
12667 esac
12668 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12669 # soname into executable. Probably we can add versioning support to
12670 # collect2, so additional links can be useful in future.
12671 if test "$aix_use_runtimelinking" = yes; then
12672 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12673 # instead of lib<name>.a to let people know that these are not
12674 # typical AIX shared libraries.
12675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12676 else
12677 # We preserve .a as extension for shared libraries through AIX4.2
12678 # and later when we are not doing run time linking.
12679 library_names_spec='${libname}${release}.a $libname.a'
12680 soname_spec='${libname}${release}${shared_ext}$major'
12681 fi
12682 shlibpath_var=LIBPATH
12683 fi
12684 ;;
12685
12686amigaos*)
12687 library_names_spec='$libname.ixlibrary $libname.a'
12688 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12689 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'
12690 ;;
12691
12692beos*)
12693 library_names_spec='${libname}${shared_ext}'
12694 dynamic_linker="$host_os ld.so"
12695 shlibpath_var=LIBRARY_PATH
12696 ;;
12697
12698bsdi[45]*)
12699 version_type=linux
12700 need_version=no
12701 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12702 soname_spec='${libname}${release}${shared_ext}$major'
12703 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12704 shlibpath_var=LD_LIBRARY_PATH
12705 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12706 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12707 # the default ld.so.conf also contains /usr/contrib/lib and
12708 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12709 # libtool to hard-code these into programs
12710 ;;
12711
12712cygwin* | mingw* | pw32*)
12713 version_type=windows
12714 shrext_cmds=".dll"
12715 need_version=no
12716 need_lib_prefix=no
12717
12718 case $GCC,$host_os in
12719 yes,cygwin* | yes,mingw* | yes,pw32*)
12720 library_names_spec='$libname.dll.a'
12721 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12722 postinstall_cmds='base_file=`basename \${file}`~
12723 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12724 dldir=$destdir/`dirname \$dlpath`~
12725 test -d \$dldir || mkdir -p \$dldir~
12726 $install_prog $dir/$dlname \$dldir/$dlname~
12727 chmod a+x \$dldir/$dlname'
12728 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12729 dlpath=$dir/\$dldll~
12730 $rm \$dlpath'
12731 shlibpath_overrides_runpath=yes
12732
12733 case $host_os in
12734 cygwin*)
12735 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12736 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12737 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12738 ;;
12739 mingw*)
12740 # MinGW DLLs use traditional 'lib' prefix
12741 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12742 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12743 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12744 # It is most probably a Windows format PATH printed by
12745 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12746 # path with ; separators, and with drive letters. We can handle the
12747 # drive letters (cygwin fileutils understands them), so leave them,
12748 # especially as we might pass files found there to a mingw objdump,
12749 # which wouldn't understand a cygwinified path. Ahh.
12750 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12751 else
12752 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12753 fi
12754 ;;
12755 pw32*)
12756 # pw32 DLLs use 'pw' prefix rather than 'lib'
12757 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12758 ;;
12759 esac
12760 ;;
12761
12762 *)
12763 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12764 ;;
12765 esac
12766 dynamic_linker='Win32 ld.exe'
12767 # FIXME: first we should search . and the directory the executable is in
12768 shlibpath_var=PATH
12769 ;;
12770
12771darwin* | rhapsody*)
12772 dynamic_linker="$host_os dyld"
12773 version_type=darwin
12774 need_lib_prefix=no
12775 need_version=no
12776 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12777 soname_spec='${libname}${release}${major}$shared_ext'
12778 shlibpath_overrides_runpath=yes
12779 shlibpath_var=DYLD_LIBRARY_PATH
12780 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12781 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
12782 if test "$GCC" = yes; then
12783 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"`
12784 else
12785 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
12786 fi
12787 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12788 ;;
12789
12790dgux*)
12791 version_type=linux
12792 need_lib_prefix=no
12793 need_version=no
12794 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12795 soname_spec='${libname}${release}${shared_ext}$major'
12796 shlibpath_var=LD_LIBRARY_PATH
12797 ;;
12798
12799freebsd1*)
12800 dynamic_linker=no
12801 ;;
12802
12803kfreebsd*-gnu)
12804 version_type=linux
12805 need_lib_prefix=no
12806 need_version=no
12807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12808 soname_spec='${libname}${release}${shared_ext}$major'
12809 shlibpath_var=LD_LIBRARY_PATH
12810 shlibpath_overrides_runpath=no
12811 hardcode_into_libs=yes
12812 dynamic_linker='GNU ld.so'
12813 ;;
12814
12815freebsd* | dragonfly*)
12816 # DragonFly does not have aout. When/if they implement a new
12817 # versioning mechanism, adjust this.
12818 if test -x /usr/bin/objformat; then
12819 objformat=`/usr/bin/objformat`
12820 else
12821 case $host_os in
12822 freebsd[123]*) objformat=aout ;;
12823 *) objformat=elf ;;
12824 esac
12825 fi
12826 version_type=freebsd-$objformat
12827 case $version_type in
12828 freebsd-elf*)
12829 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12830 need_version=no
12831 need_lib_prefix=no
12832 ;;
12833 freebsd-*)
12834 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12835 need_version=yes
12836 ;;
12837 esac
12838 shlibpath_var=LD_LIBRARY_PATH
12839 case $host_os in
12840 freebsd2*)
12841 shlibpath_overrides_runpath=yes
12842 ;;
12843 freebsd3.[01]* | freebsdelf3.[01]*)
12844 shlibpath_overrides_runpath=yes
12845 hardcode_into_libs=yes
12846 ;;
12847 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12848 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12849 shlibpath_overrides_runpath=no
12850 hardcode_into_libs=yes
12851 ;;
12852 freebsd*) # from 4.6 on
12853 shlibpath_overrides_runpath=yes
12854 hardcode_into_libs=yes
12855 ;;
12856 esac
12857 ;;
12858
12859gnu*)
12860 version_type=linux
12861 need_lib_prefix=no
12862 need_version=no
12863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12864 soname_spec='${libname}${release}${shared_ext}$major'
12865 shlibpath_var=LD_LIBRARY_PATH
12866 hardcode_into_libs=yes
12867 ;;
12868
12869hpux9* | hpux10* | hpux11*)
12870 # Give a soname corresponding to the major version so that dld.sl refuses to
12871 # link against other versions.
12872 version_type=sunos
12873 need_lib_prefix=no
12874 need_version=no
12875 case $host_cpu in
12876 ia64*)
12877 shrext_cmds='.so'
12878 hardcode_into_libs=yes
12879 dynamic_linker="$host_os dld.so"
12880 shlibpath_var=LD_LIBRARY_PATH
12881 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12883 soname_spec='${libname}${release}${shared_ext}$major'
12884 if test "X$HPUX_IA64_MODE" = X32; then
12885 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12886 else
12887 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12888 fi
12889 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12890 ;;
12891 hppa*64*)
12892 shrext_cmds='.sl'
12893 hardcode_into_libs=yes
12894 dynamic_linker="$host_os dld.sl"
12895 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12896 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12898 soname_spec='${libname}${release}${shared_ext}$major'
12899 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12900 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12901 ;;
12902 *)
12903 shrext_cmds='.sl'
12904 dynamic_linker="$host_os dld.sl"
12905 shlibpath_var=SHLIB_PATH
12906 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12908 soname_spec='${libname}${release}${shared_ext}$major'
12909 ;;
12910 esac
12911 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12912 postinstall_cmds='chmod 555 $lib'
12913 ;;
12914
12915interix3*)
12916 version_type=linux
12917 need_lib_prefix=no
12918 need_version=no
12919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12920 soname_spec='${libname}${release}${shared_ext}$major'
12921 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12922 shlibpath_var=LD_LIBRARY_PATH
12923 shlibpath_overrides_runpath=no
12924 hardcode_into_libs=yes
12925 ;;
12926
12927irix5* | irix6* | nonstopux*)
12928 case $host_os in
12929 nonstopux*) version_type=nonstopux ;;
12930 *)
12931 if test "$lt_cv_prog_gnu_ld" = yes; then
12932 version_type=linux
12933 else
12934 version_type=irix
12935 fi ;;
12936 esac
12937 need_lib_prefix=no
12938 need_version=no
12939 soname_spec='${libname}${release}${shared_ext}$major'
12940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12941 case $host_os in
12942 irix5* | nonstopux*)
12943 libsuff= shlibsuff=
12944 ;;
12945 *)
12946 case $LD in # libtool.m4 will add one of these switches to LD
12947 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12948 libsuff= shlibsuff= libmagic=32-bit;;
12949 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12950 libsuff=32 shlibsuff=N32 libmagic=N32;;
12951 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12952 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12953 *) libsuff= shlibsuff= libmagic=never-match;;
12954 esac
12955 ;;
12956 esac
12957 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12958 shlibpath_overrides_runpath=no
12959 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12960 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12961 hardcode_into_libs=yes
12962 ;;
12963
12964# No shared lib support for Linux oldld, aout, or coff.
12965linux*oldld* | linux*aout* | linux*coff*)
12966 dynamic_linker=no
12967 ;;
12968
12969# This must be Linux ELF.
12970linux*)
12971 version_type=linux
12972 need_lib_prefix=no
12973 need_version=no
12974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12975 soname_spec='${libname}${release}${shared_ext}$major'
12976 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12977 shlibpath_var=LD_LIBRARY_PATH
12978 shlibpath_overrides_runpath=no
12979 # This implies no fast_install, which is unacceptable.
12980 # Some rework will be needed to allow for fast_install
12981 # before this can be enabled.
12982 hardcode_into_libs=yes
12983
12984 # Append ld.so.conf contents to the search path
12985 if test -f /etc/ld.so.conf; then
12986 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' ' '`
12987 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12988 fi
12989
12990 # We used to test for /lib/ld.so.1 and disable shared libraries on
12991 # powerpc, because MkLinux only supported shared libraries with the
12992 # GNU dynamic linker. Since this was broken with cross compilers,
12993 # most powerpc-linux boxes support dynamic linking these days and
12994 # people can always --disable-shared, the test was removed, and we
12995 # assume the GNU/Linux dynamic linker is in use.
12996 dynamic_linker='GNU/Linux ld.so'
12997 ;;
12998
12999knetbsd*-gnu)
13000 version_type=linux
13001 need_lib_prefix=no
13002 need_version=no
13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13004 soname_spec='${libname}${release}${shared_ext}$major'
13005 shlibpath_var=LD_LIBRARY_PATH
13006 shlibpath_overrides_runpath=no
13007 hardcode_into_libs=yes
13008 dynamic_linker='GNU ld.so'
13009 ;;
13010
13011netbsd*)
13012 version_type=sunos
13013 need_lib_prefix=no
13014 need_version=no
13015 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13016 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13017 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13018 dynamic_linker='NetBSD (a.out) ld.so'
13019 else
13020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13021 soname_spec='${libname}${release}${shared_ext}$major'
13022 dynamic_linker='NetBSD ld.elf_so'
13023 fi
13024 shlibpath_var=LD_LIBRARY_PATH
13025 shlibpath_overrides_runpath=yes
13026 hardcode_into_libs=yes
13027 ;;
13028
13029newsos6)
13030 version_type=linux
13031 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13032 shlibpath_var=LD_LIBRARY_PATH
13033 shlibpath_overrides_runpath=yes
13034 ;;
13035
13036nto-qnx*)
13037 version_type=linux
13038 need_lib_prefix=no
13039 need_version=no
13040 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13041 soname_spec='${libname}${release}${shared_ext}$major'
13042 shlibpath_var=LD_LIBRARY_PATH
13043 shlibpath_overrides_runpath=yes
13044 ;;
13045
13046openbsd*)
13047 version_type=sunos
13048 sys_lib_dlsearch_path_spec="/usr/lib"
13049 need_lib_prefix=no
13050 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13051 case $host_os in
13052 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13053 *) need_version=no ;;
13054 esac
13055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13056 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13057 shlibpath_var=LD_LIBRARY_PATH
13058 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13059 case $host_os in
13060 openbsd2.[89] | openbsd2.[89].*)
13061 shlibpath_overrides_runpath=no
13062 ;;
13063 *)
13064 shlibpath_overrides_runpath=yes
13065 ;;
13066 esac
13067 else
13068 shlibpath_overrides_runpath=yes
13069 fi
13070 ;;
13071
13072os2*)
13073 libname_spec='$name'
13074 shrext_cmds=".dll"
13075 need_lib_prefix=no
13076 library_names_spec='$libname${shared_ext} $libname.a'
13077 dynamic_linker='OS/2 ld.exe'
13078 shlibpath_var=LIBPATH
13079 ;;
13080
13081osf3* | osf4* | osf5*)
13082 version_type=osf
13083 need_lib_prefix=no
13084 need_version=no
13085 soname_spec='${libname}${release}${shared_ext}$major'
13086 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13087 shlibpath_var=LD_LIBRARY_PATH
13088 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13089 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13090 ;;
13091
13092solaris*)
13093 version_type=linux
13094 need_lib_prefix=no
13095 need_version=no
13096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13097 soname_spec='${libname}${release}${shared_ext}$major'
13098 shlibpath_var=LD_LIBRARY_PATH
13099 shlibpath_overrides_runpath=yes
13100 hardcode_into_libs=yes
13101 # ldd complains unless libraries are executable
13102 postinstall_cmds='chmod +x $lib'
13103 ;;
13104
13105sunos4*)
13106 version_type=sunos
13107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13108 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13109 shlibpath_var=LD_LIBRARY_PATH
13110 shlibpath_overrides_runpath=yes
13111 if test "$with_gnu_ld" = yes; then
13112 need_lib_prefix=no
13113 fi
13114 need_version=yes
13115 ;;
13116
13117sysv4 | sysv4.3*)
13118 version_type=linux
13119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13120 soname_spec='${libname}${release}${shared_ext}$major'
13121 shlibpath_var=LD_LIBRARY_PATH
13122 case $host_vendor in
13123 sni)
13124 shlibpath_overrides_runpath=no
13125 need_lib_prefix=no
13126 export_dynamic_flag_spec='${wl}-Blargedynsym'
13127 runpath_var=LD_RUN_PATH
13128 ;;
13129 siemens)
13130 need_lib_prefix=no
13131 ;;
13132 motorola)
13133 need_lib_prefix=no
13134 need_version=no
13135 shlibpath_overrides_runpath=no
13136 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13137 ;;
13138 esac
13139 ;;
13140
13141sysv4*MP*)
13142 if test -d /usr/nec ;then
13143 version_type=linux
13144 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13145 soname_spec='$libname${shared_ext}.$major'
13146 shlibpath_var=LD_LIBRARY_PATH
13147 fi
13148 ;;
13149
13150sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13151 version_type=freebsd-elf
13152 need_lib_prefix=no
13153 need_version=no
13154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13155 soname_spec='${libname}${release}${shared_ext}$major'
13156 shlibpath_var=LD_LIBRARY_PATH
13157 hardcode_into_libs=yes
13158 if test "$with_gnu_ld" = yes; then
13159 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13160 shlibpath_overrides_runpath=no
13161 else
13162 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13163 shlibpath_overrides_runpath=yes
13164 case $host_os in
13165 sco3.2v5*)
13166 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13167 ;;
13168 esac
13169 fi
13170 sys_lib_dlsearch_path_spec='/usr/lib'
13171 ;;
13172
13173uts4*)
13174 version_type=linux
13175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13176 soname_spec='${libname}${release}${shared_ext}$major'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 ;;
13179
13180*)
13181 dynamic_linker=no
13182 ;;
13183esac
13184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
13185$as_echo "$dynamic_linker" >&6; }
13186test "$dynamic_linker" = no && can_build_shared=no
13187
13188variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13189if test "$GCC" = yes; then
13190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13191fi
13192
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
13194$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13195hardcode_action_CXX=
13196if test -n "$hardcode_libdir_flag_spec_CXX" || \
13197 test -n "$runpath_var_CXX" || \
13198 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13199
13200 # We can hardcode non-existant directories.
13201 if test "$hardcode_direct_CXX" != no &&
13202 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13203 # have to relink, otherwise we might link with an installed library
13204 # when we should be linking with a yet-to-be-installed one
13205 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13206 test "$hardcode_minus_L_CXX" != no; then
13207 # Linking always hardcodes the temporary library directory.
13208 hardcode_action_CXX=relink
13209 else
13210 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13211 hardcode_action_CXX=immediate
13212 fi
13213else
13214 # We cannot hardcode anything, or else we can only hardcode existing
13215 # directories.
13216 hardcode_action_CXX=unsupported
13217fi
13218{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
13219$as_echo "$hardcode_action_CXX" >&6; }
13220
13221if test "$hardcode_action_CXX" = relink; then
13222 # Fast installation is not supported
13223 enable_fast_install=no
13224elif test "$shlibpath_overrides_runpath" = yes ||
13225 test "$enable_shared" = no; then
13226 # Fast installation is not necessary
13227 enable_fast_install=needless
13228fi
13229
13230
13231# The else clause should only fire when bootstrapping the
13232# libtool distribution, otherwise you forgot to ship ltmain.sh
13233# with your package, and you will get complaints that there are
13234# no rules to generate ltmain.sh.
13235if test -f "$ltmain"; then
13236 # See if we are running on zsh, and set the options which allow our commands through
13237 # without removal of \ escapes.
13238 if test -n "${ZSH_VERSION+set}" ; then
13239 setopt NO_GLOB_SUBST
13240 fi
13241 # Now quote all the things that may contain metacharacters while being
13242 # careful not to overquote the AC_SUBSTed values. We take copies of the
13243 # variables and quote the copies for generation of the libtool script.
13244 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13245 SED SHELL STRIP \
13246 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13247 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13248 deplibs_check_method reload_flag reload_cmds need_locks \
13249 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13250 lt_cv_sys_global_symbol_to_c_name_address \
13251 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13252 old_postinstall_cmds old_postuninstall_cmds \
13253 compiler_CXX \
13254 CC_CXX \
13255 LD_CXX \
13256 lt_prog_compiler_wl_CXX \
13257 lt_prog_compiler_pic_CXX \
13258 lt_prog_compiler_static_CXX \
13259 lt_prog_compiler_no_builtin_flag_CXX \
13260 export_dynamic_flag_spec_CXX \
13261 thread_safe_flag_spec_CXX \
13262 whole_archive_flag_spec_CXX \
13263 enable_shared_with_static_runtimes_CXX \
13264 old_archive_cmds_CXX \
13265 old_archive_from_new_cmds_CXX \
13266 predep_objects_CXX \
13267 postdep_objects_CXX \
13268 predeps_CXX \
13269 postdeps_CXX \
13270 compiler_lib_search_path_CXX \
13271 archive_cmds_CXX \
13272 archive_expsym_cmds_CXX \
13273 postinstall_cmds_CXX \
13274 postuninstall_cmds_CXX \
13275 old_archive_from_expsyms_cmds_CXX \
13276 allow_undefined_flag_CXX \
13277 no_undefined_flag_CXX \
13278 export_symbols_cmds_CXX \
13279 hardcode_libdir_flag_spec_CXX \
13280 hardcode_libdir_flag_spec_ld_CXX \
13281 hardcode_libdir_separator_CXX \
13282 hardcode_automatic_CXX \
13283 module_cmds_CXX \
13284 module_expsym_cmds_CXX \
13285 lt_cv_prog_compiler_c_o_CXX \
13286 exclude_expsyms_CXX \
13287 include_expsyms_CXX; do
13288
13289 case $var in
13290 old_archive_cmds_CXX | \
13291 old_archive_from_new_cmds_CXX | \
13292 archive_cmds_CXX | \
13293 archive_expsym_cmds_CXX | \
13294 module_cmds_CXX | \
13295 module_expsym_cmds_CXX | \
13296 old_archive_from_expsyms_cmds_CXX | \
13297 export_symbols_cmds_CXX | \
13298 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13299 postinstall_cmds | postuninstall_cmds | \
13300 old_postinstall_cmds | old_postuninstall_cmds | \
13301 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13302 # Double-quote double-evaled strings.
13303 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13304 ;;
13305 *)
13306 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13307 ;;
13308 esac
13309 done
13310
13311 case $lt_echo in
13312 *'\$0 --fallback-echo"')
13313 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13314 ;;
13315 esac
13316
13317cfgfile="$ofile"
13318
13319 cat <<__EOF__ >> "$cfgfile"
13320# ### BEGIN LIBTOOL TAG CONFIG: $tagname
13321
13322# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13323
13324# Shell to use when invoking shell scripts.
13325SHELL=$lt_SHELL
13326
13327# Whether or not to build shared libraries.
13328build_libtool_libs=$enable_shared
13329
13330# Whether or not to build static libraries.
13331build_old_libs=$enable_static
13332
13333# Whether or not to add -lc for building shared libraries.
13334build_libtool_need_lc=$archive_cmds_need_lc_CXX
13335
13336# Whether or not to disallow shared libs when runtime libs are static
13337allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13338
13339# Whether or not to optimize for fast installation.
13340fast_install=$enable_fast_install
13341
13342# The host system.
13343host_alias=$host_alias
13344host=$host
13345host_os=$host_os
13346
13347# The build system.
13348build_alias=$build_alias
13349build=$build
13350build_os=$build_os
13351
13352# An echo program that does not interpret backslashes.
13353echo=$lt_echo
13354
13355# The archiver.
13356AR=$lt_AR
13357AR_FLAGS=$lt_AR_FLAGS
13358
13359# A C compiler.
13360LTCC=$lt_LTCC
13361
13362# LTCC compiler flags.
13363LTCFLAGS=$lt_LTCFLAGS
13364
13365# A language-specific compiler.
13366CC=$lt_compiler_CXX
13367
13368# Is the compiler the GNU C compiler?
13369with_gcc=$GCC_CXX
13370
13371# An ERE matcher.
13372EGREP=$lt_EGREP
13373
13374# The linker used to build libraries.
13375LD=$lt_LD_CXX
13376
13377# Whether we need hard or soft links.
13378LN_S=$lt_LN_S
13379
13380# A BSD-compatible nm program.
13381NM=$lt_NM
13382
13383# A symbol stripping program
13384STRIP=$lt_STRIP
13385
13386# Used to examine libraries when file_magic_cmd begins "file"
13387MAGIC_CMD=$MAGIC_CMD
13388
13389# Used on cygwin: DLL creation program.
13390DLLTOOL="$DLLTOOL"
13391
13392# Used on cygwin: object dumper.
13393OBJDUMP="$OBJDUMP"
13394
13395# Used on cygwin: assembler.
13396AS="$AS"
13397
13398# The name of the directory that contains temporary libtool files.
13399objdir=$objdir
13400
13401# How to create reloadable object files.
13402reload_flag=$lt_reload_flag
13403reload_cmds=$lt_reload_cmds
13404
13405# How to pass a linker flag through the compiler.
13406wl=$lt_lt_prog_compiler_wl_CXX
13407
13408# Object file suffix (normally "o").
13409objext="$ac_objext"
13410
13411# Old archive suffix (normally "a").
13412libext="$libext"
13413
13414# Shared library suffix (normally ".so").
13415shrext_cmds='$shrext_cmds'
13416
13417# Executable file suffix (normally "").
13418exeext="$exeext"
13419
13420# Additional compiler flags for building library objects.
13421pic_flag=$lt_lt_prog_compiler_pic_CXX
13422pic_mode=$pic_mode
13423
13424# What is the maximum length of a command?
13425max_cmd_len=$lt_cv_sys_max_cmd_len
13426
13427# Does compiler simultaneously support -c and -o options?
13428compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13429
13430# Must we lock files when doing compilation?
13431need_locks=$lt_need_locks
13432
13433# Do we need the lib prefix for modules?
13434need_lib_prefix=$need_lib_prefix
13435
13436# Do we need a version for libraries?
13437need_version=$need_version
13438
13439# Whether dlopen is supported.
13440dlopen_support=$enable_dlopen
13441
13442# Whether dlopen of programs is supported.
13443dlopen_self=$enable_dlopen_self
13444
13445# Whether dlopen of statically linked programs is supported.
13446dlopen_self_static=$enable_dlopen_self_static
13447
13448# Compiler flag to prevent dynamic linking.
13449link_static_flag=$lt_lt_prog_compiler_static_CXX
13450
13451# Compiler flag to turn off builtin functions.
13452no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13453
13454# Compiler flag to allow reflexive dlopens.
13455export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13456
13457# Compiler flag to generate shared objects directly from archives.
13458whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13459
13460# Compiler flag to generate thread-safe objects.
13461thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13462
13463# Library versioning type.
13464version_type=$version_type
13465
13466# Format of library name prefix.
13467libname_spec=$lt_libname_spec
13468
13469# List of archive names. First name is the real one, the rest are links.
13470# The last name is the one that the linker finds with -lNAME.
13471library_names_spec=$lt_library_names_spec
13472
13473# The coded name of the library, if different from the real name.
13474soname_spec=$lt_soname_spec
13475
13476# Commands used to build and install an old-style archive.
13477RANLIB=$lt_RANLIB
13478old_archive_cmds=$lt_old_archive_cmds_CXX
13479old_postinstall_cmds=$lt_old_postinstall_cmds
13480old_postuninstall_cmds=$lt_old_postuninstall_cmds
13481
13482# Create an old-style archive from a shared archive.
13483old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13484
13485# Create a temporary old-style archive to link instead of a shared archive.
13486old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13487
13488# Commands used to build and install a shared archive.
13489archive_cmds=$lt_archive_cmds_CXX
13490archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13491postinstall_cmds=$lt_postinstall_cmds
13492postuninstall_cmds=$lt_postuninstall_cmds
13493
13494# Commands used to build a loadable module (assumed same as above if empty)
13495module_cmds=$lt_module_cmds_CXX
13496module_expsym_cmds=$lt_module_expsym_cmds_CXX
13497
13498# Commands to strip libraries.
13499old_striplib=$lt_old_striplib
13500striplib=$lt_striplib
13501
13502# Dependencies to place before the objects being linked to create a
13503# shared library.
13504predep_objects=$lt_predep_objects_CXX
13505
13506# Dependencies to place after the objects being linked to create a
13507# shared library.
13508postdep_objects=$lt_postdep_objects_CXX
13509
13510# Dependencies to place before the objects being linked to create a
13511# shared library.
13512predeps=$lt_predeps_CXX
13513
13514# Dependencies to place after the objects being linked to create a
13515# shared library.
13516postdeps=$lt_postdeps_CXX
13517
13518# The library search path used internally by the compiler when linking
13519# a shared library.
13520compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13521
13522# Method to check whether dependent libraries are shared objects.
13523deplibs_check_method=$lt_deplibs_check_method
13524
13525# Command to use when deplibs_check_method == file_magic.
13526file_magic_cmd=$lt_file_magic_cmd
13527
13528# Flag that allows shared libraries with undefined symbols to be built.
13529allow_undefined_flag=$lt_allow_undefined_flag_CXX
13530
13531# Flag that forces no undefined symbols.
13532no_undefined_flag=$lt_no_undefined_flag_CXX
13533
13534# Commands used to finish a libtool library installation in a directory.
13535finish_cmds=$lt_finish_cmds
13536
13537# Same as above, but a single script fragment to be evaled but not shown.
13538finish_eval=$lt_finish_eval
13539
13540# Take the output of nm and produce a listing of raw symbols and C names.
13541global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13542
13543# Transform the output of nm in a proper C declaration
13544global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13545
13546# Transform the output of nm in a C name address pair
13547global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13548
13549# This is the shared library runtime path variable.
13550runpath_var=$runpath_var
13551
13552# This is the shared library path variable.
13553shlibpath_var=$shlibpath_var
13554
13555# Is shlibpath searched before the hard-coded library search path?
13556shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13557
13558# How to hardcode a shared library path into an executable.
13559hardcode_action=$hardcode_action_CXX
13560
13561# Whether we should hardcode library paths into libraries.
13562hardcode_into_libs=$hardcode_into_libs
13563
13564# Flag to hardcode \$libdir into a binary during linking.
13565# This must work even if \$libdir does not exist.
13566hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13567
13568# If ld is used when linking, flag to hardcode \$libdir into
13569# a binary during linking. This must work even if \$libdir does
13570# not exist.
13571hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13572
13573# Whether we need a single -rpath flag with a separated argument.
13574hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13575
13576# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13577# resulting binary.
13578hardcode_direct=$hardcode_direct_CXX
13579
13580# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13581# resulting binary.
13582hardcode_minus_L=$hardcode_minus_L_CXX
13583
13584# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13585# the resulting binary.
13586hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13587
13588# Set to yes if building a shared library automatically hardcodes DIR into the library
13589# and all subsequent libraries and executables linked against it.
13590hardcode_automatic=$hardcode_automatic_CXX
13591
13592# Variables whose values should be saved in libtool wrapper scripts and
13593# restored at relink time.
13594variables_saved_for_relink="$variables_saved_for_relink"
13595
13596# Whether libtool must link a program against all its dependency libraries.
13597link_all_deplibs=$link_all_deplibs_CXX
13598
13599# Compile-time system search path for libraries
13600sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13601
13602# Run-time system search path for libraries
13603sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13604
13605# Fix the shell variable \$srcfile for the compiler.
13606fix_srcfile_path="$fix_srcfile_path_CXX"
13607
13608# Set to yes if exported symbols are required.
13609always_export_symbols=$always_export_symbols_CXX
13610
13611# The commands to list exported symbols.
13612export_symbols_cmds=$lt_export_symbols_cmds_CXX
13613
13614# The commands to extract the exported symbol list from a shared archive.
13615extract_expsyms_cmds=$lt_extract_expsyms_cmds
13616
13617# Symbols that should not be listed in the preloaded symbols.
13618exclude_expsyms=$lt_exclude_expsyms_CXX
13619
13620# Symbols that must always be exported.
13621include_expsyms=$lt_include_expsyms_CXX
13622
13623# ### END LIBTOOL TAG CONFIG: $tagname
13624
13625__EOF__
13626
13627
13628else
13629 # If there is no Makefile yet, we rely on a make rule to execute
13630 # `config.status --recheck' to rerun these tests and create the
13631 # libtool script then.
13632 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13633 if test -f "$ltmain_in"; then
13634 test -f Makefile && make "$ltmain"
13635 fi
13636fi
13637
13638
13639ac_ext=c
13640ac_cpp='$CPP $CPPFLAGS'
13641ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13642ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13643ac_compiler_gnu=$ac_cv_c_compiler_gnu
13644
13645CC=$lt_save_CC
13646LDCXX=$LD
13647LD=$lt_save_LD
13648GCC=$lt_save_GCC
13649with_gnu_ldcxx=$with_gnu_ld
13650with_gnu_ld=$lt_save_with_gnu_ld
13651lt_cv_path_LDCXX=$lt_cv_path_LD
13652lt_cv_path_LD=$lt_save_path_LD
13653lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13654lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13655
13656 else
13657 tagname=""
13658 fi
13659 ;;
13660
13661 F77)
13662 if test -n "$F77" && test "X$F77" != "Xno"; then
13663
13664ac_ext=f
13665ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13666ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13667ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13668
13669
13670archive_cmds_need_lc_F77=no
13671allow_undefined_flag_F77=
13672always_export_symbols_F77=no
13673archive_expsym_cmds_F77=
13674export_dynamic_flag_spec_F77=
13675hardcode_direct_F77=no
13676hardcode_libdir_flag_spec_F77=
13677hardcode_libdir_flag_spec_ld_F77=
13678hardcode_libdir_separator_F77=
13679hardcode_minus_L_F77=no
13680hardcode_automatic_F77=no
13681module_cmds_F77=
13682module_expsym_cmds_F77=
13683link_all_deplibs_F77=unknown
13684old_archive_cmds_F77=$old_archive_cmds
13685no_undefined_flag_F77=
13686whole_archive_flag_spec_F77=
13687enable_shared_with_static_runtimes_F77=no
13688
13689# Source file extension for f77 test sources.
13690ac_ext=f
13691
13692# Object file extension for compiled f77 test sources.
13693objext=o
13694objext_F77=$objext
13695
13696# Code to be used in simple compile tests
13697lt_simple_compile_test_code=" subroutine t\n return\n end\n"
13698
13699# Code to be used in simple link tests
13700lt_simple_link_test_code=" program t\n end\n"
13701
13702# ltmain only uses $CC for tagged configurations so make sure $CC is set.
13703
13704# If no C compiler was specified, use CC.
13705LTCC=${LTCC-"$CC"}
13706
13707# If no C compiler flags were specified, use CFLAGS.
13708LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13709
13710# Allow CC to be a program name with arguments.
13711compiler=$CC
13712
13713
13714# save warnings/boilerplate of simple test code
13715ac_outfile=conftest.$ac_objext
13716printf "$lt_simple_compile_test_code" >conftest.$ac_ext
13717eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13718_lt_compiler_boilerplate=`cat conftest.err`
13719$rm conftest*
13720
13721ac_outfile=conftest.$ac_objext
13722printf "$lt_simple_link_test_code" >conftest.$ac_ext
13723eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13724_lt_linker_boilerplate=`cat conftest.err`
13725$rm conftest*
13726
13727
13728# Allow CC to be a program name with arguments.
13729lt_save_CC="$CC"
13730CC=${F77-"f77"}
13731compiler=$CC
13732compiler_F77=$CC
13733for cc_temp in $compiler""; do
13734 case $cc_temp in
13735 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13736 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13737 \-*) ;;
13738 *) break;;
13739 esac
13740done
13741cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13742
13743
13744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13745$as_echo_n "checking if libtool supports shared libraries... " >&6; }
13746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13747$as_echo "$can_build_shared" >&6; }
13748
13749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13750$as_echo_n "checking whether to build shared libraries... " >&6; }
13751test "$can_build_shared" = "no" && enable_shared=no
13752
13753# On AIX, shared libraries and static libraries use the same namespace, and
13754# are all built from PIC.
13755case $host_os in
13756aix3*)
13757 test "$enable_shared" = yes && enable_static=no
13758 if test -n "$RANLIB"; then
13759 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13760 postinstall_cmds='$RANLIB $lib'
13761 fi
13762 ;;
13763aix4* | aix5*)
13764 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13765 test "$enable_shared" = yes && enable_static=no
13766 fi
13767 ;;
13768esac
13769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13770$as_echo "$enable_shared" >&6; }
13771
13772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13773$as_echo_n "checking whether to build static libraries... " >&6; }
13774# Make sure either enable_shared or enable_static is yes.
13775test "$enable_shared" = yes || enable_static=yes
13776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13777$as_echo "$enable_static" >&6; }
13778
13779GCC_F77="$G77"
13780LD_F77="$LD"
13781
13782lt_prog_compiler_wl_F77=
13783lt_prog_compiler_pic_F77=
13784lt_prog_compiler_static_F77=
13785
13786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13787$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13788
13789 if test "$GCC" = yes; then
13790 lt_prog_compiler_wl_F77='-Wl,'
13791 lt_prog_compiler_static_F77='-static'
13792
13793 case $host_os in
13794 aix*)
13795 # All AIX code is PIC.
13796 if test "$host_cpu" = ia64; then
13797 # AIX 5 now supports IA64 processor
13798 lt_prog_compiler_static_F77='-Bstatic'
13799 fi
13800 ;;
13801
13802 amigaos*)
13803 # FIXME: we need at least 68020 code to build shared libraries, but
13804 # adding the `-m68020' flag to GCC prevents building anything better,
13805 # like `-m68040'.
13806 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13807 ;;
13808
13809 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13810 # PIC is the default for these OSes.
13811 ;;
13812
13813 mingw* | pw32* | os2*)
13814 # This hack is so that the source file can tell whether it is being
13815 # built for inclusion in a dll (and should export symbols for example).
13816 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13817 ;;
13818
13819 darwin* | rhapsody*)
13820 # PIC is the default on this platform
13821 # Common symbols not allowed in MH_DYLIB files
13822 lt_prog_compiler_pic_F77='-fno-common'
13823 ;;
13824
13825 interix3*)
13826 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13827 # Instead, we relocate shared libraries at runtime.
13828 ;;
13829
13830 msdosdjgpp*)
13831 # Just because we use GCC doesn't mean we suddenly get shared libraries
13832 # on systems that don't support them.
13833 lt_prog_compiler_can_build_shared_F77=no
13834 enable_shared=no
13835 ;;
13836
13837 sysv4*MP*)
13838 if test -d /usr/nec; then
13839 lt_prog_compiler_pic_F77=-Kconform_pic
13840 fi
13841 ;;
13842
13843 hpux*)
13844 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13845 # not for PA HP-UX.
13846 case $host_cpu in
13847 hppa*64*|ia64*)
13848 # +Z the default
13849 ;;
13850 *)
13851 lt_prog_compiler_pic_F77='-fPIC'
13852 ;;
13853 esac
13854 ;;
13855
13856 *)
13857 lt_prog_compiler_pic_F77='-fPIC'
13858 ;;
13859 esac
13860 else
13861 # PORTME Check for flag to pass linker flags through the system compiler.
13862 case $host_os in
13863 aix*)
13864 lt_prog_compiler_wl_F77='-Wl,'
13865 if test "$host_cpu" = ia64; then
13866 # AIX 5 now supports IA64 processor
13867 lt_prog_compiler_static_F77='-Bstatic'
13868 else
13869 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13870 fi
13871 ;;
13872 darwin*)
13873 # PIC is the default on this platform
13874 # Common symbols not allowed in MH_DYLIB files
13875 case $cc_basename in
13876 xlc*)
13877 lt_prog_compiler_pic_F77='-qnocommon'
13878 lt_prog_compiler_wl_F77='-Wl,'
13879 ;;
13880 esac
13881 ;;
13882
13883 mingw* | pw32* | os2*)
13884 # This hack is so that the source file can tell whether it is being
13885 # built for inclusion in a dll (and should export symbols for example).
13886 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13887 ;;
13888
13889 hpux9* | hpux10* | hpux11*)
13890 lt_prog_compiler_wl_F77='-Wl,'
13891 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13892 # not for PA HP-UX.
13893 case $host_cpu in
13894 hppa*64*|ia64*)
13895 # +Z the default
13896 ;;
13897 *)
13898 lt_prog_compiler_pic_F77='+Z'
13899 ;;
13900 esac
13901 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13902 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13903 ;;
13904
13905 irix5* | irix6* | nonstopux*)
13906 lt_prog_compiler_wl_F77='-Wl,'
13907 # PIC (with -KPIC) is the default.
13908 lt_prog_compiler_static_F77='-non_shared'
13909 ;;
13910
13911 newsos6)
13912 lt_prog_compiler_pic_F77='-KPIC'
13913 lt_prog_compiler_static_F77='-Bstatic'
13914 ;;
13915
13916 linux*)
13917 case $cc_basename in
13918 icc* | ecc*)
13919 lt_prog_compiler_wl_F77='-Wl,'
13920 lt_prog_compiler_pic_F77='-KPIC'
13921 lt_prog_compiler_static_F77='-static'
13922 ;;
13923 pgcc* | pgf77* | pgf90* | pgf95*)
13924 # Portland Group compilers (*not* the Pentium gcc compiler,
13925 # which looks to be a dead project)
13926 lt_prog_compiler_wl_F77='-Wl,'
13927 lt_prog_compiler_pic_F77='-fpic'
13928 lt_prog_compiler_static_F77='-Bstatic'
13929 ;;
13930 ccc*)
13931 lt_prog_compiler_wl_F77='-Wl,'
13932 # All Alpha code is PIC.
13933 lt_prog_compiler_static_F77='-non_shared'
13934 ;;
13935 esac
13936 ;;
13937
13938 osf3* | osf4* | osf5*)
13939 lt_prog_compiler_wl_F77='-Wl,'
13940 # All OSF/1 code is PIC.
13941 lt_prog_compiler_static_F77='-non_shared'
13942 ;;
13943
13944 solaris*)
13945 lt_prog_compiler_pic_F77='-KPIC'
13946 lt_prog_compiler_static_F77='-Bstatic'
13947 case $cc_basename in
13948 f77* | f90* | f95*)
13949 lt_prog_compiler_wl_F77='-Qoption ld ';;
13950 *)
13951 lt_prog_compiler_wl_F77='-Wl,';;
13952 esac
13953 ;;
13954
13955 sunos4*)
13956 lt_prog_compiler_wl_F77='-Qoption ld '
13957 lt_prog_compiler_pic_F77='-PIC'
13958 lt_prog_compiler_static_F77='-Bstatic'
13959 ;;
13960
13961 sysv4 | sysv4.2uw2* | sysv4.3*)
13962 lt_prog_compiler_wl_F77='-Wl,'
13963 lt_prog_compiler_pic_F77='-KPIC'
13964 lt_prog_compiler_static_F77='-Bstatic'
13965 ;;
13966
13967 sysv4*MP*)
13968 if test -d /usr/nec ;then
13969 lt_prog_compiler_pic_F77='-Kconform_pic'
13970 lt_prog_compiler_static_F77='-Bstatic'
13971 fi
13972 ;;
13973
13974 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13975 lt_prog_compiler_wl_F77='-Wl,'
13976 lt_prog_compiler_pic_F77='-KPIC'
13977 lt_prog_compiler_static_F77='-Bstatic'
13978 ;;
13979
13980 unicos*)
13981 lt_prog_compiler_wl_F77='-Wl,'
13982 lt_prog_compiler_can_build_shared_F77=no
13983 ;;
13984
13985 uts4*)
13986 lt_prog_compiler_pic_F77='-pic'
13987 lt_prog_compiler_static_F77='-Bstatic'
13988 ;;
13989
13990 *)
13991 lt_prog_compiler_can_build_shared_F77=no
13992 ;;
13993 esac
13994 fi
13995
13996{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
13997$as_echo "$lt_prog_compiler_pic_F77" >&6; }
13998
13999#
14000# Check to make sure the PIC flag actually works.
14001#
14002if test -n "$lt_prog_compiler_pic_F77"; then
14003
14004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14005$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14006if ${lt_prog_compiler_pic_works_F77+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008else
14009 lt_prog_compiler_pic_works_F77=no
14010 ac_outfile=conftest.$ac_objext
14011 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14012 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14013 # Insert the option either (1) after the last *FLAGS variable, or
14014 # (2) before a word containing "conftest.", or (3) at the end.
14015 # Note that $ac_compile itself does not contain backslashes and begins
14016 # with a dollar sign (not a hyphen), so the echo should work correctly.
14017 # The option is referenced via a variable to avoid confusing sed.
14018 lt_compile=`echo "$ac_compile" | $SED \
14019 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14020 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14021 -e 's:$: $lt_compiler_flag:'`
14022 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14023 (eval "$lt_compile" 2>conftest.err)
14024 ac_status=$?
14025 cat conftest.err >&5
14026 echo "$as_me:__oline__: \$? = $ac_status" >&5
14027 if (exit $ac_status) && test -s "$ac_outfile"; then
14028 # The compiler can only warn and ignore the option if not recognized
14029 # So say no if there are warnings other than the usual output.
14030 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14031 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14032 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14033 lt_prog_compiler_pic_works_F77=yes
14034 fi
14035 fi
14036 $rm conftest*
14037
14038fi
14039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_F77" >&5
14040$as_echo "$lt_prog_compiler_pic_works_F77" >&6; }
14041
14042if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
14043 case $lt_prog_compiler_pic_F77 in
14044 "" | " "*) ;;
14045 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14046 esac
14047else
14048 lt_prog_compiler_pic_F77=
14049 lt_prog_compiler_can_build_shared_F77=no
14050fi
14051
14052fi
14053case $host_os in
14054 # For platforms which do not support PIC, -DPIC is meaningless:
14055 *djgpp*)
14056 lt_prog_compiler_pic_F77=
14057 ;;
14058 *)
14059 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14060 ;;
14061esac
14062
14063#
14064# Check to make sure the static flag actually works.
14065#
14066wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14068$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14069if ${lt_prog_compiler_static_works_F77+:} false; then :
14070 $as_echo_n "(cached) " >&6
14071else
14072 lt_prog_compiler_static_works_F77=no
14073 save_LDFLAGS="$LDFLAGS"
14074 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14075 printf "$lt_simple_link_test_code" > conftest.$ac_ext
14076 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14077 # The linker can only warn and ignore the option if not recognized
14078 # So say no if there are warnings
14079 if test -s conftest.err; then
14080 # Append any errors to the config.log.
14081 cat conftest.err 1>&5
14082 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14083 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14084 if diff conftest.exp conftest.er2 >/dev/null; then
14085 lt_prog_compiler_static_works_F77=yes
14086 fi
14087 else
14088 lt_prog_compiler_static_works_F77=yes
14089 fi
14090 fi
14091 $rm conftest*
14092 LDFLAGS="$save_LDFLAGS"
14093
14094fi
14095{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_F77" >&5
14096$as_echo "$lt_prog_compiler_static_works_F77" >&6; }
14097
14098if test x"$lt_prog_compiler_static_works_F77" = xyes; then
14099 :
14100else
14101 lt_prog_compiler_static_F77=
14102fi
14103
14104
14105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14106$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14107if ${lt_cv_prog_compiler_c_o_F77+:} false; then :
14108 $as_echo_n "(cached) " >&6
14109else
14110 lt_cv_prog_compiler_c_o_F77=no
14111 $rm -r conftest 2>/dev/null
14112 mkdir conftest
14113 cd conftest
14114 mkdir out
14115 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
14116
14117 lt_compiler_flag="-o out/conftest2.$ac_objext"
14118 # Insert the option either (1) after the last *FLAGS variable, or
14119 # (2) before a word containing "conftest.", or (3) at the end.
14120 # Note that $ac_compile itself does not contain backslashes and begins
14121 # with a dollar sign (not a hyphen), so the echo should work correctly.
14122 lt_compile=`echo "$ac_compile" | $SED \
14123 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14124 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14125 -e 's:$: $lt_compiler_flag:'`
14126 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
14127 (eval "$lt_compile" 2>out/conftest.err)
14128 ac_status=$?
14129 cat out/conftest.err >&5
14130 echo "$as_me:__oline__: \$? = $ac_status" >&5
14131 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14132 then
14133 # The compiler can only warn and ignore the option if not recognized
14134 # So say no if there are warnings
14135 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14136 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14137 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14138 lt_cv_prog_compiler_c_o_F77=yes
14139 fi
14140 fi
14141 chmod u+w . 2>&5
14142 $rm conftest*
14143 # SGI C++ compiler will create directory out/ii_files/ for
14144 # template instantiation
14145 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14146 $rm out/* && rmdir out
14147 cd ..
14148 rmdir conftest
14149 $rm conftest*
14150
14151fi
14152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
14153$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14154
14155
14156hard_links="nottested"
14157if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14158 # do not overwrite the value of need_locks provided by the user
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14160$as_echo_n "checking if we can lock with hard links... " >&6; }
14161 hard_links=yes
14162 $rm conftest*
14163 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14164 touch conftest.a
14165 ln conftest.a conftest.b 2>&5 || hard_links=no
14166 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14168$as_echo "$hard_links" >&6; }
14169 if test "$hard_links" = no; then
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14171$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14172 need_locks=warn
14173 fi
14174else
14175 need_locks=no
14176fi
14177
14178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14179$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14180
14181 runpath_var=
14182 allow_undefined_flag_F77=
14183 enable_shared_with_static_runtimes_F77=no
14184 archive_cmds_F77=
14185 archive_expsym_cmds_F77=
14186 old_archive_From_new_cmds_F77=
14187 old_archive_from_expsyms_cmds_F77=
14188 export_dynamic_flag_spec_F77=
14189 whole_archive_flag_spec_F77=
14190 thread_safe_flag_spec_F77=
14191 hardcode_libdir_flag_spec_F77=
14192 hardcode_libdir_flag_spec_ld_F77=
14193 hardcode_libdir_separator_F77=
14194 hardcode_direct_F77=no
14195 hardcode_minus_L_F77=no
14196 hardcode_shlibpath_var_F77=unsupported
14197 link_all_deplibs_F77=unknown
14198 hardcode_automatic_F77=no
14199 module_cmds_F77=
14200 module_expsym_cmds_F77=
14201 always_export_symbols_F77=no
14202 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14203 # include_expsyms should be a list of space-separated symbols to be *always*
14204 # included in the symbol list
14205 include_expsyms_F77=
14206 # exclude_expsyms can be an extended regexp of symbols to exclude
14207 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14208 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14209 # as well as any symbol that contains `d'.
14210 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
14211 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14212 # platforms (ab)use it in PIC code, but their linkers get confused if
14213 # the symbol is explicitly referenced. Since portable code cannot
14214 # rely on this symbol name, it's probably fine to never include it in
14215 # preloaded symbol tables.
14216 extract_expsyms_cmds=
14217 # Just being paranoid about ensuring that cc_basename is set.
14218 for cc_temp in $compiler""; do
14219 case $cc_temp in
14220 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14221 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14222 \-*) ;;
14223 *) break;;
14224 esac
14225done
14226cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14227
14228 case $host_os in
14229 cygwin* | mingw* | pw32*)
14230 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14231 # When not using gcc, we currently assume that we are using
14232 # Microsoft Visual C++.
14233 if test "$GCC" != yes; then
14234 with_gnu_ld=no
14235 fi
14236 ;;
14237 interix*)
14238 # we just hope/assume this is gcc and not c89 (= MSVC++)
14239 with_gnu_ld=yes
14240 ;;
14241 openbsd*)
14242 with_gnu_ld=no
14243 ;;
14244 esac
14245
14246 ld_shlibs_F77=yes
14247 if test "$with_gnu_ld" = yes; then
14248 # If archive_cmds runs LD, not CC, wlarc should be empty
14249 wlarc='${wl}'
14250
14251 # Set some defaults for GNU ld with shared library support. These
14252 # are reset later if shared libraries are not supported. Putting them
14253 # here allows them to be overridden if necessary.
14254 runpath_var=LD_RUN_PATH
14255 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14256 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14257 # ancient GNU ld didn't support --whole-archive et. al.
14258 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14259 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14260 else
14261 whole_archive_flag_spec_F77=
14262 fi
14263 supports_anon_versioning=no
14264 case `$LD -v 2>/dev/null` in
14265 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14266 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14267 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14268 *\ 2.11.*) ;; # other 2.11 versions
14269 *) supports_anon_versioning=yes ;;
14270 esac
14271
14272 # See if GNU ld supports shared libraries.
14273 case $host_os in
14274 aix3* | aix4* | aix5*)
14275 # On AIX/PPC, the GNU linker is very broken
14276 if test "$host_cpu" != ia64; then
14277 ld_shlibs_F77=no
14278 cat <<EOF 1>&2
14279
14280*** Warning: the GNU linker, at least up to release 2.9.1, is reported
14281*** to be unable to reliably create shared libraries on AIX.
14282*** Therefore, libtool is disabling shared libraries support. If you
14283*** really care for shared libraries, you may want to modify your PATH
14284*** so that a non-GNU linker is found, and then restart.
14285
14286EOF
14287 fi
14288 ;;
14289
14290 amigaos*)
14291 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)'
14292 hardcode_libdir_flag_spec_F77='-L$libdir'
14293 hardcode_minus_L_F77=yes
14294
14295 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14296 # that the semantics of dynamic libraries on AmigaOS, at least up
14297 # to version 4, is to share data among multiple programs linked
14298 # with the same dynamic library. Since this doesn't match the
14299 # behavior of shared libraries on other platforms, we can't use
14300 # them.
14301 ld_shlibs_F77=no
14302 ;;
14303
14304 beos*)
14305 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14306 allow_undefined_flag_F77=unsupported
14307 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14308 # support --undefined. This deserves some investigation. FIXME
14309 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14310 else
14311 ld_shlibs_F77=no
14312 fi
14313 ;;
14314
14315 cygwin* | mingw* | pw32*)
14316 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14317 # as there is no search path for DLLs.
14318 hardcode_libdir_flag_spec_F77='-L$libdir'
14319 allow_undefined_flag_F77=unsupported
14320 always_export_symbols_F77=no
14321 enable_shared_with_static_runtimes_F77=yes
14322 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
14323
14324 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14325 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14326 # If the export-symbols file already is a .def file (1st line
14327 # is EXPORTS), use it as is; otherwise, prepend...
14328 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14329 cp $export_symbols $output_objdir/$soname.def;
14330 else
14331 echo EXPORTS > $output_objdir/$soname.def;
14332 cat $export_symbols >> $output_objdir/$soname.def;
14333 fi~
14334 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14335 else
14336 ld_shlibs_F77=no
14337 fi
14338 ;;
14339
14340 interix3*)
14341 hardcode_direct_F77=no
14342 hardcode_shlibpath_var_F77=no
14343 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14344 export_dynamic_flag_spec_F77='${wl}-E'
14345 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14346 # Instead, shared libraries are loaded at an image base (0x10000000 by
14347 # default) and relocated if they conflict, which is a slow very memory
14348 # consuming and fragmenting process. To avoid this, we pick a random,
14349 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14350 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14351 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'
14352 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'
14353 ;;
14354
14355 linux*)
14356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14357 tmp_addflag=
14358 case $cc_basename,$host_cpu in
14359 pgcc*) # Portland Group C compiler
14360 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'
14361 tmp_addflag=' $pic_flag'
14362 ;;
14363 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14364 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'
14365 tmp_addflag=' $pic_flag -Mnomain' ;;
14366 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14367 tmp_addflag=' -i_dynamic' ;;
14368 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14369 tmp_addflag=' -i_dynamic -nofor_main' ;;
14370 ifc* | ifort*) # Intel Fortran compiler
14371 tmp_addflag=' -nofor_main' ;;
14372 esac
14373 archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14374
14375 if test $supports_anon_versioning = yes; then
14376 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14377 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14378 $echo "local: *; };" >> $output_objdir/$libname.ver~
14379 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14380 fi
14381 else
14382 ld_shlibs_F77=no
14383 fi
14384 ;;
14385
14386 netbsd*)
14387 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14388 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14389 wlarc=
14390 else
14391 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14392 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14393 fi
14394 ;;
14395
14396 solaris*)
14397 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14398 ld_shlibs_F77=no
14399 cat <<EOF 1>&2
14400
14401*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14402*** create shared libraries on Solaris systems. Therefore, libtool
14403*** is disabling shared libraries support. We urge you to upgrade GNU
14404*** binutils to release 2.9.1 or newer. Another option is to modify
14405*** your PATH or compiler configuration so that the native linker is
14406*** used, and then restart.
14407
14408EOF
14409 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14410 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14411 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14412 else
14413 ld_shlibs_F77=no
14414 fi
14415 ;;
14416
14417 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14418 case `$LD -v 2>&1` in
14419 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14420 ld_shlibs_F77=no
14421 cat <<_LT_EOF 1>&2
14422
14423*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14424*** reliably create shared libraries on SCO systems. Therefore, libtool
14425*** is disabling shared libraries support. We urge you to upgrade GNU
14426*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14427*** your PATH or compiler configuration so that the native linker is
14428*** used, and then restart.
14429
14430_LT_EOF
14431 ;;
14432 *)
14433 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14434 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14435 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14436 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14437 else
14438 ld_shlibs_F77=no
14439 fi
14440 ;;
14441 esac
14442 ;;
14443
14444 sunos4*)
14445 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14446 wlarc=
14447 hardcode_direct_F77=yes
14448 hardcode_shlibpath_var_F77=no
14449 ;;
14450
14451 *)
14452 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14453 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14454 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14455 else
14456 ld_shlibs_F77=no
14457 fi
14458 ;;
14459 esac
14460
14461 if test "$ld_shlibs_F77" = no; then
14462 runpath_var=
14463 hardcode_libdir_flag_spec_F77=
14464 export_dynamic_flag_spec_F77=
14465 whole_archive_flag_spec_F77=
14466 fi
14467 else
14468 # PORTME fill in a description of your system's linker (not GNU ld)
14469 case $host_os in
14470 aix3*)
14471 allow_undefined_flag_F77=unsupported
14472 always_export_symbols_F77=yes
14473 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'
14474 # Note: this linker hardcodes the directories in LIBPATH if there
14475 # are no directories specified by -L.
14476 hardcode_minus_L_F77=yes
14477 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14478 # Neither direct hardcoding nor static linking is supported with a
14479 # broken collect2.
14480 hardcode_direct_F77=unsupported
14481 fi
14482 ;;
14483
14484 aix4* | aix5*)
14485 if test "$host_cpu" = ia64; then
14486 # On IA64, the linker does run time linking by default, so we don't
14487 # have to do anything special.
14488 aix_use_runtimelinking=no
14489 exp_sym_flag='-Bexport'
14490 no_entry_flag=""
14491 else
14492 # If we're using GNU nm, then we don't want the "-C" option.
14493 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14494 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14495 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'
14496 else
14497 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'
14498 fi
14499 aix_use_runtimelinking=no
14500
14501 # Test if we are trying to use run time linking or normal
14502 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14503 # need to do runtime linking.
14504 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
14505 for ld_flag in $LDFLAGS; do
14506 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14507 aix_use_runtimelinking=yes
14508 break
14509 fi
14510 done
14511 ;;
14512 esac
14513
14514 exp_sym_flag='-bexport'
14515 no_entry_flag='-bnoentry'
14516 fi
14517
14518 # When large executables or shared objects are built, AIX ld can
14519 # have problems creating the table of contents. If linking a library
14520 # or program results in "error TOC overflow" add -mminimal-toc to
14521 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14522 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14523
14524 archive_cmds_F77=''
14525 hardcode_direct_F77=yes
14526 hardcode_libdir_separator_F77=':'
14527 link_all_deplibs_F77=yes
14528
14529 if test "$GCC" = yes; then
14530 case $host_os in aix4.[012]|aix4.[012].*)
14531 # We only want to do this on AIX 4.2 and lower, the check
14532 # below for broken collect2 doesn't work under 4.3+
14533 collect2name=`${CC} -print-prog-name=collect2`
14534 if test -f "$collect2name" && \
14535 strings "$collect2name" | grep resolve_lib_name >/dev/null
14536 then
14537 # We have reworked collect2
14538 hardcode_direct_F77=yes
14539 else
14540 # We have old collect2
14541 hardcode_direct_F77=unsupported
14542 # It fails to find uninstalled libraries when the uninstalled
14543 # path is not listed in the libpath. Setting hardcode_minus_L
14544 # to unsupported forces relinking
14545 hardcode_minus_L_F77=yes
14546 hardcode_libdir_flag_spec_F77='-L$libdir'
14547 hardcode_libdir_separator_F77=
14548 fi
14549 ;;
14550 esac
14551 shared_flag='-shared'
14552 if test "$aix_use_runtimelinking" = yes; then
14553 shared_flag="$shared_flag "'${wl}-G'
14554 fi
14555 else
14556 # not using gcc
14557 if test "$host_cpu" = ia64; then
14558 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14559 # chokes on -Wl,-G. The following line is correct:
14560 shared_flag='-G'
14561 else
14562 if test "$aix_use_runtimelinking" = yes; then
14563 shared_flag='${wl}-G'
14564 else
14565 shared_flag='${wl}-bM:SRE'
14566 fi
14567 fi
14568 fi
14569
14570 # It seems that -bexpall does not export symbols beginning with
14571 # underscore (_), so it is better to generate a list of symbols to export.
14572 always_export_symbols_F77=yes
14573 if test "$aix_use_runtimelinking" = yes; then
14574 # Warning - without using the other runtime loading flags (-brtl),
14575 # -berok will link without error, but may produce a broken library.
14576 allow_undefined_flag_F77='-berok'
14577 # Determine the default libpath from the value encoded in an empty executable.
14578 cat > conftest.$ac_ext <<_ACEOF
14579 program main
14580
14581 end
14582_ACEOF
14583if ac_fn_f77_try_link "$LINENO"; then :
14584
14585aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14586}'`
14587# Check for a 64-bit object if we didn't find anything.
14588if 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; }
14589}'`; fi
14590fi
14591rm -f core conftest.err conftest.$ac_objext \
14592 conftest$ac_exeext conftest.$ac_ext
14593if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14594
14595 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14596 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"
14597 else
14598 if test "$host_cpu" = ia64; then
14599 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14600 allow_undefined_flag_F77="-z nodefs"
14601 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"
14602 else
14603 # Determine the default libpath from the value encoded in an empty executable.
14604 cat > conftest.$ac_ext <<_ACEOF
14605 program main
14606
14607 end
14608_ACEOF
14609if ac_fn_f77_try_link "$LINENO"; then :
14610
14611aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
14612}'`
14613# Check for a 64-bit object if we didn't find anything.
14614if 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; }
14615}'`; fi
14616fi
14617rm -f core conftest.err conftest.$ac_objext \
14618 conftest$ac_exeext conftest.$ac_ext
14619if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14620
14621 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14622 # Warning - without using the other run time loading flags,
14623 # -berok will link without error, but may produce a broken library.
14624 no_undefined_flag_F77=' ${wl}-bernotok'
14625 allow_undefined_flag_F77=' ${wl}-berok'
14626 # Exported symbols can be pulled into shared objects from archives
14627 whole_archive_flag_spec_F77='$convenience'
14628 archive_cmds_need_lc_F77=yes
14629 # This is similar to how AIX traditionally builds its shared libraries.
14630 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'
14631 fi
14632 fi
14633 ;;
14634
14635 amigaos*)
14636 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)'
14637 hardcode_libdir_flag_spec_F77='-L$libdir'
14638 hardcode_minus_L_F77=yes
14639 # see comment about different semantics on the GNU ld section
14640 ld_shlibs_F77=no
14641 ;;
14642
14643 bsdi[45]*)
14644 export_dynamic_flag_spec_F77=-rdynamic
14645 ;;
14646
14647 cygwin* | mingw* | pw32*)
14648 # When not using gcc, we currently assume that we are using
14649 # Microsoft Visual C++.
14650 # hardcode_libdir_flag_spec is actually meaningless, as there is
14651 # no search path for DLLs.
14652 hardcode_libdir_flag_spec_F77=' '
14653 allow_undefined_flag_F77=unsupported
14654 # Tell ltmain to make .lib files, not .a files.
14655 libext=lib
14656 # Tell ltmain to make .dll files, not .so files.
14657 shrext_cmds=".dll"
14658 # FIXME: Setting linknames here is a bad hack.
14659 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14660 # The linker will automatically build a .lib file if we build a DLL.
14661 old_archive_From_new_cmds_F77='true'
14662 # FIXME: Should let the user specify the lib program.
14663 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
14664 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14665 enable_shared_with_static_runtimes_F77=yes
14666 ;;
14667
14668 darwin* | rhapsody*)
14669 case $host_os in
14670 rhapsody* | darwin1.[012])
14671 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14672 ;;
14673 *) # Darwin 1.3 on
14674 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14675 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14676 else
14677 case ${MACOSX_DEPLOYMENT_TARGET} in
14678 10.[012])
14679 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14680 ;;
14681 10.*)
14682 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14683 ;;
14684 esac
14685 fi
14686 ;;
14687 esac
14688 archive_cmds_need_lc_F77=no
14689 hardcode_direct_F77=no
14690 hardcode_automatic_F77=yes
14691 hardcode_shlibpath_var_F77=unsupported
14692 whole_archive_flag_spec_F77=''
14693 link_all_deplibs_F77=yes
14694 if test "$GCC" = yes ; then
14695 output_verbose_link_cmd='echo'
14696 archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
14697 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14698 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14699 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}'
14700 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}'
14701 else
14702 case $cc_basename in
14703 xlc*)
14704 output_verbose_link_cmd='echo'
14705 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
14706 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14707 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14708 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}'
14709 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}'
14710 ;;
14711 *)
14712 ld_shlibs_F77=no
14713 ;;
14714 esac
14715 fi
14716 ;;
14717
14718 dgux*)
14719 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14720 hardcode_libdir_flag_spec_F77='-L$libdir'
14721 hardcode_shlibpath_var_F77=no
14722 ;;
14723
14724 freebsd1*)
14725 ld_shlibs_F77=no
14726 ;;
14727
14728 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14729 # support. Future versions do this automatically, but an explicit c++rt0.o
14730 # does not break anything, and helps significantly (at the cost of a little
14731 # extra space).
14732 freebsd2.2*)
14733 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14734 hardcode_libdir_flag_spec_F77='-R$libdir'
14735 hardcode_direct_F77=yes
14736 hardcode_shlibpath_var_F77=no
14737 ;;
14738
14739 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14740 freebsd2*)
14741 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14742 hardcode_direct_F77=yes
14743 hardcode_minus_L_F77=yes
14744 hardcode_shlibpath_var_F77=no
14745 ;;
14746
14747 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14748 freebsd* | kfreebsd*-gnu | dragonfly*)
14749 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14750 hardcode_libdir_flag_spec_F77='-R$libdir'
14751 hardcode_direct_F77=yes
14752 hardcode_shlibpath_var_F77=no
14753 ;;
14754
14755 hpux9*)
14756 if test "$GCC" = yes; then
14757 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'
14758 else
14759 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'
14760 fi
14761 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14762 hardcode_libdir_separator_F77=:
14763 hardcode_direct_F77=yes
14764
14765 # hardcode_minus_L: Not really in the search PATH,
14766 # but as the default location of the library.
14767 hardcode_minus_L_F77=yes
14768 export_dynamic_flag_spec_F77='${wl}-E'
14769 ;;
14770
14771 hpux10*)
14772 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14773 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14774 else
14775 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14776 fi
14777 if test "$with_gnu_ld" = no; then
14778 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14779 hardcode_libdir_separator_F77=:
14780
14781 hardcode_direct_F77=yes
14782 export_dynamic_flag_spec_F77='${wl}-E'
14783
14784 # hardcode_minus_L: Not really in the search PATH,
14785 # but as the default location of the library.
14786 hardcode_minus_L_F77=yes
14787 fi
14788 ;;
14789
14790 hpux11*)
14791 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14792 case $host_cpu in
14793 hppa*64*)
14794 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14795 ;;
14796 ia64*)
14797 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14798 ;;
14799 *)
14800 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14801 ;;
14802 esac
14803 else
14804 case $host_cpu in
14805 hppa*64*)
14806 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14807 ;;
14808 ia64*)
14809 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14810 ;;
14811 *)
14812 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14813 ;;
14814 esac
14815 fi
14816 if test "$with_gnu_ld" = no; then
14817 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14818 hardcode_libdir_separator_F77=:
14819
14820 case $host_cpu in
14821 hppa*64*|ia64*)
14822 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14823 hardcode_direct_F77=no
14824 hardcode_shlibpath_var_F77=no
14825 ;;
14826 *)
14827 hardcode_direct_F77=yes
14828 export_dynamic_flag_spec_F77='${wl}-E'
14829
14830 # hardcode_minus_L: Not really in the search PATH,
14831 # but as the default location of the library.
14832 hardcode_minus_L_F77=yes
14833 ;;
14834 esac
14835 fi
14836 ;;
14837
14838 irix5* | irix6* | nonstopux*)
14839 if test "$GCC" = yes; then
14840 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'
14841 else
14842 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'
14843 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14844 fi
14845 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14846 hardcode_libdir_separator_F77=:
14847 link_all_deplibs_F77=yes
14848 ;;
14849
14850 netbsd*)
14851 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14852 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14853 else
14854 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14855 fi
14856 hardcode_libdir_flag_spec_F77='-R$libdir'
14857 hardcode_direct_F77=yes
14858 hardcode_shlibpath_var_F77=no
14859 ;;
14860
14861 newsos6)
14862 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14863 hardcode_direct_F77=yes
14864 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14865 hardcode_libdir_separator_F77=:
14866 hardcode_shlibpath_var_F77=no
14867 ;;
14868
14869 openbsd*)
14870 hardcode_direct_F77=yes
14871 hardcode_shlibpath_var_F77=no
14872 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14873 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14874 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14875 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14876 export_dynamic_flag_spec_F77='${wl}-E'
14877 else
14878 case $host_os in
14879 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14880 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14881 hardcode_libdir_flag_spec_F77='-R$libdir'
14882 ;;
14883 *)
14884 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14885 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14886 ;;
14887 esac
14888 fi
14889 ;;
14890
14891 os2*)
14892 hardcode_libdir_flag_spec_F77='-L$libdir'
14893 hardcode_minus_L_F77=yes
14894 allow_undefined_flag_F77=unsupported
14895 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'
14896 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14897 ;;
14898
14899 osf3*)
14900 if test "$GCC" = yes; then
14901 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14902 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'
14903 else
14904 allow_undefined_flag_F77=' -expect_unresolved \*'
14905 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'
14906 fi
14907 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14908 hardcode_libdir_separator_F77=:
14909 ;;
14910
14911 osf4* | osf5*) # as osf3* with the addition of -msym flag
14912 if test "$GCC" = yes; then
14913 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14914 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'
14915 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14916 else
14917 allow_undefined_flag_F77=' -expect_unresolved \*'
14918 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'
14919 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~
14920 $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'
14921
14922 # Both c and cxx compiler support -rpath directly
14923 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14924 fi
14925 hardcode_libdir_separator_F77=:
14926 ;;
14927
14928 solaris*)
14929 no_undefined_flag_F77=' -z text'
14930 if test "$GCC" = yes; then
14931 wlarc='${wl}'
14932 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14933 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14934 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14935 else
14936 wlarc=''
14937 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14938 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14939 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14940 fi
14941 hardcode_libdir_flag_spec_F77='-R$libdir'
14942 hardcode_shlibpath_var_F77=no
14943 case $host_os in
14944 solaris2.[0-5] | solaris2.[0-5].*) ;;
14945 *)
14946 # The compiler driver will combine linker options so we
14947 # cannot just pass the convience library names through
14948 # without $wl, iff we do not link with $LD.
14949 # Luckily, gcc supports the same syntax we need for Sun Studio.
14950 # Supported since Solaris 2.6 (maybe 2.5.1?)
14951 case $wlarc in
14952 '')
14953 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
14954 *)
14955 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' ;;
14956 esac ;;
14957 esac
14958 link_all_deplibs_F77=yes
14959 ;;
14960
14961 sunos4*)
14962 if test "x$host_vendor" = xsequent; then
14963 # Use $CC to link under sequent, because it throws in some extra .o
14964 # files that make .init and .fini sections work.
14965 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14966 else
14967 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14968 fi
14969 hardcode_libdir_flag_spec_F77='-L$libdir'
14970 hardcode_direct_F77=yes
14971 hardcode_minus_L_F77=yes
14972 hardcode_shlibpath_var_F77=no
14973 ;;
14974
14975 sysv4)
14976 case $host_vendor in
14977 sni)
14978 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14979 hardcode_direct_F77=yes # is this really true???
14980 ;;
14981 siemens)
14982 ## LD is ld it makes a PLAMLIB
14983 ## CC just makes a GrossModule.
14984 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14985 reload_cmds_F77='$CC -r -o $output$reload_objs'
14986 hardcode_direct_F77=no
14987 ;;
14988 motorola)
14989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14991 ;;
14992 esac
14993 runpath_var='LD_RUN_PATH'
14994 hardcode_shlibpath_var_F77=no
14995 ;;
14996
14997 sysv4.3*)
14998 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14999 hardcode_shlibpath_var_F77=no
15000 export_dynamic_flag_spec_F77='-Bexport'
15001 ;;
15002
15003 sysv4*MP*)
15004 if test -d /usr/nec; then
15005 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15006 hardcode_shlibpath_var_F77=no
15007 runpath_var=LD_RUN_PATH
15008 hardcode_runpath_var=yes
15009 ld_shlibs_F77=yes
15010 fi
15011 ;;
15012
15013 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
15014 no_undefined_flag_F77='${wl}-z,text'
15015 archive_cmds_need_lc_F77=no
15016 hardcode_shlibpath_var_F77=no
15017 runpath_var='LD_RUN_PATH'
15018
15019 if test "$GCC" = yes; then
15020 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15021 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15022 else
15023 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15024 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15025 fi
15026 ;;
15027
15028 sysv5* | sco3.2v5* | sco5v6*)
15029 # Note: We can NOT use -z defs as we might desire, because we do not
15030 # link with -lc, and that would cause any symbols used from libc to
15031 # always be unresolved, which means just about no library would
15032 # ever link correctly. If we're not using GNU ld we use -z text
15033 # though, which does catch some bad symbols but isn't as heavy-handed
15034 # as -z defs.
15035 no_undefined_flag_F77='${wl}-z,text'
15036 allow_undefined_flag_F77='${wl}-z,nodefs'
15037 archive_cmds_need_lc_F77=no
15038 hardcode_shlibpath_var_F77=no
15039 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15040 hardcode_libdir_separator_F77=':'
15041 link_all_deplibs_F77=yes
15042 export_dynamic_flag_spec_F77='${wl}-Bexport'
15043 runpath_var='LD_RUN_PATH'
15044
15045 if test "$GCC" = yes; then
15046 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15047 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15048 else
15049 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15050 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15051 fi
15052 ;;
15053
15054 uts4*)
15055 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15056 hardcode_libdir_flag_spec_F77='-L$libdir'
15057 hardcode_shlibpath_var_F77=no
15058 ;;
15059
15060 *)
15061 ld_shlibs_F77=no
15062 ;;
15063 esac
15064 fi
15065
15066{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
15067$as_echo "$ld_shlibs_F77" >&6; }
15068test "$ld_shlibs_F77" = no && can_build_shared=no
15069
15070#
15071# Do we need to explicitly link libc?
15072#
15073case "x$archive_cmds_need_lc_F77" in
15074x|xyes)
15075 # Assume -lc should be added
15076 archive_cmds_need_lc_F77=yes
15077
15078 if test "$enable_shared" = yes && test "$GCC" = yes; then
15079 case $archive_cmds_F77 in
15080 *'~'*)
15081 # FIXME: we may have to deal with multi-command sequences.
15082 ;;
15083 '$CC '*)
15084 # Test whether the compiler implicitly links with -lc since on some
15085 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15086 # to ld, don't add -lc before -lgcc.
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15088$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15089 $rm conftest*
15090 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15091
15092 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15093 (eval $ac_compile) 2>&5
15094 ac_status=$?
15095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15096 test $ac_status = 0; } 2>conftest.err; then
15097 soname=conftest
15098 lib=conftest
15099 libobjs=conftest.$ac_objext
15100 deplibs=
15101 wl=$lt_prog_compiler_wl_F77
15102 pic_flag=$lt_prog_compiler_pic_F77
15103 compiler_flags=-v
15104 linker_flags=-v
15105 verstring=
15106 output_objdir=.
15107 libname=conftest
15108 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15109 allow_undefined_flag_F77=
15110 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15111 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15112 ac_status=$?
15113 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15114 test $ac_status = 0; }
15115 then
15116 archive_cmds_need_lc_F77=no
15117 else
15118 archive_cmds_need_lc_F77=yes
15119 fi
15120 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15121 else
15122 cat conftest.err 1>&5
15123 fi
15124 $rm conftest*
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
15126$as_echo "$archive_cmds_need_lc_F77" >&6; }
15127 ;;
15128 esac
15129 fi
15130 ;;
15131esac
15132
15133{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15134$as_echo_n "checking dynamic linker characteristics... " >&6; }
15135library_names_spec=
15136libname_spec='lib$name'
15137soname_spec=
15138shrext_cmds=".so"
15139postinstall_cmds=
15140postuninstall_cmds=
15141finish_cmds=
15142finish_eval=
15143shlibpath_var=
15144shlibpath_overrides_runpath=unknown
15145version_type=none
15146dynamic_linker="$host_os ld.so"
15147sys_lib_dlsearch_path_spec="/lib /usr/lib"
15148if test "$GCC" = yes; then
15149 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15150 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
15151 # if the path contains ";" then we assume it to be the separator
15152 # otherwise default to the standard path separator (i.e. ":") - it is
15153 # assumed that no part of a normal pathname contains ";" but that should
15154 # okay in the real world where ";" in dirpaths is itself problematic.
15155 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15156 else
15157 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15158 fi
15159else
15160 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15161fi
15162need_lib_prefix=unknown
15163hardcode_into_libs=no
15164
15165# when you set need_version to no, make sure it does not cause -set_version
15166# flags to be left without arguments
15167need_version=unknown
15168
15169case $host_os in
15170aix3*)
15171 version_type=linux
15172 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15173 shlibpath_var=LIBPATH
15174
15175 # AIX 3 has no versioning support, so we append a major version to the name.
15176 soname_spec='${libname}${release}${shared_ext}$major'
15177 ;;
15178
15179aix4* | aix5*)
15180 version_type=linux
15181 need_lib_prefix=no
15182 need_version=no
15183 hardcode_into_libs=yes
15184 if test "$host_cpu" = ia64; then
15185 # AIX 5 supports IA64
15186 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15187 shlibpath_var=LD_LIBRARY_PATH
15188 else
15189 # With GCC up to 2.95.x, collect2 would create an import file
15190 # for dependence libraries. The import file would start with
15191 # the line `#! .'. This would cause the generated library to
15192 # depend on `.', always an invalid library. This was fixed in
15193 # development snapshots of GCC prior to 3.0.
15194 case $host_os in
15195 aix4 | aix4.[01] | aix4.[01].*)
15196 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15197 echo ' yes '
15198 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15199 :
15200 else
15201 can_build_shared=no
15202 fi
15203 ;;
15204 esac
15205 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15206 # soname into executable. Probably we can add versioning support to
15207 # collect2, so additional links can be useful in future.
15208 if test "$aix_use_runtimelinking" = yes; then
15209 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15210 # instead of lib<name>.a to let people know that these are not
15211 # typical AIX shared libraries.
15212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15213 else
15214 # We preserve .a as extension for shared libraries through AIX4.2
15215 # and later when we are not doing run time linking.
15216 library_names_spec='${libname}${release}.a $libname.a'
15217 soname_spec='${libname}${release}${shared_ext}$major'
15218 fi
15219 shlibpath_var=LIBPATH
15220 fi
15221 ;;
15222
15223amigaos*)
15224 library_names_spec='$libname.ixlibrary $libname.a'
15225 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15226 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'
15227 ;;
15228
15229beos*)
15230 library_names_spec='${libname}${shared_ext}'
15231 dynamic_linker="$host_os ld.so"
15232 shlibpath_var=LIBRARY_PATH
15233 ;;
15234
15235bsdi[45]*)
15236 version_type=linux
15237 need_version=no
15238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15239 soname_spec='${libname}${release}${shared_ext}$major'
15240 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15241 shlibpath_var=LD_LIBRARY_PATH
15242 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15243 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15244 # the default ld.so.conf also contains /usr/contrib/lib and
15245 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15246 # libtool to hard-code these into programs
15247 ;;
15248
15249cygwin* | mingw* | pw32*)
15250 version_type=windows
15251 shrext_cmds=".dll"
15252 need_version=no
15253 need_lib_prefix=no
15254
15255 case $GCC,$host_os in
15256 yes,cygwin* | yes,mingw* | yes,pw32*)
15257 library_names_spec='$libname.dll.a'
15258 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15259 postinstall_cmds='base_file=`basename \${file}`~
15260 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15261 dldir=$destdir/`dirname \$dlpath`~
15262 test -d \$dldir || mkdir -p \$dldir~
15263 $install_prog $dir/$dlname \$dldir/$dlname~
15264 chmod a+x \$dldir/$dlname'
15265 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15266 dlpath=$dir/\$dldll~
15267 $rm \$dlpath'
15268 shlibpath_overrides_runpath=yes
15269
15270 case $host_os in
15271 cygwin*)
15272 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15273 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15274 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15275 ;;
15276 mingw*)
15277 # MinGW DLLs use traditional 'lib' prefix
15278 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15279 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15280 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15281 # It is most probably a Windows format PATH printed by
15282 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15283 # path with ; separators, and with drive letters. We can handle the
15284 # drive letters (cygwin fileutils understands them), so leave them,
15285 # especially as we might pass files found there to a mingw objdump,
15286 # which wouldn't understand a cygwinified path. Ahh.
15287 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15288 else
15289 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15290 fi
15291 ;;
15292 pw32*)
15293 # pw32 DLLs use 'pw' prefix rather than 'lib'
15294 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15295 ;;
15296 esac
15297 ;;
15298
15299 *)
15300 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15301 ;;
15302 esac
15303 dynamic_linker='Win32 ld.exe'
15304 # FIXME: first we should search . and the directory the executable is in
15305 shlibpath_var=PATH
15306 ;;
15307
15308darwin* | rhapsody*)
15309 dynamic_linker="$host_os dyld"
15310 version_type=darwin
15311 need_lib_prefix=no
15312 need_version=no
15313 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15314 soname_spec='${libname}${release}${major}$shared_ext'
15315 shlibpath_overrides_runpath=yes
15316 shlibpath_var=DYLD_LIBRARY_PATH
15317 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15318 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
15319 if test "$GCC" = yes; then
15320 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"`
15321 else
15322 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
15323 fi
15324 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15325 ;;
15326
15327dgux*)
15328 version_type=linux
15329 need_lib_prefix=no
15330 need_version=no
15331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15332 soname_spec='${libname}${release}${shared_ext}$major'
15333 shlibpath_var=LD_LIBRARY_PATH
15334 ;;
15335
15336freebsd1*)
15337 dynamic_linker=no
15338 ;;
15339
15340kfreebsd*-gnu)
15341 version_type=linux
15342 need_lib_prefix=no
15343 need_version=no
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 shlibpath_var=LD_LIBRARY_PATH
15347 shlibpath_overrides_runpath=no
15348 hardcode_into_libs=yes
15349 dynamic_linker='GNU ld.so'
15350 ;;
15351
15352freebsd* | dragonfly*)
15353 # DragonFly does not have aout. When/if they implement a new
15354 # versioning mechanism, adjust this.
15355 if test -x /usr/bin/objformat; then
15356 objformat=`/usr/bin/objformat`
15357 else
15358 case $host_os in
15359 freebsd[123]*) objformat=aout ;;
15360 *) objformat=elf ;;
15361 esac
15362 fi
15363 version_type=freebsd-$objformat
15364 case $version_type in
15365 freebsd-elf*)
15366 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15367 need_version=no
15368 need_lib_prefix=no
15369 ;;
15370 freebsd-*)
15371 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15372 need_version=yes
15373 ;;
15374 esac
15375 shlibpath_var=LD_LIBRARY_PATH
15376 case $host_os in
15377 freebsd2*)
15378 shlibpath_overrides_runpath=yes
15379 ;;
15380 freebsd3.[01]* | freebsdelf3.[01]*)
15381 shlibpath_overrides_runpath=yes
15382 hardcode_into_libs=yes
15383 ;;
15384 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15385 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15386 shlibpath_overrides_runpath=no
15387 hardcode_into_libs=yes
15388 ;;
15389 freebsd*) # from 4.6 on
15390 shlibpath_overrides_runpath=yes
15391 hardcode_into_libs=yes
15392 ;;
15393 esac
15394 ;;
15395
15396gnu*)
15397 version_type=linux
15398 need_lib_prefix=no
15399 need_version=no
15400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15401 soname_spec='${libname}${release}${shared_ext}$major'
15402 shlibpath_var=LD_LIBRARY_PATH
15403 hardcode_into_libs=yes
15404 ;;
15405
15406hpux9* | hpux10* | hpux11*)
15407 # Give a soname corresponding to the major version so that dld.sl refuses to
15408 # link against other versions.
15409 version_type=sunos
15410 need_lib_prefix=no
15411 need_version=no
15412 case $host_cpu in
15413 ia64*)
15414 shrext_cmds='.so'
15415 hardcode_into_libs=yes
15416 dynamic_linker="$host_os dld.so"
15417 shlibpath_var=LD_LIBRARY_PATH
15418 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15420 soname_spec='${libname}${release}${shared_ext}$major'
15421 if test "X$HPUX_IA64_MODE" = X32; then
15422 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15423 else
15424 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15425 fi
15426 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15427 ;;
15428 hppa*64*)
15429 shrext_cmds='.sl'
15430 hardcode_into_libs=yes
15431 dynamic_linker="$host_os dld.sl"
15432 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15433 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15436 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15438 ;;
15439 *)
15440 shrext_cmds='.sl'
15441 dynamic_linker="$host_os dld.sl"
15442 shlibpath_var=SHLIB_PATH
15443 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15445 soname_spec='${libname}${release}${shared_ext}$major'
15446 ;;
15447 esac
15448 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15449 postinstall_cmds='chmod 555 $lib'
15450 ;;
15451
15452interix3*)
15453 version_type=linux
15454 need_lib_prefix=no
15455 need_version=no
15456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15457 soname_spec='${libname}${release}${shared_ext}$major'
15458 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15459 shlibpath_var=LD_LIBRARY_PATH
15460 shlibpath_overrides_runpath=no
15461 hardcode_into_libs=yes
15462 ;;
15463
15464irix5* | irix6* | nonstopux*)
15465 case $host_os in
15466 nonstopux*) version_type=nonstopux ;;
15467 *)
15468 if test "$lt_cv_prog_gnu_ld" = yes; then
15469 version_type=linux
15470 else
15471 version_type=irix
15472 fi ;;
15473 esac
15474 need_lib_prefix=no
15475 need_version=no
15476 soname_spec='${libname}${release}${shared_ext}$major'
15477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15478 case $host_os in
15479 irix5* | nonstopux*)
15480 libsuff= shlibsuff=
15481 ;;
15482 *)
15483 case $LD in # libtool.m4 will add one of these switches to LD
15484 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15485 libsuff= shlibsuff= libmagic=32-bit;;
15486 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15487 libsuff=32 shlibsuff=N32 libmagic=N32;;
15488 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15489 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15490 *) libsuff= shlibsuff= libmagic=never-match;;
15491 esac
15492 ;;
15493 esac
15494 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15495 shlibpath_overrides_runpath=no
15496 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15497 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15498 hardcode_into_libs=yes
15499 ;;
15500
15501# No shared lib support for Linux oldld, aout, or coff.
15502linux*oldld* | linux*aout* | linux*coff*)
15503 dynamic_linker=no
15504 ;;
15505
15506# This must be Linux ELF.
15507linux*)
15508 version_type=linux
15509 need_lib_prefix=no
15510 need_version=no
15511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15512 soname_spec='${libname}${release}${shared_ext}$major'
15513 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15514 shlibpath_var=LD_LIBRARY_PATH
15515 shlibpath_overrides_runpath=no
15516 # This implies no fast_install, which is unacceptable.
15517 # Some rework will be needed to allow for fast_install
15518 # before this can be enabled.
15519 hardcode_into_libs=yes
15520
15521 # Append ld.so.conf contents to the search path
15522 if test -f /etc/ld.so.conf; then
15523 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' ' '`
15524 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15525 fi
15526
15527 # We used to test for /lib/ld.so.1 and disable shared libraries on
15528 # powerpc, because MkLinux only supported shared libraries with the
15529 # GNU dynamic linker. Since this was broken with cross compilers,
15530 # most powerpc-linux boxes support dynamic linking these days and
15531 # people can always --disable-shared, the test was removed, and we
15532 # assume the GNU/Linux dynamic linker is in use.
15533 dynamic_linker='GNU/Linux ld.so'
15534 ;;
15535
15536knetbsd*-gnu)
15537 version_type=linux
15538 need_lib_prefix=no
15539 need_version=no
15540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15541 soname_spec='${libname}${release}${shared_ext}$major'
15542 shlibpath_var=LD_LIBRARY_PATH
15543 shlibpath_overrides_runpath=no
15544 hardcode_into_libs=yes
15545 dynamic_linker='GNU ld.so'
15546 ;;
15547
15548netbsd*)
15549 version_type=sunos
15550 need_lib_prefix=no
15551 need_version=no
15552 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15553 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15554 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15555 dynamic_linker='NetBSD (a.out) ld.so'
15556 else
15557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15558 soname_spec='${libname}${release}${shared_ext}$major'
15559 dynamic_linker='NetBSD ld.elf_so'
15560 fi
15561 shlibpath_var=LD_LIBRARY_PATH
15562 shlibpath_overrides_runpath=yes
15563 hardcode_into_libs=yes
15564 ;;
15565
15566newsos6)
15567 version_type=linux
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 shlibpath_overrides_runpath=yes
15571 ;;
15572
15573nto-qnx*)
15574 version_type=linux
15575 need_lib_prefix=no
15576 need_version=no
15577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15578 soname_spec='${libname}${release}${shared_ext}$major'
15579 shlibpath_var=LD_LIBRARY_PATH
15580 shlibpath_overrides_runpath=yes
15581 ;;
15582
15583openbsd*)
15584 version_type=sunos
15585 sys_lib_dlsearch_path_spec="/usr/lib"
15586 need_lib_prefix=no
15587 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15588 case $host_os in
15589 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15590 *) need_version=no ;;
15591 esac
15592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15593 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15594 shlibpath_var=LD_LIBRARY_PATH
15595 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15596 case $host_os in
15597 openbsd2.[89] | openbsd2.[89].*)
15598 shlibpath_overrides_runpath=no
15599 ;;
15600 *)
15601 shlibpath_overrides_runpath=yes
15602 ;;
15603 esac
15604 else
15605 shlibpath_overrides_runpath=yes
15606 fi
15607 ;;
15608
15609os2*)
15610 libname_spec='$name'
15611 shrext_cmds=".dll"
15612 need_lib_prefix=no
15613 library_names_spec='$libname${shared_ext} $libname.a'
15614 dynamic_linker='OS/2 ld.exe'
15615 shlibpath_var=LIBPATH
15616 ;;
15617
15618osf3* | osf4* | osf5*)
15619 version_type=osf
15620 need_lib_prefix=no
15621 need_version=no
15622 soname_spec='${libname}${release}${shared_ext}$major'
15623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15624 shlibpath_var=LD_LIBRARY_PATH
15625 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15626 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15627 ;;
15628
15629solaris*)
15630 version_type=linux
15631 need_lib_prefix=no
15632 need_version=no
15633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15634 soname_spec='${libname}${release}${shared_ext}$major'
15635 shlibpath_var=LD_LIBRARY_PATH
15636 shlibpath_overrides_runpath=yes
15637 hardcode_into_libs=yes
15638 # ldd complains unless libraries are executable
15639 postinstall_cmds='chmod +x $lib'
15640 ;;
15641
15642sunos4*)
15643 version_type=sunos
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15645 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15646 shlibpath_var=LD_LIBRARY_PATH
15647 shlibpath_overrides_runpath=yes
15648 if test "$with_gnu_ld" = yes; then
15649 need_lib_prefix=no
15650 fi
15651 need_version=yes
15652 ;;
15653
15654sysv4 | sysv4.3*)
15655 version_type=linux
15656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15657 soname_spec='${libname}${release}${shared_ext}$major'
15658 shlibpath_var=LD_LIBRARY_PATH
15659 case $host_vendor in
15660 sni)
15661 shlibpath_overrides_runpath=no
15662 need_lib_prefix=no
15663 export_dynamic_flag_spec='${wl}-Blargedynsym'
15664 runpath_var=LD_RUN_PATH
15665 ;;
15666 siemens)
15667 need_lib_prefix=no
15668 ;;
15669 motorola)
15670 need_lib_prefix=no
15671 need_version=no
15672 shlibpath_overrides_runpath=no
15673 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15674 ;;
15675 esac
15676 ;;
15677
15678sysv4*MP*)
15679 if test -d /usr/nec ;then
15680 version_type=linux
15681 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15682 soname_spec='$libname${shared_ext}.$major'
15683 shlibpath_var=LD_LIBRARY_PATH
15684 fi
15685 ;;
15686
15687sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15688 version_type=freebsd-elf
15689 need_lib_prefix=no
15690 need_version=no
15691 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15692 soname_spec='${libname}${release}${shared_ext}$major'
15693 shlibpath_var=LD_LIBRARY_PATH
15694 hardcode_into_libs=yes
15695 if test "$with_gnu_ld" = yes; then
15696 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15697 shlibpath_overrides_runpath=no
15698 else
15699 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15700 shlibpath_overrides_runpath=yes
15701 case $host_os in
15702 sco3.2v5*)
15703 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15704 ;;
15705 esac
15706 fi
15707 sys_lib_dlsearch_path_spec='/usr/lib'
15708 ;;
15709
15710uts4*)
15711 version_type=linux
15712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15713 soname_spec='${libname}${release}${shared_ext}$major'
15714 shlibpath_var=LD_LIBRARY_PATH
15715 ;;
15716
15717*)
15718 dynamic_linker=no
15719 ;;
15720esac
15721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15722$as_echo "$dynamic_linker" >&6; }
15723test "$dynamic_linker" = no && can_build_shared=no
15724
15725variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15726if test "$GCC" = yes; then
15727 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15728fi
15729
15730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15731$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15732hardcode_action_F77=
15733if test -n "$hardcode_libdir_flag_spec_F77" || \
15734 test -n "$runpath_var_F77" || \
15735 test "X$hardcode_automatic_F77" = "Xyes" ; then
15736
15737 # We can hardcode non-existant directories.
15738 if test "$hardcode_direct_F77" != no &&
15739 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15740 # have to relink, otherwise we might link with an installed library
15741 # when we should be linking with a yet-to-be-installed one
15742 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15743 test "$hardcode_minus_L_F77" != no; then
15744 # Linking always hardcodes the temporary library directory.
15745 hardcode_action_F77=relink
15746 else
15747 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15748 hardcode_action_F77=immediate
15749 fi
15750else
15751 # We cannot hardcode anything, or else we can only hardcode existing
15752 # directories.
15753 hardcode_action_F77=unsupported
15754fi
15755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
15756$as_echo "$hardcode_action_F77" >&6; }
15757
15758if test "$hardcode_action_F77" = relink; then
15759 # Fast installation is not supported
15760 enable_fast_install=no
15761elif test "$shlibpath_overrides_runpath" = yes ||
15762 test "$enable_shared" = no; then
15763 # Fast installation is not necessary
15764 enable_fast_install=needless
15765fi
15766
15767
15768# The else clause should only fire when bootstrapping the
15769# libtool distribution, otherwise you forgot to ship ltmain.sh
15770# with your package, and you will get complaints that there are
15771# no rules to generate ltmain.sh.
15772if test -f "$ltmain"; then
15773 # See if we are running on zsh, and set the options which allow our commands through
15774 # without removal of \ escapes.
15775 if test -n "${ZSH_VERSION+set}" ; then
15776 setopt NO_GLOB_SUBST
15777 fi
15778 # Now quote all the things that may contain metacharacters while being
15779 # careful not to overquote the AC_SUBSTed values. We take copies of the
15780 # variables and quote the copies for generation of the libtool script.
15781 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15782 SED SHELL STRIP \
15783 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15784 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15785 deplibs_check_method reload_flag reload_cmds need_locks \
15786 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15787 lt_cv_sys_global_symbol_to_c_name_address \
15788 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15789 old_postinstall_cmds old_postuninstall_cmds \
15790 compiler_F77 \
15791 CC_F77 \
15792 LD_F77 \
15793 lt_prog_compiler_wl_F77 \
15794 lt_prog_compiler_pic_F77 \
15795 lt_prog_compiler_static_F77 \
15796 lt_prog_compiler_no_builtin_flag_F77 \
15797 export_dynamic_flag_spec_F77 \
15798 thread_safe_flag_spec_F77 \
15799 whole_archive_flag_spec_F77 \
15800 enable_shared_with_static_runtimes_F77 \
15801 old_archive_cmds_F77 \
15802 old_archive_from_new_cmds_F77 \
15803 predep_objects_F77 \
15804 postdep_objects_F77 \
15805 predeps_F77 \
15806 postdeps_F77 \
15807 compiler_lib_search_path_F77 \
15808 archive_cmds_F77 \
15809 archive_expsym_cmds_F77 \
15810 postinstall_cmds_F77 \
15811 postuninstall_cmds_F77 \
15812 old_archive_from_expsyms_cmds_F77 \
15813 allow_undefined_flag_F77 \
15814 no_undefined_flag_F77 \
15815 export_symbols_cmds_F77 \
15816 hardcode_libdir_flag_spec_F77 \
15817 hardcode_libdir_flag_spec_ld_F77 \
15818 hardcode_libdir_separator_F77 \
15819 hardcode_automatic_F77 \
15820 module_cmds_F77 \
15821 module_expsym_cmds_F77 \
15822 lt_cv_prog_compiler_c_o_F77 \
15823 exclude_expsyms_F77 \
15824 include_expsyms_F77; do
15825
15826 case $var in
15827 old_archive_cmds_F77 | \
15828 old_archive_from_new_cmds_F77 | \
15829 archive_cmds_F77 | \
15830 archive_expsym_cmds_F77 | \
15831 module_cmds_F77 | \
15832 module_expsym_cmds_F77 | \
15833 old_archive_from_expsyms_cmds_F77 | \
15834 export_symbols_cmds_F77 | \
15835 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15836 postinstall_cmds | postuninstall_cmds | \
15837 old_postinstall_cmds | old_postuninstall_cmds | \
15838 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15839 # Double-quote double-evaled strings.
15840 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15841 ;;
15842 *)
15843 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15844 ;;
15845 esac
15846 done
15847
15848 case $lt_echo in
15849 *'\$0 --fallback-echo"')
15850 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15851 ;;
15852 esac
15853
15854cfgfile="$ofile"
15855
15856 cat <<__EOF__ >> "$cfgfile"
15857# ### BEGIN LIBTOOL TAG CONFIG: $tagname
15858
15859# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15860
15861# Shell to use when invoking shell scripts.
15862SHELL=$lt_SHELL
15863
15864# Whether or not to build shared libraries.
15865build_libtool_libs=$enable_shared
15866
15867# Whether or not to build static libraries.
15868build_old_libs=$enable_static
15869
15870# Whether or not to add -lc for building shared libraries.
15871build_libtool_need_lc=$archive_cmds_need_lc_F77
15872
15873# Whether or not to disallow shared libs when runtime libs are static
15874allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15875
15876# Whether or not to optimize for fast installation.
15877fast_install=$enable_fast_install
15878
15879# The host system.
15880host_alias=$host_alias
15881host=$host
15882host_os=$host_os
15883
15884# The build system.
15885build_alias=$build_alias
15886build=$build
15887build_os=$build_os
15888
15889# An echo program that does not interpret backslashes.
15890echo=$lt_echo
15891
15892# The archiver.
15893AR=$lt_AR
15894AR_FLAGS=$lt_AR_FLAGS
15895
15896# A C compiler.
15897LTCC=$lt_LTCC
15898
15899# LTCC compiler flags.
15900LTCFLAGS=$lt_LTCFLAGS
15901
15902# A language-specific compiler.
15903CC=$lt_compiler_F77
15904
15905# Is the compiler the GNU C compiler?
15906with_gcc=$GCC_F77
15907
15908# An ERE matcher.
15909EGREP=$lt_EGREP
15910
15911# The linker used to build libraries.
15912LD=$lt_LD_F77
15913
15914# Whether we need hard or soft links.
15915LN_S=$lt_LN_S
15916
15917# A BSD-compatible nm program.
15918NM=$lt_NM
15919
15920# A symbol stripping program
15921STRIP=$lt_STRIP
15922
15923# Used to examine libraries when file_magic_cmd begins "file"
15924MAGIC_CMD=$MAGIC_CMD
15925
15926# Used on cygwin: DLL creation program.
15927DLLTOOL="$DLLTOOL"
15928
15929# Used on cygwin: object dumper.
15930OBJDUMP="$OBJDUMP"
15931
15932# Used on cygwin: assembler.
15933AS="$AS"
15934
15935# The name of the directory that contains temporary libtool files.
15936objdir=$objdir
15937
15938# How to create reloadable object files.
15939reload_flag=$lt_reload_flag
15940reload_cmds=$lt_reload_cmds
15941
15942# How to pass a linker flag through the compiler.
15943wl=$lt_lt_prog_compiler_wl_F77
15944
15945# Object file suffix (normally "o").
15946objext="$ac_objext"
15947
15948# Old archive suffix (normally "a").
15949libext="$libext"
15950
15951# Shared library suffix (normally ".so").
15952shrext_cmds='$shrext_cmds'
15953
15954# Executable file suffix (normally "").
15955exeext="$exeext"
15956
15957# Additional compiler flags for building library objects.
15958pic_flag=$lt_lt_prog_compiler_pic_F77
15959pic_mode=$pic_mode
15960
15961# What is the maximum length of a command?
15962max_cmd_len=$lt_cv_sys_max_cmd_len
15963
15964# Does compiler simultaneously support -c and -o options?
15965compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15966
15967# Must we lock files when doing compilation?
15968need_locks=$lt_need_locks
15969
15970# Do we need the lib prefix for modules?
15971need_lib_prefix=$need_lib_prefix
15972
15973# Do we need a version for libraries?
15974need_version=$need_version
15975
15976# Whether dlopen is supported.
15977dlopen_support=$enable_dlopen
15978
15979# Whether dlopen of programs is supported.
15980dlopen_self=$enable_dlopen_self
15981
15982# Whether dlopen of statically linked programs is supported.
15983dlopen_self_static=$enable_dlopen_self_static
15984
15985# Compiler flag to prevent dynamic linking.
15986link_static_flag=$lt_lt_prog_compiler_static_F77
15987
15988# Compiler flag to turn off builtin functions.
15989no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15990
15991# Compiler flag to allow reflexive dlopens.
15992export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15993
15994# Compiler flag to generate shared objects directly from archives.
15995whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15996
15997# Compiler flag to generate thread-safe objects.
15998thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15999
16000# Library versioning type.
16001version_type=$version_type
16002
16003# Format of library name prefix.
16004libname_spec=$lt_libname_spec
16005
16006# List of archive names. First name is the real one, the rest are links.
16007# The last name is the one that the linker finds with -lNAME.
16008library_names_spec=$lt_library_names_spec
16009
16010# The coded name of the library, if different from the real name.
16011soname_spec=$lt_soname_spec
16012
16013# Commands used to build and install an old-style archive.
16014RANLIB=$lt_RANLIB
16015old_archive_cmds=$lt_old_archive_cmds_F77
16016old_postinstall_cmds=$lt_old_postinstall_cmds
16017old_postuninstall_cmds=$lt_old_postuninstall_cmds
16018
16019# Create an old-style archive from a shared archive.
16020old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16021
16022# Create a temporary old-style archive to link instead of a shared archive.
16023old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16024
16025# Commands used to build and install a shared archive.
16026archive_cmds=$lt_archive_cmds_F77
16027archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16028postinstall_cmds=$lt_postinstall_cmds
16029postuninstall_cmds=$lt_postuninstall_cmds
16030
16031# Commands used to build a loadable module (assumed same as above if empty)
16032module_cmds=$lt_module_cmds_F77
16033module_expsym_cmds=$lt_module_expsym_cmds_F77
16034
16035# Commands to strip libraries.
16036old_striplib=$lt_old_striplib
16037striplib=$lt_striplib
16038
16039# Dependencies to place before the objects being linked to create a
16040# shared library.
16041predep_objects=$lt_predep_objects_F77
16042
16043# Dependencies to place after the objects being linked to create a
16044# shared library.
16045postdep_objects=$lt_postdep_objects_F77
16046
16047# Dependencies to place before the objects being linked to create a
16048# shared library.
16049predeps=$lt_predeps_F77
16050
16051# Dependencies to place after the objects being linked to create a
16052# shared library.
16053postdeps=$lt_postdeps_F77
16054
16055# The library search path used internally by the compiler when linking
16056# a shared library.
16057compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16058
16059# Method to check whether dependent libraries are shared objects.
16060deplibs_check_method=$lt_deplibs_check_method
16061
16062# Command to use when deplibs_check_method == file_magic.
16063file_magic_cmd=$lt_file_magic_cmd
16064
16065# Flag that allows shared libraries with undefined symbols to be built.
16066allow_undefined_flag=$lt_allow_undefined_flag_F77
16067
16068# Flag that forces no undefined symbols.
16069no_undefined_flag=$lt_no_undefined_flag_F77
16070
16071# Commands used to finish a libtool library installation in a directory.
16072finish_cmds=$lt_finish_cmds
16073
16074# Same as above, but a single script fragment to be evaled but not shown.
16075finish_eval=$lt_finish_eval
16076
16077# Take the output of nm and produce a listing of raw symbols and C names.
16078global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16079
16080# Transform the output of nm in a proper C declaration
16081global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16082
16083# Transform the output of nm in a C name address pair
16084global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16085
16086# This is the shared library runtime path variable.
16087runpath_var=$runpath_var
16088
16089# This is the shared library path variable.
16090shlibpath_var=$shlibpath_var
16091
16092# Is shlibpath searched before the hard-coded library search path?
16093shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16094
16095# How to hardcode a shared library path into an executable.
16096hardcode_action=$hardcode_action_F77
16097
16098# Whether we should hardcode library paths into libraries.
16099hardcode_into_libs=$hardcode_into_libs
16100
16101# Flag to hardcode \$libdir into a binary during linking.
16102# This must work even if \$libdir does not exist.
16103hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16104
16105# If ld is used when linking, flag to hardcode \$libdir into
16106# a binary during linking. This must work even if \$libdir does
16107# not exist.
16108hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16109
16110# Whether we need a single -rpath flag with a separated argument.
16111hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16112
16113# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16114# resulting binary.
16115hardcode_direct=$hardcode_direct_F77
16116
16117# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16118# resulting binary.
16119hardcode_minus_L=$hardcode_minus_L_F77
16120
16121# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16122# the resulting binary.
16123hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16124
16125# Set to yes if building a shared library automatically hardcodes DIR into the library
16126# and all subsequent libraries and executables linked against it.
16127hardcode_automatic=$hardcode_automatic_F77
16128
16129# Variables whose values should be saved in libtool wrapper scripts and
16130# restored at relink time.
16131variables_saved_for_relink="$variables_saved_for_relink"
16132
16133# Whether libtool must link a program against all its dependency libraries.
16134link_all_deplibs=$link_all_deplibs_F77
16135
16136# Compile-time system search path for libraries
16137sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16138
16139# Run-time system search path for libraries
16140sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16141
16142# Fix the shell variable \$srcfile for the compiler.
16143fix_srcfile_path="$fix_srcfile_path_F77"
16144
16145# Set to yes if exported symbols are required.
16146always_export_symbols=$always_export_symbols_F77
16147
16148# The commands to list exported symbols.
16149export_symbols_cmds=$lt_export_symbols_cmds_F77
16150
16151# The commands to extract the exported symbol list from a shared archive.
16152extract_expsyms_cmds=$lt_extract_expsyms_cmds
16153
16154# Symbols that should not be listed in the preloaded symbols.
16155exclude_expsyms=$lt_exclude_expsyms_F77
16156
16157# Symbols that must always be exported.
16158include_expsyms=$lt_include_expsyms_F77
16159
16160# ### END LIBTOOL TAG CONFIG: $tagname
16161
16162__EOF__
16163
16164
16165else
16166 # If there is no Makefile yet, we rely on a make rule to execute
16167 # `config.status --recheck' to rerun these tests and create the
16168 # libtool script then.
16169 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16170 if test -f "$ltmain_in"; then
16171 test -f Makefile && make "$ltmain"
16172 fi
16173fi
16174
16175
16176ac_ext=c
16177ac_cpp='$CPP $CPPFLAGS'
16178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16180ac_compiler_gnu=$ac_cv_c_compiler_gnu
16181
16182CC="$lt_save_CC"
16183
16184 else
16185 tagname=""
16186 fi
16187 ;;
16188
16189 GCJ)
16190 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16191
16192
16193# Source file extension for Java test sources.
16194ac_ext=java
16195
16196# Object file extension for compiled Java test sources.
16197objext=o
16198objext_GCJ=$objext
16199
16200# Code to be used in simple compile tests
16201lt_simple_compile_test_code="class foo {}\n"
16202
16203# Code to be used in simple link tests
16204lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
16205
16206# ltmain only uses $CC for tagged configurations so make sure $CC is set.
16207
16208# If no C compiler was specified, use CC.
16209LTCC=${LTCC-"$CC"}
16210
16211# If no C compiler flags were specified, use CFLAGS.
16212LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16213
16214# Allow CC to be a program name with arguments.
16215compiler=$CC
16216
16217
16218# save warnings/boilerplate of simple test code
16219ac_outfile=conftest.$ac_objext
16220printf "$lt_simple_compile_test_code" >conftest.$ac_ext
16221eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16222_lt_compiler_boilerplate=`cat conftest.err`
16223$rm conftest*
16224
16225ac_outfile=conftest.$ac_objext
16226printf "$lt_simple_link_test_code" >conftest.$ac_ext
16227eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16228_lt_linker_boilerplate=`cat conftest.err`
16229$rm conftest*
16230
16231
16232# Allow CC to be a program name with arguments.
16233lt_save_CC="$CC"
16234CC=${GCJ-"gcj"}
16235compiler=$CC
16236compiler_GCJ=$CC
16237for cc_temp in $compiler""; do
16238 case $cc_temp in
16239 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16240 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16241 \-*) ;;
16242 *) break;;
16243 esac
16244done
16245cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16246
16247
16248# GCJ did not exist at the time GCC didn't implicitly link libc in.
16249archive_cmds_need_lc_GCJ=no
16250
16251old_archive_cmds_GCJ=$old_archive_cmds
16252
16253## CAVEAT EMPTOR:
16254## There is no encapsulation within the following macros, do not change
16255## the running order or otherwise move them around unless you know exactly
16256## what you are doing...
16257
16258lt_prog_compiler_no_builtin_flag_GCJ=
16259
16260if test "$GCC" = yes; then
16261 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16262
16263
16264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16265$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16266if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
16267 $as_echo_n "(cached) " >&6
16268else
16269 lt_cv_prog_compiler_rtti_exceptions=no
16270 ac_outfile=conftest.$ac_objext
16271 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16272 lt_compiler_flag="-fno-rtti -fno-exceptions"
16273 # Insert the option either (1) after the last *FLAGS variable, or
16274 # (2) before a word containing "conftest.", or (3) at the end.
16275 # Note that $ac_compile itself does not contain backslashes and begins
16276 # with a dollar sign (not a hyphen), so the echo should work correctly.
16277 # The option is referenced via a variable to avoid confusing sed.
16278 lt_compile=`echo "$ac_compile" | $SED \
16279 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16280 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16281 -e 's:$: $lt_compiler_flag:'`
16282 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16283 (eval "$lt_compile" 2>conftest.err)
16284 ac_status=$?
16285 cat conftest.err >&5
16286 echo "$as_me:__oline__: \$? = $ac_status" >&5
16287 if (exit $ac_status) && test -s "$ac_outfile"; then
16288 # The compiler can only warn and ignore the option if not recognized
16289 # So say no if there are warnings other than the usual output.
16290 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16291 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16292 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16293 lt_cv_prog_compiler_rtti_exceptions=yes
16294 fi
16295 fi
16296 $rm conftest*
16297
16298fi
16299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16300$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16301
16302if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16303 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16304else
16305 :
16306fi
16307
16308fi
16309
16310lt_prog_compiler_wl_GCJ=
16311lt_prog_compiler_pic_GCJ=
16312lt_prog_compiler_static_GCJ=
16313
16314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16315$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16316
16317 if test "$GCC" = yes; then
16318 lt_prog_compiler_wl_GCJ='-Wl,'
16319 lt_prog_compiler_static_GCJ='-static'
16320
16321 case $host_os in
16322 aix*)
16323 # All AIX code is PIC.
16324 if test "$host_cpu" = ia64; then
16325 # AIX 5 now supports IA64 processor
16326 lt_prog_compiler_static_GCJ='-Bstatic'
16327 fi
16328 ;;
16329
16330 amigaos*)
16331 # FIXME: we need at least 68020 code to build shared libraries, but
16332 # adding the `-m68020' flag to GCC prevents building anything better,
16333 # like `-m68040'.
16334 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16335 ;;
16336
16337 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16338 # PIC is the default for these OSes.
16339 ;;
16340
16341 mingw* | pw32* | os2*)
16342 # This hack is so that the source file can tell whether it is being
16343 # built for inclusion in a dll (and should export symbols for example).
16344 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16345 ;;
16346
16347 darwin* | rhapsody*)
16348 # PIC is the default on this platform
16349 # Common symbols not allowed in MH_DYLIB files
16350 lt_prog_compiler_pic_GCJ='-fno-common'
16351 ;;
16352
16353 interix3*)
16354 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16355 # Instead, we relocate shared libraries at runtime.
16356 ;;
16357
16358 msdosdjgpp*)
16359 # Just because we use GCC doesn't mean we suddenly get shared libraries
16360 # on systems that don't support them.
16361 lt_prog_compiler_can_build_shared_GCJ=no
16362 enable_shared=no
16363 ;;
16364
16365 sysv4*MP*)
16366 if test -d /usr/nec; then
16367 lt_prog_compiler_pic_GCJ=-Kconform_pic
16368 fi
16369 ;;
16370
16371 hpux*)
16372 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16373 # not for PA HP-UX.
16374 case $host_cpu in
16375 hppa*64*|ia64*)
16376 # +Z the default
16377 ;;
16378 *)
16379 lt_prog_compiler_pic_GCJ='-fPIC'
16380 ;;
16381 esac
16382 ;;
16383
16384 *)
16385 lt_prog_compiler_pic_GCJ='-fPIC'
16386 ;;
16387 esac
16388 else
16389 # PORTME Check for flag to pass linker flags through the system compiler.
16390 case $host_os in
16391 aix*)
16392 lt_prog_compiler_wl_GCJ='-Wl,'
16393 if test "$host_cpu" = ia64; then
16394 # AIX 5 now supports IA64 processor
16395 lt_prog_compiler_static_GCJ='-Bstatic'
16396 else
16397 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16398 fi
16399 ;;
16400 darwin*)
16401 # PIC is the default on this platform
16402 # Common symbols not allowed in MH_DYLIB files
16403 case $cc_basename in
16404 xlc*)
16405 lt_prog_compiler_pic_GCJ='-qnocommon'
16406 lt_prog_compiler_wl_GCJ='-Wl,'
16407 ;;
16408 esac
16409 ;;
16410
16411 mingw* | pw32* | os2*)
16412 # This hack is so that the source file can tell whether it is being
16413 # built for inclusion in a dll (and should export symbols for example).
16414 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
16415 ;;
16416
16417 hpux9* | hpux10* | hpux11*)
16418 lt_prog_compiler_wl_GCJ='-Wl,'
16419 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16420 # not for PA HP-UX.
16421 case $host_cpu in
16422 hppa*64*|ia64*)
16423 # +Z the default
16424 ;;
16425 *)
16426 lt_prog_compiler_pic_GCJ='+Z'
16427 ;;
16428 esac
16429 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16430 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16431 ;;
16432
16433 irix5* | irix6* | nonstopux*)
16434 lt_prog_compiler_wl_GCJ='-Wl,'
16435 # PIC (with -KPIC) is the default.
16436 lt_prog_compiler_static_GCJ='-non_shared'
16437 ;;
16438
16439 newsos6)
16440 lt_prog_compiler_pic_GCJ='-KPIC'
16441 lt_prog_compiler_static_GCJ='-Bstatic'
16442 ;;
16443
16444 linux*)
16445 case $cc_basename in
16446 icc* | ecc*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 lt_prog_compiler_pic_GCJ='-KPIC'
16449 lt_prog_compiler_static_GCJ='-static'
16450 ;;
16451 pgcc* | pgf77* | pgf90* | pgf95*)
16452 # Portland Group compilers (*not* the Pentium gcc compiler,
16453 # which looks to be a dead project)
16454 lt_prog_compiler_wl_GCJ='-Wl,'
16455 lt_prog_compiler_pic_GCJ='-fpic'
16456 lt_prog_compiler_static_GCJ='-Bstatic'
16457 ;;
16458 ccc*)
16459 lt_prog_compiler_wl_GCJ='-Wl,'
16460 # All Alpha code is PIC.
16461 lt_prog_compiler_static_GCJ='-non_shared'
16462 ;;
16463 esac
16464 ;;
16465
16466 osf3* | osf4* | osf5*)
16467 lt_prog_compiler_wl_GCJ='-Wl,'
16468 # All OSF/1 code is PIC.
16469 lt_prog_compiler_static_GCJ='-non_shared'
16470 ;;
16471
16472 solaris*)
16473 lt_prog_compiler_pic_GCJ='-KPIC'
16474 lt_prog_compiler_static_GCJ='-Bstatic'
16475 case $cc_basename in
16476 f77* | f90* | f95*)
16477 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16478 *)
16479 lt_prog_compiler_wl_GCJ='-Wl,';;
16480 esac
16481 ;;
16482
16483 sunos4*)
16484 lt_prog_compiler_wl_GCJ='-Qoption ld '
16485 lt_prog_compiler_pic_GCJ='-PIC'
16486 lt_prog_compiler_static_GCJ='-Bstatic'
16487 ;;
16488
16489 sysv4 | sysv4.2uw2* | sysv4.3*)
16490 lt_prog_compiler_wl_GCJ='-Wl,'
16491 lt_prog_compiler_pic_GCJ='-KPIC'
16492 lt_prog_compiler_static_GCJ='-Bstatic'
16493 ;;
16494
16495 sysv4*MP*)
16496 if test -d /usr/nec ;then
16497 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16498 lt_prog_compiler_static_GCJ='-Bstatic'
16499 fi
16500 ;;
16501
16502 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16503 lt_prog_compiler_wl_GCJ='-Wl,'
16504 lt_prog_compiler_pic_GCJ='-KPIC'
16505 lt_prog_compiler_static_GCJ='-Bstatic'
16506 ;;
16507
16508 unicos*)
16509 lt_prog_compiler_wl_GCJ='-Wl,'
16510 lt_prog_compiler_can_build_shared_GCJ=no
16511 ;;
16512
16513 uts4*)
16514 lt_prog_compiler_pic_GCJ='-pic'
16515 lt_prog_compiler_static_GCJ='-Bstatic'
16516 ;;
16517
16518 *)
16519 lt_prog_compiler_can_build_shared_GCJ=no
16520 ;;
16521 esac
16522 fi
16523
16524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_GCJ" >&5
16525$as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
16526
16527#
16528# Check to make sure the PIC flag actually works.
16529#
16530if test -n "$lt_prog_compiler_pic_GCJ"; then
16531
16532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16533$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
16534if ${lt_prog_compiler_pic_works_GCJ+:} false; then :
16535 $as_echo_n "(cached) " >&6
16536else
16537 lt_prog_compiler_pic_works_GCJ=no
16538 ac_outfile=conftest.$ac_objext
16539 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16540 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16541 # Insert the option either (1) after the last *FLAGS variable, or
16542 # (2) before a word containing "conftest.", or (3) at the end.
16543 # Note that $ac_compile itself does not contain backslashes and begins
16544 # with a dollar sign (not a hyphen), so the echo should work correctly.
16545 # The option is referenced via a variable to avoid confusing sed.
16546 lt_compile=`echo "$ac_compile" | $SED \
16547 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16548 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16549 -e 's:$: $lt_compiler_flag:'`
16550 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16551 (eval "$lt_compile" 2>conftest.err)
16552 ac_status=$?
16553 cat conftest.err >&5
16554 echo "$as_me:__oline__: \$? = $ac_status" >&5
16555 if (exit $ac_status) && test -s "$ac_outfile"; then
16556 # The compiler can only warn and ignore the option if not recognized
16557 # So say no if there are warnings other than the usual output.
16558 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16559 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16560 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16561 lt_prog_compiler_pic_works_GCJ=yes
16562 fi
16563 fi
16564 $rm conftest*
16565
16566fi
16567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_works_GCJ" >&5
16568$as_echo "$lt_prog_compiler_pic_works_GCJ" >&6; }
16569
16570if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
16571 case $lt_prog_compiler_pic_GCJ in
16572 "" | " "*) ;;
16573 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16574 esac
16575else
16576 lt_prog_compiler_pic_GCJ=
16577 lt_prog_compiler_can_build_shared_GCJ=no
16578fi
16579
16580fi
16581case $host_os in
16582 # For platforms which do not support PIC, -DPIC is meaningless:
16583 *djgpp*)
16584 lt_prog_compiler_pic_GCJ=
16585 ;;
16586 *)
16587 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16588 ;;
16589esac
16590
16591#
16592# Check to make sure the static flag actually works.
16593#
16594wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16596$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16597if ${lt_prog_compiler_static_works_GCJ+:} false; then :
16598 $as_echo_n "(cached) " >&6
16599else
16600 lt_prog_compiler_static_works_GCJ=no
16601 save_LDFLAGS="$LDFLAGS"
16602 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16603 printf "$lt_simple_link_test_code" > conftest.$ac_ext
16604 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16605 # The linker can only warn and ignore the option if not recognized
16606 # So say no if there are warnings
16607 if test -s conftest.err; then
16608 # Append any errors to the config.log.
16609 cat conftest.err 1>&5
16610 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16611 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16612 if diff conftest.exp conftest.er2 >/dev/null; then
16613 lt_prog_compiler_static_works_GCJ=yes
16614 fi
16615 else
16616 lt_prog_compiler_static_works_GCJ=yes
16617 fi
16618 fi
16619 $rm conftest*
16620 LDFLAGS="$save_LDFLAGS"
16621
16622fi
16623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_static_works_GCJ" >&5
16624$as_echo "$lt_prog_compiler_static_works_GCJ" >&6; }
16625
16626if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then
16627 :
16628else
16629 lt_prog_compiler_static_GCJ=
16630fi
16631
16632
16633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16634$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16635if ${lt_cv_prog_compiler_c_o_GCJ+:} false; then :
16636 $as_echo_n "(cached) " >&6
16637else
16638 lt_cv_prog_compiler_c_o_GCJ=no
16639 $rm -r conftest 2>/dev/null
16640 mkdir conftest
16641 cd conftest
16642 mkdir out
16643 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16644
16645 lt_compiler_flag="-o out/conftest2.$ac_objext"
16646 # Insert the option either (1) after the last *FLAGS variable, or
16647 # (2) before a word containing "conftest.", or (3) at the end.
16648 # Note that $ac_compile itself does not contain backslashes and begins
16649 # with a dollar sign (not a hyphen), so the echo should work correctly.
16650 lt_compile=`echo "$ac_compile" | $SED \
16651 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16652 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16653 -e 's:$: $lt_compiler_flag:'`
16654 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5)
16655 (eval "$lt_compile" 2>out/conftest.err)
16656 ac_status=$?
16657 cat out/conftest.err >&5
16658 echo "$as_me:__oline__: \$? = $ac_status" >&5
16659 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16660 then
16661 # The compiler can only warn and ignore the option if not recognized
16662 # So say no if there are warnings
16663 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16664 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16665 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16666 lt_cv_prog_compiler_c_o_GCJ=yes
16667 fi
16668 fi
16669 chmod u+w . 2>&5
16670 $rm conftest*
16671 # SGI C++ compiler will create directory out/ii_files/ for
16672 # template instantiation
16673 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16674 $rm out/* && rmdir out
16675 cd ..
16676 rmdir conftest
16677 $rm conftest*
16678
16679fi
16680{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16681$as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
16682
16683
16684hard_links="nottested"
16685if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16686 # do not overwrite the value of need_locks provided by the user
16687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16688$as_echo_n "checking if we can lock with hard links... " >&6; }
16689 hard_links=yes
16690 $rm conftest*
16691 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16692 touch conftest.a
16693 ln conftest.a conftest.b 2>&5 || hard_links=no
16694 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16696$as_echo "$hard_links" >&6; }
16697 if test "$hard_links" = no; then
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16699$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16700 need_locks=warn
16701 fi
16702else
16703 need_locks=no
16704fi
16705
16706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16707$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16708
16709 runpath_var=
16710 allow_undefined_flag_GCJ=
16711 enable_shared_with_static_runtimes_GCJ=no
16712 archive_cmds_GCJ=
16713 archive_expsym_cmds_GCJ=
16714 old_archive_From_new_cmds_GCJ=
16715 old_archive_from_expsyms_cmds_GCJ=
16716 export_dynamic_flag_spec_GCJ=
16717 whole_archive_flag_spec_GCJ=
16718 thread_safe_flag_spec_GCJ=
16719 hardcode_libdir_flag_spec_GCJ=
16720 hardcode_libdir_flag_spec_ld_GCJ=
16721 hardcode_libdir_separator_GCJ=
16722 hardcode_direct_GCJ=no
16723 hardcode_minus_L_GCJ=no
16724 hardcode_shlibpath_var_GCJ=unsupported
16725 link_all_deplibs_GCJ=unknown
16726 hardcode_automatic_GCJ=no
16727 module_cmds_GCJ=
16728 module_expsym_cmds_GCJ=
16729 always_export_symbols_GCJ=no
16730 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16731 # include_expsyms should be a list of space-separated symbols to be *always*
16732 # included in the symbol list
16733 include_expsyms_GCJ=
16734 # exclude_expsyms can be an extended regexp of symbols to exclude
16735 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16736 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16737 # as well as any symbol that contains `d'.
16738 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
16739 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16740 # platforms (ab)use it in PIC code, but their linkers get confused if
16741 # the symbol is explicitly referenced. Since portable code cannot
16742 # rely on this symbol name, it's probably fine to never include it in
16743 # preloaded symbol tables.
16744 extract_expsyms_cmds=
16745 # Just being paranoid about ensuring that cc_basename is set.
16746 for cc_temp in $compiler""; do
16747 case $cc_temp in
16748 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16749 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16750 \-*) ;;
16751 *) break;;
16752 esac
16753done
16754cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16755
16756 case $host_os in
16757 cygwin* | mingw* | pw32*)
16758 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16759 # When not using gcc, we currently assume that we are using
16760 # Microsoft Visual C++.
16761 if test "$GCC" != yes; then
16762 with_gnu_ld=no
16763 fi
16764 ;;
16765 interix*)
16766 # we just hope/assume this is gcc and not c89 (= MSVC++)
16767 with_gnu_ld=yes
16768 ;;
16769 openbsd*)
16770 with_gnu_ld=no
16771 ;;
16772 esac
16773
16774 ld_shlibs_GCJ=yes
16775 if test "$with_gnu_ld" = yes; then
16776 # If archive_cmds runs LD, not CC, wlarc should be empty
16777 wlarc='${wl}'
16778
16779 # Set some defaults for GNU ld with shared library support. These
16780 # are reset later if shared libraries are not supported. Putting them
16781 # here allows them to be overridden if necessary.
16782 runpath_var=LD_RUN_PATH
16783 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16784 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16785 # ancient GNU ld didn't support --whole-archive et. al.
16786 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16787 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16788 else
16789 whole_archive_flag_spec_GCJ=
16790 fi
16791 supports_anon_versioning=no
16792 case `$LD -v 2>/dev/null` in
16793 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16794 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16795 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16796 *\ 2.11.*) ;; # other 2.11 versions
16797 *) supports_anon_versioning=yes ;;
16798 esac
16799
16800 # See if GNU ld supports shared libraries.
16801 case $host_os in
16802 aix3* | aix4* | aix5*)
16803 # On AIX/PPC, the GNU linker is very broken
16804 if test "$host_cpu" != ia64; then
16805 ld_shlibs_GCJ=no
16806 cat <<EOF 1>&2
16807
16808*** Warning: the GNU linker, at least up to release 2.9.1, is reported
16809*** to be unable to reliably create shared libraries on AIX.
16810*** Therefore, libtool is disabling shared libraries support. If you
16811*** really care for shared libraries, you may want to modify your PATH
16812*** so that a non-GNU linker is found, and then restart.
16813
16814EOF
16815 fi
16816 ;;
16817
16818 amigaos*)
16819 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)'
16820 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16821 hardcode_minus_L_GCJ=yes
16822
16823 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16824 # that the semantics of dynamic libraries on AmigaOS, at least up
16825 # to version 4, is to share data among multiple programs linked
16826 # with the same dynamic library. Since this doesn't match the
16827 # behavior of shared libraries on other platforms, we can't use
16828 # them.
16829 ld_shlibs_GCJ=no
16830 ;;
16831
16832 beos*)
16833 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16834 allow_undefined_flag_GCJ=unsupported
16835 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16836 # support --undefined. This deserves some investigation. FIXME
16837 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16838 else
16839 ld_shlibs_GCJ=no
16840 fi
16841 ;;
16842
16843 cygwin* | mingw* | pw32*)
16844 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16845 # as there is no search path for DLLs.
16846 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16847 allow_undefined_flag_GCJ=unsupported
16848 always_export_symbols_GCJ=no
16849 enable_shared_with_static_runtimes_GCJ=yes
16850 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16851
16852 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16853 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16854 # If the export-symbols file already is a .def file (1st line
16855 # is EXPORTS), use it as is; otherwise, prepend...
16856 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16857 cp $export_symbols $output_objdir/$soname.def;
16858 else
16859 echo EXPORTS > $output_objdir/$soname.def;
16860 cat $export_symbols >> $output_objdir/$soname.def;
16861 fi~
16862 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16863 else
16864 ld_shlibs_GCJ=no
16865 fi
16866 ;;
16867
16868 interix3*)
16869 hardcode_direct_GCJ=no
16870 hardcode_shlibpath_var_GCJ=no
16871 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16872 export_dynamic_flag_spec_GCJ='${wl}-E'
16873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16874 # Instead, shared libraries are loaded at an image base (0x10000000 by
16875 # default) and relocated if they conflict, which is a slow very memory
16876 # consuming and fragmenting process. To avoid this, we pick a random,
16877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16879 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'
16880 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'
16881 ;;
16882
16883 linux*)
16884 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16885 tmp_addflag=
16886 case $cc_basename,$host_cpu in
16887 pgcc*) # Portland Group C compiler
16888 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'
16889 tmp_addflag=' $pic_flag'
16890 ;;
16891 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16892 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'
16893 tmp_addflag=' $pic_flag -Mnomain' ;;
16894 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16895 tmp_addflag=' -i_dynamic' ;;
16896 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16897 tmp_addflag=' -i_dynamic -nofor_main' ;;
16898 ifc* | ifort*) # Intel Fortran compiler
16899 tmp_addflag=' -nofor_main' ;;
16900 esac
16901 archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16902
16903 if test $supports_anon_versioning = yes; then
16904 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16905 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16906 $echo "local: *; };" >> $output_objdir/$libname.ver~
16907 $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16908 fi
16909 else
16910 ld_shlibs_GCJ=no
16911 fi
16912 ;;
16913
16914 netbsd*)
16915 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16916 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16917 wlarc=
16918 else
16919 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16920 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16921 fi
16922 ;;
16923
16924 solaris*)
16925 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16926 ld_shlibs_GCJ=no
16927 cat <<EOF 1>&2
16928
16929*** Warning: The releases 2.8.* of the GNU linker cannot reliably
16930*** create shared libraries on Solaris systems. Therefore, libtool
16931*** is disabling shared libraries support. We urge you to upgrade GNU
16932*** binutils to release 2.9.1 or newer. Another option is to modify
16933*** your PATH or compiler configuration so that the native linker is
16934*** used, and then restart.
16935
16936EOF
16937 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16938 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16939 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16940 else
16941 ld_shlibs_GCJ=no
16942 fi
16943 ;;
16944
16945 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16946 case `$LD -v 2>&1` in
16947 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16948 ld_shlibs_GCJ=no
16949 cat <<_LT_EOF 1>&2
16950
16951*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16952*** reliably create shared libraries on SCO systems. Therefore, libtool
16953*** is disabling shared libraries support. We urge you to upgrade GNU
16954*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16955*** your PATH or compiler configuration so that the native linker is
16956*** used, and then restart.
16957
16958_LT_EOF
16959 ;;
16960 *)
16961 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16962 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16963 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16964 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16965 else
16966 ld_shlibs_GCJ=no
16967 fi
16968 ;;
16969 esac
16970 ;;
16971
16972 sunos4*)
16973 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16974 wlarc=
16975 hardcode_direct_GCJ=yes
16976 hardcode_shlibpath_var_GCJ=no
16977 ;;
16978
16979 *)
16980 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16981 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16982 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16983 else
16984 ld_shlibs_GCJ=no
16985 fi
16986 ;;
16987 esac
16988
16989 if test "$ld_shlibs_GCJ" = no; then
16990 runpath_var=
16991 hardcode_libdir_flag_spec_GCJ=
16992 export_dynamic_flag_spec_GCJ=
16993 whole_archive_flag_spec_GCJ=
16994 fi
16995 else
16996 # PORTME fill in a description of your system's linker (not GNU ld)
16997 case $host_os in
16998 aix3*)
16999 allow_undefined_flag_GCJ=unsupported
17000 always_export_symbols_GCJ=yes
17001 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'
17002 # Note: this linker hardcodes the directories in LIBPATH if there
17003 # are no directories specified by -L.
17004 hardcode_minus_L_GCJ=yes
17005 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17006 # Neither direct hardcoding nor static linking is supported with a
17007 # broken collect2.
17008 hardcode_direct_GCJ=unsupported
17009 fi
17010 ;;
17011
17012 aix4* | aix5*)
17013 if test "$host_cpu" = ia64; then
17014 # On IA64, the linker does run time linking by default, so we don't
17015 # have to do anything special.
17016 aix_use_runtimelinking=no
17017 exp_sym_flag='-Bexport'
17018 no_entry_flag=""
17019 else
17020 # If we're using GNU nm, then we don't want the "-C" option.
17021 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17022 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17023 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'
17024 else
17025 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'
17026 fi
17027 aix_use_runtimelinking=no
17028
17029 # Test if we are trying to use run time linking or normal
17030 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17031 # need to do runtime linking.
17032 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
17033 for ld_flag in $LDFLAGS; do
17034 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17035 aix_use_runtimelinking=yes
17036 break
17037 fi
17038 done
17039 ;;
17040 esac
17041
17042 exp_sym_flag='-bexport'
17043 no_entry_flag='-bnoentry'
17044 fi
17045
17046 # When large executables or shared objects are built, AIX ld can
17047 # have problems creating the table of contents. If linking a library
17048 # or program results in "error TOC overflow" add -mminimal-toc to
17049 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17050 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17051
17052 archive_cmds_GCJ=''
17053 hardcode_direct_GCJ=yes
17054 hardcode_libdir_separator_GCJ=':'
17055 link_all_deplibs_GCJ=yes
17056
17057 if test "$GCC" = yes; then
17058 case $host_os in aix4.[012]|aix4.[012].*)
17059 # We only want to do this on AIX 4.2 and lower, the check
17060 # below for broken collect2 doesn't work under 4.3+
17061 collect2name=`${CC} -print-prog-name=collect2`
17062 if test -f "$collect2name" && \
17063 strings "$collect2name" | grep resolve_lib_name >/dev/null
17064 then
17065 # We have reworked collect2
17066 hardcode_direct_GCJ=yes
17067 else
17068 # We have old collect2
17069 hardcode_direct_GCJ=unsupported
17070 # It fails to find uninstalled libraries when the uninstalled
17071 # path is not listed in the libpath. Setting hardcode_minus_L
17072 # to unsupported forces relinking
17073 hardcode_minus_L_GCJ=yes
17074 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17075 hardcode_libdir_separator_GCJ=
17076 fi
17077 ;;
17078 esac
17079 shared_flag='-shared'
17080 if test "$aix_use_runtimelinking" = yes; then
17081 shared_flag="$shared_flag "'${wl}-G'
17082 fi
17083 else
17084 # not using gcc
17085 if test "$host_cpu" = ia64; then
17086 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17087 # chokes on -Wl,-G. The following line is correct:
17088 shared_flag='-G'
17089 else
17090 if test "$aix_use_runtimelinking" = yes; then
17091 shared_flag='${wl}-G'
17092 else
17093 shared_flag='${wl}-bM:SRE'
17094 fi
17095 fi
17096 fi
17097
17098 # It seems that -bexpall does not export symbols beginning with
17099 # underscore (_), so it is better to generate a list of symbols to export.
17100 always_export_symbols_GCJ=yes
17101 if test "$aix_use_runtimelinking" = yes; then
17102 # Warning - without using the other runtime loading flags (-brtl),
17103 # -berok will link without error, but may produce a broken library.
17104 allow_undefined_flag_GCJ='-berok'
17105 # Determine the default libpath from the value encoded in an empty executable.
17106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17107/* end confdefs.h. */
17108
17109int
17110main ()
17111{
17112
17113 ;
17114 return 0;
17115}
17116_ACEOF
17117if ac_fn_c_try_link "$LINENO"; then :
17118
17119aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17120}'`
17121# Check for a 64-bit object if we didn't find anything.
17122if 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; }
17123}'`; fi
17124fi
17125rm -f core conftest.err conftest.$ac_objext \
17126 conftest$ac_exeext conftest.$ac_ext
17127if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17128
17129 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17130 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"
17131 else
17132 if test "$host_cpu" = ia64; then
17133 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17134 allow_undefined_flag_GCJ="-z nodefs"
17135 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"
17136 else
17137 # Determine the default libpath from the value encoded in an empty executable.
17138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17139/* end confdefs.h. */
17140
17141int
17142main ()
17143{
17144
17145 ;
17146 return 0;
17147}
17148_ACEOF
17149if ac_fn_c_try_link "$LINENO"; then :
17150
17151aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
17152}'`
17153# Check for a 64-bit object if we didn't find anything.
17154if 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; }
17155}'`; fi
17156fi
17157rm -f core conftest.err conftest.$ac_objext \
17158 conftest$ac_exeext conftest.$ac_ext
17159if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17160
17161 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17162 # Warning - without using the other run time loading flags,
17163 # -berok will link without error, but may produce a broken library.
17164 no_undefined_flag_GCJ=' ${wl}-bernotok'
17165 allow_undefined_flag_GCJ=' ${wl}-berok'
17166 # Exported symbols can be pulled into shared objects from archives
17167 whole_archive_flag_spec_GCJ='$convenience'
17168 archive_cmds_need_lc_GCJ=yes
17169 # This is similar to how AIX traditionally builds its shared libraries.
17170 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'
17171 fi
17172 fi
17173 ;;
17174
17175 amigaos*)
17176 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)'
17177 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17178 hardcode_minus_L_GCJ=yes
17179 # see comment about different semantics on the GNU ld section
17180 ld_shlibs_GCJ=no
17181 ;;
17182
17183 bsdi[45]*)
17184 export_dynamic_flag_spec_GCJ=-rdynamic
17185 ;;
17186
17187 cygwin* | mingw* | pw32*)
17188 # When not using gcc, we currently assume that we are using
17189 # Microsoft Visual C++.
17190 # hardcode_libdir_flag_spec is actually meaningless, as there is
17191 # no search path for DLLs.
17192 hardcode_libdir_flag_spec_GCJ=' '
17193 allow_undefined_flag_GCJ=unsupported
17194 # Tell ltmain to make .lib files, not .a files.
17195 libext=lib
17196 # Tell ltmain to make .dll files, not .so files.
17197 shrext_cmds=".dll"
17198 # FIXME: Setting linknames here is a bad hack.
17199 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17200 # The linker will automatically build a .lib file if we build a DLL.
17201 old_archive_From_new_cmds_GCJ='true'
17202 # FIXME: Should let the user specify the lib program.
17203 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
17204 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17205 enable_shared_with_static_runtimes_GCJ=yes
17206 ;;
17207
17208 darwin* | rhapsody*)
17209 case $host_os in
17210 rhapsody* | darwin1.[012])
17211 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17212 ;;
17213 *) # Darwin 1.3 on
17214 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17215 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17216 else
17217 case ${MACOSX_DEPLOYMENT_TARGET} in
17218 10.[012])
17219 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17220 ;;
17221 10.*)
17222 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17223 ;;
17224 esac
17225 fi
17226 ;;
17227 esac
17228 archive_cmds_need_lc_GCJ=no
17229 hardcode_direct_GCJ=no
17230 hardcode_automatic_GCJ=yes
17231 hardcode_shlibpath_var_GCJ=unsupported
17232 whole_archive_flag_spec_GCJ=''
17233 link_all_deplibs_GCJ=yes
17234 if test "$GCC" = yes ; then
17235 output_verbose_link_cmd='echo'
17236 archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
17237 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17238 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17239 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}'
17240 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}'
17241 else
17242 case $cc_basename in
17243 xlc*)
17244 output_verbose_link_cmd='echo'
17245 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
17246 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17247 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17248 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}'
17249 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}'
17250 ;;
17251 *)
17252 ld_shlibs_GCJ=no
17253 ;;
17254 esac
17255 fi
17256 ;;
17257
17258 dgux*)
17259 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17260 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17261 hardcode_shlibpath_var_GCJ=no
17262 ;;
17263
17264 freebsd1*)
17265 ld_shlibs_GCJ=no
17266 ;;
17267
17268 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17269 # support. Future versions do this automatically, but an explicit c++rt0.o
17270 # does not break anything, and helps significantly (at the cost of a little
17271 # extra space).
17272 freebsd2.2*)
17273 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17274 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17275 hardcode_direct_GCJ=yes
17276 hardcode_shlibpath_var_GCJ=no
17277 ;;
17278
17279 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17280 freebsd2*)
17281 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17282 hardcode_direct_GCJ=yes
17283 hardcode_minus_L_GCJ=yes
17284 hardcode_shlibpath_var_GCJ=no
17285 ;;
17286
17287 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17288 freebsd* | kfreebsd*-gnu | dragonfly*)
17289 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17290 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17291 hardcode_direct_GCJ=yes
17292 hardcode_shlibpath_var_GCJ=no
17293 ;;
17294
17295 hpux9*)
17296 if test "$GCC" = yes; then
17297 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'
17298 else
17299 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'
17300 fi
17301 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17302 hardcode_libdir_separator_GCJ=:
17303 hardcode_direct_GCJ=yes
17304
17305 # hardcode_minus_L: Not really in the search PATH,
17306 # but as the default location of the library.
17307 hardcode_minus_L_GCJ=yes
17308 export_dynamic_flag_spec_GCJ='${wl}-E'
17309 ;;
17310
17311 hpux10*)
17312 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17313 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17314 else
17315 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17316 fi
17317 if test "$with_gnu_ld" = no; then
17318 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17319 hardcode_libdir_separator_GCJ=:
17320
17321 hardcode_direct_GCJ=yes
17322 export_dynamic_flag_spec_GCJ='${wl}-E'
17323
17324 # hardcode_minus_L: Not really in the search PATH,
17325 # but as the default location of the library.
17326 hardcode_minus_L_GCJ=yes
17327 fi
17328 ;;
17329
17330 hpux11*)
17331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17332 case $host_cpu in
17333 hppa*64*)
17334 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17335 ;;
17336 ia64*)
17337 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17338 ;;
17339 *)
17340 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17341 ;;
17342 esac
17343 else
17344 case $host_cpu in
17345 hppa*64*)
17346 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17347 ;;
17348 ia64*)
17349 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17350 ;;
17351 *)
17352 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17353 ;;
17354 esac
17355 fi
17356 if test "$with_gnu_ld" = no; then
17357 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17358 hardcode_libdir_separator_GCJ=:
17359
17360 case $host_cpu in
17361 hppa*64*|ia64*)
17362 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17363 hardcode_direct_GCJ=no
17364 hardcode_shlibpath_var_GCJ=no
17365 ;;
17366 *)
17367 hardcode_direct_GCJ=yes
17368 export_dynamic_flag_spec_GCJ='${wl}-E'
17369
17370 # hardcode_minus_L: Not really in the search PATH,
17371 # but as the default location of the library.
17372 hardcode_minus_L_GCJ=yes
17373 ;;
17374 esac
17375 fi
17376 ;;
17377
17378 irix5* | irix6* | nonstopux*)
17379 if test "$GCC" = yes; then
17380 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'
17381 else
17382 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'
17383 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17384 fi
17385 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17386 hardcode_libdir_separator_GCJ=:
17387 link_all_deplibs_GCJ=yes
17388 ;;
17389
17390 netbsd*)
17391 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17392 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17393 else
17394 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17395 fi
17396 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17397 hardcode_direct_GCJ=yes
17398 hardcode_shlibpath_var_GCJ=no
17399 ;;
17400
17401 newsos6)
17402 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17403 hardcode_direct_GCJ=yes
17404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17405 hardcode_libdir_separator_GCJ=:
17406 hardcode_shlibpath_var_GCJ=no
17407 ;;
17408
17409 openbsd*)
17410 hardcode_direct_GCJ=yes
17411 hardcode_shlibpath_var_GCJ=no
17412 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17413 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17414 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17415 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17416 export_dynamic_flag_spec_GCJ='${wl}-E'
17417 else
17418 case $host_os in
17419 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17420 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17421 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17422 ;;
17423 *)
17424 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17425 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17426 ;;
17427 esac
17428 fi
17429 ;;
17430
17431 os2*)
17432 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17433 hardcode_minus_L_GCJ=yes
17434 allow_undefined_flag_GCJ=unsupported
17435 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'
17436 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17437 ;;
17438
17439 osf3*)
17440 if test "$GCC" = yes; then
17441 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17442 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'
17443 else
17444 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17445 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'
17446 fi
17447 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17448 hardcode_libdir_separator_GCJ=:
17449 ;;
17450
17451 osf4* | osf5*) # as osf3* with the addition of -msym flag
17452 if test "$GCC" = yes; then
17453 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17454 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'
17455 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17456 else
17457 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17458 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'
17459 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~
17460 $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'
17461
17462 # Both c and cxx compiler support -rpath directly
17463 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17464 fi
17465 hardcode_libdir_separator_GCJ=:
17466 ;;
17467
17468 solaris*)
17469 no_undefined_flag_GCJ=' -z text'
17470 if test "$GCC" = yes; then
17471 wlarc='${wl}'
17472 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17473 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17474 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17475 else
17476 wlarc=''
17477 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17478 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17479 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17480 fi
17481 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17482 hardcode_shlibpath_var_GCJ=no
17483 case $host_os in
17484 solaris2.[0-5] | solaris2.[0-5].*) ;;
17485 *)
17486 # The compiler driver will combine linker options so we
17487 # cannot just pass the convience library names through
17488 # without $wl, iff we do not link with $LD.
17489 # Luckily, gcc supports the same syntax we need for Sun Studio.
17490 # Supported since Solaris 2.6 (maybe 2.5.1?)
17491 case $wlarc in
17492 '')
17493 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
17494 *)
17495 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' ;;
17496 esac ;;
17497 esac
17498 link_all_deplibs_GCJ=yes
17499 ;;
17500
17501 sunos4*)
17502 if test "x$host_vendor" = xsequent; then
17503 # Use $CC to link under sequent, because it throws in some extra .o
17504 # files that make .init and .fini sections work.
17505 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17506 else
17507 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17508 fi
17509 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17510 hardcode_direct_GCJ=yes
17511 hardcode_minus_L_GCJ=yes
17512 hardcode_shlibpath_var_GCJ=no
17513 ;;
17514
17515 sysv4)
17516 case $host_vendor in
17517 sni)
17518 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17519 hardcode_direct_GCJ=yes # is this really true???
17520 ;;
17521 siemens)
17522 ## LD is ld it makes a PLAMLIB
17523 ## CC just makes a GrossModule.
17524 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17525 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17526 hardcode_direct_GCJ=no
17527 ;;
17528 motorola)
17529 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17530 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17531 ;;
17532 esac
17533 runpath_var='LD_RUN_PATH'
17534 hardcode_shlibpath_var_GCJ=no
17535 ;;
17536
17537 sysv4.3*)
17538 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17539 hardcode_shlibpath_var_GCJ=no
17540 export_dynamic_flag_spec_GCJ='-Bexport'
17541 ;;
17542
17543 sysv4*MP*)
17544 if test -d /usr/nec; then
17545 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17546 hardcode_shlibpath_var_GCJ=no
17547 runpath_var=LD_RUN_PATH
17548 hardcode_runpath_var=yes
17549 ld_shlibs_GCJ=yes
17550 fi
17551 ;;
17552
17553 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*)
17554 no_undefined_flag_GCJ='${wl}-z,text'
17555 archive_cmds_need_lc_GCJ=no
17556 hardcode_shlibpath_var_GCJ=no
17557 runpath_var='LD_RUN_PATH'
17558
17559 if test "$GCC" = yes; then
17560 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17561 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17562 else
17563 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17564 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17565 fi
17566 ;;
17567
17568 sysv5* | sco3.2v5* | sco5v6*)
17569 # Note: We can NOT use -z defs as we might desire, because we do not
17570 # link with -lc, and that would cause any symbols used from libc to
17571 # always be unresolved, which means just about no library would
17572 # ever link correctly. If we're not using GNU ld we use -z text
17573 # though, which does catch some bad symbols but isn't as heavy-handed
17574 # as -z defs.
17575 no_undefined_flag_GCJ='${wl}-z,text'
17576 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17577 archive_cmds_need_lc_GCJ=no
17578 hardcode_shlibpath_var_GCJ=no
17579 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17580 hardcode_libdir_separator_GCJ=':'
17581 link_all_deplibs_GCJ=yes
17582 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17583 runpath_var='LD_RUN_PATH'
17584
17585 if test "$GCC" = yes; then
17586 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17588 else
17589 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17590 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17591 fi
17592 ;;
17593
17594 uts4*)
17595 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17596 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17597 hardcode_shlibpath_var_GCJ=no
17598 ;;
17599
17600 *)
17601 ld_shlibs_GCJ=no
17602 ;;
17603 esac
17604 fi
17605
17606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_GCJ" >&5
17607$as_echo "$ld_shlibs_GCJ" >&6; }
17608test "$ld_shlibs_GCJ" = no && can_build_shared=no
17609
17610#
17611# Do we need to explicitly link libc?
17612#
17613case "x$archive_cmds_need_lc_GCJ" in
17614x|xyes)
17615 # Assume -lc should be added
17616 archive_cmds_need_lc_GCJ=yes
17617
17618 if test "$enable_shared" = yes && test "$GCC" = yes; then
17619 case $archive_cmds_GCJ in
17620 *'~'*)
17621 # FIXME: we may have to deal with multi-command sequences.
17622 ;;
17623 '$CC '*)
17624 # Test whether the compiler implicitly links with -lc since on some
17625 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17626 # to ld, don't add -lc before -lgcc.
17627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17628$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17629 $rm conftest*
17630 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17631
17632 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17633 (eval $ac_compile) 2>&5
17634 ac_status=$?
17635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17636 test $ac_status = 0; } 2>conftest.err; then
17637 soname=conftest
17638 lib=conftest
17639 libobjs=conftest.$ac_objext
17640 deplibs=
17641 wl=$lt_prog_compiler_wl_GCJ
17642 pic_flag=$lt_prog_compiler_pic_GCJ
17643 compiler_flags=-v
17644 linker_flags=-v
17645 verstring=
17646 output_objdir=.
17647 libname=conftest
17648 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17649 allow_undefined_flag_GCJ=
17650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17651 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17652 ac_status=$?
17653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17654 test $ac_status = 0; }
17655 then
17656 archive_cmds_need_lc_GCJ=no
17657 else
17658 archive_cmds_need_lc_GCJ=yes
17659 fi
17660 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17661 else
17662 cat conftest.err 1>&5
17663 fi
17664 $rm conftest*
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_GCJ" >&5
17666$as_echo "$archive_cmds_need_lc_GCJ" >&6; }
17667 ;;
17668 esac
17669 fi
17670 ;;
17671esac
17672
17673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17674$as_echo_n "checking dynamic linker characteristics... " >&6; }
17675library_names_spec=
17676libname_spec='lib$name'
17677soname_spec=
17678shrext_cmds=".so"
17679postinstall_cmds=
17680postuninstall_cmds=
17681finish_cmds=
17682finish_eval=
17683shlibpath_var=
17684shlibpath_overrides_runpath=unknown
17685version_type=none
17686dynamic_linker="$host_os ld.so"
17687sys_lib_dlsearch_path_spec="/lib /usr/lib"
17688if test "$GCC" = yes; then
17689 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17690 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
17691 # if the path contains ";" then we assume it to be the separator
17692 # otherwise default to the standard path separator (i.e. ":") - it is
17693 # assumed that no part of a normal pathname contains ";" but that should
17694 # okay in the real world where ";" in dirpaths is itself problematic.
17695 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17696 else
17697 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17698 fi
17699else
17700 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17701fi
17702need_lib_prefix=unknown
17703hardcode_into_libs=no
17704
17705# when you set need_version to no, make sure it does not cause -set_version
17706# flags to be left without arguments
17707need_version=unknown
17708
17709case $host_os in
17710aix3*)
17711 version_type=linux
17712 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17713 shlibpath_var=LIBPATH
17714
17715 # AIX 3 has no versioning support, so we append a major version to the name.
17716 soname_spec='${libname}${release}${shared_ext}$major'
17717 ;;
17718
17719aix4* | aix5*)
17720 version_type=linux
17721 need_lib_prefix=no
17722 need_version=no
17723 hardcode_into_libs=yes
17724 if test "$host_cpu" = ia64; then
17725 # AIX 5 supports IA64
17726 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17727 shlibpath_var=LD_LIBRARY_PATH
17728 else
17729 # With GCC up to 2.95.x, collect2 would create an import file
17730 # for dependence libraries. The import file would start with
17731 # the line `#! .'. This would cause the generated library to
17732 # depend on `.', always an invalid library. This was fixed in
17733 # development snapshots of GCC prior to 3.0.
17734 case $host_os in
17735 aix4 | aix4.[01] | aix4.[01].*)
17736 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17737 echo ' yes '
17738 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17739 :
17740 else
17741 can_build_shared=no
17742 fi
17743 ;;
17744 esac
17745 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17746 # soname into executable. Probably we can add versioning support to
17747 # collect2, so additional links can be useful in future.
17748 if test "$aix_use_runtimelinking" = yes; then
17749 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17750 # instead of lib<name>.a to let people know that these are not
17751 # typical AIX shared libraries.
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 else
17754 # We preserve .a as extension for shared libraries through AIX4.2
17755 # and later when we are not doing run time linking.
17756 library_names_spec='${libname}${release}.a $libname.a'
17757 soname_spec='${libname}${release}${shared_ext}$major'
17758 fi
17759 shlibpath_var=LIBPATH
17760 fi
17761 ;;
17762
17763amigaos*)
17764 library_names_spec='$libname.ixlibrary $libname.a'
17765 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17766 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'
17767 ;;
17768
17769beos*)
17770 library_names_spec='${libname}${shared_ext}'
17771 dynamic_linker="$host_os ld.so"
17772 shlibpath_var=LIBRARY_PATH
17773 ;;
17774
17775bsdi[45]*)
17776 version_type=linux
17777 need_version=no
17778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17779 soname_spec='${libname}${release}${shared_ext}$major'
17780 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17781 shlibpath_var=LD_LIBRARY_PATH
17782 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17783 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17784 # the default ld.so.conf also contains /usr/contrib/lib and
17785 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17786 # libtool to hard-code these into programs
17787 ;;
17788
17789cygwin* | mingw* | pw32*)
17790 version_type=windows
17791 shrext_cmds=".dll"
17792 need_version=no
17793 need_lib_prefix=no
17794
17795 case $GCC,$host_os in
17796 yes,cygwin* | yes,mingw* | yes,pw32*)
17797 library_names_spec='$libname.dll.a'
17798 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17799 postinstall_cmds='base_file=`basename \${file}`~
17800 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17801 dldir=$destdir/`dirname \$dlpath`~
17802 test -d \$dldir || mkdir -p \$dldir~
17803 $install_prog $dir/$dlname \$dldir/$dlname~
17804 chmod a+x \$dldir/$dlname'
17805 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17806 dlpath=$dir/\$dldll~
17807 $rm \$dlpath'
17808 shlibpath_overrides_runpath=yes
17809
17810 case $host_os in
17811 cygwin*)
17812 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17813 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17814 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17815 ;;
17816 mingw*)
17817 # MinGW DLLs use traditional 'lib' prefix
17818 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17819 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17820 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17821 # It is most probably a Windows format PATH printed by
17822 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17823 # path with ; separators, and with drive letters. We can handle the
17824 # drive letters (cygwin fileutils understands them), so leave them,
17825 # especially as we might pass files found there to a mingw objdump,
17826 # which wouldn't understand a cygwinified path. Ahh.
17827 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17828 else
17829 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17830 fi
17831 ;;
17832 pw32*)
17833 # pw32 DLLs use 'pw' prefix rather than 'lib'
17834 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17835 ;;
17836 esac
17837 ;;
17838
17839 *)
17840 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17841 ;;
17842 esac
17843 dynamic_linker='Win32 ld.exe'
17844 # FIXME: first we should search . and the directory the executable is in
17845 shlibpath_var=PATH
17846 ;;
17847
17848darwin* | rhapsody*)
17849 dynamic_linker="$host_os dyld"
17850 version_type=darwin
17851 need_lib_prefix=no
17852 need_version=no
17853 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17854 soname_spec='${libname}${release}${major}$shared_ext'
17855 shlibpath_overrides_runpath=yes
17856 shlibpath_var=DYLD_LIBRARY_PATH
17857 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17858 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
17859 if test "$GCC" = yes; then
17860 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"`
17861 else
17862 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
17863 fi
17864 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17865 ;;
17866
17867dgux*)
17868 version_type=linux
17869 need_lib_prefix=no
17870 need_version=no
17871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17872 soname_spec='${libname}${release}${shared_ext}$major'
17873 shlibpath_var=LD_LIBRARY_PATH
17874 ;;
17875
17876freebsd1*)
17877 dynamic_linker=no
17878 ;;
17879
17880kfreebsd*-gnu)
17881 version_type=linux
17882 need_lib_prefix=no
17883 need_version=no
17884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17885 soname_spec='${libname}${release}${shared_ext}$major'
17886 shlibpath_var=LD_LIBRARY_PATH
17887 shlibpath_overrides_runpath=no
17888 hardcode_into_libs=yes
17889 dynamic_linker='GNU ld.so'
17890 ;;
17891
17892freebsd* | dragonfly*)
17893 # DragonFly does not have aout. When/if they implement a new
17894 # versioning mechanism, adjust this.
17895 if test -x /usr/bin/objformat; then
17896 objformat=`/usr/bin/objformat`
17897 else
17898 case $host_os in
17899 freebsd[123]*) objformat=aout ;;
17900 *) objformat=elf ;;
17901 esac
17902 fi
17903 version_type=freebsd-$objformat
17904 case $version_type in
17905 freebsd-elf*)
17906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17907 need_version=no
17908 need_lib_prefix=no
17909 ;;
17910 freebsd-*)
17911 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17912 need_version=yes
17913 ;;
17914 esac
17915 shlibpath_var=LD_LIBRARY_PATH
17916 case $host_os in
17917 freebsd2*)
17918 shlibpath_overrides_runpath=yes
17919 ;;
17920 freebsd3.[01]* | freebsdelf3.[01]*)
17921 shlibpath_overrides_runpath=yes
17922 hardcode_into_libs=yes
17923 ;;
17924 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17925 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17926 shlibpath_overrides_runpath=no
17927 hardcode_into_libs=yes
17928 ;;
17929 freebsd*) # from 4.6 on
17930 shlibpath_overrides_runpath=yes
17931 hardcode_into_libs=yes
17932 ;;
17933 esac
17934 ;;
17935
17936gnu*)
17937 version_type=linux
17938 need_lib_prefix=no
17939 need_version=no
17940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17941 soname_spec='${libname}${release}${shared_ext}$major'
17942 shlibpath_var=LD_LIBRARY_PATH
17943 hardcode_into_libs=yes
17944 ;;
17945
17946hpux9* | hpux10* | hpux11*)
17947 # Give a soname corresponding to the major version so that dld.sl refuses to
17948 # link against other versions.
17949 version_type=sunos
17950 need_lib_prefix=no
17951 need_version=no
17952 case $host_cpu in
17953 ia64*)
17954 shrext_cmds='.so'
17955 hardcode_into_libs=yes
17956 dynamic_linker="$host_os dld.so"
17957 shlibpath_var=LD_LIBRARY_PATH
17958 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17960 soname_spec='${libname}${release}${shared_ext}$major'
17961 if test "X$HPUX_IA64_MODE" = X32; then
17962 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17963 else
17964 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17965 fi
17966 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17967 ;;
17968 hppa*64*)
17969 shrext_cmds='.sl'
17970 hardcode_into_libs=yes
17971 dynamic_linker="$host_os dld.sl"
17972 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17973 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17975 soname_spec='${libname}${release}${shared_ext}$major'
17976 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17978 ;;
17979 *)
17980 shrext_cmds='.sl'
17981 dynamic_linker="$host_os dld.sl"
17982 shlibpath_var=SHLIB_PATH
17983 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17985 soname_spec='${libname}${release}${shared_ext}$major'
17986 ;;
17987 esac
17988 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17989 postinstall_cmds='chmod 555 $lib'
17990 ;;
17991
17992interix3*)
17993 version_type=linux
17994 need_lib_prefix=no
17995 need_version=no
17996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17997 soname_spec='${libname}${release}${shared_ext}$major'
17998 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17999 shlibpath_var=LD_LIBRARY_PATH
18000 shlibpath_overrides_runpath=no
18001 hardcode_into_libs=yes
18002 ;;
18003
18004irix5* | irix6* | nonstopux*)
18005 case $host_os in
18006 nonstopux*) version_type=nonstopux ;;
18007 *)
18008 if test "$lt_cv_prog_gnu_ld" = yes; then
18009 version_type=linux
18010 else
18011 version_type=irix
18012 fi ;;
18013 esac
18014 need_lib_prefix=no
18015 need_version=no
18016 soname_spec='${libname}${release}${shared_ext}$major'
18017 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18018 case $host_os in
18019 irix5* | nonstopux*)
18020 libsuff= shlibsuff=
18021 ;;
18022 *)
18023 case $LD in # libtool.m4 will add one of these switches to LD
18024 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18025 libsuff= shlibsuff= libmagic=32-bit;;
18026 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18027 libsuff=32 shlibsuff=N32 libmagic=N32;;
18028 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18029 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18030 *) libsuff= shlibsuff= libmagic=never-match;;
18031 esac
18032 ;;
18033 esac
18034 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18035 shlibpath_overrides_runpath=no
18036 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18037 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18038 hardcode_into_libs=yes
18039 ;;
18040
18041# No shared lib support for Linux oldld, aout, or coff.
18042linux*oldld* | linux*aout* | linux*coff*)
18043 dynamic_linker=no
18044 ;;
18045
18046# This must be Linux ELF.
18047linux*)
18048 version_type=linux
18049 need_lib_prefix=no
18050 need_version=no
18051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18052 soname_spec='${libname}${release}${shared_ext}$major'
18053 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18054 shlibpath_var=LD_LIBRARY_PATH
18055 shlibpath_overrides_runpath=no
18056 # This implies no fast_install, which is unacceptable.
18057 # Some rework will be needed to allow for fast_install
18058 # before this can be enabled.
18059 hardcode_into_libs=yes
18060
18061 # Append ld.so.conf contents to the search path
18062 if test -f /etc/ld.so.conf; then
18063 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' ' '`
18064 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18065 fi
18066
18067 # We used to test for /lib/ld.so.1 and disable shared libraries on
18068 # powerpc, because MkLinux only supported shared libraries with the
18069 # GNU dynamic linker. Since this was broken with cross compilers,
18070 # most powerpc-linux boxes support dynamic linking these days and
18071 # people can always --disable-shared, the test was removed, and we
18072 # assume the GNU/Linux dynamic linker is in use.
18073 dynamic_linker='GNU/Linux ld.so'
18074 ;;
18075
18076knetbsd*-gnu)
18077 version_type=linux
18078 need_lib_prefix=no
18079 need_version=no
18080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18081 soname_spec='${libname}${release}${shared_ext}$major'
18082 shlibpath_var=LD_LIBRARY_PATH
18083 shlibpath_overrides_runpath=no
18084 hardcode_into_libs=yes
18085 dynamic_linker='GNU ld.so'
18086 ;;
18087
18088netbsd*)
18089 version_type=sunos
18090 need_lib_prefix=no
18091 need_version=no
18092 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18094 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18095 dynamic_linker='NetBSD (a.out) ld.so'
18096 else
18097 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18098 soname_spec='${libname}${release}${shared_ext}$major'
18099 dynamic_linker='NetBSD ld.elf_so'
18100 fi
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 hardcode_into_libs=yes
18104 ;;
18105
18106newsos6)
18107 version_type=linux
18108 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18109 shlibpath_var=LD_LIBRARY_PATH
18110 shlibpath_overrides_runpath=yes
18111 ;;
18112
18113nto-qnx*)
18114 version_type=linux
18115 need_lib_prefix=no
18116 need_version=no
18117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18118 soname_spec='${libname}${release}${shared_ext}$major'
18119 shlibpath_var=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath=yes
18121 ;;
18122
18123openbsd*)
18124 version_type=sunos
18125 sys_lib_dlsearch_path_spec="/usr/lib"
18126 need_lib_prefix=no
18127 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18128 case $host_os in
18129 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18130 *) need_version=no ;;
18131 esac
18132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18133 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18134 shlibpath_var=LD_LIBRARY_PATH
18135 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18136 case $host_os in
18137 openbsd2.[89] | openbsd2.[89].*)
18138 shlibpath_overrides_runpath=no
18139 ;;
18140 *)
18141 shlibpath_overrides_runpath=yes
18142 ;;
18143 esac
18144 else
18145 shlibpath_overrides_runpath=yes
18146 fi
18147 ;;
18148
18149os2*)
18150 libname_spec='$name'
18151 shrext_cmds=".dll"
18152 need_lib_prefix=no
18153 library_names_spec='$libname${shared_ext} $libname.a'
18154 dynamic_linker='OS/2 ld.exe'
18155 shlibpath_var=LIBPATH
18156 ;;
18157
18158osf3* | osf4* | osf5*)
18159 version_type=osf
18160 need_lib_prefix=no
18161 need_version=no
18162 soname_spec='${libname}${release}${shared_ext}$major'
18163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18164 shlibpath_var=LD_LIBRARY_PATH
18165 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18166 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18167 ;;
18168
18169solaris*)
18170 version_type=linux
18171 need_lib_prefix=no
18172 need_version=no
18173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18174 soname_spec='${libname}${release}${shared_ext}$major'
18175 shlibpath_var=LD_LIBRARY_PATH
18176 shlibpath_overrides_runpath=yes
18177 hardcode_into_libs=yes
18178 # ldd complains unless libraries are executable
18179 postinstall_cmds='chmod +x $lib'
18180 ;;
18181
18182sunos4*)
18183 version_type=sunos
18184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18186 shlibpath_var=LD_LIBRARY_PATH
18187 shlibpath_overrides_runpath=yes
18188 if test "$with_gnu_ld" = yes; then
18189 need_lib_prefix=no
18190 fi
18191 need_version=yes
18192 ;;
18193
18194sysv4 | sysv4.3*)
18195 version_type=linux
18196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18197 soname_spec='${libname}${release}${shared_ext}$major'
18198 shlibpath_var=LD_LIBRARY_PATH
18199 case $host_vendor in
18200 sni)
18201 shlibpath_overrides_runpath=no
18202 need_lib_prefix=no
18203 export_dynamic_flag_spec='${wl}-Blargedynsym'
18204 runpath_var=LD_RUN_PATH
18205 ;;
18206 siemens)
18207 need_lib_prefix=no
18208 ;;
18209 motorola)
18210 need_lib_prefix=no
18211 need_version=no
18212 shlibpath_overrides_runpath=no
18213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18214 ;;
18215 esac
18216 ;;
18217
18218sysv4*MP*)
18219 if test -d /usr/nec ;then
18220 version_type=linux
18221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18222 soname_spec='$libname${shared_ext}.$major'
18223 shlibpath_var=LD_LIBRARY_PATH
18224 fi
18225 ;;
18226
18227sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18228 version_type=freebsd-elf
18229 need_lib_prefix=no
18230 need_version=no
18231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18232 soname_spec='${libname}${release}${shared_ext}$major'
18233 shlibpath_var=LD_LIBRARY_PATH
18234 hardcode_into_libs=yes
18235 if test "$with_gnu_ld" = yes; then
18236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18237 shlibpath_overrides_runpath=no
18238 else
18239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18240 shlibpath_overrides_runpath=yes
18241 case $host_os in
18242 sco3.2v5*)
18243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18244 ;;
18245 esac
18246 fi
18247 sys_lib_dlsearch_path_spec='/usr/lib'
18248 ;;
18249
18250uts4*)
18251 version_type=linux
18252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18253 soname_spec='${libname}${release}${shared_ext}$major'
18254 shlibpath_var=LD_LIBRARY_PATH
18255 ;;
18256
18257*)
18258 dynamic_linker=no
18259 ;;
18260esac
18261{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18262$as_echo "$dynamic_linker" >&6; }
18263test "$dynamic_linker" = no && can_build_shared=no
18264
18265variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18266if test "$GCC" = yes; then
18267 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18268fi
18269
18270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18271$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18272hardcode_action_GCJ=
18273if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18274 test -n "$runpath_var_GCJ" || \
18275 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18276
18277 # We can hardcode non-existant directories.
18278 if test "$hardcode_direct_GCJ" != no &&
18279 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18280 # have to relink, otherwise we might link with an installed library
18281 # when we should be linking with a yet-to-be-installed one
18282 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18283 test "$hardcode_minus_L_GCJ" != no; then
18284 # Linking always hardcodes the temporary library directory.
18285 hardcode_action_GCJ=relink
18286 else
18287 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18288 hardcode_action_GCJ=immediate
18289 fi
18290else
18291 # We cannot hardcode anything, or else we can only hardcode existing
18292 # directories.
18293 hardcode_action_GCJ=unsupported
18294fi
18295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_GCJ" >&5
18296$as_echo "$hardcode_action_GCJ" >&6; }
18297
18298if test "$hardcode_action_GCJ" = relink; then
18299 # Fast installation is not supported
18300 enable_fast_install=no
18301elif test "$shlibpath_overrides_runpath" = yes ||
18302 test "$enable_shared" = no; then
18303 # Fast installation is not necessary
18304 enable_fast_install=needless
18305fi
18306
18307
18308# The else clause should only fire when bootstrapping the
18309# libtool distribution, otherwise you forgot to ship ltmain.sh
18310# with your package, and you will get complaints that there are
18311# no rules to generate ltmain.sh.
18312if test -f "$ltmain"; then
18313 # See if we are running on zsh, and set the options which allow our commands through
18314 # without removal of \ escapes.
18315 if test -n "${ZSH_VERSION+set}" ; then
18316 setopt NO_GLOB_SUBST
18317 fi
18318 # Now quote all the things that may contain metacharacters while being
18319 # careful not to overquote the AC_SUBSTed values. We take copies of the
18320 # variables and quote the copies for generation of the libtool script.
18321 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18322 SED SHELL STRIP \
18323 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18324 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18325 deplibs_check_method reload_flag reload_cmds need_locks \
18326 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18327 lt_cv_sys_global_symbol_to_c_name_address \
18328 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18329 old_postinstall_cmds old_postuninstall_cmds \
18330 compiler_GCJ \
18331 CC_GCJ \
18332 LD_GCJ \
18333 lt_prog_compiler_wl_GCJ \
18334 lt_prog_compiler_pic_GCJ \
18335 lt_prog_compiler_static_GCJ \
18336 lt_prog_compiler_no_builtin_flag_GCJ \
18337 export_dynamic_flag_spec_GCJ \
18338 thread_safe_flag_spec_GCJ \
18339 whole_archive_flag_spec_GCJ \
18340 enable_shared_with_static_runtimes_GCJ \
18341 old_archive_cmds_GCJ \
18342 old_archive_from_new_cmds_GCJ \
18343 predep_objects_GCJ \
18344 postdep_objects_GCJ \
18345 predeps_GCJ \
18346 postdeps_GCJ \
18347 compiler_lib_search_path_GCJ \
18348 archive_cmds_GCJ \
18349 archive_expsym_cmds_GCJ \
18350 postinstall_cmds_GCJ \
18351 postuninstall_cmds_GCJ \
18352 old_archive_from_expsyms_cmds_GCJ \
18353 allow_undefined_flag_GCJ \
18354 no_undefined_flag_GCJ \
18355 export_symbols_cmds_GCJ \
18356 hardcode_libdir_flag_spec_GCJ \
18357 hardcode_libdir_flag_spec_ld_GCJ \
18358 hardcode_libdir_separator_GCJ \
18359 hardcode_automatic_GCJ \
18360 module_cmds_GCJ \
18361 module_expsym_cmds_GCJ \
18362 lt_cv_prog_compiler_c_o_GCJ \
18363 exclude_expsyms_GCJ \
18364 include_expsyms_GCJ; do
18365
18366 case $var in
18367 old_archive_cmds_GCJ | \
18368 old_archive_from_new_cmds_GCJ | \
18369 archive_cmds_GCJ | \
18370 archive_expsym_cmds_GCJ | \
18371 module_cmds_GCJ | \
18372 module_expsym_cmds_GCJ | \
18373 old_archive_from_expsyms_cmds_GCJ | \
18374 export_symbols_cmds_GCJ | \
18375 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18376 postinstall_cmds | postuninstall_cmds | \
18377 old_postinstall_cmds | old_postuninstall_cmds | \
18378 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18379 # Double-quote double-evaled strings.
18380 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18381 ;;
18382 *)
18383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18384 ;;
18385 esac
18386 done
18387
18388 case $lt_echo in
18389 *'\$0 --fallback-echo"')
18390 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18391 ;;
18392 esac
18393
18394cfgfile="$ofile"
18395
18396 cat <<__EOF__ >> "$cfgfile"
18397# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18398
18399# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18400
18401# Shell to use when invoking shell scripts.
18402SHELL=$lt_SHELL
18403
18404# Whether or not to build shared libraries.
18405build_libtool_libs=$enable_shared
18406
18407# Whether or not to build static libraries.
18408build_old_libs=$enable_static
18409
18410# Whether or not to add -lc for building shared libraries.
18411build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18412
18413# Whether or not to disallow shared libs when runtime libs are static
18414allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18415
18416# Whether or not to optimize for fast installation.
18417fast_install=$enable_fast_install
18418
18419# The host system.
18420host_alias=$host_alias
18421host=$host
18422host_os=$host_os
18423
18424# The build system.
18425build_alias=$build_alias
18426build=$build
18427build_os=$build_os
18428
18429# An echo program that does not interpret backslashes.
18430echo=$lt_echo
18431
18432# The archiver.
18433AR=$lt_AR
18434AR_FLAGS=$lt_AR_FLAGS
18435
18436# A C compiler.
18437LTCC=$lt_LTCC
18438
18439# LTCC compiler flags.
18440LTCFLAGS=$lt_LTCFLAGS
18441
18442# A language-specific compiler.
18443CC=$lt_compiler_GCJ
18444
18445# Is the compiler the GNU C compiler?
18446with_gcc=$GCC_GCJ
18447
18448# An ERE matcher.
18449EGREP=$lt_EGREP
18450
18451# The linker used to build libraries.
18452LD=$lt_LD_GCJ
18453
18454# Whether we need hard or soft links.
18455LN_S=$lt_LN_S
18456
18457# A BSD-compatible nm program.
18458NM=$lt_NM
18459
18460# A symbol stripping program
18461STRIP=$lt_STRIP
18462
18463# Used to examine libraries when file_magic_cmd begins "file"
18464MAGIC_CMD=$MAGIC_CMD
18465
18466# Used on cygwin: DLL creation program.
18467DLLTOOL="$DLLTOOL"
18468
18469# Used on cygwin: object dumper.
18470OBJDUMP="$OBJDUMP"
18471
18472# Used on cygwin: assembler.
18473AS="$AS"
18474
18475# The name of the directory that contains temporary libtool files.
18476objdir=$objdir
18477
18478# How to create reloadable object files.
18479reload_flag=$lt_reload_flag
18480reload_cmds=$lt_reload_cmds
18481
18482# How to pass a linker flag through the compiler.
18483wl=$lt_lt_prog_compiler_wl_GCJ
18484
18485# Object file suffix (normally "o").
18486objext="$ac_objext"
18487
18488# Old archive suffix (normally "a").
18489libext="$libext"
18490
18491# Shared library suffix (normally ".so").
18492shrext_cmds='$shrext_cmds'
18493
18494# Executable file suffix (normally "").
18495exeext="$exeext"
18496
18497# Additional compiler flags for building library objects.
18498pic_flag=$lt_lt_prog_compiler_pic_GCJ
18499pic_mode=$pic_mode
18500
18501# What is the maximum length of a command?
18502max_cmd_len=$lt_cv_sys_max_cmd_len
18503
18504# Does compiler simultaneously support -c and -o options?
18505compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18506
18507# Must we lock files when doing compilation?
18508need_locks=$lt_need_locks
18509
18510# Do we need the lib prefix for modules?
18511need_lib_prefix=$need_lib_prefix
18512
18513# Do we need a version for libraries?
18514need_version=$need_version
18515
18516# Whether dlopen is supported.
18517dlopen_support=$enable_dlopen
18518
18519# Whether dlopen of programs is supported.
18520dlopen_self=$enable_dlopen_self
18521
18522# Whether dlopen of statically linked programs is supported.
18523dlopen_self_static=$enable_dlopen_self_static
18524
18525# Compiler flag to prevent dynamic linking.
18526link_static_flag=$lt_lt_prog_compiler_static_GCJ
18527
18528# Compiler flag to turn off builtin functions.
18529no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18530
18531# Compiler flag to allow reflexive dlopens.
18532export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18533
18534# Compiler flag to generate shared objects directly from archives.
18535whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18536
18537# Compiler flag to generate thread-safe objects.
18538thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18539
18540# Library versioning type.
18541version_type=$version_type
18542
18543# Format of library name prefix.
18544libname_spec=$lt_libname_spec
18545
18546# List of archive names. First name is the real one, the rest are links.
18547# The last name is the one that the linker finds with -lNAME.
18548library_names_spec=$lt_library_names_spec
18549
18550# The coded name of the library, if different from the real name.
18551soname_spec=$lt_soname_spec
18552
18553# Commands used to build and install an old-style archive.
18554RANLIB=$lt_RANLIB
18555old_archive_cmds=$lt_old_archive_cmds_GCJ
18556old_postinstall_cmds=$lt_old_postinstall_cmds
18557old_postuninstall_cmds=$lt_old_postuninstall_cmds
18558
18559# Create an old-style archive from a shared archive.
18560old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18561
18562# Create a temporary old-style archive to link instead of a shared archive.
18563old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18564
18565# Commands used to build and install a shared archive.
18566archive_cmds=$lt_archive_cmds_GCJ
18567archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18568postinstall_cmds=$lt_postinstall_cmds
18569postuninstall_cmds=$lt_postuninstall_cmds
18570
18571# Commands used to build a loadable module (assumed same as above if empty)
18572module_cmds=$lt_module_cmds_GCJ
18573module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18574
18575# Commands to strip libraries.
18576old_striplib=$lt_old_striplib
18577striplib=$lt_striplib
18578
18579# Dependencies to place before the objects being linked to create a
18580# shared library.
18581predep_objects=$lt_predep_objects_GCJ
18582
18583# Dependencies to place after the objects being linked to create a
18584# shared library.
18585postdep_objects=$lt_postdep_objects_GCJ
18586
18587# Dependencies to place before the objects being linked to create a
18588# shared library.
18589predeps=$lt_predeps_GCJ
18590
18591# Dependencies to place after the objects being linked to create a
18592# shared library.
18593postdeps=$lt_postdeps_GCJ
18594
18595# The library search path used internally by the compiler when linking
18596# a shared library.
18597compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18598
18599# Method to check whether dependent libraries are shared objects.
18600deplibs_check_method=$lt_deplibs_check_method
18601
18602# Command to use when deplibs_check_method == file_magic.
18603file_magic_cmd=$lt_file_magic_cmd
18604
18605# Flag that allows shared libraries with undefined symbols to be built.
18606allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18607
18608# Flag that forces no undefined symbols.
18609no_undefined_flag=$lt_no_undefined_flag_GCJ
18610
18611# Commands used to finish a libtool library installation in a directory.
18612finish_cmds=$lt_finish_cmds
18613
18614# Same as above, but a single script fragment to be evaled but not shown.
18615finish_eval=$lt_finish_eval
18616
18617# Take the output of nm and produce a listing of raw symbols and C names.
18618global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18619
18620# Transform the output of nm in a proper C declaration
18621global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18622
18623# Transform the output of nm in a C name address pair
18624global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18625
18626# This is the shared library runtime path variable.
18627runpath_var=$runpath_var
18628
18629# This is the shared library path variable.
18630shlibpath_var=$shlibpath_var
18631
18632# Is shlibpath searched before the hard-coded library search path?
18633shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18634
18635# How to hardcode a shared library path into an executable.
18636hardcode_action=$hardcode_action_GCJ
18637
18638# Whether we should hardcode library paths into libraries.
18639hardcode_into_libs=$hardcode_into_libs
18640
18641# Flag to hardcode \$libdir into a binary during linking.
18642# This must work even if \$libdir does not exist.
18643hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18644
18645# If ld is used when linking, flag to hardcode \$libdir into
18646# a binary during linking. This must work even if \$libdir does
18647# not exist.
18648hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18649
18650# Whether we need a single -rpath flag with a separated argument.
18651hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18652
18653# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18654# resulting binary.
18655hardcode_direct=$hardcode_direct_GCJ
18656
18657# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18658# resulting binary.
18659hardcode_minus_L=$hardcode_minus_L_GCJ
18660
18661# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18662# the resulting binary.
18663hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18664
18665# Set to yes if building a shared library automatically hardcodes DIR into the library
18666# and all subsequent libraries and executables linked against it.
18667hardcode_automatic=$hardcode_automatic_GCJ
18668
18669# Variables whose values should be saved in libtool wrapper scripts and
18670# restored at relink time.
18671variables_saved_for_relink="$variables_saved_for_relink"
18672
18673# Whether libtool must link a program against all its dependency libraries.
18674link_all_deplibs=$link_all_deplibs_GCJ
18675
18676# Compile-time system search path for libraries
18677sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18678
18679# Run-time system search path for libraries
18680sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18681
18682# Fix the shell variable \$srcfile for the compiler.
18683fix_srcfile_path="$fix_srcfile_path_GCJ"
18684
18685# Set to yes if exported symbols are required.
18686always_export_symbols=$always_export_symbols_GCJ
18687
18688# The commands to list exported symbols.
18689export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18690
18691# The commands to extract the exported symbol list from a shared archive.
18692extract_expsyms_cmds=$lt_extract_expsyms_cmds
18693
18694# Symbols that should not be listed in the preloaded symbols.
18695exclude_expsyms=$lt_exclude_expsyms_GCJ
18696
18697# Symbols that must always be exported.
18698include_expsyms=$lt_include_expsyms_GCJ
18699
18700# ### END LIBTOOL TAG CONFIG: $tagname
18701
18702__EOF__
18703
18704
18705else
18706 # If there is no Makefile yet, we rely on a make rule to execute
18707 # `config.status --recheck' to rerun these tests and create the
18708 # libtool script then.
18709 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18710 if test -f "$ltmain_in"; then
18711 test -f Makefile && make "$ltmain"
18712 fi
18713fi
18714
18715
18716ac_ext=c
18717ac_cpp='$CPP $CPPFLAGS'
18718ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18719ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18720ac_compiler_gnu=$ac_cv_c_compiler_gnu
18721
18722CC="$lt_save_CC"
18723
18724 else
18725 tagname=""
18726 fi
18727 ;;
18728
18729 RC)
18730
18731
18732# Source file extension for RC test sources.
18733ac_ext=rc
18734
18735# Object file extension for compiled RC test sources.
18736objext=o
18737objext_RC=$objext
18738
18739# Code to be used in simple compile tests
18740lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
18741
18742# Code to be used in simple link tests
18743lt_simple_link_test_code="$lt_simple_compile_test_code"
18744
18745# ltmain only uses $CC for tagged configurations so make sure $CC is set.
18746
18747# If no C compiler was specified, use CC.
18748LTCC=${LTCC-"$CC"}
18749
18750# If no C compiler flags were specified, use CFLAGS.
18751LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18752
18753# Allow CC to be a program name with arguments.
18754compiler=$CC
18755
18756
18757# save warnings/boilerplate of simple test code
18758ac_outfile=conftest.$ac_objext
18759printf "$lt_simple_compile_test_code" >conftest.$ac_ext
18760eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18761_lt_compiler_boilerplate=`cat conftest.err`
18762$rm conftest*
18763
18764ac_outfile=conftest.$ac_objext
18765printf "$lt_simple_link_test_code" >conftest.$ac_ext
18766eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18767_lt_linker_boilerplate=`cat conftest.err`
18768$rm conftest*
18769
18770
18771# Allow CC to be a program name with arguments.
18772lt_save_CC="$CC"
18773CC=${RC-"windres"}
18774compiler=$CC
18775compiler_RC=$CC
18776for cc_temp in $compiler""; do
18777 case $cc_temp in
18778 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18779 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18780 \-*) ;;
18781 *) break;;
18782 esac
18783done
18784cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18785
18786lt_cv_prog_compiler_c_o_RC=yes
18787
18788# The else clause should only fire when bootstrapping the
18789# libtool distribution, otherwise you forgot to ship ltmain.sh
18790# with your package, and you will get complaints that there are
18791# no rules to generate ltmain.sh.
18792if test -f "$ltmain"; then
18793 # See if we are running on zsh, and set the options which allow our commands through
18794 # without removal of \ escapes.
18795 if test -n "${ZSH_VERSION+set}" ; then
18796 setopt NO_GLOB_SUBST
18797 fi
18798 # Now quote all the things that may contain metacharacters while being
18799 # careful not to overquote the AC_SUBSTed values. We take copies of the
18800 # variables and quote the copies for generation of the libtool script.
18801 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18802 SED SHELL STRIP \
18803 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18804 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18805 deplibs_check_method reload_flag reload_cmds need_locks \
18806 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18807 lt_cv_sys_global_symbol_to_c_name_address \
18808 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18809 old_postinstall_cmds old_postuninstall_cmds \
18810 compiler_RC \
18811 CC_RC \
18812 LD_RC \
18813 lt_prog_compiler_wl_RC \
18814 lt_prog_compiler_pic_RC \
18815 lt_prog_compiler_static_RC \
18816 lt_prog_compiler_no_builtin_flag_RC \
18817 export_dynamic_flag_spec_RC \
18818 thread_safe_flag_spec_RC \
18819 whole_archive_flag_spec_RC \
18820 enable_shared_with_static_runtimes_RC \
18821 old_archive_cmds_RC \
18822 old_archive_from_new_cmds_RC \
18823 predep_objects_RC \
18824 postdep_objects_RC \
18825 predeps_RC \
18826 postdeps_RC \
18827 compiler_lib_search_path_RC \
18828 archive_cmds_RC \
18829 archive_expsym_cmds_RC \
18830 postinstall_cmds_RC \
18831 postuninstall_cmds_RC \
18832 old_archive_from_expsyms_cmds_RC \
18833 allow_undefined_flag_RC \
18834 no_undefined_flag_RC \
18835 export_symbols_cmds_RC \
18836 hardcode_libdir_flag_spec_RC \
18837 hardcode_libdir_flag_spec_ld_RC \
18838 hardcode_libdir_separator_RC \
18839 hardcode_automatic_RC \
18840 module_cmds_RC \
18841 module_expsym_cmds_RC \
18842 lt_cv_prog_compiler_c_o_RC \
18843 exclude_expsyms_RC \
18844 include_expsyms_RC; do
18845
18846 case $var in
18847 old_archive_cmds_RC | \
18848 old_archive_from_new_cmds_RC | \
18849 archive_cmds_RC | \
18850 archive_expsym_cmds_RC | \
18851 module_cmds_RC | \
18852 module_expsym_cmds_RC | \
18853 old_archive_from_expsyms_cmds_RC | \
18854 export_symbols_cmds_RC | \
18855 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18856 postinstall_cmds | postuninstall_cmds | \
18857 old_postinstall_cmds | old_postuninstall_cmds | \
18858 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18859 # Double-quote double-evaled strings.
18860 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18861 ;;
18862 *)
18863 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18864 ;;
18865 esac
18866 done
18867
18868 case $lt_echo in
18869 *'\$0 --fallback-echo"')
18870 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18871 ;;
18872 esac
18873
18874cfgfile="$ofile"
18875
18876 cat <<__EOF__ >> "$cfgfile"
18877# ### BEGIN LIBTOOL TAG CONFIG: $tagname
18878
18879# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18880
18881# Shell to use when invoking shell scripts.
18882SHELL=$lt_SHELL
18883
18884# Whether or not to build shared libraries.
18885build_libtool_libs=$enable_shared
18886
18887# Whether or not to build static libraries.
18888build_old_libs=$enable_static
18889
18890# Whether or not to add -lc for building shared libraries.
18891build_libtool_need_lc=$archive_cmds_need_lc_RC
18892
18893# Whether or not to disallow shared libs when runtime libs are static
18894allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18895
18896# Whether or not to optimize for fast installation.
18897fast_install=$enable_fast_install
18898
18899# The host system.
18900host_alias=$host_alias
18901host=$host
18902host_os=$host_os
18903
18904# The build system.
18905build_alias=$build_alias
18906build=$build
18907build_os=$build_os
18908
18909# An echo program that does not interpret backslashes.
18910echo=$lt_echo
18911
18912# The archiver.
18913AR=$lt_AR
18914AR_FLAGS=$lt_AR_FLAGS
18915
18916# A C compiler.
18917LTCC=$lt_LTCC
18918
18919# LTCC compiler flags.
18920LTCFLAGS=$lt_LTCFLAGS
18921
18922# A language-specific compiler.
18923CC=$lt_compiler_RC
18924
18925# Is the compiler the GNU C compiler?
18926with_gcc=$GCC_RC
18927
18928# An ERE matcher.
18929EGREP=$lt_EGREP
18930
18931# The linker used to build libraries.
18932LD=$lt_LD_RC
18933
18934# Whether we need hard or soft links.
18935LN_S=$lt_LN_S
18936
18937# A BSD-compatible nm program.
18938NM=$lt_NM
18939
18940# A symbol stripping program
18941STRIP=$lt_STRIP
18942
18943# Used to examine libraries when file_magic_cmd begins "file"
18944MAGIC_CMD=$MAGIC_CMD
18945
18946# Used on cygwin: DLL creation program.
18947DLLTOOL="$DLLTOOL"
18948
18949# Used on cygwin: object dumper.
18950OBJDUMP="$OBJDUMP"
18951
18952# Used on cygwin: assembler.
18953AS="$AS"
18954
18955# The name of the directory that contains temporary libtool files.
18956objdir=$objdir
18957
18958# How to create reloadable object files.
18959reload_flag=$lt_reload_flag
18960reload_cmds=$lt_reload_cmds
18961
18962# How to pass a linker flag through the compiler.
18963wl=$lt_lt_prog_compiler_wl_RC
18964
18965# Object file suffix (normally "o").
18966objext="$ac_objext"
18967
18968# Old archive suffix (normally "a").
18969libext="$libext"
18970
18971# Shared library suffix (normally ".so").
18972shrext_cmds='$shrext_cmds'
18973
18974# Executable file suffix (normally "").
18975exeext="$exeext"
18976
18977# Additional compiler flags for building library objects.
18978pic_flag=$lt_lt_prog_compiler_pic_RC
18979pic_mode=$pic_mode
18980
18981# What is the maximum length of a command?
18982max_cmd_len=$lt_cv_sys_max_cmd_len
18983
18984# Does compiler simultaneously support -c and -o options?
18985compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18986
18987# Must we lock files when doing compilation?
18988need_locks=$lt_need_locks
18989
18990# Do we need the lib prefix for modules?
18991need_lib_prefix=$need_lib_prefix
18992
18993# Do we need a version for libraries?
18994need_version=$need_version
18995
18996# Whether dlopen is supported.
18997dlopen_support=$enable_dlopen
18998
18999# Whether dlopen of programs is supported.
19000dlopen_self=$enable_dlopen_self
19001
19002# Whether dlopen of statically linked programs is supported.
19003dlopen_self_static=$enable_dlopen_self_static
19004
19005# Compiler flag to prevent dynamic linking.
19006link_static_flag=$lt_lt_prog_compiler_static_RC
19007
19008# Compiler flag to turn off builtin functions.
19009no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19010
19011# Compiler flag to allow reflexive dlopens.
19012export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19013
19014# Compiler flag to generate shared objects directly from archives.
19015whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19016
19017# Compiler flag to generate thread-safe objects.
19018thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19019
19020# Library versioning type.
19021version_type=$version_type
19022
19023# Format of library name prefix.
19024libname_spec=$lt_libname_spec
19025
19026# List of archive names. First name is the real one, the rest are links.
19027# The last name is the one that the linker finds with -lNAME.
19028library_names_spec=$lt_library_names_spec
19029
19030# The coded name of the library, if different from the real name.
19031soname_spec=$lt_soname_spec
19032
19033# Commands used to build and install an old-style archive.
19034RANLIB=$lt_RANLIB
19035old_archive_cmds=$lt_old_archive_cmds_RC
19036old_postinstall_cmds=$lt_old_postinstall_cmds
19037old_postuninstall_cmds=$lt_old_postuninstall_cmds
19038
19039# Create an old-style archive from a shared archive.
19040old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19041
19042# Create a temporary old-style archive to link instead of a shared archive.
19043old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19044
19045# Commands used to build and install a shared archive.
19046archive_cmds=$lt_archive_cmds_RC
19047archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19048postinstall_cmds=$lt_postinstall_cmds
19049postuninstall_cmds=$lt_postuninstall_cmds
19050
19051# Commands used to build a loadable module (assumed same as above if empty)
19052module_cmds=$lt_module_cmds_RC
19053module_expsym_cmds=$lt_module_expsym_cmds_RC
19054
19055# Commands to strip libraries.
19056old_striplib=$lt_old_striplib
19057striplib=$lt_striplib
19058
19059# Dependencies to place before the objects being linked to create a
19060# shared library.
19061predep_objects=$lt_predep_objects_RC
19062
19063# Dependencies to place after the objects being linked to create a
19064# shared library.
19065postdep_objects=$lt_postdep_objects_RC
19066
19067# Dependencies to place before the objects being linked to create a
19068# shared library.
19069predeps=$lt_predeps_RC
19070
19071# Dependencies to place after the objects being linked to create a
19072# shared library.
19073postdeps=$lt_postdeps_RC
19074
19075# The library search path used internally by the compiler when linking
19076# a shared library.
19077compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19078
19079# Method to check whether dependent libraries are shared objects.
19080deplibs_check_method=$lt_deplibs_check_method
19081
19082# Command to use when deplibs_check_method == file_magic.
19083file_magic_cmd=$lt_file_magic_cmd
19084
19085# Flag that allows shared libraries with undefined symbols to be built.
19086allow_undefined_flag=$lt_allow_undefined_flag_RC
19087
19088# Flag that forces no undefined symbols.
19089no_undefined_flag=$lt_no_undefined_flag_RC
19090
19091# Commands used to finish a libtool library installation in a directory.
19092finish_cmds=$lt_finish_cmds
19093
19094# Same as above, but a single script fragment to be evaled but not shown.
19095finish_eval=$lt_finish_eval
19096
19097# Take the output of nm and produce a listing of raw symbols and C names.
19098global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19099
19100# Transform the output of nm in a proper C declaration
19101global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19102
19103# Transform the output of nm in a C name address pair
19104global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19105
19106# This is the shared library runtime path variable.
19107runpath_var=$runpath_var
19108
19109# This is the shared library path variable.
19110shlibpath_var=$shlibpath_var
19111
19112# Is shlibpath searched before the hard-coded library search path?
19113shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19114
19115# How to hardcode a shared library path into an executable.
19116hardcode_action=$hardcode_action_RC
19117
19118# Whether we should hardcode library paths into libraries.
19119hardcode_into_libs=$hardcode_into_libs
19120
19121# Flag to hardcode \$libdir into a binary during linking.
19122# This must work even if \$libdir does not exist.
19123hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19124
19125# If ld is used when linking, flag to hardcode \$libdir into
19126# a binary during linking. This must work even if \$libdir does
19127# not exist.
19128hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19129
19130# Whether we need a single -rpath flag with a separated argument.
19131hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19132
19133# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19134# resulting binary.
19135hardcode_direct=$hardcode_direct_RC
19136
19137# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19138# resulting binary.
19139hardcode_minus_L=$hardcode_minus_L_RC
19140
19141# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19142# the resulting binary.
19143hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19144
19145# Set to yes if building a shared library automatically hardcodes DIR into the library
19146# and all subsequent libraries and executables linked against it.
19147hardcode_automatic=$hardcode_automatic_RC
19148
19149# Variables whose values should be saved in libtool wrapper scripts and
19150# restored at relink time.
19151variables_saved_for_relink="$variables_saved_for_relink"
19152
19153# Whether libtool must link a program against all its dependency libraries.
19154link_all_deplibs=$link_all_deplibs_RC
19155
19156# Compile-time system search path for libraries
19157sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19158
19159# Run-time system search path for libraries
19160sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19161
19162# Fix the shell variable \$srcfile for the compiler.
19163fix_srcfile_path="$fix_srcfile_path_RC"
19164
19165# Set to yes if exported symbols are required.
19166always_export_symbols=$always_export_symbols_RC
19167
19168# The commands to list exported symbols.
19169export_symbols_cmds=$lt_export_symbols_cmds_RC
19170
19171# The commands to extract the exported symbol list from a shared archive.
19172extract_expsyms_cmds=$lt_extract_expsyms_cmds
19173
19174# Symbols that should not be listed in the preloaded symbols.
19175exclude_expsyms=$lt_exclude_expsyms_RC
19176
19177# Symbols that must always be exported.
19178include_expsyms=$lt_include_expsyms_RC
19179
19180# ### END LIBTOOL TAG CONFIG: $tagname
19181
19182__EOF__
19183
19184
19185else
19186 # If there is no Makefile yet, we rely on a make rule to execute
19187 # `config.status --recheck' to rerun these tests and create the
19188 # libtool script then.
19189 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19190 if test -f "$ltmain_in"; then
19191 test -f Makefile && make "$ltmain"
19192 fi
19193fi
19194
19195
19196ac_ext=c
19197ac_cpp='$CPP $CPPFLAGS'
19198ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19199ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19200ac_compiler_gnu=$ac_cv_c_compiler_gnu
19201
19202CC="$lt_save_CC"
19203
19204 ;;
19205
19206 *)
19207 as_fn_error $? "Unsupported tag name: $tagname" "$LINENO" 5
19208 ;;
19209 esac
19210
19211 # Append the new tag name to the list of available tags.
19212 if test -n "$tagname" ; then
19213 available_tags="$available_tags $tagname"
19214 fi
19215 fi
19216 done
19217 IFS="$lt_save_ifs"
19218
19219 # Now substitute the updated list of available tags.
19220 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19221 mv "${ofile}T" "$ofile"
19222 chmod +x "$ofile"
19223 else
19224 rm -f "${ofile}T"
19225 as_fn_error $? "unable to update list of available tagged configurations." "$LINENO" 5
19226 fi
19227fi
19228
19229
19230
19231# This can be used to rebuild libtool when needed
19232LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19233
19234# Always use our own libtool.
19235LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19236
19237# Prevent multiple expansion
19238
19239
19240
19241
19242
19243
19244
19245
19246
19247
19248
19249
19250
19251
19252
19253
19254
19255
19256
19257
19258# Extract the first word of "ar", so it can be a program name with args.
19259set dummy ar; ac_word=$2
19260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19261$as_echo_n "checking for $ac_word... " >&6; }
19262if ${ac_cv_path_AR+:} false; then :
19263 $as_echo_n "(cached) " >&6
19264else
19265 case $AR in
19266 [\\/]* | ?:[\\/]*)
19267 ac_cv_path_AR="$AR" # Let the user override the test with a path.
19268 ;;
19269 *)
19270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19271as_dummy="$PATH:/usr/ccs/bin"
19272for as_dir in $as_dummy
19273do
19274 IFS=$as_save_IFS
19275 test -z "$as_dir" && as_dir=.
19276 for ac_exec_ext in '' $ac_executable_extensions; do
19277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19278 ac_cv_path_AR="$as_dir/$ac_word$ac_exec_ext"
19279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19280 break 2
19281 fi
19282done
19283 done
19284IFS=$as_save_IFS
19285
19286 test -z "$ac_cv_path_AR" && ac_cv_path_AR="/usr/bin/ar"
19287 ;;
19288esac
19289fi
19290AR=$ac_cv_path_AR
19291if test -n "$AR"; then
19292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
19293$as_echo "$AR" >&6; }
19294else
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19296$as_echo "no" >&6; }
19297fi
19298
19299
19300
19301# Options
19302
19303
19304@%:@ Check whether --with-tightvnc-filetransfer was given.
19305if test "${with_tightvnc_filetransfer+set}" = set; then :
19306 withval=$with_tightvnc_filetransfer;
19307else
19308 with_tightvnc_filetransfer=yes
19309fi
19310
19311# AC_DEFINE moved to after libpthread check.
19312
19313# WebSockets support
19314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __b64_ntop in -lresolv" >&5
19315$as_echo_n "checking for __b64_ntop in -lresolv... " >&6; }
19316if ${ac_cv_lib_resolv___b64_ntop+:} false; then :
19317 $as_echo_n "(cached) " >&6
19318else
19319 ac_check_lib_save_LIBS=$LIBS
19320LIBS="-lresolv $LIBS"
19321cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19322/* end confdefs.h. */
19323
19324/* Override any GCC internal prototype to avoid an error.
19325 Use char because int might match the return type of a GCC
19326 builtin and then its argument prototype would still apply. */
19327#ifdef __cplusplus
19328extern "C"
19329#endif
19330char __b64_ntop ();
19331int
19332main ()
19333{
19334return __b64_ntop ();
19335 ;
19336 return 0;
19337}
19338_ACEOF
19339if ac_fn_c_try_link "$LINENO"; then :
19340 ac_cv_lib_resolv___b64_ntop=yes
19341else
19342 ac_cv_lib_resolv___b64_ntop=no
19343fi
19344rm -f core conftest.err conftest.$ac_objext \
19345 conftest$ac_exeext conftest.$ac_ext
19346LIBS=$ac_check_lib_save_LIBS
19347fi
19348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv___b64_ntop" >&5
19349$as_echo "$ac_cv_lib_resolv___b64_ntop" >&6; }
19350if test "x$ac_cv_lib_resolv___b64_ntop" = xyes; then :
19351 HAVE_B64="true"
19352else
19353 HAVE_B64="false"
19354fi
19355
19356
19357
19358@%:@ Check whether --with-websockets was given.
19359if test "${with_websockets+set}" = set; then :
19360 withval=$with_websockets;
19361else
19362 with_websockets=yes
19363fi
19364
19365# AC_DEFINE moved to after libresolve check.
19366
19367
19368
19369@%:@ Check whether --with-24bpp was given.
19370if test "${with_24bpp+set}" = set; then :
19371 withval=$with_24bpp;
19372else
19373 with_24bpp=yes
19374fi
19375
19376if test "x$with_24bpp" = "xyes"; then
19377 $as_echo "@%:@define ALLOW24BPP 1" >>confdefs.h
19378
19379fi
19380
19381
19382@%:@ Check whether --with-ffmpeg was given.
19383if test "${with_ffmpeg+set}" = set; then :
19384 withval=$with_ffmpeg;
19385fi
19386
19387
19388 if test ! -z "$with_ffmpeg"; then
19389 WITH_FFMPEG_TRUE=
19390 WITH_FFMPEG_FALSE='#'
19391else
19392 WITH_FFMPEG_TRUE='#'
19393 WITH_FFMPEG_FALSE=
19394fi
19395
19396if test ! -z "$with_ffmpeg"; then
19397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lame_init in -lmp3lame" >&5
19398$as_echo_n "checking for lame_init in -lmp3lame... " >&6; }
19399if ${ac_cv_lib_mp3lame_lame_init+:} false; then :
19400 $as_echo_n "(cached) " >&6
19401else
19402 ac_check_lib_save_LIBS=$LIBS
19403LIBS="-lmp3lame $LIBS"
19404cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19405/* end confdefs.h. */
19406
19407/* Override any GCC internal prototype to avoid an error.
19408 Use char because int might match the return type of a GCC
19409 builtin and then its argument prototype would still apply. */
19410#ifdef __cplusplus
19411extern "C"
19412#endif
19413char lame_init ();
19414int
19415main ()
19416{
19417return lame_init ();
19418 ;
19419 return 0;
19420}
19421_ACEOF
19422if ac_fn_c_try_link "$LINENO"; then :
19423 ac_cv_lib_mp3lame_lame_init=yes
19424else
19425 ac_cv_lib_mp3lame_lame_init=no
19426fi
19427rm -f core conftest.err conftest.$ac_objext \
19428 conftest$ac_exeext conftest.$ac_ext
19429LIBS=$ac_check_lib_save_LIBS
19430fi
19431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp3lame_lame_init" >&5
19432$as_echo "$ac_cv_lib_mp3lame_lame_init" >&6; }
19433if test "x$ac_cv_lib_mp3lame_lame_init" = xyes; then :
19434 HAVE_MP3LAME="true"
19435else
19436 HAVE_MP3LAME="false"
19437fi
19438
19439fi
19440 if test "$HAVE_MP3LAME" = "true"; then
19441 HAVE_MP3LAME_TRUE=
19442 HAVE_MP3LAME_FALSE='#'
19443else
19444 HAVE_MP3LAME_TRUE='#'
19445 HAVE_MP3LAME_FALSE=
19446fi
19447
19448
19449# Seem to need this dummy here to induce the 'checking for egrep... grep -E', etc.
19450# before it seemed to be inside the with_jpeg conditional.
19451ac_fn_c_check_header_mongrel "$LINENO" "thenonexistentheader.h" "ac_cv_header_thenonexistentheader_h" "$ac_includes_default"
19452if test "x$ac_cv_header_thenonexistentheader_h" = xyes; then :
19453 HAVE_THENONEXISTENTHEADER_H="true"
19454fi
19455
19456
19457
19458# set some ld -R nonsense
19459#
19460uname_s=`(uname -s) 2>/dev/null`
19461ld_minus_R="yes"
19462if test "x$uname_s" = "xHP-UX"; then
19463 ld_minus_R="no"
19464elif test "x$uname_s" = "xOSF1"; then
19465 ld_minus_R="no"
19466elif test "x$uname_s" = "xDarwin"; then
19467 ld_minus_R="no"
19468fi
19469
19470# Check for OpenSSL
19471
19472
19473@%:@ Check whether --with-crypt was given.
19474if test "${with_crypt+set}" = set; then :
19475 withval=$with_crypt;
19476fi
19477
19478if test "x$with_crypt" != "xno"; then
19479 for ac_func in crypt
19480do :
19481 ac_fn_c_check_func "$LINENO" "crypt" "ac_cv_func_crypt"
19482if test "x$ac_cv_func_crypt" = xyes; then :
19483 cat >>confdefs.h <<_ACEOF
19484@%:@define HAVE_CRYPT 1
19485_ACEOF
19486 HAVE_LIBC_CRYPT="true"
19487fi
19488done
19489
19490 if test -z "$HAVE_LIBC_CRYPT"; then
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
19492$as_echo_n "checking for crypt in -lcrypt... " >&6; }
19493if ${ac_cv_lib_crypt_crypt+:} false; then :
19494 $as_echo_n "(cached) " >&6
19495else
19496 ac_check_lib_save_LIBS=$LIBS
19497LIBS="-lcrypt $LIBS"
19498cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19499/* end confdefs.h. */
19500
19501/* Override any GCC internal prototype to avoid an error.
19502 Use char because int might match the return type of a GCC
19503 builtin and then its argument prototype would still apply. */
19504#ifdef __cplusplus
19505extern "C"
19506#endif
19507char crypt ();
19508int
19509main ()
19510{
19511return crypt ();
19512 ;
19513 return 0;
19514}
19515_ACEOF
19516if ac_fn_c_try_link "$LINENO"; then :
19517 ac_cv_lib_crypt_crypt=yes
19518else
19519 ac_cv_lib_crypt_crypt=no
19520fi
19521rm -f core conftest.err conftest.$ac_objext \
19522 conftest$ac_exeext conftest.$ac_ext
19523LIBS=$ac_check_lib_save_LIBS
19524fi
19525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
19526$as_echo "$ac_cv_lib_crypt_crypt" >&6; }
19527if test "x$ac_cv_lib_crypt_crypt" = xyes; then :
19528 CRYPT_LIBS="-lcrypt"
19529 $as_echo "@%:@define HAVE_LIBCRYPT 1" >>confdefs.h
19530
19531fi
19532
19533 fi
19534fi
19535
19536
19537# some OS's need both -lssl and -lcrypto on link line:
19538
19539
19540@%:@ Check whether --with-crypto was given.
19541if test "${with_crypto+set}" = set; then :
19542 withval=$with_crypto;
19543fi
19544
19545
19546
19547
19548@%:@ Check whether --with-ssl was given.
19549if test "${with_ssl+set}" = set; then :
19550 withval=$with_ssl;
19551fi
19552
19553
19554if test "x$with_crypto" != "xno" -a "x$with_ssl" != "xno"; then
19555 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
19556 saved_CPPFLAGS="$CPPFLAGS"
19557 saved_LDFLAGS="$LDFLAGS"
19558 CPPFLAGS="$CPPFLAGS -I$with_ssl/include"
19559 LDFLAGS="$LDFLAGS -L$with_ssl/lib"
19560 if test "x$ld_minus_R" = "xno"; then
19561 :
19562 elif test "x$GCC" = "xyes"; then
19563 LDFLAGS="$LDFLAGS -Xlinker -R$with_ssl/lib"
19564 else
19565 LDFLAGS="$LDFLAGS -R$with_ssl/lib"
19566 fi
19567 fi
19568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for RAND_file_name in -lcrypto" >&5
19569$as_echo_n "checking for RAND_file_name in -lcrypto... " >&6; }
19570if ${ac_cv_lib_crypto_RAND_file_name+:} false; then :
19571 $as_echo_n "(cached) " >&6
19572else
19573 ac_check_lib_save_LIBS=$LIBS
19574LIBS="-lcrypto $LIBS"
19575cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19576/* end confdefs.h. */
19577
19578/* Override any GCC internal prototype to avoid an error.
19579 Use char because int might match the return type of a GCC
19580 builtin and then its argument prototype would still apply. */
19581#ifdef __cplusplus
19582extern "C"
19583#endif
19584char RAND_file_name ();
19585int
19586main ()
19587{
19588return RAND_file_name ();
19589 ;
19590 return 0;
19591}
19592_ACEOF
19593if ac_fn_c_try_link "$LINENO"; then :
19594 ac_cv_lib_crypto_RAND_file_name=yes
19595else
19596 ac_cv_lib_crypto_RAND_file_name=no
19597fi
19598rm -f core conftest.err conftest.$ac_objext \
19599 conftest$ac_exeext conftest.$ac_ext
19600LIBS=$ac_check_lib_save_LIBS
19601fi
19602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypto_RAND_file_name" >&5
19603$as_echo "$ac_cv_lib_crypto_RAND_file_name" >&6; }
19604if test "x$ac_cv_lib_crypto_RAND_file_name" = xyes; then :
19605 $as_echo "@%:@define HAVE_LIBCRYPTO 1" >>confdefs.h
19606 HAVE_LIBCRYPTO="true"
19607fi
19608
19609 if test ! -z "$with_ssl" -a "x$with_ssl" != "xyes"; then
19610 if test "x$HAVE_LIBCRYPTO" != "xtrue"; then
19611 CPPFLAGS="$saved_CPPFLAGS"
19612 LDFLAGS="$saved_LDFLAGS"
19613 fi
19614 fi
19615fi
19616
19617
19618if test "x$with_ssl" != "xno"; then
19619 if test "x$HAVE_LIBCRYPTO" = "xtrue"; then
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
19621$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
19622if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
19623 $as_echo_n "(cached) " >&6
19624else
19625 ac_check_lib_save_LIBS=$LIBS
19626LIBS="-lssl -lcrypto $LIBS"
19627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19628/* end confdefs.h. */
19629
19630/* Override any GCC internal prototype to avoid an error.
19631 Use char because int might match the return type of a GCC
19632 builtin and then its argument prototype would still apply. */
19633#ifdef __cplusplus
19634extern "C"
19635#endif
19636char SSL_library_init ();
19637int
19638main ()
19639{
19640return SSL_library_init ();
19641 ;
19642 return 0;
19643}
19644_ACEOF
19645if ac_fn_c_try_link "$LINENO"; then :
19646 ac_cv_lib_ssl_SSL_library_init=yes
19647else
19648 ac_cv_lib_ssl_SSL_library_init=no
19649fi
19650rm -f core conftest.err conftest.$ac_objext \
19651 conftest$ac_exeext conftest.$ac_ext
19652LIBS=$ac_check_lib_save_LIBS
19653fi
19654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19655$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
19656if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
19657 SSL_LIBS="-lssl -lcrypto"
19658 $as_echo "@%:@define HAVE_LIBSSL 1" >>confdefs.h
19659 HAVE_LIBSSL="true"
19660fi
19661
19662 else
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_library_init in -lssl" >&5
19664$as_echo_n "checking for SSL_library_init in -lssl... " >&6; }
19665if ${ac_cv_lib_ssl_SSL_library_init+:} false; then :
19666 $as_echo_n "(cached) " >&6
19667else
19668 ac_check_lib_save_LIBS=$LIBS
19669LIBS="-lssl $LIBS"
19670cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19671/* end confdefs.h. */
19672
19673/* Override any GCC internal prototype to avoid an error.
19674 Use char because int might match the return type of a GCC
19675 builtin and then its argument prototype would still apply. */
19676#ifdef __cplusplus
19677extern "C"
19678#endif
19679char SSL_library_init ();
19680int
19681main ()
19682{
19683return SSL_library_init ();
19684 ;
19685 return 0;
19686}
19687_ACEOF
19688if ac_fn_c_try_link "$LINENO"; then :
19689 ac_cv_lib_ssl_SSL_library_init=yes
19690else
19691 ac_cv_lib_ssl_SSL_library_init=no
19692fi
19693rm -f core conftest.err conftest.$ac_objext \
19694 conftest$ac_exeext conftest.$ac_ext
19695LIBS=$ac_check_lib_save_LIBS
19696fi
19697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_library_init" >&5
19698$as_echo "$ac_cv_lib_ssl_SSL_library_init" >&6; }
19699if test "x$ac_cv_lib_ssl_SSL_library_init" = xyes; then :
19700 SSL_LIBS="-lssl"
19701 $as_echo "@%:@define HAVE_LIBSSL 1" >>confdefs.h
19702 HAVE_LIBSSL="true"
19703fi
19704
19705 fi
19706fi
19707
19708 if test ! -z "$SSL_LIBS"; then
19709 HAVE_LIBSSL_TRUE=
19710 HAVE_LIBSSL_FALSE='#'
19711else
19712 HAVE_LIBSSL_TRUE='#'
19713 HAVE_LIBSSL_FALSE=
19714fi
19715
19716
19717# Checks for X libraries
19718HAVE_X11="false"
19719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
19720$as_echo_n "checking for X... " >&6; }
19721
19722
19723@%:@ Check whether --with-x was given.
19724if test "${with_x+set}" = set; then :
19725 withval=$with_x;
19726fi
19727
19728# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19729if test "x$with_x" = xno; then
19730 # The user explicitly disabled X.
19731 have_x=disabled
19732else
19733 case $x_includes,$x_libraries in #(
19734 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
19735 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
19736 $as_echo_n "(cached) " >&6
19737else
19738 # One or both of the vars are not set, and there is no cached value.
19739ac_x_includes=no ac_x_libraries=no
19740rm -f -r conftest.dir
19741if mkdir conftest.dir; then
19742 cd conftest.dir
19743 cat >Imakefile <<'_ACEOF'
19744incroot:
19745 @echo incroot='${INCROOT}'
19746usrlibdir:
19747 @echo usrlibdir='${USRLIBDIR}'
19748libdir:
19749 @echo libdir='${LIBDIR}'
19750_ACEOF
19751 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19752 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
19753 for ac_var in incroot usrlibdir libdir; do
19754 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19755 done
19756 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19757 for ac_extension in a so sl dylib la dll; do
19758 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19759 test -f "$ac_im_libdir/libX11.$ac_extension"; then
19760 ac_im_usrlibdir=$ac_im_libdir; break
19761 fi
19762 done
19763 # Screen out bogus values from the imake configuration. They are
19764 # bogus both because they are the default anyway, and because
19765 # using them would break gcc on systems where it needs fixed includes.
19766 case $ac_im_incroot in
19767 /usr/include) ac_x_includes= ;;
19768 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19769 esac
19770 case $ac_im_usrlibdir in
19771 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19772 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19773 esac
19774 fi
19775 cd ..
19776 rm -f -r conftest.dir
19777fi
19778
19779# Standard set of common directories for X headers.
19780# Check X11 before X11Rn because it is often a symlink to the current release.
19781ac_x_header_dirs='
19782/usr/X11/include
19783/usr/X11R7/include
19784/usr/X11R6/include
19785/usr/X11R5/include
19786/usr/X11R4/include
19787
19788/usr/include/X11
19789/usr/include/X11R7
19790/usr/include/X11R6
19791/usr/include/X11R5
19792/usr/include/X11R4
19793
19794/usr/local/X11/include
19795/usr/local/X11R7/include
19796/usr/local/X11R6/include
19797/usr/local/X11R5/include
19798/usr/local/X11R4/include
19799
19800/usr/local/include/X11
19801/usr/local/include/X11R7
19802/usr/local/include/X11R6
19803/usr/local/include/X11R5
19804/usr/local/include/X11R4
19805
19806/usr/X386/include
19807/usr/x386/include
19808/usr/XFree86/include/X11
19809
19810/usr/include
19811/usr/local/include
19812/usr/unsupported/include
19813/usr/athena/include
19814/usr/local/x11r5/include
19815/usr/lpp/Xamples/include
19816
19817/usr/openwin/include
19818/usr/openwin/share/include'
19819
19820if test "$ac_x_includes" = no; then
19821 # Guess where to find include files, by looking for Xlib.h.
19822 # First, try using that file with no special directory specified.
19823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19824/* end confdefs.h. */
19825@%:@include <X11/Xlib.h>
19826_ACEOF
19827if ac_fn_c_try_cpp "$LINENO"; then :
19828 # We can compile using X headers with no special include directory.
19829ac_x_includes=
19830else
19831 for ac_dir in $ac_x_header_dirs; do
19832 if test -r "$ac_dir/X11/Xlib.h"; then
19833 ac_x_includes=$ac_dir
19834 break
19835 fi
19836done
19837fi
19838rm -f conftest.err conftest.i conftest.$ac_ext
19839fi # $ac_x_includes = no
19840
19841if test "$ac_x_libraries" = no; then
19842 # Check for the libraries.
19843 # See if we find them without any special options.
19844 # Don't add to $LIBS permanently.
19845 ac_save_LIBS=$LIBS
19846 LIBS="-lX11 $LIBS"
19847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19848/* end confdefs.h. */
19849@%:@include <X11/Xlib.h>
19850int
19851main ()
19852{
19853XrmInitialize ()
19854 ;
19855 return 0;
19856}
19857_ACEOF
19858if ac_fn_c_try_link "$LINENO"; then :
19859 LIBS=$ac_save_LIBS
19860# We can link X programs with no special library path.
19861ac_x_libraries=
19862else
19863 LIBS=$ac_save_LIBS
19864for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19865do
19866 # Don't even attempt the hair of trying to link an X program!
19867 for ac_extension in a so sl dylib la dll; do
19868 if test -r "$ac_dir/libX11.$ac_extension"; then
19869 ac_x_libraries=$ac_dir
19870 break 2
19871 fi
19872 done
19873done
19874fi
19875rm -f core conftest.err conftest.$ac_objext \
19876 conftest$ac_exeext conftest.$ac_ext
19877fi # $ac_x_libraries = no
19878
19879case $ac_x_includes,$ac_x_libraries in #(
19880 no,* | *,no | *\'*)
19881 # Didn't find X, or a directory has "'" in its name.
19882 ac_cv_have_x="have_x=no";; #(
19883 *)
19884 # Record where we found X for the cache.
19885 ac_cv_have_x="have_x=yes\
19886 ac_x_includes='$ac_x_includes'\
19887 ac_x_libraries='$ac_x_libraries'"
19888esac
19889fi
19890;; #(
19891 *) have_x=yes;;
19892 esac
19893 eval "$ac_cv_have_x"
19894fi # $with_x != no
19895
19896if test "$have_x" != yes; then
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19898$as_echo "$have_x" >&6; }
19899 no_x=yes
19900else
19901 # If each of the values was on the command line, it overrides each guess.
19902 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19903 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19904 # Update the cache value to reflect the command line values.
19905 ac_cv_have_x="have_x=yes\
19906 ac_x_includes='$x_includes'\
19907 ac_x_libraries='$x_libraries'"
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19909$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19910fi
19911
19912if test "$no_x" = yes; then
19913 # Not all programs may use this symbol, but it does not hurt to define it.
19914
19915$as_echo "@%:@define X_DISPLAY_MISSING 1" >>confdefs.h
19916
19917 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19918else
19919 if test -n "$x_includes"; then
19920 X_CFLAGS="$X_CFLAGS -I$x_includes"
19921 fi
19922
19923 # It would also be nice to do this for all -L options, not just this one.
19924 if test -n "$x_libraries"; then
19925 X_LIBS="$X_LIBS -L$x_libraries"
19926 # For Solaris; some versions of Sun CC require a space after -R and
19927 # others require no space. Words are not sufficient . . . .
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19929$as_echo_n "checking whether -R must be followed by a space... " >&6; }
19930 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19931 ac_xsave_c_werror_flag=$ac_c_werror_flag
19932 ac_c_werror_flag=yes
19933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19934/* end confdefs.h. */
19935
19936int
19937main ()
19938{
19939
19940 ;
19941 return 0;
19942}
19943_ACEOF
19944if ac_fn_c_try_link "$LINENO"; then :
19945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19946$as_echo "no" >&6; }
19947 X_LIBS="$X_LIBS -R$x_libraries"
19948else
19949 LIBS="$ac_xsave_LIBS -R $x_libraries"
19950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19951/* end confdefs.h. */
19952
19953int
19954main ()
19955{
19956
19957 ;
19958 return 0;
19959}
19960_ACEOF
19961if ac_fn_c_try_link "$LINENO"; then :
19962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19963$as_echo "yes" >&6; }
19964 X_LIBS="$X_LIBS -R $x_libraries"
19965else
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19967$as_echo "neither works" >&6; }
19968fi
19969rm -f core conftest.err conftest.$ac_objext \
19970 conftest$ac_exeext conftest.$ac_ext
19971fi
19972rm -f core conftest.err conftest.$ac_objext \
19973 conftest$ac_exeext conftest.$ac_ext
19974 ac_c_werror_flag=$ac_xsave_c_werror_flag
19975 LIBS=$ac_xsave_LIBS
19976 fi
19977
19978 # Check for system-dependent libraries X programs must link with.
19979 # Do this before checking for the system-independent R6 libraries
19980 # (-lICE), since we may need -lsocket or whatever for X linking.
19981
19982 if test "$ISC" = yes; then
19983 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19984 else
19985 # Martyn Johnson says this is needed for Ultrix, if the X
19986 # libraries were built with DECnet support. And Karl Berry says
19987 # the Alpha needs dnet_stub (dnet does not exist).
19988 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19990/* end confdefs.h. */
19991
19992/* Override any GCC internal prototype to avoid an error.
19993 Use char because int might match the return type of a GCC
19994 builtin and then its argument prototype would still apply. */
19995#ifdef __cplusplus
19996extern "C"
19997#endif
19998char XOpenDisplay ();
19999int
20000main ()
20001{
20002return XOpenDisplay ();
20003 ;
20004 return 0;
20005}
20006_ACEOF
20007if ac_fn_c_try_link "$LINENO"; then :
20008
20009else
20010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
20011$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
20012if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
20013 $as_echo_n "(cached) " >&6
20014else
20015 ac_check_lib_save_LIBS=$LIBS
20016LIBS="-ldnet $LIBS"
20017cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20018/* end confdefs.h. */
20019
20020/* Override any GCC internal prototype to avoid an error.
20021 Use char because int might match the return type of a GCC
20022 builtin and then its argument prototype would still apply. */
20023#ifdef __cplusplus
20024extern "C"
20025#endif
20026char dnet_ntoa ();
20027int
20028main ()
20029{
20030return dnet_ntoa ();
20031 ;
20032 return 0;
20033}
20034_ACEOF
20035if ac_fn_c_try_link "$LINENO"; then :
20036 ac_cv_lib_dnet_dnet_ntoa=yes
20037else
20038 ac_cv_lib_dnet_dnet_ntoa=no
20039fi
20040rm -f core conftest.err conftest.$ac_objext \
20041 conftest$ac_exeext conftest.$ac_ext
20042LIBS=$ac_check_lib_save_LIBS
20043fi
20044{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20045$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
20046if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
20047 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20048fi
20049
20050 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
20052$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
20053if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
20054 $as_echo_n "(cached) " >&6
20055else
20056 ac_check_lib_save_LIBS=$LIBS
20057LIBS="-ldnet_stub $LIBS"
20058cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20059/* end confdefs.h. */
20060
20061/* Override any GCC internal prototype to avoid an error.
20062 Use char because int might match the return type of a GCC
20063 builtin and then its argument prototype would still apply. */
20064#ifdef __cplusplus
20065extern "C"
20066#endif
20067char dnet_ntoa ();
20068int
20069main ()
20070{
20071return dnet_ntoa ();
20072 ;
20073 return 0;
20074}
20075_ACEOF
20076if ac_fn_c_try_link "$LINENO"; then :
20077 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20078else
20079 ac_cv_lib_dnet_stub_dnet_ntoa=no
20080fi
20081rm -f core conftest.err conftest.$ac_objext \
20082 conftest$ac_exeext conftest.$ac_ext
20083LIBS=$ac_check_lib_save_LIBS
20084fi
20085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20086$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
20087if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
20088 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20089fi
20090
20091 fi
20092fi
20093rm -f core conftest.err conftest.$ac_objext \
20094 conftest$ac_exeext conftest.$ac_ext
20095 LIBS="$ac_xsave_LIBS"
20096
20097 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20098 # to get the SysV transport functions.
20099 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20100 # needs -lnsl.
20101 # The nsl library prevents programs from opening the X display
20102 # on Irix 5.2, according to T.E. Dickey.
20103 # The functions gethostbyname, getservbyname, and inet_addr are
20104 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20105 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
20106if test "x$ac_cv_func_gethostbyname" = xyes; then :
20107
20108fi
20109
20110 if test $ac_cv_func_gethostbyname = no; then
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
20112$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
20113if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
20114 $as_echo_n "(cached) " >&6
20115else
20116 ac_check_lib_save_LIBS=$LIBS
20117LIBS="-lnsl $LIBS"
20118cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20119/* end confdefs.h. */
20120
20121/* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20124#ifdef __cplusplus
20125extern "C"
20126#endif
20127char gethostbyname ();
20128int
20129main ()
20130{
20131return gethostbyname ();
20132 ;
20133 return 0;
20134}
20135_ACEOF
20136if ac_fn_c_try_link "$LINENO"; then :
20137 ac_cv_lib_nsl_gethostbyname=yes
20138else
20139 ac_cv_lib_nsl_gethostbyname=no
20140fi
20141rm -f core conftest.err conftest.$ac_objext \
20142 conftest$ac_exeext conftest.$ac_ext
20143LIBS=$ac_check_lib_save_LIBS
20144fi
20145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
20146$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
20147if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
20148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20149fi
20150
20151 if test $ac_cv_lib_nsl_gethostbyname = no; then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
20153$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
20154if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
20155 $as_echo_n "(cached) " >&6
20156else
20157 ac_check_lib_save_LIBS=$LIBS
20158LIBS="-lbsd $LIBS"
20159cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20160/* end confdefs.h. */
20161
20162/* Override any GCC internal prototype to avoid an error.
20163 Use char because int might match the return type of a GCC
20164 builtin and then its argument prototype would still apply. */
20165#ifdef __cplusplus
20166extern "C"
20167#endif
20168char gethostbyname ();
20169int
20170main ()
20171{
20172return gethostbyname ();
20173 ;
20174 return 0;
20175}
20176_ACEOF
20177if ac_fn_c_try_link "$LINENO"; then :
20178 ac_cv_lib_bsd_gethostbyname=yes
20179else
20180 ac_cv_lib_bsd_gethostbyname=no
20181fi
20182rm -f core conftest.err conftest.$ac_objext \
20183 conftest$ac_exeext conftest.$ac_ext
20184LIBS=$ac_check_lib_save_LIBS
20185fi
20186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
20187$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
20188if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
20189 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20190fi
20191
20192 fi
20193 fi
20194
20195 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20196 # socket/setsockopt and other routines are undefined under SCO ODT
20197 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20198 # on later versions), says Simon Leinen: it contains gethostby*
20199 # variants that don't use the name server (or something). -lsocket
20200 # must be given before -lnsl if both are needed. We assume that
20201 # if connect needs -lnsl, so does gethostbyname.
20202 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
20203if test "x$ac_cv_func_connect" = xyes; then :
20204
20205fi
20206
20207 if test $ac_cv_func_connect = no; then
20208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
20209$as_echo_n "checking for connect in -lsocket... " >&6; }
20210if ${ac_cv_lib_socket_connect+:} false; then :
20211 $as_echo_n "(cached) " >&6
20212else
20213 ac_check_lib_save_LIBS=$LIBS
20214LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20215cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216/* end confdefs.h. */
20217
20218/* Override any GCC internal prototype to avoid an error.
20219 Use char because int might match the return type of a GCC
20220 builtin and then its argument prototype would still apply. */
20221#ifdef __cplusplus
20222extern "C"
20223#endif
20224char connect ();
20225int
20226main ()
20227{
20228return connect ();
20229 ;
20230 return 0;
20231}
20232_ACEOF
20233if ac_fn_c_try_link "$LINENO"; then :
20234 ac_cv_lib_socket_connect=yes
20235else
20236 ac_cv_lib_socket_connect=no
20237fi
20238rm -f core conftest.err conftest.$ac_objext \
20239 conftest$ac_exeext conftest.$ac_ext
20240LIBS=$ac_check_lib_save_LIBS
20241fi
20242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
20243$as_echo "$ac_cv_lib_socket_connect" >&6; }
20244if test "x$ac_cv_lib_socket_connect" = xyes; then :
20245 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20246fi
20247
20248 fi
20249
20250 # Guillermo Gomez says -lposix is necessary on A/UX.
20251 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
20252if test "x$ac_cv_func_remove" = xyes; then :
20253
20254fi
20255
20256 if test $ac_cv_func_remove = no; then
20257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
20258$as_echo_n "checking for remove in -lposix... " >&6; }
20259if ${ac_cv_lib_posix_remove+:} false; then :
20260 $as_echo_n "(cached) " >&6
20261else
20262 ac_check_lib_save_LIBS=$LIBS
20263LIBS="-lposix $LIBS"
20264cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20265/* end confdefs.h. */
20266
20267/* Override any GCC internal prototype to avoid an error.
20268 Use char because int might match the return type of a GCC
20269 builtin and then its argument prototype would still apply. */
20270#ifdef __cplusplus
20271extern "C"
20272#endif
20273char remove ();
20274int
20275main ()
20276{
20277return remove ();
20278 ;
20279 return 0;
20280}
20281_ACEOF
20282if ac_fn_c_try_link "$LINENO"; then :
20283 ac_cv_lib_posix_remove=yes
20284else
20285 ac_cv_lib_posix_remove=no
20286fi
20287rm -f core conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20289LIBS=$ac_check_lib_save_LIBS
20290fi
20291{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
20292$as_echo "$ac_cv_lib_posix_remove" >&6; }
20293if test "x$ac_cv_lib_posix_remove" = xyes; then :
20294 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20295fi
20296
20297 fi
20298
20299 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20300 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
20301if test "x$ac_cv_func_shmat" = xyes; then :
20302
20303fi
20304
20305 if test $ac_cv_func_shmat = no; then
20306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
20307$as_echo_n "checking for shmat in -lipc... " >&6; }
20308if ${ac_cv_lib_ipc_shmat+:} false; then :
20309 $as_echo_n "(cached) " >&6
20310else
20311 ac_check_lib_save_LIBS=$LIBS
20312LIBS="-lipc $LIBS"
20313cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20314/* end confdefs.h. */
20315
20316/* Override any GCC internal prototype to avoid an error.
20317 Use char because int might match the return type of a GCC
20318 builtin and then its argument prototype would still apply. */
20319#ifdef __cplusplus
20320extern "C"
20321#endif
20322char shmat ();
20323int
20324main ()
20325{
20326return shmat ();
20327 ;
20328 return 0;
20329}
20330_ACEOF
20331if ac_fn_c_try_link "$LINENO"; then :
20332 ac_cv_lib_ipc_shmat=yes
20333else
20334 ac_cv_lib_ipc_shmat=no
20335fi
20336rm -f core conftest.err conftest.$ac_objext \
20337 conftest$ac_exeext conftest.$ac_ext
20338LIBS=$ac_check_lib_save_LIBS
20339fi
20340{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
20341$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
20342if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
20343 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
20344fi
20345
20346 fi
20347 fi
20348
20349 # Check for libraries that X11R6 Xt/Xaw programs need.
20350 ac_save_LDFLAGS=$LDFLAGS
20351 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
20352 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
20353 # check for ICE first), but we must link in the order -lSM -lICE or
20354 # we get undefined symbols. So assume we have SM if we have ICE.
20355 # These have to be linked with before -lX11, unlike the other
20356 # libraries we check for below, so use a different variable.
20357 # John Interrante, Karl Berry
20358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
20359$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
20360if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
20361 $as_echo_n "(cached) " >&6
20362else
20363 ac_check_lib_save_LIBS=$LIBS
20364LIBS="-lICE $X_EXTRA_LIBS $LIBS"
20365cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20366/* end confdefs.h. */
20367
20368/* Override any GCC internal prototype to avoid an error.
20369 Use char because int might match the return type of a GCC
20370 builtin and then its argument prototype would still apply. */
20371#ifdef __cplusplus
20372extern "C"
20373#endif
20374char IceConnectionNumber ();
20375int
20376main ()
20377{
20378return IceConnectionNumber ();
20379 ;
20380 return 0;
20381}
20382_ACEOF
20383if ac_fn_c_try_link "$LINENO"; then :
20384 ac_cv_lib_ICE_IceConnectionNumber=yes
20385else
20386 ac_cv_lib_ICE_IceConnectionNumber=no
20387fi
20388rm -f core conftest.err conftest.$ac_objext \
20389 conftest$ac_exeext conftest.$ac_ext
20390LIBS=$ac_check_lib_save_LIBS
20391fi
20392{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
20393$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
20394if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
20395 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
20396fi
20397
20398 LDFLAGS=$ac_save_LDFLAGS
20399
20400fi
20401
20402
20403
20404# See if we are to build x11vnc:
20405
20406
20407@%:@ Check whether --with-system-libvncserver was given.
20408if test "${with_system_libvncserver+set}" = set; then :
20409 withval=$with_system_libvncserver;
20410fi
20411
20412
20413@%:@ Check whether --with-x11vnc was given.
20414if test "${with_x11vnc+set}" = set; then :
20415 withval=$with_x11vnc;
20416fi
20417
20418
20419if test ! -z "$with_x11vnc" -a "$with_x11vnc" = "yes"; then
20420 build_x11vnc="yes"
20421elif test "$PACKAGE_NAME" = "x11vnc"; then
20422 build_x11vnc="yes"
20423else
20424 build_x11vnc="no"
20425fi
20426
20427# x11vnc only:
20428if test "$build_x11vnc" = "yes"; then
20429
20430
20431
20432
20433
20434
20435
20436
20437
20438
20439
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452@%:@ Check whether --with-xkeyboard was given.
20453if test "${with_xkeyboard+set}" = set; then :
20454 withval=$with_xkeyboard;
20455fi
20456
20457
20458@%:@ Check whether --with-xinerama was given.
20459if test "${with_xinerama+set}" = set; then :
20460 withval=$with_xinerama;
20461fi
20462
20463
20464@%:@ Check whether --with-xrandr was given.
20465if test "${with_xrandr+set}" = set; then :
20466 withval=$with_xrandr;
20467fi
20468
20469
20470@%:@ Check whether --with-xfixes was given.
20471if test "${with_xfixes+set}" = set; then :
20472 withval=$with_xfixes;
20473fi
20474
20475
20476@%:@ Check whether --with-xdamage was given.
20477if test "${with_xdamage+set}" = set; then :
20478 withval=$with_xdamage;
20479fi
20480
20481
20482@%:@ Check whether --with-xtrap was given.
20483if test "${with_xtrap+set}" = set; then :
20484 withval=$with_xtrap;
20485fi
20486
20487
20488@%:@ Check whether --with-xrecord was given.
20489if test "${with_xrecord+set}" = set; then :
20490 withval=$with_xrecord;
20491fi
20492
20493
20494@%:@ Check whether --with-fbpm was given.
20495if test "${with_fbpm+set}" = set; then :
20496 withval=$with_fbpm;
20497fi
20498
20499
20500@%:@ Check whether --with-dpms was given.
20501if test "${with_dpms+set}" = set; then :
20502 withval=$with_dpms;
20503fi
20504
20505
20506@%:@ Check whether --with-v4l was given.
20507if test "${with_v4l+set}" = set; then :
20508 withval=$with_v4l;
20509fi
20510
20511
20512@%:@ Check whether --with-fbdev was given.
20513if test "${with_fbdev+set}" = set; then :
20514 withval=$with_fbdev;
20515fi
20516
20517
20518@%:@ Check whether --with-uinput was given.
20519if test "${with_uinput+set}" = set; then :
20520 withval=$with_uinput;
20521fi
20522
20523
20524@%:@ Check whether --with-macosx-native was given.
20525if test "${with_macosx_native+set}" = set; then :
20526 withval=$with_macosx_native;
20527fi
20528
20529
20530fi
20531# end x11vnc only.
20532
20533if test "x$with_x" = "xno"; then
20534 HAVE_X11="false"
20535elif test "$X_CFLAGS" != "-DX_DISPLAY_MISSING"; then
20536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XGetImage in -lX11" >&5
20537$as_echo_n "checking for XGetImage in -lX11... " >&6; }
20538if ${ac_cv_lib_X11_XGetImage+:} false; then :
20539 $as_echo_n "(cached) " >&6
20540else
20541 ac_check_lib_save_LIBS=$LIBS
20542LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20543cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20544/* end confdefs.h. */
20545
20546/* Override any GCC internal prototype to avoid an error.
20547 Use char because int might match the return type of a GCC
20548 builtin and then its argument prototype would still apply. */
20549#ifdef __cplusplus
20550extern "C"
20551#endif
20552char XGetImage ();
20553int
20554main ()
20555{
20556return XGetImage ();
20557 ;
20558 return 0;
20559}
20560_ACEOF
20561if ac_fn_c_try_link "$LINENO"; then :
20562 ac_cv_lib_X11_XGetImage=yes
20563else
20564 ac_cv_lib_X11_XGetImage=no
20565fi
20566rm -f core conftest.err conftest.$ac_objext \
20567 conftest$ac_exeext conftest.$ac_ext
20568LIBS=$ac_check_lib_save_LIBS
20569fi
20570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XGetImage" >&5
20571$as_echo "$ac_cv_lib_X11_XGetImage" >&6; }
20572if test "x$ac_cv_lib_X11_XGetImage" = xyes; then :
20573 $as_echo "@%:@define HAVE_X11 1" >>confdefs.h
20574 HAVE_X11="true"
20575else
20576 HAVE_X11="false"
20577fi
20578
20579
20580 # x11vnc only:
20581 if test $HAVE_X11 = "true" -a "$build_x11vnc" = "yes"; then
20582 X_PRELIBS="$X_PRELIBS -lXext"
20583
20584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmGetImage in -lXext" >&5
20585$as_echo_n "checking for XShmGetImage in -lXext... " >&6; }
20586if ${ac_cv_lib_Xext_XShmGetImage+:} false; then :
20587 $as_echo_n "(cached) " >&6
20588else
20589 ac_check_lib_save_LIBS=$LIBS
20590LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20591cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592/* end confdefs.h. */
20593
20594/* Override any GCC internal prototype to avoid an error.
20595 Use char because int might match the return type of a GCC
20596 builtin and then its argument prototype would still apply. */
20597#ifdef __cplusplus
20598extern "C"
20599#endif
20600char XShmGetImage ();
20601int
20602main ()
20603{
20604return XShmGetImage ();
20605 ;
20606 return 0;
20607}
20608_ACEOF
20609if ac_fn_c_try_link "$LINENO"; then :
20610 ac_cv_lib_Xext_XShmGetImage=yes
20611else
20612 ac_cv_lib_Xext_XShmGetImage=no
20613fi
20614rm -f core conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616LIBS=$ac_check_lib_save_LIBS
20617fi
20618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmGetImage" >&5
20619$as_echo "$ac_cv_lib_Xext_XShmGetImage" >&6; }
20620if test "x$ac_cv_lib_Xext_XShmGetImage" = xyes; then :
20621 $as_echo "@%:@define HAVE_XSHM 1" >>confdefs.h
20622
20623fi
20624
20625
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XReadScreen in -lXext" >&5
20627$as_echo_n "checking for XReadScreen in -lXext... " >&6; }
20628if ${ac_cv_lib_Xext_XReadScreen+:} false; then :
20629 $as_echo_n "(cached) " >&6
20630else
20631 ac_check_lib_save_LIBS=$LIBS
20632LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20633cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20634/* end confdefs.h. */
20635
20636/* Override any GCC internal prototype to avoid an error.
20637 Use char because int might match the return type of a GCC
20638 builtin and then its argument prototype would still apply. */
20639#ifdef __cplusplus
20640extern "C"
20641#endif
20642char XReadScreen ();
20643int
20644main ()
20645{
20646return XReadScreen ();
20647 ;
20648 return 0;
20649}
20650_ACEOF
20651if ac_fn_c_try_link "$LINENO"; then :
20652 ac_cv_lib_Xext_XReadScreen=yes
20653else
20654 ac_cv_lib_Xext_XReadScreen=no
20655fi
20656rm -f core conftest.err conftest.$ac_objext \
20657 conftest$ac_exeext conftest.$ac_ext
20658LIBS=$ac_check_lib_save_LIBS
20659fi
20660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XReadScreen" >&5
20661$as_echo "$ac_cv_lib_Xext_XReadScreen" >&6; }
20662if test "x$ac_cv_lib_Xext_XReadScreen" = xyes; then :
20663 $as_echo "@%:@define HAVE_SOLARIS_XREADSCREEN 1" >>confdefs.h
20664
20665fi
20666
20667
20668 ac_fn_c_check_header_compile "$LINENO" "X11/extensions/readdisplay.h" "ac_cv_header_X11_extensions_readdisplay_h" "#include <X11/Xlib.h>
20669"
20670if test "x$ac_cv_header_X11_extensions_readdisplay_h" = xyes; then :
20671 $as_echo "@%:@define HAVE_IRIX_XREADDISPLAY 1" >>confdefs.h
20672
20673fi
20674
20675
20676
20677 if test "x$with_fbpm" != "xno"; then
20678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FBPMForceLevel in -lXext" >&5
20679$as_echo_n "checking for FBPMForceLevel in -lXext... " >&6; }
20680if ${ac_cv_lib_Xext_FBPMForceLevel+:} false; then :
20681 $as_echo_n "(cached) " >&6
20682else
20683 ac_check_lib_save_LIBS=$LIBS
20684LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20686/* end confdefs.h. */
20687
20688/* Override any GCC internal prototype to avoid an error.
20689 Use char because int might match the return type of a GCC
20690 builtin and then its argument prototype would still apply. */
20691#ifdef __cplusplus
20692extern "C"
20693#endif
20694char FBPMForceLevel ();
20695int
20696main ()
20697{
20698return FBPMForceLevel ();
20699 ;
20700 return 0;
20701}
20702_ACEOF
20703if ac_fn_c_try_link "$LINENO"; then :
20704 ac_cv_lib_Xext_FBPMForceLevel=yes
20705else
20706 ac_cv_lib_Xext_FBPMForceLevel=no
20707fi
20708rm -f core conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20710LIBS=$ac_check_lib_save_LIBS
20711fi
20712{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_FBPMForceLevel" >&5
20713$as_echo "$ac_cv_lib_Xext_FBPMForceLevel" >&6; }
20714if test "x$ac_cv_lib_Xext_FBPMForceLevel" = xyes; then :
20715 $as_echo "@%:@define HAVE_FBPM 1" >>confdefs.h
20716
20717fi
20718
20719 fi
20720
20721 if test "x$with_dpms" != "xno"; then
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPMSForceLevel in -lXext" >&5
20723$as_echo_n "checking for DPMSForceLevel in -lXext... " >&6; }
20724if ${ac_cv_lib_Xext_DPMSForceLevel+:} false; then :
20725 $as_echo_n "(cached) " >&6
20726else
20727 ac_check_lib_save_LIBS=$LIBS
20728LIBS="-lXext $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20729cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730/* end confdefs.h. */
20731
20732/* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20735#ifdef __cplusplus
20736extern "C"
20737#endif
20738char DPMSForceLevel ();
20739int
20740main ()
20741{
20742return DPMSForceLevel ();
20743 ;
20744 return 0;
20745}
20746_ACEOF
20747if ac_fn_c_try_link "$LINENO"; then :
20748 ac_cv_lib_Xext_DPMSForceLevel=yes
20749else
20750 ac_cv_lib_Xext_DPMSForceLevel=no
20751fi
20752rm -f core conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754LIBS=$ac_check_lib_save_LIBS
20755fi
20756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_DPMSForceLevel" >&5
20757$as_echo "$ac_cv_lib_Xext_DPMSForceLevel" >&6; }
20758if test "x$ac_cv_lib_Xext_DPMSForceLevel" = xyes; then :
20759 $as_echo "@%:@define HAVE_DPMS 1" >>confdefs.h
20760
20761fi
20762
20763 fi
20764
20765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestGrabControl in -lXtst" >&5
20766$as_echo_n "checking for XTestGrabControl in -lXtst... " >&6; }
20767if ${ac_cv_lib_Xtst_XTestGrabControl+:} false; then :
20768 $as_echo_n "(cached) " >&6
20769else
20770 ac_check_lib_save_LIBS=$LIBS
20771LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20773/* end confdefs.h. */
20774
20775/* Override any GCC internal prototype to avoid an error.
20776 Use char because int might match the return type of a GCC
20777 builtin and then its argument prototype would still apply. */
20778#ifdef __cplusplus
20779extern "C"
20780#endif
20781char XTestGrabControl ();
20782int
20783main ()
20784{
20785return XTestGrabControl ();
20786 ;
20787 return 0;
20788}
20789_ACEOF
20790if ac_fn_c_try_link "$LINENO"; then :
20791 ac_cv_lib_Xtst_XTestGrabControl=yes
20792else
20793 ac_cv_lib_Xtst_XTestGrabControl=no
20794fi
20795rm -f core conftest.err conftest.$ac_objext \
20796 conftest$ac_exeext conftest.$ac_ext
20797LIBS=$ac_check_lib_save_LIBS
20798fi
20799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestGrabControl" >&5
20800$as_echo "$ac_cv_lib_Xtst_XTestGrabControl" >&6; }
20801if test "x$ac_cv_lib_Xtst_XTestGrabControl" = xyes; then :
20802 X_PRELIBS="-lXtst $X_PRELIBS"
20803 $as_echo "@%:@define HAVE_XTESTGRABCONTROL 1" >>confdefs.h
20804 HAVE_XTESTGRABCONTROL="true"
20805fi
20806
20807
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestFakeKeyEvent in -lXtst" >&5
20809$as_echo_n "checking for XTestFakeKeyEvent in -lXtst... " >&6; }
20810if ${ac_cv_lib_Xtst_XTestFakeKeyEvent+:} false; then :
20811 $as_echo_n "(cached) " >&6
20812else
20813 ac_check_lib_save_LIBS=$LIBS
20814LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20815cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20816/* end confdefs.h. */
20817
20818/* Override any GCC internal prototype to avoid an error.
20819 Use char because int might match the return type of a GCC
20820 builtin and then its argument prototype would still apply. */
20821#ifdef __cplusplus
20822extern "C"
20823#endif
20824char XTestFakeKeyEvent ();
20825int
20826main ()
20827{
20828return XTestFakeKeyEvent ();
20829 ;
20830 return 0;
20831}
20832_ACEOF
20833if ac_fn_c_try_link "$LINENO"; then :
20834 ac_cv_lib_Xtst_XTestFakeKeyEvent=yes
20835else
20836 ac_cv_lib_Xtst_XTestFakeKeyEvent=no
20837fi
20838rm -f core conftest.err conftest.$ac_objext \
20839 conftest$ac_exeext conftest.$ac_ext
20840LIBS=$ac_check_lib_save_LIBS
20841fi
20842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestFakeKeyEvent" >&5
20843$as_echo "$ac_cv_lib_Xtst_XTestFakeKeyEvent" >&6; }
20844if test "x$ac_cv_lib_Xtst_XTestFakeKeyEvent" = xyes; then :
20845 X_PRELIBS="-lXtst $X_PRELIBS"
20846 $as_echo "@%:@define HAVE_XTEST 1" >>confdefs.h
20847 HAVE_XTEST="true"
20848fi
20849
20850
20851 if test "x$with_xrecord" != "xno"; then
20852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRecordEnableContextAsync in -lXtst" >&5
20853$as_echo_n "checking for XRecordEnableContextAsync in -lXtst... " >&6; }
20854if ${ac_cv_lib_Xtst_XRecordEnableContextAsync+:} false; then :
20855 $as_echo_n "(cached) " >&6
20856else
20857 ac_check_lib_save_LIBS=$LIBS
20858LIBS="-lXtst $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20860/* end confdefs.h. */
20861
20862/* Override any GCC internal prototype to avoid an error.
20863 Use char because int might match the return type of a GCC
20864 builtin and then its argument prototype would still apply. */
20865#ifdef __cplusplus
20866extern "C"
20867#endif
20868char XRecordEnableContextAsync ();
20869int
20870main ()
20871{
20872return XRecordEnableContextAsync ();
20873 ;
20874 return 0;
20875}
20876_ACEOF
20877if ac_fn_c_try_link "$LINENO"; then :
20878 ac_cv_lib_Xtst_XRecordEnableContextAsync=yes
20879else
20880 ac_cv_lib_Xtst_XRecordEnableContextAsync=no
20881fi
20882rm -f core conftest.err conftest.$ac_objext \
20883 conftest$ac_exeext conftest.$ac_ext
20884LIBS=$ac_check_lib_save_LIBS
20885fi
20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XRecordEnableContextAsync" >&5
20887$as_echo "$ac_cv_lib_Xtst_XRecordEnableContextAsync" >&6; }
20888if test "x$ac_cv_lib_Xtst_XRecordEnableContextAsync" = xyes; then :
20889 X_PRELIBS="-lXtst $X_PRELIBS"
20890 $as_echo "@%:@define HAVE_RECORD 1" >>confdefs.h
20891
20892fi
20893
20894 fi
20895
20896 # we use XTRAP on X11R5, or user can set X11VNC_USE_XTRAP
20897 if test "x$with_xtrap" != "xno"; then
20898 if test ! -z "$X11VNC_USE_XTRAP" -o -z "$HAVE_XTESTGRABCONTROL"; then
20899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XETrapSetGrabServer in -lXTrap" >&5
20900$as_echo_n "checking for XETrapSetGrabServer in -lXTrap... " >&6; }
20901if ${ac_cv_lib_XTrap_XETrapSetGrabServer+:} false; then :
20902 $as_echo_n "(cached) " >&6
20903else
20904 ac_check_lib_save_LIBS=$LIBS
20905LIBS="-lXTrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20906cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20907/* end confdefs.h. */
20908
20909/* Override any GCC internal prototype to avoid an error.
20910 Use char because int might match the return type of a GCC
20911 builtin and then its argument prototype would still apply. */
20912#ifdef __cplusplus
20913extern "C"
20914#endif
20915char XETrapSetGrabServer ();
20916int
20917main ()
20918{
20919return XETrapSetGrabServer ();
20920 ;
20921 return 0;
20922}
20923_ACEOF
20924if ac_fn_c_try_link "$LINENO"; then :
20925 ac_cv_lib_XTrap_XETrapSetGrabServer=yes
20926else
20927 ac_cv_lib_XTrap_XETrapSetGrabServer=no
20928fi
20929rm -f core conftest.err conftest.$ac_objext \
20930 conftest$ac_exeext conftest.$ac_ext
20931LIBS=$ac_check_lib_save_LIBS
20932fi
20933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XTrap_XETrapSetGrabServer" >&5
20934$as_echo "$ac_cv_lib_XTrap_XETrapSetGrabServer" >&6; }
20935if test "x$ac_cv_lib_XTrap_XETrapSetGrabServer" = xyes; then :
20936 X_PRELIBS="$X_PRELIBS -lXTrap"
20937 $as_echo "@%:@define HAVE_LIBXTRAP 1" >>confdefs.h
20938
20939fi
20940
20941 # tru64 uses libXETrap.so
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XETrapSetGrabServer in -lXETrap" >&5
20943$as_echo_n "checking for XETrapSetGrabServer in -lXETrap... " >&6; }
20944if ${ac_cv_lib_XETrap_XETrapSetGrabServer+:} false; then :
20945 $as_echo_n "(cached) " >&6
20946else
20947 ac_check_lib_save_LIBS=$LIBS
20948LIBS="-lXETrap $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
20949cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20950/* end confdefs.h. */
20951
20952/* Override any GCC internal prototype to avoid an error.
20953 Use char because int might match the return type of a GCC
20954 builtin and then its argument prototype would still apply. */
20955#ifdef __cplusplus
20956extern "C"
20957#endif
20958char XETrapSetGrabServer ();
20959int
20960main ()
20961{
20962return XETrapSetGrabServer ();
20963 ;
20964 return 0;
20965}
20966_ACEOF
20967if ac_fn_c_try_link "$LINENO"; then :
20968 ac_cv_lib_XETrap_XETrapSetGrabServer=yes
20969else
20970 ac_cv_lib_XETrap_XETrapSetGrabServer=no
20971fi
20972rm -f core conftest.err conftest.$ac_objext \
20973 conftest$ac_exeext conftest.$ac_ext
20974LIBS=$ac_check_lib_save_LIBS
20975fi
20976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_XETrap_XETrapSetGrabServer" >&5
20977$as_echo "$ac_cv_lib_XETrap_XETrapSetGrabServer" >&6; }
20978if test "x$ac_cv_lib_XETrap_XETrapSetGrabServer" = xyes; then :
20979 X_PRELIBS="$X_PRELIBS -lXETrap"
20980 $as_echo "@%:@define HAVE_LIBXTRAP 1" >>confdefs.h
20981
20982fi
20983
20984 fi
20985 fi
20986
20987 if test "x$with_xkeyboard" != "xno"; then
20988 saved_CPPFLAGS="$CPPFLAGS"
20989 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
20990 ac_fn_c_check_header_compile "$LINENO" "X11/XKBlib.h" "ac_cv_header_X11_XKBlib_h" "#include <X11/Xlib.h>
20991"
20992if test "x$ac_cv_header_X11_XKBlib_h" = xyes; then :
20993 HAVE_XKBLIB_H="true"
20994else
20995 HAVE_XKBLIB_H="false"
20996fi
20997
20998
20999 CPPFLAGS="$saved_CPPFLAGS"
21000 if test $HAVE_XKBLIB_H = "true"; then
21001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XkbSelectEvents in -lX11" >&5
21002$as_echo_n "checking for XkbSelectEvents in -lX11... " >&6; }
21003if ${ac_cv_lib_X11_XkbSelectEvents+:} false; then :
21004 $as_echo_n "(cached) " >&6
21005else
21006 ac_check_lib_save_LIBS=$LIBS
21007LIBS="-lX11 $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21008cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21009/* end confdefs.h. */
21010
21011/* Override any GCC internal prototype to avoid an error.
21012 Use char because int might match the return type of a GCC
21013 builtin and then its argument prototype would still apply. */
21014#ifdef __cplusplus
21015extern "C"
21016#endif
21017char XkbSelectEvents ();
21018int
21019main ()
21020{
21021return XkbSelectEvents ();
21022 ;
21023 return 0;
21024}
21025_ACEOF
21026if ac_fn_c_try_link "$LINENO"; then :
21027 ac_cv_lib_X11_XkbSelectEvents=yes
21028else
21029 ac_cv_lib_X11_XkbSelectEvents=no
21030fi
21031rm -f core conftest.err conftest.$ac_objext \
21032 conftest$ac_exeext conftest.$ac_ext
21033LIBS=$ac_check_lib_save_LIBS
21034fi
21035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_X11_XkbSelectEvents" >&5
21036$as_echo "$ac_cv_lib_X11_XkbSelectEvents" >&6; }
21037if test "x$ac_cv_lib_X11_XkbSelectEvents" = xyes; then :
21038 $as_echo "@%:@define HAVE_XKEYBOARD 1" >>confdefs.h
21039
21040fi
21041
21042 fi
21043 fi
21044
21045 if test "x$with_xinerama" != "xno"; then
21046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5
21047$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; }
21048if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then :
21049 $as_echo_n "(cached) " >&6
21050else
21051 ac_check_lib_save_LIBS=$LIBS
21052LIBS="-lXinerama $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21054/* end confdefs.h. */
21055
21056/* Override any GCC internal prototype to avoid an error.
21057 Use char because int might match the return type of a GCC
21058 builtin and then its argument prototype would still apply. */
21059#ifdef __cplusplus
21060extern "C"
21061#endif
21062char XineramaQueryScreens ();
21063int
21064main ()
21065{
21066return XineramaQueryScreens ();
21067 ;
21068 return 0;
21069}
21070_ACEOF
21071if ac_fn_c_try_link "$LINENO"; then :
21072 ac_cv_lib_Xinerama_XineramaQueryScreens=yes
21073else
21074 ac_cv_lib_Xinerama_XineramaQueryScreens=no
21075fi
21076rm -f core conftest.err conftest.$ac_objext \
21077 conftest$ac_exeext conftest.$ac_ext
21078LIBS=$ac_check_lib_save_LIBS
21079fi
21080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5
21081$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; }
21082if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then :
21083 X_PRELIBS="$X_PRELIBS -lXinerama"
21084 $as_echo "@%:@define HAVE_LIBXINERAMA 1" >>confdefs.h
21085
21086fi
21087
21088 fi
21089
21090 if test "x$with_xrandr" != "xno"; then
21091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRSelectInput in -lXrandr" >&5
21092$as_echo_n "checking for XRRSelectInput in -lXrandr... " >&6; }
21093if ${ac_cv_lib_Xrandr_XRRSelectInput+:} false; then :
21094 $as_echo_n "(cached) " >&6
21095else
21096 ac_check_lib_save_LIBS=$LIBS
21097LIBS="-lXrandr $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21098cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21099/* end confdefs.h. */
21100
21101/* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21104#ifdef __cplusplus
21105extern "C"
21106#endif
21107char XRRSelectInput ();
21108int
21109main ()
21110{
21111return XRRSelectInput ();
21112 ;
21113 return 0;
21114}
21115_ACEOF
21116if ac_fn_c_try_link "$LINENO"; then :
21117 ac_cv_lib_Xrandr_XRRSelectInput=yes
21118else
21119 ac_cv_lib_Xrandr_XRRSelectInput=no
21120fi
21121rm -f core conftest.err conftest.$ac_objext \
21122 conftest$ac_exeext conftest.$ac_ext
21123LIBS=$ac_check_lib_save_LIBS
21124fi
21125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRSelectInput" >&5
21126$as_echo "$ac_cv_lib_Xrandr_XRRSelectInput" >&6; }
21127if test "x$ac_cv_lib_Xrandr_XRRSelectInput" = xyes; then :
21128 X_PRELIBS="$X_PRELIBS -lXrandr"
21129 $as_echo "@%:@define HAVE_LIBXRANDR 1" >>confdefs.h
21130 HAVE_LIBXRANDR="true"
21131fi
21132
21133 fi
21134
21135 if test "x$with_xfixes" != "xno"; then
21136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFixesGetCursorImage in -lXfixes" >&5
21137$as_echo_n "checking for XFixesGetCursorImage in -lXfixes... " >&6; }
21138if ${ac_cv_lib_Xfixes_XFixesGetCursorImage+:} false; then :
21139 $as_echo_n "(cached) " >&6
21140else
21141 ac_check_lib_save_LIBS=$LIBS
21142LIBS="-lXfixes $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144/* end confdefs.h. */
21145
21146/* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21149#ifdef __cplusplus
21150extern "C"
21151#endif
21152char XFixesGetCursorImage ();
21153int
21154main ()
21155{
21156return XFixesGetCursorImage ();
21157 ;
21158 return 0;
21159}
21160_ACEOF
21161if ac_fn_c_try_link "$LINENO"; then :
21162 ac_cv_lib_Xfixes_XFixesGetCursorImage=yes
21163else
21164 ac_cv_lib_Xfixes_XFixesGetCursorImage=no
21165fi
21166rm -f core conftest.err conftest.$ac_objext \
21167 conftest$ac_exeext conftest.$ac_ext
21168LIBS=$ac_check_lib_save_LIBS
21169fi
21170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xfixes_XFixesGetCursorImage" >&5
21171$as_echo "$ac_cv_lib_Xfixes_XFixesGetCursorImage" >&6; }
21172if test "x$ac_cv_lib_Xfixes_XFixesGetCursorImage" = xyes; then :
21173 X_PRELIBS="$X_PRELIBS -lXfixes"
21174 $as_echo "@%:@define HAVE_LIBXFIXES 1" >>confdefs.h
21175 HAVE_LIBXFIXES="true"
21176fi
21177
21178 fi
21179
21180 if test "x$with_xdamage" != "xno"; then
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDamageQueryExtension in -lXdamage" >&5
21182$as_echo_n "checking for XDamageQueryExtension in -lXdamage... " >&6; }
21183if ${ac_cv_lib_Xdamage_XDamageQueryExtension+:} false; then :
21184 $as_echo_n "(cached) " >&6
21185else
21186 ac_check_lib_save_LIBS=$LIBS
21187LIBS="-lXdamage $X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS $LIBS"
21188cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21189/* end confdefs.h. */
21190
21191/* Override any GCC internal prototype to avoid an error.
21192 Use char because int might match the return type of a GCC
21193 builtin and then its argument prototype would still apply. */
21194#ifdef __cplusplus
21195extern "C"
21196#endif
21197char XDamageQueryExtension ();
21198int
21199main ()
21200{
21201return XDamageQueryExtension ();
21202 ;
21203 return 0;
21204}
21205_ACEOF
21206if ac_fn_c_try_link "$LINENO"; then :
21207 ac_cv_lib_Xdamage_XDamageQueryExtension=yes
21208else
21209 ac_cv_lib_Xdamage_XDamageQueryExtension=no
21210fi
21211rm -f core conftest.err conftest.$ac_objext \
21212 conftest$ac_exeext conftest.$ac_ext
21213LIBS=$ac_check_lib_save_LIBS
21214fi
21215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xdamage_XDamageQueryExtension" >&5
21216$as_echo "$ac_cv_lib_Xdamage_XDamageQueryExtension" >&6; }
21217if test "x$ac_cv_lib_Xdamage_XDamageQueryExtension" = xyes; then :
21218 X_PRELIBS="$X_PRELIBS -lXdamage"
21219 $as_echo "@%:@define HAVE_LIBXDAMAGE 1" >>confdefs.h
21220 HAVE_LIBXDAMAGE="true"
21221fi
21222
21223 fi
21224
21225 if test ! -z "$HAVE_LIBXFIXES" -o ! -z "$HAVE_LIBXDAMAGE"; then
21226 # need /usr/sfw/lib in RPATH for Solaris 10 and later
21227 case `(uname -sr) 2>/dev/null` in
21228 "SunOS 5"*) X_EXTRA_LIBS="$X_EXTRA_LIBS -R/usr/sfw/lib" ;;
21229 esac
21230 fi
21231 if test ! -z "$HAVE_LIBXRANDR"; then
21232 # also need /usr/X11/include for Solaris 10 10/08 and later
21233 case `(uname -sr) 2>/dev/null` in
21234 "SunOS 5"*) CPPFLAGS="$CPPFLAGS -I/usr/X11/include" ;;
21235 esac
21236 fi
21237
21238 X_LIBS="$X_LIBS $X_PRELIBS -lX11 $X_EXTRA_LIBS"
21239 fi
21240 # end x11vnc only.
21241fi
21242
21243
21244 if test $HAVE_X11 != "false"; then
21245 HAVE_X11_TRUE=
21246 HAVE_X11_FALSE='#'
21247else
21248 HAVE_X11_TRUE='#'
21249 HAVE_X11_FALSE=
21250fi
21251
21252
21253# x11vnc only:
21254if test "$build_x11vnc" = "yes"; then
21255
21256if test "x$HAVE_X11" = "xfalse" -a "x$with_x" != "xno"; then
21257 as_fn_error $? "
21258==========================================================================
21259*** A working X window system build environment is required to build ***
21260x11vnc. Make sure any required X development packages are installed.
21261If they are installed in non-standard locations, one can use the
21262--x-includes=DIR and --x-libraries=DIR configure options or set the
21263CPPFLAGS and LDFLAGS environment variables to indicate where the X
21264window system header files and libraries may be found. On 64+32 bit
21265machines you may need to point to lib64 or lib32 directories to pick up
21266the correct word size.
21267
21268If you want to build x11vnc without X support (e.g. for -rawfb use only
21269or for native Mac OS X), specify the --without-x configure option.
21270==========================================================================
21271" "$LINENO" 5
21272fi
21273
21274if test "x$HAVE_X11" = "xtrue" -a "x$HAVE_XTEST" != "xtrue"; then
21275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21276==========================================================================
21277*** A working build environment for the XTEST extension was not found ***
21278(libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21279You will be able to move the mouse but not click or type. There can
21280also be deadlocks if an application grabs the X server.
21281
21282It is recommended that you install the necessary development packages
21283for XTEST (perhaps it is named something like libxtst-dev) and run
21284configure again.
21285==========================================================================
21286" >&5
21287$as_echo "$as_me: WARNING:
21288==========================================================================
21289*** A working build environment for the XTEST extension was not found ***
21290(libXtst). An x11vnc built this way will be *ONLY BARELY USABLE*.
21291You will be able to move the mouse but not click or type. There can
21292also be deadlocks if an application grabs the X server.
21293
21294It is recommended that you install the necessary development packages
21295for XTEST (perhaps it is named something like libxtst-dev) and run
21296configure again.
21297==========================================================================
21298" >&2;}
21299 sleep 5
21300fi
21301
21302if test "x$with_v4l" != "xno"; then
21303 ac_fn_c_check_header_mongrel "$LINENO" "linux/videodev.h" "ac_cv_header_linux_videodev_h" "$ac_includes_default"
21304if test "x$ac_cv_header_linux_videodev_h" = xyes; then :
21305 $as_echo "@%:@define HAVE_LINUX_VIDEODEV_H 1" >>confdefs.h
21306
21307fi
21308
21309
21310fi
21311if test "x$with_fbdev" != "xno"; then
21312 ac_fn_c_check_header_mongrel "$LINENO" "linux/fb.h" "ac_cv_header_linux_fb_h" "$ac_includes_default"
21313if test "x$ac_cv_header_linux_fb_h" = xyes; then :
21314 $as_echo "@%:@define HAVE_LINUX_FB_H 1" >>confdefs.h
21315
21316fi
21317
21318
21319fi
21320if test "x$with_uinput" != "xno"; then
21321 ac_fn_c_check_header_mongrel "$LINENO" "linux/input.h" "ac_cv_header_linux_input_h" "$ac_includes_default"
21322if test "x$ac_cv_header_linux_input_h" = xyes; then :
21323 $as_echo "@%:@define HAVE_LINUX_INPUT_H 1" >>confdefs.h
21324 HAVE_LINUX_INPUT_H="true"
21325fi
21326
21327
21328 if test "x$HAVE_LINUX_INPUT_H" = "xtrue"; then
21329 ac_fn_c_check_header_compile "$LINENO" "linux/uinput.h" "ac_cv_header_linux_uinput_h" "#include <linux/input.h>
21330"
21331if test "x$ac_cv_header_linux_uinput_h" = xyes; then :
21332 $as_echo "@%:@define HAVE_LINUX_UINPUT_H 1" >>confdefs.h
21333
21334fi
21335
21336
21337 fi
21338fi
21339
21340if test "x$with_macosx_native" != "xno"; then
21341 $as_echo "@%:@define HAVE_MACOSX_NATIVE_DISPLAY 1" >>confdefs.h
21342
21343fi
21344
21345# Check for OS X opengl header
21346ac_fn_c_check_header_mongrel "$LINENO" "OpenGL/OpenGL.h" "ac_cv_header_OpenGL_OpenGL_h" "$ac_includes_default"
21347if test "x$ac_cv_header_OpenGL_OpenGL_h" = xyes; then :
21348 $as_echo "@%:@define HAVE_MACOSX_OPENGL_H 1" >>confdefs.h
21349 HAVE_MACOSX_OPENGL_H="true"
21350fi
21351
21352
21353
21354
21355
21356@%:@ Check whether --with-avahi was given.
21357if test "${with_avahi+set}" = set; then :
21358 withval=$with_avahi;
21359fi
21360
21361if test "x$with_avahi" != "xno"; then
21362 printf "checking for avahi... "
21363 if test ! -z "$with_avahi" -a "x$with_avahi" != "xyes"; then
21364 AVAHI_CFLAGS="-I$with_avahi/include"
21365 AVAHI_LIBS="-L$with_avahi/lib -lavahi-common -lavahi-client"
21366 echo "using $with_avahi"
21367 with_avahi=yes
21368 elif pkg-config --atleast-version=0.6.4 avahi-client >/dev/null 2>&1; then
21369 AVAHI_CFLAGS=`pkg-config --cflags avahi-client`
21370 AVAHI_LIBS=`pkg-config --libs avahi-client`
21371 with_avahi=yes
21372 echo yes
21373 else
21374 with_avahi=no
21375 echo no
21376 fi
21377fi
21378if test "x$with_avahi" = "xyes"; then
21379 $as_echo "@%:@define HAVE_AVAHI 1" >>confdefs.h
21380
21381
21382
21383fi
21384
21385fi
21386# end x11vnc only.
21387
21388# only used in x11vnc/Makefile.am but needs to always be defined:
21389 if test "$HAVE_MACOSX_OPENGL_H" = "true"; then
21390 OSX_OPENGL_TRUE=
21391 OSX_OPENGL_FALSE='#'
21392else
21393 OSX_OPENGL_TRUE='#'
21394 OSX_OPENGL_FALSE=
21395fi
21396
21397
21398# Checks for libraries.
21399
21400if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
21401 printf "checking for system libvncserver... "
21402 vneed="0.9.1"
21403 if test "X$VNEED" != "X"; then
21404 vneed=$VNEED
21405 fi
21406 if test "x$with_system_libvncserver" != "xyes"; then
21407 rflag=""
21408 if test "x$ld_minus_R" = "xno"; then
21409 :
21410 elif test "x$GCC" = "xyes"; then
21411 rflag="-Xlinker -R$with_system_libvncserver/lib"
21412 else
21413 rflag="-R$with_system_libvncserver/lib"
21414 fi
21415 cmd="$with_system_libvncserver/bin/libvncserver-config"
21416 if $cmd --version 1>/dev/null 2>&1; then
21417 cvers=`$cmd --version 2>/dev/null`
21418 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21419 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21420
21421 if test $cscore -lt $nscore; then
21422 echo "no"
21423 with_system_libvncserver=no
21424 as_fn_error $? "
21425==========================================================================
21426*** Need libvncserver version $vneed, have version $cvers ***
21427You are building with a system installed libvncserver and it is not
21428new enough.
21429==========================================================================
21430" "$LINENO" 5
21431 else
21432 SYSTEM_LIBVNCSERVER_CFLAGS="-I$with_system_libvncserver/include"
21433 SYSTEM_LIBVNCSERVER_LIBS="-L$with_system_libvncserver/lib $rflag -lvncserver -lvncclient"
21434 echo "using $with_system_libvncserver"
21435 with_system_libvncserver=yes
21436 fi
21437 else
21438 echo " *** cannot run $cmd *** " 1>&2
21439 with_system_libvncserver=no
21440 echo no
21441 fi
21442 elif libvncserver-config --version 1>/dev/null 2>&1; then
21443 rflag=""
21444 rprefix=`libvncserver-config --prefix`
21445 if test "x$ld_minus_R" = "xno"; then
21446 :
21447 elif test "x$GCC" = "xyes"; then
21448 rflag=" -Xlinker -R$rprefix/lib "
21449 else
21450 rflag=" -R$rprefix/lib "
21451 fi
21452 cvers=`libvncserver-config --version 2>/dev/null`
21453 cscore=`echo "$cvers" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21454 nscore=`echo "$vneed" | tr '.' ' ' | awk '{print 10000 * $1 + 100 * $2 + $3}'`
21455
21456 if test $cscore -lt $nscore; then
21457 echo "no"
21458 as_fn_error $? "
21459==========================================================================
21460*** Need libvncserver version $vneed, have version $cvers ***
21461You are building with a system installed libvncserver and it is not
21462new enough.
21463==========================================================================
21464" "$LINENO" 5
21465 else
21466 SYSTEM_LIBVNCSERVER_CFLAGS=`libvncserver-config --cflags`
21467 SYSTEM_LIBVNCSERVER_LIBS="$rflag"`libvncserver-config --libs`
21468 with_system_libvncserver=yes
21469 echo yes
21470 fi
21471 else
21472 with_system_libvncserver=no
21473 echo no
21474 fi
21475fi
21476
21477if test "x$with_system_libvncserver" = "xyes"; then
21478 $as_echo "@%:@define HAVE_SYSTEM_LIBVNCSERVER 1" >>confdefs.h
21479
21480
21481
21482fi
21483 if test "x$with_system_libvncserver" = "xyes"; then
21484 HAVE_SYSTEM_LIBVNCSERVER_TRUE=
21485 HAVE_SYSTEM_LIBVNCSERVER_FALSE='#'
21486else
21487 HAVE_SYSTEM_LIBVNCSERVER_TRUE='#'
21488 HAVE_SYSTEM_LIBVNCSERVER_FALSE=
21489fi
21490
21491
21492
21493
21494@%:@ Check whether --with-jpeg was given.
21495if test "${with_jpeg+set}" = set; then :
21496 withval=$with_jpeg;
21497fi
21498
21499
21500# At this point:
21501# no jpeg on command line with_jpeg=""
21502# -with-jpeg with_jpeg="yes"
21503# -without-jpeg with_jpeg="no"
21504# -with-jpeg=/foo/dir with_jpeg="/foo/dir"
21505
21506HAVE_LIBJPEG_TURBO="false"
21507
21508if test "x$with_jpeg" != "xno"; then
21509
21510 saved_CPPFLAGS="$CPPFLAGS"
21511 saved_LDFLAGS="$LDFLAGS"
21512 saved_LIBS="$LIBS"
21513 if test ! -z "$with_jpeg" -a "x$with_jpeg" != "xyes"; then
21514 # add user supplied directory to flags:
21515 CPPFLAGS="$CPPFLAGS -I$with_jpeg/include"
21516 LDFLAGS="$LDFLAGS -L$with_jpeg/lib"
21517 if test "x$ld_minus_R" = "xno"; then
21518 :
21519 elif test "x$GCC" = "xyes"; then
21520 # this is not complete... in general a rat's nest.
21521 LDFLAGS="$LDFLAGS -Xlinker -R$with_jpeg/lib"
21522 else
21523 LDFLAGS="$LDFLAGS -R$with_jpeg/lib"
21524 fi
21525 fi
21526 if test "x$JPEG_LDFLAGS" != "x"; then
21527 LDFLAGS="$saved_LDFLAGS"
21528 LIBS="$LIBS $JPEG_LDFLAGS"
21529 else
21530 LIBS="-ljpeg"
21531 fi
21532 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
21533if test "x$ac_cv_header_jpeglib_h" = xyes; then :
21534 HAVE_JPEGLIB_H="true"
21535fi
21536
21537
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_CreateCompress in libjpeg" >&5
21539$as_echo_n "checking for jpeg_CreateCompress in libjpeg... " >&6; }
21540 if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
21541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21542/* end confdefs.h. */
21543
21544/* Override any GCC internal prototype to avoid an error.
21545 Use char because int might match the return type of a GCC
21546 builtin and then its argument prototype would still apply. */
21547#ifdef __cplusplus
21548extern "C"
21549#endif
21550char jpeg_CreateCompress ();
21551int
21552main ()
21553{
21554return jpeg_CreateCompress ();
21555 ;
21556 return 0;
21557}
21558_ACEOF
21559if ac_fn_c_try_link "$LINENO"; then :
21560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21561$as_echo "yes" >&6; };
21562
21563$as_echo "@%:@define HAVE_LIBJPEG 1" >>confdefs.h
21564
21565else
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21567$as_echo "no" >&6; }; HAVE_JPEGLIB_H=""
21568fi
21569rm -f core conftest.err conftest.$ac_objext \
21570 conftest$ac_exeext conftest.$ac_ext
21571 fi
21572 if test "x$HAVE_JPEGLIB_H" != "xtrue"; then
21573 # restore old flags on failure:
21574 CPPFLAGS="$saved_CPPFLAGS"
21575 LDFLAGS="$saved_LDFLAGS"
21576 LIBS="$saved_LIBS"
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21578==========================================================================
21579*** The libjpeg compression library was not found. ***
21580This may lead to reduced performance, especially over slow links.
21581If libjpeg is in a non-standard location use --with-jpeg=DIR to
21582indicate the header file is in DIR/include/jpeglib.h and the library
21583in DIR/lib/libjpeg.a. You can also set the JPEG_LDFLAGS variable to
21584specify more detailed linker flags. A copy of libjpeg-turbo may be
21585obtained from: https://sourceforge.net/projects/libjpeg-turbo/files/
21586A copy of libjpeg may be obtained from: http://ijg.org/files/
21587==========================================================================
21588" >&5
21589$as_echo "$as_me: WARNING:
21590==========================================================================
21591*** The libjpeg compression library was not found. ***
21592This may lead to reduced performance, especially over slow links.
21593If libjpeg is in a non-standard location use --with-jpeg=DIR to
21594indicate the header file is in DIR/include/jpeglib.h and the library
21595in DIR/lib/libjpeg.a. You can also set the JPEG_LDFLAGS variable to
21596specify more detailed linker flags. A copy of libjpeg-turbo may be
21597obtained from: https://sourceforge.net/projects/libjpeg-turbo/files/
21598A copy of libjpeg may be obtained from: http://ijg.org/files/
21599==========================================================================
21600" >&2;}
21601 sleep 5
21602 fi
21603
21604 if test "x$HAVE_JPEGLIB_H" = "xtrue"; then
21605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether JPEG library is libjpeg-turbo" >&5
21606$as_echo_n "checking whether JPEG library is libjpeg-turbo... " >&6; }
21607
21608 if test "x$cross_compiling" != "xyes"; then
21609 if test "$cross_compiling" = yes; then :
21610 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
21611$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
21612as_fn_error $? "cannot run test program while cross compiling
21613See \`config.log' for more details" "$LINENO" 5; }
21614else
21615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21616/* end confdefs.h. */
21617#include <stdio.h>
21618 #include <jpeglib.h>
21619int
21620main ()
21621{
21622struct jpeg_compress_struct cinfo;
21623 struct jpeg_error_mgr jerr;
21624 cinfo.err=jpeg_std_error(&jerr);
21625 jpeg_create_compress(&cinfo);
21626 cinfo.input_components = 3;
21627 jpeg_set_defaults(&cinfo);
21628 cinfo.in_color_space = JCS_EXT_RGB;
21629 jpeg_default_colorspace(&cinfo);
21630 return 0;
21631 ;
21632 return 0;
21633}
21634
21635_ACEOF
21636if ac_fn_c_try_run "$LINENO"; then :
21637 HAVE_LIBJPEG_TURBO="true"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21638$as_echo "yes" >&6; }
21639else
21640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21641$as_echo "no" >&6; }
21642fi
21643rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21644 conftest.$ac_objext conftest.beam conftest.$ac_ext
21645fi
21646
21647 else
21648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21649/* end confdefs.h. */
21650#include <stdio.h>
21651 #include <jpeglib.h>
21652int
21653main ()
21654{
21655struct jpeg_compress_struct cinfo;
21656 struct jpeg_error_mgr jerr;
21657 cinfo.err=jpeg_std_error(&jerr);
21658 jpeg_create_compress(&cinfo);
21659 cinfo.input_components = 3;
21660 jpeg_set_defaults(&cinfo);
21661 cinfo.in_color_space = JCS_EXT_RGB;
21662 jpeg_default_colorspace(&cinfo);
21663 return 0;
21664 ;
21665 return 0;
21666}
21667
21668_ACEOF
21669if ac_fn_c_try_link "$LINENO"; then :
21670 HAVE_LIBJPEG_TURBO="true"; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21671$as_echo "yes" >&6; }
21672else
21673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21674$as_echo "no" >&6; }
21675fi
21676rm -f core conftest.err conftest.$ac_objext \
21677 conftest$ac_exeext conftest.$ac_ext
21678 fi
21679 fi
21680
21681 if test "x$HAVE_JPEGLIB_H" = "xtrue" -a "x$HAVE_LIBJPEG_TURBO" != "xtrue"; then
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21683==========================================================================
21684*** The libjpeg library you are building against is not libjpeg-turbo.
21685Performance will be reduced. You can obtain libjpeg-turbo from:
21686https://sourceforge.net/projects/libjpeg-turbo/files/ ***
21687==========================================================================
21688" >&5
21689$as_echo "$as_me: WARNING:
21690==========================================================================
21691*** The libjpeg library you are building against is not libjpeg-turbo.
21692Performance will be reduced. You can obtain libjpeg-turbo from:
21693https://sourceforge.net/projects/libjpeg-turbo/files/ ***
21694==========================================================================
21695" >&2;}
21696 fi
21697
21698fi
21699
21700
21701@%:@ Check whether --with-png was given.
21702if test "${with_png+set}" = set; then :
21703 withval=$with_png;
21704fi
21705
21706
21707# At this point:
21708# no png on command line with_png=""
21709# -with-png with_png="yes"
21710# -without-png with_png="no"
21711# -with-png=/foo/dir with_png="/foo/dir"
21712
21713if test "x$with_png" != "xno"; then
21714 if test ! -z "$with_png" -a "x$with_png" != "xyes"; then
21715 # add user supplied directory to flags:
21716 saved_CPPFLAGS="$CPPFLAGS"
21717 saved_LDFLAGS="$LDFLAGS"
21718 CPPFLAGS="$CPPFLAGS -I$with_png/include"
21719 LDFLAGS="$LDFLAGS -L$with_png/lib"
21720 if test "x$ld_minus_R" = "xno"; then
21721 :
21722 elif test "x$GCC" = "xyes"; then
21723 # this is not complete... in general a rat's nest.
21724 LDFLAGS="$LDFLAGS -Xlinker -R$with_png/lib"
21725 else
21726 LDFLAGS="$LDFLAGS -R$with_png/lib"
21727 fi
21728 fi
21729 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
21730if test "x$ac_cv_header_png_h" = xyes; then :
21731 HAVE_PNGLIB_H="true"
21732fi
21733
21734
21735 if test "x$HAVE_PNGLIB_H" = "xtrue"; then
21736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_create_write_struct in -lpng" >&5
21737$as_echo_n "checking for png_create_write_struct in -lpng... " >&6; }
21738if ${ac_cv_lib_png_png_create_write_struct+:} false; then :
21739 $as_echo_n "(cached) " >&6
21740else
21741 ac_check_lib_save_LIBS=$LIBS
21742LIBS="-lpng $LIBS"
21743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21744/* end confdefs.h. */
21745
21746/* Override any GCC internal prototype to avoid an error.
21747 Use char because int might match the return type of a GCC
21748 builtin and then its argument prototype would still apply. */
21749#ifdef __cplusplus
21750extern "C"
21751#endif
21752char png_create_write_struct ();
21753int
21754main ()
21755{
21756return png_create_write_struct ();
21757 ;
21758 return 0;
21759}
21760_ACEOF
21761if ac_fn_c_try_link "$LINENO"; then :
21762 ac_cv_lib_png_png_create_write_struct=yes
21763else
21764 ac_cv_lib_png_png_create_write_struct=no
21765fi
21766rm -f core conftest.err conftest.$ac_objext \
21767 conftest$ac_exeext conftest.$ac_ext
21768LIBS=$ac_check_lib_save_LIBS
21769fi
21770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_create_write_struct" >&5
21771$as_echo "$ac_cv_lib_png_png_create_write_struct" >&6; }
21772if test "x$ac_cv_lib_png_png_create_write_struct" = xyes; then :
21773 cat >>confdefs.h <<_ACEOF
21774@%:@define HAVE_LIBPNG 1
21775_ACEOF
21776
21777 LIBS="-lpng $LIBS"
21778
21779else
21780 HAVE_PNGLIB_H=""
21781fi
21782
21783 fi
21784 if test ! -z "$with_png" -a "x$with_png" != "xyes"; then
21785 if test "x$HAVE_PNGLIB_H" != "xtrue"; then
21786 # restore old flags on failure:
21787 CPPFLAGS="$saved_CPPFLAGS"
21788 LDFLAGS="$saved_LDFLAGS"
21789 fi
21790 fi
21791 if test "$build_x11vnc" = "yes"; then
21792 if test "x$HAVE_PNGLIB_H" != "xtrue"; then
21793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21794==========================================================================
21795*** The libpng compression library was not found. ***
21796This may lead to reduced performance, especially over slow links.
21797If libpng is in a non-standard location use --with-png=DIR to
21798indicate the header file is in DIR/include/png.h and the library
21799in DIR/lib/libpng.a. A copy of libpng may be obtained from:
21800http://www.libpng.org/pub/png/libpng.html
21801==========================================================================
21802" >&5
21803$as_echo "$as_me: WARNING:
21804==========================================================================
21805*** The libpng compression library was not found. ***
21806This may lead to reduced performance, especially over slow links.
21807If libpng is in a non-standard location use --with-png=DIR to
21808indicate the header file is in DIR/include/png.h and the library
21809in DIR/lib/libpng.a. A copy of libpng may be obtained from:
21810http://www.libpng.org/pub/png/libpng.html
21811==========================================================================
21812" >&2;}
21813 sleep 5
21814 fi
21815 fi
21816fi
21817
21818
21819@%:@ Check whether --with-libz was given.
21820if test "${with_libz+set}" = set; then :
21821 withval=$with_libz;
21822fi
21823
21824
21825@%:@ Check whether --with-zlib was given.
21826if test "${with_zlib+set}" = set; then :
21827 withval=$with_zlib;
21828fi
21829
21830
21831if test "x$with_zlib" != "xno" -a "x$with_libz" != "xno"; then
21832 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
21833 saved_CPPFLAGS="$CPPFLAGS"
21834 saved_LDFLAGS="$LDFLAGS"
21835 CPPFLAGS="$CPPFLAGS -I$with_zlib/include"
21836 LDFLAGS="$LDFLAGS -L$with_zlib/lib"
21837 if test "x$ld_minus_R" = "xno"; then
21838 :
21839 elif test "x$GCC" = "xyes"; then
21840 LDFLAGS="$LDFLAGS -Xlinker -R$with_zlib/lib"
21841 else
21842 LDFLAGS="$LDFLAGS -R$with_zlib/lib"
21843 fi
21844 fi
21845 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
21846if test "x$ac_cv_header_zlib_h" = xyes; then :
21847 HAVE_ZLIB_H="true"
21848fi
21849
21850
21851 if test "x$HAVE_ZLIB_H" = "xtrue"; then
21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
21853$as_echo_n "checking for deflate in -lz... " >&6; }
21854if ${ac_cv_lib_z_deflate+:} false; then :
21855 $as_echo_n "(cached) " >&6
21856else
21857 ac_check_lib_save_LIBS=$LIBS
21858LIBS="-lz $LIBS"
21859cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21860/* end confdefs.h. */
21861
21862/* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
21865#ifdef __cplusplus
21866extern "C"
21867#endif
21868char deflate ();
21869int
21870main ()
21871{
21872return deflate ();
21873 ;
21874 return 0;
21875}
21876_ACEOF
21877if ac_fn_c_try_link "$LINENO"; then :
21878 ac_cv_lib_z_deflate=yes
21879else
21880 ac_cv_lib_z_deflate=no
21881fi
21882rm -f core conftest.err conftest.$ac_objext \
21883 conftest$ac_exeext conftest.$ac_ext
21884LIBS=$ac_check_lib_save_LIBS
21885fi
21886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
21887$as_echo "$ac_cv_lib_z_deflate" >&6; }
21888if test "x$ac_cv_lib_z_deflate" = xyes; then :
21889 cat >>confdefs.h <<_ACEOF
21890@%:@define HAVE_LIBZ 1
21891_ACEOF
21892
21893 LIBS="-lz $LIBS"
21894
21895else
21896 HAVE_ZLIB_H=""
21897fi
21898
21899 fi
21900 if test ! -z "$with_zlib" -a "x$with_zlib" != "xyes"; then
21901 if test "x$HAVE_ZLIB_H" != "xtrue"; then
21902 CPPFLAGS="$saved_CPPFLAGS"
21903 LDFLAGS="$saved_LDFLAGS"
21904 fi
21905 fi
21906 if test "$build_x11vnc" = "yes"; then
21907 if test "x$HAVE_ZLIB_H" != "xtrue"; then
21908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21909==========================================================================
21910*** The libz compression library was not found. ***
21911This may lead to reduced performance, especially over slow links.
21912If libz is in a non-standard location use --with-zlib=DIR to indicate the
21913header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
21914A copy of libz may be obtained from: http://www.gzip.org/zlib/
21915==========================================================================
21916" >&5
21917$as_echo "$as_me: WARNING:
21918==========================================================================
21919*** The libz compression library was not found. ***
21920This may lead to reduced performance, especially over slow links.
21921If libz is in a non-standard location use --with-zlib=DIR to indicate the
21922header file is in DIR/include/zlib.h and the library in DIR/lib/libz.a.
21923A copy of libz may be obtained from: http://www.gzip.org/zlib/
21924==========================================================================
21925" >&2;}
21926 sleep 5
21927 fi
21928 fi
21929fi
21930
21931
21932@%:@ Check whether --with-pthread was given.
21933if test "${with_pthread+set}" = set; then :
21934 withval=$with_pthread;
21935fi
21936
21937
21938if test "x$with_pthread" != "xno"; then
21939 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
21940if test "x$ac_cv_header_pthread_h" = xyes; then :
21941 HAVE_PTHREAD_H="true"
21942fi
21943
21944
21945 if test ! -z "$HAVE_PTHREAD_H"; then
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
21947$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
21948if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
21949 $as_echo_n "(cached) " >&6
21950else
21951 ac_check_lib_save_LIBS=$LIBS
21952LIBS="-lpthread $LIBS"
21953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954/* end confdefs.h. */
21955
21956/* Override any GCC internal prototype to avoid an error.
21957 Use char because int might match the return type of a GCC
21958 builtin and then its argument prototype would still apply. */
21959#ifdef __cplusplus
21960extern "C"
21961#endif
21962char pthread_mutex_lock ();
21963int
21964main ()
21965{
21966return pthread_mutex_lock ();
21967 ;
21968 return 0;
21969}
21970_ACEOF
21971if ac_fn_c_try_link "$LINENO"; then :
21972 ac_cv_lib_pthread_pthread_mutex_lock=yes
21973else
21974 ac_cv_lib_pthread_pthread_mutex_lock=no
21975fi
21976rm -f core conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21978LIBS=$ac_check_lib_save_LIBS
21979fi
21980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
21981$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
21982if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
21983 cat >>confdefs.h <<_ACEOF
21984@%:@define HAVE_LIBPTHREAD 1
21985_ACEOF
21986
21987 LIBS="-lpthread $LIBS"
21988
21989fi
21990
21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
21992$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
21993if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
21994 $as_echo_n "(cached) " >&6
21995else
21996 ac_check_lib_save_LIBS=$LIBS
21997LIBS="-lpthread $LIBS"
21998cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21999/* end confdefs.h. */
22000
22001/* Override any GCC internal prototype to avoid an error.
22002 Use char because int might match the return type of a GCC
22003 builtin and then its argument prototype would still apply. */
22004#ifdef __cplusplus
22005extern "C"
22006#endif
22007char pthread_mutex_lock ();
22008int
22009main ()
22010{
22011return pthread_mutex_lock ();
22012 ;
22013 return 0;
22014}
22015_ACEOF
22016if ac_fn_c_try_link "$LINENO"; then :
22017 ac_cv_lib_pthread_pthread_mutex_lock=yes
22018else
22019 ac_cv_lib_pthread_pthread_mutex_lock=no
22020fi
22021rm -f core conftest.err conftest.$ac_objext \
22022 conftest$ac_exeext conftest.$ac_ext
22023LIBS=$ac_check_lib_save_LIBS
22024fi
22025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
22026$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
22027if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
22028 HAVE_LIBPTHREAD="true"
22029fi
22030
22031 fi
22032fi
22033 if test ! -z "$HAVE_LIBPTHREAD"; then
22034 HAVE_LIBPTHREAD_TRUE=
22035 HAVE_LIBPTHREAD_FALSE='#'
22036else
22037 HAVE_LIBPTHREAD_TRUE='#'
22038 HAVE_LIBPTHREAD_FALSE=
22039fi
22040
22041
22042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for __thread" >&5
22043$as_echo_n "checking for __thread... " >&6; }
22044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22045/* end confdefs.h. */
22046
22047int
22048main ()
22049{
22050static __thread int p = 0
22051 ;
22052 return 0;
22053}
22054_ACEOF
22055if ac_fn_c_try_link "$LINENO"; then :
22056
22057$as_echo "@%:@define HAVE_TLS 1" >>confdefs.h
22058
22059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22060$as_echo "yes" >&6; }
22061else
22062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22063$as_echo "no" >&6; }
22064fi
22065rm -f core conftest.err conftest.$ac_objext \
22066 conftest$ac_exeext conftest.$ac_ext
22067
22068# tightvnc-filetransfer implemented using threads:
22069if test -z "$HAVE_LIBPTHREAD"; then
22070 with_tightvnc_filetransfer=""
22071fi
22072if test "x$with_tightvnc_filetransfer" = "xyes"; then
22073 $as_echo "@%:@define WITH_TIGHTVNC_FILETRANSFER 1" >>confdefs.h
22074
22075fi
22076 if test "$with_tightvnc_filetransfer" = "yes"; then
22077 WITH_TIGHTVNC_FILETRANSFER_TRUE=
22078 WITH_TIGHTVNC_FILETRANSFER_FALSE='#'
22079else
22080 WITH_TIGHTVNC_FILETRANSFER_TRUE='#'
22081 WITH_TIGHTVNC_FILETRANSFER_FALSE=
22082fi
22083
22084
22085# websockets implemented using base64 from resolve
22086if test "x$HAVE_B64" != "xtrue"; then
22087 with_websockets=""
22088fi
22089if test "x$with_websockets" = "xyes"; then
22090 LIBS="$LIBS -lresolv $SSL_LIBS"
22091 $as_echo "@%:@define WITH_WEBSOCKETS 1" >>confdefs.h
22092
22093fi
22094 if test "$with_websockets" = "yes"; then
22095 WITH_WEBSOCKETS_TRUE=
22096 WITH_WEBSOCKETS_FALSE='#'
22097else
22098 WITH_WEBSOCKETS_TRUE='#'
22099 WITH_WEBSOCKETS_FALSE=
22100fi
22101
22102
22103 if test ! -z "$HAVE_ZLIB_H"; then
22104 HAVE_LIBZ_TRUE=
22105 HAVE_LIBZ_FALSE='#'
22106else
22107 HAVE_LIBZ_TRUE='#'
22108 HAVE_LIBZ_FALSE=
22109fi
22110
22111 if test ! -z "$HAVE_JPEGLIB_H"; then
22112 HAVE_LIBJPEG_TRUE=
22113 HAVE_LIBJPEG_FALSE='#'
22114else
22115 HAVE_LIBJPEG_TRUE='#'
22116 HAVE_LIBJPEG_FALSE=
22117fi
22118
22119 if test ! -z "$HAVE_PNGLIB_H"; then
22120 HAVE_LIBPNG_TRUE=
22121 HAVE_LIBPNG_FALSE='#'
22122else
22123 HAVE_LIBPNG_TRUE='#'
22124 HAVE_LIBPNG_FALSE=
22125fi
22126
22127
22128
22129SDLCONFIG="sdl-config"
22130
22131@%:@ Check whether --with-sdl-config was given.
22132if test "${with_sdl_config+set}" = set; then :
22133 withval=$with_sdl_config;
22134 if test "$withval" != "yes" -a "$withval" != ""; then
22135 SDLCONFIG=$withval
22136 fi
22137
22138fi
22139
22140
22141if test -z "$with_sdl"; then
22142 if $SDLCONFIG --version >/dev/null 2>&1; then
22143 with_sdl=yes
22144 SDL_CFLAGS=`$SDLCONFIG --cflags`
22145 SDL_LIBS=`$SDLCONFIG --libs`
22146 else
22147 with_sdl=no
22148 fi
22149fi
22150 if test "x$with_sdl" = "xyes"; then
22151 HAVE_LIBSDL_TRUE=
22152 HAVE_LIBSDL_FALSE='#'
22153else
22154 HAVE_LIBSDL_TRUE='#'
22155 HAVE_LIBSDL_FALSE=
22156fi
22157
22158
22159
22160
22161
22162# Check for GTK+. if present, build the GTK+ vnc viewer example
22163PKG_CHECK_MODULES(GTK, gtk+-2.0,,:)
22164 if test ! -z "$GTK_LIBS"; then
22165 HAVE_LIBGTK_TRUE=
22166 HAVE_LIBGTK_FALSE='#'
22167else
22168 HAVE_LIBGTK_TRUE='#'
22169 HAVE_LIBGTK_FALSE=
22170fi
22171
22172
22173
22174MINGW=`echo $host_os | grep mingw32 2>/dev/null`
22175 if test ! -z "$MINGW" ; then
22176 MINGW_TRUE=
22177 MINGW_FALSE='#'
22178else
22179 MINGW_TRUE='#'
22180 MINGW_FALSE=
22181fi
22182
22183if test ! -z "$MINGW"; then
22184 WSOCKLIB="-lws2_32"
22185 LDFLAGS="$LDFLAGS -no-undefined"
22186fi
22187
22188
22189# Check for libgcrypt
22190
22191
22192@%:@ Check whether --with-gcrypt was given.
22193if test "${with_gcrypt+set}" = set; then :
22194 withval=$with_gcrypt;
22195fi
22196
22197
22198@%:@ Check whether --with-client-gcrypt was given.
22199if test "${with_client_gcrypt+set}" = set; then :
22200 withval=$with_client_gcrypt;
22201fi
22202
22203
22204if test "x$with_gcrypt" != "xno"; then
22205
22206@%:@ Check whether --with-libgcrypt-prefix was given.
22207if test "${with_libgcrypt_prefix+set}" = set; then :
22208 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
22209else
22210 libgcrypt_config_prefix=""
22211fi
22212
22213 if test x$libgcrypt_config_prefix != x ; then
22214 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
22215 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
22216 fi
22217 fi
22218
22219 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
22220set dummy libgcrypt-config; ac_word=$2
22221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22222$as_echo_n "checking for $ac_word... " >&6; }
22223if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
22224 $as_echo_n "(cached) " >&6
22225else
22226 case $LIBGCRYPT_CONFIG in
22227 [\\/]* | ?:[\\/]*)
22228 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
22229 ;;
22230 *)
22231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22232for as_dir in $PATH
22233do
22234 IFS=$as_save_IFS
22235 test -z "$as_dir" && as_dir=.
22236 for ac_exec_ext in '' $ac_executable_extensions; do
22237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22238 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22240 break 2
22241 fi
22242done
22243 done
22244IFS=$as_save_IFS
22245
22246 test -z "$ac_cv_path_LIBGCRYPT_CONFIG" && ac_cv_path_LIBGCRYPT_CONFIG="no"
22247 ;;
22248esac
22249fi
22250LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
22251if test -n "$LIBGCRYPT_CONFIG"; then
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
22253$as_echo "$LIBGCRYPT_CONFIG" >&6; }
22254else
22255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22256$as_echo "no" >&6; }
22257fi
22258
22259
22260 tmp=1.4.0
22261 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
22262 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
22263 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
22264 else
22265 req_libgcrypt_api=0
22266 min_libgcrypt_version="$tmp"
22267 fi
22268
22269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
22270$as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
22271 ok=no
22272 if test "$LIBGCRYPT_CONFIG" != "no" ; then
22273 req_major=`echo $min_libgcrypt_version | \
22274 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
22275 req_minor=`echo $min_libgcrypt_version | \
22276 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
22277 req_micro=`echo $min_libgcrypt_version | \
22278 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
22279 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
22280 major=`echo $libgcrypt_config_version | \
22281 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
22282 minor=`echo $libgcrypt_config_version | \
22283 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
22284 micro=`echo $libgcrypt_config_version | \
22285 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
22286 if test "$major" -gt "$req_major"; then
22287 ok=yes
22288 else
22289 if test "$major" -eq "$req_major"; then
22290 if test "$minor" -gt "$req_minor"; then
22291 ok=yes
22292 else
22293 if test "$minor" -eq "$req_minor"; then
22294 if test "$micro" -ge "$req_micro"; then
22295 ok=yes
22296 fi
22297 fi
22298 fi
22299 fi
22300 fi
22301 fi
22302 if test $ok = yes; then
22303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
22304$as_echo "yes ($libgcrypt_config_version)" >&6; }
22305 else
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22307$as_echo "no" >&6; }
22308 fi
22309 if test $ok = yes; then
22310 # If we have a recent libgcrypt, we should also check that the
22311 # API is compatible
22312 if test "$req_libgcrypt_api" -gt 0 ; then
22313 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
22314 if test "$tmp" -gt 0 ; then
22315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
22316$as_echo_n "checking LIBGCRYPT API version... " >&6; }
22317 if test "$req_libgcrypt_api" -eq "$tmp" ; then
22318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
22319$as_echo "okay" >&6; }
22320 else
22321 ok=no
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
22323$as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
22324 fi
22325 fi
22326 fi
22327 fi
22328 if test $ok = yes; then
22329 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
22330 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
22331 :
22332 else
22333 LIBGCRYPT_CFLAGS=""
22334 LIBGCRYPT_LIBS=""
22335 with_client_gcrypt=no
22336 fi
22337
22338
22339
22340 CFLAGS="$CFLAGS $LIBGCRYPT_CFLAGS"
22341 LIBS="$LIBS $LIBGCRYPT_LIBS"
22342 if test "x$with_client_gcrypt" != "xno"; then
22343 $as_echo "@%:@define WITH_CLIENT_GCRYPT 1" >>confdefs.h
22344
22345 fi
22346fi
22347
22348# Checks for GnuTLS
22349
22350
22351@%:@ Check whether --with-gnutls was given.
22352if test "${with_gnutls+set}" = set; then :
22353 withval=$with_gnutls;
22354fi
22355
22356
22357if test "x$with_gnutls" != "xno"; then
22358 PKG_CHECK_MODULES(GNUTLS, gnutls >= 2.4.0,,:)
22359 CFLAGS="$CFLAGS $GNUTLS_CFLAGS"
22360 LIBS="$LIBS $GNUTLS_LIBS"
22361fi
22362 if test ! -z "$GNUTLS_LIBS"; then
22363 HAVE_GNUTLS_TRUE=
22364 HAVE_GNUTLS_FALSE='#'
22365else
22366 HAVE_GNUTLS_TRUE='#'
22367 HAVE_GNUTLS_FALSE=
22368fi
22369
22370if test ! -z "$GNUTLS_LIBS" ; then
22371 $as_echo "@%:@define HAVE_GNUTLS 1" >>confdefs.h
22372
22373fi
22374
22375
22376# warn if neither GnuTLS nor OpenSSL are available
22377if test -z "$SSL_LIBS" -a -z "$GNUTLS_LIBS"; then
22378 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
22379==========================================================================
22380*** No encryption library could be found. ***
22381A libvncserver/libvncclient built this way will not support SSL encryption.
22382To enable SSL install the necessary development packages (perhaps it is named
22383something like libssl-dev or gnutls-dev) and run configure again.
22384==========================================================================
22385" >&5
22386$as_echo "$as_me: WARNING:
22387==========================================================================
22388*** No encryption library could be found. ***
22389A libvncserver/libvncclient built this way will not support SSL encryption.
22390To enable SSL install the necessary development packages (perhaps it is named
22391something like libssl-dev or gnutls-dev) and run configure again.
22392==========================================================================
22393" >&2;}
22394 sleep 5
22395fi
22396
22397
22398# IPv6
22399
22400
22401@%:@ Check whether --with-ipv6 was given.
22402if test "${with_ipv6+set}" = set; then :
22403 withval=$with_ipv6;
22404fi
22405
22406if test "x$with_ipv6" != "xno"; then
22407 ac_fn_c_check_func "$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
22408if test "x$ac_cv_func_getaddrinfo" = xyes; then :
22409 $as_echo "@%:@define IPv6 1" >>confdefs.h
22410
22411else
22412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lsocket" >&5
22413$as_echo_n "checking for getaddrinfo in -lsocket... " >&6; }
22414if ${ac_cv_lib_socket_getaddrinfo+:} false; then :
22415 $as_echo_n "(cached) " >&6
22416else
22417 ac_check_lib_save_LIBS=$LIBS
22418LIBS="-lsocket $LIBS"
22419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22420/* end confdefs.h. */
22421
22422/* Override any GCC internal prototype to avoid an error.
22423 Use char because int might match the return type of a GCC
22424 builtin and then its argument prototype would still apply. */
22425#ifdef __cplusplus
22426extern "C"
22427#endif
22428char getaddrinfo ();
22429int
22430main ()
22431{
22432return getaddrinfo ();
22433 ;
22434 return 0;
22435}
22436_ACEOF
22437if ac_fn_c_try_link "$LINENO"; then :
22438 ac_cv_lib_socket_getaddrinfo=yes
22439else
22440 ac_cv_lib_socket_getaddrinfo=no
22441fi
22442rm -f core conftest.err conftest.$ac_objext \
22443 conftest$ac_exeext conftest.$ac_ext
22444LIBS=$ac_check_lib_save_LIBS
22445fi
22446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_getaddrinfo" >&5
22447$as_echo "$ac_cv_lib_socket_getaddrinfo" >&6; }
22448if test "x$ac_cv_lib_socket_getaddrinfo" = xyes; then :
22449 $as_echo "@%:@define IPv6 1" >>confdefs.h
22450
22451else
22452
22453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getaddrinfo in -lws2_32" >&5
22454$as_echo_n "checking for getaddrinfo in -lws2_32... " >&6; }
22455 LIBS="$LIBS -lws2_32"
22456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22457/* end confdefs.h. */
22458#include <ws2tcpip.h>
22459int
22460main ()
22461{
22462getaddrinfo(0, 0, 0, 0);
22463 ;
22464 return 0;
22465}
22466_ACEOF
22467if ac_fn_c_try_link "$LINENO"; then :
22468
22469 $as_echo "@%:@define IPv6 1" >>confdefs.h
22470
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22472$as_echo "yes" >&6; }
22473
22474else
22475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22476$as_echo "no" >&6; }
22477fi
22478rm -f core conftest.err conftest.$ac_objext \
22479 conftest$ac_exeext conftest.$ac_ext
22480
22481fi
22482
22483fi
22484
22485fi
22486
22487
22488
22489# Checks for header files.
22490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
22491$as_echo_n "checking for ANSI C header files... " >&6; }
22492if ${ac_cv_header_stdc+:} false; then :
22493 $as_echo_n "(cached) " >&6
22494else
22495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22496/* end confdefs.h. */
22497#include <stdlib.h>
22498#include <stdarg.h>
22499#include <string.h>
22500#include <float.h>
22501
22502int
22503main ()
22504{
22505
22506 ;
22507 return 0;
22508}
22509_ACEOF
22510if ac_fn_c_try_compile "$LINENO"; then :
22511 ac_cv_header_stdc=yes
22512else
22513 ac_cv_header_stdc=no
22514fi
22515rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22516
22517if test $ac_cv_header_stdc = yes; then
22518 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520/* end confdefs.h. */
22521#include <string.h>
22522
22523_ACEOF
22524if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22525 $EGREP "memchr" >/dev/null 2>&1; then :
22526
22527else
22528 ac_cv_header_stdc=no
22529fi
22530rm -f conftest*
22531
22532fi
22533
22534if test $ac_cv_header_stdc = yes; then
22535 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
22536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22537/* end confdefs.h. */
22538#include <stdlib.h>
22539
22540_ACEOF
22541if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22542 $EGREP "free" >/dev/null 2>&1; then :
22543
22544else
22545 ac_cv_header_stdc=no
22546fi
22547rm -f conftest*
22548
22549fi
22550
22551if test $ac_cv_header_stdc = yes; then
22552 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
22553 if test "$cross_compiling" = yes; then :
22554 :
22555else
22556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22557/* end confdefs.h. */
22558#include <ctype.h>
22559#include <stdlib.h>
22560#if ((' ' & 0x0FF) == 0x020)
22561# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22562# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22563#else
22564# define ISLOWER(c) \
22565 (('a' <= (c) && (c) <= 'i') \
22566 || ('j' <= (c) && (c) <= 'r') \
22567 || ('s' <= (c) && (c) <= 'z'))
22568# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22569#endif
22570
22571#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22572int
22573main ()
22574{
22575 int i;
22576 for (i = 0; i < 256; i++)
22577 if (XOR (islower (i), ISLOWER (i))
22578 || toupper (i) != TOUPPER (i))
22579 return 2;
22580 return 0;
22581}
22582_ACEOF
22583if ac_fn_c_try_run "$LINENO"; then :
22584
22585else
22586 ac_cv_header_stdc=no
22587fi
22588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22589 conftest.$ac_objext conftest.beam conftest.$ac_ext
22590fi
22591
22592fi
22593fi
22594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
22595$as_echo "$ac_cv_header_stdc" >&6; }
22596if test $ac_cv_header_stdc = yes; then
22597
22598$as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
22599
22600fi
22601
22602for 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
22603do :
22604 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22605ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22606if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22607 cat >>confdefs.h <<_ACEOF
22608@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22609_ACEOF
22610
22611fi
22612
22613done
22614
22615
22616# x11vnc only:
22617if test "$build_x11vnc" = "yes"; then
22618 for ac_header in pwd.h sys/wait.h utmpx.h termios.h sys/ioctl.h sys/stropts.h
22619do :
22620 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22621ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
22622if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22623 cat >>confdefs.h <<_ACEOF
22624@%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22625_ACEOF
22626
22627fi
22628
22629done
22630
22631fi
22632
22633# Checks for typedefs, structures, and compiler characteristics.
22634{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
22635$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
22636if ${ac_cv_c_const+:} false; then :
22637 $as_echo_n "(cached) " >&6
22638else
22639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22640/* end confdefs.h. */
22641
22642int
22643main ()
22644{
22645
22646#ifndef __cplusplus
22647 /* Ultrix mips cc rejects this sort of thing. */
22648 typedef int charset[2];
22649 const charset cs = { 0, 0 };
22650 /* SunOS 4.1.1 cc rejects this. */
22651 char const *const *pcpcc;
22652 char **ppc;
22653 /* NEC SVR4.0.2 mips cc rejects this. */
22654 struct point {int x, y;};
22655 static struct point const zero = {0,0};
22656 /* AIX XL C 1.02.0.0 rejects this.
22657 It does not let you subtract one const X* pointer from another in
22658 an arm of an if-expression whose if-part is not a constant
22659 expression */
22660 const char *g = "string";
22661 pcpcc = &g + (g ? g-g : 0);
22662 /* HPUX 7.0 cc rejects these. */
22663 ++pcpcc;
22664 ppc = (char**) pcpcc;
22665 pcpcc = (char const *const *) ppc;
22666 { /* SCO 3.2v4 cc rejects this sort of thing. */
22667 char tx;
22668 char *t = &tx;
22669 char const *s = 0 ? (char *) 0 : (char const *) 0;
22670
22671 *t++ = 0;
22672 if (s) return 0;
22673 }
22674 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
22675 int x[] = {25, 17};
22676 const int *foo = &x[0];
22677 ++foo;
22678 }
22679 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
22680 typedef const int *iptr;
22681 iptr p = 0;
22682 ++p;
22683 }
22684 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
22685 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
22686 struct s { int j; const int *ap[3]; } bx;
22687 struct s *b = &bx; b->j = 5;
22688 }
22689 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
22690 const int foo = 10;
22691 if (!foo) return 0;
22692 }
22693 return !cs[0] && !zero.x;
22694#endif
22695
22696 ;
22697 return 0;
22698}
22699_ACEOF
22700if ac_fn_c_try_compile "$LINENO"; then :
22701 ac_cv_c_const=yes
22702else
22703 ac_cv_c_const=no
22704fi
22705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22706fi
22707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
22708$as_echo "$ac_cv_c_const" >&6; }
22709if test $ac_cv_c_const = no; then
22710
22711$as_echo "@%:@define const /**/" >>confdefs.h
22712
22713fi
22714
22715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
22716$as_echo_n "checking for inline... " >&6; }
22717if ${ac_cv_c_inline+:} false; then :
22718 $as_echo_n "(cached) " >&6
22719else
22720 ac_cv_c_inline=no
22721for ac_kw in inline __inline__ __inline; do
22722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22723/* end confdefs.h. */
22724#ifndef __cplusplus
22725typedef int foo_t;
22726static $ac_kw foo_t static_foo () {return 0; }
22727$ac_kw foo_t foo () {return 0; }
22728#endif
22729
22730_ACEOF
22731if ac_fn_c_try_compile "$LINENO"; then :
22732 ac_cv_c_inline=$ac_kw
22733fi
22734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22735 test "$ac_cv_c_inline" != no && break
22736done
22737
22738fi
22739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
22740$as_echo "$ac_cv_c_inline" >&6; }
22741
22742case $ac_cv_c_inline in
22743 inline | yes) ;;
22744 *)
22745 case $ac_cv_c_inline in
22746 no) ac_val=;;
22747 *) ac_val=$ac_cv_c_inline;;
22748 esac
22749 cat >>confdefs.h <<_ACEOF
22750#ifndef __cplusplus
22751#define inline $ac_val
22752#endif
22753_ACEOF
22754 ;;
22755esac
22756
22757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
22758$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
22759if ${ac_cv_c_bigendian+:} false; then :
22760 $as_echo_n "(cached) " >&6
22761else
22762 ac_cv_c_bigendian=unknown
22763 # See if we're dealing with a universal compiler.
22764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22765/* end confdefs.h. */
22766#ifndef __APPLE_CC__
22767 not a universal capable compiler
22768 #endif
22769 typedef int dummy;
22770
22771_ACEOF
22772if ac_fn_c_try_compile "$LINENO"; then :
22773
22774 # Check for potential -arch flags. It is not universal unless
22775 # there are at least two -arch flags with different values.
22776 ac_arch=
22777 ac_prev=
22778 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
22779 if test -n "$ac_prev"; then
22780 case $ac_word in
22781 i?86 | x86_64 | ppc | ppc64)
22782 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
22783 ac_arch=$ac_word
22784 else
22785 ac_cv_c_bigendian=universal
22786 break
22787 fi
22788 ;;
22789 esac
22790 ac_prev=
22791 elif test "x$ac_word" = "x-arch"; then
22792 ac_prev=arch
22793 fi
22794 done
22795fi
22796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22797 if test $ac_cv_c_bigendian = unknown; then
22798 # See if sys/param.h defines the BYTE_ORDER macro.
22799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22800/* end confdefs.h. */
22801#include <sys/types.h>
22802 #include <sys/param.h>
22803
22804int
22805main ()
22806{
22807#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22808 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22809 && LITTLE_ENDIAN)
22810 bogus endian macros
22811 #endif
22812
22813 ;
22814 return 0;
22815}
22816_ACEOF
22817if ac_fn_c_try_compile "$LINENO"; then :
22818 # It does; now see whether it defined to BIG_ENDIAN or not.
22819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22820/* end confdefs.h. */
22821#include <sys/types.h>
22822 #include <sys/param.h>
22823
22824int
22825main ()
22826{
22827#if BYTE_ORDER != BIG_ENDIAN
22828 not big endian
22829 #endif
22830
22831 ;
22832 return 0;
22833}
22834_ACEOF
22835if ac_fn_c_try_compile "$LINENO"; then :
22836 ac_cv_c_bigendian=yes
22837else
22838 ac_cv_c_bigendian=no
22839fi
22840rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22841fi
22842rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22843 fi
22844 if test $ac_cv_c_bigendian = unknown; then
22845 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
22846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22847/* end confdefs.h. */
22848#include <limits.h>
22849
22850int
22851main ()
22852{
22853#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22854 bogus endian macros
22855 #endif
22856
22857 ;
22858 return 0;
22859}
22860_ACEOF
22861if ac_fn_c_try_compile "$LINENO"; then :
22862 # It does; now see whether it defined to _BIG_ENDIAN or not.
22863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22864/* end confdefs.h. */
22865#include <limits.h>
22866
22867int
22868main ()
22869{
22870#ifndef _BIG_ENDIAN
22871 not big endian
22872 #endif
22873
22874 ;
22875 return 0;
22876}
22877_ACEOF
22878if ac_fn_c_try_compile "$LINENO"; then :
22879 ac_cv_c_bigendian=yes
22880else
22881 ac_cv_c_bigendian=no
22882fi
22883rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22884fi
22885rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22886 fi
22887 if test $ac_cv_c_bigendian = unknown; then
22888 # Compile a test program.
22889 if test "$cross_compiling" = yes; then :
22890 # Try to guess by grepping values from an object file.
22891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22892/* end confdefs.h. */
22893short int ascii_mm[] =
22894 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22895 short int ascii_ii[] =
22896 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22897 int use_ascii (int i) {
22898 return ascii_mm[i] + ascii_ii[i];
22899 }
22900 short int ebcdic_ii[] =
22901 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22902 short int ebcdic_mm[] =
22903 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22904 int use_ebcdic (int i) {
22905 return ebcdic_mm[i] + ebcdic_ii[i];
22906 }
22907 extern int foo;
22908
22909int
22910main ()
22911{
22912return use_ascii (foo) == use_ebcdic (foo);
22913 ;
22914 return 0;
22915}
22916_ACEOF
22917if ac_fn_c_try_compile "$LINENO"; then :
22918 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22919 ac_cv_c_bigendian=yes
22920 fi
22921 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22922 if test "$ac_cv_c_bigendian" = unknown; then
22923 ac_cv_c_bigendian=no
22924 else
22925 # finding both strings is unlikely to happen, but who knows?
22926 ac_cv_c_bigendian=unknown
22927 fi
22928 fi
22929fi
22930rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22931else
22932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22933/* end confdefs.h. */
22934$ac_includes_default
22935int
22936main ()
22937{
22938
22939 /* Are we little or big endian? From Harbison&Steele. */
22940 union
22941 {
22942 long int l;
22943 char c[sizeof (long int)];
22944 } u;
22945 u.l = 1;
22946 return u.c[sizeof (long int) - 1] == 1;
22947
22948 ;
22949 return 0;
22950}
22951_ACEOF
22952if ac_fn_c_try_run "$LINENO"; then :
22953 ac_cv_c_bigendian=no
22954else
22955 ac_cv_c_bigendian=yes
22956fi
22957rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22958 conftest.$ac_objext conftest.beam conftest.$ac_ext
22959fi
22960
22961 fi
22962fi
22963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
22964$as_echo "$ac_cv_c_bigendian" >&6; }
22965 case $ac_cv_c_bigendian in #(
22966 yes)
22967 $as_echo "@%:@define WORDS_BIGENDIAN 1" >>confdefs.h
22968;; #(
22969 no)
22970 ;; #(
22971 universal)
22972
22973$as_echo "@%:@define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
22974
22975 ;; #(
22976 *)
22977 as_fn_error $? "unknown endianness
22978 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
22979 esac
22980
22981ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22982if test "x$ac_cv_type_size_t" = xyes; then :
22983
22984else
22985
22986cat >>confdefs.h <<_ACEOF
22987@%:@define size_t unsigned int
22988_ACEOF
22989
22990fi
22991
22992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
22993$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
22994if ${ac_cv_header_time+:} false; then :
22995 $as_echo_n "(cached) " >&6
22996else
22997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22998/* end confdefs.h. */
22999#include <sys/types.h>
23000#include <sys/time.h>
23001#include <time.h>
23002
23003int
23004main ()
23005{
23006if ((struct tm *) 0)
23007return 0;
23008 ;
23009 return 0;
23010}
23011_ACEOF
23012if ac_fn_c_try_compile "$LINENO"; then :
23013 ac_cv_header_time=yes
23014else
23015 ac_cv_header_time=no
23016fi
23017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23018fi
23019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23020$as_echo "$ac_cv_header_time" >&6; }
23021if test $ac_cv_header_time = yes; then
23022
23023$as_echo "@%:@define TIME_WITH_SYS_TIME 1" >>confdefs.h
23024
23025fi
23026
23027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
23028$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
23029if ${ac_cv_header_sys_wait_h+:} false; then :
23030 $as_echo_n "(cached) " >&6
23031else
23032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23033/* end confdefs.h. */
23034#include <sys/types.h>
23035#include <sys/wait.h>
23036#ifndef WEXITSTATUS
23037# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
23038#endif
23039#ifndef WIFEXITED
23040# define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23041#endif
23042
23043int
23044main ()
23045{
23046 int s;
23047 wait (&s);
23048 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23049 ;
23050 return 0;
23051}
23052_ACEOF
23053if ac_fn_c_try_compile "$LINENO"; then :
23054 ac_cv_header_sys_wait_h=yes
23055else
23056 ac_cv_header_sys_wait_h=no
23057fi
23058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23059fi
23060{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
23061$as_echo "$ac_cv_header_sys_wait_h" >&6; }
23062if test $ac_cv_header_sys_wait_h = yes; then
23063
23064$as_echo "@%:@define HAVE_SYS_WAIT_H 1" >>confdefs.h
23065
23066fi
23067
23068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5
23069$as_echo_n "checking for socklen_t... " >&6; }
23070if ${ac_cv_type_socklen_t+:} false; then :
23071 $as_echo_n "(cached) " >&6
23072else
23073
23074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23075/* end confdefs.h. */
23076#include <sys/types.h>
23077 #include <sys/socket.h>
23078int
23079main ()
23080{
23081socklen_t len = 42; return 0;
23082 ;
23083 return 0;
23084}
23085_ACEOF
23086if ac_fn_c_try_compile "$LINENO"; then :
23087 ac_cv_type_socklen_t=yes
23088else
23089 ac_cv_type_socklen_t=no
23090fi
23091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23092
23093fi
23094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_socklen_t" >&5
23095$as_echo "$ac_cv_type_socklen_t" >&6; }
23096 if test $ac_cv_type_socklen_t != yes; then
23097 $as_echo "@%:@define socklen_t int" >>confdefs.h
23098
23099 fi
23100
23101if test ! -d ./rfb; then
23102 echo "creating subdir ./rfb for rfbint.h"
23103 mkdir ./rfb
23104fi
23105# ------ AC CREATE STDINT H -------------------------------------
23106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint-types...." >&5
23107$as_echo_n "checking for stdint-types....... " >&6; }
23108ac_stdint_h=`echo rfb/rfbint.h`
23109if test "$ac_stdint_h" = "stdint.h" ; then
23110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./stdint.h?)\"" >&5
23111$as_echo "\"(are you sure you want them in ./stdint.h?)\"" >&6; }
23112elif test "$ac_stdint_h" = "inttypes.h" ; then
23113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(are you sure you want them in ./inttypes.h?)\"" >&5
23114$as_echo "\"(are you sure you want them in ./inttypes.h?)\"" >&6; }
23115else
23116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"(putting them into $ac_stdint_h)\"" >&5
23117$as_echo "\"(putting them into $ac_stdint_h)\"" >&6; }
23118fi
23119
23120inttype_headers=`echo inttypes.h sys/inttypes.h sys/inttypes.h \
23121| sed -e 's/,/ /g'`
23122
23123 ac_cv_header_stdint_x="no-file"
23124 ac_cv_header_stdint_o="no-file"
23125 ac_cv_header_stdint_u="no-file"
23126 for i in stdint.h $inttype_headers ; do
23127 unset ac_cv_type_uintptr_t
23128 unset ac_cv_type_uint64_t
23129 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23130"
23131if test "x$ac_cv_type_uintptr_t" = xyes; then :
23132 ac_cv_header_stdint_x=$i
23133else
23134 continue
23135fi
23136
23137 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23138"
23139if test "x$ac_cv_type_uint64_t" = xyes; then :
23140 and64="(uint64_t too)"
23141else
23142 and64=""
23143fi
23144
23145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uintptr_t in $i $and64" >&5
23146$as_echo "... seen our uintptr_t in $i $and64" >&6; }
23147 break;
23148 done
23149 if test "$ac_cv_header_stdint_x" = "no-file" ; then
23150 for i in stdint.h $inttype_headers ; do
23151 unset ac_cv_type_uint32_t
23152 unset ac_cv_type_uint64_t
23153 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23154"
23155if test "x$ac_cv_type_uint32_t" = xyes; then :
23156 ac_cv_header_stdint_o=$i
23157else
23158 continue
23159fi
23160
23161 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23162"
23163if test "x$ac_cv_type_uint64_t" = xyes; then :
23164 and64="(uint64_t too)"
23165else
23166 and64=""
23167fi
23168
23169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our uint32_t in $i $and64" >&5
23170$as_echo "... seen our uint32_t in $i $and64" >&6; }
23171 break;
23172 done
23173 if test "$ac_cv_header_stdint_o" = "no-file" ; then
23174 for i in sys/types.h $inttype_headers ; do
23175 unset ac_cv_type_u_int32_t
23176 unset ac_cv_type_u_int64_t
23177 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23178"
23179if test "x$ac_cv_type_u_int32_t" = xyes; then :
23180 ac_cv_header_stdint_u=$i
23181else
23182 continue
23183fi
23184
23185 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23186"
23187if test "x$ac_cv_type_uint64_t" = xyes; then :
23188 and64="(u_int64_t too)"
23189else
23190 and64=""
23191fi
23192
23193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen our u_int32_t in $i $and64" >&5
23194$as_echo "... seen our u_int32_t in $i $and64" >&6; }
23195 break;
23196 done
23197 fi
23198 fi
23199
23200# ----------------- DONE inttypes.h checks MAYBE C basic types --------
23201
23202if test "$ac_cv_header_stdint_x" = "no-file" ; then
23203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23204$as_echo_n "checking size of char... " >&6; }
23205if ${ac_cv_sizeof_char+:} false; then :
23206 $as_echo_n "(cached) " >&6
23207else
23208 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23210/* end confdefs.h. */
23211#include "confdefs.h"
23212#include <sys/types.h>
23213
23214
23215int
23216main ()
23217{
23218switch (0) case 0: case (sizeof (char) == $ac_size):;
23219 ;
23220 return 0;
23221}
23222_ACEOF
23223if ac_fn_c_try_compile "$LINENO"; then :
23224 ac_cv_sizeof_char=$ac_size
23225fi
23226rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 if test x$ac_cv_sizeof_char != x ; then break; fi
23228done
23229
23230fi
23231
23232if test x$ac_cv_sizeof_char = x ; then
23233 as_fn_error $? "cannot determine a size for char" "$LINENO" 5
23234fi
23235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23236$as_echo "$ac_cv_sizeof_char" >&6; }
23237
23238cat >>confdefs.h <<_ACEOF
23239@%:@define SIZEOF_CHAR $ac_cv_sizeof_char
23240_ACEOF
23241
23242
23243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23244$as_echo_n "checking size of short... " >&6; }
23245if ${ac_cv_sizeof_short+:} false; then :
23246 $as_echo_n "(cached) " >&6
23247else
23248 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23250/* end confdefs.h. */
23251#include "confdefs.h"
23252#include <sys/types.h>
23253
23254
23255int
23256main ()
23257{
23258switch (0) case 0: case (sizeof (short) == $ac_size):;
23259 ;
23260 return 0;
23261}
23262_ACEOF
23263if ac_fn_c_try_compile "$LINENO"; then :
23264 ac_cv_sizeof_short=$ac_size
23265fi
23266rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23267 if test x$ac_cv_sizeof_short != x ; then break; fi
23268done
23269
23270fi
23271
23272if test x$ac_cv_sizeof_short = x ; then
23273 as_fn_error $? "cannot determine a size for short" "$LINENO" 5
23274fi
23275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23276$as_echo "$ac_cv_sizeof_short" >&6; }
23277
23278cat >>confdefs.h <<_ACEOF
23279@%:@define SIZEOF_SHORT $ac_cv_sizeof_short
23280_ACEOF
23281
23282
23283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23284$as_echo_n "checking size of int... " >&6; }
23285if ${ac_cv_sizeof_int+:} false; then :
23286 $as_echo_n "(cached) " >&6
23287else
23288 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23290/* end confdefs.h. */
23291#include "confdefs.h"
23292#include <sys/types.h>
23293
23294
23295int
23296main ()
23297{
23298switch (0) case 0: case (sizeof (int) == $ac_size):;
23299 ;
23300 return 0;
23301}
23302_ACEOF
23303if ac_fn_c_try_compile "$LINENO"; then :
23304 ac_cv_sizeof_int=$ac_size
23305fi
23306rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23307 if test x$ac_cv_sizeof_int != x ; then break; fi
23308done
23309
23310fi
23311
23312if test x$ac_cv_sizeof_int = x ; then
23313 as_fn_error $? "cannot determine a size for int" "$LINENO" 5
23314fi
23315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23316$as_echo "$ac_cv_sizeof_int" >&6; }
23317
23318cat >>confdefs.h <<_ACEOF
23319@%:@define SIZEOF_INT $ac_cv_sizeof_int
23320_ACEOF
23321
23322
23323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23324$as_echo_n "checking size of long... " >&6; }
23325if ${ac_cv_sizeof_long+:} false; then :
23326 $as_echo_n "(cached) " >&6
23327else
23328 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23330/* end confdefs.h. */
23331#include "confdefs.h"
23332#include <sys/types.h>
23333
23334
23335int
23336main ()
23337{
23338switch (0) case 0: case (sizeof (long) == $ac_size):;
23339 ;
23340 return 0;
23341}
23342_ACEOF
23343if ac_fn_c_try_compile "$LINENO"; then :
23344 ac_cv_sizeof_long=$ac_size
23345fi
23346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23347 if test x$ac_cv_sizeof_long != x ; then break; fi
23348done
23349
23350fi
23351
23352if test x$ac_cv_sizeof_long = x ; then
23353 as_fn_error $? "cannot determine a size for long" "$LINENO" 5
23354fi
23355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23356$as_echo "$ac_cv_sizeof_long" >&6; }
23357
23358cat >>confdefs.h <<_ACEOF
23359@%:@define SIZEOF_LONG $ac_cv_sizeof_long
23360_ACEOF
23361
23362
23363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23364$as_echo_n "checking size of void*... " >&6; }
23365if ${ac_cv_sizeof_voidp+:} false; then :
23366 $as_echo_n "(cached) " >&6
23367else
23368 for ac_size in 4 8 1 2 16 ; do # List sizes in rough order of prevalence.
23369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23370/* end confdefs.h. */
23371#include "confdefs.h"
23372#include <sys/types.h>
23373
23374
23375int
23376main ()
23377{
23378switch (0) case 0: case (sizeof (void*) == $ac_size):;
23379 ;
23380 return 0;
23381}
23382_ACEOF
23383if ac_fn_c_try_compile "$LINENO"; then :
23384 ac_cv_sizeof_voidp=$ac_size
23385fi
23386rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23387 if test x$ac_cv_sizeof_voidp != x ; then break; fi
23388done
23389
23390fi
23391
23392if test x$ac_cv_sizeof_voidp = x ; then
23393 as_fn_error $? "cannot determine a size for void*" "$LINENO" 5
23394fi
23395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23396$as_echo "$ac_cv_sizeof_voidp" >&6; }
23397
23398cat >>confdefs.h <<_ACEOF
23399@%:@define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23400_ACEOF
23401
23402
23403 ac_cv_header_stdint_test="yes"
23404else
23405 ac_cv_header_stdint_test="no"
23406fi
23407
23408# ----------------- DONE inttypes.h checks START header -------------
23409_ac_stdint_h=`$as_echo "_$ac_stdint_h" | $as_tr_cpp`
23410{ $as_echo "$as_me:${as_lineno-$LINENO}: result: creating $ac_stdint_h : $_ac_stdint_h" >&5
23411$as_echo "creating $ac_stdint_h : $_ac_stdint_h" >&6; }
23412echo "#ifndef" $_ac_stdint_h >$ac_stdint_h
23413echo "#define" $_ac_stdint_h "1" >>$ac_stdint_h
23414echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint_h
23415echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint_h
23416if test "$GCC" = "yes" ; then
23417 echo "/* generated using a gnu compiler version" `$CC --version` "*/" \
23418 >>$ac_stdint_h
23419else
23420 echo "/* generated using $CC */" >>$ac_stdint_h
23421fi
23422echo "" >>$ac_stdint_h
23423
23424if test "$ac_cv_header_stdint_x" != "no-file" ; then
23425 ac_cv_header_stdint="$ac_cv_header_stdint_x"
23426elif test "$ac_cv_header_stdint_o" != "no-file" ; then
23427 ac_cv_header_stdint="$ac_cv_header_stdint_o"
23428elif test "$ac_cv_header_stdint_u" != "no-file" ; then
23429 ac_cv_header_stdint="$ac_cv_header_stdint_u"
23430else
23431 ac_cv_header_stdint="stddef.h"
23432fi
23433
23434# ----------------- See if int_least and int_fast types are present
23435unset ac_cv_type_int_least32_t
23436unset ac_cv_type_int_fast32_t
23437ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23438"
23439if test "x$ac_cv_type_int_least32_t" = xyes; then :
23440
23441fi
23442
23443ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23444"
23445if test "x$ac_cv_type_int_fast32_t" = xyes; then :
23446
23447fi
23448
23449
23450if test "$ac_cv_header_stdint" != "stddef.h" ; then
23451if test "$ac_cv_header_stdint" != "stdint.h" ; then
23452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include stddef.h" >&5
23453$as_echo "..adding include stddef.h" >&6; }
23454 echo "#include <stddef.h>" >>$ac_stdint_h
23455fi ; fi
23456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding include $ac_cv_header_stdint" >&5
23457$as_echo "..adding include $ac_cv_header_stdint" >&6; }
23458 echo "#include <$ac_cv_header_stdint>" >>$ac_stdint_h
23459echo "" >>$ac_stdint_h
23460
23461# ----------------- DONE header START basic int types -------------
23462if test "$ac_cv_header_stdint_x" = "no-file" ; then
23463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... need to look at C basic types" >&5
23464$as_echo "... need to look at C basic types" >&6; }
23465else
23466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good stdint.h inttypes" >&5
23467$as_echo "... seen good stdint.h inttypes" >&6; }
23468fi
23469
23470if test "$ac_cv_header_stdint_u" != "no-file" ; then
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen bsd/sysv typedefs" >&5
23472$as_echo "... seen bsd/sysv typedefs" >&6; }
23473 cat >>$ac_stdint_h <<EOF
23474
23475/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
23476typedef u_int8_t uint8_t;
23477typedef u_int16_t uint16_t;
23478typedef u_int32_t uint32_t;
23479EOF
23480 cat >>$ac_stdint_h <<EOF
23481
23482/* glibc compatibility */
23483#ifndef __int8_t_defined
23484#define __int8_t_defined
23485#endif
23486EOF
23487fi
23488
23489ac_cv_sizeof_x="$ac_cv_sizeof_char:$ac_cv_sizeof_short"
23490ac_cv_sizeof_X="$ac_cv_sizeof_x:$ac_cv_sizeof_int"
23491ac_cv_sizeof_X="$ac_cv_sizeof_X:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long"
23492if test "$ac_cv_header_stdint" = "stddef.h" ; then
23493# we must guess all the basic types. Apart from byte-adressable system,
23494# there a few 32-bit-only dsp-systems. nibble-addressable systems are way off.
23495 cat >>$ac_stdint_h <<EOF
23496/* ------------ BITSPECIFIC INTTYPES SECTION --------------- */
23497EOF
23498 t="typedefs for a"
23499 case "$ac_cv_sizeof_X" in
23500 1:2:2:2:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 16-bit system" >&5
23501$as_echo "..adding $t normal 16-bit system" >&6; }
23502 cat >>$ac_stdint_h <<EOF
23503/* a normal 16-bit system */
23504typedef unsigned char uint8_t;
23505typedef unsigned short uint16_t;
23506typedef unsigned long uint32_t;
23507#ifndef __int8_t_defined
23508#define __int8_t_defined
23509typedef char int8_t;
23510typedef short int16_t;
23511typedef long int32_t;
23512#endif
23513EOF
23514;;
23515 1:2:2:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system derived from a 16-bit" >&5
23516$as_echo "..adding $t 32-bit system derived from a 16-bit" >&6; }
23517 cat >>$ac_stdint_h <<EOF
23518/* a 32-bit system derived from a 16-bit */
23519typedef unsigned char uint8_t;
23520typedef unsigned short uint16_t;
23521typedef unsigned int uint32_t;
23522#ifndef __int8_t_defined
23523#define __int8_t_defined
23524typedef char int8_t;
23525typedef short int16_t;
23526typedef int int32_t;
23527#endif
23528EOF
23529;;
23530 1:2:4:4:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 32-bit system" >&5
23531$as_echo "..adding $t normal 32-bit system" >&6; }
23532 cat >>$ac_stdint_h <<EOF
23533/* a normal 32-bit system */
23534typedef unsigned char uint8_t;
23535typedef unsigned short uint16_t;
23536typedef unsigned int uint32_t;
23537#ifndef __int8_t_defined
23538#define __int8_t_defined
23539typedef char int8_t;
23540typedef short int16_t;
23541typedef int int32_t;
23542#endif
23543EOF
23544;;
23545 1:2:4:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 32-bit system prepared for 64-bit" >&5
23546$as_echo "..adding $t 32-bit system prepared for 64-bit" >&6; }
23547 cat >>$ac_stdint_h <<EOF
23548
23549/* a 32-bit system prepared for 64-bit */
23550typedef unsigned char uint8_t;
23551typedef unsigned short uint16_t;
23552typedef unsigned int uint32_t;
23553#ifndef __int8_t_defined
23554#define __int8_t_defined
23555typedef char int8_t;
23556typedef short int16_t;
23557typedef int int32_t;
23558#endif
23559EOF
23560;;
23561 1:2:4:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t normal 64-bit system" >&5
23562$as_echo "..adding $t normal 64-bit system" >&6; }
23563 cat >>$ac_stdint_h <<EOF
23564
23565/* a normal 64-bit system */
23566typedef unsigned char uint8_t;
23567typedef unsigned short uint16_t;
23568typedef unsigned int uint32_t;
23569#ifndef __int8_t_defined
23570#define __int8_t_defined
23571typedef char int8_t;
23572typedef short int16_t;
23573typedef int int32_t;
23574#endif
23575EOF
23576;;
23577 1:2:4:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding $t 64-bit system derived from a 32-bit" >&5
23578$as_echo "..adding $t 64-bit system derived from a 32-bit" >&6; }
23579 cat >>$ac_stdint_h <<EOF
23580
23581/* a 64-bit system derived from a 32-bit system */
23582typedef unsigned char uint8_t;
23583typedef unsigned short uint16_t;
23584typedef unsigned int uint32_t;
23585#ifndef __int8_t_defined
23586#define __int8_t_defined
23587typedef char int8_t;
23588typedef short int16_t;
23589typedef int int32_t;
23590#endif
23591EOF
23592;;
23593 *)
23594 as_fn_error $? " $ac_cv_sizeof_X what is that a system? contact the author, quick! http://ac-archive.sf.net" "$LINENO" 5
23595 exit 1
23596;;
23597 esac
23598fi
23599
23600# ------------- DONE basic int types START int64_t types ------------
23601if test "$ac_cv_type_uint64_t" = "yes"
23602then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ... seen good uint64_t" >&5
23603$as_echo "... seen good uint64_t" >&6; }
23604 cat >>$ac_stdint_h <<EOF
23605
23606/* system headers have good uint64_t */
23607#ifndef _HAVE_UINT64_T
23608#define _HAVE_UINT64_T
23609#endif
23610EOF
23611
23612elif test "$ac_cv_type_u_int64_t" = "yes"
23613then { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef u_int64_t uint64_t" >&5
23614$as_echo "..adding typedef u_int64_t uint64_t" >&6; }
23615 cat >>$ac_stdint_h <<EOF
23616
23617/* system headers have an u_int64_t */
23618#ifndef _HAVE_UINT64_T
23619#define _HAVE_UINT64_T
23620typedef u_int64_t uint64_t;
23621#endif
23622EOF
23623else { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic uint64_t runtime checks" >&5
23624$as_echo "..adding generic uint64_t runtime checks" >&6; }
23625 cat >>$ac_stdint_h <<EOF
23626
23627/* -------------------- 64 BIT GENERIC SECTION -------------------- */
23628/* here are some common heuristics using compiler runtime specifics */
23629#if defined __STDC_VERSION__ && defined __STDC_VERSION__ > 199901L
23630
23631#ifndef _HAVE_UINT64_T
23632#define _HAVE_UINT64_T
23633typedef long long int64_t;
23634typedef unsigned long long uint64_t;
23635#endif
23636
23637#elif !defined __STRICT_ANSI__
23638#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
23639
23640#ifndef _HAVE_UINT64_T
23641#define _HAVE_UINT64_T
23642typedef __int64 int64_t;
23643typedef unsigned __int64 uint64_t;
23644#endif
23645
23646#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
23647
23648#if !defined _NO_LONGLONG
23649#ifndef _HAVE_UINT64_T
23650#define _HAVE_UINT64_T
23651typedef long long int64_t;
23652typedef unsigned long long uint64_t;
23653#endif
23654#endif
23655
23656#elif defined __alpha || (defined __mips && defined _ABIN32)
23657
23658#if !defined _NO_LONGLONG
23659#ifndef _HAVE_UINT64_T
23660#define _HAVE_UINT64_T
23661typedef long int64_t;
23662typedef unsigned long uint64_t;
23663#endif
23664#endif
23665 /* compiler/cpu type ... or just ISO C99 */
23666#endif
23667#endif
23668EOF
23669
23670# plus a default 64-bit for systems that are likely to be 64-bit ready
23671 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp:$ac_cv_sizeof_long" in
23672 1:2:8:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23673$as_echo "..adding uint64_t default" >&6; }
23674cat >>$ac_stdint_h <<EOF
23675/* DEFAULT: */
23676/* seen normal 64-bit system, CC has sizeof(long and void*) == 8 bytes */
23677#ifndef _HAVE_UINT64_T
23678#define _HAVE_UINT64_T
23679typedef long int64_t;
23680typedef unsigned long uint64_t;
23681#endif
23682EOF
23683;;
23684 1:2:4:8) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23685$as_echo "..adding uint64_t default" >&6; }
23686cat >>$ac_stdint_h <<EOF
23687/* DEFAULT: */
23688/* seen 32-bit system prepared for 64-bit, CC has sizeof(long) == 8 bytes */
23689#ifndef _HAVE_UINT64_T
23690#define _HAVE_UINT64_T
23691typedef long int64_t;
23692typedef unsigned long uint64_t;
23693#endif
23694EOF
23695;;
23696 1:2:8:4) { $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding uint64_t default" >&5
23697$as_echo "..adding uint64_t default" >&6; }
23698cat >>$ac_stdint_h <<EOF
23699/* DEFAULT: */
23700/* seen 64-bit derived from a 32-bit, CC has sizeof(long) == 4 bytes */
23701#ifndef _HAVE_UINT64_T
23702#define _HAVE_UINT64_T
23703typedef long long int64_t;
23704typedef unsigned long long uint64_t;
23705#endif
23706EOF
23707;;
23708 *)
23709cat >>$ac_stdint_h <<EOF
23710/* NOTE: */
23711/* the configure-checks for the basic types did not make us believe */
23712/* that we could add a fallback to a 'long long' typedef to int64_t */
23713EOF
23714 esac
23715fi
23716
23717# ------------- DONE int64_t types START intptr types ------------
23718if test "$ac_cv_header_stdint_x" = "no-file" ; then
23719 cat >>$ac_stdint_h <<EOF
23720
23721/* -------------------------- INPTR SECTION --------------------------- */
23722EOF
23723 case "$ac_cv_sizeof_x:$ac_cv_sizeof_voidp" in
23724 1:2:2)
23725 a="int16_t" ; cat >>$ac_stdint_h <<EOF
23726/* we tested sizeof(void*) to be of 2 chars, hence we declare it 16-bit */
23727
23728typedef uint16_t uintptr_t;
23729typedef int16_t intptr_t;
23730EOF
23731;;
23732 1:2:4)
23733 a="int32_t" ; cat >>$ac_stdint_h <<EOF
23734/* we tested sizeof(void*) to be of 4 chars, hence we declare it 32-bit */
23735
23736typedef uint32_t uintptr_t;
23737typedef int32_t intptr_t;
23738EOF
23739;;
23740 1:2:8)
23741 a="int64_t" ; cat >>$ac_stdint_h <<EOF
23742/* we tested sizeof(void*) to be of 8 chars, hence we declare it 64-bit */
23743
23744typedef uint64_t uintptr_t;
23745typedef int64_t intptr_t;
23746EOF
23747;;
23748 *)
23749 a="long" ; cat >>$ac_stdint_h <<EOF
23750/* we tested sizeof(void*) but got no guess, hence we declare it as if long */
23751
23752typedef unsigned long uintptr_t;
23753typedef long intptr_t;
23754EOF
23755;;
23756 esac
23757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding typedef $a intptr_t" >&5
23758$as_echo "..adding typedef $a intptr_t" >&6; }
23759fi
23760
23761# ------------- DONE intptr types START int_least types ------------
23762if test "$ac_cv_type_int_least32_t" = "no"; then
23763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_least-types" >&5
23764$as_echo "..adding generic int_least-types" >&6; }
23765 cat >>$ac_stdint_h <<EOF
23766
23767/* --------------GENERIC INT_LEAST ------------------ */
23768
23769typedef int8_t int_least8_t;
23770typedef int16_t int_least16_t;
23771typedef int32_t int_least32_t;
23772#ifdef _HAVE_INT64_T
23773typedef int64_t int_least64_t;
23774#endif
23775
23776typedef uint8_t uint_least8_t;
23777typedef uint16_t uint_least16_t;
23778typedef uint32_t uint_least32_t;
23779#ifdef _HAVE_INT64_T
23780typedef uint64_t uint_least64_t;
23781#endif
23782EOF
23783fi
23784
23785# ------------- DONE intptr types START int_least types ------------
23786if test "$ac_cv_type_int_fast32_t" = "no"; then
23787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ..adding generic int_fast-types" >&5
23788$as_echo "..adding generic int_fast-types" >&6; }
23789 cat >>$ac_stdint_h <<EOF
23790
23791/* --------------GENERIC INT_FAST ------------------ */
23792
23793typedef int8_t int_fast8_t;
23794typedef int32_t int_fast16_t;
23795typedef int32_t int_fast32_t;
23796#ifdef _HAVE_INT64_T
23797typedef int64_t int_fast64_t;
23798#endif
23799
23800typedef uint8_t uint_fast8_t;
23801typedef uint32_t uint_fast16_t;
23802typedef uint32_t uint_fast32_t;
23803#ifdef _HAVE_INT64_T
23804typedef uint64_t uint_fast64_t;
23805#endif
23806EOF
23807fi
23808
23809if test "$ac_cv_header_stdint_x" = "no-file" ; then
23810 cat >>$ac_stdint_h <<EOF
23811
23812#ifdef _HAVE_INT64_T
23813typedef int64_t intmax_t;
23814typedef uint64_t uintmax_t;
23815#else
23816typedef long int intmax_t;
23817typedef unsigned long uintmax_t;
23818#endif
23819EOF
23820fi
23821
23822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ... DONE $ac_stdint_h" >&5
23823$as_echo "... DONE $ac_stdint_h" >&6; }
23824 cat >>$ac_stdint_h <<EOF
23825
23826 /* once */
23827#endif
23828#endif
23829EOF
23830
23831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for in_addr_t" >&5
23832$as_echo_n "checking for in_addr_t... " >&6; }
23833if ${vnc_cv_inaddrt+:} false; then :
23834 $as_echo_n "(cached) " >&6
23835else
23836
23837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23838/* end confdefs.h. */
23839#include <sys/types.h>
23840#include <netinet/in.h>
23841int
23842main ()
23843{
23844in_addr_t foo; return 0;
23845 ;
23846 return 0;
23847}
23848_ACEOF
23849if ac_fn_c_try_compile "$LINENO"; then :
23850 inaddrt=yes
23851else
23852 inaddrt=no
23853fi
23854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext,
23855
23856fi
23857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vnc_cv_inaddrt" >&5
23858$as_echo "$vnc_cv_inaddrt" >&6; }
23859
23860if test $inaddrt = no ; then
23861 $as_echo "@%:@define NEED_INADDR_T 1" >>confdefs.h
23862
23863fi
23864# Checks for library functions.
23865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
23866$as_echo_n "checking for working memcmp... " >&6; }
23867if ${ac_cv_func_memcmp_working+:} false; then :
23868 $as_echo_n "(cached) " >&6
23869else
23870 if test "$cross_compiling" = yes; then :
23871 ac_cv_func_memcmp_working=no
23872else
23873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23874/* end confdefs.h. */
23875$ac_includes_default
23876int
23877main ()
23878{
23879
23880 /* Some versions of memcmp are not 8-bit clean. */
23881 char c0 = '\100', c1 = '\200', c2 = '\201';
23882 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
23883 return 1;
23884
23885 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
23886 or more and with at least one buffer not starting on a 4-byte boundary.
23887 William Lewis provided this test program. */
23888 {
23889 char foo[21];
23890 char bar[21];
23891 int i;
23892 for (i = 0; i < 4; i++)
23893 {
23894 char *a = foo + i;
23895 char *b = bar + i;
23896 strcpy (a, "--------01111111");
23897 strcpy (b, "--------10000000");
23898 if (memcmp (a, b, 16) >= 0)
23899 return 1;
23900 }
23901 return 0;
23902 }
23903
23904 ;
23905 return 0;
23906}
23907_ACEOF
23908if ac_fn_c_try_run "$LINENO"; then :
23909 ac_cv_func_memcmp_working=yes
23910else
23911 ac_cv_func_memcmp_working=no
23912fi
23913rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23914 conftest.$ac_objext conftest.beam conftest.$ac_ext
23915fi
23916
23917fi
23918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
23919$as_echo "$ac_cv_func_memcmp_working" >&6; }
23920test $ac_cv_func_memcmp_working = no && case " $LIB@&t@OBJS " in
23921 *" memcmp.$ac_objext "* ) ;;
23922 *) LIB@&t@OBJS="$LIB@&t@OBJS memcmp.$ac_objext"
23923 ;;
23924esac
23925
23926
23927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether lstat correctly handles trailing slash" >&5
23928$as_echo_n "checking whether lstat correctly handles trailing slash... " >&6; }
23929if ${ac_cv_func_lstat_dereferences_slashed_symlink+:} false; then :
23930 $as_echo_n "(cached) " >&6
23931else
23932 rm -f conftest.sym conftest.file
23933echo >conftest.file
23934if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then
23935 if test "$cross_compiling" = yes; then :
23936 ac_cv_func_lstat_dereferences_slashed_symlink=no
23937else
23938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23939/* end confdefs.h. */
23940$ac_includes_default
23941int
23942main ()
23943{
23944struct stat sbuf;
23945 /* Linux will dereference the symlink and fail, as required by POSIX.
23946 That is better in the sense that it means we will not
23947 have to compile and use the lstat wrapper. */
23948 return lstat ("conftest.sym/", &sbuf) == 0;
23949 ;
23950 return 0;
23951}
23952_ACEOF
23953if ac_fn_c_try_run "$LINENO"; then :
23954 ac_cv_func_lstat_dereferences_slashed_symlink=yes
23955else
23956 ac_cv_func_lstat_dereferences_slashed_symlink=no
23957fi
23958rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23959 conftest.$ac_objext conftest.beam conftest.$ac_ext
23960fi
23961
23962else
23963 # If the `ln -s' command failed, then we probably don't even
23964 # have an lstat function.
23965 ac_cv_func_lstat_dereferences_slashed_symlink=no
23966fi
23967rm -f conftest.sym conftest.file
23968
23969fi
23970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5
23971$as_echo "$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; }
23972
23973test $ac_cv_func_lstat_dereferences_slashed_symlink = yes &&
23974
23975cat >>confdefs.h <<_ACEOF
23976@%:@define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
23977_ACEOF
23978
23979
23980if test "x$ac_cv_func_lstat_dereferences_slashed_symlink" = xno; then
23981 case " $LIB@&t@OBJS " in
23982 *" lstat.$ac_objext "* ) ;;
23983 *) LIB@&t@OBJS="$LIB@&t@OBJS lstat.$ac_objext"
23984 ;;
23985esac
23986
23987fi
23988
23989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat accepts an empty string" >&5
23990$as_echo_n "checking whether stat accepts an empty string... " >&6; }
23991if ${ac_cv_func_stat_empty_string_bug+:} false; then :
23992 $as_echo_n "(cached) " >&6
23993else
23994 if test "$cross_compiling" = yes; then :
23995 ac_cv_func_stat_empty_string_bug=yes
23996else
23997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23998/* end confdefs.h. */
23999$ac_includes_default
24000int
24001main ()
24002{
24003struct stat sbuf;
24004 return stat ("", &sbuf) == 0;
24005 ;
24006 return 0;
24007}
24008_ACEOF
24009if ac_fn_c_try_run "$LINENO"; then :
24010 ac_cv_func_stat_empty_string_bug=no
24011else
24012 ac_cv_func_stat_empty_string_bug=yes
24013fi
24014rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24015 conftest.$ac_objext conftest.beam conftest.$ac_ext
24016fi
24017
24018fi
24019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_stat_empty_string_bug" >&5
24020$as_echo "$ac_cv_func_stat_empty_string_bug" >&6; }
24021if test $ac_cv_func_stat_empty_string_bug = yes; then
24022 case " $LIB@&t@OBJS " in
24023 *" stat.$ac_objext "* ) ;;
24024 *) LIB@&t@OBJS="$LIB@&t@OBJS stat.$ac_objext"
24025 ;;
24026esac
24027
24028
24029cat >>confdefs.h <<_ACEOF
24030@%:@define HAVE_STAT_EMPTY_STRING_BUG 1
24031_ACEOF
24032
24033fi
24034
24035for ac_func in strftime
24036do :
24037 ac_fn_c_check_func "$LINENO" "strftime" "ac_cv_func_strftime"
24038if test "x$ac_cv_func_strftime" = xyes; then :
24039 cat >>confdefs.h <<_ACEOF
24040@%:@define HAVE_STRFTIME 1
24041_ACEOF
24042
24043else
24044 # strftime is in -lintl on SCO UNIX.
24045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5
24046$as_echo_n "checking for strftime in -lintl... " >&6; }
24047if ${ac_cv_lib_intl_strftime+:} false; then :
24048 $as_echo_n "(cached) " >&6
24049else
24050 ac_check_lib_save_LIBS=$LIBS
24051LIBS="-lintl $LIBS"
24052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24053/* end confdefs.h. */
24054
24055/* Override any GCC internal prototype to avoid an error.
24056 Use char because int might match the return type of a GCC
24057 builtin and then its argument prototype would still apply. */
24058#ifdef __cplusplus
24059extern "C"
24060#endif
24061char strftime ();
24062int
24063main ()
24064{
24065return strftime ();
24066 ;
24067 return 0;
24068}
24069_ACEOF
24070if ac_fn_c_try_link "$LINENO"; then :
24071 ac_cv_lib_intl_strftime=yes
24072else
24073 ac_cv_lib_intl_strftime=no
24074fi
24075rm -f core conftest.err conftest.$ac_objext \
24076 conftest$ac_exeext conftest.$ac_ext
24077LIBS=$ac_check_lib_save_LIBS
24078fi
24079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5
24080$as_echo "$ac_cv_lib_intl_strftime" >&6; }
24081if test "x$ac_cv_lib_intl_strftime" = xyes; then :
24082 $as_echo "@%:@define HAVE_STRFTIME 1" >>confdefs.h
24083
24084LIBS="-lintl $LIBS"
24085fi
24086
24087fi
24088done
24089
24090for ac_func in vprintf
24091do :
24092 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
24093if test "x$ac_cv_func_vprintf" = xyes; then :
24094 cat >>confdefs.h <<_ACEOF
24095@%:@define HAVE_VPRINTF 1
24096_ACEOF
24097
24098ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
24099if test "x$ac_cv_func__doprnt" = xyes; then :
24100
24101$as_echo "@%:@define HAVE_DOPRNT 1" >>confdefs.h
24102
24103fi
24104
24105fi
24106done
24107
24108
24109ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
24110if test "x$ac_cv_type_pid_t" = xyes; then :
24111
24112else
24113
24114cat >>confdefs.h <<_ACEOF
24115@%:@define pid_t int
24116_ACEOF
24117
24118fi
24119
24120for ac_header in vfork.h
24121do :
24122 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
24123if test "x$ac_cv_header_vfork_h" = xyes; then :
24124 cat >>confdefs.h <<_ACEOF
24125@%:@define HAVE_VFORK_H 1
24126_ACEOF
24127
24128fi
24129
24130done
24131
24132for ac_func in fork vfork
24133do :
24134 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24135ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24136if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24137 cat >>confdefs.h <<_ACEOF
24138@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24139_ACEOF
24140
24141fi
24142done
24143
24144if test "x$ac_cv_func_fork" = xyes; then
24145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
24146$as_echo_n "checking for working fork... " >&6; }
24147if ${ac_cv_func_fork_works+:} false; then :
24148 $as_echo_n "(cached) " >&6
24149else
24150 if test "$cross_compiling" = yes; then :
24151 ac_cv_func_fork_works=cross
24152else
24153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24154/* end confdefs.h. */
24155$ac_includes_default
24156int
24157main ()
24158{
24159
24160 /* By Ruediger Kuhlmann. */
24161 return fork () < 0;
24162
24163 ;
24164 return 0;
24165}
24166_ACEOF
24167if ac_fn_c_try_run "$LINENO"; then :
24168 ac_cv_func_fork_works=yes
24169else
24170 ac_cv_func_fork_works=no
24171fi
24172rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24173 conftest.$ac_objext conftest.beam conftest.$ac_ext
24174fi
24175
24176fi
24177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
24178$as_echo "$ac_cv_func_fork_works" >&6; }
24179
24180else
24181 ac_cv_func_fork_works=$ac_cv_func_fork
24182fi
24183if test "x$ac_cv_func_fork_works" = xcross; then
24184 case $host in
24185 *-*-amigaos* | *-*-msdosdjgpp*)
24186 # Override, as these systems have only a dummy fork() stub
24187 ac_cv_func_fork_works=no
24188 ;;
24189 *)
24190 ac_cv_func_fork_works=yes
24191 ;;
24192 esac
24193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
24194$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24195fi
24196ac_cv_func_vfork_works=$ac_cv_func_vfork
24197if test "x$ac_cv_func_vfork" = xyes; then
24198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
24199$as_echo_n "checking for working vfork... " >&6; }
24200if ${ac_cv_func_vfork_works+:} false; then :
24201 $as_echo_n "(cached) " >&6
24202else
24203 if test "$cross_compiling" = yes; then :
24204 ac_cv_func_vfork_works=cross
24205else
24206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24207/* end confdefs.h. */
24208/* Thanks to Paul Eggert for this test. */
24209$ac_includes_default
24210#include <sys/wait.h>
24211#ifdef HAVE_VFORK_H
24212# include <vfork.h>
24213#endif
24214/* On some sparc systems, changes by the child to local and incoming
24215 argument registers are propagated back to the parent. The compiler
24216 is told about this with #include <vfork.h>, but some compilers
24217 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24218 static variable whose address is put into a register that is
24219 clobbered by the vfork. */
24220static void
24221#ifdef __cplusplus
24222sparc_address_test (int arg)
24223# else
24224sparc_address_test (arg) int arg;
24225#endif
24226{
24227 static pid_t child;
24228 if (!child) {
24229 child = vfork ();
24230 if (child < 0) {
24231 perror ("vfork");
24232 _exit(2);
24233 }
24234 if (!child) {
24235 arg = getpid();
24236 write(-1, "", 0);
24237 _exit (arg);
24238 }
24239 }
24240}
24241
24242int
24243main ()
24244{
24245 pid_t parent = getpid ();
24246 pid_t child;
24247
24248 sparc_address_test (0);
24249
24250 child = vfork ();
24251
24252 if (child == 0) {
24253 /* Here is another test for sparc vfork register problems. This
24254 test uses lots of local variables, at least as many local
24255 variables as main has allocated so far including compiler
24256 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24257 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24258 reuse the register of parent for one of the local variables,
24259 since it will think that parent can't possibly be used any more
24260 in this routine. Assigning to the local variable will thus
24261 munge parent in the parent process. */
24262 pid_t
24263 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24264 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24265 /* Convince the compiler that p..p7 are live; otherwise, it might
24266 use the same hardware register for all 8 local variables. */
24267 if (p != p1 || p != p2 || p != p3 || p != p4
24268 || p != p5 || p != p6 || p != p7)
24269 _exit(1);
24270
24271 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24272 from child file descriptors. If the child closes a descriptor
24273 before it execs or exits, this munges the parent's descriptor
24274 as well. Test for this by closing stdout in the child. */
24275 _exit(close(fileno(stdout)) != 0);
24276 } else {
24277 int status;
24278 struct stat st;
24279
24280 while (wait(&status) != child)
24281 ;
24282 return (
24283 /* Was there some problem with vforking? */
24284 child < 0
24285
24286 /* Did the child fail? (This shouldn't happen.) */
24287 || status
24288
24289 /* Did the vfork/compiler bug occur? */
24290 || parent != getpid()
24291
24292 /* Did the file descriptor bug occur? */
24293 || fstat(fileno(stdout), &st) != 0
24294 );
24295 }
24296}
24297_ACEOF
24298if ac_fn_c_try_run "$LINENO"; then :
24299 ac_cv_func_vfork_works=yes
24300else
24301 ac_cv_func_vfork_works=no
24302fi
24303rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24304 conftest.$ac_objext conftest.beam conftest.$ac_ext
24305fi
24306
24307fi
24308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
24309$as_echo "$ac_cv_func_vfork_works" >&6; }
24310
24311fi;
24312if test "x$ac_cv_func_fork_works" = xcross; then
24313 ac_cv_func_vfork_works=$ac_cv_func_vfork
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
24315$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24316fi
24317
24318if test "x$ac_cv_func_vfork_works" = xyes; then
24319
24320$as_echo "@%:@define HAVE_WORKING_VFORK 1" >>confdefs.h
24321
24322else
24323
24324$as_echo "@%:@define vfork fork" >>confdefs.h
24325
24326fi
24327if test "x$ac_cv_func_fork_works" = xyes; then
24328
24329$as_echo "@%:@define HAVE_WORKING_FORK 1" >>confdefs.h
24330
24331fi
24332
24333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
24334$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
24335if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
24336 $as_echo_n "(cached) " >&6
24337else
24338 ac_check_lib_save_LIBS=$LIBS
24339LIBS="-lnsl $LIBS"
24340cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24341/* end confdefs.h. */
24342
24343/* Override any GCC internal prototype to avoid an error.
24344 Use char because int might match the return type of a GCC
24345 builtin and then its argument prototype would still apply. */
24346#ifdef __cplusplus
24347extern "C"
24348#endif
24349char gethostbyname ();
24350int
24351main ()
24352{
24353return gethostbyname ();
24354 ;
24355 return 0;
24356}
24357_ACEOF
24358if ac_fn_c_try_link "$LINENO"; then :
24359 ac_cv_lib_nsl_gethostbyname=yes
24360else
24361 ac_cv_lib_nsl_gethostbyname=no
24362fi
24363rm -f core conftest.err conftest.$ac_objext \
24364 conftest$ac_exeext conftest.$ac_ext
24365LIBS=$ac_check_lib_save_LIBS
24366fi
24367{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
24368$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
24369if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
24370 cat >>confdefs.h <<_ACEOF
24371@%:@define HAVE_LIBNSL 1
24372_ACEOF
24373
24374 LIBS="-lnsl $LIBS"
24375
24376fi
24377
24378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
24379$as_echo_n "checking for socket in -lsocket... " >&6; }
24380if ${ac_cv_lib_socket_socket+:} false; then :
24381 $as_echo_n "(cached) " >&6
24382else
24383 ac_check_lib_save_LIBS=$LIBS
24384LIBS="-lsocket $LIBS"
24385cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24386/* end confdefs.h. */
24387
24388/* Override any GCC internal prototype to avoid an error.
24389 Use char because int might match the return type of a GCC
24390 builtin and then its argument prototype would still apply. */
24391#ifdef __cplusplus
24392extern "C"
24393#endif
24394char socket ();
24395int
24396main ()
24397{
24398return socket ();
24399 ;
24400 return 0;
24401}
24402_ACEOF
24403if ac_fn_c_try_link "$LINENO"; then :
24404 ac_cv_lib_socket_socket=yes
24405else
24406 ac_cv_lib_socket_socket=no
24407fi
24408rm -f core conftest.err conftest.$ac_objext \
24409 conftest$ac_exeext conftest.$ac_ext
24410LIBS=$ac_check_lib_save_LIBS
24411fi
24412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
24413$as_echo "$ac_cv_lib_socket_socket" >&6; }
24414if test "x$ac_cv_lib_socket_socket" = xyes; then :
24415 cat >>confdefs.h <<_ACEOF
24416@%:@define HAVE_LIBSOCKET 1
24417_ACEOF
24418
24419 LIBS="-lsocket $LIBS"
24420
24421fi
24422
24423
24424uname_s=`(uname -s) 2>/dev/null`
24425if test "x$uname_s" = "xHP-UX"; then
24426 # need -lsec for getspnam()
24427 LDFLAGS="$LDFLAGS -lsec"
24428fi
24429
24430for ac_func in ftime gethostbyname gethostname gettimeofday inet_ntoa memmove memset mmap mkfifo select socket strchr strcspn strdup strerror strstr
24431do :
24432 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24433ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24434if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24435 cat >>confdefs.h <<_ACEOF
24436@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24437_ACEOF
24438
24439fi
24440done
24441
24442# x11vnc only:
24443if test "$build_x11vnc" = "yes"; then
24444 for ac_func in setsid setpgrp getpwuid getpwnam getspnam getuid geteuid setuid setgid seteuid setegid initgroups waitpid setutxent grantpt shmat
24445do :
24446 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24447ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24448if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
24449 cat >>confdefs.h <<_ACEOF
24450@%:@define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24451_ACEOF
24452
24453fi
24454done
24455
24456fi
24457
24458# check, if shmget is in cygipc.a
24459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmget in -lcygipc" >&5
24460$as_echo_n "checking for shmget in -lcygipc... " >&6; }
24461if ${ac_cv_lib_cygipc_shmget+:} false; then :
24462 $as_echo_n "(cached) " >&6
24463else
24464 ac_check_lib_save_LIBS=$LIBS
24465LIBS="-lcygipc $LIBS"
24466cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467/* end confdefs.h. */
24468
24469/* Override any GCC internal prototype to avoid an error.
24470 Use char because int might match the return type of a GCC
24471 builtin and then its argument prototype would still apply. */
24472#ifdef __cplusplus
24473extern "C"
24474#endif
24475char shmget ();
24476int
24477main ()
24478{
24479return shmget ();
24480 ;
24481 return 0;
24482}
24483_ACEOF
24484if ac_fn_c_try_link "$LINENO"; then :
24485 ac_cv_lib_cygipc_shmget=yes
24486else
24487 ac_cv_lib_cygipc_shmget=no
24488fi
24489rm -f core conftest.err conftest.$ac_objext \
24490 conftest$ac_exeext conftest.$ac_ext
24491LIBS=$ac_check_lib_save_LIBS
24492fi
24493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cygipc_shmget" >&5
24494$as_echo "$ac_cv_lib_cygipc_shmget" >&6; }
24495if test "x$ac_cv_lib_cygipc_shmget" = xyes; then :
24496 cat >>confdefs.h <<_ACEOF
24497@%:@define HAVE_LIBCYGIPC 1
24498_ACEOF
24499
24500 LIBS="-lcygipc $LIBS"
24501
24502fi
24503
24504 if test "$HAVE_CYGIPC" = "true"; then
24505 CYGIPC_TRUE=
24506 CYGIPC_FALSE='#'
24507else
24508 CYGIPC_TRUE='#'
24509 CYGIPC_FALSE=
24510fi
24511
24512
24513# Check if /usr/include/linux exists, if so, define LINUX
24514 if test -d /usr/include/linux; then
24515 LINUX_TRUE=
24516 LINUX_FALSE='#'
24517else
24518 LINUX_TRUE='#'
24519 LINUX_FALSE=
24520fi
24521
24522
24523# Check for OS X specific header
24524ac_fn_c_check_header_mongrel "$LINENO" "ApplicationServices/ApplicationServices.h" "ac_cv_header_ApplicationServices_ApplicationServices_h" "$ac_includes_default"
24525if test "x$ac_cv_header_ApplicationServices_ApplicationServices_h" = xyes; then :
24526 HAVE_OSX="true"
24527fi
24528
24529
24530 if test "$HAVE_OSX" = "true"; then
24531 OSX_TRUE=
24532 OSX_FALSE='#'
24533else
24534 OSX_TRUE='#'
24535 OSX_FALSE=
24536fi
24537
24538
24539# Check for Android specific header
24540ac_fn_c_check_header_mongrel "$LINENO" "android/api-level.h" "ac_cv_header_android_api_level_h" "$ac_includes_default"
24541if test "x$ac_cv_header_android_api_level_h" = xyes; then :
24542 HAVE_ANDROID="true"
24543fi
24544
24545
24546 if test "$HAVE_ANDROID" = "true"; then
24547 ANDROID_TRUE=
24548 ANDROID_FALSE='#'
24549else
24550 ANDROID_TRUE='#'
24551 ANDROID_FALSE=
24552fi
24553
24554if test "$HAVE_ANDROID" = "true"; then
24555
24556$as_echo "@%:@define HAVE_ANDROID 1" >>confdefs.h
24557
24558fi
24559
24560# On Solaris 2.7, write() returns ENOENT when it really means EAGAIN
24561
24562case `(uname -sr) 2>/dev/null` in
24563 "SunOS 5.7")
24564 $as_echo "@%:@define ENOENT_WORKAROUND 1" >>confdefs.h
24565
24566 ;;
24567esac
24568
24569# Check for rpm SOURCES path
24570printf "checking for rpm sources path... "
24571RPMSOURCEDIR="NOT-FOUND"
24572for directory in packages OpenLinux redhat RedHat rpm RPM "" ; do
24573 if test -d /usr/src/${directory}/SOURCES; then
24574 RPMSOURCEDIR="/usr/src/${directory}/SOURCES/"
24575 fi
24576done
24577echo "$RPMSOURCEDIR"
24578 if test "$RPMSOURCEDIR" != "NOT-FOUND"; then
24579 HAVE_RPM_TRUE=
24580 HAVE_RPM_FALSE='#'
24581else
24582 HAVE_RPM_TRUE='#'
24583 HAVE_RPM_FALSE=
24584fi
24585
24586 if test "$build_x11vnc" = "yes"; then
24587 WITH_X11VNC_TRUE=
24588 WITH_X11VNC_FALSE='#'
24589else
24590 WITH_X11VNC_TRUE='#'
24591 WITH_X11VNC_FALSE=
24592fi
24593
24594
24595
24596ac_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"
24597
24598#
24599# x11vnc only:
24600#
24601if test "$build_x11vnc" = "yes"; then
24602 #
24603 # NOTE: if you are using the LibVNCServer-X.Y.Z.tar.gz source
24604 # tarball and nevertheless want to run autoconf (i.e. aclocal,
24605 # autoheader, automake, autoconf) AGAIN (perhaps you have a
24606 # special target system, e.g. embedded) then you will need to
24607 # comment out the following 'AC_CONFIG_FILES' line to avoid
24608 # automake error messages like:
24609 #
24610 # configure.ac:690: required file `x11vnc/Makefile.in' not found
24611 #
24612 ac_config_files="$ac_config_files x11vnc/Makefile x11vnc/misc/Makefile x11vnc/misc/turbovnc/Makefile"
24613
24614
24615 if test ! -z "$with_system_libvncserver" -a "x$with_system_libvncserver" != "xno"; then
24616 # need to move local tarball rfb headers aside:
24617 hdrs="rfb.h rfbclient.h rfbproto.h rfbregion.h rfbint.h"
24618 echo "with-system-libvncserver: moving aside headers $hdrs"
24619 for hdr in $hdrs
24620 do
24621 if test -f "rfb/$hdr"; then
24622 echo "with-system-libvncserver: moving rfb/$hdr to rfb/$hdr.ORIG"
24623 mv rfb/$hdr rfb/$hdr.ORIG
24624 fi
24625 done
24626 echo "with-system-libvncserver: *NOTE* move them back manually to start over."
24627 fi
24628fi
24629
24630ac_config_commands="$ac_config_commands chmod-libvncserver-config"
24631
24632cat >confcache <<\_ACEOF
24633# This file is a shell script that caches the results of configure
24634# tests run on this system so they can be shared between configure
24635# scripts and configure runs, see configure's option --config-cache.
24636# It is not useful on other systems. If it contains results you don't
24637# want to keep, you may remove or edit it.
24638#
24639# config.status only pays attention to the cache file if you give it
24640# the --recheck option to rerun configure.
24641#
24642# `ac_cv_env_foo' variables (set or unset) will be overridden when
24643# loading this file, other *unset* `ac_cv_foo' will be assigned the
24644# following values.
24645
24646_ACEOF
24647
24648# The following way of writing the cache mishandles newlines in values,
24649# but we know of no workaround that is simple, portable, and efficient.
24650# So, we kill variables containing newlines.
24651# Ultrix sh set writes to stderr and can't be redirected directly,
24652# and sets the high bit in the cache file unless we assign to the vars.
24653(
24654 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24655 eval ac_val=\$$ac_var
24656 case $ac_val in #(
24657 *${as_nl}*)
24658 case $ac_var in #(
24659 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24660$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24661 esac
24662 case $ac_var in #(
24663 _ | IFS | as_nl) ;; #(
24664 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24665 *) { eval $ac_var=; unset $ac_var;} ;;
24666 esac ;;
24667 esac
24668 done
24669
24670 (set) 2>&1 |
24671 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24672 *${as_nl}ac_space=\ *)
24673 # `set' does not quote correctly, so add quotes: double-quote
24674 # substitution turns \\\\ into \\, and sed turns \\ into \.
24675 sed -n \
24676 "s/'/'\\\\''/g;
24677 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24678 ;; #(
24679 *)
24680 # `set' quotes correctly as required by POSIX, so do not add quotes.
24681 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24682 ;;
24683 esac |
24684 sort
24685) |
24686 sed '
24687 /^ac_cv_env_/b end
24688 t clear
24689 :clear
24690 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24691 t end
24692 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24693 :end' >>confcache
24694if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24695 if test -w "$cache_file"; then
24696 if test "x$cache_file" != "x/dev/null"; then
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24698$as_echo "$as_me: updating cache $cache_file" >&6;}
24699 if test ! -f "$cache_file" || test -h "$cache_file"; then
24700 cat confcache >"$cache_file"
24701 else
24702 case $cache_file in #(
24703 */* | ?:*)
24704 mv -f confcache "$cache_file"$$ &&
24705 mv -f "$cache_file"$$ "$cache_file" ;; #(
24706 *)
24707 mv -f confcache "$cache_file" ;;
24708 esac
24709 fi
24710 fi
24711 else
24712 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24713$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24714 fi
24715fi
24716rm -f confcache
24717
24718test "x$prefix" = xNONE && prefix=$ac_default_prefix
24719# Let make expand exec_prefix.
24720test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24721
24722DEFS=-DHAVE_CONFIG_H
24723
24724ac_libobjs=
24725ac_ltlibobjs=
24726U=
24727for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
24728 # 1. Remove the extension, and $U if already installed.
24729 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24730 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24731 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24732 # will be set to the directory where LIBOBJS objects are built.
24733 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24734 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24735done
24736LIB@&t@OBJS=$ac_libobjs
24737
24738LTLIBOBJS=$ac_ltlibobjs
24739
24740
24741 if test -n "$EXEEXT"; then
24742 am__EXEEXT_TRUE=
24743 am__EXEEXT_FALSE='#'
24744else
24745 am__EXEEXT_TRUE='#'
24746 am__EXEEXT_FALSE=
24747fi
24748
24749if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24750 as_fn_error $? "conditional \"AMDEP\" was never defined.
24751Usually this means the macro was only invoked conditionally." "$LINENO" 5
24752fi
24753if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24754 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
24755Usually this means the macro was only invoked conditionally." "$LINENO" 5
24756fi
24757if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24758 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
24759Usually this means the macro was only invoked conditionally." "$LINENO" 5
24760fi
24761if test -z "${WITH_FFMPEG_TRUE}" && test -z "${WITH_FFMPEG_FALSE}"; then
24762 as_fn_error $? "conditional \"WITH_FFMPEG\" was never defined.
24763Usually this means the macro was only invoked conditionally." "$LINENO" 5
24764fi
24765if test -z "${HAVE_MP3LAME_TRUE}" && test -z "${HAVE_MP3LAME_FALSE}"; then
24766 as_fn_error $? "conditional \"HAVE_MP3LAME\" was never defined.
24767Usually this means the macro was only invoked conditionally." "$LINENO" 5
24768fi
24769if test -z "${HAVE_LIBSSL_TRUE}" && test -z "${HAVE_LIBSSL_FALSE}"; then
24770 as_fn_error $? "conditional \"HAVE_LIBSSL\" was never defined.
24771Usually this means the macro was only invoked conditionally." "$LINENO" 5
24772fi
24773if test -z "${HAVE_X11_TRUE}" && test -z "${HAVE_X11_FALSE}"; then
24774 as_fn_error $? "conditional \"HAVE_X11\" was never defined.
24775Usually this means the macro was only invoked conditionally." "$LINENO" 5
24776fi
24777if test -z "${OSX_OPENGL_TRUE}" && test -z "${OSX_OPENGL_FALSE}"; then
24778 as_fn_error $? "conditional \"OSX_OPENGL\" was never defined.
24779Usually this means the macro was only invoked conditionally." "$LINENO" 5
24780fi
24781if test -z "${HAVE_SYSTEM_LIBVNCSERVER_TRUE}" && test -z "${HAVE_SYSTEM_LIBVNCSERVER_FALSE}"; then
24782 as_fn_error $? "conditional \"HAVE_SYSTEM_LIBVNCSERVER\" was never defined.
24783Usually this means the macro was only invoked conditionally." "$LINENO" 5
24784fi
24785if test -z "${HAVE_LIBPTHREAD_TRUE}" && test -z "${HAVE_LIBPTHREAD_FALSE}"; then
24786 as_fn_error $? "conditional \"HAVE_LIBPTHREAD\" was never defined.
24787Usually this means the macro was only invoked conditionally." "$LINENO" 5
24788fi
24789if test -z "${WITH_TIGHTVNC_FILETRANSFER_TRUE}" && test -z "${WITH_TIGHTVNC_FILETRANSFER_FALSE}"; then
24790 as_fn_error $? "conditional \"WITH_TIGHTVNC_FILETRANSFER\" was never defined.
24791Usually this means the macro was only invoked conditionally." "$LINENO" 5
24792fi
24793if test -z "${WITH_WEBSOCKETS_TRUE}" && test -z "${WITH_WEBSOCKETS_FALSE}"; then
24794 as_fn_error $? "conditional \"WITH_WEBSOCKETS\" was never defined.
24795Usually this means the macro was only invoked conditionally." "$LINENO" 5
24796fi
24797if test -z "${HAVE_LIBZ_TRUE}" && test -z "${HAVE_LIBZ_FALSE}"; then
24798 as_fn_error $? "conditional \"HAVE_LIBZ\" was never defined.
24799Usually this means the macro was only invoked conditionally." "$LINENO" 5
24800fi
24801if test -z "${HAVE_LIBJPEG_TRUE}" && test -z "${HAVE_LIBJPEG_FALSE}"; then
24802 as_fn_error $? "conditional \"HAVE_LIBJPEG\" was never defined.
24803Usually this means the macro was only invoked conditionally." "$LINENO" 5
24804fi
24805if test -z "${HAVE_LIBPNG_TRUE}" && test -z "${HAVE_LIBPNG_FALSE}"; then
24806 as_fn_error $? "conditional \"HAVE_LIBPNG\" was never defined.
24807Usually this means the macro was only invoked conditionally." "$LINENO" 5
24808fi
24809if test -z "${HAVE_LIBSDL_TRUE}" && test -z "${HAVE_LIBSDL_FALSE}"; then
24810 as_fn_error $? "conditional \"HAVE_LIBSDL\" was never defined.
24811Usually this means the macro was only invoked conditionally." "$LINENO" 5
24812fi
24813if test -z "${HAVE_LIBGTK_TRUE}" && test -z "${HAVE_LIBGTK_FALSE}"; then
24814 as_fn_error $? "conditional \"HAVE_LIBGTK\" was never defined.
24815Usually this means the macro was only invoked conditionally." "$LINENO" 5
24816fi
24817if test -z "${MINGW_TRUE}" && test -z "${MINGW_FALSE}"; then
24818 as_fn_error $? "conditional \"MINGW\" was never defined.
24819Usually this means the macro was only invoked conditionally." "$LINENO" 5
24820fi
24821if test -z "${HAVE_GNUTLS_TRUE}" && test -z "${HAVE_GNUTLS_FALSE}"; then
24822 as_fn_error $? "conditional \"HAVE_GNUTLS\" was never defined.
24823Usually this means the macro was only invoked conditionally." "$LINENO" 5
24824fi
24825
24826if test -z "${CYGIPC_TRUE}" && test -z "${CYGIPC_FALSE}"; then
24827 as_fn_error $? "conditional \"CYGIPC\" was never defined.
24828Usually this means the macro was only invoked conditionally." "$LINENO" 5
24829fi
24830if test -z "${LINUX_TRUE}" && test -z "${LINUX_FALSE}"; then
24831 as_fn_error $? "conditional \"LINUX\" was never defined.
24832Usually this means the macro was only invoked conditionally." "$LINENO" 5
24833fi
24834if test -z "${OSX_TRUE}" && test -z "${OSX_FALSE}"; then
24835 as_fn_error $? "conditional \"OSX\" was never defined.
24836Usually this means the macro was only invoked conditionally." "$LINENO" 5
24837fi
24838if test -z "${ANDROID_TRUE}" && test -z "${ANDROID_FALSE}"; then
24839 as_fn_error $? "conditional \"ANDROID\" was never defined.
24840Usually this means the macro was only invoked conditionally." "$LINENO" 5
24841fi
24842if test -z "${HAVE_RPM_TRUE}" && test -z "${HAVE_RPM_FALSE}"; then
24843 as_fn_error $? "conditional \"HAVE_RPM\" was never defined.
24844Usually this means the macro was only invoked conditionally." "$LINENO" 5
24845fi
24846if test -z "${WITH_X11VNC_TRUE}" && test -z "${WITH_X11VNC_FALSE}"; then
24847 as_fn_error $? "conditional \"WITH_X11VNC\" was never defined.
24848Usually this means the macro was only invoked conditionally." "$LINENO" 5
24849fi
24850
24851: "${CONFIG_STATUS=./config.status}"
24852ac_write_fail=0
24853ac_clean_files_save=$ac_clean_files
24854ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24855{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24856$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24857as_write_fail=0
24858cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24859#! $SHELL
24860# Generated by $as_me.
24861# Run this file to recreate the current configuration.
24862# Compiler output produced by configure, useful for debugging
24863# configure, is in config.log if it exists.
24864
24865debug=false
24866ac_cs_recheck=false
24867ac_cs_silent=false
24868
24869SHELL=\${CONFIG_SHELL-$SHELL}
24870export SHELL
24871_ASEOF
24872cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24873## -------------------- ##
24874## M4sh Initialization. ##
24875## -------------------- ##
24876
24877# Be more Bourne compatible
24878DUALCASE=1; export DUALCASE # for MKS sh
24879if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24880 emulate sh
24881 NULLCMD=:
24882 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24883 # is contrary to our usage. Disable this feature.
24884 alias -g '${1+"$@"}'='"$@"'
24885 setopt NO_GLOB_SUBST
24886else
24887 case `(set -o) 2>/dev/null` in @%:@(
24888 *posix*) :
24889 set -o posix ;; @%:@(
24890 *) :
24891 ;;
24892esac
24893fi
24894
24895
24896as_nl='
24897'
24898export as_nl
24899# Printing a long string crashes Solaris 7 /usr/bin/printf.
24900as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24901as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24902as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24903# Prefer a ksh shell builtin over an external printf program on Solaris,
24904# but without wasting forks for bash or zsh.
24905if test -z "$BASH_VERSION$ZSH_VERSION" \
24906 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24907 as_echo='print -r --'
24908 as_echo_n='print -rn --'
24909elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24910 as_echo='printf %s\n'
24911 as_echo_n='printf %s'
24912else
24913 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24914 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24915 as_echo_n='/usr/ucb/echo -n'
24916 else
24917 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24918 as_echo_n_body='eval
24919 arg=$1;
24920 case $arg in @%:@(
24921 *"$as_nl"*)
24922 expr "X$arg" : "X\\(.*\\)$as_nl";
24923 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24924 esac;
24925 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24926 '
24927 export as_echo_n_body
24928 as_echo_n='sh -c $as_echo_n_body as_echo'
24929 fi
24930 export as_echo_body
24931 as_echo='sh -c $as_echo_body as_echo'
24932fi
24933
24934# The user is always right.
24935if test "${PATH_SEPARATOR+set}" != set; then
24936 PATH_SEPARATOR=:
24937 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24938 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24939 PATH_SEPARATOR=';'
24940 }
24941fi
24942
24943
24944# IFS
24945# We need space, tab and new line, in precisely that order. Quoting is
24946# there to prevent editors from complaining about space-tab.
24947# (If _AS_PATH_WALK were called with IFS unset, it would disable word
24948# splitting by setting IFS to empty value.)
24949IFS=" "" $as_nl"
24950
24951# Find who we are. Look in the path if we contain no directory separator.
24952as_myself=
24953case $0 in @%:@((
24954 *[\\/]* ) as_myself=$0 ;;
24955 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24956for as_dir in $PATH
24957do
24958 IFS=$as_save_IFS
24959 test -z "$as_dir" && as_dir=.
24960 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24961 done
24962IFS=$as_save_IFS
24963
24964 ;;
24965esac
24966# We did not find ourselves, most probably we were run as `sh COMMAND'
24967# in which case we are not to be found in the path.
24968if test "x$as_myself" = x; then
24969 as_myself=$0
24970fi
24971if test ! -f "$as_myself"; then
24972 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24973 exit 1
24974fi
24975
24976# Unset variables that we do not need and which cause bugs (e.g. in
24977# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
24978# suppresses any "Segmentation fault" message there. '((' could
24979# trigger a bug in pdksh 5.2.14.
24980for as_var in BASH_ENV ENV MAIL MAILPATH
24981do eval test x\${$as_var+set} = xset \
24982 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24983done
24984PS1='$ '
24985PS2='> '
24986PS4='+ '
24987
24988# NLS nuisances.
24989LC_ALL=C
24990export LC_ALL
24991LANGUAGE=C
24992export LANGUAGE
24993
24994# CDPATH.
24995(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24996
24997
24998@%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
24999@%:@ ----------------------------------------
25000@%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
25001@%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
25002@%:@ script with STATUS, using 1 if that was 0.
25003as_fn_error ()
25004{
25005 as_status=$1; test $as_status -eq 0 && as_status=1
25006 if test "$4"; then
25007 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
25008 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
25009 fi
25010 $as_echo "$as_me: error: $2" >&2
25011 as_fn_exit $as_status
25012} @%:@ as_fn_error
25013
25014
25015@%:@ as_fn_set_status STATUS
25016@%:@ -----------------------
25017@%:@ Set @S|@? to STATUS, without forking.
25018as_fn_set_status ()
25019{
25020 return $1
25021} @%:@ as_fn_set_status
25022
25023@%:@ as_fn_exit STATUS
25024@%:@ -----------------
25025@%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
25026as_fn_exit ()
25027{
25028 set +e
25029 as_fn_set_status $1
25030 exit $1
25031} @%:@ as_fn_exit
25032
25033@%:@ as_fn_unset VAR
25034@%:@ ---------------
25035@%:@ Portably unset VAR.
25036as_fn_unset ()
25037{
25038 { eval $1=; unset $1;}
25039}
25040as_unset=as_fn_unset
25041@%:@ as_fn_append VAR VALUE
25042@%:@ ----------------------
25043@%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
25044@%:@ advantage of any shell optimizations that allow amortized linear growth over
25045@%:@ repeated appends, instead of the typical quadratic growth present in naive
25046@%:@ implementations.
25047if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25048 eval 'as_fn_append ()
25049 {
25050 eval $1+=\$2
25051 }'
25052else
25053 as_fn_append ()
25054 {
25055 eval $1=\$$1\$2
25056 }
25057fi # as_fn_append
25058
25059@%:@ as_fn_arith ARG...
25060@%:@ ------------------
25061@%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
25062@%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
25063@%:@ must be portable across @S|@(()) and expr.
25064if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25065 eval 'as_fn_arith ()
25066 {
25067 as_val=$(( $* ))
25068 }'
25069else
25070 as_fn_arith ()
25071 {
25072 as_val=`expr "$@" || test $? -eq 1`
25073 }
25074fi # as_fn_arith
25075
25076
25077if expr a : '\(a\)' >/dev/null 2>&1 &&
25078 test "X`expr 00001 : '.*\(...\)'`" = X001; then
25079 as_expr=expr
25080else
25081 as_expr=false
25082fi
25083
25084if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25085 as_basename=basename
25086else
25087 as_basename=false
25088fi
25089
25090if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25091 as_dirname=dirname
25092else
25093 as_dirname=false
25094fi
25095
25096as_me=`$as_basename -- "$0" ||
25097$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25098 X"$0" : 'X\(//\)$' \| \
25099 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25100$as_echo X/"$0" |
25101 sed '/^.*\/\([^/][^/]*\)\/*$/{
25102 s//\1/
25103 q
25104 }
25105 /^X\/\(\/\/\)$/{
25106 s//\1/
25107 q
25108 }
25109 /^X\/\(\/\).*/{
25110 s//\1/
25111 q
25112 }
25113 s/.*/./; q'`
25114
25115# Avoid depending upon Character Ranges.
25116as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25117as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25118as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25119as_cr_digits='0123456789'
25120as_cr_alnum=$as_cr_Letters$as_cr_digits
25121
25122ECHO_C= ECHO_N= ECHO_T=
25123case `echo -n x` in @%:@(((((
25124-n*)
25125 case `echo 'xy\c'` in
25126 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
25127 xy) ECHO_C='\c';;
25128 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
25129 ECHO_T=' ';;
25130 esac;;
25131*)
25132 ECHO_N='-n';;
25133esac
25134
25135rm -f conf$$ conf$$.exe conf$$.file
25136if test -d conf$$.dir; then
25137 rm -f conf$$.dir/conf$$.file
25138else
25139 rm -f conf$$.dir
25140 mkdir conf$$.dir 2>/dev/null
25141fi
25142if (echo >conf$$.file) 2>/dev/null; then
25143 if ln -s conf$$.file conf$$ 2>/dev/null; then
25144 as_ln_s='ln -s'
25145 # ... but there are two gotchas:
25146 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25147 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25148 # In both cases, we have to default to `cp -pR'.
25149 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25150 as_ln_s='cp -pR'
25151 elif ln conf$$.file conf$$ 2>/dev/null; then
25152 as_ln_s=ln
25153 else
25154 as_ln_s='cp -pR'
25155 fi
25156else
25157 as_ln_s='cp -pR'
25158fi
25159rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25160rmdir conf$$.dir 2>/dev/null
25161
25162
25163@%:@ as_fn_mkdir_p
25164@%:@ -------------
25165@%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
25166as_fn_mkdir_p ()
25167{
25168
25169 case $as_dir in #(
25170 -*) as_dir=./$as_dir;;
25171 esac
25172 test -d "$as_dir" || eval $as_mkdir_p || {
25173 as_dirs=
25174 while :; do
25175 case $as_dir in #(
25176 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25177 *) as_qdir=$as_dir;;
25178 esac
25179 as_dirs="'$as_qdir' $as_dirs"
25180 as_dir=`$as_dirname -- "$as_dir" ||
25181$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25182 X"$as_dir" : 'X\(//\)[^/]' \| \
25183 X"$as_dir" : 'X\(//\)$' \| \
25184 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25185$as_echo X"$as_dir" |
25186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25187 s//\1/
25188 q
25189 }
25190 /^X\(\/\/\)[^/].*/{
25191 s//\1/
25192 q
25193 }
25194 /^X\(\/\/\)$/{
25195 s//\1/
25196 q
25197 }
25198 /^X\(\/\).*/{
25199 s//\1/
25200 q
25201 }
25202 s/.*/./; q'`
25203 test -d "$as_dir" && break
25204 done
25205 test -z "$as_dirs" || eval "mkdir $as_dirs"
25206 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
25207
25208
25209} @%:@ as_fn_mkdir_p
25210if mkdir -p . 2>/dev/null; then
25211 as_mkdir_p='mkdir -p "$as_dir"'
25212else
25213 test -d ./-p && rmdir ./-p
25214 as_mkdir_p=false
25215fi
25216
25217
25218@%:@ as_fn_executable_p FILE
25219@%:@ -----------------------
25220@%:@ Test if FILE is an executable regular file.
25221as_fn_executable_p ()
25222{
25223 test -f "$1" && test -x "$1"
25224} @%:@ as_fn_executable_p
25225as_test_x='test -x'
25226as_executable_p=as_fn_executable_p
25227
25228# Sed expression to map a string onto a valid CPP name.
25229as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25230
25231# Sed expression to map a string onto a valid variable name.
25232as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25233
25234
25235exec 6>&1
25236## ----------------------------------- ##
25237## Main body of $CONFIG_STATUS script. ##
25238## ----------------------------------- ##
25239_ASEOF
25240test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25241
25242cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25243# Save the log message, to keep $0 and so on meaningful, and to
25244# report actual input values of CONFIG_FILES etc. instead of their
25245# values after options handling.
25246ac_log="
25247This file was extended by LibVNCServer $as_me 0.9.9, which was
25248generated by GNU Autoconf 2.69. Invocation command line was
25249
25250 CONFIG_FILES = $CONFIG_FILES
25251 CONFIG_HEADERS = $CONFIG_HEADERS
25252 CONFIG_LINKS = $CONFIG_LINKS
25253 CONFIG_COMMANDS = $CONFIG_COMMANDS
25254 $ $0 $@
25255
25256on `(hostname || uname -n) 2>/dev/null | sed 1q`
25257"
25258
25259_ACEOF
25260
25261case $ac_config_files in *"
25262"*) set x $ac_config_files; shift; ac_config_files=$*;;
25263esac
25264
25265case $ac_config_headers in *"
25266"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25267esac
25268
25269
25270cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25271# Files that config.status was made for.
25272config_files="$ac_config_files"
25273config_headers="$ac_config_headers"
25274config_commands="$ac_config_commands"
25275
25276_ACEOF
25277
25278cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25279ac_cs_usage="\
25280\`$as_me' instantiates files and other configuration actions
25281from templates according to the current configuration. Unless the files
25282and actions are specified as TAGs, all are instantiated by default.
25283
25284Usage: $0 [OPTION]... [TAG]...
25285
25286 -h, --help print this help, then exit
25287 -V, --version print version number and configuration settings, then exit
25288 --config print configuration, then exit
25289 -q, --quiet, --silent
25290 do not print progress messages
25291 -d, --debug don't remove temporary files
25292 --recheck update $as_me by reconfiguring in the same conditions
25293 --file=FILE[:TEMPLATE]
25294 instantiate the configuration file FILE
25295 --header=FILE[:TEMPLATE]
25296 instantiate the configuration header FILE
25297
25298Configuration files:
25299$config_files
25300
25301Configuration headers:
25302$config_headers
25303
25304Configuration commands:
25305$config_commands
25306
25307Report bugs to <http://sourceforge.net/projects/libvncserver>."
25308
25309_ACEOF
25310cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25311ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
25312ac_cs_version="\\
25313LibVNCServer config.status 0.9.9
25314configured by $0, generated by GNU Autoconf 2.69,
25315 with options \\"\$ac_cs_config\\"
25316
25317Copyright (C) 2012 Free Software Foundation, Inc.
25318This config.status script is free software; the Free Software Foundation
25319gives unlimited permission to copy, distribute and modify it."
25320
25321ac_pwd='$ac_pwd'
25322srcdir='$srcdir'
25323INSTALL='$INSTALL'
25324MKDIR_P='$MKDIR_P'
25325AWK='$AWK'
25326test -n "\$AWK" || AWK=awk
25327_ACEOF
25328
25329cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25330# The default lists apply if the user does not specify any file.
25331ac_need_defaults=:
25332while test $# != 0
25333do
25334 case $1 in
25335 --*=?*)
25336 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25337 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25338 ac_shift=:
25339 ;;
25340 --*=)
25341 ac_option=`expr "X$1" : 'X\([^=]*\)='`
25342 ac_optarg=
25343 ac_shift=:
25344 ;;
25345 *)
25346 ac_option=$1
25347 ac_optarg=$2
25348 ac_shift=shift
25349 ;;
25350 esac
25351
25352 case $ac_option in
25353 # Handling of the options.
25354 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25355 ac_cs_recheck=: ;;
25356 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25357 $as_echo "$ac_cs_version"; exit ;;
25358 --config | --confi | --conf | --con | --co | --c )
25359 $as_echo "$ac_cs_config"; exit ;;
25360 --debug | --debu | --deb | --de | --d | -d )
25361 debug=: ;;
25362 --file | --fil | --fi | --f )
25363 $ac_shift
25364 case $ac_optarg in
25365 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25366 '') as_fn_error $? "missing file argument" ;;
25367 esac
25368 as_fn_append CONFIG_FILES " '$ac_optarg'"
25369 ac_need_defaults=false;;
25370 --header | --heade | --head | --hea )
25371 $ac_shift
25372 case $ac_optarg in
25373 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25374 esac
25375 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25376 ac_need_defaults=false;;
25377 --he | --h)
25378 # Conflict between --help and --header
25379 as_fn_error $? "ambiguous option: \`$1'
25380Try \`$0 --help' for more information.";;
25381 --help | --hel | -h )
25382 $as_echo "$ac_cs_usage"; exit ;;
25383 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25384 | -silent | --silent | --silen | --sile | --sil | --si | --s)
25385 ac_cs_silent=: ;;
25386
25387 # This is an error.
25388 -*) as_fn_error $? "unrecognized option: \`$1'
25389Try \`$0 --help' for more information." ;;
25390
25391 *) as_fn_append ac_config_targets " $1"
25392 ac_need_defaults=false ;;
25393
25394 esac
25395 shift
25396done
25397
25398ac_configure_extra_args=
25399
25400if $ac_cs_silent; then
25401 exec 6>/dev/null
25402 ac_configure_extra_args="$ac_configure_extra_args --silent"
25403fi
25404
25405_ACEOF
25406cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25407if \$ac_cs_recheck; then
25408 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25409 shift
25410 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25411 CONFIG_SHELL='$SHELL'
25412 export CONFIG_SHELL
25413 exec "\$@"
25414fi
25415
25416_ACEOF
25417cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25418exec 5>>config.log
25419{
25420 echo
25421 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
25422@%:@@%:@ Running $as_me. @%:@@%:@
25423_ASBOX
25424 $as_echo "$ac_log"
25425} >&5
25426
25427_ACEOF
25428cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25429#
25430# INIT-COMMANDS
25431#
25432PACKAGE="$PACKAGE"
25433AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25434
25435_ACEOF
25436
25437cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25438
25439# Handling of arguments.
25440for ac_config_target in $ac_config_targets
25441do
25442 case $ac_config_target in
25443 "rfbconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS rfbconfig.h" ;;
25444 "rfb/rfbconfig.h") CONFIG_COMMANDS="$CONFIG_COMMANDS rfb/rfbconfig.h" ;;
25445 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25446 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25447 "libvncserver.pc") CONFIG_FILES="$CONFIG_FILES libvncserver.pc" ;;
25448 "libvncclient.pc") CONFIG_FILES="$CONFIG_FILES libvncclient.pc" ;;
25449 "libvncserver/Makefile") CONFIG_FILES="$CONFIG_FILES libvncserver/Makefile" ;;
25450 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25451 "examples/android/Makefile") CONFIG_FILES="$CONFIG_FILES examples/android/Makefile" ;;
25452 "vncterm/Makefile") CONFIG_FILES="$CONFIG_FILES vncterm/Makefile" ;;
25453 "webclients/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/Makefile" ;;
25454 "webclients/java-applet/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/java-applet/Makefile" ;;
25455 "webclients/java-applet/ssl/Makefile") CONFIG_FILES="$CONFIG_FILES webclients/java-applet/ssl/Makefile" ;;
25456 "libvncclient/Makefile") CONFIG_FILES="$CONFIG_FILES libvncclient/Makefile" ;;
25457 "client_examples/Makefile") CONFIG_FILES="$CONFIG_FILES client_examples/Makefile" ;;
25458 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
25459 "libvncserver-config") CONFIG_FILES="$CONFIG_FILES libvncserver-config" ;;
25460 "LibVNCServer.spec") CONFIG_FILES="$CONFIG_FILES LibVNCServer.spec" ;;
25461 "x11vnc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/Makefile" ;;
25462 "x11vnc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/misc/Makefile" ;;
25463 "x11vnc/misc/turbovnc/Makefile") CONFIG_FILES="$CONFIG_FILES x11vnc/misc/turbovnc/Makefile" ;;
25464 "chmod-libvncserver-config") CONFIG_COMMANDS="$CONFIG_COMMANDS chmod-libvncserver-config" ;;
25465
25466 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25467 esac
25468done
25469
25470
25471# If the user did not use the arguments to specify the items to instantiate,
25472# then the envvar interface is used. Set only those that are not.
25473# We use the long form for the default assignment because of an extremely
25474# bizarre bug on SunOS 4.1.3.
25475if $ac_need_defaults; then
25476 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25477 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25478 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25479fi
25480
25481# Have a temporary directory for convenience. Make it in the build tree
25482# simply because there is no reason against having it here, and in addition,
25483# creating and moving files from /tmp can sometimes cause problems.
25484# Hook for its removal unless debugging.
25485# Note that there is a small window in which the directory will not be cleaned:
25486# after its creation but before its name has been assigned to `$tmp'.
25487$debug ||
25488{
25489 tmp= ac_tmp=
25490 trap 'exit_status=$?
25491 : "${ac_tmp:=$tmp}"
25492 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
25493' 0
25494 trap 'as_fn_exit 1' 1 2 13 15
25495}
25496# Create a (secure) tmp directory for tmp files.
25497
25498{
25499 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25500 test -d "$tmp"
25501} ||
25502{
25503 tmp=./conf$$-$RANDOM
25504 (umask 077 && mkdir "$tmp")
25505} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
25506ac_tmp=$tmp
25507
25508# Set up the scripts for CONFIG_FILES section.
25509# No need to generate them if there are no CONFIG_FILES.
25510# This happens for instance with `./config.status config.h'.
25511if test -n "$CONFIG_FILES"; then
25512
25513
25514ac_cr=`echo X | tr X '\015'`
25515# On cygwin, bash can eat \r inside `` if the user requested igncr.
25516# But we know of no other shell where ac_cr would be empty at this
25517# point, so we can use a bashism as a fallback.
25518if test "x$ac_cr" = x; then
25519 eval ac_cr=\$\'\\r\'
25520fi
25521ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25522if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25523 ac_cs_awk_cr='\\r'
25524else
25525 ac_cs_awk_cr=$ac_cr
25526fi
25527
25528echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
25529_ACEOF
25530
25531
25532{
25533 echo "cat >conf$$subs.awk <<_ACEOF" &&
25534 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25535 echo "_ACEOF"
25536} >conf$$subs.sh ||
25537 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25538ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
25539ac_delim='%!_!# '
25540for ac_last_try in false false false false false :; do
25541 . ./conf$$subs.sh ||
25542 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25543
25544 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25545 if test $ac_delim_n = $ac_delim_num; then
25546 break
25547 elif $ac_last_try; then
25548 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
25549 else
25550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25551 fi
25552done
25553rm -f conf$$subs.sh
25554
25555cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25556cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
25557_ACEOF
25558sed -n '
25559h
25560s/^/S["/; s/!.*/"]=/
25561p
25562g
25563s/^[^!]*!//
25564:repl
25565t repl
25566s/'"$ac_delim"'$//
25567t delim
25568:nl
25569h
25570s/\(.\{148\}\)..*/\1/
25571t more1
25572s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25573p
25574n
25575b repl
25576:more1
25577s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25578p
25579g
25580s/.\{148\}//
25581t nl
25582:delim
25583h
25584s/\(.\{148\}\)..*/\1/
25585t more2
25586s/["\\]/\\&/g; s/^/"/; s/$/"/
25587p
25588b
25589:more2
25590s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25591p
25592g
25593s/.\{148\}//
25594t delim
25595' <conf$$subs.awk | sed '
25596/^[^""]/{
25597 N
25598 s/\n//
25599}
25600' >>$CONFIG_STATUS || ac_write_fail=1
25601rm -f conf$$subs.awk
25602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25603_ACAWK
25604cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
25605 for (key in S) S_is_set[key] = 1
25606 FS = ""
25607
25608}
25609{
25610 line = $ 0
25611 nfields = split(line, field, "@")
25612 substed = 0
25613 len = length(field[1])
25614 for (i = 2; i < nfields; i++) {
25615 key = field[i]
25616 keylen = length(key)
25617 if (S_is_set[key]) {
25618 value = S[key]
25619 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
25620 len += length(value) + length(field[++i])
25621 substed = 1
25622 } else
25623 len += 1 + keylen
25624 }
25625
25626 print line
25627}
25628
25629_ACAWK
25630_ACEOF
25631cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25632if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
25633 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
25634else
25635 cat
25636fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
25637 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
25638_ACEOF
25639
25640# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
25641# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
25642# trailing colons and then remove the whole line if VPATH becomes empty
25643# (actually we leave an empty line to preserve line numbers).
25644if test "x$srcdir" = x.; then
25645 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
25646h
25647s///
25648s/^/:/
25649s/[ ]*$/:/
25650s/:\$(srcdir):/:/g
25651s/:\${srcdir}:/:/g
25652s/:@srcdir@:/:/g
25653s/^:*//
25654s/:*$//
25655x
25656s/\(=[ ]*\).*/\1/
25657G
25658s/\n//
25659s/^[^=]*=[ ]*$//
25660}'
25661fi
25662
25663cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25664fi # test -n "$CONFIG_FILES"
25665
25666# Set up the scripts for CONFIG_HEADERS section.
25667# No need to generate them if there are no CONFIG_HEADERS.
25668# This happens for instance with `./config.status Makefile'.
25669if test -n "$CONFIG_HEADERS"; then
25670cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
25671BEGIN {
25672_ACEOF
25673
25674# Transform confdefs.h into an awk script `defines.awk', embedded as
25675# here-document in config.status, that substitutes the proper values into
25676# config.h.in to produce config.h.
25677
25678# Create a delimiter string that does not exist in confdefs.h, to ease
25679# handling of long lines.
25680ac_delim='%!_!# '
25681for ac_last_try in false false :; do
25682 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
25683 if test -z "$ac_tt"; then
25684 break
25685 elif $ac_last_try; then
25686 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
25687 else
25688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25689 fi
25690done
25691
25692# For the awk script, D is an array of macro values keyed by name,
25693# likewise P contains macro parameters if any. Preserve backslash
25694# newline sequences.
25695
25696ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25697sed -n '
25698s/.\{148\}/&'"$ac_delim"'/g
25699t rset
25700:rset
25701s/^[ ]*#[ ]*define[ ][ ]*/ /
25702t def
25703d
25704:def
25705s/\\$//
25706t bsnl
25707s/["\\]/\\&/g
25708s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25709D["\1"]=" \3"/p
25710s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
25711d
25712:bsnl
25713s/["\\]/\\&/g
25714s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
25715D["\1"]=" \3\\\\\\n"\\/p
25716t cont
25717s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
25718t cont
25719d
25720:cont
25721n
25722s/.\{148\}/&'"$ac_delim"'/g
25723t clear
25724:clear
25725s/\\$//
25726t bsnlc
25727s/["\\]/\\&/g; s/^/"/; s/$/"/p
25728d
25729:bsnlc
25730s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
25731b cont
25732' <confdefs.h | sed '
25733s/'"$ac_delim"'/"\\\
25734"/g' >>$CONFIG_STATUS || ac_write_fail=1
25735
25736cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25737 for (key in D) D_is_set[key] = 1
25738 FS = ""
25739}
25740/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
25741 line = \$ 0
25742 split(line, arg, " ")
25743 if (arg[1] == "#") {
25744 defundef = arg[2]
25745 mac1 = arg[3]
25746 } else {
25747 defundef = substr(arg[1], 2)
25748 mac1 = arg[2]
25749 }
25750 split(mac1, mac2, "(") #)
25751 macro = mac2[1]
25752 prefix = substr(line, 1, index(line, defundef) - 1)
25753 if (D_is_set[macro]) {
25754 # Preserve the white space surrounding the "#".
25755 print prefix "define", macro P[macro] D[macro]
25756 next
25757 } else {
25758 # Replace #undef with comments. This is necessary, for example,
25759 # in the case of _POSIX_SOURCE, which is predefined and required
25760 # on some systems where configure will not decide to define it.
25761 if (defundef == "undef") {
25762 print "/*", prefix defundef, macro, "*/"
25763 next
25764 }
25765 }
25766}
25767{ print }
25768_ACAWK
25769_ACEOF
25770cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25771 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
25772fi # test -n "$CONFIG_HEADERS"
25773
25774
25775eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
25776shift
25777for ac_tag
25778do
25779 case $ac_tag in
25780 :[FHLC]) ac_mode=$ac_tag; continue;;
25781 esac
25782 case $ac_mode$ac_tag in
25783 :[FHL]*:*);;
25784 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
25785 :[FH]-) ac_tag=-:-;;
25786 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25787 esac
25788 ac_save_IFS=$IFS
25789 IFS=:
25790 set x $ac_tag
25791 IFS=$ac_save_IFS
25792 shift
25793 ac_file=$1
25794 shift
25795
25796 case $ac_mode in
25797 :L) ac_source=$1;;
25798 :[FH])
25799 ac_file_inputs=
25800 for ac_f
25801 do
25802 case $ac_f in
25803 -) ac_f="$ac_tmp/stdin";;
25804 *) # Look for the file first in the build tree, then in the source tree
25805 # (if the path is not absolute). The absolute path cannot be DOS-style,
25806 # because $ac_f cannot contain `:'.
25807 test -f "$ac_f" ||
25808 case $ac_f in
25809 [\\/$]*) false;;
25810 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25811 esac ||
25812 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
25813 esac
25814 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
25815 as_fn_append ac_file_inputs " '$ac_f'"
25816 done
25817
25818 # Let's still pretend it is `configure' which instantiates (i.e., don't
25819 # use $as_me), people would be surprised to read:
25820 # /* config.h. Generated by config.status. */
25821 configure_input='Generated from '`
25822 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
25823 `' by configure.'
25824 if test x"$ac_file" != x-; then
25825 configure_input="$ac_file. $configure_input"
25826 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
25827$as_echo "$as_me: creating $ac_file" >&6;}
25828 fi
25829 # Neutralize special characters interpreted by sed in replacement strings.
25830 case $configure_input in #(
25831 *\&* | *\|* | *\\* )
25832 ac_sed_conf_input=`$as_echo "$configure_input" |
25833 sed 's/[\\\\&|]/\\\\&/g'`;; #(
25834 *) ac_sed_conf_input=$configure_input;;
25835 esac
25836
25837 case $ac_tag in
25838 *:-:* | *:-) cat >"$ac_tmp/stdin" \
25839 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
25840 esac
25841 ;;
25842 esac
25843
25844 ac_dir=`$as_dirname -- "$ac_file" ||
25845$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25846 X"$ac_file" : 'X\(//\)[^/]' \| \
25847 X"$ac_file" : 'X\(//\)$' \| \
25848 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25849$as_echo X"$ac_file" |
25850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25851 s//\1/
25852 q
25853 }
25854 /^X\(\/\/\)[^/].*/{
25855 s//\1/
25856 q
25857 }
25858 /^X\(\/\/\)$/{
25859 s//\1/
25860 q
25861 }
25862 /^X\(\/\).*/{
25863 s//\1/
25864 q
25865 }
25866 s/.*/./; q'`
25867 as_dir="$ac_dir"; as_fn_mkdir_p
25868 ac_builddir=.
25869
25870case "$ac_dir" in
25871.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25872*)
25873 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
25874 # A ".." for each directory in $ac_dir_suffix.
25875 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
25876 case $ac_top_builddir_sub in
25877 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25878 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25879 esac ;;
25880esac
25881ac_abs_top_builddir=$ac_pwd
25882ac_abs_builddir=$ac_pwd$ac_dir_suffix
25883# for backward compatibility:
25884ac_top_builddir=$ac_top_build_prefix
25885
25886case $srcdir in
25887 .) # We are building in place.
25888 ac_srcdir=.
25889 ac_top_srcdir=$ac_top_builddir_sub
25890 ac_abs_top_srcdir=$ac_pwd ;;
25891 [\\/]* | ?:[\\/]* ) # Absolute name.
25892 ac_srcdir=$srcdir$ac_dir_suffix;
25893 ac_top_srcdir=$srcdir
25894 ac_abs_top_srcdir=$srcdir ;;
25895 *) # Relative name.
25896 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25897 ac_top_srcdir=$ac_top_build_prefix$srcdir
25898 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25899esac
25900ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25901
25902
25903 case $ac_mode in
25904 :F)
25905 #
25906 # CONFIG_FILE
25907 #
25908
25909 case $INSTALL in
25910 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25911 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25912 esac
25913 ac_MKDIR_P=$MKDIR_P
25914 case $MKDIR_P in
25915 [\\/$]* | ?:[\\/]* ) ;;
25916 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
25917 esac
25918_ACEOF
25919
25920cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25921# If the template does not know about datarootdir, expand it.
25922# FIXME: This hack should be removed a few years after 2.60.
25923ac_datarootdir_hack=; ac_datarootdir_seen=
25924ac_sed_dataroot='
25925/datarootdir/ {
25926 p
25927 q
25928}
25929/@datadir@/p
25930/@docdir@/p
25931/@infodir@/p
25932/@localedir@/p
25933/@mandir@/p'
25934case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
25935*datarootdir*) ac_datarootdir_seen=yes;;
25936*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25937 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25938$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25939_ACEOF
25940cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25941 ac_datarootdir_hack='
25942 s&@datadir@&$datadir&g
25943 s&@docdir@&$docdir&g
25944 s&@infodir@&$infodir&g
25945 s&@localedir@&$localedir&g
25946 s&@mandir@&$mandir&g
25947 s&\\\${datarootdir}&$datarootdir&g' ;;
25948esac
25949_ACEOF
25950
25951# Neutralize VPATH when `$srcdir' = `.'.
25952# Shell code in configure.ac might set extrasub.
25953# FIXME: do we really want to maintain this feature?
25954cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25955ac_sed_extra="$ac_vpsub
25956$extrasub
25957_ACEOF
25958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25959:t
25960/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25961s|@configure_input@|$ac_sed_conf_input|;t t
25962s&@top_builddir@&$ac_top_builddir_sub&;t t
25963s&@top_build_prefix@&$ac_top_build_prefix&;t t
25964s&@srcdir@&$ac_srcdir&;t t
25965s&@abs_srcdir@&$ac_abs_srcdir&;t t
25966s&@top_srcdir@&$ac_top_srcdir&;t t
25967s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25968s&@builddir@&$ac_builddir&;t t
25969s&@abs_builddir@&$ac_abs_builddir&;t t
25970s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25971s&@INSTALL@&$ac_INSTALL&;t t
25972s&@MKDIR_P@&$ac_MKDIR_P&;t t
25973$ac_datarootdir_hack
25974"
25975eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
25976 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25977
25978test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25979 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
25980 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
25981 "$ac_tmp/out"`; test -z "$ac_out"; } &&
25982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25983which seems to be undefined. Please make sure it is defined" >&5
25984$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25985which seems to be undefined. Please make sure it is defined" >&2;}
25986
25987 rm -f "$ac_tmp/stdin"
25988 case $ac_file in
25989 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
25990 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
25991 esac \
25992 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
25993 ;;
25994 :H)
25995 #
25996 # CONFIG_HEADER
25997 #
25998 if test x"$ac_file" != x-; then
25999 {
26000 $as_echo "/* $configure_input */" \
26001 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
26002 } >"$ac_tmp/config.h" \
26003 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26004 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
26005 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26006$as_echo "$as_me: $ac_file is unchanged" >&6;}
26007 else
26008 rm -f "$ac_file"
26009 mv "$ac_tmp/config.h" "$ac_file" \
26010 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
26011 fi
26012 else
26013 $as_echo "/* $configure_input */" \
26014 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
26015 || as_fn_error $? "could not create -" "$LINENO" 5
26016 fi
26017# Compute "$ac_file"'s index in $config_headers.
26018_am_arg="$ac_file"
26019_am_stamp_count=1
26020for _am_header in $config_headers :; do
26021 case $_am_header in
26022 $_am_arg | $_am_arg:* )
26023 break ;;
26024 * )
26025 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26026 esac
26027done
26028echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26029$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26030 X"$_am_arg" : 'X\(//\)[^/]' \| \
26031 X"$_am_arg" : 'X\(//\)$' \| \
26032 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26033$as_echo X"$_am_arg" |
26034 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26035 s//\1/
26036 q
26037 }
26038 /^X\(\/\/\)[^/].*/{
26039 s//\1/
26040 q
26041 }
26042 /^X\(\/\/\)$/{
26043 s//\1/
26044 q
26045 }
26046 /^X\(\/\).*/{
26047 s//\1/
26048 q
26049 }
26050 s/.*/./; q'`/stamp-h$_am_stamp_count
26051 ;;
26052
26053 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26054$as_echo "$as_me: executing $ac_file commands" >&6;}
26055 ;;
26056 esac
26057
26058
26059 case $ac_file$ac_mode in
26060 "rfb/rfbconfig.h":C) ac_prefix_conf_OUT=`echo rfb/rfbconfig.h`
26061ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/@<:@^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ@:>@/_/g"`
26062ac_prefix_conf_PKG=`echo $PACKAGE`
26063ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
26064ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^@<:@0123456789@:>@/s/^/_/"`
26065ac_prefix_conf_INP=`echo _`
26066if test "$ac_prefix_conf_INP" = "_"; then
26067 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
26068 test -f "$ac_prefix_conf_INP" && continue
26069 case $ac_file in
26070 *.h) test -f $ac_file && ac_prefix_conf_INP=$ac_file ;;
26071 *)
26072 esac
26073 done
26074fi
26075if test "$ac_prefix_conf_INP" = "_"; then
26076 case "$ac_prefix_conf_OUT" in
26077 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
26078 ;;
26079 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/@<:@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_@:>@*-//"`
26080 ;;
26081 *) ac_prefix_conf_INP=config.h
26082 ;;
26083 esac
26084fi
26085if test -z "$ac_prefix_conf_PKG" ; then
26086 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
26087else
26088 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
26089 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
26090 fi fi
26091 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
26092$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
26093 if test -f $ac_prefix_conf_INP ; then
26094 echo "s/@%:@undef *\\(@<:@ABCDEFGHIJKLMNOPQRSTUVWXYZ_@:>@\\)/@%:@undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
26095 # no! these are things like socklen_t, const, vfork
26096 # echo "s/@%:@undef *\\(@<:@m4_cr_letters@:>@\\)/@%:@undef $_LOW""_\\1/" >> _script
26097 echo "s/@%:@define *\\(@<:@ABCDEFGHIJKLMNOPQRSTUVWXYZ_@:>@@<:@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_@:>@*\\)\\(.*\\)/@%:@ifndef $ac_prefix_conf_UPP""_\\1 \\" >> conftest.prefix
26098 echo "@%:@define $ac_prefix_conf_UPP""_\\1 \\2 \\" >> conftest.prefix
26099 echo "@%:@endif/" >>conftest.prefix
26100 # no! these are things like socklen_t, const, vfork
26101 # echo "s/@%:@def[]ine *\\(@<:@m4_cr_letters@:>@@<:@_symbol@:>@*\\)\\(.*\\)/@%:@ifndef $_LOW""_\\1 \\" >> _script
26102 # echo "@%:@define $_LOW""_\\1 \\2 \\" >> _script
26103 # echo "@%:@endif/" >> _script
26104 # now executing _script on _DEF input to create _OUT output file
26105 echo "@%:@ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
26106 echo "@%:@define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
26107 echo ' ' >>$tmp/pconfig.h
26108 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
26109
26110 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
26111 echo ' ' >>$tmp/pconfig.h
26112 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
26113 echo "@%:@endif" >>$tmp/pconfig.h
26114 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
26115 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
26116$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
26117 else
26118 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
26119$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26120 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
26121 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
26122 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
26123$as_echo X"$ac_prefix_conf_OUT" |
26124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26125 s//\1/
26126 q
26127 }
26128 /^X\(\/\/\)[^/].*/{
26129 s//\1/
26130 q
26131 }
26132 /^X\(\/\/\)$/{
26133 s//\1/
26134 q
26135 }
26136 /^X\(\/\).*/{
26137 s//\1/
26138 q
26139 }
26140 s/.*/./; q'`
26141 as_dir="$ac_dir"; as_fn_mkdir_p
26142 rm -f "$ac_prefix_conf_OUT"
26143 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
26144 fi
26145 cp conftest.prefix _configs.sed
26146 else
26147 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
26148 fi
26149 rm -f conftest.*
26150fi
26151 ;;
26152 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26153 # Autoconf 2.62 quotes --file arguments for eval, but not when files
26154 # are listed without --file. Let's play safe and only enable the eval
26155 # if we detect the quoting.
26156 case $CONFIG_FILES in
26157 *\'*) eval set x "$CONFIG_FILES" ;;
26158 *) set x $CONFIG_FILES ;;
26159 esac
26160 shift
26161 for mf
26162 do
26163 # Strip MF so we end up with the name of the file.
26164 mf=`echo "$mf" | sed -e 's/:.*$//'`
26165 # Check whether this is an Automake generated Makefile or not.
26166 # We used to match only the files named `Makefile.in', but
26167 # some people rename them; so instead we look at the file content.
26168 # Grep'ing the first line is not enough: some people post-process
26169 # each Makefile.in and add a new line on top of each file to say so.
26170 # Grep'ing the whole file is not good either: AIX grep has a line
26171 # limit of 2048, but all sed's we know have understand at least 4000.
26172 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26173 dirpart=`$as_dirname -- "$mf" ||
26174$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26175 X"$mf" : 'X\(//\)[^/]' \| \
26176 X"$mf" : 'X\(//\)$' \| \
26177 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26178$as_echo X"$mf" |
26179 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26180 s//\1/
26181 q
26182 }
26183 /^X\(\/\/\)[^/].*/{
26184 s//\1/
26185 q
26186 }
26187 /^X\(\/\/\)$/{
26188 s//\1/
26189 q
26190 }
26191 /^X\(\/\).*/{
26192 s//\1/
26193 q
26194 }
26195 s/.*/./; q'`
26196 else
26197 continue
26198 fi
26199 # Extract the definition of DEPDIR, am__include, and am__quote
26200 # from the Makefile without running `make'.
26201 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26202 test -z "$DEPDIR" && continue
26203 am__include=`sed -n 's/^am__include = //p' < "$mf"`
26204 test -z "am__include" && continue
26205 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26206 # When using ansi2knr, U may be empty or an underscore; expand it
26207 U=`sed -n 's/^U = //p' < "$mf"`
26208 # Find all dependency output files, they are included files with
26209 # $(DEPDIR) in their names. We invoke sed twice because it is the
26210 # simplest approach to changing $(DEPDIR) to its actual value in the
26211 # expansion.
26212 for file in `sed -n "
26213 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26214 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26215 # Make sure the directory exists.
26216 test -f "$dirpart/$file" && continue
26217 fdir=`$as_dirname -- "$file" ||
26218$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26219 X"$file" : 'X\(//\)[^/]' \| \
26220 X"$file" : 'X\(//\)$' \| \
26221 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26222$as_echo X"$file" |
26223 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26224 s//\1/
26225 q
26226 }
26227 /^X\(\/\/\)[^/].*/{
26228 s//\1/
26229 q
26230 }
26231 /^X\(\/\/\)$/{
26232 s//\1/
26233 q
26234 }
26235 /^X\(\/\).*/{
26236 s//\1/
26237 q
26238 }
26239 s/.*/./; q'`
26240 as_dir=$dirpart/$fdir; as_fn_mkdir_p
26241 # echo "creating $dirpart/$file"
26242 echo '# dummy' > "$dirpart/$file"
26243 done
26244 done
26245}
26246 ;;
26247 "chmod-libvncserver-config":C) chmod a+x libvncserver-config ;;
26248
26249 esac
26250done # for ac_tag
26251
26252
26253as_fn_exit 0
26254_ACEOF
26255ac_clean_files=$ac_clean_files_save
26256
26257test $ac_write_fail = 0 ||
26258 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
26259
26260
26261# configure is writing to config.log, and then calls config.status.
26262# config.status does its own redirection, appending to config.log.
26263# Unfortunately, on DOS this fails, as config.log is still kept open
26264# by configure, so config.status won't be able to write to it; its
26265# output is simply discarded. So we exec the FD to /dev/null,
26266# effectively closing config.log, so it can be properly (re)opened and
26267# appended to by config.status. When coming back to configure, we
26268# need to make the FD available again.
26269if test "$no_create" != yes; then
26270 ac_cs_success=:
26271 ac_config_status_args=
26272 test "$silent" = yes &&
26273 ac_config_status_args="$ac_config_status_args --quiet"
26274 exec 5>/dev/null
26275 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
26276 exec 5>>config.log
26277 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
26278 # would make configure fail if this is the last instruction.
26279 $ac_cs_success || as_fn_exit 1
26280fi
26281if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
26282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
26283$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
26284fi
26285
26286chmod a+x ./libvncserver-config
26287