]> git.saurik.com Git - wxWidgets.git/blame - src/tiff/configure
Fix stc doxygen warnings and regen stc files.
[wxWidgets.git] / src / tiff / configure
CommitLineData
8414a40c
VZ
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
80ed523f 3# Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.3.
8414a40c
VZ
4#
5# Report bugs to <tiff@lists.maptools.org>.
6#
80ed523f
VZ
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
8414a40c
VZ
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
80ed523f
VZ
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
8414a40c 16
31cb0113
VZ
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
80ed523f 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8414a40c
VZ
20 emulate sh
21 NULLCMD=:
80ed523f 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8414a40c
VZ
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
31cb0113
VZ
25 setopt NO_GLOB_SUBST
26else
80ed523f
VZ
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
31cb0113 32esac
31cb0113
VZ
33fi
34
35
80ed523f
VZ
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'
31cb0113 56 else
80ed523f
VZ
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'
31cb0113 69 fi
80ed523f
VZ
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
8414a40c 72fi
8414a40c 73
80ed523f
VZ
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 }
8414a40c
VZ
81fi
82
83
31cb0113
VZ
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.)
31cb0113
VZ
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
80ed523f
VZ
92as_myself=
93case $0 in #((
31cb0113
VZ
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=.
80ed523f
VZ
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
31cb0113
VZ
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
80ed523f
VZ
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
31cb0113
VZ
114fi
115
80ed523f
VZ
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 || :
31cb0113 123done
8414a40c
VZ
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
80ed523f
VZ
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
201
202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 PATH=/empty FPATH=/empty; export PATH FPATH
207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
209test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
8414a40c 221do
80ed523f
VZ
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
8414a40c 276 else
80ed523f
VZ
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: tiff@lists.maptools.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
8414a40c 282 fi
80ed523f
VZ
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425 fi
426 $as_echo "$as_me: error: $2" >&2
427 as_fn_exit $as_status
428} # as_fn_error
8414a40c 429
31cb0113
VZ
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8414a40c
VZ
432 as_expr=expr
433else
434 as_expr=false
435fi
436
31cb0113 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8414a40c
VZ
438 as_basename=basename
439else
440 as_basename=false
441fi
442
80ed523f
VZ
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
8414a40c 448
31cb0113 449as_me=`$as_basename -- "$0" ||
8414a40c
VZ
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
31cb0113 452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
80ed523f 453$as_echo X/"$0" |
31cb0113
VZ
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
8414a40c 467
80ed523f
VZ
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
8414a40c 474
8414a40c 475
80ed523f
VZ
476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
8414a40c 498
80ed523f
VZ
499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
31cb0113 509}
8414a40c 510
80ed523f
VZ
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514 case `echo 'xy\c'` in
515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
519 esac;;
520*)
521 ECHO_N='-n';;
522esac
31cb0113 523
80ed523f
VZ
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
31cb0113 527else
80ed523f
VZ
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537 # In both cases, we have to default to `cp -pR'.
538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539 as_ln_s='cp -pR'
540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
543 as_ln_s='cp -pR'
544 fi
31cb0113 545else
80ed523f 546 as_ln_s='cp -pR'
31cb0113 547fi
80ed523f
VZ
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
31cb0113 550
80ed523f
VZ
551if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
31cb0113 553else
80ed523f
VZ
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
31cb0113
VZ
556fi
557
80ed523f
VZ
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
31cb0113 560
80ed523f
VZ
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
31cb0113 563
80ed523f
VZ
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
31cb0113 566
80ed523f 567SHELL=${CONFIG_SHELL-/bin/sh}
31cb0113 568
31cb0113 569
80ed523f
VZ
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
31cb0113 572
8414a40c 573# Name of the host.
80ed523f 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
8414a40c
VZ
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
8414a40c
VZ
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
31cb0113 582ac_clean_files=
8414a40c 583ac_config_libobj_dir=.
31cb0113 584LIBOBJS=
8414a40c
VZ
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
8414a40c 589
8414a40c
VZ
590# Identity of this package.
591PACKAGE_NAME='LibTIFF Software'
592PACKAGE_TARNAME='tiff'
80ed523f
VZ
593PACKAGE_VERSION='4.0.3'
594PACKAGE_STRING='LibTIFF Software 4.0.3'
8414a40c 595PACKAGE_BUGREPORT='tiff@lists.maptools.org'
80ed523f 596PACKAGE_URL=''
8414a40c
VZ
597
598# Factoring default headers for most tests.
599ac_includes_default="\
600#include <stdio.h>
31cb0113 601#ifdef HAVE_SYS_TYPES_H
8414a40c
VZ
602# include <sys/types.h>
603#endif
31cb0113 604#ifdef HAVE_SYS_STAT_H
8414a40c
VZ
605# include <sys/stat.h>
606#endif
31cb0113 607#ifdef STDC_HEADERS
8414a40c
VZ
608# include <stdlib.h>
609# include <stddef.h>
610#else
31cb0113 611# ifdef HAVE_STDLIB_H
8414a40c
VZ
612# include <stdlib.h>
613# endif
614#endif
31cb0113
VZ
615#ifdef HAVE_STRING_H
616# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
8414a40c
VZ
617# include <memory.h>
618# endif
619# include <string.h>
620#endif
31cb0113 621#ifdef HAVE_STRINGS_H
8414a40c
VZ
622# include <strings.h>
623#endif
31cb0113 624#ifdef HAVE_INTTYPES_H
8414a40c 625# include <inttypes.h>
8414a40c 626#endif
31cb0113
VZ
627#ifdef HAVE_STDINT_H
628# include <stdint.h>
629#endif
630#ifdef HAVE_UNISTD_H
8414a40c
VZ
631# include <unistd.h>
632#endif"
633
80ed523f
VZ
634ac_subst_vars='am__EXEEXT_FALSE
635am__EXEEXT_TRUE
636LTLIBOBJS
637LIBDIR
638WIN32_IO_FALSE
639WIN32_IO_TRUE
640HAVE_OPENGL_FALSE
641HAVE_OPENGL_TRUE
642GLUT_LIBS
643GLUT_CFLAGS
644GLU_LIBS
645GLU_CFLAGS
31cb0113 646GL_LIBS
80ed523f
VZ
647GL_CFLAGS
648PTHREAD_CFLAGS
649PTHREAD_LIBS
650PTHREAD_CC
651ax_pthread_config
652X_EXTRA_LIBS
653X_LIBS
654X_PRE_LIBS
655X_CFLAGS
656XMKMF
657HAVE_CXX_FALSE
658HAVE_CXX_TRUE
659LIBTIFF_DOCDIR
660HAVE_RPATH_FALSE
661HAVE_RPATH_TRUE
662LIBOBJS
663tiff_libs_private
664AM_BACKSLASH
665AM_DEFAULT_VERBOSITY
666AM_DEFAULT_V
667AM_V
31cb0113 668CXXCPP
80ed523f
VZ
669am__fastdepCXX_FALSE
670am__fastdepCXX_TRUE
671CXXDEPMODE
672ac_ct_CXX
673CXXFLAGS
674CXX
675CPP
676OTOOL64
677OTOOL
678LIPO
679NMEDIT
680DSYMUTIL
681MANIFEST_TOOL
682RANLIB
683ac_ct_AR
684AR
685NM
686ac_ct_DUMPBIN
687DUMPBIN
688LD
689FGREP
690EGREP
691GREP
692SED
693LIBTOOL
694OBJDUMP
695DLLTOOL
696AS
697HAVE_LD_VERSION_SCRIPT_FALSE
698HAVE_LD_VERSION_SCRIPT_TRUE
699LN_S
700am__fastdepCC_FALSE
701am__fastdepCC_TRUE
702CCDEPMODE
703am__nodep
704AMDEPBACKSLASH
705AMDEP_FALSE
706AMDEP_TRUE
707am__quote
708am__include
709DEPDIR
710OBJEXT
711EXEEXT
712ac_ct_CC
713CPPFLAGS
714LDFLAGS
715CFLAGS
716CC
717LIBTIFF_RELEASE_DATE
718LIBTIFF_VERSION_INFO
719LIBTIFF_VERSION
720LIBTIFF_ALPHA_VERSION
721LIBTIFF_MICRO_VERSION
722LIBTIFF_MINOR_VERSION
723LIBTIFF_MAJOR_VERSION
724MAINT
725MAINTAINER_MODE_FALSE
726MAINTAINER_MODE_TRUE
727am__untar
728am__tar
729AMTAR
730am__leading_dot
731SET_MAKE
732AWK
733mkdir_p
734MKDIR_P
735INSTALL_STRIP_PROGRAM
736STRIP
737install_sh
738MAKEINFO
739AUTOHEADER
740AUTOMAKE
741AUTOCONF
742ACLOCAL
743VERSION
744PACKAGE
745CYGPATH_W
746am__isrc
747INSTALL_DATA
748INSTALL_SCRIPT
749INSTALL_PROGRAM
750host_os
751host_vendor
752host_cpu
753host
754build_os
755build_vendor
756build_cpu
757build
758target_alias
759host_alias
760build_alias
761LIBS
762ECHO_T
763ECHO_N
764ECHO_C
765DEFS
766mandir
767localedir
768libdir
769psdir
770pdfdir
771dvidir
772htmldir
773infodir
774docdir
775oldincludedir
776includedir
777localstatedir
778sharedstatedir
779sysconfdir
780datadir
781datarootdir
782libexecdir
783sbindir
784bindir
785program_transform_name
786prefix
787exec_prefix
788PACKAGE_URL
789PACKAGE_BUGREPORT
790PACKAGE_STRING
791PACKAGE_VERSION
792PACKAGE_TARNAME
793PACKAGE_NAME
794PATH_SEPARATOR
795SHELL'
8414a40c 796ac_subst_files=''
80ed523f
VZ
797ac_user_opts='
798enable_option_checking
799enable_maintainer_mode
800enable_dependency_tracking
801enable_ld_version_script
802enable_shared
803enable_static
804with_pic
805enable_fast_install
806with_gnu_ld
807with_sysroot
808enable_libtool_lock
809enable_silent_rules
810enable_rpath
811enable_largefile
812with_docdir
813enable_ccitt
814enable_packbits
815enable_lzw
816enable_thunder
817enable_next
818enable_logluv
819enable_mdi
820enable_zlib
821with_zlib_include_dir
822with_zlib_lib_dir
823enable_pixarlog
824enable_jpeg
825with_jpeg_include_dir
826with_jpeg_lib_dir
827enable_old_jpeg
828enable_jbig
829with_jbig_include_dir
830with_jbig_lib_dir
831enable_lzma
832with_lzma_include_dir
833with_lzma_lib_dir
834enable_jpeg12
835with_jpeg12_include_dir
836with_jpeg12_lib
837enable_cxx
838with_x
839enable_strip_chopping
840with_default_strip_size
841enable_defer_strile_load
842enable_chunky_strip_read
843enable_extrasample_as_alpha
844enable_check_ycbcr_subsampling
845'
31cb0113
VZ
846 ac_precious_vars='build_alias
847host_alias
848target_alias
849CC
850CFLAGS
851LDFLAGS
852LIBS
853CPPFLAGS
854CPP
31cb0113
VZ
855CXX
856CXXFLAGS
857CCC
80ed523f
VZ
858CXXCPP
859XMKMF'
31cb0113 860
8414a40c
VZ
861
862# Initialize some variables set by options.
863ac_init_help=
864ac_init_version=false
80ed523f
VZ
865ac_unrecognized_opts=
866ac_unrecognized_sep=
8414a40c
VZ
867# The variables have the same names as the options, with
868# dashes changed to underlines.
869cache_file=/dev/null
870exec_prefix=NONE
871no_create=
872no_recursion=
873prefix=NONE
874program_prefix=NONE
875program_suffix=NONE
876program_transform_name=s,x,x,
877silent=
878site=
879srcdir=
880verbose=
881x_includes=NONE
882x_libraries=NONE
883
884# Installation directory options.
885# These are left unexpanded so users can "make install exec_prefix=/foo"
886# and all the variables that are supposed to be based on exec_prefix
887# by default will actually change.
888# Use braces instead of parens because sh, perl, etc. also accept them.
31cb0113 889# (The list follows the same order as the GNU Coding Standards.)
8414a40c
VZ
890bindir='${exec_prefix}/bin'
891sbindir='${exec_prefix}/sbin'
892libexecdir='${exec_prefix}/libexec'
31cb0113
VZ
893datarootdir='${prefix}/share'
894datadir='${datarootdir}'
8414a40c
VZ
895sysconfdir='${prefix}/etc'
896sharedstatedir='${prefix}/com'
897localstatedir='${prefix}/var'
8414a40c
VZ
898includedir='${prefix}/include'
899oldincludedir='/usr/include'
31cb0113
VZ
900docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901infodir='${datarootdir}/info'
902htmldir='${docdir}'
903dvidir='${docdir}'
904pdfdir='${docdir}'
905psdir='${docdir}'
906libdir='${exec_prefix}/lib'
907localedir='${datarootdir}/locale'
908mandir='${datarootdir}/man'
8414a40c
VZ
909
910ac_prev=
31cb0113 911ac_dashdash=
8414a40c
VZ
912for ac_option
913do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
31cb0113 916 eval $ac_prev=\$ac_option
8414a40c
VZ
917 ac_prev=
918 continue
919 fi
920
31cb0113 921 case $ac_option in
80ed523f
VZ
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
31cb0113 925 esac
8414a40c
VZ
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
31cb0113
VZ
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
8414a40c
VZ
932
933 -bindir | --bindir | --bindi | --bind | --bin | --bi)
934 ac_prev=bindir ;;
935 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
936 bindir=$ac_optarg ;;
937
938 -build | --build | --buil | --bui | --bu)
939 ac_prev=build_alias ;;
940 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
941 build_alias=$ac_optarg ;;
942
943 -cache-file | --cache-file | --cache-fil | --cache-fi \
944 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
945 ac_prev=cache_file ;;
946 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
947 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
948 cache_file=$ac_optarg ;;
949
950 --config-cache | -C)
951 cache_file=config.cache ;;
952
31cb0113 953 -datadir | --datadir | --datadi | --datad)
8414a40c 954 ac_prev=datadir ;;
31cb0113 955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
8414a40c
VZ
956 datadir=$ac_optarg ;;
957
31cb0113
VZ
958 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
959 | --dataroo | --dataro | --datar)
960 ac_prev=datarootdir ;;
961 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
962 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
963 datarootdir=$ac_optarg ;;
964
8414a40c 965 -disable-* | --disable-*)
80ed523f 966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
8414a40c 967 # Reject names that are not valid shell variable names.
80ed523f
VZ
968 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
969 as_fn_error $? "invalid feature name: $ac_useropt"
970 ac_useropt_orig=$ac_useropt
971 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
972 case $ac_user_opts in
973 *"
974"enable_$ac_useropt"
975"*) ;;
976 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
977 ac_unrecognized_sep=', ';;
978 esac
979 eval enable_$ac_useropt=no ;;
31cb0113
VZ
980
981 -docdir | --docdir | --docdi | --doc | --do)
982 ac_prev=docdir ;;
983 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
984 docdir=$ac_optarg ;;
985
986 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
987 ac_prev=dvidir ;;
988 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
989 dvidir=$ac_optarg ;;
8414a40c
VZ
990
991 -enable-* | --enable-*)
80ed523f 992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
8414a40c 993 # Reject names that are not valid shell variable names.
80ed523f
VZ
994 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
995 as_fn_error $? "invalid feature name: $ac_useropt"
996 ac_useropt_orig=$ac_useropt
997 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
998 case $ac_user_opts in
999 *"
1000"enable_$ac_useropt"
1001"*) ;;
1002 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1003 ac_unrecognized_sep=', ';;
1004 esac
1005 eval enable_$ac_useropt=\$ac_optarg ;;
8414a40c
VZ
1006
1007 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1008 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1009 | --exec | --exe | --ex)
1010 ac_prev=exec_prefix ;;
1011 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1012 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1013 | --exec=* | --exe=* | --ex=*)
1014 exec_prefix=$ac_optarg ;;
1015
1016 -gas | --gas | --ga | --g)
1017 # Obsolete; use --with-gas.
1018 with_gas=yes ;;
1019
1020 -help | --help | --hel | --he | -h)
1021 ac_init_help=long ;;
1022 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1023 ac_init_help=recursive ;;
1024 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1025 ac_init_help=short ;;
1026
1027 -host | --host | --hos | --ho)
1028 ac_prev=host_alias ;;
1029 -host=* | --host=* | --hos=* | --ho=*)
1030 host_alias=$ac_optarg ;;
1031
31cb0113
VZ
1032 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1033 ac_prev=htmldir ;;
1034 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1035 | --ht=*)
1036 htmldir=$ac_optarg ;;
1037
8414a40c
VZ
1038 -includedir | --includedir | --includedi | --included | --include \
1039 | --includ | --inclu | --incl | --inc)
1040 ac_prev=includedir ;;
1041 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1042 | --includ=* | --inclu=* | --incl=* | --inc=*)
1043 includedir=$ac_optarg ;;
1044
1045 -infodir | --infodir | --infodi | --infod | --info | --inf)
1046 ac_prev=infodir ;;
1047 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1048 infodir=$ac_optarg ;;
1049
1050 -libdir | --libdir | --libdi | --libd)
1051 ac_prev=libdir ;;
1052 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1053 libdir=$ac_optarg ;;
1054
1055 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1056 | --libexe | --libex | --libe)
1057 ac_prev=libexecdir ;;
1058 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1059 | --libexe=* | --libex=* | --libe=*)
1060 libexecdir=$ac_optarg ;;
1061
31cb0113
VZ
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
8414a40c 1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
31cb0113 1068 | --localstate | --localstat | --localsta | --localst | --locals)
8414a40c
VZ
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
31cb0113 1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
8414a40c
VZ
1072 localstatedir=$ac_optarg ;;
1073
1074 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1075 ac_prev=mandir ;;
1076 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1077 mandir=$ac_optarg ;;
1078
1079 -nfp | --nfp | --nf)
1080 # Obsolete; use --without-fp.
1081 with_fp=no ;;
1082
1083 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1084 | --no-cr | --no-c | -n)
1085 no_create=yes ;;
1086
1087 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1088 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1089 no_recursion=yes ;;
1090
1091 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1092 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1093 | --oldin | --oldi | --old | --ol | --o)
1094 ac_prev=oldincludedir ;;
1095 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1096 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1097 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1098 oldincludedir=$ac_optarg ;;
1099
1100 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1101 ac_prev=prefix ;;
1102 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1103 prefix=$ac_optarg ;;
1104
1105 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1106 | --program-pre | --program-pr | --program-p)
1107 ac_prev=program_prefix ;;
1108 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1109 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1110 program_prefix=$ac_optarg ;;
1111
1112 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1113 | --program-suf | --program-su | --program-s)
1114 ac_prev=program_suffix ;;
1115 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1116 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1117 program_suffix=$ac_optarg ;;
1118
1119 -program-transform-name | --program-transform-name \
1120 | --program-transform-nam | --program-transform-na \
1121 | --program-transform-n | --program-transform- \
1122 | --program-transform | --program-transfor \
1123 | --program-transfo | --program-transf \
1124 | --program-trans | --program-tran \
1125 | --progr-tra | --program-tr | --program-t)
1126 ac_prev=program_transform_name ;;
1127 -program-transform-name=* | --program-transform-name=* \
1128 | --program-transform-nam=* | --program-transform-na=* \
1129 | --program-transform-n=* | --program-transform-=* \
1130 | --program-transform=* | --program-transfor=* \
1131 | --program-transfo=* | --program-transf=* \
1132 | --program-trans=* | --program-tran=* \
1133 | --progr-tra=* | --program-tr=* | --program-t=*)
1134 program_transform_name=$ac_optarg ;;
1135
31cb0113
VZ
1136 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1137 ac_prev=pdfdir ;;
1138 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1139 pdfdir=$ac_optarg ;;
1140
1141 -psdir | --psdir | --psdi | --psd | --ps)
1142 ac_prev=psdir ;;
1143 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1144 psdir=$ac_optarg ;;
1145
8414a40c
VZ
1146 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1147 | -silent | --silent | --silen | --sile | --sil)
1148 silent=yes ;;
1149
1150 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1151 ac_prev=sbindir ;;
1152 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1153 | --sbi=* | --sb=*)
1154 sbindir=$ac_optarg ;;
1155
1156 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1157 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1158 | --sharedst | --shareds | --shared | --share | --shar \
1159 | --sha | --sh)
1160 ac_prev=sharedstatedir ;;
1161 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1162 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1163 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1164 | --sha=* | --sh=*)
1165 sharedstatedir=$ac_optarg ;;
1166
1167 -site | --site | --sit)
1168 ac_prev=site ;;
1169 -site=* | --site=* | --sit=*)
1170 site=$ac_optarg ;;
1171
1172 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1173 ac_prev=srcdir ;;
1174 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1175 srcdir=$ac_optarg ;;
1176
1177 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1178 | --syscon | --sysco | --sysc | --sys | --sy)
1179 ac_prev=sysconfdir ;;
1180 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1181 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1182 sysconfdir=$ac_optarg ;;
1183
1184 -target | --target | --targe | --targ | --tar | --ta | --t)
1185 ac_prev=target_alias ;;
1186 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1187 target_alias=$ac_optarg ;;
1188
1189 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1190 verbose=yes ;;
1191
1192 -version | --version | --versio | --versi | --vers | -V)
1193 ac_init_version=: ;;
1194
1195 -with-* | --with-*)
80ed523f 1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
8414a40c 1197 # Reject names that are not valid shell variable names.
80ed523f
VZ
1198 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1199 as_fn_error $? "invalid package name: $ac_useropt"
1200 ac_useropt_orig=$ac_useropt
1201 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1202 case $ac_user_opts in
1203 *"
1204"with_$ac_useropt"
1205"*) ;;
1206 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1207 ac_unrecognized_sep=', ';;
1208 esac
1209 eval with_$ac_useropt=\$ac_optarg ;;
8414a40c
VZ
1210
1211 -without-* | --without-*)
80ed523f 1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
8414a40c 1213 # Reject names that are not valid shell variable names.
80ed523f
VZ
1214 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1215 as_fn_error $? "invalid package name: $ac_useropt"
1216 ac_useropt_orig=$ac_useropt
1217 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1218 case $ac_user_opts in
1219 *"
1220"with_$ac_useropt"
1221"*) ;;
1222 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1223 ac_unrecognized_sep=', ';;
1224 esac
1225 eval with_$ac_useropt=no ;;
8414a40c
VZ
1226
1227 --x)
1228 # Obsolete; use --with-x.
1229 with_x=yes ;;
1230
1231 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1232 | --x-incl | --x-inc | --x-in | --x-i)
1233 ac_prev=x_includes ;;
1234 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1235 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1236 x_includes=$ac_optarg ;;
1237
1238 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1239 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1240 ac_prev=x_libraries ;;
1241 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1242 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1243 x_libraries=$ac_optarg ;;
1244
80ed523f
VZ
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246Try \`$0 --help' for more information"
8414a40c
VZ
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
80ed523f
VZ
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255 esac
31cb0113 1256 eval $ac_envvar=\$ac_optarg
8414a40c
VZ
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
80ed523f 1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
8414a40c 1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
80ed523f
VZ
1263 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1264 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
8414a40c
VZ
1265 ;;
1266
1267 esac
1268done
1269
1270if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
80ed523f
VZ
1272 as_fn_error $? "missing argument to $ac_option"
1273fi
1274
1275if test -n "$ac_unrecognized_opts"; then
1276 case $enable_option_checking in
1277 no) ;;
1278 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1279 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1280 esac
8414a40c
VZ
1281fi
1282
80ed523f 1283# Check all directory arguments for consistency.
31cb0113
VZ
1284for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1285 datadir sysconfdir sharedstatedir localstatedir includedir \
1286 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1287 libdir localedir mandir
8414a40c 1288do
31cb0113 1289 eval ac_val=\$$ac_var
80ed523f
VZ
1290 # Remove trailing slashes.
1291 case $ac_val in
1292 */ )
1293 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1294 eval $ac_var=\$ac_val;;
1295 esac
1296 # Be sure to have absolute directory names.
8414a40c 1297 case $ac_val in
31cb0113
VZ
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
8414a40c 1300 esac
80ed523f 1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
8414a40c
VZ
1302done
1303
1304# There might be people who depend on the old broken behavior: `$host'
1305# used to hold the argument of --host etc.
1306# FIXME: To remove some day.
1307build=$build_alias
1308host=$host_alias
1309target=$target_alias
1310
1311# FIXME: To remove some day.
1312if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
8414a40c
VZ
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318fi
1319
1320ac_tool_prefix=
1321test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323test "$silent" = yes && exec 6>/dev/null
1324
1325
31cb0113
VZ
1326ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327ac_ls_di=`ls -di .` &&
1328ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
80ed523f 1329 as_fn_error $? "working directory cannot be determined"
31cb0113 1330test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
80ed523f 1331 as_fn_error $? "pwd does not report name of working directory"
31cb0113
VZ
1332
1333
8414a40c
VZ
1334# Find the source files, if location was not specified.
1335if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
31cb0113 1337 # Try the directory containing this script, then the parent directory.
80ed523f
VZ
1338 ac_confdir=`$as_dirname -- "$as_myself" ||
1339$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1340 X"$as_myself" : 'X\(//\)[^/]' \| \
1341 X"$as_myself" : 'X\(//\)$' \| \
1342 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1343$as_echo X"$as_myself" |
31cb0113
VZ
1344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)[^/].*/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\/\)$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\).*/{
1357 s//\1/
1358 q
1359 }
1360 s/.*/./; q'`
8414a40c 1361 srcdir=$ac_confdir
31cb0113 1362 if test ! -r "$srcdir/$ac_unique_file"; then
8414a40c
VZ
1363 srcdir=..
1364 fi
1365else
1366 ac_srcdir_defaulted=no
1367fi
31cb0113
VZ
1368if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
80ed523f 1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
8414a40c 1371fi
31cb0113
VZ
1372ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373ac_abs_confdir=`(
80ed523f 1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
31cb0113
VZ
1375 pwd)`
1376# When building in place, set srcdir=.
1377if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379fi
1380# Remove unnecessary trailing slashes from srcdir.
1381# Double slashes in file names in object file debugging info
1382# mess up M-x gdb in Emacs.
1383case $srcdir in
1384*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385esac
1386for ac_var in $ac_precious_vars; do
1387 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_env_${ac_var}_value=\$${ac_var}
1389 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1390 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1391done
8414a40c
VZ
1392
1393#
1394# Report the --help message.
1395#
1396if test "$ac_init_help" = "long"; then
1397 # Omit some internal or obsolete options to make the list less imposing.
1398 # This message is too long to be a string in the A/UX 3.1 sh.
1399 cat <<_ACEOF
80ed523f 1400\`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems.
8414a40c
VZ
1401
1402Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407Defaults for the options are specified in brackets.
1408
1409Configuration:
1410 -h, --help display this help and exit
1411 --help=short display options specific to this package
1412 --help=recursive display the short help of all the included packages
1413 -V, --version display version information and exit
80ed523f 1414 -q, --quiet, --silent do not print \`checking ...' messages
8414a40c
VZ
1415 --cache-file=FILE cache test results in FILE [disabled]
1416 -C, --config-cache alias for \`--cache-file=config.cache'
1417 -n, --no-create do not create output files
1418 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1419
8414a40c
VZ
1420Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
80ed523f 1422 [$ac_default_prefix]
8414a40c 1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
80ed523f 1424 [PREFIX]
8414a40c
VZ
1425
1426By default, \`make install' will install all the files in
1427\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429for instance \`--prefix=\$HOME'.
1430
1431For better control, use the options below.
1432
1433Fine tuning of the installation directories:
80ed523f
VZ
1434 --bindir=DIR user executables [EPREFIX/bin]
1435 --sbindir=DIR system admin executables [EPREFIX/sbin]
1436 --libexecdir=DIR program executables [EPREFIX/libexec]
1437 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1438 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1439 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1440 --libdir=DIR object code libraries [EPREFIX/lib]
1441 --includedir=DIR C header files [PREFIX/include]
1442 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1443 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1444 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1445 --infodir=DIR info documentation [DATAROOTDIR/info]
1446 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1447 --mandir=DIR man documentation [DATAROOTDIR/man]
1448 --docdir=DIR documentation root [DATAROOTDIR/doc/tiff]
1449 --htmldir=DIR html documentation [DOCDIR]
1450 --dvidir=DIR dvi documentation [DOCDIR]
1451 --pdfdir=DIR pdf documentation [DOCDIR]
1452 --psdir=DIR ps documentation [DOCDIR]
8414a40c
VZ
1453_ACEOF
1454
1455 cat <<\_ACEOF
1456
1457Program names:
1458 --program-prefix=PREFIX prepend PREFIX to installed program names
1459 --program-suffix=SUFFIX append SUFFIX to installed program names
1460 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1461
1462X features:
1463 --x-includes=DIR X include files are in DIR
1464 --x-libraries=DIR X library files are in DIR
1465
1466System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
8414a40c
VZ
1469_ACEOF
1470fi
1471
1472if test -n "$ac_init_help"; then
1473 case $ac_init_help in
80ed523f 1474 short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";;
8414a40c
VZ
1475 esac
1476 cat <<\_ACEOF
1477
1478Optional Features:
80ed523f 1479 --disable-option-checking ignore unrecognized --enable/--with options
8414a40c
VZ
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
80ed523f
VZ
1482 --enable-maintainer-mode
1483 enable make rules and dependencies not useful (and
1484 sometimes confusing) to the casual installer
1485 --enable-dependency-tracking
1486 do not reject slow dependency extractors
1487 --disable-dependency-tracking
1488 speeds up one-time build
1489 --enable-ld-version-script
1490 enable linker version script (default is disabled)
31cb0113
VZ
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
8414a40c
VZ
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
80ed523f
VZ
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
8414a40c
VZ
1498 --enable-rpath Enable runtime linker paths (-R libtool option)
1499 --disable-largefile omit support for large files
1500 --disable-ccitt disable support for CCITT Group 3 & 4 algorithms
1501 --disable-packbits disable support for Macintosh PackBits algorithm
1502 --disable-lzw disable support for LZW algorithm
1503 --disable-thunder disable support for ThunderScan 4-bit RLE algorithm
1504 --disable-next disable support for NeXT 2-bit RLE algorithm
1505 --disable-logluv disable support for LogLuv high dynamic range
1506 encoding
1507 --disable-mdi disable support for Microsoft Document Imaging
1508 --disable-zlib disable Zlib usage (required for Deflate
1509 compression, enabled by default)
1510 --disable-pixarlog disable support for Pixar log-format algorithm
1511 (requires Zlib)
1512 --disable-jpeg disable IJG JPEG library usage (required for JPEG
1513 compression, enabled by default)
80ed523f
VZ
1514 --disable-old-jpeg disable support for Old JPEG compresson (read-only,
1515 enabled by default)
1516 --disable-jbig disable JBIG-KIT usage (required for ISO JBIG
1517 compression, enabled by default)
1518 --disable-lzma disable liblzma usage (required for LZMA2
1519 compression, enabled by default)
1520 --enable-jpeg12 enable libjpeg 8/12bit dual mode
8414a40c
VZ
1521 --enable-cxx enable C++ stream API building (requires C++
1522 compiler)
1523 --disable-strip-chopping
1524 disable support for strip chopping (whether or not
1525 to convert single-strip uncompressed images to
1526 mutiple strips of specified size to reduce memory
1527 usage)
80ed523f
VZ
1528 --enable-defer-strile-load
1529 enable deferred strip/tile offset/size loading
1530 (experimental)
1531 --enable-chunky-strip-read
1532 enable reading large strips in chunks for
1533 TIFFReadScanline() (experimental)
8414a40c
VZ
1534 --disable-extrasample-as-alpha
1535 the RGBA interface will treat a fourth sample with
1536 no EXTRASAMPLE_ value as being ASSOCALPHA. Many
1537 packages produce RGBA files but don't mark the alpha
1538 properly
1539 --disable-check-ycbcr-subsampling
1540 disable picking up YCbCr subsampling info from the
1541 JPEG data stream to support files lacking the tag
1542
1543Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
80ed523f 1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
8414a40c
VZ
1547 both]
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
80ed523f
VZ
1549 --with-sysroot=DIR Search for dependent libraries within DIR
1550 (or the compiler's sysroot if not specified).
8414a40c
VZ
1551 --with-docdir=DIR directory where documentation should be installed
1552 --with-zlib-include-dir=DIR
1553 location of Zlib headers
1554 --with-zlib-lib-dir=DIR location of Zlib library binary
1555 --with-jpeg-include-dir=DIR
1556 location of IJG JPEG library headers
1557 --with-jpeg-lib-dir=DIR location of IJG JPEG library binary
80ed523f
VZ
1558 --with-jbig-include-dir=DIR
1559 location of JBIG-KIT headers
1560 --with-jbig-lib-dir=DIR location of JBIG-KIT library binary
1561 --with-lzma-include-dir=DIR
1562 location of liblzma headers
1563 --with-lzma-lib-dir=DIR location of liblzma library binary
1564 --with-jpeg12-include-dir=DIR
1565 location of libjpeg 12bit headers
1566 --with-jpeg12-lib=LIBRARY
1567 path to libjpeg 12bit library
8414a40c 1568 --with-x use the X Window System
8414a40c
VZ
1569 --with-default-strip-size=SIZE
1570 default size of the strip in bytes (when strip
80ed523f 1571 chopping enabled) [[default=8192]]
8414a40c
VZ
1572
1573Some influential environment variables:
1574 CC C compiler command
1575 CFLAGS C compiler flags
1576 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1577 nonstandard directory <lib dir>
31cb0113 1578 LIBS libraries to pass to the linker, e.g. -l<library>
80ed523f 1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
31cb0113 1580 you have headers in a nonstandard directory <include dir>
8414a40c
VZ
1581 CPP C preprocessor
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 CXXCPP C++ preprocessor
80ed523f 1585 XMKMF Path to xmkmf, Makefile generator for X Window System
8414a40c
VZ
1586
1587Use these variables to override the choices made by `configure' or to help
1588it to find libraries and programs with nonstandard names/locations.
1589
1590Report bugs to <tiff@lists.maptools.org>.
1591_ACEOF
31cb0113 1592ac_status=$?
8414a40c
VZ
1593fi
1594
1595if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
8414a40c 1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
80ed523f
VZ
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
8414a40c
VZ
1601 ac_builddir=.
1602
31cb0113
VZ
1603case "$ac_dir" in
1604.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605*)
80ed523f 1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31cb0113 1607 # A ".." for each directory in $ac_dir_suffix.
80ed523f 1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31cb0113
VZ
1609 case $ac_top_builddir_sub in
1610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1612 esac ;;
1613esac
1614ac_abs_top_builddir=$ac_pwd
1615ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616# for backward compatibility:
1617ac_top_builddir=$ac_top_build_prefix
8414a40c
VZ
1618
1619case $srcdir in
31cb0113 1620 .) # We are building in place.
8414a40c 1621 ac_srcdir=.
31cb0113
VZ
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
8414a40c 1625 ac_srcdir=$srcdir$ac_dir_suffix;
31cb0113
VZ
1626 ac_top_srcdir=$srcdir
1627 ac_abs_top_srcdir=$srcdir ;;
1628 *) # Relative name.
1629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1630 ac_top_srcdir=$ac_top_build_prefix$srcdir
1631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8414a40c 1632esac
31cb0113
VZ
1633ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1634
1635 cd "$ac_dir" || { ac_status=$?; continue; }
1636 # Check for guested configure.
1637 if test -f "$ac_srcdir/configure.gnu"; then
1638 echo &&
1639 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1640 elif test -f "$ac_srcdir/configure"; then
1641 echo &&
1642 $SHELL "$ac_srcdir/configure" --help=recursive
8414a40c 1643 else
80ed523f 1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
31cb0113
VZ
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
8414a40c
VZ
1647 done
1648fi
1649
31cb0113 1650test -n "$ac_init_help" && exit $ac_status
8414a40c
VZ
1651if $ac_init_version; then
1652 cat <<\_ACEOF
80ed523f
VZ
1653LibTIFF Software configure 4.0.3
1654generated by GNU Autoconf 2.69
8414a40c 1655
80ed523f 1656Copyright (C) 2012 Free Software Foundation, Inc.
8414a40c
VZ
1657This configure script is free software; the Free Software Foundation
1658gives unlimited permission to copy, distribute and modify it.
1659_ACEOF
31cb0113 1660 exit
8414a40c 1661fi
8414a40c 1662
80ed523f
VZ
1663## ------------------------ ##
1664## Autoconf initialization. ##
1665## ------------------------ ##
8414a40c 1666
80ed523f
VZ
1667# ac_fn_c_try_compile LINENO
1668# --------------------------
1669# Try to compile conftest.$ac_ext, and return whether this succeeded.
1670ac_fn_c_try_compile ()
8414a40c 1671{
80ed523f
VZ
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 rm -f conftest.$ac_objext
1674 if { { ac_try="$ac_compile"
1675case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678esac
1679eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1680$as_echo "$ac_try_echo"; } >&5
1681 (eval "$ac_compile") 2>conftest.err
1682 ac_status=$?
1683 if test -s conftest.err; then
1684 grep -v '^ *+' conftest.err >conftest.er1
1685 cat conftest.er1 >&5
1686 mv -f conftest.er1 conftest.err
1687 fi
1688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1689 test $ac_status = 0; } && {
1690 test -z "$ac_c_werror_flag" ||
1691 test ! -s conftest.err
1692 } && test -s conftest.$ac_objext; then :
1693 ac_retval=0
1694else
1695 $as_echo "$as_me: failed program was:" >&5
1696sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 1697
80ed523f
VZ
1698 ac_retval=1
1699fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
8414a40c 1702
80ed523f 1703} # ac_fn_c_try_compile
8414a40c 1704
80ed523f
VZ
1705# ac_fn_c_try_link LINENO
1706# -----------------------
1707# Try to link conftest.$ac_ext, and return whether this succeeded.
1708ac_fn_c_try_link ()
1709{
1710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1711 rm -f conftest.$ac_objext conftest$ac_exeext
1712 if { { ac_try="$ac_link"
1713case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716esac
1717eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1718$as_echo "$ac_try_echo"; } >&5
1719 (eval "$ac_link") 2>conftest.err
1720 ac_status=$?
1721 if test -s conftest.err; then
1722 grep -v '^ *+' conftest.err >conftest.er1
1723 cat conftest.er1 >&5
1724 mv -f conftest.er1 conftest.err
1725 fi
1726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1727 test $ac_status = 0; } && {
1728 test -z "$ac_c_werror_flag" ||
1729 test ! -s conftest.err
1730 } && test -s conftest$ac_exeext && {
1731 test "$cross_compiling" = yes ||
1732 test -x conftest$ac_exeext
1733 }; then :
1734 ac_retval=0
1735else
1736 $as_echo "$as_me: failed program was:" >&5
1737sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 1738
80ed523f
VZ
1739 ac_retval=1
1740fi
1741 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1742 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1743 # interfere with the next link command; also delete a directory that is
1744 # left behind by Apple's compiler. We do this before executing the actions.
1745 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1746 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1747 as_fn_set_status $ac_retval
8414a40c 1748
80ed523f 1749} # ac_fn_c_try_link
8414a40c 1750
80ed523f
VZ
1751# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1752# -------------------------------------------------------
1753# Tests whether HEADER exists and can be compiled using the include files in
1754# INCLUDES, setting the cache variable VAR accordingly.
1755ac_fn_c_check_header_compile ()
1756{
1757 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1759$as_echo_n "checking for $2... " >&6; }
1760if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764/* end confdefs.h. */
1765$4
1766#include <$2>
8414a40c 1767_ACEOF
80ed523f
VZ
1768if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770else
1771 eval "$3=no"
1772fi
1773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774fi
1775eval ac_res=\$$3
1776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1777$as_echo "$ac_res" >&6; }
1778 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8414a40c 1779
80ed523f 1780} # ac_fn_c_check_header_compile
8414a40c 1781
80ed523f
VZ
1782# ac_fn_c_try_cpp LINENO
1783# ----------------------
1784# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785ac_fn_c_try_cpp ()
1786{
1787 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1788 if { { ac_try="$ac_cpp conftest.$ac_ext"
1789case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792esac
1793eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794$as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1796 ac_status=$?
1797 if test -s conftest.err; then
1798 grep -v '^ *+' conftest.err >conftest.er1
1799 cat conftest.er1 >&5
1800 mv -f conftest.er1 conftest.err
1801 fi
1802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1803 test $ac_status = 0; } > conftest.i && {
1804 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1805 test ! -s conftest.err
1806 }; then :
1807 ac_retval=0
1808else
1809 $as_echo "$as_me: failed program was:" >&5
1810sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 1811
80ed523f
VZ
1812 ac_retval=1
1813fi
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
8414a40c 1816
80ed523f 1817} # ac_fn_c_try_cpp
8414a40c 1818
80ed523f
VZ
1819# ac_fn_c_try_run LINENO
1820# ----------------------
1821# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1822# that executables *can* be run.
1823ac_fn_c_try_run ()
1824{
1825 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1826 if { { ac_try="$ac_link"
1827case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830esac
1831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832$as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_link") 2>&5
1834 ac_status=$?
1835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1836 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1837 { { case "(($ac_try" in
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1840esac
1841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842$as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_try") 2>&5
1844 ac_status=$?
1845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1846 test $ac_status = 0; }; }; then :
1847 ac_retval=0
1848else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 1852
80ed523f
VZ
1853 ac_retval=$ac_status
1854fi
1855 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status $ac_retval
8414a40c 1858
80ed523f 1859} # ac_fn_c_try_run
8414a40c 1860
80ed523f
VZ
1861# ac_fn_c_check_func LINENO FUNC VAR
1862# ----------------------------------
1863# Tests whether FUNC exists, setting the cache variable VAR accordingly
1864ac_fn_c_check_func ()
1865{
1866 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1868$as_echo_n "checking for $2... " >&6; }
1869if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871else
1872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1873/* end confdefs.h. */
1874/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1876#define $2 innocuous_$2
8414a40c 1877
80ed523f
VZ
1878/* System header to define __stub macros and hopefully few prototypes,
1879 which can conflict with char $2 (); below.
1880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1881 <limits.h> exists even on freestanding compilers. */
8414a40c 1882
80ed523f
VZ
1883#ifdef __STDC__
1884# include <limits.h>
1885#else
1886# include <assert.h>
1887#endif
8414a40c 1888
80ed523f 1889#undef $2
8414a40c 1890
80ed523f
VZ
1891/* Override any GCC internal prototype to avoid an error.
1892 Use char because int might match the return type of a GCC
1893 builtin and then its argument prototype would still apply. */
1894#ifdef __cplusplus
1895extern "C"
1896#endif
1897char $2 ();
1898/* The GNU C library defines this for functions which it implements
1899 to always fail with ENOSYS. Some functions are actually named
1900 something starting with __ and the normal name is an alias. */
1901#if defined __stub_$2 || defined __stub___$2
1902choke me
1903#endif
8414a40c 1904
80ed523f
VZ
1905int
1906main ()
1907{
1908return $2 ();
1909 ;
1910 return 0;
1911}
8414a40c 1912_ACEOF
80ed523f
VZ
1913if ac_fn_c_try_link "$LINENO"; then :
1914 eval "$3=yes"
1915else
1916 eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1920fi
1921eval ac_res=\$$3
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1923$as_echo "$ac_res" >&6; }
1924 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8414a40c 1925
80ed523f 1926} # ac_fn_c_check_func
8414a40c 1927
80ed523f
VZ
1928# ac_fn_cxx_try_compile LINENO
1929# ----------------------------
1930# Try to compile conftest.$ac_ext, and return whether this succeeded.
1931ac_fn_cxx_try_compile ()
1932{
1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1934 rm -f conftest.$ac_objext
1935 if { { ac_try="$ac_compile"
1936case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939esac
1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1941$as_echo "$ac_try_echo"; } >&5
1942 (eval "$ac_compile") 2>conftest.err
1943 ac_status=$?
1944 if test -s conftest.err; then
1945 grep -v '^ *+' conftest.err >conftest.er1
1946 cat conftest.er1 >&5
1947 mv -f conftest.er1 conftest.err
1948 fi
1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1950 test $ac_status = 0; } && {
1951 test -z "$ac_cxx_werror_flag" ||
1952 test ! -s conftest.err
1953 } && test -s conftest.$ac_objext; then :
1954 ac_retval=0
1955else
1956 $as_echo "$as_me: failed program was:" >&5
1957sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 1958
80ed523f
VZ
1959 ac_retval=1
1960fi
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
8414a40c 1963
80ed523f 1964} # ac_fn_cxx_try_compile
8414a40c 1965
80ed523f
VZ
1966# ac_fn_cxx_try_cpp LINENO
1967# ------------------------
1968# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969ac_fn_cxx_try_cpp ()
1970{
1971 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972 if { { ac_try="$ac_cpp conftest.$ac_ext"
1973case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976esac
1977eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1978$as_echo "$ac_try_echo"; } >&5
1979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1980 ac_status=$?
1981 if test -s conftest.err; then
1982 grep -v '^ *+' conftest.err >conftest.er1
1983 cat conftest.er1 >&5
1984 mv -f conftest.er1 conftest.err
1985 fi
1986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1987 test $ac_status = 0; } > conftest.i && {
1988 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1989 test ! -s conftest.err
1990 }; then :
1991 ac_retval=0
31cb0113 1992else
80ed523f
VZ
1993 $as_echo "$as_me: failed program was:" >&5
1994sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=1
8414a40c 1997fi
80ed523f
VZ
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
8414a40c 2000
80ed523f
VZ
2001} # ac_fn_cxx_try_cpp
2002
2003# ac_fn_cxx_try_link LINENO
2004# -------------------------
2005# Try to link conftest.$ac_ext, and return whether this succeeded.
2006ac_fn_cxx_try_link ()
2007{
2008 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2009 rm -f conftest.$ac_objext conftest$ac_exeext
2010 if { { ac_try="$ac_link"
2011case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014esac
2015eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2016$as_echo "$ac_try_echo"; } >&5
2017 (eval "$ac_link") 2>conftest.err
2018 ac_status=$?
2019 if test -s conftest.err; then
2020 grep -v '^ *+' conftest.err >conftest.er1
2021 cat conftest.er1 >&5
2022 mv -f conftest.er1 conftest.err
8414a40c 2023 fi
80ed523f
VZ
2024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2025 test $ac_status = 0; } && {
2026 test -z "$ac_cxx_werror_flag" ||
2027 test ! -s conftest.err
2028 } && test -s conftest$ac_exeext && {
2029 test "$cross_compiling" = yes ||
2030 test -x conftest$ac_exeext
2031 }; then :
2032 ac_retval=0
8414a40c 2033else
80ed523f
VZ
2034 $as_echo "$as_me: failed program was:" >&5
2035sed 's/^/| /' conftest.$ac_ext >&5
8414a40c 2036
80ed523f 2037 ac_retval=1
8414a40c 2038fi
80ed523f
VZ
2039 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2040 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2041 # interfere with the next link command; also delete a directory that is
2042 # left behind by Apple's compiler. We do this before executing the actions.
2043 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2045 as_fn_set_status $ac_retval
8414a40c 2046
80ed523f 2047} # ac_fn_cxx_try_link
8414a40c 2048
80ed523f
VZ
2049# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2050# -------------------------------------------------------
2051# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2052# the include files in INCLUDES and setting the cache variable VAR
2053# accordingly.
2054ac_fn_c_check_header_mongrel ()
2055{
2056 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2057 if eval \${$3+:} false; then :
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2059$as_echo_n "checking for $2... " >&6; }
2060if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062fi
2063eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065$as_echo "$ac_res" >&6; }
2066else
2067 # Is the header compilable?
2068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2069$as_echo_n "checking $2 usability... " >&6; }
2070cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071/* end confdefs.h. */
2072$4
2073#include <$2>
2074_ACEOF
2075if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_header_compiler=yes
2077else
2078 ac_header_compiler=no
2079fi
2080rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2082$as_echo "$ac_header_compiler" >&6; }
8414a40c 2083
80ed523f
VZ
2084# Is the header present?
2085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2086$as_echo_n "checking $2 presence... " >&6; }
2087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088/* end confdefs.h. */
2089#include <$2>
2090_ACEOF
2091if ac_fn_c_try_cpp "$LINENO"; then :
2092 ac_header_preproc=yes
2093else
2094 ac_header_preproc=no
2095fi
2096rm -f conftest.err conftest.i conftest.$ac_ext
2097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2098$as_echo "$ac_header_preproc" >&6; }
8414a40c 2099
80ed523f
VZ
2100# So? What about this header?
2101case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2102 yes:no: )
2103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2104$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2105 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2106$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2107 ;;
2108 no:yes:* )
2109 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2110$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2112$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2114$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2116$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2118$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2119( $as_echo "## -------------------------------------- ##
2120## Report this to tiff@lists.maptools.org ##
2121## -------------------------------------- ##"
2122 ) | sed "s/^/$as_me: WARNING: /" >&2
2123 ;;
2124esac
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126$as_echo_n "checking for $2... " >&6; }
2127if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129else
2130 eval "$3=\$ac_header_compiler"
2131fi
2132eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134$as_echo "$ac_res" >&6; }
2135fi
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8414a40c 2137
80ed523f 2138} # ac_fn_c_check_header_mongrel
8414a40c 2139
80ed523f
VZ
2140# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2141# -------------------------------------------
2142# Tests whether TYPE exists after having included INCLUDES, setting cache
2143# variable VAR accordingly.
2144ac_fn_c_check_type ()
2145{
2146 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2148$as_echo_n "checking for $2... " >&6; }
2149if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151else
2152 eval "$3=no"
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154/* end confdefs.h. */
2155$4
2156int
2157main ()
2158{
2159if (sizeof ($2))
2160 return 0;
2161 ;
2162 return 0;
2163}
2164_ACEOF
2165if ac_fn_c_try_compile "$LINENO"; then :
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167/* end confdefs.h. */
2168$4
2169int
2170main ()
2171{
2172if (sizeof (($2)))
2173 return 0;
2174 ;
2175 return 0;
2176}
2177_ACEOF
2178if ac_fn_c_try_compile "$LINENO"; then :
8414a40c 2179
80ed523f
VZ
2180else
2181 eval "$3=yes"
2182fi
2183rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186fi
2187eval ac_res=\$$3
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2189$as_echo "$ac_res" >&6; }
2190 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
8414a40c 2191
80ed523f 2192} # ac_fn_c_check_type
8414a40c 2193
80ed523f
VZ
2194# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2195# --------------------------------------------
2196# Tries to find the compile-time value of EXPR in a program that includes
2197# INCLUDES, setting VAR accordingly. Returns whether the value could be
2198# computed
2199ac_fn_c_compute_int ()
2200{
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 if test "$cross_compiling" = yes; then
2203 # Depending upon the size, compute the lo and hi bounds.
2204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205/* end confdefs.h. */
2206$4
2207int
2208main ()
2209{
2210static int test_array [1 - 2 * !(($2) >= 0)];
2211test_array [0] = 0;
2212return test_array [0];
8414a40c 2213
80ed523f
VZ
2214 ;
2215 return 0;
2216}
2217_ACEOF
2218if ac_fn_c_try_compile "$LINENO"; then :
2219 ac_lo=0 ac_mid=0
2220 while :; do
2221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2222/* end confdefs.h. */
2223$4
2224int
2225main ()
2226{
2227static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228test_array [0] = 0;
2229return test_array [0];
8414a40c 2230
80ed523f
VZ
2231 ;
2232 return 0;
2233}
2234_ACEOF
2235if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid; break
2237else
2238 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2239 if test $ac_lo -le $ac_mid; then
2240 ac_lo= ac_hi=
2241 break
2242 fi
2243 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2244fi
2245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 done
2247else
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249/* end confdefs.h. */
2250$4
2251int
2252main ()
2253{
2254static int test_array [1 - 2 * !(($2) < 0)];
2255test_array [0] = 0;
2256return test_array [0];
8414a40c 2257
80ed523f
VZ
2258 ;
2259 return 0;
2260}
2261_ACEOF
2262if ac_fn_c_try_compile "$LINENO"; then :
2263 ac_hi=-1 ac_mid=-1
2264 while :; do
2265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266/* end confdefs.h. */
2267$4
2268int
2269main ()
2270{
2271static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272test_array [0] = 0;
2273return test_array [0];
8414a40c 2274
80ed523f
VZ
2275 ;
2276 return 0;
2277}
2278_ACEOF
2279if ac_fn_c_try_compile "$LINENO"; then :
2280 ac_lo=$ac_mid; break
2281else
2282 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2283 if test $ac_mid -le $ac_hi; then
2284 ac_lo= ac_hi=
2285 break
2286 fi
2287 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2288fi
2289rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291else
2292 ac_lo= ac_hi=
2293fi
2294rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295fi
2296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297# Binary search between lo and hi bounds.
2298while test "x$ac_lo" != "x$ac_hi"; do
2299 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$4
2303int
2304main ()
2305{
2306static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307test_array [0] = 0;
2308return test_array [0];
8414a40c 2309
80ed523f
VZ
2310 ;
2311 return 0;
2312}
2313_ACEOF
2314if ac_fn_c_try_compile "$LINENO"; then :
2315 ac_hi=$ac_mid
2316else
2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318fi
2319rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320done
2321case $ac_lo in #((
2322?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323'') ac_retval=1 ;;
2324esac
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327/* end confdefs.h. */
2328$4
2329static long int longval () { return $2; }
2330static unsigned long int ulongval () { return $2; }
2331#include <stdio.h>
2332#include <stdlib.h>
2333int
2334main ()
2335{
8414a40c 2336
80ed523f
VZ
2337 FILE *f = fopen ("conftest.val", "w");
2338 if (! f)
2339 return 1;
2340 if (($2) < 0)
2341 {
2342 long int i = longval ();
2343 if (i != ($2))
2344 return 1;
2345 fprintf (f, "%ld", i);
2346 }
2347 else
2348 {
2349 unsigned long int i = ulongval ();
2350 if (i != ($2))
2351 return 1;
2352 fprintf (f, "%lu", i);
2353 }
2354 /* Do not output a trailing newline, as this causes \r\n confusion
2355 on some platforms. */
2356 return ferror (f) || fclose (f) != 0;
8414a40c 2357
80ed523f
VZ
2358 ;
2359 return 0;
2360}
2361_ACEOF
2362if ac_fn_c_try_run "$LINENO"; then :
2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364else
2365 ac_retval=1
2366fi
2367rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368 conftest.$ac_objext conftest.beam conftest.$ac_ext
2369rm -f conftest.val
8414a40c 2370
80ed523f
VZ
2371 fi
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
8414a40c 2374
80ed523f
VZ
2375} # ac_fn_c_compute_int
2376cat >config.log <<_ACEOF
2377This file contains any messages produced by compilers while
2378running configure, to aid debugging if configure makes a mistake.
8414a40c 2379
80ed523f
VZ
2380It was created by LibTIFF Software $as_me 4.0.3, which was
2381generated by GNU Autoconf 2.69. Invocation command line was
8414a40c 2382
80ed523f 2383 $ $0 $@
8414a40c 2384
80ed523f
VZ
2385_ACEOF
2386exec 5>>config.log
2387{
2388cat <<_ASUNAME
2389## --------- ##
2390## Platform. ##
2391## --------- ##
8414a40c 2392
80ed523f
VZ
2393hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397uname -v = `(uname -v) 2>/dev/null || echo unknown`
8414a40c 2398
80ed523f
VZ
2399/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2400/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
8414a40c 2401
80ed523f
VZ
2402/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2403/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2404/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2405/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2406/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2407/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2408/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
8414a40c 2409
80ed523f
VZ
2410_ASUNAME
2411
2412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413for as_dir in $PATH
2414do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 $as_echo "PATH: $as_dir"
2418 done
2419IFS=$as_save_IFS
2420
2421} >&5
2422
2423cat >&5 <<_ACEOF
2424
2425
2426## ----------- ##
2427## Core tests. ##
2428## ----------- ##
2429
2430_ACEOF
2431
2432
2433# Keep a trace of the command line.
2434# Strip out --no-create and --no-recursion so they do not pile up.
2435# Strip out --silent because we don't want to record it for future runs.
2436# Also quote any args containing shell meta-characters.
2437# Make two passes to allow for proper duplicate-argument suppression.
2438ac_configure_args=
2439ac_configure_args0=
2440ac_configure_args1=
2441ac_must_keep_next=false
2442for ac_pass in 1 2
2443do
2444 for ac_arg
2445 do
2446 case $ac_arg in
2447 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2448 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2449 | -silent | --silent | --silen | --sile | --sil)
2450 continue ;;
2451 *\'*)
2452 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2453 esac
2454 case $ac_pass in
2455 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2456 2)
2457 as_fn_append ac_configure_args1 " '$ac_arg'"
2458 if test $ac_must_keep_next = true; then
2459 ac_must_keep_next=false # Got value, back to normal.
2460 else
2461 case $ac_arg in
2462 *=* | --config-cache | -C | -disable-* | --disable-* \
2463 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2464 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2465 | -with-* | --with-* | -without-* | --without-* | --x)
2466 case "$ac_configure_args0 " in
2467 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2468 esac
2469 ;;
2470 -* ) ac_must_keep_next=true ;;
2471 esac
2472 fi
2473 as_fn_append ac_configure_args " '$ac_arg'"
2474 ;;
2475 esac
2476 done
2477done
2478{ ac_configure_args0=; unset ac_configure_args0;}
2479{ ac_configure_args1=; unset ac_configure_args1;}
2480
2481# When interrupted or exit'd, cleanup temporary files, and complete
2482# config.log. We remove comments because anyway the quotes in there
2483# would cause problems or look ugly.
2484# WARNING: Use '\'' to represent an apostrophe within the trap.
2485# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2486trap 'exit_status=$?
2487 # Save into config.log some information that might help in debugging.
2488 {
2489 echo
2490
2491 $as_echo "## ---------------- ##
2492## Cache variables. ##
2493## ---------------- ##"
2494 echo
2495 # The following way of writing the cache mishandles newlines in values,
2496(
2497 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2498 eval ac_val=\$$ac_var
2499 case $ac_val in #(
2500 *${as_nl}*)
2501 case $ac_var in #(
2502 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2503$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2504 esac
2505 case $ac_var in #(
2506 _ | IFS | as_nl) ;; #(
2507 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2508 *) { eval $ac_var=; unset $ac_var;} ;;
2509 esac ;;
2510 esac
2511 done
2512 (set) 2>&1 |
2513 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2514 *${as_nl}ac_space=\ *)
2515 sed -n \
2516 "s/'\''/'\''\\\\'\'''\''/g;
2517 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2518 ;; #(
2519 *)
2520 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2521 ;;
2522 esac |
2523 sort
2524)
2525 echo
2526
2527 $as_echo "## ----------------- ##
2528## Output variables. ##
2529## ----------------- ##"
2530 echo
2531 for ac_var in $ac_subst_vars
2532 do
2533 eval ac_val=\$$ac_var
2534 case $ac_val in
2535 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2536 esac
2537 $as_echo "$ac_var='\''$ac_val'\''"
2538 done | sort
2539 echo
2540
2541 if test -n "$ac_subst_files"; then
2542 $as_echo "## ------------------- ##
2543## File substitutions. ##
2544## ------------------- ##"
2545 echo
2546 for ac_var in $ac_subst_files
2547 do
2548 eval ac_val=\$$ac_var
2549 case $ac_val in
2550 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2551 esac
2552 $as_echo "$ac_var='\''$ac_val'\''"
2553 done | sort
2554 echo
2555 fi
2556
2557 if test -s confdefs.h; then
2558 $as_echo "## ----------- ##
2559## confdefs.h. ##
2560## ----------- ##"
2561 echo
2562 cat confdefs.h
2563 echo
2564 fi
2565 test "$ac_signal" != 0 &&
2566 $as_echo "$as_me: caught signal $ac_signal"
2567 $as_echo "$as_me: exit $exit_status"
2568 } >&5
2569 rm -f core *.core core.conftest.* &&
2570 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2571 exit $exit_status
2572' 0
2573for ac_signal in 1 2 13 15; do
2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575done
2576ac_signal=0
2577
2578# confdefs.h avoids OS command line length limits that DEFS can exceed.
2579rm -f -r conftest* confdefs.h
2580
2581$as_echo "/* confdefs.h */" > confdefs.h
2582
2583# Predefined preprocessor variables.
2584
2585cat >>confdefs.h <<_ACEOF
2586#define PACKAGE_NAME "$PACKAGE_NAME"
2587_ACEOF
2588
2589cat >>confdefs.h <<_ACEOF
2590#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591_ACEOF
2592
2593cat >>confdefs.h <<_ACEOF
2594#define PACKAGE_VERSION "$PACKAGE_VERSION"
2595_ACEOF
2596
2597cat >>confdefs.h <<_ACEOF
2598#define PACKAGE_STRING "$PACKAGE_STRING"
2599_ACEOF
2600
2601cat >>confdefs.h <<_ACEOF
2602#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603_ACEOF
2604
2605cat >>confdefs.h <<_ACEOF
2606#define PACKAGE_URL "$PACKAGE_URL"
2607_ACEOF
2608
2609
2610# Let the site file select an alternate cache file if it wants to.
2611# Prefer an explicitly selected file to automatically selected ones.
2612ac_site_file1=NONE
2613ac_site_file2=NONE
2614if test -n "$CONFIG_SITE"; then
2615 # We do not want a PATH search for config.site.
2616 case $CONFIG_SITE in #((
2617 -*) ac_site_file1=./$CONFIG_SITE;;
2618 */*) ac_site_file1=$CONFIG_SITE;;
2619 *) ac_site_file1=./$CONFIG_SITE;;
2620 esac
2621elif test "x$prefix" != xNONE; then
2622 ac_site_file1=$prefix/share/config.site
2623 ac_site_file2=$prefix/etc/config.site
2624else
2625 ac_site_file1=$ac_default_prefix/share/config.site
2626 ac_site_file2=$ac_default_prefix/etc/config.site
2627fi
2628for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629do
2630 test "x$ac_site_file" = xNONE && continue
2631 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2633$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2634 sed 's/^/| /' "$ac_site_file" >&5
2635 . "$ac_site_file" \
2636 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2637$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2638as_fn_error $? "failed to load site script $ac_site_file
2639See \`config.log' for more details" "$LINENO" 5; }
2640 fi
2641done
2642
2643if test -r "$cache_file"; then
2644 # Some versions of bash will fail to source /dev/null (special files
2645 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2646 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2648$as_echo "$as_me: loading cache $cache_file" >&6;}
2649 case $cache_file in
2650 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2651 *) . "./$cache_file";;
2652 esac
2653 fi
2654else
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2656$as_echo "$as_me: creating cache $cache_file" >&6;}
2657 >$cache_file
2658fi
2659
2660# Check that the precious variables saved in the cache have kept the same
2661# value.
2662ac_cache_corrupted=false
2663for ac_var in $ac_precious_vars; do
2664 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2665 eval ac_new_set=\$ac_env_${ac_var}_set
2666 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2667 eval ac_new_val=\$ac_env_${ac_var}_value
2668 case $ac_old_set,$ac_new_set in
2669 set,)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2671$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2672 ac_cache_corrupted=: ;;
2673 ,set)
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2675$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2676 ac_cache_corrupted=: ;;
2677 ,);;
2678 *)
2679 if test "x$ac_old_val" != "x$ac_new_val"; then
2680 # differences in whitespace do not lead to failure.
2681 ac_old_val_w=`echo x $ac_old_val`
2682 ac_new_val_w=`echo x $ac_new_val`
2683 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2684 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2685$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2686 ac_cache_corrupted=:
2687 else
2688 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2689$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2690 eval $ac_var=\$ac_old_val
2691 fi
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2693$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2695$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2696 fi;;
2697 esac
2698 # Pass precious variables to config.status.
2699 if test "$ac_new_set" = set; then
2700 case $ac_new_val in
2701 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2702 *) ac_arg=$ac_var=$ac_new_val ;;
2703 esac
2704 case " $ac_configure_args " in
2705 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2706 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2707 esac
2708 fi
2709done
2710if $ac_cache_corrupted; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2712$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2714$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2715 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2716fi
2717## -------------------- ##
2718## Main body of script. ##
2719## -------------------- ##
2720
2721ac_ext=c
2722ac_cpp='$CPP $CPPFLAGS'
2723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c
VZ
2726
2727
2728ac_aux_dir=
31cb0113
VZ
2729for ac_dir in config "$srcdir"/config; do
2730 if test -f "$ac_dir/install-sh"; then
8414a40c
VZ
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2733 break
31cb0113 2734 elif test -f "$ac_dir/install.sh"; then
8414a40c
VZ
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2737 break
31cb0113 2738 elif test -f "$ac_dir/shtool"; then
8414a40c
VZ
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 break
2742 fi
2743done
2744if test -z "$ac_aux_dir"; then
80ed523f 2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
8414a40c 2746fi
8414a40c 2747
31cb0113
VZ
2748# These three variables are undocumented and unsupported,
2749# and are intended to be withdrawn in a future Autoconf release.
2750# They can cause serious problems if a builder's source tree is in a directory
2751# whose full name contains unusual characters.
2752ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755
2756
8414a40c
VZ
2757
2758ac_ext=c
2759ac_cpp='$CPP $CPPFLAGS'
2760ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765# Make sure we can run config.sub.
31cb0113 2766$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
80ed523f 2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
8414a40c 2768
80ed523f
VZ
2769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770$as_echo_n "checking build system type... " >&6; }
2771if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
8414a40c 2773else
31cb0113
VZ
2774 ac_build_alias=$build_alias
2775test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777test "x$ac_build_alias" = x &&
80ed523f 2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
31cb0113 2779ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
80ed523f 2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
8414a40c
VZ
2781
2782fi
80ed523f
VZ
2783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784$as_echo "$ac_cv_build" >&6; }
31cb0113
VZ
2785case $ac_cv_build in
2786*-*-*) ;;
80ed523f 2787*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
31cb0113 2788esac
8414a40c 2789build=$ac_cv_build
31cb0113
VZ
2790ac_save_IFS=$IFS; IFS='-'
2791set x $ac_cv_build
2792shift
2793build_cpu=$1
2794build_vendor=$2
2795shift; shift
2796# Remember, the first character of IFS is used to create $*,
2797# except with old shells:
2798build_os=$*
2799IFS=$ac_save_IFS
2800case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
80ed523f
VZ
2803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804$as_echo_n "checking host system type... " >&6; }
2805if ${ac_cv_host+:} false; then :
2806 $as_echo_n "(cached) " >&6
8414a40c 2807else
31cb0113
VZ
2808 if test "x$host_alias" = x; then
2809 ac_cv_host=$ac_cv_build
8414a40c 2810else
31cb0113 2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
80ed523f 2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
31cb0113 2813fi
8414a40c
VZ
2814
2815fi
80ed523f
VZ
2816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817$as_echo "$ac_cv_host" >&6; }
31cb0113
VZ
2818case $ac_cv_host in
2819*-*-*) ;;
80ed523f 2820*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
31cb0113
VZ
2821esac
2822host=$ac_cv_host
2823ac_save_IFS=$IFS; IFS='-'
2824set x $ac_cv_host
2825shift
2826host_cpu=$1
2827host_vendor=$2
2828shift; shift
2829# Remember, the first character of IFS is used to create $*,
2830# except with old shells:
2831host_os=$*
2832IFS=$ac_save_IFS
2833case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
8414a40c
VZ
2834
2835
8414a40c 2836
80ed523f
VZ
2837am__api_version='1.12'
2838
8414a40c
VZ
2839# Find a good install program. We prefer a C program (faster),
2840# so one script is as good as another. But avoid the broken or
2841# incompatible versions:
2842# SysV /etc/install, /usr/sbin/install
2843# SunOS /usr/etc/install
2844# IRIX /sbin/install
2845# AIX /bin/install
2846# AmigaOS /C/install, which installs bootblocks on floppy discs
2847# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2848# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2849# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2850# OS/2's system install, which has a completely different semantic
2851# ./install, which can be erroneously created by make from ./install.sh.
80ed523f
VZ
2852# Reject install programs that cannot install multiple files.
2853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2854$as_echo_n "checking for a BSD-compatible install... " >&6; }
8414a40c 2855if test -z "$INSTALL"; then
80ed523f
VZ
2856if ${ac_cv_path_install+:} false; then :
2857 $as_echo_n "(cached) " >&6
8414a40c
VZ
2858else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860for as_dir in $PATH
2861do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
80ed523f
VZ
2864 # Account for people who put trailing slashes in PATH elements.
2865case $as_dir/ in #((
2866 ./ | .// | /[cC]/* | \
8414a40c 2867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
80ed523f 2868 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
8414a40c
VZ
2869 /usr/ucb/* ) ;;
2870 *)
2871 # OSF1 and SCO ODT 3.0 have their own names for install.
2872 # Don't use installbsd from OSF since it installs stuff as root
2873 # by default.
2874 for ac_prog in ginstall scoinst install; do
2875 for ac_exec_ext in '' $ac_executable_extensions; do
80ed523f 2876 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
8414a40c
VZ
2877 if test $ac_prog = install &&
2878 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2879 # AIX install. It has an incompatible calling convention.
2880 :
2881 elif test $ac_prog = install &&
2882 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2883 # program-specific install script used by HP pwplus--don't use.
2884 :
2885 else
80ed523f
VZ
2886 rm -rf conftest.one conftest.two conftest.dir
2887 echo one > conftest.one
2888 echo two > conftest.two
2889 mkdir conftest.dir
2890 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2891 test -s conftest.one && test -s conftest.two &&
2892 test -s conftest.dir/conftest.one &&
2893 test -s conftest.dir/conftest.two
2894 then
2895 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2896 break 3
2897 fi
8414a40c
VZ
2898 fi
2899 fi
2900 done
2901 done
2902 ;;
2903esac
80ed523f
VZ
2904
2905 done
31cb0113 2906IFS=$as_save_IFS
8414a40c 2907
80ed523f 2908rm -rf conftest.one conftest.two conftest.dir
8414a40c
VZ
2909
2910fi
2911 if test "${ac_cv_path_install+set}" = set; then
2912 INSTALL=$ac_cv_path_install
2913 else
31cb0113
VZ
2914 # As a last resort, use the slow shell script. Don't cache a
2915 # value for INSTALL within a source directory, because that will
8414a40c 2916 # break other packages using the cache if that directory is
31cb0113 2917 # removed, or if the value is a relative name.
8414a40c
VZ
2918 INSTALL=$ac_install_sh
2919 fi
2920fi
80ed523f
VZ
2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2922$as_echo "$INSTALL" >&6; }
8414a40c
VZ
2923
2924# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2925# It thinks the first close brace ends the variable substitution.
2926test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2927
2928test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929
2930test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931
80ed523f
VZ
2932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2933$as_echo_n "checking whether build environment is sane... " >&6; }
2934# Reject unsafe characters in $srcdir or the absolute working directory
2935# name. Accept space and tab only in the latter.
2936am_lf='
2937'
2938case `pwd` in
2939 *[\\\"\#\$\&\'\`$am_lf]*)
2940 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2941esac
2942case $srcdir in
2943 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2944 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2945esac
2946
2947# Do 'set' in a subshell so we don't clobber the current shell's
8414a40c
VZ
2948# arguments. Must try -L first in case configure is actually a
2949# symlink; some systems play weird games with the mod time of symlinks
2950# (eg FreeBSD returns the mod time of the symlink's containing
2951# directory).
2952if (
80ed523f
VZ
2953 am_has_slept=no
2954 for am_try in 1 2; do
2955 echo "timestamp, slept: $am_has_slept" > conftest.file
2956 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2957 if test "$*" = "X"; then
2958 # -L didn't work.
2959 set X `ls -t "$srcdir/configure" conftest.file`
2960 fi
2961 if test "$*" != "X $srcdir/configure conftest.file" \
2962 && test "$*" != "X conftest.file $srcdir/configure"; then
2963
2964 # If neither matched, then we have a broken ls. This can happen
2965 # if, for instance, CONFIG_SHELL is bash and it inherits a
2966 # broken ls alias from the environment. This has actually
2967 # happened. Such a system could not be considered "sane".
2968 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2969 alias in your environment" "$LINENO" 5
2970 fi
2971 if test "$2" = conftest.file || test $am_try -eq 2; then
2972 break
2973 fi
2974 # Just in case.
2975 sleep 1
2976 am_has_slept=yes
2977 done
8414a40c
VZ
2978 test "$2" = conftest.file
2979 )
2980then
2981 # Ok.
2982 :
2983else
80ed523f
VZ
2984 as_fn_error $? "newly created file is older than distributed files!
2985Check your system clock" "$LINENO" 5
8414a40c 2986fi
80ed523f
VZ
2987{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2988$as_echo "yes" >&6; }
2989# If we didn't sleep, we still need to ensure time stamps of config.status and
2990# generated files are strictly newer.
2991am_sleep_pid=
2992if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2993 ( sleep 1 ) &
2994 am_sleep_pid=$!
2995fi
2996
2997rm -f conftest.file
2998
8414a40c 2999test "$program_prefix" != NONE &&
31cb0113 3000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
8414a40c
VZ
3001# Use a double $ so make ignores it.
3002test "$program_suffix" != NONE &&
31cb0113 3003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
80ed523f 3004# Double any \ or $.
8414a40c 3005# By default was `s,x,x', remove it if useless.
80ed523f
VZ
3006ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
8414a40c
VZ
3008
3009# expand $ac_aux_dir to an absolute path
3010am_aux_dir=`cd $ac_aux_dir && pwd`
3011
80ed523f
VZ
3012if test x"${MISSING+set}" != xset; then
3013 case $am_aux_dir in
3014 *\ * | *\ *)
3015 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3016 *)
3017 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3018 esac
3019fi
8414a40c
VZ
3020# Use eval to expand $SHELL
3021if eval "$MISSING --run true"; then
3022 am_missing_run="$MISSING --run "
3023else
3024 am_missing_run=
80ed523f
VZ
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3026$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3027fi
3028
3029if test x"${install_sh}" != xset; then
3030 case $am_aux_dir in
3031 *\ * | *\ *)
3032 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3033 *)
3034 install_sh="\${SHELL} $am_aux_dir/install-sh"
3035 esac
3036fi
3037
3038# Installed binaries are usually stripped using 'strip' when the user
3039# run "make install-strip". However 'strip' might not be the right
3040# tool to use in cross-compilation environments, therefore Automake
3041# will honor the 'STRIP' environment variable to overrule this program.
3042if test "$cross_compiling" != no; then
3043 if test -n "$ac_tool_prefix"; then
3044 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3045set dummy ${ac_tool_prefix}strip; ac_word=$2
3046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3047$as_echo_n "checking for $ac_word... " >&6; }
3048if ${ac_cv_prog_STRIP+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050else
3051 if test -n "$STRIP"; then
3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053else
3054as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055for as_dir in $PATH
3056do
3057 IFS=$as_save_IFS
3058 test -z "$as_dir" && as_dir=.
3059 for ac_exec_ext in '' $ac_executable_extensions; do
3060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3061 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3063 break 2
3064 fi
3065done
3066 done
3067IFS=$as_save_IFS
3068
3069fi
3070fi
3071STRIP=$ac_cv_prog_STRIP
3072if test -n "$STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074$as_echo "$STRIP" >&6; }
3075else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077$as_echo "no" >&6; }
3078fi
3079
3080
3081fi
3082if test -z "$ac_cv_prog_STRIP"; then
3083 ac_ct_STRIP=$STRIP
3084 # Extract the first word of "strip", so it can be a program name with args.
3085set dummy strip; ac_word=$2
3086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3087$as_echo_n "checking for $ac_word... " >&6; }
3088if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090else
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093else
3094as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095for as_dir in $PATH
3096do
3097 IFS=$as_save_IFS
3098 test -z "$as_dir" && as_dir=.
3099 for ac_exec_ext in '' $ac_executable_extensions; do
3100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3101 ac_cv_prog_ac_ct_STRIP="strip"
3102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3103 break 2
3104 fi
3105done
3106 done
3107IFS=$as_save_IFS
3108
3109fi
3110fi
3111ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112if test -n "$ac_ct_STRIP"; then
3113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3114$as_echo "$ac_ct_STRIP" >&6; }
3115else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117$as_echo "no" >&6; }
3118fi
3119
3120 if test "x$ac_ct_STRIP" = x; then
3121 STRIP=":"
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124yes:)
3125{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3126$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3127ac_tool_warned=yes ;;
3128esac
3129 STRIP=$ac_ct_STRIP
3130 fi
3131else
3132 STRIP="$ac_cv_prog_STRIP"
3133fi
3134
3135fi
3136INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3137
3138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3139$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3140if test -z "$MKDIR_P"; then
3141 if ${ac_cv_path_mkdir+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146do
3147 IFS=$as_save_IFS
3148 test -z "$as_dir" && as_dir=.
3149 for ac_prog in mkdir gmkdir; do
3150 for ac_exec_ext in '' $ac_executable_extensions; do
3151 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3152 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3153 'mkdir (GNU coreutils) '* | \
3154 'mkdir (coreutils) '* | \
3155 'mkdir (fileutils) '4.1*)
3156 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3157 break 3;;
3158 esac
3159 done
3160 done
8414a40c 3161 done
80ed523f
VZ
3162IFS=$as_save_IFS
3163
3164fi
3165
3166 test -d ./--version && rmdir ./--version
3167 if test "${ac_cv_path_mkdir+set}" = set; then
3168 MKDIR_P="$ac_cv_path_mkdir -p"
8414a40c 3169 else
80ed523f
VZ
3170 # As a last resort, use the slow shell script. Don't cache a
3171 # value for MKDIR_P within a source directory, because that will
3172 # break other packages using the cache if that directory is
3173 # removed, or if the value is a relative name.
3174 MKDIR_P="$ac_install_sh -d"
8414a40c
VZ
3175 fi
3176fi
80ed523f
VZ
3177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178$as_echo "$MKDIR_P" >&6; }
8414a40c
VZ
3179
3180for ac_prog in gawk mawk nawk awk
3181do
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183set dummy $ac_prog; ac_word=$2
80ed523f
VZ
3184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185$as_echo_n "checking for $ac_word... " >&6; }
3186if ${ac_cv_prog_AWK+:} false; then :
3187 $as_echo_n "(cached) " >&6
8414a40c
VZ
3188else
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191else
3192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193for as_dir in $PATH
3194do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3199 ac_cv_prog_AWK="$ac_prog"
80ed523f 3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3201 break 2
3202 fi
3203done
80ed523f 3204 done
31cb0113 3205IFS=$as_save_IFS
8414a40c
VZ
3206
3207fi
3208fi
3209AWK=$ac_cv_prog_AWK
3210if test -n "$AWK"; then
80ed523f
VZ
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3212$as_echo "$AWK" >&6; }
8414a40c 3213else
80ed523f
VZ
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215$as_echo "no" >&6; }
8414a40c
VZ
3216fi
3217
31cb0113 3218
8414a40c
VZ
3219 test -n "$AWK" && break
3220done
3221
80ed523f
VZ
3222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3223$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3224set x ${MAKE-make}
3225ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3226if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3227 $as_echo_n "(cached) " >&6
8414a40c
VZ
3228else
3229 cat >conftest.make <<\_ACEOF
31cb0113 3230SHELL = /bin/sh
8414a40c 3231all:
31cb0113 3232 @echo '@@@%%%=$(MAKE)=@@@%%%'
8414a40c 3233_ACEOF
80ed523f 3234# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
31cb0113
VZ
3235case `${MAKE-make} -f conftest.make 2>/dev/null` in
3236 *@@@%%%=?*=@@@%%%*)
3237 eval ac_cv_prog_make_${ac_make}_set=yes;;
3238 *)
3239 eval ac_cv_prog_make_${ac_make}_set=no;;
3240esac
8414a40c
VZ
3241rm -f conftest.make
3242fi
31cb0113 3243if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
80ed523f
VZ
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245$as_echo "yes" >&6; }
8414a40c
VZ
3246 SET_MAKE=
3247else
80ed523f
VZ
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249$as_echo "no" >&6; }
8414a40c
VZ
3250 SET_MAKE="MAKE=${MAKE-make}"
3251fi
3252
3253rm -rf .tst 2>/dev/null
3254mkdir .tst 2>/dev/null
3255if test -d .tst; then
3256 am__leading_dot=.
3257else
3258 am__leading_dot=_
3259fi
3260rmdir .tst 2>/dev/null
3261
80ed523f
VZ
3262if test "`cd $srcdir && pwd`" != "`pwd`"; then
3263 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3264 # is not polluted with repeated "-I."
3265 am__isrc=' -I$(srcdir)'
3266 # test to see if srcdir already configured
3267 if test -f $srcdir/config.status; then
3268 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3269 fi
8414a40c
VZ
3270fi
3271
3272# test whether we have cygpath
3273if test -z "$CYGPATH_W"; then
3274 if (cygpath --version) >/dev/null 2>/dev/null; then
3275 CYGPATH_W='cygpath -w'
3276 else
3277 CYGPATH_W=echo
3278 fi
3279fi
3280
3281
3282# Define the identity of the package.
3283 PACKAGE='tiff'
80ed523f 3284 VERSION='4.0.3'
8414a40c
VZ
3285
3286
3287cat >>confdefs.h <<_ACEOF
3288#define PACKAGE "$PACKAGE"
3289_ACEOF
3290
3291
3292cat >>confdefs.h <<_ACEOF
3293#define VERSION "$VERSION"
3294_ACEOF
3295
3296# Some tools Automake needs.
3297
3298ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
80ed523f
VZ
3312# For better backward compatibility. To be removed once Automake 1.9.x
3313# dies out for good. For more background, see:
3314# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3315# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3316mkdir_p='$(MKDIR_P)'
8414a40c
VZ
3317
3318# We need awk for the "check" target. The system "awk" is bad on
3319# some platforms.
80ed523f
VZ
3320# Always define AMTAR for backward compatibility. Yes, it's still used
3321# in the wild :-( We should find a proper way to deprecate it ...
3322AMTAR='$${TAR-tar}'
8414a40c 3323
80ed523f 3324am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
8414a40c 3325
8414a40c
VZ
3326
3327
3328
3329
3330
80ed523f
VZ
3331{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3332$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
31cb0113 3333 # Check whether --enable-maintainer-mode was given.
80ed523f 3334if test "${enable_maintainer_mode+set}" = set; then :
31cb0113 3335 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
8414a40c
VZ
3336else
3337 USE_MAINTAINER_MODE=no
31cb0113
VZ
3338fi
3339
80ed523f
VZ
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3341$as_echo "$USE_MAINTAINER_MODE" >&6; }
3342 if test $USE_MAINTAINER_MODE = yes; then
8414a40c
VZ
3343 MAINTAINER_MODE_TRUE=
3344 MAINTAINER_MODE_FALSE='#'
3345else
3346 MAINTAINER_MODE_TRUE='#'
3347 MAINTAINER_MODE_FALSE=
3348fi
3349
3350 MAINT=$MAINTAINER_MODE_TRUE
3351
3352
3353
80ed523f
VZ
3354LIBTIFF_MAJOR_VERSION=4
3355LIBTIFF_MINOR_VERSION=0
3356LIBTIFF_MICRO_VERSION=3
8414a40c
VZ
3357LIBTIFF_ALPHA_VERSION=
3358LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3359LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3360
80ed523f
VZ
3361LIBTIFF_CURRENT=7
3362LIBTIFF_REVISION=0
3363LIBTIFF_AGE=2
3364LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3365
8414a40c
VZ
3366# This is a special hack for OpenBSD and MirOS systems. The dynamic linker
3367# in OpenBSD uses some special semantics for shared libraries. Their soname
3368# contains only two numbers, major and minor.
3369# See http://bugzilla.remotesensing.org/show_bug.cgi?id=838 for details.
80ed523f
VZ
3370#case "$host_os" in
3371# openbsd* | mirbsd*)
3372# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION:0
3373# ;;
3374# *)
3375# LIBTIFF_VERSION_INFO=$LIBTIFF_MAJOR_VERSION:$LIBTIFF_MINOR_VERSION:$LIBTIFF_MICRO_VERSION
3376# ;;
3377#esac
8414a40c
VZ
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387ac_ext=c
3388ac_cpp='$CPP $CPPFLAGS'
3389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392if test -n "$ac_tool_prefix"; then
3393 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3394set dummy ${ac_tool_prefix}gcc; ac_word=$2
80ed523f
VZ
3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396$as_echo_n "checking for $ac_word... " >&6; }
3397if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
8414a40c
VZ
3399else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402else
3403as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404for as_dir in $PATH
3405do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
80ed523f 3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3412 break 2
3413 fi
3414done
80ed523f 3415 done
31cb0113 3416IFS=$as_save_IFS
8414a40c
VZ
3417
3418fi
3419fi
3420CC=$ac_cv_prog_CC
3421if test -n "$CC"; then
80ed523f
VZ
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423$as_echo "$CC" >&6; }
8414a40c 3424else
80ed523f
VZ
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426$as_echo "no" >&6; }
8414a40c
VZ
3427fi
3428
31cb0113 3429
8414a40c
VZ
3430fi
3431if test -z "$ac_cv_prog_CC"; then
3432 ac_ct_CC=$CC
3433 # Extract the first word of "gcc", so it can be a program name with args.
3434set dummy gcc; ac_word=$2
80ed523f
VZ
3435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436$as_echo_n "checking for $ac_word... " >&6; }
3437if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
8414a40c
VZ
3439else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442else
3443as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444for as_dir in $PATH
3445do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3450 ac_cv_prog_ac_ct_CC="gcc"
80ed523f 3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3452 break 2
3453 fi
3454done
80ed523f 3455 done
31cb0113 3456IFS=$as_save_IFS
8414a40c
VZ
3457
3458fi
3459fi
3460ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461if test -n "$ac_ct_CC"; then
80ed523f
VZ
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463$as_echo "$ac_ct_CC" >&6; }
8414a40c 3464else
80ed523f
VZ
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466$as_echo "no" >&6; }
8414a40c
VZ
3467fi
3468
31cb0113
VZ
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473yes:)
80ed523f
VZ
3474{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3475$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
3476ac_tool_warned=yes ;;
3477esac
3478 CC=$ac_ct_CC
3479 fi
8414a40c
VZ
3480else
3481 CC="$ac_cv_prog_CC"
3482fi
3483
3484if test -z "$CC"; then
31cb0113
VZ
3485 if test -n "$ac_tool_prefix"; then
3486 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8414a40c 3487set dummy ${ac_tool_prefix}cc; ac_word=$2
80ed523f
VZ
3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489$as_echo_n "checking for $ac_word... " >&6; }
3490if ${ac_cv_prog_CC+:} false; then :
3491 $as_echo_n "(cached) " >&6
8414a40c
VZ
3492else
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC="$CC" # Let the user override the test.
3495else
3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497for as_dir in $PATH
3498do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3503 ac_cv_prog_CC="${ac_tool_prefix}cc"
80ed523f 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3505 break 2
3506 fi
3507done
80ed523f 3508 done
31cb0113 3509IFS=$as_save_IFS
8414a40c
VZ
3510
3511fi
3512fi
3513CC=$ac_cv_prog_CC
3514if test -n "$CC"; then
80ed523f
VZ
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516$as_echo "$CC" >&6; }
8414a40c 3517else
80ed523f
VZ
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519$as_echo "no" >&6; }
8414a40c
VZ
3520fi
3521
8414a40c 3522
31cb0113 3523 fi
8414a40c
VZ
3524fi
3525if test -z "$CC"; then
3526 # Extract the first word of "cc", so it can be a program name with args.
3527set dummy cc; ac_word=$2
80ed523f
VZ
3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529$as_echo_n "checking for $ac_word... " >&6; }
3530if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
8414a40c
VZ
3532else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535else
3536 ac_prog_rejected=no
3537as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538for as_dir in $PATH
3539do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c
VZ
3544 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3545 ac_prog_rejected=yes
3546 continue
3547 fi
3548 ac_cv_prog_CC="cc"
80ed523f 3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3550 break 2
3551 fi
3552done
80ed523f 3553 done
31cb0113 3554IFS=$as_save_IFS
8414a40c
VZ
3555
3556if test $ac_prog_rejected = yes; then
3557 # We found a bogon in the path, so make sure we never use it.
3558 set dummy $ac_cv_prog_CC
3559 shift
3560 if test $# != 0; then
3561 # We chose a different compiler from the bogus one.
3562 # However, it has the same basename, so the bogon will be chosen
3563 # first if we set CC to just the basename; use the full file name.
3564 shift
3565 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3566 fi
3567fi
3568fi
3569fi
3570CC=$ac_cv_prog_CC
3571if test -n "$CC"; then
80ed523f
VZ
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573$as_echo "$CC" >&6; }
8414a40c 3574else
80ed523f
VZ
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576$as_echo "no" >&6; }
8414a40c
VZ
3577fi
3578
31cb0113 3579
8414a40c
VZ
3580fi
3581if test -z "$CC"; then
3582 if test -n "$ac_tool_prefix"; then
31cb0113 3583 for ac_prog in cl.exe
8414a40c
VZ
3584 do
3585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3586set dummy $ac_tool_prefix$ac_prog; ac_word=$2
80ed523f
VZ
3587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588$as_echo_n "checking for $ac_word... " >&6; }
3589if ${ac_cv_prog_CC+:} false; then :
3590 $as_echo_n "(cached) " >&6
8414a40c
VZ
3591else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594else
3595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596for as_dir in $PATH
3597do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
80ed523f 3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3604 break 2
3605 fi
3606done
80ed523f 3607 done
31cb0113 3608IFS=$as_save_IFS
8414a40c
VZ
3609
3610fi
3611fi
3612CC=$ac_cv_prog_CC
3613if test -n "$CC"; then
80ed523f
VZ
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615$as_echo "$CC" >&6; }
8414a40c 3616else
80ed523f
VZ
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618$as_echo "no" >&6; }
8414a40c
VZ
3619fi
3620
31cb0113 3621
8414a40c
VZ
3622 test -n "$CC" && break
3623 done
3624fi
3625if test -z "$CC"; then
3626 ac_ct_CC=$CC
31cb0113 3627 for ac_prog in cl.exe
8414a40c
VZ
3628do
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630set dummy $ac_prog; ac_word=$2
80ed523f
VZ
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632$as_echo_n "checking for $ac_word... " >&6; }
3633if ${ac_cv_prog_ac_ct_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
8414a40c
VZ
3635else
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638else
3639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640for as_dir in $PATH
3641do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
80ed523f
VZ
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 3646 ac_cv_prog_ac_ct_CC="$ac_prog"
80ed523f 3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
3648 break 2
3649 fi
3650done
80ed523f 3651 done
31cb0113 3652IFS=$as_save_IFS
8414a40c
VZ
3653
3654fi
3655fi
3656ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657if test -n "$ac_ct_CC"; then
80ed523f
VZ
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659$as_echo "$ac_ct_CC" >&6; }
8414a40c 3660else
80ed523f
VZ
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662$as_echo "no" >&6; }
8414a40c
VZ
3663fi
3664
31cb0113 3665
8414a40c
VZ
3666 test -n "$ac_ct_CC" && break
3667done
3668
31cb0113
VZ
3669 if test "x$ac_ct_CC" = x; then
3670 CC=""
3671 else
3672 case $cross_compiling:$ac_tool_warned in
3673yes:)
80ed523f
VZ
3674{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3675$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
3676ac_tool_warned=yes ;;
3677esac
3678 CC=$ac_ct_CC
3679 fi
8414a40c
VZ
3680fi
3681
3682fi
3683
3684
80ed523f
VZ
3685test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687as_fn_error $? "no acceptable C compiler found in \$PATH
3688See \`config.log' for more details" "$LINENO" 5; }
8414a40c
VZ
3689
3690# Provide some information about the compiler.
80ed523f
VZ
3691$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3692set X $ac_compile
3693ac_compiler=$2
3694for ac_option in --version -v -V -qversion; do
3695 { { ac_try="$ac_compiler $ac_option >&5"
31cb0113
VZ
3696case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699esac
80ed523f
VZ
3700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3701$as_echo "$ac_try_echo"; } >&5
3702 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8414a40c 3703 ac_status=$?
80ed523f
VZ
3704 if test -s conftest.err; then
3705 sed '10a\
3706... rest of stderr output deleted ...
3707 10q' conftest.err >conftest.er1
3708 cat conftest.er1 >&5
3709 fi
3710 rm -f conftest.er1 conftest.err
3711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3712 test $ac_status = 0; }
3713done
8414a40c 3714
80ed523f 3715cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
3716/* end confdefs.h. */
3717
3718int
3719main ()
3720{
3721
3722 ;
3723 return 0;
3724}
3725_ACEOF
3726ac_clean_files_save=$ac_clean_files
80ed523f 3727ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8414a40c
VZ
3728# Try to create an executable without -o first, disregard a.out.
3729# It will help us diagnose broken compilers, and finding out an intuition
3730# of exeext.
80ed523f
VZ
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3732$as_echo_n "checking whether the C compiler works... " >&6; }
3733ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734
3735# The possible output files:
3736ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737
31cb0113
VZ
3738ac_rmfiles=
3739for ac_file in $ac_files
3740do
3741 case $ac_file in
80ed523f 3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
31cb0113
VZ
3743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744 esac
3745done
3746rm -f $ac_rmfiles
3747
80ed523f 3748if { { ac_try="$ac_link_default"
31cb0113
VZ
3749case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752esac
80ed523f
VZ
3753eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754$as_echo "$ac_try_echo"; } >&5
31cb0113 3755 (eval "$ac_link_default") 2>&5
8414a40c 3756 ac_status=$?
80ed523f
VZ
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
31cb0113
VZ
3759 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3760# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3761# in a Makefile. We should not override ac_cv_exeext if it was cached,
3762# so that the user can short-circuit this test for compilers unknown to
3763# Autoconf.
3764for ac_file in $ac_files ''
8414a40c
VZ
3765do
3766 test -f "$ac_file" || continue
3767 case $ac_file in
80ed523f 3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8414a40c
VZ
3769 ;;
3770 [ab].out )
3771 # We found the default executable, but exeext='' is most
3772 # certainly right.
3773 break;;
3774 *.* )
80ed523f 3775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
31cb0113
VZ
3776 then :; else
3777 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3778 fi
3779 # We set ac_cv_exeext here because the later test for it is not
3780 # safe: cross compilers may not add the suffix if given an `-o'
3781 # argument, so we may need to know it at that point already.
3782 # Even if this section looks crufty: it has the advantage of
3783 # actually working.
8414a40c
VZ
3784 break;;
3785 * )
3786 break;;
3787 esac
3788done
31cb0113
VZ
3789test "$ac_cv_exeext" = no && ac_cv_exeext=
3790
8414a40c 3791else
31cb0113
VZ
3792 ac_file=''
3793fi
80ed523f
VZ
3794if test -z "$ac_file"; then :
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3796$as_echo "no" >&6; }
3797$as_echo "$as_me: failed program was:" >&5
8414a40c
VZ
3798sed 's/^/| /' conftest.$ac_ext >&5
3799
80ed523f
VZ
3800{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802as_fn_error 77 "C compiler cannot create executables
3803See \`config.log' for more details" "$LINENO" 5; }
3804else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806$as_echo "yes" >&6; }
8414a40c 3807fi
80ed523f
VZ
3808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3809$as_echo_n "checking for C compiler default output file name... " >&6; }
3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3811$as_echo "$ac_file" >&6; }
8414a40c 3812ac_exeext=$ac_cv_exeext
8414a40c 3813
80ed523f 3814rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8414a40c 3815ac_clean_files=$ac_clean_files_save
80ed523f
VZ
3816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817$as_echo_n "checking for suffix of executables... " >&6; }
3818if { { ac_try="$ac_link"
31cb0113
VZ
3819case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822esac
80ed523f
VZ
3823eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824$as_echo "$ac_try_echo"; } >&5
31cb0113 3825 (eval "$ac_link") 2>&5
8414a40c 3826 ac_status=$?
80ed523f
VZ
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
8414a40c
VZ
3829 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3830# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3831# work properly (i.e., refer to `conftest.exe'), while it won't with
3832# `rm'.
3833for ac_file in conftest.exe conftest conftest.*; do
3834 test -f "$ac_file" || continue
3835 case $ac_file in
80ed523f 3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8414a40c 3837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8414a40c
VZ
3838 break;;
3839 * ) break;;
3840 esac
3841done
3842else
80ed523f
VZ
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846See \`config.log' for more details" "$LINENO" 5; }
8414a40c 3847fi
80ed523f
VZ
3848rm -f conftest conftest$ac_cv_exeext
3849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3850$as_echo "$ac_cv_exeext" >&6; }
8414a40c
VZ
3851
3852rm -f conftest.$ac_ext
3853EXEEXT=$ac_cv_exeext
3854ac_exeext=$EXEEXT
80ed523f 3855cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 3856/* end confdefs.h. */
80ed523f 3857#include <stdio.h>
8414a40c
VZ
3858int
3859main ()
3860{
80ed523f
VZ
3861FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
8414a40c
VZ
3863
3864 ;
3865 return 0;
3866}
3867_ACEOF
80ed523f
VZ
3868ac_clean_files="$ac_clean_files conftest.out"
3869# Check that the compiler produces executables we can run. If not, either
3870# the compiler is broken, or we cross compile.
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3872$as_echo_n "checking whether we are cross compiling... " >&6; }
3873if test "$cross_compiling" != yes; then
3874 { { ac_try="$ac_link"
31cb0113
VZ
3875case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878esac
80ed523f
VZ
3879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880$as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
8414a40c 3882 ac_status=$?
80ed523f
VZ
3883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3884 test $ac_status = 0; }
3885 if { ac_try='./conftest$ac_cv_exeext'
3886 { { case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889esac
3890eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3891$as_echo "$ac_try_echo"; } >&5
3892 (eval "$ac_try") 2>&5
3893 ac_status=$?
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; }; then
3896 cross_compiling=no
3897 else
3898 if test "$cross_compiling" = maybe; then
3899 cross_compiling=yes
3900 else
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903as_fn_error $? "cannot run C compiled programs.
3904If you meant to cross compile, use \`--host'.
3905See \`config.log' for more details" "$LINENO" 5; }
3906 fi
3907 fi
3908fi
3909{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910$as_echo "$cross_compiling" >&6; }
3911
3912rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913ac_clean_files=$ac_clean_files_save
3914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3915$as_echo_n "checking for suffix of object files... " >&6; }
3916if ${ac_cv_objext+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918else
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920/* end confdefs.h. */
8414a40c
VZ
3921
3922int
3923main ()
3924{
8414a40c
VZ
3925
3926 ;
3927 return 0;
3928}
3929_ACEOF
80ed523f
VZ
3930rm -f conftest.o conftest.obj
3931if { { ac_try="$ac_compile"
31cb0113
VZ
3932case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935esac
80ed523f
VZ
3936eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937$as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compile") 2>&5
8414a40c 3939 ac_status=$?
80ed523f
VZ
3940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3941 test $ac_status = 0; }; then :
3942 for ac_file in conftest.o conftest.obj conftest.*; do
3943 test -f "$ac_file" || continue;
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3946 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3947 break;;
3948 esac
3949done
8414a40c 3950else
80ed523f 3951 $as_echo "$as_me: failed program was:" >&5
8414a40c
VZ
3952sed 's/^/| /' conftest.$ac_ext >&5
3953
80ed523f
VZ
3954{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956as_fn_error $? "cannot compute suffix of object files: cannot compile
3957See \`config.log' for more details" "$LINENO" 5; }
3958fi
3959rm -f conftest.$ac_cv_objext conftest.$ac_ext
8414a40c 3960fi
80ed523f
VZ
3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962$as_echo "$ac_cv_objext" >&6; }
3963OBJEXT=$ac_cv_objext
3964ac_objext=$OBJEXT
3965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3966$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3967if ${ac_cv_c_compiler_gnu+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969else
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971/* end confdefs.h. */
31cb0113 3972
80ed523f
VZ
3973int
3974main ()
3975{
3976#ifndef __GNUC__
3977 choke me
3978#endif
3979
3980 ;
3981 return 0;
3982}
3983_ACEOF
3984if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_compiler_gnu=yes
3986else
3987 ac_compiler_gnu=no
3988fi
31cb0113 3989rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414a40c
VZ
3990ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991
3992fi
80ed523f
VZ
3993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994$as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995if test $ac_compiler_gnu = yes; then
3996 GCC=yes
3997else
3998 GCC=
3999fi
8414a40c
VZ
4000ac_test_CFLAGS=${CFLAGS+set}
4001ac_save_CFLAGS=$CFLAGS
80ed523f
VZ
4002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003$as_echo_n "checking whether $CC accepts -g... " >&6; }
4004if ${ac_cv_prog_cc_g+:} false; then :
4005 $as_echo_n "(cached) " >&6
8414a40c 4006else
31cb0113
VZ
4007 ac_save_c_werror_flag=$ac_c_werror_flag
4008 ac_c_werror_flag=yes
4009 ac_cv_prog_cc_g=no
4010 CFLAGS="-g"
80ed523f 4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
4012/* end confdefs.h. */
4013
4014int
4015main ()
4016{
4017
4018 ;
4019 return 0;
4020}
4021_ACEOF
80ed523f 4022if ac_fn_c_try_compile "$LINENO"; then :
31cb0113
VZ
4023 ac_cv_prog_cc_g=yes
4024else
80ed523f
VZ
4025 CFLAGS=""
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31cb0113
VZ
4027/* end confdefs.h. */
4028
4029int
4030main ()
4031{
4032
4033 ;
4034 return 0;
4035}
4036_ACEOF
80ed523f 4037if ac_fn_c_try_compile "$LINENO"; then :
31cb0113 4038
80ed523f
VZ
4039else
4040 ac_c_werror_flag=$ac_save_c_werror_flag
31cb0113 4041 CFLAGS="-g"
80ed523f 4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31cb0113
VZ
4043/* end confdefs.h. */
4044
4045int
4046main ()
4047{
4048
4049 ;
4050 return 0;
4051}
4052_ACEOF
80ed523f 4053if ac_fn_c_try_compile "$LINENO"; then :
8414a40c 4054 ac_cv_prog_cc_g=yes
31cb0113 4055fi
31cb0113 4056rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414a40c 4057fi
31cb0113
VZ
4058rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059fi
31cb0113
VZ
4060rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_c_werror_flag=$ac_save_c_werror_flag
8414a40c 4062fi
80ed523f
VZ
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064$as_echo "$ac_cv_prog_cc_g" >&6; }
8414a40c
VZ
4065if test "$ac_test_CFLAGS" = set; then
4066 CFLAGS=$ac_save_CFLAGS
4067elif test $ac_cv_prog_cc_g = yes; then
4068 if test "$GCC" = yes; then
4069 CFLAGS="-g -O2"
4070 else
4071 CFLAGS="-g"
4072 fi
4073else
4074 if test "$GCC" = yes; then
4075 CFLAGS="-O2"
4076 else
4077 CFLAGS=
4078 fi
4079fi
80ed523f
VZ
4080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4081$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4082if ${ac_cv_prog_cc_c89+:} false; then :
4083 $as_echo_n "(cached) " >&6
8414a40c 4084else
31cb0113 4085 ac_cv_prog_cc_c89=no
8414a40c 4086ac_save_CC=$CC
80ed523f 4087cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
4088/* end confdefs.h. */
4089#include <stdarg.h>
4090#include <stdio.h>
80ed523f 4091struct stat;
8414a40c
VZ
4092/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4093struct buf { int x; };
4094FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095static char *e (p, i)
4096 char **p;
4097 int i;
4098{
4099 return p[i];
4100}
4101static char *f (char * (*g) (char **, int), char **p, ...)
4102{
4103 char *s;
4104 va_list v;
4105 va_start (v,p);
4106 s = g (p, va_arg (v,int));
4107 va_end (v);
4108 return s;
4109}
4110
4111/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4112 function prototypes and stuff, but not '\xHH' hex character constants.
4113 These don't provoke an error unfortunately, instead are silently treated
31cb0113 4114 as 'x'. The following induces an error, until -std is added to get
8414a40c
VZ
4115 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4116 array size at least. It's necessary to write '\x00'==0 to get something
31cb0113 4117 that's true only with -std. */
8414a40c
VZ
4118int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119
31cb0113
VZ
4120/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4121 inside strings and character constants. */
4122#define FOO(x) 'x'
4123int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124
8414a40c
VZ
4125int test (int i, double x);
4126struct s1 {int (*f) (int a);};
4127struct s2 {int (*f) (double a);};
4128int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129int argc;
4130char **argv;
4131int
4132main ()
4133{
4134return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4135 ;
4136 return 0;
4137}
4138_ACEOF
31cb0113
VZ
4139for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8414a40c
VZ
4141do
4142 CC="$ac_save_CC $ac_arg"
80ed523f 4143 if ac_fn_c_try_compile "$LINENO"; then :
31cb0113 4144 ac_cv_prog_cc_c89=$ac_arg
8414a40c 4145fi
31cb0113
VZ
4146rm -f core conftest.err conftest.$ac_objext
4147 test "x$ac_cv_prog_cc_c89" != "xno" && break
8414a40c 4148done
31cb0113 4149rm -f conftest.$ac_ext
8414a40c
VZ
4150CC=$ac_save_CC
4151
4152fi
31cb0113
VZ
4153# AC_CACHE_VAL
4154case "x$ac_cv_prog_cc_c89" in
4155 x)
80ed523f
VZ
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157$as_echo "none needed" >&6; } ;;
31cb0113 4158 xno)
80ed523f
VZ
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160$as_echo "unsupported" >&6; } ;;
8414a40c 4161 *)
31cb0113 4162 CC="$CC $ac_cv_prog_cc_c89"
80ed523f
VZ
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8414a40c 4165esac
80ed523f 4166if test "x$ac_cv_prog_cc_c89" != xno; then :
8414a40c 4167
80ed523f 4168fi
8414a40c 4169
8414a40c
VZ
4170ac_ext=c
4171ac_cpp='$CPP $CPPFLAGS'
4172ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175DEPDIR="${am__leading_dot}deps"
4176
31cb0113 4177ac_config_commands="$ac_config_commands depfiles"
8414a40c
VZ
4178
4179
4180am_make=${MAKE-make}
4181cat > confinc << 'END'
4182am__doit:
80ed523f 4183 @echo this is the am__doit target
8414a40c
VZ
4184.PHONY: am__doit
4185END
4186# If we don't find an include directive, just comment out the code.
80ed523f
VZ
4187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4188$as_echo_n "checking for style of include used by $am_make... " >&6; }
8414a40c
VZ
4189am__include="#"
4190am__quote=
4191_am_result=none
4192# First try GNU make style include.
4193echo "include confinc" > confmf
80ed523f
VZ
4194# Ignore all kinds of additional output from 'make'.
4195case `$am_make -s -f confmf 2> /dev/null` in #(
4196*the\ am__doit\ target*)
4197 am__include=include
4198 am__quote=
4199 _am_result=GNU
4200 ;;
4201esac
8414a40c
VZ
4202# Now try BSD make style include.
4203if test "$am__include" = "#"; then
4204 echo '.include "confinc"' > confmf
80ed523f
VZ
4205 case `$am_make -s -f confmf 2> /dev/null` in #(
4206 *the\ am__doit\ target*)
4207 am__include=.include
4208 am__quote="\""
4209 _am_result=BSD
4210 ;;
4211 esac
8414a40c
VZ
4212fi
4213
4214
80ed523f
VZ
4215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4216$as_echo "$_am_result" >&6; }
8414a40c
VZ
4217rm -f confinc confmf
4218
31cb0113 4219# Check whether --enable-dependency-tracking was given.
80ed523f 4220if test "${enable_dependency_tracking+set}" = set; then :
31cb0113
VZ
4221 enableval=$enable_dependency_tracking;
4222fi
8414a40c 4223
8414a40c
VZ
4224if test "x$enable_dependency_tracking" != xno; then
4225 am_depcomp="$ac_aux_dir/depcomp"
4226 AMDEPBACKSLASH='\'
80ed523f 4227 am__nodep='_no'
8414a40c 4228fi
80ed523f 4229 if test "x$enable_dependency_tracking" != xno; then
8414a40c
VZ
4230 AMDEP_TRUE=
4231 AMDEP_FALSE='#'
4232else
4233 AMDEP_TRUE='#'
4234 AMDEP_FALSE=
4235fi
4236
4237
4238
8414a40c
VZ
4239depcc="$CC" am_compiler_list=
4240
80ed523f
VZ
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242$as_echo_n "checking dependency style of $depcc... " >&6; }
4243if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4244 $as_echo_n "(cached) " >&6
8414a40c
VZ
4245else
4246 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4247 # We make a subdir and do the tests there. Otherwise we can end up
4248 # making bogus files that we don't know about and never remove. For
4249 # instance it was reported that on HP-UX the gcc test will end up
80ed523f
VZ
4250 # making a dummy file named 'D' -- because '-MD' means "put the output
4251 # in D".
4252 rm -rf conftest.dir
8414a40c
VZ
4253 mkdir conftest.dir
4254 # Copy depcomp to subdir because otherwise we won't find it if we're
4255 # using a relative directory.
4256 cp "$am_depcomp" conftest.dir
4257 cd conftest.dir
4258 # We will build objects and dependencies in a subdirectory because
4259 # it helps to detect inapplicable dependency modes. For instance
4260 # both Tru64's cc and ICC support -MD to output dependencies as a
4261 # side effect of compilation, but ICC will put the dependencies in
4262 # the current directory while Tru64 will put them in the object
4263 # directory.
4264 mkdir sub
4265
4266 am_cv_CC_dependencies_compiler_type=none
4267 if test "$am_compiler_list" = ""; then
4268 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4269 fi
80ed523f
VZ
4270 am__universal=false
4271 case " $depcc " in #(
4272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273 esac
4274
8414a40c
VZ
4275 for depmode in $am_compiler_list; do
4276 # Setup a source with many dependencies, because some compilers
4277 # like to wrap large dependency lists on column 80 (with \), and
4278 # we should not choose a depcomp mode which is confused by this.
4279 #
4280 # We need to recreate these files for each test, as the compiler may
4281 # overwrite some of them when testing with obscure command lines.
4282 # This happens at least with the AIX C compiler.
4283 : > sub/conftest.c
4284 for i in 1 2 3 4 5 6; do
4285 echo '#include "conftst'$i'.h"' >> sub/conftest.c
80ed523f
VZ
4286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287 # Solaris 10 /bin/sh.
4288 echo '/* dummy */' > sub/conftst$i.h
8414a40c
VZ
4289 done
4290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
80ed523f
VZ
4292 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4293 # mode. It turns out that the SunPro C++ compiler does not properly
4294 # handle '-M -o', and we need to detect this. Also, some Intel
4295 # versions had trouble with output in subdirs.
4296 am__obj=sub/conftest.${OBJEXT-o}
4297 am__minus_obj="-o $am__obj"
8414a40c 4298 case $depmode in
80ed523f
VZ
4299 gcc)
4300 # This depmode causes a compiler race in universal mode.
4301 test "$am__universal" = false || continue
4302 ;;
8414a40c 4303 nosideeffect)
80ed523f
VZ
4304 # After this tag, mechanisms are not by side-effect, so they'll
4305 # only be used when explicitly requested.
8414a40c
VZ
4306 if test "x$enable_dependency_tracking" = xyes; then
4307 continue
4308 else
4309 break
4310 fi
4311 ;;
80ed523f
VZ
4312 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4313 # This compiler won't grok '-c -o', but also, the minuso test has
4314 # not run yet. These depmodes are late enough in the game, and
4315 # so weak that their functioning should not be impacted.
4316 am__obj=conftest.${OBJEXT-o}
4317 am__minus_obj=
4318 ;;
8414a40c
VZ
4319 none) break ;;
4320 esac
8414a40c 4321 if depmode=$depmode \
80ed523f 4322 source=sub/conftest.c object=$am__obj \
8414a40c 4323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
80ed523f 4324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
8414a40c 4325 >/dev/null 2>conftest.err &&
80ed523f 4326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
8414a40c 4327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
80ed523f 4328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
8414a40c
VZ
4329 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4330 # icc doesn't choke on unknown options, it will just issue warnings
4331 # or remarks (even with -Werror). So we grep stderr for any message
4332 # that says an option was ignored or not supported.
4333 # When given -MP, icc 7.0 and 7.1 complain thusly:
4334 # icc: Command line warning: ignoring option '-M'; no argument required
4335 # The diagnosis changed in icc 8.0:
4336 # icc: Command line remark: option '-MP' not supported
4337 if (grep 'ignoring option' conftest.err ||
4338 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4339 am_cv_CC_dependencies_compiler_type=$depmode
4340 break
4341 fi
4342 fi
4343 done
4344
4345 cd ..
4346 rm -rf conftest.dir
4347else
4348 am_cv_CC_dependencies_compiler_type=none
4349fi
4350
4351fi
80ed523f
VZ
4352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4353$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
8414a40c
VZ
4354CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
80ed523f 4356 if
8414a40c
VZ
4357 test "x$enable_dependency_tracking" != xno \
4358 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4359 am__fastdepCC_TRUE=
4360 am__fastdepCC_FALSE='#'
4361else
4362 am__fastdepCC_TRUE='#'
4363 am__fastdepCC_FALSE=
4364fi
4365
4366
4367if test "x$CC" != xcc; then
80ed523f
VZ
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4369$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
8414a40c 4370else
80ed523f
VZ
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4372$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
8414a40c 4373fi
80ed523f 4374set dummy $CC; ac_cc=`$as_echo "$2" |
8414a40c 4375 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
80ed523f
VZ
4376if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4377 $as_echo_n "(cached) " >&6
8414a40c 4378else
80ed523f 4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
4380/* end confdefs.h. */
4381
4382int
4383main ()
4384{
4385
4386 ;
4387 return 0;
4388}
4389_ACEOF
4390# Make sure it works both with $CC and with simple cc.
4391# We do the test twice because some compilers refuse to overwrite an
4392# existing .o file with -o, though they will create one.
31cb0113
VZ
4393ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394rm -f conftest2.*
80ed523f 4395if { { case "(($ac_try" in
31cb0113
VZ
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398esac
80ed523f
VZ
4399eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400$as_echo "$ac_try_echo"; } >&5
31cb0113 4401 (eval "$ac_try") 2>&5
8414a40c 4402 ac_status=$?
80ed523f
VZ
4403 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4404 test $ac_status = 0; } &&
4405 test -f conftest2.$ac_objext && { { case "(($ac_try" in
31cb0113
VZ
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408esac
80ed523f
VZ
4409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410$as_echo "$ac_try_echo"; } >&5
31cb0113 4411 (eval "$ac_try") 2>&5
8414a40c 4412 ac_status=$?
80ed523f
VZ
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; };
8414a40c
VZ
4415then
4416 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4417 if test "x$CC" != xcc; then
4418 # Test first that cc exists at all.
4419 if { ac_try='cc -c conftest.$ac_ext >&5'
80ed523f 4420 { { case "(($ac_try" in
31cb0113
VZ
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423esac
80ed523f
VZ
4424eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425$as_echo "$ac_try_echo"; } >&5
31cb0113 4426 (eval "$ac_try") 2>&5
8414a40c 4427 ac_status=$?
80ed523f
VZ
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
31cb0113
VZ
4430 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4431 rm -f conftest2.*
80ed523f 4432 if { { case "(($ac_try" in
31cb0113
VZ
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435esac
80ed523f
VZ
4436eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437$as_echo "$ac_try_echo"; } >&5
31cb0113 4438 (eval "$ac_try") 2>&5
8414a40c 4439 ac_status=$?
80ed523f
VZ
4440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4441 test $ac_status = 0; } &&
4442 test -f conftest2.$ac_objext && { { case "(($ac_try" in
31cb0113
VZ
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445esac
80ed523f
VZ
4446eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447$as_echo "$ac_try_echo"; } >&5
31cb0113 4448 (eval "$ac_try") 2>&5
8414a40c 4449 ac_status=$?
80ed523f
VZ
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; };
8414a40c
VZ
4452 then
4453 # cc works too.
4454 :
4455 else
4456 # cc exists but doesn't like -o.
4457 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4458 fi
4459 fi
4460 fi
4461else
4462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463fi
31cb0113 4464rm -f core conftest*
8414a40c
VZ
4465
4466fi
31cb0113 4467if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
80ed523f
VZ
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469$as_echo "yes" >&6; }
8414a40c 4470else
80ed523f
VZ
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472$as_echo "no" >&6; }
8414a40c 4473
80ed523f 4474$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
8414a40c
VZ
4475
4476fi
4477
4478# FIXME: we rely on the cache variable name because
4479# there is no other way.
4480set dummy $CC
80ed523f
VZ
4481am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4483if test "$am_t" != yes; then
8414a40c
VZ
4484 # Losing compiler, so override with the script.
4485 # FIXME: It is wrong to rewrite CC.
4486 # But if we don't then we get into trouble of one sort or another.
4487 # A longer-term fix would be to have automake use am__CC in this case,
4488 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4489 CC="$am_aux_dir/compile $CC"
4490fi
4491
4492
4493
80ed523f 4494
8414a40c
VZ
4495 ansi=
4496 if test -z "$ansi"; then
4497 msg="for C compiler warning flags"
4498 else
4499 msg="for C compiler warning and ANSI conformance flags"
4500 fi
80ed523f
VZ
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4502$as_echo_n "checking $msg... " >&6; }
4503if ${vl_cv_prog_cc_warnings+:} false; then :
4504 $as_echo_n "(cached) " >&6
8414a40c
VZ
4505else
4506
4507 if test -n "$CC"; then
4508 cat > conftest.c <<EOF
4509int main(int argc, char **argv) { return 0; }
4510EOF
4511
4512 if test "$GCC" = "yes"; then
4513 if test -z "$ansi"; then
4514 vl_cv_prog_cc_warnings="-Wall -W"
4515 else
4516 vl_cv_prog_cc_warnings="-Wall -W -ansi -pedantic"
4517 fi
4518
4519
4520 elif $CC -V 2>&1 | grep -i "WorkShop" > /dev/null 2>&1 &&
4521 $CC -c -v -Xc conftest.c > /dev/null 2>&1 &&
4522 test -f conftest.o; then
4523 if test -z "$ansi"; then
4524 vl_cv_prog_cc_warnings="-v"
4525 else
4526 vl_cv_prog_cc_warnings="-v -Xc"
4527 fi
4528
4529 elif $CC -V 2>&1 | grep -i "Digital UNIX Compiler" > /dev/null 2>&1 &&
4530 $CC -c -verbose -w0 -warnprotos -std1 conftest.c > /dev/null 2>&1 &&
4531 test -f conftest.o; then
4532 if test -z "$ansi"; then
4533 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos"
4534 else
4535 vl_cv_prog_cc_warnings="-verbose -w0 -warnprotos -std1"
4536 fi
4537
4538 elif $CC 2>&1 | grep -i "C for AIX Compiler" > /dev/null 2>&1 &&
4539 $CC -c -qlanglvl=ansi -qinfo=all conftest.c > /dev/null 2>&1 &&
4540 test -f conftest.o; then
4541 if test -z "$ansi"; then
4542 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd"
4543 else
4544 vl_cv_prog_cc_warnings="-qsrcmsg -qinfo=all:noppt:noppc:noobs:nocnd -qlanglvl=ansi"
4545 fi
4546
4547 elif $CC -version 2>&1 | grep -i "MIPSpro Compilers" > /dev/null 2>&1 &&
4548 $CC -c -fullwarn -ansi -ansiE conftest.c > /dev/null 2>&1 &&
4549 test -f conftest.o; then
4550 if test -z "$ansi"; then
4551 vl_cv_prog_cc_warnings="-fullwarn"
4552 else
4553 vl_cv_prog_cc_warnings="-fullwarn -ansi -ansiE"
4554 fi
4555
4556 elif what $CC 2>&1 | grep -i "HP C Compiler" > /dev/null 2>&1 &&
4557 $CC -c -Aa +w1 conftest.c > /dev/null 2>&1 &&
4558 test -f conftest.o; then
4559 if test -z "$ansi"; then
4560 vl_cv_prog_cc_warnings="+w1"
4561 else
4562 vl_cv_prog_cc_warnings="+w1 -Aa"
4563 fi
4564
4565 elif $CC -V 2>&1 | grep "/SX" > /dev/null 2>&1 &&
4566 $CC -c -pvctl,fullmsg -Xc conftest.c > /dev/null 2>&1 &&
4567 test -f conftest.o; then
4568 if test -z "$ansi"; then
4569 vl_cv_prog_cc_warnings="-pvctl,fullmsg"
4570 else
4571 vl_cv_prog_cc_warnings="-pvctl,fullmsg -Xc"
4572 fi
4573
4574 elif $CC -V 2>&1 | grep -i "Cray" > /dev/null 2>&1 &&
4575 $CC -c -h msglevel 2 conftest.c > /dev/null 2>&1 &&
4576 test -f conftest.o; then
4577 if test -z "$ansi"; then
4578 vl_cv_prog_cc_warnings="-h msglevel 2"
4579 else
4580 vl_cv_prog_cc_warnings="-h msglevel 2 -h conform"
4581 fi
4582
4583 fi
4584 rm -f conftest.*
4585 fi
4586 if test -n "$vl_cv_prog_cc_warnings"; then
4587 CFLAGS="$CFLAGS $vl_cv_prog_cc_warnings"
4588 else
4589 vl_cv_prog_cc_warnings="unknown"
4590 fi
4591
4592fi
80ed523f
VZ
4593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4594$as_echo "$vl_cv_prog_cc_warnings" >&6; }
8414a40c
VZ
4595
4596
80ed523f
VZ
4597
4598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4599$as_echo_n "checking whether ln -s works... " >&6; }
4600LN_S=$as_ln_s
4601if test "$LN_S" = "ln -s"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603$as_echo "yes" >&6; }
8414a40c 4604else
80ed523f
VZ
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606$as_echo "no, using $LN_S" >&6; }
4607fi
8414a40c
VZ
4608
4609
80ed523f
VZ
4610
4611# Check if LD supports linker scripts, and define automake conditional
4612# HAVE_LD_VERSION_SCRIPT if so. This functionality is currently
4613# constrained to compilers using GNU ld on ELF systems or systems
4614# which provide an adequate emulation thereof.
4615# Check whether --enable-ld-version-script was given.
4616if test "${enable_ld_version_script+set}" = set; then :
4617 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4618else
4619 have_ld_version_script=no
8414a40c 4620fi
8414a40c 4621
80ed523f
VZ
4622if test "$have_ld_version_script" != no; then
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
4624$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
4625 save_LDFLAGS="$LDFLAGS"
4626 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
4627 cat > conftest.map <<EOF
4628VERS_1 {
4629 global: sym;
4630};
8414a40c 4631
80ed523f
VZ
4632VERS_2 {
4633 global: sym;
4634} VERS_1;
4635EOF
8414a40c 4636
80ed523f
VZ
4637cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638/* end confdefs.h. */
8414a40c 4639
80ed523f
VZ
4640int
4641main ()
4642{
4643
4644 ;
4645 return 0;
4646}
4647_ACEOF
4648if ac_fn_c_try_link "$LINENO"; then :
4649 have_ld_version_script=yes
4650else
4651 have_ld_version_script=no
4652fi
4653rm -f core conftest.err conftest.$ac_objext \
4654 conftest$ac_exeext conftest.$ac_ext
4655 rm -f conftest.map
4656 LDFLAGS="$save_LDFLAGS"
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
4658$as_echo "$have_ld_version_script" >&6; }
4659fi
4660 if test "$have_ld_version_script" = "yes"; then
4661 HAVE_LD_VERSION_SCRIPT_TRUE=
4662 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8414a40c 4663else
80ed523f
VZ
4664 HAVE_LD_VERSION_SCRIPT_TRUE='#'
4665 HAVE_LD_VERSION_SCRIPT_FALSE=
8414a40c
VZ
4666fi
4667
4668
4669
8414a40c
VZ
4670
4671
4672
80ed523f
VZ
4673case `pwd` in
4674 *\ * | *\ *)
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
4676$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
4677esac
8414a40c
VZ
4678
4679
4680
80ed523f
VZ
4681macro_version='2.4.2'
4682macro_revision='1.3337'
8414a40c
VZ
4683
4684
4685
4686
4687
4688
8414a40c 4689
8414a40c 4690
8414a40c
VZ
4691
4692
8414a40c
VZ
4693
4694
31cb0113 4695
80ed523f 4696ltmain="$ac_aux_dir/ltmain.sh"
8414a40c 4697
80ed523f
VZ
4698# Backslashify metacharacters that are still active within
4699# double-quoted strings.
4700sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8414a40c 4701
80ed523f
VZ
4702# Same as above, but do not quote variable references.
4703double_quote_subst='s/\(["`\\]\)/\\\1/g'
8414a40c 4704
80ed523f
VZ
4705# Sed substitution to delay expansion of an escaped shell variable in a
4706# double_quote_subst'ed string.
4707delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8414a40c 4708
80ed523f
VZ
4709# Sed substitution to delay expansion of an escaped single quote.
4710delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8414a40c 4711
80ed523f
VZ
4712# Sed substitution to avoid accidental globbing in evaled expressions
4713no_glob_subst='s/\*/\\\*/g'
8414a40c 4714
80ed523f
VZ
4715ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4716ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4717ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
4718
4719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
4720$as_echo_n "checking how to print strings... " >&6; }
4721# Test print first, because it will be a builtin if present.
4722if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
4723 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
4724 ECHO='print -r --'
4725elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4726 ECHO='printf %s\n'
4727else
4728 # Use this function as a fallback that always works.
4729 func_fallback_echo ()
4730 {
4731 eval 'cat <<_LTECHO_EOF
4732$1
4733_LTECHO_EOF'
4734 }
4735 ECHO='func_fallback_echo'
4736fi
8414a40c 4737
80ed523f
VZ
4738# func_echo_all arg...
4739# Invoke $ECHO with all args, space-separated.
4740func_echo_all ()
4741{
4742 $ECHO ""
4743}
8414a40c 4744
80ed523f
VZ
4745case "$ECHO" in
4746 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
4747$as_echo "printf" >&6; } ;;
4748 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
4749$as_echo "print -r" >&6; } ;;
4750 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
4751$as_echo "cat" >&6; } ;;
4752esac
31cb0113
VZ
4753
4754
4755
4756
4757
31cb0113
VZ
4758
4759
4760
4761
4762
4763
4764
4765
4766
80ed523f
VZ
4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4768$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4769if ${ac_cv_path_SED+:} false; then :
4770 $as_echo_n "(cached) " >&6
31cb0113
VZ
4771else
4772 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4773 for ac_i in 1 2 3 4 5 6 7; do
4774 ac_script="$ac_script$as_nl$ac_script"
4775 done
80ed523f
VZ
4776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777 { ac_script=; unset ac_script;}
4778 if test -z "$SED"; then
31cb0113 4779 ac_path_SED_found=false
80ed523f
VZ
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31cb0113
VZ
4782for as_dir in $PATH
4783do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
80ed523f
VZ
4786 for ac_prog in sed gsed; do
4787 for ac_exec_ext in '' $ac_executable_extensions; do
4788 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4789 as_fn_executable_p "$ac_path_SED" || continue
4790# Check for GNU ac_path_SED and select it if it is found.
31cb0113
VZ
4791 # Check for GNU $ac_path_SED
4792case `"$ac_path_SED" --version 2>&1` in
4793*GNU*)
4794 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4795*)
4796 ac_count=0
80ed523f 4797 $as_echo_n 0123456789 >"conftest.in"
31cb0113
VZ
4798 while :
4799 do
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
80ed523f 4803 $as_echo '' >> "conftest.nl"
31cb0113
VZ
4804 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4805 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
80ed523f 4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
31cb0113
VZ
4807 if test $ac_count -gt ${ac_path_SED_max-0}; then
4808 # Best one so far, save it but keep looking for a better one
4809 ac_cv_path_SED="$ac_path_SED"
4810 ac_path_SED_max=$ac_count
4811 fi
4812 # 10*(2^10) chars as input seems more than enough
4813 test $ac_count -gt 10 && break
4814 done
4815 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4816esac
8414a40c 4817
80ed523f
VZ
4818 $ac_path_SED_found && break 3
4819 done
4820 done
31cb0113 4821 done
31cb0113 4822IFS=$as_save_IFS
80ed523f
VZ
4823 if test -z "$ac_cv_path_SED"; then
4824 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4825 fi
31cb0113
VZ
4826else
4827 ac_cv_path_SED=$SED
4828fi
8414a40c 4829
31cb0113 4830fi
80ed523f
VZ
4831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832$as_echo "$ac_cv_path_SED" >&6; }
31cb0113
VZ
4833 SED="$ac_cv_path_SED"
4834 rm -f conftest.sed
8414a40c 4835
31cb0113 4836test -z "$SED" && SED=sed
80ed523f 4837Xsed="$SED -e 1s/^X//"
8414a40c 4838
8414a40c
VZ
4839
4840
4841
4842
4843
4844
4845
31cb0113
VZ
4846
4847
4848
80ed523f
VZ
4849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4850$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4851if ${ac_cv_path_GREP+:} false; then :
4852 $as_echo_n "(cached) " >&6
31cb0113 4853else
80ed523f 4854 if test -z "$GREP"; then
31cb0113 4855 ac_path_GREP_found=false
80ed523f
VZ
4856 # Loop through the user's path and test for each of PROGNAME-LIST
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31cb0113
VZ
4858for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
80ed523f
VZ
4862 for ac_prog in grep ggrep; do
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4865 as_fn_executable_p "$ac_path_GREP" || continue
4866# Check for GNU ac_path_GREP and select it if it is found.
31cb0113
VZ
4867 # Check for GNU $ac_path_GREP
4868case `"$ac_path_GREP" --version 2>&1` in
4869*GNU*)
4870 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4871*)
4872 ac_count=0
80ed523f 4873 $as_echo_n 0123456789 >"conftest.in"
31cb0113
VZ
4874 while :
4875 do
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
80ed523f 4879 $as_echo 'GREP' >> "conftest.nl"
31cb0113
VZ
4880 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4881 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
80ed523f 4882 as_fn_arith $ac_count + 1 && ac_count=$as_val
31cb0113
VZ
4883 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4884 # Best one so far, save it but keep looking for a better one
4885 ac_cv_path_GREP="$ac_path_GREP"
4886 ac_path_GREP_max=$ac_count
4887 fi
4888 # 10*(2^10) chars as input seems more than enough
4889 test $ac_count -gt 10 && break
4890 done
4891 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4892esac
4893
80ed523f
VZ
4894 $ac_path_GREP_found && break 3
4895 done
4896 done
31cb0113 4897 done
31cb0113 4898IFS=$as_save_IFS
80ed523f
VZ
4899 if test -z "$ac_cv_path_GREP"; then
4900 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4901 fi
31cb0113
VZ
4902else
4903 ac_cv_path_GREP=$GREP
4904fi
8414a40c 4905
31cb0113 4906fi
80ed523f
VZ
4907{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908$as_echo "$ac_cv_path_GREP" >&6; }
31cb0113 4909 GREP="$ac_cv_path_GREP"
8414a40c
VZ
4910
4911
80ed523f
VZ
4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913$as_echo_n "checking for egrep... " >&6; }
4914if ${ac_cv_path_EGREP+:} false; then :
4915 $as_echo_n "(cached) " >&6
31cb0113
VZ
4916else
4917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918 then ac_cv_path_EGREP="$GREP -E"
4919 else
80ed523f 4920 if test -z "$EGREP"; then
31cb0113 4921 ac_path_EGREP_found=false
80ed523f
VZ
4922 # Loop through the user's path and test for each of PROGNAME-LIST
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31cb0113 4924for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8414a40c
VZ
4925do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
80ed523f
VZ
4928 for ac_prog in egrep; do
4929 for ac_exec_ext in '' $ac_executable_extensions; do
4930 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4931 as_fn_executable_p "$ac_path_EGREP" || continue
4932# Check for GNU ac_path_EGREP and select it if it is found.
31cb0113
VZ
4933 # Check for GNU $ac_path_EGREP
4934case `"$ac_path_EGREP" --version 2>&1` in
4935*GNU*)
4936 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4937*)
4938 ac_count=0
80ed523f 4939 $as_echo_n 0123456789 >"conftest.in"
31cb0113
VZ
4940 while :
4941 do
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
80ed523f 4945 $as_echo 'EGREP' >> "conftest.nl"
31cb0113
VZ
4946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
80ed523f 4948 as_fn_arith $ac_count + 1 && ac_count=$as_val
31cb0113
VZ
4949 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4950 # Best one so far, save it but keep looking for a better one
4951 ac_cv_path_EGREP="$ac_path_EGREP"
4952 ac_path_EGREP_max=$ac_count
8414a40c 4953 fi
31cb0113
VZ
4954 # 10*(2^10) chars as input seems more than enough
4955 test $ac_count -gt 10 && break
4956 done
4957 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4958esac
4959
80ed523f
VZ
4960 $ac_path_EGREP_found && break 3
4961 done
4962 done
8414a40c 4963 done
31cb0113 4964IFS=$as_save_IFS
80ed523f
VZ
4965 if test -z "$ac_cv_path_EGREP"; then
4966 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4967 fi
31cb0113
VZ
4968else
4969 ac_cv_path_EGREP=$EGREP
4970fi
8414a40c 4971
31cb0113
VZ
4972 fi
4973fi
80ed523f
VZ
4974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975$as_echo "$ac_cv_path_EGREP" >&6; }
31cb0113 4976 EGREP="$ac_cv_path_EGREP"
8414a40c
VZ
4977
4978
80ed523f
VZ
4979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4980$as_echo_n "checking for fgrep... " >&6; }
4981if ${ac_cv_path_FGREP+:} false; then :
4982 $as_echo_n "(cached) " >&6
31cb0113
VZ
4983else
4984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985 then ac_cv_path_FGREP="$GREP -F"
4986 else
80ed523f 4987 if test -z "$FGREP"; then
31cb0113 4988 ac_path_FGREP_found=false
80ed523f
VZ
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31cb0113
VZ
4991for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
80ed523f
VZ
4995 for ac_prog in fgrep; do
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4998 as_fn_executable_p "$ac_path_FGREP" || continue
4999# Check for GNU ac_path_FGREP and select it if it is found.
31cb0113
VZ
5000 # Check for GNU $ac_path_FGREP
5001case `"$ac_path_FGREP" --version 2>&1` in
5002*GNU*)
5003 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5004*)
5005 ac_count=0
80ed523f 5006 $as_echo_n 0123456789 >"conftest.in"
31cb0113
VZ
5007 while :
5008 do
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
80ed523f 5012 $as_echo 'FGREP' >> "conftest.nl"
31cb0113
VZ
5013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
80ed523f 5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
31cb0113
VZ
5016 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5017 # Best one so far, save it but keep looking for a better one
5018 ac_cv_path_FGREP="$ac_path_FGREP"
5019 ac_path_FGREP_max=$ac_count
5020 fi
5021 # 10*(2^10) chars as input seems more than enough
5022 test $ac_count -gt 10 && break
5023 done
5024 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5025esac
8414a40c 5026
80ed523f
VZ
5027 $ac_path_FGREP_found && break 3
5028 done
5029 done
31cb0113 5030 done
31cb0113 5031IFS=$as_save_IFS
80ed523f
VZ
5032 if test -z "$ac_cv_path_FGREP"; then
5033 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5034 fi
8414a40c 5035else
31cb0113 5036 ac_cv_path_FGREP=$FGREP
8414a40c 5037fi
8414a40c 5038
31cb0113 5039 fi
8414a40c 5040fi
80ed523f
VZ
5041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042$as_echo "$ac_cv_path_FGREP" >&6; }
31cb0113 5043 FGREP="$ac_cv_path_FGREP"
8414a40c
VZ
5044
5045
5046test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
31cb0113 5066# Check whether --with-gnu-ld was given.
80ed523f 5067if test "${with_gnu_ld+set}" = set; then :
31cb0113 5068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8414a40c
VZ
5069else
5070 with_gnu_ld=no
31cb0113
VZ
5071fi
5072
8414a40c
VZ
5073ac_prog=ld
5074if test "$GCC" = yes; then
5075 # Check if gcc -print-prog-name=ld gives a path.
80ed523f
VZ
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5077$as_echo_n "checking for ld used by $CC... " >&6; }
8414a40c
VZ
5078 case $host in
5079 *-*-mingw*)
5080 # gcc leaves a trailing carriage return which upsets mingw
5081 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5082 *)
5083 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5084 esac
5085 case $ac_prog in
5086 # Accept absolute paths.
5087 [\\/]* | ?:[\\/]*)
5088 re_direlt='/[^/][^/]*/\.\./'
5089 # Canonicalize the pathname of ld
5090 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5091 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5092 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5093 done
5094 test -z "$LD" && LD="$ac_prog"
5095 ;;
5096 "")
5097 # If it fails, then pretend we aren't using GCC.
5098 ac_prog=ld
5099 ;;
5100 *)
5101 # If it is relative, then search for the first ld in PATH.
5102 with_gnu_ld=unknown
5103 ;;
5104 esac
5105elif test "$with_gnu_ld" = yes; then
80ed523f
VZ
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5107$as_echo_n "checking for GNU ld... " >&6; }
8414a40c 5108else
80ed523f
VZ
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5110$as_echo_n "checking for non-GNU ld... " >&6; }
8414a40c 5111fi
80ed523f
VZ
5112if ${lt_cv_path_LD+:} false; then :
5113 $as_echo_n "(cached) " >&6
8414a40c
VZ
5114else
5115 if test -z "$LD"; then
5116 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5117 for ac_dir in $PATH; do
5118 IFS="$lt_save_ifs"
5119 test -z "$ac_dir" && ac_dir=.
5120 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5121 lt_cv_path_LD="$ac_dir/$ac_prog"
5122 # Check to see if the program is GNU ld. I'd rather use --version,
5123 # but apparently some variants of GNU ld only accept -v.
5124 # Break only if it was the GNU/non-GNU ld that we prefer.
5125 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5126 *GNU* | *'with BFD'*)
5127 test "$with_gnu_ld" != no && break
5128 ;;
5129 *)
5130 test "$with_gnu_ld" != yes && break
5131 ;;
5132 esac
5133 fi
5134 done
5135 IFS="$lt_save_ifs"
5136else
5137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5138fi
5139fi
5140
5141LD="$lt_cv_path_LD"
5142if test -n "$LD"; then
80ed523f
VZ
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144$as_echo "$LD" >&6; }
8414a40c 5145else
80ed523f
VZ
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147$as_echo "no" >&6; }
8414a40c 5148fi
80ed523f
VZ
5149test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5151$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5152if ${lt_cv_prog_gnu_ld+:} false; then :
5153 $as_echo_n "(cached) " >&6
8414a40c
VZ
5154else
5155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156case `$LD -v 2>&1 </dev/null` in
5157*GNU* | *'with BFD'*)
5158 lt_cv_prog_gnu_ld=yes
5159 ;;
5160*)
5161 lt_cv_prog_gnu_ld=no
5162 ;;
5163esac
5164fi
80ed523f
VZ
5165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5166$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8414a40c
VZ
5167with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
80ed523f
VZ
5177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5178$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5179if ${lt_cv_path_NM+:} false; then :
5180 $as_echo_n "(cached) " >&6
8414a40c
VZ
5181else
5182 if test -n "$NM"; then
5183 # Let the user override the test.
5184 lt_cv_path_NM="$NM"
5185else
5186 lt_nm_to_check="${ac_tool_prefix}nm"
5187 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5188 lt_nm_to_check="$lt_nm_to_check nm"
5189 fi
5190 for lt_tmp_nm in $lt_nm_to_check; do
5191 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5192 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5193 IFS="$lt_save_ifs"
5194 test -z "$ac_dir" && ac_dir=.
5195 tmp_nm="$ac_dir/$lt_tmp_nm"
5196 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5197 # Check to see if the nm accepts a BSD-compat flag.
5198 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5199 # nm: unknown option "B" ignored
5200 # Tru64's nm complains that /dev/null is an invalid object file
5201 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5202 */dev/null* | *'Invalid file or object type'*)
5203 lt_cv_path_NM="$tmp_nm -B"
5204 break
5205 ;;
5206 *)
5207 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5208 */dev/null*)
5209 lt_cv_path_NM="$tmp_nm -p"
5210 break
5211 ;;
5212 *)
5213 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5214 continue # so that we can try to find one that supports BSD flags
5215 ;;
5216 esac
5217 ;;
5218 esac
5219 fi
5220 done
5221 IFS="$lt_save_ifs"
5222 done
5223 : ${lt_cv_path_NM=no}
5224fi
5225fi
80ed523f
VZ
5226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5227$as_echo "$lt_cv_path_NM" >&6; }
8414a40c
VZ
5228if test "$lt_cv_path_NM" != "no"; then
5229 NM="$lt_cv_path_NM"
5230else
5231 # Didn't find any BSD compatible name lister, look for dumpbin.
80ed523f
VZ
5232 if test -n "$DUMPBIN"; then :
5233 # Let the user override the test.
5234 else
5235 if test -n "$ac_tool_prefix"; then
5236 for ac_prog in dumpbin "link -dump"
8414a40c
VZ
5237 do
5238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5239set dummy $ac_tool_prefix$ac_prog; ac_word=$2
80ed523f
VZ
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241$as_echo_n "checking for $ac_word... " >&6; }
5242if ${ac_cv_prog_DUMPBIN+:} false; then :
5243 $as_echo_n "(cached) " >&6
8414a40c
VZ
5244else
5245 if test -n "$DUMPBIN"; then
5246 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5247else
5248as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249for as_dir in $PATH
5250do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
80ed523f
VZ
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 5255 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
80ed523f 5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
5257 break 2
5258 fi
5259done
80ed523f 5260 done
31cb0113 5261IFS=$as_save_IFS
8414a40c
VZ
5262
5263fi
5264fi
5265DUMPBIN=$ac_cv_prog_DUMPBIN
5266if test -n "$DUMPBIN"; then
80ed523f
VZ
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5268$as_echo "$DUMPBIN" >&6; }
8414a40c 5269else
80ed523f
VZ
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271$as_echo "no" >&6; }
8414a40c
VZ
5272fi
5273
31cb0113 5274
8414a40c
VZ
5275 test -n "$DUMPBIN" && break
5276 done
5277fi
5278if test -z "$DUMPBIN"; then
5279 ac_ct_DUMPBIN=$DUMPBIN
80ed523f 5280 for ac_prog in dumpbin "link -dump"
8414a40c
VZ
5281do
5282 # Extract the first word of "$ac_prog", so it can be a program name with args.
5283set dummy $ac_prog; ac_word=$2
80ed523f
VZ
5284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285$as_echo_n "checking for $ac_word... " >&6; }
5286if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5287 $as_echo_n "(cached) " >&6
8414a40c
VZ
5288else
5289 if test -n "$ac_ct_DUMPBIN"; then
5290 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5291else
5292as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293for as_dir in $PATH
5294do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
80ed523f
VZ
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 5299 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
80ed523f 5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
5301 break 2
5302 fi
5303done
80ed523f 5304 done
31cb0113 5305IFS=$as_save_IFS
8414a40c
VZ
5306
5307fi
5308fi
5309ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5310if test -n "$ac_ct_DUMPBIN"; then
80ed523f
VZ
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5312$as_echo "$ac_ct_DUMPBIN" >&6; }
8414a40c 5313else
80ed523f
VZ
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315$as_echo "no" >&6; }
8414a40c
VZ
5316fi
5317
31cb0113 5318
8414a40c
VZ
5319 test -n "$ac_ct_DUMPBIN" && break
5320done
8414a40c 5321
31cb0113
VZ
5322 if test "x$ac_ct_DUMPBIN" = x; then
5323 DUMPBIN=":"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326yes:)
80ed523f
VZ
5327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
5329ac_tool_warned=yes ;;
5330esac
5331 DUMPBIN=$ac_ct_DUMPBIN
5332 fi
8414a40c
VZ
5333fi
5334
80ed523f
VZ
5335 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5336 *COFF*)
5337 DUMPBIN="$DUMPBIN -symbols"
5338 ;;
5339 *)
5340 DUMPBIN=:
5341 ;;
5342 esac
5343 fi
8414a40c
VZ
5344
5345 if test "$DUMPBIN" != ":"; then
5346 NM="$DUMPBIN"
5347 fi
5348fi
5349test -z "$NM" && NM=nm
5350
5351
5352
5353
5354
5355
80ed523f
VZ
5356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5357$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5358if ${lt_cv_nm_interface+:} false; then :
5359 $as_echo_n "(cached) " >&6
8414a40c
VZ
5360else
5361 lt_cv_nm_interface="BSD nm"
5362 echo "int some_variable = 0;" > conftest.$ac_ext
80ed523f 5363 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8414a40c
VZ
5364 (eval "$ac_compile" 2>conftest.err)
5365 cat conftest.err >&5
80ed523f 5366 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8414a40c
VZ
5367 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5368 cat conftest.err >&5
80ed523f 5369 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8414a40c
VZ
5370 cat conftest.out >&5
5371 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5372 lt_cv_nm_interface="MS dumpbin"
5373 fi
5374 rm -f conftest*
5375fi
80ed523f
VZ
5376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5377$as_echo "$lt_cv_nm_interface" >&6; }
8414a40c
VZ
5378
5379# find the maximum length of command line arguments
80ed523f
VZ
5380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5381$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5382if ${lt_cv_sys_max_cmd_len+:} false; then :
5383 $as_echo_n "(cached) " >&6
8414a40c
VZ
5384else
5385 i=0
5386 teststring="ABCD"
5387
5388 case $build_os in
5389 msdosdjgpp*)
5390 # On DJGPP, this test can blow up pretty badly due to problems in libc
5391 # (any single argument exceeding 2000 bytes causes a buffer overrun
5392 # during glob expansion). Even if it were fixed, the result of this
5393 # check would be larger than it should be.
5394 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5395 ;;
5396
5397 gnu*)
5398 # Under GNU Hurd, this test is not required because there is
5399 # no limit to the length of command line arguments.
5400 # Libtool will interpret -1 as no limit whatsoever
5401 lt_cv_sys_max_cmd_len=-1;
5402 ;;
5403
80ed523f 5404 cygwin* | mingw* | cegcc*)
8414a40c
VZ
5405 # On Win9x/ME, this test blows up -- it succeeds, but takes
5406 # about 5 minutes as the teststring grows exponentially.
5407 # Worse, since 9x/ME are not pre-emptively multitasking,
5408 # you end up with a "frozen" computer, even though with patience
5409 # the test eventually succeeds (with a max line length of 256k).
5410 # Instead, let's just punt: use the minimum linelength reported by
5411 # all of the supported platforms: 8192 (on NT/2K/XP).
5412 lt_cv_sys_max_cmd_len=8192;
5413 ;;
5414
80ed523f
VZ
5415 mint*)
5416 # On MiNT this can take a long time and run out of memory.
5417 lt_cv_sys_max_cmd_len=8192;
5418 ;;
5419
8414a40c
VZ
5420 amigaos*)
5421 # On AmigaOS with pdksh, this test takes hours, literally.
5422 # So we just punt and use a minimum line length of 8192.
5423 lt_cv_sys_max_cmd_len=8192;
5424 ;;
5425
5426 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5427 # This has been around since 386BSD, at least. Likely further.
5428 if test -x /sbin/sysctl; then
5429 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5430 elif test -x /usr/sbin/sysctl; then
5431 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5432 else
5433 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5434 fi
5435 # And add a safety zone
5436 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5437 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5438 ;;
5439
5440 interix*)
5441 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5442 lt_cv_sys_max_cmd_len=196608
5443 ;;
5444
80ed523f
VZ
5445 os2*)
5446 # The test takes a long time on OS/2.
5447 lt_cv_sys_max_cmd_len=8192
5448 ;;
5449
8414a40c
VZ
5450 osf*)
5451 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5452 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5453 # nice to cause kernel panics so lets avoid the loop below.
5454 # First set a reasonable default.
5455 lt_cv_sys_max_cmd_len=16384
5456 #
5457 if test -x /sbin/sysconfig; then
5458 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5459 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5460 esac
5461 fi
5462 ;;
5463 sco3.2v5*)
5464 lt_cv_sys_max_cmd_len=102400
5465 ;;
5466 sysv5* | sco5v6* | sysv4.2uw2*)
5467 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5468 if test -n "$kargmax"; then
80ed523f 5469 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8414a40c
VZ
5470 else
5471 lt_cv_sys_max_cmd_len=32768
5472 fi
5473 ;;
5474 *)
80ed523f
VZ
5475 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5476 if test -n "$lt_cv_sys_max_cmd_len"; then
5477 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5478 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5479 else
5480 # Make teststring a little bigger before we do anything with it.
5481 # a 1K string should be a reasonable start.
5482 for i in 1 2 3 4 5 6 7 8 ; do
5483 teststring=$teststring$teststring
5484 done
5485 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5486 # If test is not a shell built-in, we'll probably end up computing a
5487 # maximum length that is only half of the actual maximum length, but
5488 # we can't tell.
5489 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5490 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5491 test $i != 17 # 1/2 MB should be enough
5492 do
5493 i=`expr $i + 1`
5494 teststring=$teststring$teststring
5495 done
5496 # Only check the string length outside the loop.
5497 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5498 teststring=
5499 # Add a significant safety factor because C++ compilers can tack on
5500 # massive amounts of additional arguments before passing them to the
5501 # linker. It appears as though 1/2 is a usable value.
5502 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5503 fi
8414a40c
VZ
5504 ;;
5505 esac
5506
5507fi
5508
5509if test -n $lt_cv_sys_max_cmd_len ; then
80ed523f
VZ
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5511$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8414a40c 5512else
80ed523f
VZ
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514$as_echo "none" >&6; }
8414a40c
VZ
5515fi
5516max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
8414a40c
VZ
5523: ${CP="cp -f"}
5524: ${MV="mv -f"}
5525: ${RM="rm -f"}
5526
80ed523f
VZ
5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5528$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8414a40c
VZ
5529# Try some XSI features
5530xsi_shell=no
5531( _lt_dummy="a/b/c"
80ed523f
VZ
5532 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5533 = c,a/b,b/c, \
5534 && eval 'test $(( 1 + 1 )) -eq 2 \
5535 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8414a40c 5536 && xsi_shell=yes
80ed523f
VZ
5537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5538$as_echo "$xsi_shell" >&6; }
5539
5540
5541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5542$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5543lt_shell_append=no
5544( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5545 >/dev/null 2>&1 \
5546 && lt_shell_append=yes
5547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5548$as_echo "$lt_shell_append" >&6; }
5549
5550
5551if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5552 lt_unset=unset
5553else
5554 lt_unset=false
5555fi
5556
5557
5558
5559
5560
5561# test EBCDIC or ASCII
5562case `echo X|tr X '\101'` in
5563 A) # ASCII based system
5564 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5565 lt_SP2NL='tr \040 \012'
5566 lt_NL2SP='tr \015\012 \040\040'
5567 ;;
5568 *) # EBCDIC based system
5569 lt_SP2NL='tr \100 \n'
5570 lt_NL2SP='tr \r\n \100\100'
5571 ;;
5572esac
5573
5574
5575
5576
5577
5578
5579
5580
5581
5582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5583$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5584if ${lt_cv_to_host_file_cmd+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586else
5587 case $host in
5588 *-*-mingw* )
5589 case $build in
5590 *-*-mingw* ) # actually msys
5591 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5592 ;;
5593 *-*-cygwin* )
5594 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5595 ;;
5596 * ) # otherwise, assume *nix
5597 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5598 ;;
5599 esac
5600 ;;
5601 *-*-cygwin* )
5602 case $build in
5603 *-*-mingw* ) # actually msys
5604 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5605 ;;
5606 *-*-cygwin* )
5607 lt_cv_to_host_file_cmd=func_convert_file_noop
5608 ;;
5609 * ) # otherwise, assume *nix
5610 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5611 ;;
5612 esac
5613 ;;
5614 * ) # unhandled hosts (and "normal" native builds)
5615 lt_cv_to_host_file_cmd=func_convert_file_noop
5616 ;;
5617esac
5618
5619fi
5620
5621to_host_file_cmd=$lt_cv_to_host_file_cmd
5622{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5623$as_echo "$lt_cv_to_host_file_cmd" >&6; }
5624
5625
5626
5627
5628
5629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5630$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5631if ${lt_cv_to_tool_file_cmd+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633else
5634 #assume ordinary cross tools, or native build.
5635lt_cv_to_tool_file_cmd=func_convert_file_noop
5636case $host in
5637 *-*-mingw* )
5638 case $build in
5639 *-*-mingw* ) # actually msys
5640 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5641 ;;
5642 esac
5643 ;;
5644esac
5645
5646fi
5647
5648to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5650$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8414a40c
VZ
5651
5652
80ed523f
VZ
5653
5654
5655
5656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5657$as_echo_n "checking for $LD option to reload object files... " >&6; }
5658if ${lt_cv_ld_reload_flag+:} false; then :
5659 $as_echo_n "(cached) " >&6
8414a40c
VZ
5660else
5661 lt_cv_ld_reload_flag='-r'
5662fi
80ed523f
VZ
5663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664$as_echo "$lt_cv_ld_reload_flag" >&6; }
8414a40c
VZ
5665reload_flag=$lt_cv_ld_reload_flag
5666case $reload_flag in
5667"" | " "*) ;;
5668*) reload_flag=" $reload_flag" ;;
5669esac
5670reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671case $host_os in
80ed523f
VZ
5672 cygwin* | mingw* | pw32* | cegcc*)
5673 if test "$GCC" != yes; then
5674 reload_cmds=false
5675 fi
5676 ;;
8414a40c
VZ
5677 darwin*)
5678 if test "$GCC" = yes; then
5679 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5680 else
5681 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5682 fi
5683 ;;
5684esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
80ed523f
VZ
5694if test -n "$ac_tool_prefix"; then
5695 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5696set dummy ${ac_tool_prefix}objdump; ac_word=$2
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5698$as_echo_n "checking for $ac_word... " >&6; }
5699if ${ac_cv_prog_OBJDUMP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701else
5702 if test -n "$OBJDUMP"; then
5703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5704else
5705as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706for as_dir in $PATH
5707do
5708 IFS=$as_save_IFS
5709 test -z "$as_dir" && as_dir=.
5710 for ac_exec_ext in '' $ac_executable_extensions; do
5711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5712 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5714 break 2
5715 fi
5716done
5717 done
5718IFS=$as_save_IFS
8414a40c 5719
80ed523f
VZ
5720fi
5721fi
5722OBJDUMP=$ac_cv_prog_OBJDUMP
5723if test -n "$OBJDUMP"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725$as_echo "$OBJDUMP" >&6; }
8414a40c 5726else
80ed523f
VZ
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728$as_echo "no" >&6; }
5729fi
8414a40c 5730
8414a40c 5731
80ed523f
VZ
5732fi
5733if test -z "$ac_cv_prog_OBJDUMP"; then
5734 ac_ct_OBJDUMP=$OBJDUMP
5735 # Extract the first word of "objdump", so it can be a program name with args.
5736set dummy objdump; ac_word=$2
5737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5738$as_echo_n "checking for $ac_word... " >&6; }
5739if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741else
5742 if test -n "$ac_ct_OBJDUMP"; then
5743 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5744else
5745as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746for as_dir in $PATH
5747do
5748 IFS=$as_save_IFS
5749 test -z "$as_dir" && as_dir=.
5750 for ac_exec_ext in '' $ac_executable_extensions; do
5751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5752 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5754 break 2
5755 fi
5756done
5757 done
5758IFS=$as_save_IFS
5759
5760fi
5761fi
5762ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763if test -n "$ac_ct_OBJDUMP"; then
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5765$as_echo "$ac_ct_OBJDUMP" >&6; }
5766else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768$as_echo "no" >&6; }
5769fi
5770
5771 if test "x$ac_ct_OBJDUMP" = x; then
5772 OBJDUMP="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775yes:)
5776{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5777$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5778ac_tool_warned=yes ;;
5779esac
5780 OBJDUMP=$ac_ct_OBJDUMP
5781 fi
5782else
5783 OBJDUMP="$ac_cv_prog_OBJDUMP"
5784fi
5785
5786test -z "$OBJDUMP" && OBJDUMP=objdump
5787
5788
5789
5790
5791
5792
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5794$as_echo_n "checking how to recognize dependent libraries... " >&6; }
5795if ${lt_cv_deplibs_check_method+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797else
5798 lt_cv_file_magic_cmd='$MAGIC_CMD'
5799lt_cv_file_magic_test_file=
5800lt_cv_deplibs_check_method='unknown'
5801# Need to set the preceding variable on all platforms that support
5802# interlibrary dependencies.
5803# 'none' -- dependencies not supported.
5804# `unknown' -- same as none, but documents that we really don't know.
5805# 'pass_all' -- all dependencies passed with no checks.
5806# 'test_compile' -- check by making test program.
5807# 'file_magic [[regex]]' -- check by looking for files in library path
5808# which responds to the $file_magic_cmd with a given extended regex.
5809# If you have `file' or equivalent on your system and you're not sure
5810# whether `pass_all' will *always* work, you probably want this one.
5811
5812case $host_os in
5813aix[4-9]*)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817beos*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
8414a40c
VZ
5820
5821bsdi[45]*)
5822 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5823 lt_cv_file_magic_cmd='/usr/bin/file -L'
5824 lt_cv_file_magic_test_file=/shlib/libc.so
5825 ;;
5826
5827cygwin*)
5828 # func_win32_libid is a shell function defined in ltmain.sh
5829 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5830 lt_cv_file_magic_cmd='func_win32_libid'
5831 ;;
5832
8414a40c 5833mingw* | pw32*)
80ed523f
VZ
5834 # Base MSYS/MinGW do not provide the 'file' command needed by
5835 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5836 # unless we find 'file', for example because we are cross-compiling.
5837 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5838 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5839 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5840 lt_cv_file_magic_cmd='func_win32_libid'
5841 else
5842 # Keep this pattern in sync with the one in func_win32_libid.
5843 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5844 lt_cv_file_magic_cmd='$OBJDUMP -f'
5845 fi
5846 ;;
5847
5848cegcc*)
5849 # use the weaker test based on 'objdump'. See mingw*.
5850 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8414a40c
VZ
5851 lt_cv_file_magic_cmd='$OBJDUMP -f'
5852 ;;
5853
5854darwin* | rhapsody*)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
80ed523f 5858freebsd* | dragonfly*)
8414a40c
VZ
5859 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5860 case $host_cpu in
5861 i*86 )
5862 # Not sure whether the presence of OpenBSD here was a mistake.
5863 # Let's accept both of them until this is cleared up.
5864 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5865 lt_cv_file_magic_cmd=/usr/bin/file
5866 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5867 ;;
5868 esac
5869 else
5870 lt_cv_deplibs_check_method=pass_all
5871 fi
5872 ;;
5873
5874gnu*)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877
80ed523f
VZ
5878haiku*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
8414a40c
VZ
5882hpux10.20* | hpux11*)
5883 lt_cv_file_magic_cmd=/usr/bin/file
5884 case $host_cpu in
5885 ia64*)
5886 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5887 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5888 ;;
5889 hppa*64*)
80ed523f 5890 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
8414a40c
VZ
5891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892 ;;
5893 *)
80ed523f 5894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8414a40c
VZ
5895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896 ;;
5897 esac
5898 ;;
5899
80ed523f 5900interix[3-9]*)
8414a40c
VZ
5901 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5902 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5903 ;;
5904
5905irix5* | irix6* | nonstopux*)
5906 case $LD in
5907 *-32|*"-32 ") libmagic=32-bit;;
5908 *-n32|*"-n32 ") libmagic=N32;;
5909 *-64|*"-64 ") libmagic=64-bit;;
5910 *) libmagic=never-match;;
5911 esac
5912 lt_cv_deplibs_check_method=pass_all
5913 ;;
5914
80ed523f
VZ
5915# This must be glibc/ELF.
5916linux* | k*bsd*-gnu | kopensolaris*-gnu)
8414a40c
VZ
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
80ed523f 5920netbsd*)
8414a40c
VZ
5921 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5922 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5923 else
5924 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5925 fi
5926 ;;
5927
5928newos6*)
5929 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5930 lt_cv_file_magic_cmd=/usr/bin/file
5931 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5932 ;;
5933
5934*nto* | *qnx*)
5935 lt_cv_deplibs_check_method=pass_all
5936 ;;
5937
5938openbsd*)
5939 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5940 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5941 else
5942 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5943 fi
5944 ;;
5945
5946osf3* | osf4* | osf5*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950rdos*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954solaris*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962sysv4 | sysv4.3*)
5963 case $host_vendor in
5964 motorola)
5965 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]'
5966 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5967 ;;
5968 ncr)
5969 lt_cv_deplibs_check_method=pass_all
5970 ;;
5971 sequent)
5972 lt_cv_file_magic_cmd='/bin/file'
5973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5974 ;;
5975 sni)
5976 lt_cv_file_magic_cmd='/bin/file'
5977 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5978 lt_cv_file_magic_test_file=/lib/libc.so
5979 ;;
5980 siemens)
5981 lt_cv_deplibs_check_method=pass_all
5982 ;;
5983 pc)
5984 lt_cv_deplibs_check_method=pass_all
5985 ;;
5986 esac
5987 ;;
5988
5989tpf*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992esac
5993
5994fi
80ed523f
VZ
5995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5996$as_echo "$lt_cv_deplibs_check_method" >&6; }
5997
5998file_magic_glob=
5999want_nocaseglob=no
6000if test "$build" = "$host"; then
6001 case $host_os in
6002 mingw* | pw32*)
6003 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
6004 want_nocaseglob=yes
6005 else
6006 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
6007 fi
6008 ;;
6009 esac
6010fi
6011
8414a40c
VZ
6012file_magic_cmd=$lt_cv_file_magic_cmd
6013deplibs_check_method=$lt_cv_deplibs_check_method
6014test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
80ed523f
VZ
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037if test -n "$ac_tool_prefix"; then
6038 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
6039set dummy ${ac_tool_prefix}dlltool; ac_word=$2
6040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6041$as_echo_n "checking for $ac_word... " >&6; }
6042if ${ac_cv_prog_DLLTOOL+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044else
6045 if test -n "$DLLTOOL"; then
6046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6047else
6048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049for as_dir in $PATH
6050do
6051 IFS=$as_save_IFS
6052 test -z "$as_dir" && as_dir=.
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6055 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
6056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6057 break 2
6058 fi
6059done
6060 done
6061IFS=$as_save_IFS
6062
6063fi
6064fi
6065DLLTOOL=$ac_cv_prog_DLLTOOL
6066if test -n "$DLLTOOL"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068$as_echo "$DLLTOOL" >&6; }
6069else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071$as_echo "no" >&6; }
6072fi
6073
6074
6075fi
6076if test -z "$ac_cv_prog_DLLTOOL"; then
6077 ac_ct_DLLTOOL=$DLLTOOL
6078 # Extract the first word of "dlltool", so it can be a program name with args.
6079set dummy dlltool; ac_word=$2
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6081$as_echo_n "checking for $ac_word... " >&6; }
6082if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084else
6085 if test -n "$ac_ct_DLLTOOL"; then
6086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6087else
6088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089for as_dir in $PATH
6090do
6091 IFS=$as_save_IFS
6092 test -z "$as_dir" && as_dir=.
6093 for ac_exec_ext in '' $ac_executable_extensions; do
6094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6095 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
6096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6097 break 2
6098 fi
6099done
6100 done
6101IFS=$as_save_IFS
6102
6103fi
6104fi
6105ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106if test -n "$ac_ct_DLLTOOL"; then
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
6108$as_echo "$ac_ct_DLLTOOL" >&6; }
6109else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111$as_echo "no" >&6; }
6112fi
6113
6114 if test "x$ac_ct_DLLTOOL" = x; then
6115 DLLTOOL="false"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118yes:)
6119{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6120$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6121ac_tool_warned=yes ;;
6122esac
6123 DLLTOOL=$ac_ct_DLLTOOL
6124 fi
6125else
6126 DLLTOOL="$ac_cv_prog_DLLTOOL"
6127fi
6128
6129test -z "$DLLTOOL" && DLLTOOL=dlltool
6130
6131
6132
6133
6134
6135
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
6138$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
6139if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141else
6142 lt_cv_sharedlib_from_linklib_cmd='unknown'
6143
6144case $host_os in
6145cygwin* | mingw* | pw32* | cegcc*)
6146 # two different shell functions defined in ltmain.sh
6147 # decide which to use based on capabilities of $DLLTOOL
6148 case `$DLLTOOL --help 2>&1` in
6149 *--identify-strict*)
6150 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
6151 ;;
6152 *)
6153 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
6154 ;;
6155 esac
6156 ;;
6157*)
6158 # fallback: assume linklib IS sharedlib
6159 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
6160 ;;
6161esac
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
6165$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
6166sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6168
6169
6170
6171
6172
6173
6174
8414a40c 6175if test -n "$ac_tool_prefix"; then
80ed523f
VZ
6176 for ac_prog in ar
6177 do
6178 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6179set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6181$as_echo_n "checking for $ac_word... " >&6; }
6182if ${ac_cv_prog_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
8414a40c
VZ
6184else
6185 if test -n "$AR"; then
6186 ac_cv_prog_AR="$AR" # Let the user override the test.
6187else
6188as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189for as_dir in $PATH
6190do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6193 for ac_exec_ext in '' $ac_executable_extensions; do
6194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6195 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
6196 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6197 break 2
6198 fi
6199done
80ed523f 6200 done
31cb0113 6201IFS=$as_save_IFS
8414a40c
VZ
6202
6203fi
6204fi
6205AR=$ac_cv_prog_AR
6206if test -n "$AR"; then
80ed523f
VZ
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208$as_echo "$AR" >&6; }
8414a40c 6209else
80ed523f
VZ
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211$as_echo "no" >&6; }
8414a40c
VZ
6212fi
6213
31cb0113 6214
80ed523f
VZ
6215 test -n "$AR" && break
6216 done
8414a40c 6217fi
80ed523f 6218if test -z "$AR"; then
8414a40c 6219 ac_ct_AR=$AR
80ed523f
VZ
6220 for ac_prog in ar
6221do
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223set dummy $ac_prog; ac_word=$2
6224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6225$as_echo_n "checking for $ac_word... " >&6; }
6226if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227 $as_echo_n "(cached) " >&6
8414a40c
VZ
6228else
6229 if test -n "$ac_ct_AR"; then
6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231else
6232as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233for as_dir in $PATH
6234do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6237 for ac_exec_ext in '' $ac_executable_extensions; do
6238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6239 ac_cv_prog_ac_ct_AR="$ac_prog"
6240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6241 break 2
6242 fi
6243done
80ed523f 6244 done
31cb0113 6245IFS=$as_save_IFS
8414a40c 6246
8414a40c
VZ
6247fi
6248fi
6249ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250if test -n "$ac_ct_AR"; then
80ed523f
VZ
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252$as_echo "$ac_ct_AR" >&6; }
8414a40c 6253else
80ed523f
VZ
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255$as_echo "no" >&6; }
8414a40c
VZ
6256fi
6257
80ed523f
VZ
6258
6259 test -n "$ac_ct_AR" && break
6260done
6261
31cb0113
VZ
6262 if test "x$ac_ct_AR" = x; then
6263 AR="false"
6264 else
6265 case $cross_compiling:$ac_tool_warned in
6266yes:)
80ed523f
VZ
6267{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6268$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
6269ac_tool_warned=yes ;;
6270esac
6271 AR=$ac_ct_AR
6272 fi
8414a40c
VZ
6273fi
6274
80ed523f
VZ
6275: ${AR=ar}
6276: ${AR_FLAGS=cru}
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286
6287
6288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6289$as_echo_n "checking for archiver @FILE support... " >&6; }
6290if ${lt_cv_ar_at_file+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292else
6293 lt_cv_ar_at_file=no
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295/* end confdefs.h. */
6296
6297int
6298main ()
6299{
8414a40c 6300
80ed523f
VZ
6301 ;
6302 return 0;
6303}
6304_ACEOF
6305if ac_fn_c_try_compile "$LINENO"; then :
6306 echo conftest.$ac_objext > conftest.lst
6307 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6309 (eval $lt_ar_try) 2>&5
6310 ac_status=$?
6311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6312 test $ac_status = 0; }
6313 if test "$ac_status" -eq 0; then
6314 # Ensure the archiver fails upon bogus file names.
6315 rm -f conftest.$ac_objext libconftest.a
6316 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6317 (eval $lt_ar_try) 2>&5
6318 ac_status=$?
6319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6320 test $ac_status = 0; }
6321 if test "$ac_status" -ne 0; then
6322 lt_cv_ar_at_file=@
6323 fi
6324 fi
6325 rm -f conftest.* libconftest.a
8414a40c 6326
80ed523f
VZ
6327fi
6328rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414a40c 6329
80ed523f
VZ
6330fi
6331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332$as_echo "$lt_cv_ar_at_file" >&6; }
8414a40c 6333
80ed523f
VZ
6334if test "x$lt_cv_ar_at_file" = xno; then
6335 archiver_list_spec=
6336else
6337 archiver_list_spec=$lt_cv_ar_at_file
6338fi
8414a40c
VZ
6339
6340
6341
6342
6343
6344
6345
6346if test -n "$ac_tool_prefix"; then
6347 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6348set dummy ${ac_tool_prefix}strip; ac_word=$2
80ed523f
VZ
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350$as_echo_n "checking for $ac_word... " >&6; }
6351if ${ac_cv_prog_STRIP+:} false; then :
6352 $as_echo_n "(cached) " >&6
8414a40c
VZ
6353else
6354 if test -n "$STRIP"; then
6355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6356else
6357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358for as_dir in $PATH
6359do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 6364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
80ed523f 6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6366 break 2
6367 fi
6368done
80ed523f 6369 done
31cb0113 6370IFS=$as_save_IFS
8414a40c
VZ
6371
6372fi
6373fi
6374STRIP=$ac_cv_prog_STRIP
6375if test -n "$STRIP"; then
80ed523f
VZ
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377$as_echo "$STRIP" >&6; }
8414a40c 6378else
80ed523f
VZ
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380$as_echo "no" >&6; }
8414a40c
VZ
6381fi
6382
31cb0113 6383
8414a40c
VZ
6384fi
6385if test -z "$ac_cv_prog_STRIP"; then
6386 ac_ct_STRIP=$STRIP
6387 # Extract the first word of "strip", so it can be a program name with args.
6388set dummy strip; ac_word=$2
80ed523f
VZ
6389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390$as_echo_n "checking for $ac_word... " >&6; }
6391if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392 $as_echo_n "(cached) " >&6
8414a40c
VZ
6393else
6394 if test -n "$ac_ct_STRIP"; then
6395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396else
6397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398for as_dir in $PATH
6399do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 6404 ac_cv_prog_ac_ct_STRIP="strip"
80ed523f 6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6406 break 2
6407 fi
6408done
80ed523f 6409 done
31cb0113 6410IFS=$as_save_IFS
8414a40c 6411
8414a40c
VZ
6412fi
6413fi
6414ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415if test -n "$ac_ct_STRIP"; then
80ed523f
VZ
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417$as_echo "$ac_ct_STRIP" >&6; }
8414a40c 6418else
80ed523f
VZ
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420$as_echo "no" >&6; }
8414a40c
VZ
6421fi
6422
31cb0113
VZ
6423 if test "x$ac_ct_STRIP" = x; then
6424 STRIP=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427yes:)
80ed523f
VZ
6428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
6430ac_tool_warned=yes ;;
6431esac
6432 STRIP=$ac_ct_STRIP
6433 fi
8414a40c
VZ
6434else
6435 STRIP="$ac_cv_prog_STRIP"
6436fi
6437
6438test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445if test -n "$ac_tool_prefix"; then
6446 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6447set dummy ${ac_tool_prefix}ranlib; ac_word=$2
80ed523f
VZ
6448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449$as_echo_n "checking for $ac_word... " >&6; }
6450if ${ac_cv_prog_RANLIB+:} false; then :
6451 $as_echo_n "(cached) " >&6
8414a40c
VZ
6452else
6453 if test -n "$RANLIB"; then
6454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455else
6456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457for as_dir in $PATH
6458do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 6463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
80ed523f 6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6465 break 2
6466 fi
6467done
80ed523f 6468 done
31cb0113 6469IFS=$as_save_IFS
8414a40c
VZ
6470
6471fi
6472fi
6473RANLIB=$ac_cv_prog_RANLIB
6474if test -n "$RANLIB"; then
80ed523f
VZ
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476$as_echo "$RANLIB" >&6; }
8414a40c 6477else
80ed523f
VZ
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479$as_echo "no" >&6; }
8414a40c
VZ
6480fi
6481
31cb0113 6482
8414a40c
VZ
6483fi
6484if test -z "$ac_cv_prog_RANLIB"; then
6485 ac_ct_RANLIB=$RANLIB
6486 # Extract the first word of "ranlib", so it can be a program name with args.
6487set dummy ranlib; ac_word=$2
80ed523f
VZ
6488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489$as_echo_n "checking for $ac_word... " >&6; }
6490if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491 $as_echo_n "(cached) " >&6
8414a40c
VZ
6492else
6493 if test -n "$ac_ct_RANLIB"; then
6494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495else
6496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497for as_dir in $PATH
6498do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
80ed523f
VZ
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414a40c 6503 ac_cv_prog_ac_ct_RANLIB="ranlib"
80ed523f 6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8414a40c
VZ
6505 break 2
6506 fi
6507done
80ed523f 6508 done
31cb0113 6509IFS=$as_save_IFS
8414a40c 6510
8414a40c
VZ
6511fi
6512fi
6513ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514if test -n "$ac_ct_RANLIB"; then
80ed523f
VZ
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516$as_echo "$ac_ct_RANLIB" >&6; }
8414a40c 6517else
80ed523f
VZ
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519$as_echo "no" >&6; }
8414a40c
VZ
6520fi
6521
31cb0113
VZ
6522 if test "x$ac_ct_RANLIB" = x; then
6523 RANLIB=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526yes:)
80ed523f
VZ
6527{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6528$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
31cb0113
VZ
6529ac_tool_warned=yes ;;
6530esac
6531 RANLIB=$ac_ct_RANLIB
6532 fi
8414a40c
VZ
6533else
6534 RANLIB="$ac_cv_prog_RANLIB"
6535fi
6536
6537test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544# Determine commands to create old-style static archives.
80ed523f 6545old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8414a40c
VZ
6546old_postinstall_cmds='chmod 644 $oldlib'
6547old_postuninstall_cmds=
6548
6549if test -n "$RANLIB"; then
6550 case $host_os in
6551 openbsd*)
80ed523f 6552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
8414a40c
VZ
6553 ;;
6554 *)
80ed523f 6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
8414a40c
VZ
6556 ;;
6557 esac
80ed523f 6558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
8414a40c
VZ
6559fi
6560
80ed523f
VZ
6561case $host_os in
6562 darwin*)
6563 lock_old_archive_extraction=yes ;;
6564 *)
6565 lock_old_archive_extraction=no ;;
6566esac
8414a40c
VZ
6567
6568
6569
6570
6571
6572
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599
80ed523f
VZ
6600
6601
6602
6603
6604
6605
6606# If no C compiler was specified, use CC.
6607LTCC=${LTCC-"$CC"}
8414a40c
VZ
6608
6609# If no C compiler flags were specified, use CFLAGS.
6610LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612# Allow CC to be a program name with arguments.
6613compiler=$CC
6614
6615
6616# Check for command to grab the raw symbol name followed by C symbol from nm.
80ed523f
VZ
6617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6618$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6619if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620 $as_echo_n "(cached) " >&6
8414a40c
VZ
6621else
6622
6623# These are sane defaults that work on at least a few old systems.
6624# [They come from Ultrix. What could be older than Ultrix?!! ;)]
6625
6626# Character class describing NM global symbol codes.
6627symcode='[BCDEGRST]'
6628
6629# Regexp to match symbols that can be accessed directly from C.
6630sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632# Define system-specific variables.
6633case $host_os in
6634aix*)
6635 symcode='[BCDT]'
6636 ;;
80ed523f 6637cygwin* | mingw* | pw32* | cegcc*)
8414a40c
VZ
6638 symcode='[ABCDGISTW]'
6639 ;;
6640hpux*)
6641 if test "$host_cpu" = ia64; then
6642 symcode='[ABCDEGRST]'
6643 fi
6644 ;;
6645irix* | nonstopux*)
6646 symcode='[BCDEGRST]'
6647 ;;
6648osf*)
6649 symcode='[BCDEGQRST]'
6650 ;;
6651solaris*)
6652 symcode='[BDRT]'
6653 ;;
6654sco3.2v5*)
6655 symcode='[DT]'
6656 ;;
6657sysv4.2uw2*)
6658 symcode='[DT]'
6659 ;;
6660sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661 symcode='[ABDT]'
6662 ;;
6663sysv4)
6664 symcode='[DFNSTU]'
6665 ;;
6666esac
6667
6668# If we're using GNU nm, then use its standard symbol codes.
6669case `$NM -V 2>&1` in
6670*GNU* | *'with BFD'*)
6671 symcode='[ABCDGIRSTW]' ;;
6672esac
6673
6674# Transform an extracted symbol line into a proper C declaration.
6675# Some systems (esp. on ia64) link data and code symbols differently,
6676# so use this general approach.
6677lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6678
6679# Transform an extracted symbol line into symbol name and symbol address
80ed523f
VZ
6680lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6681lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
8414a40c
VZ
6682
6683# Handle CRLF in mingw tool chain
6684opt_cr=
6685case $build_os in
6686mingw*)
6687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6688 ;;
6689esac
6690
6691# Try without a prefix underscore, then with it.
6692for ac_symprfx in "" "_"; do
6693
6694 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6695 symxfrm="\\1 $ac_symprfx\\2 \\2"
6696
6697 # Write the raw and C identifiers.
6698 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6699 # Fake it for dumpbin and say T for any non-static function
6700 # and D for any global variable.
6701 # Also find C++ and __fastcall symbols from MSVC++,
6702 # which start with @ or ?.
6703 lt_cv_sys_global_symbol_pipe="$AWK '"\
6704" {last_section=section; section=\$ 3};"\
80ed523f 6705" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
8414a40c
VZ
6706" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6707" \$ 0!~/External *\|/{next};"\
6708" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6709" {if(hide[section]) next};"\
6710" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6711" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6712" s[1]~/^[@?]/{print s[1], s[1]; next};"\
6713" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6714" ' prfx=^$ac_symprfx"
6715 else
80ed523f 6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8414a40c 6717 fi
80ed523f 6718 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
8414a40c
VZ
6719
6720 # Check to see that the pipe works correctly.
6721 pipe_works=no
6722
6723 rm -f conftest*
6724 cat > conftest.$ac_ext <<_LT_EOF
6725#ifdef __cplusplus
6726extern "C" {
6727#endif
6728char nm_test_var;
80ed523f
VZ
6729void nm_test_func(void);
6730void nm_test_func(void){}
8414a40c
VZ
6731#ifdef __cplusplus
6732}
6733#endif
6734int main(){nm_test_var='a';nm_test_func();return(0);}
6735_LT_EOF
6736
80ed523f 6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414a40c
VZ
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
80ed523f
VZ
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
8414a40c
VZ
6742 # Now try to grab the symbols.
6743 nlist=conftest.nm
80ed523f
VZ
6744 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6745 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8414a40c 6746 ac_status=$?
80ed523f
VZ
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; } && test -s "$nlist"; then
8414a40c
VZ
6749 # Try sorting and uniquifying the output.
6750 if sort "$nlist" | uniq > "$nlist"T; then
6751 mv -f "$nlist"T "$nlist"
6752 else
6753 rm -f "$nlist"T
6754 fi
6755
6756 # Make sure that we snagged all the symbols we need.
6757 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6758 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6759 cat <<_LT_EOF > conftest.$ac_ext
80ed523f
VZ
6760/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6761#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6762/* DATA imports from DLLs on WIN32 con't be const, because runtime
6763 relocations are performed -- see ld's documentation on pseudo-relocs. */
6764# define LT_DLSYM_CONST
6765#elif defined(__osf__)
6766/* This system does not cope well with relocations in const data. */
6767# define LT_DLSYM_CONST
6768#else
6769# define LT_DLSYM_CONST const
6770#endif
6771
8414a40c
VZ
6772#ifdef __cplusplus
6773extern "C" {
6774#endif
6775
6776_LT_EOF
6777 # Now generate the symbol file.
6778 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6779
6780 cat <<_LT_EOF >> conftest.$ac_ext
6781
6782/* The mapping between symbol names and symbols. */
80ed523f 6783LT_DLSYM_CONST struct {
8414a40c
VZ
6784 const char *name;
6785 void *address;
6786}
6787lt__PROGRAM__LTX_preloaded_symbols[] =
6788{
6789 { "@PROGRAM@", (void *) 0 },
6790_LT_EOF
6791 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6792 cat <<\_LT_EOF >> conftest.$ac_ext
6793 {0, (void *) 0}
6794};
6795
6796/* This works around a problem in FreeBSD linker */
6797#ifdef FREEBSD_WORKAROUND
6798static const void *lt_preloaded_setup() {
6799 return lt__PROGRAM__LTX_preloaded_symbols;
6800}
6801#endif
6802
6803#ifdef __cplusplus
6804}
6805#endif
6806_LT_EOF
6807 # Now try linking the two files.
6808 mv conftest.$ac_objext conftstm.$ac_objext
80ed523f
VZ
6809 lt_globsym_save_LIBS=$LIBS
6810 lt_globsym_save_CFLAGS=$CFLAGS
8414a40c
VZ
6811 LIBS="conftstm.$ac_objext"
6812 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
80ed523f 6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8414a40c
VZ
6814 (eval $ac_link) 2>&5
6815 ac_status=$?
80ed523f
VZ
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8414a40c
VZ
6818 pipe_works=yes
6819 fi
80ed523f
VZ
6820 LIBS=$lt_globsym_save_LIBS
6821 CFLAGS=$lt_globsym_save_CFLAGS
8414a40c
VZ
6822 else
6823 echo "cannot find nm_test_func in $nlist" >&5
6824 fi
6825 else
6826 echo "cannot find nm_test_var in $nlist" >&5
6827 fi
6828 else
6829 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6830 fi
6831 else
6832 echo "$progname: failed program was:" >&5
6833 cat conftest.$ac_ext >&5
6834 fi
80ed523f 6835 rm -rf conftest* conftst*
8414a40c
VZ
6836
6837 # Do not use the global_symbol_pipe unless it works.
6838 if test "$pipe_works" = yes; then
6839 break
6840 else
6841 lt_cv_sys_global_symbol_pipe=
6842 fi
6843done
6844
6845fi
6846
6847if test -z "$lt_cv_sys_global_symbol_pipe"; then
6848 lt_cv_sys_global_symbol_to_cdecl=
6849fi
6850if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
80ed523f
VZ
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6852$as_echo "failed" >&6; }
8414a40c 6853else
80ed523f
VZ
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6855$as_echo "ok" >&6; }
6856fi
6857
6858# Response file support.
6859if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860 nm_file_list_spec='@'
6861elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6862 nm_file_list_spec='@'
8414a40c
VZ
6863fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
80ed523f
VZ
6882
6883
6884
6885
6886
6887
6888
6889
6890
6891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6892$as_echo_n "checking for sysroot... " >&6; }
6893
6894# Check whether --with-sysroot was given.
6895if test "${with_sysroot+set}" = set; then :
6896 withval=$with_sysroot;
6897else
6898 with_sysroot=no
6899fi
6900
6901
6902lt_sysroot=
6903case ${with_sysroot} in #(
6904 yes)
6905 if test "$GCC" = yes; then
6906 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6907 fi
6908 ;; #(
6909 /*)
6910 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6911 ;; #(
6912 no|'')
6913 ;; #(
6914 *)
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6916$as_echo "${with_sysroot}" >&6; }
6917 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6918 ;;
6919esac
6920
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6922$as_echo "${lt_sysroot:-no}" >&6; }
6923
6924
6925
6926
6927
31cb0113 6928# Check whether --enable-libtool-lock was given.
80ed523f 6929if test "${enable_libtool_lock+set}" = set; then :
31cb0113
VZ
6930 enableval=$enable_libtool_lock;
6931fi
8414a40c 6932
8414a40c
VZ
6933test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6934
6935# Some flags need to be propagated to the compiler or linker for good
6936# libtool support.
6937case $host in
6938ia64-*-hpux*)
6939 # Find out which ABI we are using.
6940 echo 'int i;' > conftest.$ac_ext
80ed523f 6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414a40c
VZ
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
80ed523f
VZ
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
8414a40c
VZ
6946 case `/usr/bin/file conftest.$ac_objext` in
6947 *ELF-32*)
6948 HPUX_IA64_MODE="32"
6949 ;;
6950 *ELF-64*)
6951 HPUX_IA64_MODE="64"
6952 ;;
6953 esac
6954 fi
6955 rm -rf conftest*
6956 ;;
6957*-*-irix6*)
6958 # Find out which ABI we are using.
80ed523f
VZ
6959 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414a40c
VZ
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
80ed523f
VZ
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
8414a40c
VZ
6965 if test "$lt_cv_prog_gnu_ld" = yes; then
6966 case `/usr/bin/file conftest.$ac_objext` in
6967 *32-bit*)
6968 LD="${LD-ld} -melf32bsmip"
6969 ;;
6970 *N32*)
6971 LD="${LD-ld} -melf32bmipn32"
6972 ;;
6973 *64-bit*)
6974 LD="${LD-ld} -melf64bmip"
6975 ;;
6976 esac
6977 else
6978 case `/usr/bin/file conftest.$ac_objext` in
6979 *32-bit*)
6980 LD="${LD-ld} -32"
6981 ;;
6982 *N32*)
6983 LD="${LD-ld} -n32"
6984 ;;
6985 *64-bit*)
6986 LD="${LD-ld} -64"
6987 ;;
6988 esac
6989 fi
6990 fi
6991 rm -rf conftest*
6992 ;;
6993
80ed523f
VZ
6994x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8414a40c
VZ
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
80ed523f 6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414a40c
VZ
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
80ed523f
VZ
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
8414a40c
VZ
7003 case `/usr/bin/file conftest.o` in
7004 *32-bit*)
7005 case $host in
80ed523f
VZ
7006 x86_64-*kfreebsd*-gnu)
7007 LD="${LD-ld} -m elf_i386_fbsd"
7008 ;;
8414a40c
VZ
7009 x86_64-*linux*)
7010 LD="${LD-ld} -m elf_i386"
7011 ;;
7012 ppc64-*linux*|powerpc64-*linux*)
7013 LD="${LD-ld} -m elf32ppclinux"
7014 ;;
7015 s390x-*linux*)
7016 LD="${LD-ld} -m elf_s390"
7017 ;;
7018 sparc64-*linux*)
7019 LD="${LD-ld} -m elf32_sparc"
7020 ;;
7021 esac
7022 ;;
7023 *64-bit*)
7024 case $host in
80ed523f
VZ
7025 x86_64-*kfreebsd*-gnu)
7026 LD="${LD-ld} -m elf_x86_64_fbsd"
7027 ;;
8414a40c
VZ
7028 x86_64-*linux*)
7029 LD="${LD-ld} -m elf_x86_64"
7030 ;;
7031 ppc*-*linux*|powerpc*-*linux*)
7032 LD="${LD-ld} -m elf64ppc"
7033 ;;
7034 s390*-*linux*|s390*-*tpf*)
7035 LD="${LD-ld} -m elf64_s390"
7036 ;;
7037 sparc*-*linux*)
7038 LD="${LD-ld} -m elf64_sparc"
7039 ;;
7040 esac
7041 ;;
7042 esac
7043 fi
7044 rm -rf conftest*
7045 ;;
7046
7047*-*-sco3.2v5*)
7048 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7049 SAVE_CFLAGS="$CFLAGS"
7050 CFLAGS="$CFLAGS -belf"
80ed523f
VZ
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7052$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7053if ${lt_cv_cc_needs_belf+:} false; then :
7054 $as_echo_n "(cached) " >&6
8414a40c
VZ
7055else
7056 ac_ext=c
7057ac_cpp='$CPP $CPPFLAGS'
7058ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
80ed523f 7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
7063/* end confdefs.h. */
7064
7065int
7066main ()
7067{
7068
7069 ;
7070 return 0;
7071}
7072_ACEOF
80ed523f 7073if ac_fn_c_try_link "$LINENO"; then :
8414a40c
VZ
7074 lt_cv_cc_needs_belf=yes
7075else
80ed523f 7076 lt_cv_cc_needs_belf=no
8414a40c 7077fi
80ed523f
VZ
7078rm -f core conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
8414a40c
VZ
7080 ac_ext=c
7081ac_cpp='$CPP $CPPFLAGS'
7082ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086fi
80ed523f
VZ
7087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7088$as_echo "$lt_cv_cc_needs_belf" >&6; }
8414a40c
VZ
7089 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7090 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7091 CFLAGS="$SAVE_CFLAGS"
7092 fi
7093 ;;
80ed523f 7094*-*solaris*)
8414a40c
VZ
7095 # Find out which ABI we are using.
7096 echo 'int i;' > conftest.$ac_ext
80ed523f 7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414a40c
VZ
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
80ed523f
VZ
7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101 test $ac_status = 0; }; then
8414a40c
VZ
7102 case `/usr/bin/file conftest.o` in
7103 *64-bit*)
7104 case $lt_cv_prog_gnu_ld in
80ed523f
VZ
7105 yes*)
7106 case $host in
7107 i?86-*-solaris*|x86_64-*-solaris*)
7108 LD="${LD-ld} -m elf_x86_64"
7109 ;;
7110 sparc*-*-solaris*)
7111 LD="${LD-ld} -m elf64_sparc"
7112 ;;
7113 esac
7114 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
7115 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
7116 LD="${LD-ld}_sol2"
7117 fi
7118 ;;
7119 *)
7120 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7121 LD="${LD-ld} -64"
7122 fi
7123 ;;
8414a40c
VZ
7124 esac
7125 ;;
7126 esac
7127 fi
7128 rm -rf conftest*
7129 ;;
7130esac
7131
7132need_locks="$enable_libtool_lock"
7133
80ed523f
VZ
7134if test -n "$ac_tool_prefix"; then
7135 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
7136set dummy ${ac_tool_prefix}mt; ac_word=$2
7137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138$as_echo_n "checking for $ac_word... " >&6; }
7139if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7140 $as_echo_n "(cached) " >&6
8414a40c 7141else
80ed523f
VZ
7142 if test -n "$MANIFEST_TOOL"; then
7143 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
8414a40c 7144else
80ed523f
VZ
7145as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146for as_dir in $PATH
7147do
7148 IFS=$as_save_IFS
7149 test -z "$as_dir" && as_dir=.
7150 for ac_exec_ext in '' $ac_executable_extensions; do
7151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7152 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
7153 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154 break 2
7155 fi
7156done
7157 done
7158IFS=$as_save_IFS
8414a40c 7159
8414a40c 7160fi
80ed523f
VZ
7161fi
7162MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7163if test -n "$MANIFEST_TOOL"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7165$as_echo "$MANIFEST_TOOL" >&6; }
8414a40c 7166else
80ed523f
VZ
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168$as_echo "no" >&6; }
8414a40c 7169fi
31cb0113 7170
8414a40c 7171
8414a40c 7172fi
80ed523f
VZ
7173if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
7174 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
7175 # Extract the first word of "mt", so it can be a program name with args.
7176set dummy mt; ac_word=$2
7177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7178$as_echo_n "checking for $ac_word... " >&6; }
7179if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181else
7182 if test -n "$ac_ct_MANIFEST_TOOL"; then
7183 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
7184else
7185as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186for as_dir in $PATH
7187do
7188 IFS=$as_save_IFS
7189 test -z "$as_dir" && as_dir=.
7190 for ac_exec_ext in '' $ac_executable_extensions; do
7191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7192 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
7193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7194 break 2
7195 fi
7196done
7197 done
7198IFS=$as_save_IFS
8414a40c
VZ
7199
7200fi
80ed523f
VZ
7201fi
7202ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7203if test -n "$ac_ct_MANIFEST_TOOL"; then
7204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
7205$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
8414a40c 7206else
80ed523f
VZ
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208$as_echo "no" >&6; }
8414a40c 7209fi
80ed523f
VZ
7210
7211 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7212 MANIFEST_TOOL=":"
7213 else
7214 case $cross_compiling:$ac_tool_warned in
7215yes:)
7216{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7217$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7218ac_tool_warned=yes ;;
31cb0113 7219esac
80ed523f
VZ
7220 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7221 fi
8414a40c 7222else
80ed523f
VZ
7223 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7224fi
8414a40c 7225
80ed523f
VZ
7226test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7228$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7229if ${lt_cv_path_mainfest_tool+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231else
7232 lt_cv_path_mainfest_tool=no
7233 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7234 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7235 cat conftest.err >&5
7236 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7237 lt_cv_path_mainfest_tool=yes
7238 fi
7239 rm -f conftest*
7240fi
7241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7242$as_echo "$lt_cv_path_mainfest_tool" >&6; }
7243if test "x$lt_cv_path_mainfest_tool" != xyes; then
7244 MANIFEST_TOOL=:
8414a40c 7245fi
31cb0113 7246
8414a40c 7247
8414a40c 7248
31cb0113 7249
8414a40c 7250
80ed523f
VZ
7251
7252 case $host_os in
7253 rhapsody* | darwin*)
7254 if test -n "$ac_tool_prefix"; then
7255 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7256set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7257{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7258$as_echo_n "checking for $ac_word... " >&6; }
7259if ${ac_cv_prog_DSYMUTIL+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261else
7262 if test -n "$DSYMUTIL"; then
7263 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7264else
7265as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266for as_dir in $PATH
7267do
7268 IFS=$as_save_IFS
7269 test -z "$as_dir" && as_dir=.
7270 for ac_exec_ext in '' $ac_executable_extensions; do
7271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7272 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7274 break 2
7275 fi
8414a40c 7276done
80ed523f
VZ
7277 done
7278IFS=$as_save_IFS
7279
7280fi
7281fi
7282DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283if test -n "$DSYMUTIL"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285$as_echo "$DSYMUTIL" >&6; }
8414a40c 7286else
80ed523f
VZ
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288$as_echo "no" >&6; }
8414a40c
VZ
7289fi
7290
8414a40c 7291
80ed523f
VZ
7292fi
7293if test -z "$ac_cv_prog_DSYMUTIL"; then
7294 ac_ct_DSYMUTIL=$DSYMUTIL
7295 # Extract the first word of "dsymutil", so it can be a program name with args.
7296set dummy dsymutil; ac_word=$2
7297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7298$as_echo_n "checking for $ac_word... " >&6; }
7299if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300 $as_echo_n "(cached) " >&6
8414a40c 7301else
80ed523f
VZ
7302 if test -n "$ac_ct_DSYMUTIL"; then
7303 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8414a40c 7304else
80ed523f
VZ
7305as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306for as_dir in $PATH
7307do
7308 IFS=$as_save_IFS
7309 test -z "$as_dir" && as_dir=.
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7312 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7314 break 2
7315 fi
7316done
7317 done
7318IFS=$as_save_IFS
8414a40c 7319
8414a40c 7320fi
80ed523f
VZ
7321fi
7322ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323if test -n "$ac_ct_DSYMUTIL"; then
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7325$as_echo "$ac_ct_DSYMUTIL" >&6; }
8414a40c 7326else
80ed523f
VZ
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328$as_echo "no" >&6; }
8414a40c 7329fi
8414a40c 7330
80ed523f
VZ
7331 if test "x$ac_ct_DSYMUTIL" = x; then
7332 DSYMUTIL=":"
7333 else
7334 case $cross_compiling:$ac_tool_warned in
7335yes:)
7336{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7337$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7338ac_tool_warned=yes ;;
7339esac
7340 DSYMUTIL=$ac_ct_DSYMUTIL
7341 fi
7342else
7343 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8414a40c
VZ
7344fi
7345
80ed523f
VZ
7346 if test -n "$ac_tool_prefix"; then
7347 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7348set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7350$as_echo_n "checking for $ac_word... " >&6; }
7351if ${ac_cv_prog_NMEDIT+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353else
7354 if test -n "$NMEDIT"; then
7355 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7356else
7357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358for as_dir in $PATH
7359do
7360 IFS=$as_save_IFS
7361 test -z "$as_dir" && as_dir=.
7362 for ac_exec_ext in '' $ac_executable_extensions; do
7363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7364 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7366 break 2
7367 fi
7368done
7369 done
7370IFS=$as_save_IFS
8414a40c 7371
80ed523f
VZ
7372fi
7373fi
7374NMEDIT=$ac_cv_prog_NMEDIT
7375if test -n "$NMEDIT"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377$as_echo "$NMEDIT" >&6; }
8414a40c 7378else
80ed523f
VZ
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380$as_echo "no" >&6; }
8414a40c 7381fi
80ed523f 7382
8414a40c
VZ
7383
7384fi
80ed523f
VZ
7385if test -z "$ac_cv_prog_NMEDIT"; then
7386 ac_ct_NMEDIT=$NMEDIT
7387 # Extract the first word of "nmedit", so it can be a program name with args.
7388set dummy nmedit; ac_word=$2
7389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7390$as_echo_n "checking for $ac_word... " >&6; }
7391if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393else
7394 if test -n "$ac_ct_NMEDIT"; then
7395 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396else
7397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398for as_dir in $PATH
7399do
7400 IFS=$as_save_IFS
7401 test -z "$as_dir" && as_dir=.
7402 for ac_exec_ext in '' $ac_executable_extensions; do
7403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7404 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7406 break 2
7407 fi
7408done
7409 done
7410IFS=$as_save_IFS
8414a40c 7411
80ed523f
VZ
7412fi
7413fi
7414ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415if test -n "$ac_ct_NMEDIT"; then
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7417$as_echo "$ac_ct_NMEDIT" >&6; }
8414a40c 7418else
80ed523f
VZ
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420$as_echo "no" >&6; }
7421fi
8414a40c 7422
80ed523f
VZ
7423 if test "x$ac_ct_NMEDIT" = x; then
7424 NMEDIT=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427yes:)
7428{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7429$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7430ac_tool_warned=yes ;;
31cb0113 7431esac
80ed523f
VZ
7432 NMEDIT=$ac_ct_NMEDIT
7433 fi
8414a40c 7434else
80ed523f 7435 NMEDIT="$ac_cv_prog_NMEDIT"
8414a40c 7436fi
31cb0113 7437
80ed523f
VZ
7438 if test -n "$ac_tool_prefix"; then
7439 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7440set dummy ${ac_tool_prefix}lipo; ac_word=$2
7441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7442$as_echo_n "checking for $ac_word... " >&6; }
7443if ${ac_cv_prog_LIPO+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445else
7446 if test -n "$LIPO"; then
7447 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7448else
7449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450for as_dir in $PATH
7451do
7452 IFS=$as_save_IFS
7453 test -z "$as_dir" && as_dir=.
7454 for ac_exec_ext in '' $ac_executable_extensions; do
7455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7456 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7458 break 2
7459 fi
7460done
7461 done
7462IFS=$as_save_IFS
31cb0113 7463
8414a40c
VZ
7464fi
7465fi
80ed523f
VZ
7466LIPO=$ac_cv_prog_LIPO
7467if test -n "$LIPO"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7469$as_echo "$LIPO" >&6; }
7470else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472$as_echo "no" >&6; }
8414a40c
VZ
7473fi
7474
8414a40c 7475
80ed523f
VZ
7476fi
7477if test -z "$ac_cv_prog_LIPO"; then
7478 ac_ct_LIPO=$LIPO
7479 # Extract the first word of "lipo", so it can be a program name with args.
7480set dummy lipo; ac_word=$2
7481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482$as_echo_n "checking for $ac_word... " >&6; }
7483if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7484 $as_echo_n "(cached) " >&6
8414a40c 7485else
80ed523f
VZ
7486 if test -n "$ac_ct_LIPO"; then
7487 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7488else
7489as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490for as_dir in $PATH
7491do
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7496 ac_cv_prog_ac_ct_LIPO="lipo"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7499 fi
7500done
7501 done
7502IFS=$as_save_IFS
8414a40c 7503
8414a40c 7504fi
8414a40c 7505fi
80ed523f
VZ
7506ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7507if test -n "$ac_ct_LIPO"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7509$as_echo "$ac_ct_LIPO" >&6; }
7510else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512$as_echo "no" >&6; }
7513fi
8414a40c 7514
80ed523f
VZ
7515 if test "x$ac_ct_LIPO" = x; then
7516 LIPO=":"
7517 else
7518 case $cross_compiling:$ac_tool_warned in
7519yes:)
7520{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7521$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7522ac_tool_warned=yes ;;
7523esac
7524 LIPO=$ac_ct_LIPO
7525 fi
7526else
7527 LIPO="$ac_cv_prog_LIPO"
8414a40c
VZ
7528fi
7529
80ed523f
VZ
7530 if test -n "$ac_tool_prefix"; then
7531 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7532set dummy ${ac_tool_prefix}otool; ac_word=$2
7533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534$as_echo_n "checking for $ac_word... " >&6; }
7535if ${ac_cv_prog_OTOOL+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537else
7538 if test -n "$OTOOL"; then
7539 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7540else
7541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542for as_dir in $PATH
7543do
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7548 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7551 fi
8414a40c 7552done
80ed523f
VZ
7553 done
7554IFS=$as_save_IFS
8414a40c 7555
80ed523f
VZ
7556fi
7557fi
7558OTOOL=$ac_cv_prog_OTOOL
7559if test -n "$OTOOL"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7561$as_echo "$OTOOL" >&6; }
7562else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564$as_echo "no" >&6; }
7565fi
8414a40c
VZ
7566
7567
80ed523f
VZ
7568fi
7569if test -z "$ac_cv_prog_OTOOL"; then
7570 ac_ct_OTOOL=$OTOOL
7571 # Extract the first word of "otool", so it can be a program name with args.
7572set dummy otool; ac_word=$2
7573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7574$as_echo_n "checking for $ac_word... " >&6; }
7575if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7576 $as_echo_n "(cached) " >&6
8414a40c 7577else
80ed523f
VZ
7578 if test -n "$ac_ct_OTOOL"; then
7579 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7580else
7581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582for as_dir in $PATH
7583do
7584 IFS=$as_save_IFS
7585 test -z "$as_dir" && as_dir=.
7586 for ac_exec_ext in '' $ac_executable_extensions; do
7587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7588 ac_cv_prog_ac_ct_OTOOL="otool"
7589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7590 break 2
7591 fi
7592done
7593 done
7594IFS=$as_save_IFS
8414a40c 7595
8414a40c 7596fi
8414a40c 7597fi
80ed523f
VZ
7598ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7599if test -n "$ac_ct_OTOOL"; then
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7601$as_echo "$ac_ct_OTOOL" >&6; }
7602else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604$as_echo "no" >&6; }
8414a40c
VZ
7605fi
7606
80ed523f
VZ
7607 if test "x$ac_ct_OTOOL" = x; then
7608 OTOOL=":"
7609 else
7610 case $cross_compiling:$ac_tool_warned in
7611yes:)
7612{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7613$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7614ac_tool_warned=yes ;;
7615esac
7616 OTOOL=$ac_ct_OTOOL
7617 fi
7618else
7619 OTOOL="$ac_cv_prog_OTOOL"
7620fi
8414a40c 7621
80ed523f
VZ
7622 if test -n "$ac_tool_prefix"; then
7623 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7624set dummy ${ac_tool_prefix}otool64; ac_word=$2
7625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7626$as_echo_n "checking for $ac_word... " >&6; }
7627if ${ac_cv_prog_OTOOL64+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629else
7630 if test -n "$OTOOL64"; then
7631 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7632else
7633as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634for as_dir in $PATH
7635do
7636 IFS=$as_save_IFS
7637 test -z "$as_dir" && as_dir=.
7638 for ac_exec_ext in '' $ac_executable_extensions; do
7639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7640 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7642 break 2
7643 fi
7644done
7645 done
7646IFS=$as_save_IFS
8414a40c 7647
80ed523f
VZ
7648fi
7649fi
7650OTOOL64=$ac_cv_prog_OTOOL64
7651if test -n "$OTOOL64"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7653$as_echo "$OTOOL64" >&6; }
7654else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656$as_echo "no" >&6; }
7657fi
8414a40c
VZ
7658
7659
80ed523f
VZ
7660fi
7661if test -z "$ac_cv_prog_OTOOL64"; then
7662 ac_ct_OTOOL64=$OTOOL64
7663 # Extract the first word of "otool64", so it can be a program name with args.
7664set dummy otool64; ac_word=$2
7665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7666$as_echo_n "checking for $ac_word... " >&6; }
7667if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669else
7670 if test -n "$ac_ct_OTOOL64"; then
7671 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7672else
7673as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674for as_dir in $PATH
7675do
7676 IFS=$as_save_IFS
7677 test -z "$as_dir" && as_dir=.
7678 for ac_exec_ext in '' $ac_executable_extensions; do
7679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7680 ac_cv_prog_ac_ct_OTOOL64="otool64"
7681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7682 break 2
7683 fi
7684done
7685 done
7686IFS=$as_save_IFS
8414a40c 7687
80ed523f
VZ
7688fi
7689fi
7690ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7691if test -n "$ac_ct_OTOOL64"; then
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7693$as_echo "$ac_ct_OTOOL64" >&6; }
7694else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696$as_echo "no" >&6; }
7697fi
8414a40c 7698
80ed523f
VZ
7699 if test "x$ac_ct_OTOOL64" = x; then
7700 OTOOL64=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703yes:)
7704{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7705$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7706ac_tool_warned=yes ;;
7707esac
7708 OTOOL64=$ac_ct_OTOOL64
7709 fi
7710else
7711 OTOOL64="$ac_cv_prog_OTOOL64"
7712fi
8414a40c
VZ
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
8414a40c
VZ
7732
7733
7734
7735
7736
7737
7738
7739
80ed523f
VZ
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7741$as_echo_n "checking for -single_module linker flag... " >&6; }
7742if ${lt_cv_apple_cc_single_mod+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744else
7745 lt_cv_apple_cc_single_mod=no
7746 if test -z "${LT_MULTI_MODULE}"; then
7747 # By default we will add the -single_module flag. You can override
7748 # by either setting the environment variable LT_MULTI_MODULE
7749 # non-empty at configure time, or by adding -multi_module to the
7750 # link flags.
7751 rm -rf libconftest.dylib*
7752 echo "int foo(void){return 1;}" > conftest.c
7753 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7754-dynamiclib -Wl,-single_module conftest.c" >&5
7755 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7756 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7757 _lt_result=$?
7758 # If there is a non-empty error log, and "single_module"
7759 # appears in it, assume the flag caused a linker warning
7760 if test -s conftest.err && $GREP single_module conftest.err; then
7761 cat conftest.err >&5
7762 # Otherwise, if the output was created with a 0 exit code from
7763 # the compiler, it worked.
7764 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7765 lt_cv_apple_cc_single_mod=yes
7766 else
7767 cat conftest.err >&5
7768 fi
7769 rm -rf libconftest.dylib*
7770 rm -f conftest.*
7771 fi
7772fi
7773{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7774$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8414a40c 7775
80ed523f
VZ
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7777$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7778if ${lt_cv_ld_exported_symbols_list+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780else
7781 lt_cv_ld_exported_symbols_list=no
7782 save_LDFLAGS=$LDFLAGS
7783 echo "_main" > conftest.sym
7784 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7786/* end confdefs.h. */
8414a40c 7787
80ed523f
VZ
7788int
7789main ()
7790{
8414a40c 7791
80ed523f
VZ
7792 ;
7793 return 0;
7794}
7795_ACEOF
7796if ac_fn_c_try_link "$LINENO"; then :
7797 lt_cv_ld_exported_symbols_list=yes
7798else
7799 lt_cv_ld_exported_symbols_list=no
7800fi
7801rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LDFLAGS="$save_LDFLAGS"
8414a40c 7804
80ed523f
VZ
7805fi
7806{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7807$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8414a40c 7808
80ed523f
VZ
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7810$as_echo_n "checking for -force_load linker flag... " >&6; }
7811if ${lt_cv_ld_force_load+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813else
7814 lt_cv_ld_force_load=no
7815 cat > conftest.c << _LT_EOF
7816int forced_loaded() { return 2;}
7817_LT_EOF
7818 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7819 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7820 echo "$AR cru libconftest.a conftest.o" >&5
7821 $AR cru libconftest.a conftest.o 2>&5
7822 echo "$RANLIB libconftest.a" >&5
7823 $RANLIB libconftest.a 2>&5
7824 cat > conftest.c << _LT_EOF
7825int main() { return 0;}
7826_LT_EOF
7827 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7828 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7829 _lt_result=$?
7830 if test -s conftest.err && $GREP force_load conftest.err; then
7831 cat conftest.err >&5
7832 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7833 lt_cv_ld_force_load=yes
7834 else
7835 cat conftest.err >&5
7836 fi
7837 rm -f conftest.err libconftest.a conftest conftest.c
7838 rm -rf conftest.dSYM
8414a40c 7839
8414a40c 7840fi
80ed523f
VZ
7841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7842$as_echo "$lt_cv_ld_force_load" >&6; }
7843 case $host_os in
7844 rhapsody* | darwin1.[012])
7845 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7846 darwin1.*)
7847 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7848 darwin*) # darwin 5.x on
7849 # if running on 10.5 or later, the deployment target defaults
7850 # to the OS version, if on x86, and 10.4, the deployment
7851 # target defaults to 10.4. Don't you love it?
7852 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7853 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7854 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7855 10.[012]*)
7856 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7857 10.*)
7858 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7859 esac
7860 ;;
7861 esac
7862 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7863 _lt_dar_single_mod='$single_module'
7864 fi
7865 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7866 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7867 else
7868 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7869 fi
7870 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7871 _lt_dsymutil='~$DSYMUTIL $lib || :'
7872 else
7873 _lt_dsymutil=
7874 fi
7875 ;;
7876 esac
8414a40c 7877
80ed523f
VZ
7878ac_ext=c
7879ac_cpp='$CPP $CPPFLAGS'
7880ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882ac_compiler_gnu=$ac_cv_c_compiler_gnu
7883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7884$as_echo_n "checking how to run the C preprocessor... " >&6; }
7885# On Suns, sometimes $CPP names a directory.
7886if test -n "$CPP" && test -d "$CPP"; then
7887 CPP=
7888fi
7889if test -z "$CPP"; then
7890 if ${ac_cv_prog_CPP+:} false; then :
7891 $as_echo_n "(cached) " >&6
8414a40c 7892else
80ed523f
VZ
7893 # Double quotes because CPP needs to be expanded
7894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7895 do
7896 ac_preproc_ok=false
7897for ac_c_preproc_warn_flag in '' yes
7898do
7899 # Use a header file that comes with gcc, so configuring glibc
7900 # with a fresh cross-compiler works.
7901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7902 # <limits.h> exists even on freestanding compilers.
7903 # On the NeXT, cc -E runs the code through the compiler's parser,
7904 # not just through cpp. "Syntax error" is here to catch this case.
7905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7906/* end confdefs.h. */
7907#ifdef __STDC__
7908# include <limits.h>
7909#else
7910# include <assert.h>
7911#endif
7912 Syntax error
7913_ACEOF
7914if ac_fn_c_try_cpp "$LINENO"; then :
7915
8414a40c 7916else
80ed523f
VZ
7917 # Broken: fails on valid input.
7918continue
8414a40c 7919fi
80ed523f
VZ
7920rm -f conftest.err conftest.i conftest.$ac_ext
7921
7922 # OK, works on sane cases. Now check whether nonexistent headers
7923 # can be detected and how.
7924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7925/* end confdefs.h. */
7926#include <ac_nonexistent.h>
7927_ACEOF
7928if ac_fn_c_try_cpp "$LINENO"; then :
7929 # Broken: success on invalid input.
7930continue
7931else
7932 # Passes both tests.
7933ac_preproc_ok=:
7934break
8414a40c 7935fi
80ed523f 7936rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 7937
80ed523f
VZ
7938done
7939# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7940rm -f conftest.i conftest.err conftest.$ac_ext
7941if $ac_preproc_ok; then :
7942 break
7943fi
8414a40c 7944
80ed523f
VZ
7945 done
7946 ac_cv_prog_CPP=$CPP
8414a40c 7947
80ed523f
VZ
7948fi
7949 CPP=$ac_cv_prog_CPP
7950else
7951 ac_cv_prog_CPP=$CPP
7952fi
7953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7954$as_echo "$CPP" >&6; }
7955ac_preproc_ok=false
7956for ac_c_preproc_warn_flag in '' yes
7957do
7958 # Use a header file that comes with gcc, so configuring glibc
7959 # with a fresh cross-compiler works.
7960 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7961 # <limits.h> exists even on freestanding compilers.
7962 # On the NeXT, cc -E runs the code through the compiler's parser,
7963 # not just through cpp. "Syntax error" is here to catch this case.
7964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7965/* end confdefs.h. */
7966#ifdef __STDC__
7967# include <limits.h>
7968#else
7969# include <assert.h>
7970#endif
7971 Syntax error
7972_ACEOF
7973if ac_fn_c_try_cpp "$LINENO"; then :
8414a40c 7974
80ed523f
VZ
7975else
7976 # Broken: fails on valid input.
7977continue
7978fi
7979rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 7980
80ed523f
VZ
7981 # OK, works on sane cases. Now check whether nonexistent headers
7982 # can be detected and how.
7983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7984/* end confdefs.h. */
7985#include <ac_nonexistent.h>
8414a40c 7986_ACEOF
80ed523f
VZ
7987if ac_fn_c_try_cpp "$LINENO"; then :
7988 # Broken: success on invalid input.
7989continue
7990else
7991 # Passes both tests.
7992ac_preproc_ok=:
7993break
7994fi
7995rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 7996
80ed523f
VZ
7997done
7998# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7999rm -f conftest.i conftest.err conftest.$ac_ext
8000if $ac_preproc_ok; then :
8414a40c 8001
80ed523f
VZ
8002else
8003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8005as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8006See \`config.log' for more details" "$LINENO" 5; }
8007fi
8414a40c 8008
80ed523f
VZ
8009ac_ext=c
8010ac_cpp='$CPP $CPPFLAGS'
8011ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c
VZ
8014
8015
80ed523f
VZ
8016{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
8017$as_echo_n "checking for ANSI C header files... " >&6; }
8018if ${ac_cv_header_stdc+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020else
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022/* end confdefs.h. */
8023#include <stdlib.h>
8024#include <stdarg.h>
8025#include <string.h>
8026#include <float.h>
8414a40c 8027
80ed523f
VZ
8028int
8029main ()
8030{
8414a40c 8031
80ed523f
VZ
8032 ;
8033 return 0;
8034}
8035_ACEOF
8036if ac_fn_c_try_compile "$LINENO"; then :
8037 ac_cv_header_stdc=yes
8038else
8039 ac_cv_header_stdc=no
8040fi
8041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414a40c 8042
80ed523f
VZ
8043if test $ac_cv_header_stdc = yes; then
8044 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
8045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8046/* end confdefs.h. */
8047#include <string.h>
8414a40c 8048
80ed523f
VZ
8049_ACEOF
8050if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051 $EGREP "memchr" >/dev/null 2>&1; then :
8414a40c 8052
80ed523f
VZ
8053else
8054 ac_cv_header_stdc=no
8055fi
8056rm -f conftest*
8414a40c 8057
80ed523f 8058fi
8414a40c 8059
80ed523f
VZ
8060if test $ac_cv_header_stdc = yes; then
8061 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
8062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8063/* end confdefs.h. */
8064#include <stdlib.h>
8414a40c 8065
80ed523f
VZ
8066_ACEOF
8067if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 $EGREP "free" >/dev/null 2>&1; then :
8414a40c 8069
80ed523f
VZ
8070else
8071 ac_cv_header_stdc=no
8072fi
8073rm -f conftest*
8414a40c 8074
80ed523f 8075fi
8414a40c 8076
80ed523f
VZ
8077if test $ac_cv_header_stdc = yes; then
8078 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
8079 if test "$cross_compiling" = yes; then :
8080 :
8081else
8082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8083/* end confdefs.h. */
8084#include <ctype.h>
8085#include <stdlib.h>
8086#if ((' ' & 0x0FF) == 0x020)
8087# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
8088# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
8089#else
8090# define ISLOWER(c) \
8091 (('a' <= (c) && (c) <= 'i') \
8092 || ('j' <= (c) && (c) <= 'r') \
8093 || ('s' <= (c) && (c) <= 'z'))
8094# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
8095#endif
8414a40c 8096
80ed523f
VZ
8097#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098int
8099main ()
8100{
8101 int i;
8102 for (i = 0; i < 256; i++)
8103 if (XOR (islower (i), ISLOWER (i))
8104 || toupper (i) != TOUPPER (i))
8105 return 2;
8106 return 0;
8107}
8108_ACEOF
8109if ac_fn_c_try_run "$LINENO"; then :
8414a40c 8110
80ed523f
VZ
8111else
8112 ac_cv_header_stdc=no
8113fi
8114rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8115 conftest.$ac_objext conftest.beam conftest.$ac_ext
8116fi
8414a40c 8117
80ed523f
VZ
8118fi
8119fi
8120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8121$as_echo "$ac_cv_header_stdc" >&6; }
8122if test $ac_cv_header_stdc = yes; then
8414a40c 8123
80ed523f 8124$as_echo "#define STDC_HEADERS 1" >>confdefs.h
8414a40c 8125
80ed523f 8126fi
8414a40c 8127
80ed523f
VZ
8128# On IRIX 5.3, sys/types and inttypes.h are conflicting.
8129for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8130 inttypes.h stdint.h unistd.h
8131do :
8132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8133ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8134"
8135if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8136 cat >>confdefs.h <<_ACEOF
8137#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8138_ACEOF
8414a40c 8139
80ed523f 8140fi
8414a40c 8141
8414a40c 8142done
8414a40c 8143
8414a40c 8144
80ed523f
VZ
8145for ac_header in dlfcn.h
8146do :
8147 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8148"
8149if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8150 cat >>confdefs.h <<_ACEOF
8151#define HAVE_DLFCN_H 1
8152_ACEOF
8414a40c 8153
8414a40c
VZ
8154fi
8155
80ed523f 8156done
8414a40c
VZ
8157
8158
8159
8160
8161
80ed523f
VZ
8162# Set options
8163enable_win32_dll=yes
8164
8165case $host in
8166*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8414a40c 8167 if test -n "$ac_tool_prefix"; then
80ed523f
VZ
8168 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8169set dummy ${ac_tool_prefix}as; ac_word=$2
8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8171$as_echo_n "checking for $ac_word... " >&6; }
8172if ${ac_cv_prog_AS+:} false; then :
8173 $as_echo_n "(cached) " >&6
8414a40c 8174else
80ed523f
VZ
8175 if test -n "$AS"; then
8176 ac_cv_prog_AS="$AS" # Let the user override the test.
8177else
8178as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179for as_dir in $PATH
8180do
8181 IFS=$as_save_IFS
8182 test -z "$as_dir" && as_dir=.
8183 for ac_exec_ext in '' $ac_executable_extensions; do
8184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8185 ac_cv_prog_AS="${ac_tool_prefix}as"
8186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8187 break 2
8188 fi
8189done
8414a40c 8190 done
80ed523f 8191IFS=$as_save_IFS
8414a40c 8192
80ed523f
VZ
8193fi
8194fi
8195AS=$ac_cv_prog_AS
8196if test -n "$AS"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198$as_echo "$AS" >&6; }
8414a40c 8199else
80ed523f
VZ
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201$as_echo "no" >&6; }
8414a40c
VZ
8202fi
8203
8204
8414a40c 8205fi
80ed523f
VZ
8206if test -z "$ac_cv_prog_AS"; then
8207 ac_ct_AS=$AS
8208 # Extract the first word of "as", so it can be a program name with args.
8209set dummy as; ac_word=$2
8210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8211$as_echo_n "checking for $ac_word... " >&6; }
8212if ${ac_cv_prog_ac_ct_AS+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214else
8215 if test -n "$ac_ct_AS"; then
8216 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8217else
8218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219for as_dir in $PATH
8220do
8221 IFS=$as_save_IFS
8222 test -z "$as_dir" && as_dir=.
8223 for ac_exec_ext in '' $ac_executable_extensions; do
8224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8225 ac_cv_prog_ac_ct_AS="as"
8226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8227 break 2
8414a40c 8228 fi
80ed523f
VZ
8229done
8230 done
8231IFS=$as_save_IFS
8414a40c 8232
80ed523f
VZ
8233fi
8234fi
8235ac_ct_AS=$ac_cv_prog_ac_ct_AS
8236if test -n "$ac_ct_AS"; then
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
8238$as_echo "$ac_ct_AS" >&6; }
8239else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241$as_echo "no" >&6; }
8242fi
8414a40c 8243
80ed523f
VZ
8244 if test "x$ac_ct_AS" = x; then
8245 AS="false"
8246 else
8247 case $cross_compiling:$ac_tool_warned in
8248yes:)
8249{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8250$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8251ac_tool_warned=yes ;;
8252esac
8253 AS=$ac_ct_AS
8254 fi
8255else
8256 AS="$ac_cv_prog_AS"
8257fi
8414a40c 8258
80ed523f
VZ
8259 if test -n "$ac_tool_prefix"; then
8260 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8261set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8263$as_echo_n "checking for $ac_word... " >&6; }
8264if ${ac_cv_prog_DLLTOOL+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266else
8267 if test -n "$DLLTOOL"; then
8268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8269else
8270as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271for as_dir in $PATH
8272do
8273 IFS=$as_save_IFS
8274 test -z "$as_dir" && as_dir=.
8275 for ac_exec_ext in '' $ac_executable_extensions; do
8276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8277 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8279 break 2
8280 fi
8281done
8282 done
8283IFS=$as_save_IFS
8414a40c 8284
80ed523f
VZ
8285fi
8286fi
8287DLLTOOL=$ac_cv_prog_DLLTOOL
8288if test -n "$DLLTOOL"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8290$as_echo "$DLLTOOL" >&6; }
8291else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293$as_echo "no" >&6; }
8294fi
8414a40c 8295
8414a40c 8296
80ed523f
VZ
8297fi
8298if test -z "$ac_cv_prog_DLLTOOL"; then
8299 ac_ct_DLLTOOL=$DLLTOOL
8300 # Extract the first word of "dlltool", so it can be a program name with args.
8301set dummy dlltool; ac_word=$2
8302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8303$as_echo_n "checking for $ac_word... " >&6; }
8304if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306else
8307 if test -n "$ac_ct_DLLTOOL"; then
8308 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8309else
8310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311for as_dir in $PATH
8312do
8313 IFS=$as_save_IFS
8314 test -z "$as_dir" && as_dir=.
8315 for ac_exec_ext in '' $ac_executable_extensions; do
8316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8317 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
8318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8319 break 2
8320 fi
8321done
8322 done
8323IFS=$as_save_IFS
8414a40c 8324
80ed523f
VZ
8325fi
8326fi
8327ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8328if test -n "$ac_ct_DLLTOOL"; then
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
8330$as_echo "$ac_ct_DLLTOOL" >&6; }
8331else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333$as_echo "no" >&6; }
8334fi
8414a40c 8335
80ed523f
VZ
8336 if test "x$ac_ct_DLLTOOL" = x; then
8337 DLLTOOL="false"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340yes:)
8341{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8342$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8343ac_tool_warned=yes ;;
8344esac
8345 DLLTOOL=$ac_ct_DLLTOOL
8346 fi
8347else
8348 DLLTOOL="$ac_cv_prog_DLLTOOL"
8349fi
8414a40c 8350
80ed523f
VZ
8351 if test -n "$ac_tool_prefix"; then
8352 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8353set dummy ${ac_tool_prefix}objdump; ac_word=$2
8354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8355$as_echo_n "checking for $ac_word... " >&6; }
8356if ${ac_cv_prog_OBJDUMP+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358else
8359 if test -n "$OBJDUMP"; then
8360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8361else
8362as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363for as_dir in $PATH
8364do
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8372 fi
8373done
8374 done
8375IFS=$as_save_IFS
8414a40c 8376
80ed523f
VZ
8377fi
8378fi
8379OBJDUMP=$ac_cv_prog_OBJDUMP
8380if test -n "$OBJDUMP"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8382$as_echo "$OBJDUMP" >&6; }
8383else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385$as_echo "no" >&6; }
8386fi
8414a40c
VZ
8387
8388
80ed523f
VZ
8389fi
8390if test -z "$ac_cv_prog_OBJDUMP"; then
8391 ac_ct_OBJDUMP=$OBJDUMP
8392 # Extract the first word of "objdump", so it can be a program name with args.
8393set dummy objdump; ac_word=$2
8394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8395$as_echo_n "checking for $ac_word... " >&6; }
8396if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398else
8399 if test -n "$ac_ct_OBJDUMP"; then
8400 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8401else
8402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403for as_dir in $PATH
8404do
8405 IFS=$as_save_IFS
8406 test -z "$as_dir" && as_dir=.
8407 for ac_exec_ext in '' $ac_executable_extensions; do
8408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8409 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8411 break 2
8412 fi
8413done
8414 done
8415IFS=$as_save_IFS
8414a40c 8416
80ed523f
VZ
8417fi
8418fi
8419ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8420if test -n "$ac_ct_OBJDUMP"; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8422$as_echo "$ac_ct_OBJDUMP" >&6; }
8423else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425$as_echo "no" >&6; }
8426fi
8414a40c 8427
80ed523f
VZ
8428 if test "x$ac_ct_OBJDUMP" = x; then
8429 OBJDUMP="false"
8430 else
8431 case $cross_compiling:$ac_tool_warned in
8432yes:)
8433{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8434$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8435ac_tool_warned=yes ;;
8436esac
8437 OBJDUMP=$ac_ct_OBJDUMP
8438 fi
8439else
8440 OBJDUMP="$ac_cv_prog_OBJDUMP"
8441fi
8414a40c 8442
80ed523f
VZ
8443 ;;
8444esac
8414a40c 8445
80ed523f 8446test -z "$AS" && AS=as
8414a40c 8447
8414a40c 8448
8414a40c 8449
8414a40c
VZ
8450
8451
80ed523f 8452test -z "$DLLTOOL" && DLLTOOL=dlltool
8414a40c 8453
8414a40c 8454
8414a40c 8455
8414a40c 8456
8414a40c 8457
80ed523f 8458test -z "$OBJDUMP" && OBJDUMP=objdump
8414a40c 8459
8414a40c
VZ
8460
8461
8462
8463
8464
8465
80ed523f 8466 enable_dlopen=no
8414a40c 8467
8414a40c 8468
8414a40c 8469
80ed523f
VZ
8470 # Check whether --enable-shared was given.
8471if test "${enable_shared+set}" = set; then :
8472 enableval=$enable_shared; p=${PACKAGE-default}
8473 case $enableval in
8474 yes) enable_shared=yes ;;
8475 no) enable_shared=no ;;
8476 *)
8477 enable_shared=no
8478 # Look at the argument we got. We use all the common list separators.
8479 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8480 for pkg in $enableval; do
8481 IFS="$lt_save_ifs"
8482 if test "X$pkg" = "X$p"; then
8483 enable_shared=yes
8484 fi
8485 done
8486 IFS="$lt_save_ifs"
8414a40c 8487 ;;
80ed523f
VZ
8488 esac
8489else
8490 enable_shared=yes
8491fi
8414a40c 8492
8414a40c 8493
8414a40c 8494
8414a40c 8495
8414a40c 8496
8414a40c 8497
8414a40c 8498
8414a40c 8499
8414a40c 8500
80ed523f
VZ
8501 # Check whether --enable-static was given.
8502if test "${enable_static+set}" = set; then :
8503 enableval=$enable_static; p=${PACKAGE-default}
8504 case $enableval in
8505 yes) enable_static=yes ;;
8506 no) enable_static=no ;;
8414a40c 8507 *)
80ed523f
VZ
8508 enable_static=no
8509 # Look at the argument we got. We use all the common list separators.
8510 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8511 for pkg in $enableval; do
8512 IFS="$lt_save_ifs"
8513 if test "X$pkg" = "X$p"; then
8514 enable_static=yes
8515 fi
8516 done
8517 IFS="$lt_save_ifs"
8414a40c
VZ
8518 ;;
8519 esac
80ed523f
VZ
8520else
8521 enable_static=yes
8522fi
8414a40c 8523
8414a40c 8524
8414a40c 8525
8414a40c 8526
8414a40c 8527
8414a40c 8528
8414a40c 8529
8414a40c 8530
8414a40c 8531
8414a40c 8532
80ed523f
VZ
8533# Check whether --with-pic was given.
8534if test "${with_pic+set}" = set; then :
8535 withval=$with_pic; lt_p=${PACKAGE-default}
8536 case $withval in
8537 yes|no) pic_mode=$withval ;;
8538 *)
8539 pic_mode=default
8540 # Look at the argument we got. We use all the common list separators.
8541 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8542 for lt_pkg in $withval; do
8543 IFS="$lt_save_ifs"
8544 if test "X$lt_pkg" = "X$lt_p"; then
8545 pic_mode=yes
8546 fi
8547 done
8548 IFS="$lt_save_ifs"
8414a40c 8549 ;;
80ed523f
VZ
8550 esac
8551else
8552 pic_mode=default
8553fi
8554
8555
8556test -z "$pic_mode" && pic_mode=default
8557
8414a40c 8558
8414a40c 8559
8414a40c 8560
8414a40c 8561
8414a40c 8562
8414a40c 8563
80ed523f
VZ
8564 # Check whether --enable-fast-install was given.
8565if test "${enable_fast_install+set}" = set; then :
8566 enableval=$enable_fast_install; p=${PACKAGE-default}
8567 case $enableval in
8568 yes) enable_fast_install=yes ;;
8569 no) enable_fast_install=no ;;
8414a40c 8570 *)
80ed523f
VZ
8571 enable_fast_install=no
8572 # Look at the argument we got. We use all the common list separators.
8573 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8574 for pkg in $enableval; do
8575 IFS="$lt_save_ifs"
8576 if test "X$pkg" = "X$p"; then
8577 enable_fast_install=yes
8578 fi
8579 done
8580 IFS="$lt_save_ifs"
8414a40c
VZ
8581 ;;
8582 esac
80ed523f
VZ
8583else
8584 enable_fast_install=yes
8585fi
8414a40c 8586
8414a40c
VZ
8587
8588
8589
8590
8591
8592
8414a40c 8593
8414a40c 8594
8414a40c 8595
8414a40c 8596
80ed523f
VZ
8597# This can be used to rebuild libtool when needed
8598LIBTOOL_DEPS="$ltmain"
8414a40c 8599
80ed523f
VZ
8600# Always use our own libtool.
8601LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8414a40c
VZ
8602
8603
8604
8605
8414a40c 8606
8414a40c 8607
8414a40c
VZ
8608
8609
8610
8611
8612
8613
8614
8414a40c 8615
8414a40c 8616
8414a40c
VZ
8617
8618
8619
8620
8621
8622
8414a40c 8623
8414a40c 8624
8414a40c
VZ
8625
8626
8627
8628
8414a40c
VZ
8629
8630
8631
80ed523f 8632test -z "$LN_S" && LN_S="ln -s"
8414a40c
VZ
8633
8634
8635
8414a40c 8636
8414a40c 8637
8414a40c 8638
8414a40c 8639
8414a40c 8640
8414a40c 8641
8414a40c 8642
8414a40c 8643
8414a40c 8644
8414a40c 8645
8414a40c 8646
80ed523f
VZ
8647if test -n "${ZSH_VERSION+set}" ; then
8648 setopt NO_GLOB_SUBST
8649fi
8414a40c 8650
80ed523f
VZ
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8652$as_echo_n "checking for objdir... " >&6; }
8653if ${lt_cv_objdir+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655else
8656 rm -f .libs 2>/dev/null
8657mkdir .libs 2>/dev/null
8658if test -d .libs; then
8659 lt_cv_objdir=.libs
8660else
8661 # MS-DOS does not allow filenames that begin with a dot.
8662 lt_cv_objdir=_libs
8663fi
8664rmdir .libs 2>/dev/null
8665fi
8666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8667$as_echo "$lt_cv_objdir" >&6; }
8668objdir=$lt_cv_objdir
8414a40c 8669
8414a40c 8670
8414a40c 8671
8414a40c 8672
8414a40c 8673
80ed523f
VZ
8674cat >>confdefs.h <<_ACEOF
8675#define LT_OBJDIR "$lt_cv_objdir/"
8676_ACEOF
8414a40c 8677
8414a40c 8678
8414a40c 8679
8414a40c 8680
80ed523f
VZ
8681case $host_os in
8682aix3*)
8683 # AIX sometimes has problems with the GCC collect2 program. For some
8684 # reason, if we set the COLLECT_NAMES environment variable, the problems
8685 # vanish in a puff of smoke.
8686 if test "X${COLLECT_NAMES+set}" != Xset; then
8687 COLLECT_NAMES=
8688 export COLLECT_NAMES
8689 fi
8690 ;;
8691esac
8414a40c 8692
80ed523f
VZ
8693# Global variables:
8694ofile=libtool
8695can_build_shared=yes
8414a40c 8696
80ed523f
VZ
8697# All known linkers require a `.a' archive for static linking (except MSVC,
8698# which needs '.lib').
8699libext=a
8700
8701with_gnu_ld="$lt_cv_prog_gnu_ld"
8702
8703old_CC="$CC"
8704old_CFLAGS="$CFLAGS"
8705
8706# Set sane defaults for various variables
8707test -z "$CC" && CC=cc
8708test -z "$LTCC" && LTCC=$CC
8709test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8710test -z "$LD" && LD=ld
8711test -z "$ac_objext" && ac_objext=o
8712
8713for cc_temp in $compiler""; do
8714 case $cc_temp in
8715 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8716 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8717 \-*) ;;
8718 *) break;;
8719 esac
8720done
8721cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8722
8723
8724# Only perform the check for file, if the check method requires it
8725test -z "$MAGIC_CMD" && MAGIC_CMD=file
8726case $deplibs_check_method in
8727file_magic*)
8728 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8730$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8731if ${lt_cv_path_MAGIC_CMD+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733else
8734 case $MAGIC_CMD in
8735[\\/*] | ?:[\\/]*)
8736 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8737 ;;
8738*)
8739 lt_save_MAGIC_CMD="$MAGIC_CMD"
8740 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8741 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8742 for ac_dir in $ac_dummy; do
8743 IFS="$lt_save_ifs"
8744 test -z "$ac_dir" && ac_dir=.
8745 if test -f $ac_dir/${ac_tool_prefix}file; then
8746 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8747 if test -n "$file_magic_test_file"; then
8748 case $deplibs_check_method in
8749 "file_magic "*)
8750 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8751 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8752 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8753 $EGREP "$file_magic_regex" > /dev/null; then
8754 :
8414a40c 8755 else
80ed523f 8756 cat <<_LT_EOF 1>&2
8414a40c 8757
80ed523f
VZ
8758*** Warning: the command libtool uses to detect shared libraries,
8759*** $file_magic_cmd, produces output that libtool cannot recognize.
8760*** The result is that libtool may fail to recognize shared libraries
8761*** as such. This will affect the creation of libtool libraries that
8762*** depend on shared libraries, but programs linked with such libtool
8763*** libraries will work regardless of this problem. Nevertheless, you
8764*** may want to report the problem to your system manager and/or to
8765*** bug-libtool@gnu.org
8414a40c 8766
80ed523f
VZ
8767_LT_EOF
8768 fi ;;
8769 esac
8414a40c 8770 fi
80ed523f 8771 break
8414a40c 8772 fi
80ed523f
VZ
8773 done
8774 IFS="$lt_save_ifs"
8775 MAGIC_CMD="$lt_save_MAGIC_CMD"
8776 ;;
8777esac
8778fi
8414a40c 8779
80ed523f
VZ
8780MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781if test -n "$MAGIC_CMD"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8783$as_echo "$MAGIC_CMD" >&6; }
8784else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786$as_echo "no" >&6; }
8787fi
8414a40c 8788
8414a40c 8789
8414a40c 8790
8414a40c 8791
8414a40c 8792
80ed523f
VZ
8793if test -z "$lt_cv_path_MAGIC_CMD"; then
8794 if test -n "$ac_tool_prefix"; then
8795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8796$as_echo_n "checking for file... " >&6; }
8797if ${lt_cv_path_MAGIC_CMD+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799else
8800 case $MAGIC_CMD in
8801[\\/*] | ?:[\\/]*)
8802 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8803 ;;
8804*)
8805 lt_save_MAGIC_CMD="$MAGIC_CMD"
8806 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8807 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8808 for ac_dir in $ac_dummy; do
8809 IFS="$lt_save_ifs"
8810 test -z "$ac_dir" && ac_dir=.
8811 if test -f $ac_dir/file; then
8812 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8813 if test -n "$file_magic_test_file"; then
8814 case $deplibs_check_method in
8815 "file_magic "*)
8816 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8817 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8818 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8819 $EGREP "$file_magic_regex" > /dev/null; then
8820 :
8414a40c 8821 else
80ed523f 8822 cat <<_LT_EOF 1>&2
8414a40c 8823
80ed523f
VZ
8824*** Warning: the command libtool uses to detect shared libraries,
8825*** $file_magic_cmd, produces output that libtool cannot recognize.
8826*** The result is that libtool may fail to recognize shared libraries
8827*** as such. This will affect the creation of libtool libraries that
8828*** depend on shared libraries, but programs linked with such libtool
8829*** libraries will work regardless of this problem. Nevertheless, you
8830*** may want to report the problem to your system manager and/or to
8831*** bug-libtool@gnu.org
8414a40c 8832
80ed523f
VZ
8833_LT_EOF
8834 fi ;;
8835 esac
8836 fi
8837 break
8838 fi
8839 done
8840 IFS="$lt_save_ifs"
8841 MAGIC_CMD="$lt_save_MAGIC_CMD"
8842 ;;
31cb0113 8843esac
8414a40c 8844fi
80ed523f
VZ
8845
8846MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847if test -n "$MAGIC_CMD"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8849$as_echo "$MAGIC_CMD" >&6; }
8414a40c 8850else
80ed523f
VZ
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852$as_echo "no" >&6; }
8853fi
8414a40c 8854
31cb0113 8855
80ed523f
VZ
8856 else
8857 MAGIC_CMD=:
8858 fi
8414a40c 8859fi
31cb0113 8860
80ed523f
VZ
8861 fi
8862 ;;
8863esac
8414a40c 8864
80ed523f 8865# Use C for the default configuration in the libtool script
8414a40c 8866
80ed523f
VZ
8867lt_save_CC="$CC"
8868ac_ext=c
8869ac_cpp='$CPP $CPPFLAGS'
8870ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c 8873
8414a40c 8874
80ed523f
VZ
8875# Source file extension for C test sources.
8876ac_ext=c
31cb0113 8877
80ed523f
VZ
8878# Object file extension for compiled C test sources.
8879objext=o
8880objext=$objext
31cb0113 8881
80ed523f
VZ
8882# Code to be used in simple compile tests
8883lt_simple_compile_test_code="int some_variable = 0;"
8414a40c 8884
80ed523f
VZ
8885# Code to be used in simple link tests
8886lt_simple_link_test_code='int main(){return(0);}'
8414a40c 8887
8414a40c 8888
8414a40c 8889
8414a40c 8890
8414a40c 8891
8414a40c 8892
8414a40c 8893
80ed523f
VZ
8894# If no C compiler was specified, use CC.
8895LTCC=${LTCC-"$CC"}
8414a40c 8896
80ed523f
VZ
8897# If no C compiler flags were specified, use CFLAGS.
8898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8414a40c 8899
80ed523f
VZ
8900# Allow CC to be a program name with arguments.
8901compiler=$CC
8414a40c 8902
80ed523f
VZ
8903# Save the default compiler, since it gets overwritten when the other
8904# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8905compiler_DEFAULT=$CC
8414a40c 8906
80ed523f
VZ
8907# save warnings/boilerplate of simple test code
8908ac_outfile=conftest.$ac_objext
8909echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8910eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8911_lt_compiler_boilerplate=`cat conftest.err`
8912$RM conftest*
8414a40c 8913
80ed523f
VZ
8914ac_outfile=conftest.$ac_objext
8915echo "$lt_simple_link_test_code" >conftest.$ac_ext
8916eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8917_lt_linker_boilerplate=`cat conftest.err`
8918$RM -r conftest*
8414a40c 8919
8414a40c 8920
80ed523f
VZ
8921## CAVEAT EMPTOR:
8922## There is no encapsulation within the following macros, do not change
8923## the running order or otherwise move them around unless you know exactly
8924## what you are doing...
8925if test -n "$compiler"; then
8414a40c 8926
80ed523f 8927lt_prog_compiler_no_builtin_flag=
8414a40c 8928
80ed523f
VZ
8929if test "$GCC" = yes; then
8930 case $cc_basename in
8931 nvcc*)
8932 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8933 *)
8934 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8935 esac
8414a40c 8936
80ed523f
VZ
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8938$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8939if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8940 $as_echo_n "(cached) " >&6
8414a40c 8941else
80ed523f
VZ
8942 lt_cv_prog_compiler_rtti_exceptions=no
8943 ac_outfile=conftest.$ac_objext
8944 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8945 lt_compiler_flag="-fno-rtti -fno-exceptions"
8946 # Insert the option either (1) after the last *FLAGS variable, or
8947 # (2) before a word containing "conftest.", or (3) at the end.
8948 # Note that $ac_compile itself does not contain backslashes and begins
8949 # with a dollar sign (not a hyphen), so the echo should work correctly.
8950 # The option is referenced via a variable to avoid confusing sed.
8951 lt_compile=`echo "$ac_compile" | $SED \
8952 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8953 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8954 -e 's:$: $lt_compiler_flag:'`
8955 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8956 (eval "$lt_compile" 2>conftest.err)
8957 ac_status=$?
8958 cat conftest.err >&5
8959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8960 if (exit $ac_status) && test -s "$ac_outfile"; then
8961 # The compiler can only warn and ignore the option if not recognized
8962 # So say no if there are warnings other than the usual output.
8963 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8964 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8965 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8966 lt_cv_prog_compiler_rtti_exceptions=yes
8967 fi
8968 fi
8969 $RM conftest*
8414a40c 8970
80ed523f
VZ
8971fi
8972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8973$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
31cb0113 8974
80ed523f
VZ
8975if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8976 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8977else
8978 :
8414a40c 8979fi
31cb0113 8980
80ed523f 8981fi
8414a40c 8982
8414a40c 8983
8414a40c 8984
8414a40c 8985
80ed523f
VZ
8986
8987
8988 lt_prog_compiler_wl=
8989lt_prog_compiler_pic=
8990lt_prog_compiler_static=
8991
8992
8993 if test "$GCC" = yes; then
8994 lt_prog_compiler_wl='-Wl,'
8995 lt_prog_compiler_static='-static'
8996
8997 case $host_os in
8998 aix*)
8999 # All AIX code is PIC.
9000 if test "$host_cpu" = ia64; then
9001 # AIX 5 now supports IA64 processor
9002 lt_prog_compiler_static='-Bstatic'
8414a40c
VZ
9003 fi
9004 ;;
9005
80ed523f
VZ
9006 amigaos*)
9007 case $host_cpu in
9008 powerpc)
9009 # see comment about AmigaOS4 .so support
9010 lt_prog_compiler_pic='-fPIC'
9011 ;;
9012 m68k)
9013 # FIXME: we need at least 68020 code to build shared libraries, but
9014 # adding the `-m68020' flag to GCC prevents building anything better,
9015 # like `-m68040'.
9016 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9017 ;;
9018 esac
8414a40c
VZ
9019 ;;
9020
80ed523f
VZ
9021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9022 # PIC is the default for these OSes.
8414a40c
VZ
9023 ;;
9024
80ed523f
VZ
9025 mingw* | cygwin* | pw32* | os2* | cegcc*)
9026 # This hack is so that the source file can tell whether it is being
9027 # built for inclusion in a dll (and should export symbols for example).
9028 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9029 # (--disable-auto-import) libraries
9030 lt_prog_compiler_pic='-DDLL_EXPORT'
8414a40c
VZ
9031 ;;
9032
80ed523f
VZ
9033 darwin* | rhapsody*)
9034 # PIC is the default on this platform
9035 # Common symbols not allowed in MH_DYLIB files
9036 lt_prog_compiler_pic='-fno-common'
8414a40c
VZ
9037 ;;
9038
80ed523f
VZ
9039 haiku*)
9040 # PIC is the default for Haiku.
9041 # The "-static" flag exists, but is broken.
9042 lt_prog_compiler_static=
8414a40c
VZ
9043 ;;
9044
80ed523f
VZ
9045 hpux*)
9046 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9047 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9048 # sets the default TLS model and affects inlining.
9049 case $host_cpu in
9050 hppa*64*)
9051 # +Z the default
8414a40c 9052 ;;
80ed523f
VZ
9053 *)
9054 lt_prog_compiler_pic='-fPIC'
8414a40c
VZ
9055 ;;
9056 esac
8414a40c
VZ
9057 ;;
9058
80ed523f
VZ
9059 interix[3-9]*)
9060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9061 # Instead, we relocate shared libraries at runtime.
8414a40c
VZ
9062 ;;
9063
80ed523f
VZ
9064 msdosdjgpp*)
9065 # Just because we use GCC doesn't mean we suddenly get shared libraries
9066 # on systems that don't support them.
9067 lt_prog_compiler_can_build_shared=no
9068 enable_shared=no
9069 ;;
9070
9071 *nto* | *qnx*)
9072 # QNX uses GNU C++, but need to define -shared option too, otherwise
9073 # it will coredump.
9074 lt_prog_compiler_pic='-fPIC -shared'
9075 ;;
9076
9077 sysv4*MP*)
9078 if test -d /usr/nec; then
9079 lt_prog_compiler_pic=-Kconform_pic
8414a40c
VZ
9080 fi
9081 ;;
9082
80ed523f
VZ
9083 *)
9084 lt_prog_compiler_pic='-fPIC'
9085 ;;
9086 esac
8414a40c 9087
80ed523f
VZ
9088 case $cc_basename in
9089 nvcc*) # Cuda Compiler Driver 2.2
9090 lt_prog_compiler_wl='-Xlinker '
9091 if test -n "$lt_prog_compiler_pic"; then
9092 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
9093 fi
9094 ;;
9095 esac
9096 else
9097 # PORTME Check for flag to pass linker flags through the system compiler.
9098 case $host_os in
9099 aix*)
9100 lt_prog_compiler_wl='-Wl,'
9101 if test "$host_cpu" = ia64; then
9102 # AIX 5 now supports IA64 processor
9103 lt_prog_compiler_static='-Bstatic'
8414a40c 9104 else
80ed523f 9105 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8414a40c
VZ
9106 fi
9107 ;;
9108
80ed523f
VZ
9109 mingw* | cygwin* | pw32* | os2* | cegcc*)
9110 # This hack is so that the source file can tell whether it is being
9111 # built for inclusion in a dll (and should export symbols for example).
9112 lt_prog_compiler_pic='-DDLL_EXPORT'
9113 ;;
8414a40c 9114
80ed523f
VZ
9115 hpux9* | hpux10* | hpux11*)
9116 lt_prog_compiler_wl='-Wl,'
9117 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9118 # not for PA HP-UX.
9119 case $host_cpu in
9120 hppa*64*|ia64*)
9121 # +Z the default
9122 ;;
9123 *)
9124 lt_prog_compiler_pic='+Z'
9125 ;;
9126 esac
9127 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9128 lt_prog_compiler_static='${wl}-a ${wl}archive'
9129 ;;
9130
9131 irix5* | irix6* | nonstopux*)
9132 lt_prog_compiler_wl='-Wl,'
9133 # PIC (with -KPIC) is the default.
9134 lt_prog_compiler_static='-non_shared'
9135 ;;
9136
9137 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9138 case $cc_basename in
9139 # old Intel for x86_64 which still supported -KPIC.
9140 ecc*)
9141 lt_prog_compiler_wl='-Wl,'
9142 lt_prog_compiler_pic='-KPIC'
9143 lt_prog_compiler_static='-static'
9144 ;;
9145 # icc used to be incompatible with GCC.
9146 # ICC 10 doesn't accept -KPIC any more.
9147 icc* | ifort*)
9148 lt_prog_compiler_wl='-Wl,'
9149 lt_prog_compiler_pic='-fPIC'
9150 lt_prog_compiler_static='-static'
9151 ;;
9152 # Lahey Fortran 8.1.
9153 lf95*)
9154 lt_prog_compiler_wl='-Wl,'
9155 lt_prog_compiler_pic='--shared'
9156 lt_prog_compiler_static='--static'
9157 ;;
9158 nagfor*)
9159 # NAG Fortran compiler
9160 lt_prog_compiler_wl='-Wl,-Wl,,'
9161 lt_prog_compiler_pic='-PIC'
9162 lt_prog_compiler_static='-Bstatic'
9163 ;;
9164 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9165 # Portland Group compilers (*not* the Pentium gcc compiler,
9166 # which looks to be a dead project)
9167 lt_prog_compiler_wl='-Wl,'
9168 lt_prog_compiler_pic='-fpic'
9169 lt_prog_compiler_static='-Bstatic'
9170 ;;
9171 ccc*)
9172 lt_prog_compiler_wl='-Wl,'
9173 # All Alpha code is PIC.
9174 lt_prog_compiler_static='-non_shared'
9175 ;;
9176 xl* | bgxl* | bgf* | mpixl*)
9177 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9178 lt_prog_compiler_wl='-Wl,'
9179 lt_prog_compiler_pic='-qpic'
9180 lt_prog_compiler_static='-qstaticlink'
9181 ;;
9182 *)
9183 case `$CC -V 2>&1 | sed 5q` in
9184 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
9185 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9186 lt_prog_compiler_pic='-KPIC'
9187 lt_prog_compiler_static='-Bstatic'
9188 lt_prog_compiler_wl=''
9189 ;;
9190 *Sun\ F* | *Sun*Fortran*)
9191 lt_prog_compiler_pic='-KPIC'
9192 lt_prog_compiler_static='-Bstatic'
9193 lt_prog_compiler_wl='-Qoption ld '
9194 ;;
9195 *Sun\ C*)
9196 # Sun C 5.9
9197 lt_prog_compiler_pic='-KPIC'
9198 lt_prog_compiler_static='-Bstatic'
9199 lt_prog_compiler_wl='-Wl,'
9200 ;;
9201 *Intel*\ [CF]*Compiler*)
9202 lt_prog_compiler_wl='-Wl,'
9203 lt_prog_compiler_pic='-fPIC'
9204 lt_prog_compiler_static='-static'
9205 ;;
9206 *Portland\ Group*)
9207 lt_prog_compiler_wl='-Wl,'
9208 lt_prog_compiler_pic='-fpic'
9209 lt_prog_compiler_static='-Bstatic'
9210 ;;
9211 esac
9212 ;;
9213 esac
9214 ;;
9215
9216 newsos6)
9217 lt_prog_compiler_pic='-KPIC'
9218 lt_prog_compiler_static='-Bstatic'
9219 ;;
9220
9221 *nto* | *qnx*)
9222 # QNX uses GNU C++, but need to define -shared option too, otherwise
9223 # it will coredump.
9224 lt_prog_compiler_pic='-fPIC -shared'
9225 ;;
9226
9227 osf3* | osf4* | osf5*)
9228 lt_prog_compiler_wl='-Wl,'
9229 # All OSF/1 code is PIC.
9230 lt_prog_compiler_static='-non_shared'
9231 ;;
9232
9233 rdos*)
9234 lt_prog_compiler_static='-non_shared'
9235 ;;
9236
9237 solaris*)
9238 lt_prog_compiler_pic='-KPIC'
9239 lt_prog_compiler_static='-Bstatic'
9240 case $cc_basename in
9241 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
9242 lt_prog_compiler_wl='-Qoption ld ';;
9243 *)
9244 lt_prog_compiler_wl='-Wl,';;
9245 esac
9246 ;;
9247
9248 sunos4*)
9249 lt_prog_compiler_wl='-Qoption ld '
9250 lt_prog_compiler_pic='-PIC'
9251 lt_prog_compiler_static='-Bstatic'
9252 ;;
9253
9254 sysv4 | sysv4.2uw2* | sysv4.3*)
9255 lt_prog_compiler_wl='-Wl,'
9256 lt_prog_compiler_pic='-KPIC'
9257 lt_prog_compiler_static='-Bstatic'
9258 ;;
9259
9260 sysv4*MP*)
9261 if test -d /usr/nec ;then
9262 lt_prog_compiler_pic='-Kconform_pic'
9263 lt_prog_compiler_static='-Bstatic'
8414a40c
VZ
9264 fi
9265 ;;
9266
80ed523f
VZ
9267 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9268 lt_prog_compiler_wl='-Wl,'
9269 lt_prog_compiler_pic='-KPIC'
9270 lt_prog_compiler_static='-Bstatic'
9271 ;;
9272
9273 unicos*)
9274 lt_prog_compiler_wl='-Wl,'
9275 lt_prog_compiler_can_build_shared=no
9276 ;;
9277
8414a40c 9278 uts4*)
80ed523f
VZ
9279 lt_prog_compiler_pic='-pic'
9280 lt_prog_compiler_static='-Bstatic'
8414a40c
VZ
9281 ;;
9282
9283 *)
80ed523f 9284 lt_prog_compiler_can_build_shared=no
8414a40c
VZ
9285 ;;
9286 esac
8414a40c
VZ
9287 fi
9288
80ed523f
VZ
9289case $host_os in
9290 # For platforms which do not support PIC, -DPIC is meaningless:
9291 *djgpp*)
9292 lt_prog_compiler_pic=
9293 ;;
9294 *)
9295 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9296 ;;
9297esac
8414a40c 9298
80ed523f
VZ
9299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9300$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9301if ${lt_cv_prog_compiler_pic+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303else
9304 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9305fi
9306{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9307$as_echo "$lt_cv_prog_compiler_pic" >&6; }
9308lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8414a40c 9309
80ed523f
VZ
9310#
9311# Check to make sure the PIC flag actually works.
9312#
9313if test -n "$lt_prog_compiler_pic"; then
9314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9315$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9316if ${lt_cv_prog_compiler_pic_works+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318else
9319 lt_cv_prog_compiler_pic_works=no
9320 ac_outfile=conftest.$ac_objext
9321 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9322 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9323 # Insert the option either (1) after the last *FLAGS variable, or
9324 # (2) before a word containing "conftest.", or (3) at the end.
9325 # Note that $ac_compile itself does not contain backslashes and begins
9326 # with a dollar sign (not a hyphen), so the echo should work correctly.
9327 # The option is referenced via a variable to avoid confusing sed.
9328 lt_compile=`echo "$ac_compile" | $SED \
9329 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9330 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9331 -e 's:$: $lt_compiler_flag:'`
9332 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9333 (eval "$lt_compile" 2>conftest.err)
9334 ac_status=$?
9335 cat conftest.err >&5
9336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9337 if (exit $ac_status) && test -s "$ac_outfile"; then
9338 # The compiler can only warn and ignore the option if not recognized
9339 # So say no if there are warnings other than the usual output.
9340 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9341 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9342 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9343 lt_cv_prog_compiler_pic_works=yes
9344 fi
9345 fi
9346 $RM conftest*
8414a40c 9347
80ed523f
VZ
9348fi
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9350$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8414a40c 9351
80ed523f
VZ
9352if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9353 case $lt_prog_compiler_pic in
9354 "" | " "*) ;;
9355 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9356 esac
9357else
9358 lt_prog_compiler_pic=
9359 lt_prog_compiler_can_build_shared=no
9360fi
8414a40c 9361
80ed523f 9362fi
8414a40c
VZ
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374#
80ed523f 9375# Check to make sure the static flag actually works.
8414a40c 9376#
80ed523f
VZ
9377wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9379$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9380if ${lt_cv_prog_compiler_static_works+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382else
9383 lt_cv_prog_compiler_static_works=no
9384 save_LDFLAGS="$LDFLAGS"
9385 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9386 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9387 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9388 # The linker can only warn and ignore the option if not recognized
9389 # So say no if there are warnings
9390 if test -s conftest.err; then
9391 # Append any errors to the config.log.
9392 cat conftest.err 1>&5
9393 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9395 if diff conftest.exp conftest.er2 >/dev/null; then
9396 lt_cv_prog_compiler_static_works=yes
9397 fi
9398 else
9399 lt_cv_prog_compiler_static_works=yes
9400 fi
9401 fi
9402 $RM -r conftest*
9403 LDFLAGS="$save_LDFLAGS"
8414a40c 9404
80ed523f
VZ
9405fi
9406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9407$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8414a40c 9408
80ed523f
VZ
9409if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9410 :
9411else
9412 lt_prog_compiler_static=
9413fi
8414a40c
VZ
9414
9415
9416
9417
9418
9419
9420
80ed523f
VZ
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9422$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9423if ${lt_cv_prog_compiler_c_o+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425else
9426 lt_cv_prog_compiler_c_o=no
9427 $RM -r conftest 2>/dev/null
9428 mkdir conftest
9429 cd conftest
9430 mkdir out
9431 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 9432
80ed523f
VZ
9433 lt_compiler_flag="-o out/conftest2.$ac_objext"
9434 # Insert the option either (1) after the last *FLAGS variable, or
9435 # (2) before a word containing "conftest.", or (3) at the end.
9436 # Note that $ac_compile itself does not contain backslashes and begins
9437 # with a dollar sign (not a hyphen), so the echo should work correctly.
9438 lt_compile=`echo "$ac_compile" | $SED \
9439 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9440 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9441 -e 's:$: $lt_compiler_flag:'`
9442 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9443 (eval "$lt_compile" 2>out/conftest.err)
9444 ac_status=$?
9445 cat out/conftest.err >&5
9446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9447 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9448 then
9449 # The compiler can only warn and ignore the option if not recognized
9450 # So say no if there are warnings
9451 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9452 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9453 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9454 lt_cv_prog_compiler_c_o=yes
9455 fi
9456 fi
9457 chmod u+w . 2>&5
9458 $RM conftest*
9459 # SGI C++ compiler will create directory out/ii_files/ for
9460 # template instantiation
9461 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9462 $RM out/* && rmdir out
9463 cd ..
9464 $RM -r conftest
9465 $RM conftest*
8414a40c 9466
80ed523f
VZ
9467fi
9468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9469$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8414a40c
VZ
9470
9471
9472
9473
9474
9475
80ed523f
VZ
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9477$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9478if ${lt_cv_prog_compiler_c_o+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480else
9481 lt_cv_prog_compiler_c_o=no
9482 $RM -r conftest 2>/dev/null
9483 mkdir conftest
9484 cd conftest
9485 mkdir out
9486 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 9487
80ed523f
VZ
9488 lt_compiler_flag="-o out/conftest2.$ac_objext"
9489 # Insert the option either (1) after the last *FLAGS variable, or
9490 # (2) before a word containing "conftest.", or (3) at the end.
9491 # Note that $ac_compile itself does not contain backslashes and begins
9492 # with a dollar sign (not a hyphen), so the echo should work correctly.
9493 lt_compile=`echo "$ac_compile" | $SED \
9494 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9495 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9496 -e 's:$: $lt_compiler_flag:'`
9497 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9498 (eval "$lt_compile" 2>out/conftest.err)
9499 ac_status=$?
9500 cat out/conftest.err >&5
9501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9502 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9503 then
9504 # The compiler can only warn and ignore the option if not recognized
9505 # So say no if there are warnings
9506 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9507 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9508 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9509 lt_cv_prog_compiler_c_o=yes
9510 fi
9511 fi
9512 chmod u+w . 2>&5
9513 $RM conftest*
9514 # SGI C++ compiler will create directory out/ii_files/ for
9515 # template instantiation
9516 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9517 $RM out/* && rmdir out
9518 cd ..
9519 $RM -r conftest
9520 $RM conftest*
8414a40c 9521
80ed523f
VZ
9522fi
9523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9524$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8414a40c
VZ
9525
9526
9527
9528
80ed523f
VZ
9529hard_links="nottested"
9530if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9531 # do not overwrite the value of need_locks provided by the user
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9533$as_echo_n "checking if we can lock with hard links... " >&6; }
9534 hard_links=yes
9535 $RM conftest*
9536 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9537 touch conftest.a
9538 ln conftest.a conftest.b 2>&5 || hard_links=no
9539 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9541$as_echo "$hard_links" >&6; }
9542 if test "$hard_links" = no; then
9543 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9544$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9545 need_locks=warn
9546 fi
9547else
9548 need_locks=no
9549fi
8414a40c
VZ
9550
9551
9552
9553
9554
9555
80ed523f
VZ
9556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9557$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8414a40c 9558
80ed523f
VZ
9559 runpath_var=
9560 allow_undefined_flag=
9561 always_export_symbols=no
9562 archive_cmds=
9563 archive_expsym_cmds=
9564 compiler_needs_object=no
9565 enable_shared_with_static_runtimes=no
9566 export_dynamic_flag_spec=
9567 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9568 hardcode_automatic=no
9569 hardcode_direct=no
9570 hardcode_direct_absolute=no
9571 hardcode_libdir_flag_spec=
9572 hardcode_libdir_separator=
9573 hardcode_minus_L=no
9574 hardcode_shlibpath_var=unsupported
9575 inherit_rpath=no
9576 link_all_deplibs=unknown
9577 module_cmds=
9578 module_expsym_cmds=
9579 old_archive_from_new_cmds=
9580 old_archive_from_expsyms_cmds=
9581 thread_safe_flag_spec=
9582 whole_archive_flag_spec=
9583 # include_expsyms should be a list of space-separated symbols to be *always*
9584 # included in the symbol list
9585 include_expsyms=
9586 # exclude_expsyms can be an extended regexp of symbols to exclude
9587 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9588 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9589 # as well as any symbol that contains `d'.
9590 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9591 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9592 # platforms (ab)use it in PIC code, but their linkers get confused if
9593 # the symbol is explicitly referenced. Since portable code cannot
9594 # rely on this symbol name, it's probably fine to never include it in
9595 # preloaded symbol tables.
9596 # Exclude shared library initialization/finalization symbols.
9597 extract_expsyms_cmds=
8414a40c 9598
80ed523f
VZ
9599 case $host_os in
9600 cygwin* | mingw* | pw32* | cegcc*)
9601 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9602 # When not using gcc, we currently assume that we are using
9603 # Microsoft Visual C++.
9604 if test "$GCC" != yes; then
9605 with_gnu_ld=no
9606 fi
9607 ;;
9608 interix*)
9609 # we just hope/assume this is gcc and not c89 (= MSVC++)
9610 with_gnu_ld=yes
9611 ;;
9612 openbsd*)
9613 with_gnu_ld=no
9614 ;;
9615 esac
8414a40c 9616
80ed523f 9617 ld_shlibs=yes
8414a40c 9618
80ed523f
VZ
9619 # On some targets, GNU ld is compatible enough with the native linker
9620 # that we're better off using the native interface for both.
9621 lt_use_gnu_ld_interface=no
9622 if test "$with_gnu_ld" = yes; then
9623 case $host_os in
9624 aix*)
9625 # The AIX port of GNU ld has always aspired to compatibility
9626 # with the native linker. However, as the warning in the GNU ld
9627 # block says, versions before 2.19.5* couldn't really create working
9628 # shared libraries, regardless of the interface used.
9629 case `$LD -v 2>&1` in
9630 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9631 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9632 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9633 *)
9634 lt_use_gnu_ld_interface=yes
9635 ;;
9636 esac
9637 ;;
9638 *)
9639 lt_use_gnu_ld_interface=yes
9640 ;;
9641 esac
9642 fi
8414a40c 9643
80ed523f
VZ
9644 if test "$lt_use_gnu_ld_interface" = yes; then
9645 # If archive_cmds runs LD, not CC, wlarc should be empty
9646 wlarc='${wl}'
8414a40c 9647
80ed523f
VZ
9648 # Set some defaults for GNU ld with shared library support. These
9649 # are reset later if shared libraries are not supported. Putting them
9650 # here allows them to be overridden if necessary.
9651 runpath_var=LD_RUN_PATH
9652 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9653 export_dynamic_flag_spec='${wl}--export-dynamic'
9654 # ancient GNU ld didn't support --whole-archive et. al.
9655 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9656 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9657 else
9658 whole_archive_flag_spec=
9659 fi
9660 supports_anon_versioning=no
9661 case `$LD -v 2>&1` in
9662 *GNU\ gold*) supports_anon_versioning=yes ;;
9663 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9664 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9665 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9666 *\ 2.11.*) ;; # other 2.11 versions
9667 *) supports_anon_versioning=yes ;;
9668 esac
8414a40c 9669
80ed523f
VZ
9670 # See if GNU ld supports shared libraries.
9671 case $host_os in
9672 aix[3-9]*)
9673 # On AIX/PPC, the GNU linker is very broken
9674 if test "$host_cpu" != ia64; then
9675 ld_shlibs=no
9676 cat <<_LT_EOF 1>&2
8414a40c 9677
80ed523f
VZ
9678*** Warning: the GNU linker, at least up to release 2.19, is reported
9679*** to be unable to reliably create shared libraries on AIX.
9680*** Therefore, libtool is disabling shared libraries support. If you
9681*** really care for shared libraries, you may want to install binutils
9682*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9683*** You will then need to restart the configuration process.
8414a40c 9684
80ed523f
VZ
9685_LT_EOF
9686 fi
9687 ;;
8414a40c 9688
80ed523f
VZ
9689 amigaos*)
9690 case $host_cpu in
9691 powerpc)
9692 # see comment about AmigaOS4 .so support
9693 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9694 archive_expsym_cmds=''
9695 ;;
9696 m68k)
9697 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)'
9698 hardcode_libdir_flag_spec='-L$libdir'
9699 hardcode_minus_L=yes
9700 ;;
9701 esac
9702 ;;
8414a40c 9703
80ed523f
VZ
9704 beos*)
9705 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9706 allow_undefined_flag=unsupported
9707 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9708 # support --undefined. This deserves some investigation. FIXME
9709 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9710 else
9711 ld_shlibs=no
9712 fi
9713 ;;
8414a40c 9714
80ed523f
VZ
9715 cygwin* | mingw* | pw32* | cegcc*)
9716 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9717 # as there is no search path for DLLs.
9718 hardcode_libdir_flag_spec='-L$libdir'
9719 export_dynamic_flag_spec='${wl}--export-all-symbols'
9720 allow_undefined_flag=unsupported
9721 always_export_symbols=no
9722 enable_shared_with_static_runtimes=yes
9723 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9724 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
8414a40c 9725
80ed523f
VZ
9726 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9727 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9728 # If the export-symbols file already is a .def file (1st line
9729 # is EXPORTS), use it as is; otherwise, prepend...
9730 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9731 cp $export_symbols $output_objdir/$soname.def;
9732 else
9733 echo EXPORTS > $output_objdir/$soname.def;
9734 cat $export_symbols >> $output_objdir/$soname.def;
9735 fi~
9736 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9737 else
9738 ld_shlibs=no
9739 fi
9740 ;;
8414a40c 9741
80ed523f
VZ
9742 haiku*)
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744 link_all_deplibs=yes
9745 ;;
8414a40c 9746
80ed523f
VZ
9747 interix[3-9]*)
9748 hardcode_direct=no
9749 hardcode_shlibpath_var=no
9750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9751 export_dynamic_flag_spec='${wl}-E'
9752 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9753 # Instead, shared libraries are loaded at an image base (0x10000000 by
9754 # default) and relocated if they conflict, which is a slow very memory
9755 # consuming and fragmenting process. To avoid this, we pick a random,
9756 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9757 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9758 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9759 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'
9760 ;;
8414a40c 9761
80ed523f
VZ
9762 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9763 tmp_diet=no
9764 if test "$host_os" = linux-dietlibc; then
9765 case $cc_basename in
9766 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9767 esac
9768 fi
9769 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9770 && test "$tmp_diet" = no
9771 then
9772 tmp_addflag=' $pic_flag'
9773 tmp_sharedflag='-shared'
9774 case $cc_basename,$host_cpu in
9775 pgcc*) # Portland Group C compiler
9776 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9777 tmp_addflag=' $pic_flag'
9778 ;;
9779 pgf77* | pgf90* | pgf95* | pgfortran*)
9780 # Portland Group f77 and f90 compilers
9781 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9782 tmp_addflag=' $pic_flag -Mnomain' ;;
9783 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9784 tmp_addflag=' -i_dynamic' ;;
9785 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9786 tmp_addflag=' -i_dynamic -nofor_main' ;;
9787 ifc* | ifort*) # Intel Fortran compiler
9788 tmp_addflag=' -nofor_main' ;;
9789 lf95*) # Lahey Fortran 8.1
9790 whole_archive_flag_spec=
9791 tmp_sharedflag='--shared' ;;
9792 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9793 tmp_sharedflag='-qmkshrobj'
9794 tmp_addflag= ;;
9795 nvcc*) # Cuda Compiler Driver 2.2
9796 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9797 compiler_needs_object=yes
9798 ;;
9799 esac
9800 case `$CC -V 2>&1 | sed 5q` in
9801 *Sun\ C*) # Sun C 5.9
9802 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9803 compiler_needs_object=yes
9804 tmp_sharedflag='-G' ;;
9805 *Sun\ F*) # Sun Fortran 8.3
9806 tmp_sharedflag='-G' ;;
9807 esac
9808 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8414a40c 9809
80ed523f
VZ
9810 if test "x$supports_anon_versioning" = xyes; then
9811 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9813 echo "local: *; };" >> $output_objdir/$libname.ver~
9814 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9815 fi
8414a40c 9816
80ed523f
VZ
9817 case $cc_basename in
9818 xlf* | bgf* | bgxlf* | mpixlf*)
9819 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9820 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9821 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9822 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9823 if test "x$supports_anon_versioning" = xyes; then
9824 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9825 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9826 echo "local: *; };" >> $output_objdir/$libname.ver~
9827 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9828 fi
9829 ;;
9830 esac
9831 else
9832 ld_shlibs=no
9833 fi
9834 ;;
8414a40c 9835
80ed523f
VZ
9836 netbsd*)
9837 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9838 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9839 wlarc=
9840 else
9841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9842 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9843 fi
9844 ;;
8414a40c 9845
80ed523f
VZ
9846 solaris*)
9847 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9848 ld_shlibs=no
9849 cat <<_LT_EOF 1>&2
8414a40c 9850
80ed523f
VZ
9851*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9852*** create shared libraries on Solaris systems. Therefore, libtool
9853*** is disabling shared libraries support. We urge you to upgrade GNU
9854*** binutils to release 2.9.1 or newer. Another option is to modify
9855*** your PATH or compiler configuration so that the native linker is
9856*** used, and then restart.
8414a40c 9857
80ed523f
VZ
9858_LT_EOF
9859 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9860 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9861 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9862 else
9863 ld_shlibs=no
9864 fi
9865 ;;
8414a40c 9866
80ed523f
VZ
9867 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9868 case `$LD -v 2>&1` in
9869 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9870 ld_shlibs=no
9871 cat <<_LT_EOF 1>&2
8414a40c 9872
80ed523f
VZ
9873*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9874*** reliably create shared libraries on SCO systems. Therefore, libtool
9875*** is disabling shared libraries support. We urge you to upgrade GNU
9876*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9877*** your PATH or compiler configuration so that the native linker is
9878*** used, and then restart.
8414a40c 9879
80ed523f
VZ
9880_LT_EOF
9881 ;;
9882 *)
9883 # For security reasons, it is highly recommended that you always
9884 # use absolute paths for naming shared libraries, and exclude the
9885 # DT_RUNPATH tag from executables and libraries. But doing so
9886 # requires that you compile everything twice, which is a pain.
9887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9888 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9889 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9890 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9891 else
9892 ld_shlibs=no
9893 fi
9894 ;;
9895 esac
9896 ;;
8414a40c 9897
80ed523f
VZ
9898 sunos4*)
9899 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9900 wlarc=
9901 hardcode_direct=yes
9902 hardcode_shlibpath_var=no
9903 ;;
8414a40c 9904
80ed523f
VZ
9905 *)
9906 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9907 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9908 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9909 else
9910 ld_shlibs=no
9911 fi
9912 ;;
9913 esac
8414a40c 9914
80ed523f
VZ
9915 if test "$ld_shlibs" = no; then
9916 runpath_var=
9917 hardcode_libdir_flag_spec=
9918 export_dynamic_flag_spec=
9919 whole_archive_flag_spec=
9920 fi
9921 else
9922 # PORTME fill in a description of your system's linker (not GNU ld)
9923 case $host_os in
9924 aix3*)
9925 allow_undefined_flag=unsupported
9926 always_export_symbols=yes
9927 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'
9928 # Note: this linker hardcodes the directories in LIBPATH if there
9929 # are no directories specified by -L.
9930 hardcode_minus_L=yes
9931 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9932 # Neither direct hardcoding nor static linking is supported with a
9933 # broken collect2.
9934 hardcode_direct=unsupported
9935 fi
9936 ;;
8414a40c 9937
80ed523f
VZ
9938 aix[4-9]*)
9939 if test "$host_cpu" = ia64; then
9940 # On IA64, the linker does run time linking by default, so we don't
9941 # have to do anything special.
9942 aix_use_runtimelinking=no
9943 exp_sym_flag='-Bexport'
9944 no_entry_flag=""
9945 else
9946 # If we're using GNU nm, then we don't want the "-C" option.
9947 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9948 # Also, AIX nm treats weak defined symbols like other global
9949 # defined symbols, whereas GNU nm marks them as "W".
9950 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9951 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9952 else
9953 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'
9954 fi
9955 aix_use_runtimelinking=no
8414a40c 9956
80ed523f
VZ
9957 # Test if we are trying to use run time linking or normal
9958 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9959 # need to do runtime linking.
9960 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9961 for ld_flag in $LDFLAGS; do
9962 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9963 aix_use_runtimelinking=yes
9964 break
9965 fi
9966 done
9967 ;;
9968 esac
8414a40c 9969
80ed523f
VZ
9970 exp_sym_flag='-bexport'
9971 no_entry_flag='-bnoentry'
9972 fi
8414a40c 9973
80ed523f
VZ
9974 # When large executables or shared objects are built, AIX ld can
9975 # have problems creating the table of contents. If linking a library
9976 # or program results in "error TOC overflow" add -mminimal-toc to
9977 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9978 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8414a40c 9979
80ed523f
VZ
9980 archive_cmds=''
9981 hardcode_direct=yes
9982 hardcode_direct_absolute=yes
9983 hardcode_libdir_separator=':'
9984 link_all_deplibs=yes
9985 file_list_spec='${wl}-f,'
8414a40c 9986
80ed523f
VZ
9987 if test "$GCC" = yes; then
9988 case $host_os in aix4.[012]|aix4.[012].*)
9989 # We only want to do this on AIX 4.2 and lower, the check
9990 # below for broken collect2 doesn't work under 4.3+
9991 collect2name=`${CC} -print-prog-name=collect2`
9992 if test -f "$collect2name" &&
9993 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9994 then
9995 # We have reworked collect2
9996 :
9997 else
9998 # We have old collect2
9999 hardcode_direct=unsupported
10000 # It fails to find uninstalled libraries when the uninstalled
10001 # path is not listed in the libpath. Setting hardcode_minus_L
10002 # to unsupported forces relinking
10003 hardcode_minus_L=yes
10004 hardcode_libdir_flag_spec='-L$libdir'
10005 hardcode_libdir_separator=
10006 fi
10007 ;;
10008 esac
10009 shared_flag='-shared'
10010 if test "$aix_use_runtimelinking" = yes; then
10011 shared_flag="$shared_flag "'${wl}-G'
10012 fi
10013 else
10014 # not using gcc
10015 if test "$host_cpu" = ia64; then
10016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10017 # chokes on -Wl,-G. The following line is correct:
10018 shared_flag='-G'
10019 else
10020 if test "$aix_use_runtimelinking" = yes; then
10021 shared_flag='${wl}-G'
10022 else
10023 shared_flag='${wl}-bM:SRE'
10024 fi
10025 fi
10026 fi
8414a40c 10027
80ed523f
VZ
10028 export_dynamic_flag_spec='${wl}-bexpall'
10029 # It seems that -bexpall does not export symbols beginning with
10030 # underscore (_), so it is better to generate a list of symbols to export.
10031 always_export_symbols=yes
10032 if test "$aix_use_runtimelinking" = yes; then
10033 # Warning - without using the other runtime loading flags (-brtl),
10034 # -berok will link without error, but may produce a broken library.
10035 allow_undefined_flag='-berok'
10036 # Determine the default libpath from the value encoded in an
10037 # empty executable.
10038 if test "${lt_cv_aix_libpath+set}" = set; then
10039 aix_libpath=$lt_cv_aix_libpath
10040else
10041 if ${lt_cv_aix_libpath_+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045/* end confdefs.h. */
8414a40c 10046
80ed523f
VZ
10047int
10048main ()
10049{
8414a40c 10050
80ed523f
VZ
10051 ;
10052 return 0;
10053}
10054_ACEOF
10055if ac_fn_c_try_link "$LINENO"; then :
8414a40c 10056
80ed523f
VZ
10057 lt_aix_libpath_sed='
10058 /Import File Strings/,/^$/ {
10059 /^0/ {
10060 s/^0 *\([^ ]*\) *$/\1/
10061 p
10062 }
10063 }'
10064 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10065 # Check for a 64-bit object if we didn't find anything.
10066 if test -z "$lt_cv_aix_libpath_"; then
10067 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10068 fi
10069fi
10070rm -f core conftest.err conftest.$ac_objext \
10071 conftest$ac_exeext conftest.$ac_ext
10072 if test -z "$lt_cv_aix_libpath_"; then
10073 lt_cv_aix_libpath_="/usr/lib:/lib"
10074 fi
8414a40c 10075
80ed523f 10076fi
8414a40c 10077
80ed523f
VZ
10078 aix_libpath=$lt_cv_aix_libpath_
10079fi
8414a40c 10080
80ed523f
VZ
10081 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10082 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10083 else
10084 if test "$host_cpu" = ia64; then
10085 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10086 allow_undefined_flag="-z nodefs"
10087 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"
10088 else
10089 # Determine the default libpath from the value encoded in an
10090 # empty executable.
10091 if test "${lt_cv_aix_libpath+set}" = set; then
10092 aix_libpath=$lt_cv_aix_libpath
10093else
10094 if ${lt_cv_aix_libpath_+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096else
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098/* end confdefs.h. */
8414a40c 10099
80ed523f
VZ
10100int
10101main ()
10102{
8414a40c 10103
80ed523f
VZ
10104 ;
10105 return 0;
10106}
10107_ACEOF
10108if ac_fn_c_try_link "$LINENO"; then :
8414a40c 10109
80ed523f
VZ
10110 lt_aix_libpath_sed='
10111 /Import File Strings/,/^$/ {
10112 /^0/ {
10113 s/^0 *\([^ ]*\) *$/\1/
10114 p
10115 }
10116 }'
10117 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10118 # Check for a 64-bit object if we didn't find anything.
10119 if test -z "$lt_cv_aix_libpath_"; then
10120 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10121 fi
10122fi
10123rm -f core conftest.err conftest.$ac_objext \
10124 conftest$ac_exeext conftest.$ac_ext
10125 if test -z "$lt_cv_aix_libpath_"; then
10126 lt_cv_aix_libpath_="/usr/lib:/lib"
10127 fi
8414a40c 10128
80ed523f 10129fi
8414a40c 10130
80ed523f
VZ
10131 aix_libpath=$lt_cv_aix_libpath_
10132fi
8414a40c 10133
80ed523f
VZ
10134 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10135 # Warning - without using the other run time loading flags,
10136 # -berok will link without error, but may produce a broken library.
10137 no_undefined_flag=' ${wl}-bernotok'
10138 allow_undefined_flag=' ${wl}-berok'
10139 if test "$with_gnu_ld" = yes; then
10140 # We only use this code for GNU lds that support --whole-archive.
10141 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10142 else
10143 # Exported symbols can be pulled into shared objects from archives
10144 whole_archive_flag_spec='$convenience'
10145 fi
10146 archive_cmds_need_lc=yes
10147 # This is similar to how AIX traditionally builds its shared libraries.
10148 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'
10149 fi
10150 fi
10151 ;;
8414a40c 10152
80ed523f
VZ
10153 amigaos*)
10154 case $host_cpu in
10155 powerpc)
10156 # see comment about AmigaOS4 .so support
10157 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10158 archive_expsym_cmds=''
10159 ;;
10160 m68k)
10161 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)'
10162 hardcode_libdir_flag_spec='-L$libdir'
10163 hardcode_minus_L=yes
10164 ;;
10165 esac
10166 ;;
8414a40c 10167
80ed523f
VZ
10168 bsdi[45]*)
10169 export_dynamic_flag_spec=-rdynamic
10170 ;;
8414a40c 10171
80ed523f
VZ
10172 cygwin* | mingw* | pw32* | cegcc*)
10173 # When not using gcc, we currently assume that we are using
10174 # Microsoft Visual C++.
10175 # hardcode_libdir_flag_spec is actually meaningless, as there is
10176 # no search path for DLLs.
10177 case $cc_basename in
10178 cl*)
10179 # Native MSVC
10180 hardcode_libdir_flag_spec=' '
10181 allow_undefined_flag=unsupported
10182 always_export_symbols=yes
10183 file_list_spec='@'
10184 # Tell ltmain to make .lib files, not .a files.
10185 libext=lib
10186 # Tell ltmain to make .dll files, not .so files.
10187 shrext_cmds=".dll"
10188 # FIXME: Setting linknames here is a bad hack.
10189 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
10190 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10191 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
10192 else
10193 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
10194 fi~
10195 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
10196 linknames='
10197 # The linker will not automatically build a static lib if we build a DLL.
10198 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
10199 enable_shared_with_static_runtimes=yes
10200 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
10201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10202 # Don't use ranlib
10203 old_postinstall_cmds='chmod 644 $oldlib'
10204 postlink_cmds='lt_outputfile="@OUTPUT@"~
10205 lt_tool_outputfile="@TOOL_OUTPUT@"~
10206 case $lt_outputfile in
10207 *.exe|*.EXE) ;;
10208 *)
10209 lt_outputfile="$lt_outputfile.exe"
10210 lt_tool_outputfile="$lt_tool_outputfile.exe"
10211 ;;
10212 esac~
10213 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
10214 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
10215 $RM "$lt_outputfile.manifest";
10216 fi'
10217 ;;
10218 *)
10219 # Assume MSVC wrapper
10220 hardcode_libdir_flag_spec=' '
10221 allow_undefined_flag=unsupported
10222 # Tell ltmain to make .lib files, not .a files.
10223 libext=lib
10224 # Tell ltmain to make .dll files, not .so files.
10225 shrext_cmds=".dll"
10226 # FIXME: Setting linknames here is a bad hack.
10227 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10228 # The linker will automatically build a .lib file if we build a DLL.
10229 old_archive_from_new_cmds='true'
10230 # FIXME: Should let the user specify the lib program.
10231 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10232 enable_shared_with_static_runtimes=yes
10233 ;;
10234 esac
10235 ;;
8414a40c 10236
80ed523f 10237 darwin* | rhapsody*)
8414a40c
VZ
10238
10239
80ed523f
VZ
10240 archive_cmds_need_lc=no
10241 hardcode_direct=no
10242 hardcode_automatic=yes
10243 hardcode_shlibpath_var=unsupported
10244 if test "$lt_cv_ld_force_load" = "yes"; then
10245 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8414a40c 10246
80ed523f
VZ
10247 else
10248 whole_archive_flag_spec=''
10249 fi
10250 link_all_deplibs=yes
10251 allow_undefined_flag="$_lt_dar_allow_undefined"
10252 case $cc_basename in
10253 ifort*) _lt_dar_can_shared=yes ;;
10254 *) _lt_dar_can_shared=$GCC ;;
10255 esac
10256 if test "$_lt_dar_can_shared" = "yes"; then
10257 output_verbose_link_cmd=func_echo_all
10258 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10259 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10260 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10261 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8414a40c 10262
80ed523f
VZ
10263 else
10264 ld_shlibs=no
10265 fi
8414a40c 10266
80ed523f 10267 ;;
8414a40c 10268
80ed523f
VZ
10269 dgux*)
10270 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10271 hardcode_libdir_flag_spec='-L$libdir'
10272 hardcode_shlibpath_var=no
10273 ;;
8414a40c 10274
80ed523f
VZ
10275 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10276 # support. Future versions do this automatically, but an explicit c++rt0.o
10277 # does not break anything, and helps significantly (at the cost of a little
10278 # extra space).
10279 freebsd2.2*)
10280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10281 hardcode_libdir_flag_spec='-R$libdir'
10282 hardcode_direct=yes
10283 hardcode_shlibpath_var=no
10284 ;;
8414a40c 10285
80ed523f
VZ
10286 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10287 freebsd2.*)
10288 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10289 hardcode_direct=yes
10290 hardcode_minus_L=yes
10291 hardcode_shlibpath_var=no
10292 ;;
8414a40c 10293
80ed523f
VZ
10294 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10295 freebsd* | dragonfly*)
10296 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10297 hardcode_libdir_flag_spec='-R$libdir'
10298 hardcode_direct=yes
10299 hardcode_shlibpath_var=no
10300 ;;
8414a40c 10301
80ed523f
VZ
10302 hpux9*)
10303 if test "$GCC" = yes; then
10304 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10305 else
10306 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'
10307 fi
10308 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10309 hardcode_libdir_separator=:
10310 hardcode_direct=yes
8414a40c 10311
80ed523f
VZ
10312 # hardcode_minus_L: Not really in the search PATH,
10313 # but as the default location of the library.
10314 hardcode_minus_L=yes
10315 export_dynamic_flag_spec='${wl}-E'
10316 ;;
8414a40c 10317
80ed523f
VZ
10318 hpux10*)
10319 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10320 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10321 else
10322 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10323 fi
10324 if test "$with_gnu_ld" = no; then
10325 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10326 hardcode_libdir_separator=:
10327 hardcode_direct=yes
10328 hardcode_direct_absolute=yes
10329 export_dynamic_flag_spec='${wl}-E'
10330 # hardcode_minus_L: Not really in the search PATH,
10331 # but as the default location of the library.
10332 hardcode_minus_L=yes
10333 fi
10334 ;;
8414a40c 10335
80ed523f
VZ
10336 hpux11*)
10337 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10338 case $host_cpu in
10339 hppa*64*)
10340 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10341 ;;
10342 ia64*)
10343 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10344 ;;
10345 *)
10346 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10347 ;;
10348 esac
10349 else
10350 case $host_cpu in
10351 hppa*64*)
10352 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10353 ;;
10354 ia64*)
10355 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10356 ;;
10357 *)
8414a40c 10358
80ed523f
VZ
10359 # Older versions of the 11.00 compiler do not understand -b yet
10360 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10362$as_echo_n "checking if $CC understands -b... " >&6; }
10363if ${lt_cv_prog_compiler__b+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365else
10366 lt_cv_prog_compiler__b=no
10367 save_LDFLAGS="$LDFLAGS"
10368 LDFLAGS="$LDFLAGS -b"
10369 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10370 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10371 # The linker can only warn and ignore the option if not recognized
10372 # So say no if there are warnings
10373 if test -s conftest.err; then
10374 # Append any errors to the config.log.
10375 cat conftest.err 1>&5
10376 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10377 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10378 if diff conftest.exp conftest.er2 >/dev/null; then
10379 lt_cv_prog_compiler__b=yes
10380 fi
10381 else
10382 lt_cv_prog_compiler__b=yes
10383 fi
10384 fi
10385 $RM -r conftest*
10386 LDFLAGS="$save_LDFLAGS"
8414a40c 10387
80ed523f
VZ
10388fi
10389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10390$as_echo "$lt_cv_prog_compiler__b" >&6; }
8414a40c 10391
80ed523f
VZ
10392if test x"$lt_cv_prog_compiler__b" = xyes; then
10393 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10394else
10395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396fi
8414a40c 10397
80ed523f
VZ
10398 ;;
10399 esac
10400 fi
10401 if test "$with_gnu_ld" = no; then
10402 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10403 hardcode_libdir_separator=:
8414a40c 10404
80ed523f
VZ
10405 case $host_cpu in
10406 hppa*64*|ia64*)
10407 hardcode_direct=no
10408 hardcode_shlibpath_var=no
10409 ;;
10410 *)
10411 hardcode_direct=yes
10412 hardcode_direct_absolute=yes
10413 export_dynamic_flag_spec='${wl}-E'
8414a40c 10414
80ed523f
VZ
10415 # hardcode_minus_L: Not really in the search PATH,
10416 # but as the default location of the library.
10417 hardcode_minus_L=yes
10418 ;;
10419 esac
10420 fi
10421 ;;
8414a40c 10422
80ed523f
VZ
10423 irix5* | irix6* | nonstopux*)
10424 if test "$GCC" = yes; then
10425 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10426 # Try to use the -exported_symbol ld option, if it does not
10427 # work, assume that -exports_file does not work either and
10428 # implicitly export all symbols.
10429 # This should be the same for all languages, so no per-tag cache variable.
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
10431$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
10432if ${lt_cv_irix_exported_symbol+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434else
10435 save_LDFLAGS="$LDFLAGS"
10436 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10438/* end confdefs.h. */
10439int foo (void) { return 0; }
10440_ACEOF
10441if ac_fn_c_try_link "$LINENO"; then :
10442 lt_cv_irix_exported_symbol=yes
10443else
10444 lt_cv_irix_exported_symbol=no
10445fi
10446rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LDFLAGS="$save_LDFLAGS"
10449fi
10450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
10451$as_echo "$lt_cv_irix_exported_symbol" >&6; }
10452 if test "$lt_cv_irix_exported_symbol" = yes; then
10453 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10454 fi
10455 else
10456 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10457 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10458 fi
10459 archive_cmds_need_lc='no'
10460 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10461 hardcode_libdir_separator=:
10462 inherit_rpath=yes
10463 link_all_deplibs=yes
10464 ;;
8414a40c 10465
80ed523f
VZ
10466 netbsd*)
10467 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10468 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10469 else
10470 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10471 fi
10472 hardcode_libdir_flag_spec='-R$libdir'
10473 hardcode_direct=yes
10474 hardcode_shlibpath_var=no
10475 ;;
8414a40c 10476
80ed523f
VZ
10477 newsos6)
10478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10479 hardcode_direct=yes
10480 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10481 hardcode_libdir_separator=:
10482 hardcode_shlibpath_var=no
10483 ;;
8414a40c 10484
80ed523f
VZ
10485 *nto* | *qnx*)
10486 ;;
8414a40c 10487
80ed523f
VZ
10488 openbsd*)
10489 if test -f /usr/libexec/ld.so; then
10490 hardcode_direct=yes
10491 hardcode_shlibpath_var=no
10492 hardcode_direct_absolute=yes
10493 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10494 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10495 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10496 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10497 export_dynamic_flag_spec='${wl}-E'
10498 else
10499 case $host_os in
10500 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10501 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10502 hardcode_libdir_flag_spec='-R$libdir'
10503 ;;
10504 *)
10505 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10506 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10507 ;;
10508 esac
10509 fi
10510 else
10511 ld_shlibs=no
10512 fi
10513 ;;
8414a40c 10514
80ed523f
VZ
10515 os2*)
10516 hardcode_libdir_flag_spec='-L$libdir'
10517 hardcode_minus_L=yes
10518 allow_undefined_flag=unsupported
10519 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'
10520 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10521 ;;
8414a40c 10522
80ed523f
VZ
10523 osf3*)
10524 if test "$GCC" = yes; then
10525 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10526 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10527 else
10528 allow_undefined_flag=' -expect_unresolved \*'
10529 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10530 fi
10531 archive_cmds_need_lc='no'
10532 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10533 hardcode_libdir_separator=:
10534 ;;
8414a40c 10535
80ed523f
VZ
10536 osf4* | osf5*) # as osf3* with the addition of -msym flag
10537 if test "$GCC" = yes; then
10538 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10539 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10540 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10541 else
10542 allow_undefined_flag=' -expect_unresolved \*'
10543 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10544 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10545 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
8414a40c 10546
80ed523f
VZ
10547 # Both c and cxx compiler support -rpath directly
10548 hardcode_libdir_flag_spec='-rpath $libdir'
10549 fi
10550 archive_cmds_need_lc='no'
10551 hardcode_libdir_separator=:
10552 ;;
8414a40c 10553
80ed523f
VZ
10554 solaris*)
10555 no_undefined_flag=' -z defs'
10556 if test "$GCC" = yes; then
10557 wlarc='${wl}'
10558 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10559 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10560 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10561 else
10562 case `$CC -V 2>&1` in
10563 *"Compilers 5.0"*)
10564 wlarc=''
10565 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10566 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10567 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10568 ;;
10569 *)
10570 wlarc='${wl}'
10571 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10572 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10573 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10574 ;;
10575 esac
10576 fi
10577 hardcode_libdir_flag_spec='-R$libdir'
10578 hardcode_shlibpath_var=no
10579 case $host_os in
10580 solaris2.[0-5] | solaris2.[0-5].*) ;;
10581 *)
10582 # The compiler driver will combine and reorder linker options,
10583 # but understands `-z linker_flag'. GCC discards it without `$wl',
10584 # but is careful enough not to reorder.
10585 # Supported since Solaris 2.6 (maybe 2.5.1?)
10586 if test "$GCC" = yes; then
10587 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10588 else
10589 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10590 fi
10591 ;;
10592 esac
10593 link_all_deplibs=yes
10594 ;;
8414a40c 10595
80ed523f
VZ
10596 sunos4*)
10597 if test "x$host_vendor" = xsequent; then
10598 # Use $CC to link under sequent, because it throws in some extra .o
10599 # files that make .init and .fini sections work.
10600 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10601 else
10602 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10603 fi
10604 hardcode_libdir_flag_spec='-L$libdir'
10605 hardcode_direct=yes
10606 hardcode_minus_L=yes
10607 hardcode_shlibpath_var=no
10608 ;;
8414a40c 10609
80ed523f
VZ
10610 sysv4)
10611 case $host_vendor in
10612 sni)
10613 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 hardcode_direct=yes # is this really true???
10615 ;;
10616 siemens)
10617 ## LD is ld it makes a PLAMLIB
10618 ## CC just makes a GrossModule.
10619 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10620 reload_cmds='$CC -r -o $output$reload_objs'
10621 hardcode_direct=no
10622 ;;
10623 motorola)
10624 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10625 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10626 ;;
10627 esac
10628 runpath_var='LD_RUN_PATH'
10629 hardcode_shlibpath_var=no
10630 ;;
8414a40c 10631
80ed523f
VZ
10632 sysv4.3*)
10633 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10634 hardcode_shlibpath_var=no
10635 export_dynamic_flag_spec='-Bexport'
10636 ;;
8414a40c 10637
80ed523f
VZ
10638 sysv4*MP*)
10639 if test -d /usr/nec; then
10640 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10641 hardcode_shlibpath_var=no
10642 runpath_var=LD_RUN_PATH
10643 hardcode_runpath_var=yes
10644 ld_shlibs=yes
10645 fi
10646 ;;
8414a40c 10647
80ed523f
VZ
10648 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10649 no_undefined_flag='${wl}-z,text'
10650 archive_cmds_need_lc=no
10651 hardcode_shlibpath_var=no
10652 runpath_var='LD_RUN_PATH'
8414a40c 10653
80ed523f
VZ
10654 if test "$GCC" = yes; then
10655 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10656 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10657 else
10658 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10659 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10660 fi
10661 ;;
8414a40c 10662
80ed523f
VZ
10663 sysv5* | sco3.2v5* | sco5v6*)
10664 # Note: We can NOT use -z defs as we might desire, because we do not
10665 # link with -lc, and that would cause any symbols used from libc to
10666 # always be unresolved, which means just about no library would
10667 # ever link correctly. If we're not using GNU ld we use -z text
10668 # though, which does catch some bad symbols but isn't as heavy-handed
10669 # as -z defs.
10670 no_undefined_flag='${wl}-z,text'
10671 allow_undefined_flag='${wl}-z,nodefs'
10672 archive_cmds_need_lc=no
10673 hardcode_shlibpath_var=no
10674 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10675 hardcode_libdir_separator=':'
10676 link_all_deplibs=yes
10677 export_dynamic_flag_spec='${wl}-Bexport'
10678 runpath_var='LD_RUN_PATH'
8414a40c 10679
80ed523f
VZ
10680 if test "$GCC" = yes; then
10681 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10682 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10683 else
10684 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10685 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10686 fi
10687 ;;
8414a40c 10688
80ed523f
VZ
10689 uts4*)
10690 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10691 hardcode_libdir_flag_spec='-L$libdir'
10692 hardcode_shlibpath_var=no
10693 ;;
8414a40c 10694
80ed523f
VZ
10695 *)
10696 ld_shlibs=no
10697 ;;
10698 esac
8414a40c 10699
80ed523f
VZ
10700 if test x$host_vendor = xsni; then
10701 case $host in
10702 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10703 export_dynamic_flag_spec='${wl}-Blargedynsym'
10704 ;;
10705 esac
10706 fi
10707 fi
8414a40c 10708
80ed523f
VZ
10709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10710$as_echo "$ld_shlibs" >&6; }
10711test "$ld_shlibs" = no && can_build_shared=no
8414a40c 10712
80ed523f 10713with_gnu_ld=$with_gnu_ld
8414a40c
VZ
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
8414a40c 10728
80ed523f
VZ
10729#
10730# Do we need to explicitly link libc?
10731#
10732case "x$archive_cmds_need_lc" in
10733x|xyes)
10734 # Assume -lc should be added
10735 archive_cmds_need_lc=yes
8414a40c 10736
80ed523f
VZ
10737 if test "$enable_shared" = yes && test "$GCC" = yes; then
10738 case $archive_cmds in
10739 *'~'*)
10740 # FIXME: we may have to deal with multi-command sequences.
10741 ;;
10742 '$CC '*)
10743 # Test whether the compiler implicitly links with -lc since on some
10744 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10745 # to ld, don't add -lc before -lgcc.
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10747$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10748if ${lt_cv_archive_cmds_need_lc+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750else
10751 $RM conftest*
10752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 10753
80ed523f
VZ
10754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10755 (eval $ac_compile) 2>&5
10756 ac_status=$?
10757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10758 test $ac_status = 0; } 2>conftest.err; then
10759 soname=conftest
10760 lib=conftest
10761 libobjs=conftest.$ac_objext
10762 deplibs=
10763 wl=$lt_prog_compiler_wl
10764 pic_flag=$lt_prog_compiler_pic
10765 compiler_flags=-v
10766 linker_flags=-v
10767 verstring=
10768 output_objdir=.
10769 libname=conftest
10770 lt_save_allow_undefined_flag=$allow_undefined_flag
10771 allow_undefined_flag=
10772 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10773 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10774 ac_status=$?
10775 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10776 test $ac_status = 0; }
10777 then
10778 lt_cv_archive_cmds_need_lc=no
10779 else
10780 lt_cv_archive_cmds_need_lc=yes
10781 fi
10782 allow_undefined_flag=$lt_save_allow_undefined_flag
10783 else
10784 cat conftest.err 1>&5
10785 fi
10786 $RM conftest*
8414a40c 10787
80ed523f
VZ
10788fi
10789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10790$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10791 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
8414a40c
VZ
10792 ;;
10793 esac
8414a40c
VZ
10794 fi
10795 ;;
80ed523f 10796esac
8414a40c 10797
8414a40c 10798
8414a40c 10799
8414a40c 10800
8414a40c 10801
8414a40c 10802
8414a40c 10803
8414a40c 10804
8414a40c 10805
8414a40c 10806
8414a40c 10807
8414a40c 10808
8414a40c 10809
8414a40c 10810
8414a40c 10811
8414a40c 10812
8414a40c 10813
8414a40c 10814
8414a40c 10815
8414a40c 10816
8414a40c 10817
8414a40c 10818
8414a40c 10819
8414a40c 10820
8414a40c 10821
8414a40c 10822
8414a40c 10823
8414a40c 10824
8414a40c 10825
8414a40c 10826
8414a40c 10827
8414a40c 10828
8414a40c 10829
8414a40c 10830
8414a40c 10831
8414a40c 10832
8414a40c 10833
8414a40c
VZ
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851
10852
10853
10854
10855
10856
10857
10858
10859
10860
10861
10862
10863
10864
10865
10866
10867
10868
10869
10870
10871
10872
10873
10874
10875
10876
10877
10878
10879
10880
10881
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
8414a40c 10921
8414a40c 10922
8414a40c
VZ
10923
10924
10925
10926
10927
10928
8414a40c 10929
8414a40c 10930
8414a40c 10931
8414a40c 10932
8414a40c 10933
8414a40c 10934
31cb0113 10935
8414a40c 10936
8414a40c 10937
8414a40c 10938
8414a40c 10939
8414a40c 10940
8414a40c 10941
8414a40c 10942
8414a40c 10943
8414a40c 10944
8414a40c 10945
31cb0113 10946
8414a40c 10947
8414a40c 10948
80ed523f
VZ
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10950$as_echo_n "checking dynamic linker characteristics... " >&6; }
31cb0113 10951
80ed523f
VZ
10952if test "$GCC" = yes; then
10953 case $host_os in
10954 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10955 *) lt_awk_arg="/^libraries:/" ;;
10956 esac
10957 case $host_os in
10958 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10959 *) lt_sed_strip_eq="s,=/,/,g" ;;
10960 esac
10961 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10962 case $lt_search_path_spec in
10963 *\;*)
10964 # if the path contains ";" then we assume it to be the separator
10965 # otherwise default to the standard path separator (i.e. ":") - it is
10966 # assumed that no part of a normal pathname contains ";" but that should
10967 # okay in the real world where ";" in dirpaths is itself problematic.
10968 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10969 ;;
10970 *)
10971 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10972 ;;
10973 esac
10974 # Ok, now we have the path, separated by spaces, we can step through it
10975 # and add multilib dir if necessary.
10976 lt_tmp_lt_search_path_spec=
10977 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10978 for lt_sys_path in $lt_search_path_spec; do
10979 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10980 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10981 else
10982 test -d "$lt_sys_path" && \
10983 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10984 fi
10985 done
10986 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10987BEGIN {RS=" "; FS="/|\n";} {
10988 lt_foo="";
10989 lt_count=0;
10990 for (lt_i = NF; lt_i > 0; lt_i--) {
10991 if ($lt_i != "" && $lt_i != ".") {
10992 if ($lt_i == "..") {
10993 lt_count++;
10994 } else {
10995 if (lt_count == 0) {
10996 lt_foo="/" $lt_i lt_foo;
10997 } else {
10998 lt_count--;
10999 }
11000 }
11001 }
11002 }
11003 if (lt_foo != "") { lt_freq[lt_foo]++; }
11004 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11005}'`
11006 # AWK program above erroneously prepends '/' to C:/dos/paths
11007 # for these hosts.
11008 case $host_os in
11009 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11010 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11011 esac
11012 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
8414a40c 11013else
80ed523f
VZ
11014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11015fi
11016library_names_spec=
11017libname_spec='lib$name'
11018soname_spec=
11019shrext_cmds=".so"
11020postinstall_cmds=
11021postuninstall_cmds=
11022finish_cmds=
11023finish_eval=
11024shlibpath_var=
11025shlibpath_overrides_runpath=unknown
11026version_type=none
11027dynamic_linker="$host_os ld.so"
11028sys_lib_dlsearch_path_spec="/lib /usr/lib"
11029need_lib_prefix=unknown
11030hardcode_into_libs=no
8414a40c 11031
80ed523f
VZ
11032# when you set need_version to no, make sure it does not cause -set_version
11033# flags to be left without arguments
11034need_version=unknown
8414a40c 11035
80ed523f
VZ
11036case $host_os in
11037aix3*)
11038 version_type=linux # correct to gnu/linux during the next big refactor
11039 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11040 shlibpath_var=LIBPATH
8414a40c 11041
80ed523f
VZ
11042 # AIX 3 has no versioning support, so we append a major version to the name.
11043 soname_spec='${libname}${release}${shared_ext}$major'
11044 ;;
8414a40c 11045
80ed523f
VZ
11046aix[4-9]*)
11047 version_type=linux # correct to gnu/linux during the next big refactor
11048 need_lib_prefix=no
11049 need_version=no
11050 hardcode_into_libs=yes
11051 if test "$host_cpu" = ia64; then
11052 # AIX 5 supports IA64
11053 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11054 shlibpath_var=LD_LIBRARY_PATH
11055 else
11056 # With GCC up to 2.95.x, collect2 would create an import file
11057 # for dependence libraries. The import file would start with
11058 # the line `#! .'. This would cause the generated library to
11059 # depend on `.', always an invalid library. This was fixed in
11060 # development snapshots of GCC prior to 3.0.
11061 case $host_os in
11062 aix4 | aix4.[01] | aix4.[01].*)
11063 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11064 echo ' yes '
11065 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11066 :
11067 else
11068 can_build_shared=no
11069 fi
11070 ;;
11071 esac
11072 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11073 # soname into executable. Probably we can add versioning support to
11074 # collect2, so additional links can be useful in future.
11075 if test "$aix_use_runtimelinking" = yes; then
11076 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11077 # instead of lib<name>.a to let people know that these are not
11078 # typical AIX shared libraries.
11079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11080 else
11081 # We preserve .a as extension for shared libraries through AIX4.2
11082 # and later when we are not doing run time linking.
11083 library_names_spec='${libname}${release}.a $libname.a'
11084 soname_spec='${libname}${release}${shared_ext}$major'
11085 fi
11086 shlibpath_var=LIBPATH
11087 fi
11088 ;;
8414a40c 11089
80ed523f
VZ
11090amigaos*)
11091 case $host_cpu in
11092 powerpc)
11093 # Since July 2007 AmigaOS4 officially supports .so libraries.
11094 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11096 ;;
11097 m68k)
11098 library_names_spec='$libname.ixlibrary $libname.a'
11099 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11100 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
11101 ;;
11102 esac
11103 ;;
8414a40c 11104
80ed523f
VZ
11105beos*)
11106 library_names_spec='${libname}${shared_ext}'
11107 dynamic_linker="$host_os ld.so"
11108 shlibpath_var=LIBRARY_PATH
11109 ;;
31cb0113 11110
80ed523f
VZ
11111bsdi[45]*)
11112 version_type=linux # correct to gnu/linux during the next big refactor
11113 need_version=no
11114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11115 soname_spec='${libname}${release}${shared_ext}$major'
11116 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11117 shlibpath_var=LD_LIBRARY_PATH
11118 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11119 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11120 # the default ld.so.conf also contains /usr/contrib/lib and
11121 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11122 # libtool to hard-code these into programs
11123 ;;
8414a40c 11124
80ed523f
VZ
11125cygwin* | mingw* | pw32* | cegcc*)
11126 version_type=windows
11127 shrext_cmds=".dll"
11128 need_version=no
11129 need_lib_prefix=no
8414a40c 11130
80ed523f
VZ
11131 case $GCC,$cc_basename in
11132 yes,*)
11133 # gcc
11134 library_names_spec='$libname.dll.a'
11135 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11136 postinstall_cmds='base_file=`basename \${file}`~
11137 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11138 dldir=$destdir/`dirname \$dlpath`~
11139 test -d \$dldir || mkdir -p \$dldir~
11140 $install_prog $dir/$dlname \$dldir/$dlname~
11141 chmod a+x \$dldir/$dlname~
11142 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11143 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11144 fi'
11145 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11146 dlpath=$dir/\$dldll~
11147 $RM \$dlpath'
11148 shlibpath_overrides_runpath=yes
8414a40c 11149
80ed523f
VZ
11150 case $host_os in
11151 cygwin*)
11152 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11153 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8414a40c 11154
80ed523f
VZ
11155 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11156 ;;
11157 mingw* | cegcc*)
11158 # MinGW DLLs use traditional 'lib' prefix
11159 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11160 ;;
11161 pw32*)
11162 # pw32 DLLs use 'pw' prefix rather than 'lib'
11163 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11164 ;;
11165 esac
11166 dynamic_linker='Win32 ld.exe'
11167 ;;
8414a40c 11168
80ed523f
VZ
11169 *,cl*)
11170 # Native MSVC
11171 libname_spec='$name'
11172 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11173 library_names_spec='${libname}.dll.lib'
8414a40c 11174
80ed523f
VZ
11175 case $build_os in
11176 mingw*)
11177 sys_lib_search_path_spec=
11178 lt_save_ifs=$IFS
11179 IFS=';'
11180 for lt_path in $LIB
11181 do
11182 IFS=$lt_save_ifs
11183 # Let DOS variable expansion print the short 8.3 style file name.
11184 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
11185 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
11186 done
11187 IFS=$lt_save_ifs
11188 # Convert to MSYS style.
11189 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
11190 ;;
11191 cygwin*)
11192 # Convert to unix form, then to dos form, then back to unix form
11193 # but this time dos style (no spaces!) so that the unix form looks
11194 # like /cygdrive/c/PROGRA~1:/cygdr...
11195 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
11196 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
11197 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11198 ;;
11199 *)
11200 sys_lib_search_path_spec="$LIB"
11201 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
11202 # It is most probably a Windows format PATH.
11203 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
11204 else
11205 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
11206 fi
11207 # FIXME: find the short name or the path components, as spaces are
11208 # common. (e.g. "Program Files" -> "PROGRA~1")
11209 ;;
11210 esac
8414a40c 11211
80ed523f
VZ
11212 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11213 postinstall_cmds='base_file=`basename \${file}`~
11214 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11215 dldir=$destdir/`dirname \$dlpath`~
11216 test -d \$dldir || mkdir -p \$dldir~
11217 $install_prog $dir/$dlname \$dldir/$dlname'
11218 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11219 dlpath=$dir/\$dldll~
11220 $RM \$dlpath'
11221 shlibpath_overrides_runpath=yes
11222 dynamic_linker='Win32 link.exe'
11223 ;;
8414a40c 11224
80ed523f
VZ
11225 *)
11226 # Assume MSVC wrapper
11227 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11228 dynamic_linker='Win32 ld.exe'
11229 ;;
11230 esac
11231 # FIXME: first we should search . and the directory the executable is in
11232 shlibpath_var=PATH
11233 ;;
8414a40c 11234
80ed523f
VZ
11235darwin* | rhapsody*)
11236 dynamic_linker="$host_os dyld"
11237 version_type=darwin
11238 need_lib_prefix=no
11239 need_version=no
11240 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11241 soname_spec='${libname}${release}${major}$shared_ext'
11242 shlibpath_overrides_runpath=yes
11243 shlibpath_var=DYLD_LIBRARY_PATH
11244 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8414a40c 11245
80ed523f
VZ
11246 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11247 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11248 ;;
8414a40c 11249
80ed523f
VZ
11250dgux*)
11251 version_type=linux # correct to gnu/linux during the next big refactor
11252 need_lib_prefix=no
11253 need_version=no
11254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11255 soname_spec='${libname}${release}${shared_ext}$major'
11256 shlibpath_var=LD_LIBRARY_PATH
11257 ;;
8414a40c 11258
80ed523f
VZ
11259freebsd* | dragonfly*)
11260 # DragonFly does not have aout. When/if they implement a new
11261 # versioning mechanism, adjust this.
11262 if test -x /usr/bin/objformat; then
11263 objformat=`/usr/bin/objformat`
8414a40c 11264 else
80ed523f
VZ
11265 case $host_os in
11266 freebsd[23].*) objformat=aout ;;
11267 *) objformat=elf ;;
11268 esac
8414a40c 11269 fi
80ed523f
VZ
11270 version_type=freebsd-$objformat
11271 case $version_type in
11272 freebsd-elf*)
11273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11274 need_version=no
11275 need_lib_prefix=no
11276 ;;
11277 freebsd-*)
11278 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11279 need_version=yes
11280 ;;
11281 esac
11282 shlibpath_var=LD_LIBRARY_PATH
11283 case $host_os in
11284 freebsd2.*)
11285 shlibpath_overrides_runpath=yes
11286 ;;
11287 freebsd3.[01]* | freebsdelf3.[01]*)
11288 shlibpath_overrides_runpath=yes
11289 hardcode_into_libs=yes
11290 ;;
11291 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11292 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11293 shlibpath_overrides_runpath=no
11294 hardcode_into_libs=yes
11295 ;;
11296 *) # from 4.6 on, and DragonFly
11297 shlibpath_overrides_runpath=yes
11298 hardcode_into_libs=yes
11299 ;;
11300 esac
11301 ;;
8414a40c 11302
80ed523f
VZ
11303gnu*)
11304 version_type=linux # correct to gnu/linux during the next big refactor
11305 need_lib_prefix=no
11306 need_version=no
11307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11308 soname_spec='${libname}${release}${shared_ext}$major'
11309 shlibpath_var=LD_LIBRARY_PATH
11310 shlibpath_overrides_runpath=no
11311 hardcode_into_libs=yes
11312 ;;
8414a40c 11313
80ed523f
VZ
11314haiku*)
11315 version_type=linux # correct to gnu/linux during the next big refactor
11316 need_lib_prefix=no
11317 need_version=no
11318 dynamic_linker="$host_os runtime_loader"
11319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11320 soname_spec='${libname}${release}${shared_ext}$major'
11321 shlibpath_var=LIBRARY_PATH
11322 shlibpath_overrides_runpath=yes
11323 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11324 hardcode_into_libs=yes
11325 ;;
8414a40c 11326
80ed523f
VZ
11327hpux9* | hpux10* | hpux11*)
11328 # Give a soname corresponding to the major version so that dld.sl refuses to
11329 # link against other versions.
11330 version_type=sunos
11331 need_lib_prefix=no
11332 need_version=no
11333 case $host_cpu in
11334 ia64*)
11335 shrext_cmds='.so'
11336 hardcode_into_libs=yes
11337 dynamic_linker="$host_os dld.so"
11338 shlibpath_var=LD_LIBRARY_PATH
11339 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11342 if test "X$HPUX_IA64_MODE" = X32; then
11343 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11344 else
11345 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11346 fi
11347 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11348 ;;
11349 hppa*64*)
11350 shrext_cmds='.sl'
11351 hardcode_into_libs=yes
11352 dynamic_linker="$host_os dld.sl"
11353 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11354 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11356 soname_spec='${libname}${release}${shared_ext}$major'
11357 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11359 ;;
11360 *)
11361 shrext_cmds='.sl'
11362 dynamic_linker="$host_os dld.sl"
11363 shlibpath_var=SHLIB_PATH
11364 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11366 soname_spec='${libname}${release}${shared_ext}$major'
11367 ;;
11368 esac
11369 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11370 postinstall_cmds='chmod 555 $lib'
11371 # or fails outright, so override atomically:
11372 install_override_mode=555
11373 ;;
8414a40c 11374
80ed523f
VZ
11375interix[3-9]*)
11376 version_type=linux # correct to gnu/linux during the next big refactor
11377 need_lib_prefix=no
11378 need_version=no
11379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11380 soname_spec='${libname}${release}${shared_ext}$major'
11381 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11382 shlibpath_var=LD_LIBRARY_PATH
11383 shlibpath_overrides_runpath=no
11384 hardcode_into_libs=yes
11385 ;;
8414a40c 11386
80ed523f
VZ
11387irix5* | irix6* | nonstopux*)
11388 case $host_os in
11389 nonstopux*) version_type=nonstopux ;;
11390 *)
11391 if test "$lt_cv_prog_gnu_ld" = yes; then
11392 version_type=linux # correct to gnu/linux during the next big refactor
11393 else
11394 version_type=irix
11395 fi ;;
11396 esac
11397 need_lib_prefix=no
11398 need_version=no
11399 soname_spec='${libname}${release}${shared_ext}$major'
11400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11401 case $host_os in
11402 irix5* | nonstopux*)
11403 libsuff= shlibsuff=
11404 ;;
11405 *)
11406 case $LD in # libtool.m4 will add one of these switches to LD
11407 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11408 libsuff= shlibsuff= libmagic=32-bit;;
11409 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11410 libsuff=32 shlibsuff=N32 libmagic=N32;;
11411 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11412 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11413 *) libsuff= shlibsuff= libmagic=never-match;;
11414 esac
11415 ;;
11416 esac
11417 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11418 shlibpath_overrides_runpath=no
11419 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11420 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11421 hardcode_into_libs=yes
11422 ;;
8414a40c 11423
80ed523f
VZ
11424# No shared lib support for Linux oldld, aout, or coff.
11425linux*oldld* | linux*aout* | linux*coff*)
11426 dynamic_linker=no
11427 ;;
8414a40c 11428
80ed523f
VZ
11429# This must be glibc/ELF.
11430linux* | k*bsd*-gnu | kopensolaris*-gnu)
11431 version_type=linux # correct to gnu/linux during the next big refactor
11432 need_lib_prefix=no
11433 need_version=no
11434 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11435 soname_spec='${libname}${release}${shared_ext}$major'
11436 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11437 shlibpath_var=LD_LIBRARY_PATH
11438 shlibpath_overrides_runpath=no
8414a40c 11439
80ed523f
VZ
11440 # Some binutils ld are patched to set DT_RUNPATH
11441 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443else
11444 lt_cv_shlibpath_overrides_runpath=no
11445 save_LDFLAGS=$LDFLAGS
11446 save_libdir=$libdir
11447 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11448 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11450/* end confdefs.h. */
8414a40c 11451
80ed523f
VZ
11452int
11453main ()
8414a40c 11454{
8414a40c 11455
80ed523f
VZ
11456 ;
11457 return 0;
8414a40c 11458}
80ed523f
VZ
11459_ACEOF
11460if ac_fn_c_try_link "$LINENO"; then :
11461 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11462 lt_cv_shlibpath_overrides_runpath=yes
8414a40c 11463fi
8414a40c 11464fi
80ed523f
VZ
11465rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LDFLAGS=$save_LDFLAGS
11468 libdir=$save_libdir
8414a40c 11469
80ed523f 11470fi
8414a40c 11471
80ed523f 11472 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8414a40c 11473
80ed523f
VZ
11474 # This implies no fast_install, which is unacceptable.
11475 # Some rework will be needed to allow for fast_install
11476 # before this can be enabled.
11477 hardcode_into_libs=yes
8414a40c 11478
80ed523f
VZ
11479 # Append ld.so.conf contents to the search path
11480 if test -f /etc/ld.so.conf; then
11481 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11482 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11483 fi
8414a40c 11484
80ed523f
VZ
11485 # We used to test for /lib/ld.so.1 and disable shared libraries on
11486 # powerpc, because MkLinux only supported shared libraries with the
11487 # GNU dynamic linker. Since this was broken with cross compilers,
11488 # most powerpc-linux boxes support dynamic linking these days and
11489 # people can always --disable-shared, the test was removed, and we
11490 # assume the GNU/Linux dynamic linker is in use.
11491 dynamic_linker='GNU/Linux ld.so'
11492 ;;
8414a40c 11493
80ed523f
VZ
11494netbsd*)
11495 version_type=sunos
11496 need_lib_prefix=no
11497 need_version=no
11498 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11500 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11501 dynamic_linker='NetBSD (a.out) ld.so'
8414a40c 11502 else
80ed523f
VZ
11503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11504 soname_spec='${libname}${release}${shared_ext}$major'
11505 dynamic_linker='NetBSD ld.elf_so'
8414a40c 11506 fi
80ed523f
VZ
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 ;;
8414a40c 11511
80ed523f
VZ
11512newsos6)
11513 version_type=linux # correct to gnu/linux during the next big refactor
11514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11515 shlibpath_var=LD_LIBRARY_PATH
11516 shlibpath_overrides_runpath=yes
11517 ;;
8414a40c 11518
80ed523f
VZ
11519*nto* | *qnx*)
11520 version_type=qnx
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 shlibpath_overrides_runpath=no
11527 hardcode_into_libs=yes
11528 dynamic_linker='ldqnx.so'
11529 ;;
8414a40c 11530
80ed523f
VZ
11531openbsd*)
11532 version_type=sunos
11533 sys_lib_dlsearch_path_spec="/usr/lib"
11534 need_lib_prefix=no
11535 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11536 case $host_os in
11537 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11538 *) need_version=no ;;
8414a40c 11539 esac
80ed523f
VZ
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11541 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11542 shlibpath_var=LD_LIBRARY_PATH
11543 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11544 case $host_os in
11545 openbsd2.[89] | openbsd2.[89].*)
11546 shlibpath_overrides_runpath=no
11547 ;;
11548 *)
11549 shlibpath_overrides_runpath=yes
11550 ;;
11551 esac
11552 else
11553 shlibpath_overrides_runpath=yes
11554 fi
11555 ;;
8414a40c 11556
80ed523f
VZ
11557os2*)
11558 libname_spec='$name'
11559 shrext_cmds=".dll"
11560 need_lib_prefix=no
11561 library_names_spec='$libname${shared_ext} $libname.a'
11562 dynamic_linker='OS/2 ld.exe'
11563 shlibpath_var=LIBPATH
11564 ;;
8414a40c 11565
80ed523f
VZ
11566osf3* | osf4* | osf5*)
11567 version_type=osf
11568 need_lib_prefix=no
11569 need_version=no
11570 soname_spec='${libname}${release}${shared_ext}$major'
11571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11572 shlibpath_var=LD_LIBRARY_PATH
11573 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11574 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11575 ;;
8414a40c 11576
80ed523f
VZ
11577rdos*)
11578 dynamic_linker=no
11579 ;;
8414a40c 11580
80ed523f
VZ
11581solaris*)
11582 version_type=linux # correct to gnu/linux during the next big refactor
11583 need_lib_prefix=no
11584 need_version=no
11585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11586 soname_spec='${libname}${release}${shared_ext}$major'
11587 shlibpath_var=LD_LIBRARY_PATH
11588 shlibpath_overrides_runpath=yes
11589 hardcode_into_libs=yes
11590 # ldd complains unless libraries are executable
11591 postinstall_cmds='chmod +x $lib'
11592 ;;
8414a40c 11593
80ed523f
VZ
11594sunos4*)
11595 version_type=sunos
11596 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11597 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11598 shlibpath_var=LD_LIBRARY_PATH
11599 shlibpath_overrides_runpath=yes
11600 if test "$with_gnu_ld" = yes; then
11601 need_lib_prefix=no
11602 fi
11603 need_version=yes
11604 ;;
8414a40c 11605
80ed523f
VZ
11606sysv4 | sysv4.3*)
11607 version_type=linux # correct to gnu/linux during the next big refactor
11608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11609 soname_spec='${libname}${release}${shared_ext}$major'
11610 shlibpath_var=LD_LIBRARY_PATH
11611 case $host_vendor in
11612 sni)
11613 shlibpath_overrides_runpath=no
11614 need_lib_prefix=no
11615 runpath_var=LD_RUN_PATH
11616 ;;
11617 siemens)
11618 need_lib_prefix=no
11619 ;;
11620 motorola)
11621 need_lib_prefix=no
11622 need_version=no
11623 shlibpath_overrides_runpath=no
11624 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11625 ;;
11626 esac
11627 ;;
8414a40c 11628
80ed523f
VZ
11629sysv4*MP*)
11630 if test -d /usr/nec ;then
11631 version_type=linux # correct to gnu/linux during the next big refactor
11632 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11633 soname_spec='$libname${shared_ext}.$major'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 fi
11636 ;;
8414a40c 11637
80ed523f
VZ
11638sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11639 version_type=freebsd-elf
11640 need_lib_prefix=no
11641 need_version=no
11642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11643 soname_spec='${libname}${release}${shared_ext}$major'
11644 shlibpath_var=LD_LIBRARY_PATH
11645 shlibpath_overrides_runpath=yes
11646 hardcode_into_libs=yes
11647 if test "$with_gnu_ld" = yes; then
11648 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11649 else
11650 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11651 case $host_os in
11652 sco3.2v5*)
11653 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11654 ;;
11655 esac
11656 fi
11657 sys_lib_dlsearch_path_spec='/usr/lib'
11658 ;;
8414a40c 11659
80ed523f
VZ
11660tpf*)
11661 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11662 version_type=linux # correct to gnu/linux during the next big refactor
11663 need_lib_prefix=no
11664 need_version=no
11665 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11666 shlibpath_var=LD_LIBRARY_PATH
11667 shlibpath_overrides_runpath=no
11668 hardcode_into_libs=yes
11669 ;;
8414a40c 11670
80ed523f
VZ
11671uts4*)
11672 version_type=linux # correct to gnu/linux during the next big refactor
11673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11674 soname_spec='${libname}${release}${shared_ext}$major'
11675 shlibpath_var=LD_LIBRARY_PATH
11676 ;;
8414a40c 11677
80ed523f
VZ
11678*)
11679 dynamic_linker=no
11680 ;;
11681esac
11682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11683$as_echo "$dynamic_linker" >&6; }
11684test "$dynamic_linker" = no && can_build_shared=no
11685
11686variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11687if test "$GCC" = yes; then
11688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11689fi
11690
11691if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11693fi
11694if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11696fi
8414a40c
VZ
11697
11698
11699
11700
11701
11702
11703
11704
8414a40c
VZ
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
8414a40c 11717
8414a40c 11718
8414a40c 11719
8414a40c 11720
8414a40c
VZ
11721
11722
11723
11724
8414a40c 11725
8414a40c
VZ
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
8414a40c
VZ
11739
11740
11741
11742
8414a40c
VZ
11743
11744
8414a40c 11745
8414a40c 11746
8414a40c 11747
31cb0113 11748
8414a40c 11749
8414a40c 11750
8414a40c 11751
8414a40c 11752
8414a40c 11753
31cb0113 11754
8414a40c 11755
8414a40c 11756
8414a40c 11757
8414a40c 11758
8414a40c 11759
31cb0113 11760
8414a40c 11761
8414a40c 11762
8414a40c 11763
8414a40c 11764
8414a40c
VZ
11765
11766
11767
11768
11769
8414a40c
VZ
11770
11771
11772
11773
11774
8414a40c
VZ
11775
11776
11777
11778
11779
11780
11781
11782
11783
8414a40c
VZ
11784
11785
8414a40c 11786
80ed523f
VZ
11787
11788
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11790$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11791hardcode_action=
11792if test -n "$hardcode_libdir_flag_spec" ||
11793 test -n "$runpath_var" ||
11794 test "X$hardcode_automatic" = "Xyes" ; then
11795
11796 # We can hardcode non-existent directories.
11797 if test "$hardcode_direct" != no &&
11798 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11799 # have to relink, otherwise we might link with an installed library
11800 # when we should be linking with a yet-to-be-installed one
11801 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11802 test "$hardcode_minus_L" != no; then
11803 # Linking always hardcodes the temporary library directory.
11804 hardcode_action=relink
11805 else
11806 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11807 hardcode_action=immediate
11808 fi
11809else
11810 # We cannot hardcode anything, or else we can only hardcode existing
11811 # directories.
11812 hardcode_action=unsupported
8414a40c 11813fi
80ed523f
VZ
11814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11815$as_echo "$hardcode_action" >&6; }
31cb0113 11816
80ed523f
VZ
11817if test "$hardcode_action" = relink ||
11818 test "$inherit_rpath" = yes; then
11819 # Fast installation is not supported
11820 enable_fast_install=no
11821elif test "$shlibpath_overrides_runpath" = yes ||
11822 test "$enable_shared" = no; then
11823 # Fast installation is not necessary
11824 enable_fast_install=needless
8414a40c 11825fi
8414a40c 11826
8414a40c 11827
8414a40c
VZ
11828
11829
8414a40c 11830
80ed523f
VZ
11831
11832 if test "x$enable_dlopen" != xyes; then
11833 enable_dlopen=unknown
11834 enable_dlopen_self=unknown
11835 enable_dlopen_self_static=unknown
11836else
11837 lt_cv_dlopen=no
11838 lt_cv_dlopen_libs=
11839
11840 case $host_os in
11841 beos*)
11842 lt_cv_dlopen="load_add_on"
11843 lt_cv_dlopen_libs=
11844 lt_cv_dlopen_self=yes
11845 ;;
11846
11847 mingw* | pw32* | cegcc*)
11848 lt_cv_dlopen="LoadLibrary"
11849 lt_cv_dlopen_libs=
11850 ;;
11851
11852 cygwin*)
11853 lt_cv_dlopen="dlopen"
11854 lt_cv_dlopen_libs=
11855 ;;
11856
11857 darwin*)
11858 # if libdl is installed we need to link against it
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11860$as_echo_n "checking for dlopen in -ldl... " >&6; }
11861if ${ac_cv_lib_dl_dlopen+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863else
8414a40c 11864 ac_check_lib_save_LIBS=$LIBS
80ed523f
VZ
11865LIBS="-ldl $LIBS"
11866cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
11867/* end confdefs.h. */
11868
80ed523f
VZ
11869/* Override any GCC internal prototype to avoid an error.
11870 Use char because int might match the return type of a GCC
11871 builtin and then its argument prototype would still apply. */
11872#ifdef __cplusplus
11873extern "C"
11874#endif
11875char dlopen ();
8414a40c
VZ
11876int
11877main ()
11878{
80ed523f 11879return dlopen ();
8414a40c
VZ
11880 ;
11881 return 0;
11882}
11883_ACEOF
80ed523f
VZ
11884if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dl_dlopen=yes
8414a40c 11886else
80ed523f 11887 ac_cv_lib_dl_dlopen=no
8414a40c 11888fi
80ed523f
VZ
11889rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
8414a40c
VZ
11891LIBS=$ac_check_lib_save_LIBS
11892fi
80ed523f
VZ
11893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897else
8414a40c 11898
80ed523f
VZ
11899 lt_cv_dlopen="dyld"
11900 lt_cv_dlopen_libs=
11901 lt_cv_dlopen_self=yes
8414a40c
VZ
11902
11903fi
11904
80ed523f 11905 ;;
8414a40c 11906
80ed523f
VZ
11907 *)
11908 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11909if test "x$ac_cv_func_shl_load" = xyes; then :
11910 lt_cv_dlopen="shl_load"
11911else
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11913$as_echo_n "checking for shl_load in -ldld... " >&6; }
11914if ${ac_cv_lib_dld_shl_load+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916else
11917 ac_check_lib_save_LIBS=$LIBS
11918LIBS="-ldld $LIBS"
11919cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920/* end confdefs.h. */
8414a40c 11921
80ed523f
VZ
11922/* Override any GCC internal prototype to avoid an error.
11923 Use char because int might match the return type of a GCC
11924 builtin and then its argument prototype would still apply. */
11925#ifdef __cplusplus
11926extern "C"
11927#endif
11928char shl_load ();
11929int
11930main ()
11931{
11932return shl_load ();
11933 ;
11934 return 0;
11935}
11936_ACEOF
11937if ac_fn_c_try_link "$LINENO"; then :
11938 ac_cv_lib_dld_shl_load=yes
11939else
11940 ac_cv_lib_dld_shl_load=no
11941fi
11942rm -f core conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11944LIBS=$ac_check_lib_save_LIBS
8414a40c 11945fi
80ed523f
VZ
11946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11947$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11948if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
8414a40c 11950else
80ed523f
VZ
11951 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11952if test "x$ac_cv_func_dlopen" = xyes; then :
11953 lt_cv_dlopen="dlopen"
11954else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956$as_echo_n "checking for dlopen in -ldl... " >&6; }
11957if ${ac_cv_lib_dl_dlopen+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959else
11960 ac_check_lib_save_LIBS=$LIBS
11961LIBS="-ldl $LIBS"
11962cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 11963/* end confdefs.h. */
80ed523f
VZ
11964
11965/* Override any GCC internal prototype to avoid an error.
11966 Use char because int might match the return type of a GCC
11967 builtin and then its argument prototype would still apply. */
11968#ifdef __cplusplus
11969extern "C"
11970#endif
11971char dlopen ();
11972int
11973main ()
11974{
11975return dlopen ();
11976 ;
11977 return 0;
11978}
8414a40c 11979_ACEOF
80ed523f
VZ
11980if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_dl_dlopen=yes
8414a40c 11982else
80ed523f 11983 ac_cv_lib_dl_dlopen=no
8414a40c 11984fi
80ed523f
VZ
11985rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987LIBS=$ac_check_lib_save_LIBS
11988fi
11989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11993else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11995$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11996if ${ac_cv_lib_svld_dlopen+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998else
11999 ac_check_lib_save_LIBS=$LIBS
12000LIBS="-lsvld $LIBS"
12001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002/* end confdefs.h. */
31cb0113 12003
80ed523f
VZ
12004/* Override any GCC internal prototype to avoid an error.
12005 Use char because int might match the return type of a GCC
12006 builtin and then its argument prototype would still apply. */
12007#ifdef __cplusplus
12008extern "C"
12009#endif
12010char dlopen ();
12011int
12012main ()
12013{
12014return dlopen ();
12015 ;
12016 return 0;
12017}
8414a40c 12018_ACEOF
80ed523f
VZ
12019if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_svld_dlopen=yes
12021else
12022 ac_cv_lib_svld_dlopen=no
12023fi
12024rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026LIBS=$ac_check_lib_save_LIBS
12027fi
12028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12029$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12030if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032else
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12034$as_echo_n "checking for dld_link in -ldld... " >&6; }
12035if ${ac_cv_lib_dld_dld_link+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037else
12038 ac_check_lib_save_LIBS=$LIBS
12039LIBS="-ldld $LIBS"
12040cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12041/* end confdefs.h. */
80ed523f
VZ
12042
12043/* Override any GCC internal prototype to avoid an error.
12044 Use char because int might match the return type of a GCC
12045 builtin and then its argument prototype would still apply. */
12046#ifdef __cplusplus
12047extern "C"
12048#endif
12049char dld_link ();
12050int
12051main ()
12052{
12053return dld_link ();
12054 ;
12055 return 0;
12056}
8414a40c 12057_ACEOF
80ed523f
VZ
12058if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dld_dld_link=yes
8414a40c 12060else
80ed523f
VZ
12061 ac_cv_lib_dld_dld_link=no
12062fi
12063rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065LIBS=$ac_check_lib_save_LIBS
12066fi
12067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12068$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12069if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12070 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12071fi
12072
8414a40c 12073
8414a40c 12074fi
31cb0113 12075
8414a40c 12076
8414a40c 12077fi
80ed523f 12078
8414a40c
VZ
12079
12080fi
80ed523f 12081
8414a40c
VZ
12082
12083fi
12084
8414a40c 12085
80ed523f 12086fi
8414a40c 12087
80ed523f
VZ
12088 ;;
12089 esac
8414a40c 12090
80ed523f
VZ
12091 if test "x$lt_cv_dlopen" != xno; then
12092 enable_dlopen=yes
12093 else
12094 enable_dlopen=no
12095 fi
8414a40c 12096
80ed523f
VZ
12097 case $lt_cv_dlopen in
12098 dlopen)
12099 save_CPPFLAGS="$CPPFLAGS"
12100 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
8414a40c 12101
80ed523f
VZ
12102 save_LDFLAGS="$LDFLAGS"
12103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
8414a40c 12104
80ed523f
VZ
12105 save_LIBS="$LIBS"
12106 LIBS="$lt_cv_dlopen_libs $LIBS"
8414a40c 12107
80ed523f
VZ
12108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12109$as_echo_n "checking whether a program can dlopen itself... " >&6; }
12110if ${lt_cv_dlopen_self+:} false; then :
12111 $as_echo_n "(cached) " >&6
8414a40c 12112else
80ed523f
VZ
12113 if test "$cross_compiling" = yes; then :
12114 lt_cv_dlopen_self=cross
8414a40c 12115else
80ed523f
VZ
12116 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12117 lt_status=$lt_dlunknown
12118 cat > conftest.$ac_ext <<_LT_EOF
12119#line $LINENO "configure"
12120#include "confdefs.h"
8414a40c 12121
80ed523f
VZ
12122#if HAVE_DLFCN_H
12123#include <dlfcn.h>
8414a40c 12124#endif
8414a40c 12125
80ed523f 12126#include <stdio.h>
8414a40c 12127
80ed523f
VZ
12128#ifdef RTLD_GLOBAL
12129# define LT_DLGLOBAL RTLD_GLOBAL
12130#else
12131# ifdef DL_GLOBAL
12132# define LT_DLGLOBAL DL_GLOBAL
12133# else
12134# define LT_DLGLOBAL 0
12135# endif
8414a40c
VZ
12136#endif
12137
80ed523f
VZ
12138/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12139 find out it does not work in some platform. */
12140#ifndef LT_DLLAZY_OR_NOW
12141# ifdef RTLD_LAZY
12142# define LT_DLLAZY_OR_NOW RTLD_LAZY
12143# else
12144# ifdef DL_LAZY
12145# define LT_DLLAZY_OR_NOW DL_LAZY
12146# else
12147# ifdef RTLD_NOW
12148# define LT_DLLAZY_OR_NOW RTLD_NOW
12149# else
12150# ifdef DL_NOW
12151# define LT_DLLAZY_OR_NOW DL_NOW
12152# else
12153# define LT_DLLAZY_OR_NOW 0
12154# endif
12155# endif
12156# endif
12157# endif
8414a40c
VZ
12158#endif
12159
80ed523f
VZ
12160/* When -fvisbility=hidden is used, assume the code has been annotated
12161 correspondingly for the symbols needed. */
12162#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12163int fnord () __attribute__((visibility("default")));
12164#endif
8414a40c 12165
80ed523f
VZ
12166int fnord () { return 42; }
12167int main ()
12168{
12169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12170 int status = $lt_dlunknown;
31cb0113 12171
80ed523f
VZ
12172 if (self)
12173 {
12174 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12175 else
12176 {
12177 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12178 else puts (dlerror ());
12179 }
12180 /* dlclose (self); */
12181 }
12182 else
12183 puts (dlerror ());
8414a40c 12184
80ed523f 12185 return status;
8414a40c 12186}
80ed523f
VZ
12187_LT_EOF
12188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12189 (eval $ac_link) 2>&5
8414a40c 12190 ac_status=$?
80ed523f
VZ
12191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12192 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12193 (./conftest; exit; ) >&5 2>/dev/null
12194 lt_status=$?
12195 case x$lt_status in
12196 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12197 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12198 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12199 esac
12200 else :
12201 # compilation failed
12202 lt_cv_dlopen_self=no
8414a40c
VZ
12203 fi
12204fi
80ed523f 12205rm -fr conftest*
8414a40c 12206
31cb0113 12207
8414a40c 12208fi
80ed523f
VZ
12209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12210$as_echo "$lt_cv_dlopen_self" >&6; }
31cb0113 12211
80ed523f
VZ
12212 if test "x$lt_cv_dlopen_self" = xyes; then
12213 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12215$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12216if ${lt_cv_dlopen_self_static+:} false; then :
12217 $as_echo_n "(cached) " >&6
8414a40c 12218else
80ed523f
VZ
12219 if test "$cross_compiling" = yes; then :
12220 lt_cv_dlopen_self_static=cross
8414a40c 12221else
80ed523f
VZ
12222 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12223 lt_status=$lt_dlunknown
12224 cat > conftest.$ac_ext <<_LT_EOF
12225#line $LINENO "configure"
12226#include "confdefs.h"
8414a40c 12227
80ed523f
VZ
12228#if HAVE_DLFCN_H
12229#include <dlfcn.h>
12230#endif
31cb0113 12231
80ed523f 12232#include <stdio.h>
31cb0113 12233
80ed523f
VZ
12234#ifdef RTLD_GLOBAL
12235# define LT_DLGLOBAL RTLD_GLOBAL
12236#else
12237# ifdef DL_GLOBAL
12238# define LT_DLGLOBAL DL_GLOBAL
12239# else
12240# define LT_DLGLOBAL 0
12241# endif
12242#endif
31cb0113 12243
80ed523f
VZ
12244/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12245 find out it does not work in some platform. */
12246#ifndef LT_DLLAZY_OR_NOW
12247# ifdef RTLD_LAZY
12248# define LT_DLLAZY_OR_NOW RTLD_LAZY
12249# else
12250# ifdef DL_LAZY
12251# define LT_DLLAZY_OR_NOW DL_LAZY
12252# else
12253# ifdef RTLD_NOW
12254# define LT_DLLAZY_OR_NOW RTLD_NOW
12255# else
12256# ifdef DL_NOW
12257# define LT_DLLAZY_OR_NOW DL_NOW
12258# else
12259# define LT_DLLAZY_OR_NOW 0
12260# endif
12261# endif
12262# endif
12263# endif
12264#endif
8414a40c 12265
80ed523f
VZ
12266/* When -fvisbility=hidden is used, assume the code has been annotated
12267 correspondingly for the symbols needed. */
12268#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12269int fnord () __attribute__((visibility("default")));
12270#endif
8414a40c 12271
80ed523f
VZ
12272int fnord () { return 42; }
12273int main ()
8414a40c 12274{
80ed523f
VZ
12275 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12276 int status = $lt_dlunknown;
12277
12278 if (self)
12279 {
12280 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12281 else
12282 {
12283 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12284 else puts (dlerror ());
12285 }
12286 /* dlclose (self); */
12287 }
12288 else
12289 puts (dlerror ());
12290
12291 return status;
8414a40c 12292}
80ed523f
VZ
12293_LT_EOF
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295 (eval $ac_link) 2>&5
8414a40c 12296 ac_status=$?
80ed523f
VZ
12297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12298 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12299 (./conftest; exit; ) >&5 2>/dev/null
12300 lt_status=$?
12301 case x$lt_status in
12302 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12303 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12304 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12305 esac
12306 else :
12307 # compilation failed
12308 lt_cv_dlopen_self_static=no
12309 fi
8414a40c 12310fi
80ed523f
VZ
12311rm -fr conftest*
12312
31cb0113 12313
8414a40c 12314fi
80ed523f
VZ
12315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12316$as_echo "$lt_cv_dlopen_self_static" >&6; }
12317 fi
8414a40c 12318
80ed523f
VZ
12319 CPPFLAGS="$save_CPPFLAGS"
12320 LDFLAGS="$save_LDFLAGS"
12321 LIBS="$save_LIBS"
12322 ;;
12323 esac
12324
12325 case $lt_cv_dlopen_self in
12326 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12327 *) enable_dlopen_self=unknown ;;
12328 esac
8414a40c 12329
80ed523f
VZ
12330 case $lt_cv_dlopen_self_static in
12331 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12332 *) enable_dlopen_self_static=unknown ;;
12333 esac
8414a40c
VZ
12334fi
12335
8414a40c 12336
31cb0113 12337
8414a40c 12338
8414a40c 12339
8414a40c 12340
8414a40c 12341
31cb0113 12342
8414a40c 12343
8414a40c 12344
8414a40c 12345
8414a40c 12346
31cb0113 12347
8414a40c 12348
8414a40c 12349
8414a40c 12350
80ed523f
VZ
12351
12352striplib=
12353old_striplib=
12354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12355$as_echo_n "checking whether stripping libraries is possible... " >&6; }
12356if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12357 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12358 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12360$as_echo "yes" >&6; }
8414a40c 12361else
80ed523f
VZ
12362# FIXME - insert some real tests, host_os isn't really good enough
12363 case $host_os in
12364 darwin*)
12365 if test -n "$STRIP" ; then
12366 striplib="$STRIP -x"
12367 old_striplib="$STRIP -S"
12368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12369$as_echo "yes" >&6; }
12370 else
12371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12372$as_echo "no" >&6; }
12373 fi
12374 ;;
12375 *)
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12377$as_echo "no" >&6; }
12378 ;;
12379 esac
12380fi
12381
12382
12383
12384
12385
12386
12387
12388
12389
12390
12391
12392
12393 # Report which library types will actually be built
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12395$as_echo_n "checking if libtool supports shared libraries... " >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12397$as_echo "$can_build_shared" >&6; }
12398
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12400$as_echo_n "checking whether to build shared libraries... " >&6; }
12401 test "$can_build_shared" = "no" && enable_shared=no
12402
12403 # On AIX, shared libraries and static libraries use the same namespace, and
12404 # are all built from PIC.
12405 case $host_os in
12406 aix3*)
12407 test "$enable_shared" = yes && enable_static=no
12408 if test -n "$RANLIB"; then
12409 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12410 postinstall_cmds='$RANLIB $lib'
12411 fi
12412 ;;
12413
12414 aix[4-9]*)
12415 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12416 test "$enable_shared" = yes && enable_static=no
12417 fi
12418 ;;
12419 esac
12420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12421$as_echo "$enable_shared" >&6; }
12422
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12424$as_echo_n "checking whether to build static libraries... " >&6; }
12425 # Make sure either enable_shared or enable_static is yes.
12426 test "$enable_shared" = yes || enable_static=yes
12427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12428$as_echo "$enable_static" >&6; }
12429
12430
12431
8414a40c 12432
8414a40c 12433fi
80ed523f
VZ
12434ac_ext=c
12435ac_cpp='$CPP $CPPFLAGS'
12436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438ac_compiler_gnu=$ac_cv_c_compiler_gnu
31cb0113 12439
80ed523f
VZ
12440CC="$lt_save_CC"
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456 ac_config_commands="$ac_config_commands libtool"
12457
12458
12459
12460
12461# Only expand once:
12462
12463
12464ac_ext=cpp
12465ac_cpp='$CXXCPP $CPPFLAGS'
12466ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469if test -z "$CXX"; then
12470 if test -n "$CCC"; then
12471 CXX=$CCC
12472 else
12473 if test -n "$ac_tool_prefix"; then
12474 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12475 do
12476 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12479$as_echo_n "checking for $ac_word... " >&6; }
12480if ${ac_cv_prog_CXX+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482else
12483 if test -n "$CXX"; then
12484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12485else
12486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487for as_dir in $PATH
12488do
12489 IFS=$as_save_IFS
12490 test -z "$as_dir" && as_dir=.
12491 for ac_exec_ext in '' $ac_executable_extensions; do
12492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12493 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
12494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12495 break 2
12496 fi
12497done
8414a40c 12498 done
80ed523f
VZ
12499IFS=$as_save_IFS
12500
12501fi
12502fi
12503CXX=$ac_cv_prog_CXX
12504if test -n "$CXX"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12506$as_echo "$CXX" >&6; }
8414a40c 12507else
80ed523f
VZ
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509$as_echo "no" >&6; }
12510fi
12511
12512
12513 test -n "$CXX" && break
12514 done
12515fi
12516if test -z "$CXX"; then
12517 ac_ct_CXX=$CXX
12518 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
12519do
12520 # Extract the first word of "$ac_prog", so it can be a program name with args.
12521set dummy $ac_prog; ac_word=$2
12522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12523$as_echo_n "checking for $ac_word... " >&6; }
12524if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526else
12527 if test -n "$ac_ct_CXX"; then
12528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12529else
12530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531for as_dir in $PATH
12532do
12533 IFS=$as_save_IFS
12534 test -z "$as_dir" && as_dir=.
12535 for ac_exec_ext in '' $ac_executable_extensions; do
12536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12537 ac_cv_prog_ac_ct_CXX="$ac_prog"
12538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12539 break 2
12540 fi
12541done
12542 done
12543IFS=$as_save_IFS
8414a40c 12544
80ed523f
VZ
12545fi
12546fi
12547ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12548if test -n "$ac_ct_CXX"; then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
12550$as_echo "$ac_ct_CXX" >&6; }
12551else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553$as_echo "no" >&6; }
8414a40c 12554fi
31cb0113 12555
80ed523f
VZ
12556
12557 test -n "$ac_ct_CXX" && break
12558done
12559
12560 if test "x$ac_ct_CXX" = x; then
12561 CXX="g++"
12562 else
12563 case $cross_compiling:$ac_tool_warned in
12564yes:)
12565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12567ac_tool_warned=yes ;;
12568esac
12569 CXX=$ac_ct_CXX
12570 fi
8414a40c 12571fi
31cb0113 12572
80ed523f
VZ
12573 fi
12574fi
12575# Provide some information about the compiler.
12576$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12577set X $ac_compile
12578ac_compiler=$2
12579for ac_option in --version -v -V -qversion; do
12580 { { ac_try="$ac_compiler $ac_option >&5"
12581case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584esac
12585eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12586$as_echo "$ac_try_echo"; } >&5
12587 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12588 ac_status=$?
12589 if test -s conftest.err; then
12590 sed '10a\
12591... rest of stderr output deleted ...
12592 10q' conftest.err >conftest.er1
12593 cat conftest.er1 >&5
12594 fi
12595 rm -f conftest.er1 conftest.err
12596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12597 test $ac_status = 0; }
12598done
12599
12600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
12601$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
12602if ${ac_cv_cxx_compiler_gnu+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12606/* end confdefs.h. */
80ed523f 12607
8414a40c
VZ
12608int
12609main ()
12610{
80ed523f
VZ
12611#ifndef __GNUC__
12612 choke me
12613#endif
8414a40c
VZ
12614
12615 ;
12616 return 0;
12617}
12618_ACEOF
80ed523f
VZ
12619if ac_fn_cxx_try_compile "$LINENO"; then :
12620 ac_compiler_gnu=yes
8414a40c 12621else
80ed523f 12622 ac_compiler_gnu=no
8414a40c 12623fi
31cb0113 12624rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80ed523f
VZ
12625ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12626
12627fi
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12629$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12630if test $ac_compiler_gnu = yes; then
12631 GXX=yes
8414a40c 12632else
80ed523f
VZ
12633 GXX=
12634fi
12635ac_test_CXXFLAGS=${CXXFLAGS+set}
12636ac_save_CXXFLAGS=$CXXFLAGS
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
12638$as_echo_n "checking whether $CXX accepts -g... " >&6; }
12639if ${ac_cv_prog_cxx_g+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641else
12642 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
12643 ac_cxx_werror_flag=yes
12644 ac_cv_prog_cxx_g=no
12645 CXXFLAGS="-g"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12647/* end confdefs.h. */
80ed523f 12648
8414a40c
VZ
12649int
12650main ()
12651{
12652
8414a40c
VZ
12653 ;
12654 return 0;
12655}
12656_ACEOF
80ed523f
VZ
12657if ac_fn_cxx_try_compile "$LINENO"; then :
12658 ac_cv_prog_cxx_g=yes
8414a40c 12659else
80ed523f
VZ
12660 CXXFLAGS=""
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12662/* end confdefs.h. */
80ed523f 12663
8414a40c
VZ
12664int
12665main ()
12666{
80ed523f 12667
8414a40c
VZ
12668 ;
12669 return 0;
12670}
12671_ACEOF
80ed523f 12672if ac_fn_cxx_try_compile "$LINENO"; then :
8414a40c 12673
8414a40c 12674else
80ed523f
VZ
12675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12676 CXXFLAGS="-g"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12678/* end confdefs.h. */
8414a40c 12679
8414a40c
VZ
12680int
12681main ()
12682{
8414a40c
VZ
12683
12684 ;
12685 return 0;
12686}
12687_ACEOF
80ed523f
VZ
12688if ac_fn_cxx_try_compile "$LINENO"; then :
12689 ac_cv_prog_cxx_g=yes
8414a40c 12690fi
31cb0113 12691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80ed523f
VZ
12692fi
12693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694fi
12695rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12697fi
12698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12699$as_echo "$ac_cv_prog_cxx_g" >&6; }
12700if test "$ac_test_CXXFLAGS" = set; then
12701 CXXFLAGS=$ac_save_CXXFLAGS
12702elif test $ac_cv_prog_cxx_g = yes; then
12703 if test "$GXX" = yes; then
12704 CXXFLAGS="-g -O2"
12705 else
12706 CXXFLAGS="-g"
12707 fi
8414a40c 12708else
80ed523f
VZ
12709 if test "$GXX" = yes; then
12710 CXXFLAGS="-O2"
12711 else
12712 CXXFLAGS=
12713 fi
12714fi
12715ac_ext=c
12716ac_cpp='$CPP $CPPFLAGS'
12717ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c 12720
80ed523f 12721depcc="$CXX" am_compiler_list=
8414a40c 12722
80ed523f
VZ
12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12724$as_echo_n "checking dependency style of $depcc... " >&6; }
12725if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12726 $as_echo_n "(cached) " >&6
8414a40c 12727else
80ed523f
VZ
12728 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12729 # We make a subdir and do the tests there. Otherwise we can end up
12730 # making bogus files that we don't know about and never remove. For
12731 # instance it was reported that on HP-UX the gcc test will end up
12732 # making a dummy file named 'D' -- because '-MD' means "put the output
12733 # in D".
12734 rm -rf conftest.dir
12735 mkdir conftest.dir
12736 # Copy depcomp to subdir because otherwise we won't find it if we're
12737 # using a relative directory.
12738 cp "$am_depcomp" conftest.dir
12739 cd conftest.dir
12740 # We will build objects and dependencies in a subdirectory because
12741 # it helps to detect inapplicable dependency modes. For instance
12742 # both Tru64's cc and ICC support -MD to output dependencies as a
12743 # side effect of compilation, but ICC will put the dependencies in
12744 # the current directory while Tru64 will put them in the object
12745 # directory.
12746 mkdir sub
8414a40c 12747
80ed523f
VZ
12748 am_cv_CXX_dependencies_compiler_type=none
12749 if test "$am_compiler_list" = ""; then
12750 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12751 fi
12752 am__universal=false
12753 case " $depcc " in #(
12754 *\ -arch\ *\ -arch\ *) am__universal=true ;;
12755 esac
31cb0113 12756
80ed523f
VZ
12757 for depmode in $am_compiler_list; do
12758 # Setup a source with many dependencies, because some compilers
12759 # like to wrap large dependency lists on column 80 (with \), and
12760 # we should not choose a depcomp mode which is confused by this.
12761 #
12762 # We need to recreate these files for each test, as the compiler may
12763 # overwrite some of them when testing with obscure command lines.
12764 # This happens at least with the AIX C compiler.
12765 : > sub/conftest.c
12766 for i in 1 2 3 4 5 6; do
12767 echo '#include "conftst'$i'.h"' >> sub/conftest.c
12768 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
12769 # Solaris 10 /bin/sh.
12770 echo '/* dummy */' > sub/conftst$i.h
12771 done
12772 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12773
12774 # We check with '-c' and '-o' for the sake of the "dashmstdout"
12775 # mode. It turns out that the SunPro C++ compiler does not properly
12776 # handle '-M -o', and we need to detect this. Also, some Intel
12777 # versions had trouble with output in subdirs.
12778 am__obj=sub/conftest.${OBJEXT-o}
12779 am__minus_obj="-o $am__obj"
12780 case $depmode in
12781 gcc)
12782 # This depmode causes a compiler race in universal mode.
12783 test "$am__universal" = false || continue
12784 ;;
12785 nosideeffect)
12786 # After this tag, mechanisms are not by side-effect, so they'll
12787 # only be used when explicitly requested.
12788 if test "x$enable_dependency_tracking" = xyes; then
12789 continue
12790 else
12791 break
12792 fi
12793 ;;
12794 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
12795 # This compiler won't grok '-c -o', but also, the minuso test has
12796 # not run yet. These depmodes are late enough in the game, and
12797 # so weak that their functioning should not be impacted.
12798 am__obj=conftest.${OBJEXT-o}
12799 am__minus_obj=
12800 ;;
12801 none) break ;;
12802 esac
12803 if depmode=$depmode \
12804 source=sub/conftest.c object=$am__obj \
12805 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12806 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12807 >/dev/null 2>conftest.err &&
12808 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12809 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12810 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12811 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12812 # icc doesn't choke on unknown options, it will just issue warnings
12813 # or remarks (even with -Werror). So we grep stderr for any message
12814 # that says an option was ignored or not supported.
12815 # When given -MP, icc 7.0 and 7.1 complain thusly:
12816 # icc: Command line warning: ignoring option '-M'; no argument required
12817 # The diagnosis changed in icc 8.0:
12818 # icc: Command line remark: option '-MP' not supported
12819 if (grep 'ignoring option' conftest.err ||
12820 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12821 am_cv_CXX_dependencies_compiler_type=$depmode
12822 break
12823 fi
12824 fi
8414a40c 12825 done
80ed523f
VZ
12826
12827 cd ..
12828 rm -rf conftest.dir
8414a40c 12829else
80ed523f
VZ
12830 am_cv_CXX_dependencies_compiler_type=none
12831fi
8414a40c 12832
8414a40c 12833fi
80ed523f
VZ
12834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
12835$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
12836CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
31cb0113 12837
80ed523f
VZ
12838 if
12839 test "x$enable_dependency_tracking" != xno \
12840 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
12841 am__fastdepCXX_TRUE=
12842 am__fastdepCXX_FALSE='#'
12843else
12844 am__fastdepCXX_TRUE='#'
12845 am__fastdepCXX_FALSE=
8414a40c 12846fi
31cb0113 12847
8414a40c 12848
31cb0113
VZ
12849
12850
12851
80ed523f
VZ
12852func_stripname_cnf ()
12853{
12854 case ${2} in
12855 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
12856 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
12857 esac
12858} # func_stripname_cnf
8414a40c 12859
80ed523f
VZ
12860 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
12861 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
12862 (test "X$CXX" != "Xg++"))) ; then
12863 ac_ext=cpp
12864ac_cpp='$CXXCPP $CPPFLAGS'
12865ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
12869$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
12870if test -z "$CXXCPP"; then
12871 if ${ac_cv_prog_CXXCPP+:} false; then :
12872 $as_echo_n "(cached) " >&6
8414a40c 12873else
80ed523f
VZ
12874 # Double quotes because CXXCPP needs to be expanded
12875 for CXXCPP in "$CXX -E" "/lib/cpp"
12876 do
12877 ac_preproc_ok=false
12878for ac_cxx_preproc_warn_flag in '' yes
12879do
12880 # Use a header file that comes with gcc, so configuring glibc
12881 # with a fresh cross-compiler works.
12882 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12883 # <limits.h> exists even on freestanding compilers.
12884 # On the NeXT, cc -E runs the code through the compiler's parser,
12885 # not just through cpp. "Syntax error" is here to catch this case.
12886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12887/* end confdefs.h. */
80ed523f
VZ
12888#ifdef __STDC__
12889# include <limits.h>
12890#else
12891# include <assert.h>
12892#endif
12893 Syntax error
8414a40c 12894_ACEOF
80ed523f 12895if ac_fn_cxx_try_cpp "$LINENO"; then :
8414a40c 12896
80ed523f
VZ
12897else
12898 # Broken: fails on valid input.
12899continue
8414a40c 12900fi
80ed523f 12901rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 12902
80ed523f
VZ
12903 # OK, works on sane cases. Now check whether nonexistent headers
12904 # can be detected and how.
12905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12906/* end confdefs.h. */
80ed523f 12907#include <ac_nonexistent.h>
8414a40c 12908_ACEOF
80ed523f
VZ
12909if ac_fn_cxx_try_cpp "$LINENO"; then :
12910 # Broken: success on invalid input.
12911continue
8414a40c 12912else
80ed523f
VZ
12913 # Passes both tests.
12914ac_preproc_ok=:
12915break
8414a40c 12916fi
80ed523f 12917rm -f conftest.err conftest.i conftest.$ac_ext
31cb0113 12918
80ed523f
VZ
12919done
12920# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12921rm -f conftest.i conftest.err conftest.$ac_ext
12922if $ac_preproc_ok; then :
12923 break
8414a40c 12924fi
8414a40c 12925
80ed523f
VZ
12926 done
12927 ac_cv_prog_CXXCPP=$CXXCPP
8414a40c
VZ
12928
12929fi
80ed523f 12930 CXXCPP=$ac_cv_prog_CXXCPP
8414a40c 12931else
80ed523f
VZ
12932 ac_cv_prog_CXXCPP=$CXXCPP
12933fi
12934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12935$as_echo "$CXXCPP" >&6; }
12936ac_preproc_ok=false
12937for ac_cxx_preproc_warn_flag in '' yes
12938do
12939 # Use a header file that comes with gcc, so configuring glibc
12940 # with a fresh cross-compiler works.
12941 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12942 # <limits.h> exists even on freestanding compilers.
12943 # On the NeXT, cc -E runs the code through the compiler's parser,
12944 # not just through cpp. "Syntax error" is here to catch this case.
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 12946/* end confdefs.h. */
80ed523f
VZ
12947#ifdef __STDC__
12948# include <limits.h>
12949#else
12950# include <assert.h>
8414a40c 12951#endif
80ed523f 12952 Syntax error
8414a40c 12953_ACEOF
80ed523f 12954if ac_fn_cxx_try_cpp "$LINENO"; then :
31cb0113 12955
80ed523f
VZ
12956else
12957 # Broken: fails on valid input.
12958continue
8414a40c 12959fi
80ed523f 12960rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 12961
80ed523f
VZ
12962 # OK, works on sane cases. Now check whether nonexistent headers
12963 # can be detected and how.
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965/* end confdefs.h. */
12966#include <ac_nonexistent.h>
8414a40c 12967_ACEOF
80ed523f
VZ
12968if ac_fn_cxx_try_cpp "$LINENO"; then :
12969 # Broken: success on invalid input.
12970continue
12971else
12972 # Passes both tests.
12973ac_preproc_ok=:
12974break
12975fi
12976rm -f conftest.err conftest.i conftest.$ac_ext
8414a40c 12977
80ed523f
VZ
12978done
12979# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12980rm -f conftest.i conftest.err conftest.$ac_ext
12981if $ac_preproc_ok; then :
8414a40c 12982
8414a40c 12983else
80ed523f
VZ
12984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12985$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12986as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12987See \`config.log' for more details" "$LINENO" 5; }
12988fi
8414a40c 12989
80ed523f
VZ
12990ac_ext=c
12991ac_cpp='$CPP $CPPFLAGS'
12992ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c 12995
80ed523f
VZ
12996else
12997 _lt_caught_CXX_error=yes
12998fi
8414a40c 12999
80ed523f
VZ
13000ac_ext=cpp
13001ac_cpp='$CXXCPP $CPPFLAGS'
13002ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8414a40c 13005
80ed523f
VZ
13006archive_cmds_need_lc_CXX=no
13007allow_undefined_flag_CXX=
13008always_export_symbols_CXX=no
13009archive_expsym_cmds_CXX=
13010compiler_needs_object_CXX=no
13011export_dynamic_flag_spec_CXX=
13012hardcode_direct_CXX=no
13013hardcode_direct_absolute_CXX=no
13014hardcode_libdir_flag_spec_CXX=
13015hardcode_libdir_separator_CXX=
13016hardcode_minus_L_CXX=no
13017hardcode_shlibpath_var_CXX=unsupported
13018hardcode_automatic_CXX=no
13019inherit_rpath_CXX=no
13020module_cmds_CXX=
13021module_expsym_cmds_CXX=
13022link_all_deplibs_CXX=unknown
13023old_archive_cmds_CXX=$old_archive_cmds
13024reload_flag_CXX=$reload_flag
13025reload_cmds_CXX=$reload_cmds
13026no_undefined_flag_CXX=
13027whole_archive_flag_spec_CXX=
13028enable_shared_with_static_runtimes_CXX=no
31cb0113 13029
80ed523f
VZ
13030# Source file extension for C++ test sources.
13031ac_ext=cpp
8414a40c 13032
80ed523f
VZ
13033# Object file extension for compiled C++ test sources.
13034objext=o
13035objext_CXX=$objext
8414a40c 13036
80ed523f
VZ
13037# No sense in running all these tests if we already determined that
13038# the CXX compiler isn't working. Some variables (like enable_shared)
13039# are currently assumed to apply to all compilers on this platform,
13040# and will be corrupted by setting them based on a non-working compiler.
13041if test "$_lt_caught_CXX_error" != yes; then
13042 # Code to be used in simple compile tests
13043 lt_simple_compile_test_code="int some_variable = 0;"
8414a40c 13044
80ed523f
VZ
13045 # Code to be used in simple link tests
13046 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
8414a40c 13047
80ed523f 13048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
8414a40c
VZ
13049
13050
8414a40c 13051
31cb0113 13052
8414a40c 13053
8414a40c 13054
80ed523f
VZ
13055# If no C compiler was specified, use CC.
13056LTCC=${LTCC-"$CC"}
8414a40c 13057
80ed523f
VZ
13058# If no C compiler flags were specified, use CFLAGS.
13059LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8414a40c 13060
80ed523f
VZ
13061# Allow CC to be a program name with arguments.
13062compiler=$CC
8414a40c
VZ
13063
13064
80ed523f
VZ
13065 # save warnings/boilerplate of simple test code
13066 ac_outfile=conftest.$ac_objext
13067echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13068eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069_lt_compiler_boilerplate=`cat conftest.err`
13070$RM conftest*
8414a40c 13071
80ed523f
VZ
13072 ac_outfile=conftest.$ac_objext
13073echo "$lt_simple_link_test_code" >conftest.$ac_ext
13074eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13075_lt_linker_boilerplate=`cat conftest.err`
13076$RM -r conftest*
8414a40c
VZ
13077
13078
80ed523f
VZ
13079 # Allow CC to be a program name with arguments.
13080 lt_save_CC=$CC
13081 lt_save_CFLAGS=$CFLAGS
13082 lt_save_LD=$LD
13083 lt_save_GCC=$GCC
13084 GCC=$GXX
13085 lt_save_with_gnu_ld=$with_gnu_ld
13086 lt_save_path_LD=$lt_cv_path_LD
13087 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13088 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13089 else
13090 $as_unset lt_cv_prog_gnu_ld
13091 fi
13092 if test -n "${lt_cv_path_LDCXX+set}"; then
13093 lt_cv_path_LD=$lt_cv_path_LDCXX
13094 else
13095 $as_unset lt_cv_path_LD
13096 fi
13097 test -z "${LDCXX+set}" || LD=$LDCXX
13098 CC=${CXX-"c++"}
13099 CFLAGS=$CXXFLAGS
13100 compiler=$CC
13101 compiler_CXX=$CC
13102 for cc_temp in $compiler""; do
13103 case $cc_temp in
13104 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13105 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13106 \-*) ;;
13107 *) break;;
13108 esac
13109done
13110cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8414a40c
VZ
13111
13112
80ed523f
VZ
13113 if test -n "$compiler"; then
13114 # We don't want -fno-exception when compiling C++ code, so set the
13115 # no_builtin_flag separately
13116 if test "$GXX" = yes; then
13117 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13118 else
13119 lt_prog_compiler_no_builtin_flag_CXX=
13120 fi
8414a40c 13121
80ed523f
VZ
13122 if test "$GXX" = yes; then
13123 # Set up default GNU C++ configuration
8414a40c
VZ
13124
13125
13126
80ed523f
VZ
13127# Check whether --with-gnu-ld was given.
13128if test "${with_gnu_ld+set}" = set; then :
13129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13130else
13131 with_gnu_ld=no
13132fi
8414a40c 13133
80ed523f
VZ
13134ac_prog=ld
13135if test "$GCC" = yes; then
13136 # Check if gcc -print-prog-name=ld gives a path.
13137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13138$as_echo_n "checking for ld used by $CC... " >&6; }
13139 case $host in
13140 *-*-mingw*)
13141 # gcc leaves a trailing carriage return which upsets mingw
13142 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13143 *)
13144 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13145 esac
13146 case $ac_prog in
13147 # Accept absolute paths.
13148 [\\/]* | ?:[\\/]*)
13149 re_direlt='/[^/][^/]*/\.\./'
13150 # Canonicalize the pathname of ld
13151 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13152 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13153 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13154 done
13155 test -z "$LD" && LD="$ac_prog"
13156 ;;
13157 "")
13158 # If it fails, then pretend we aren't using GCC.
13159 ac_prog=ld
13160 ;;
13161 *)
13162 # If it is relative, then search for the first ld in PATH.
13163 with_gnu_ld=unknown
13164 ;;
13165 esac
13166elif test "$with_gnu_ld" = yes; then
13167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13168$as_echo_n "checking for GNU ld... " >&6; }
13169else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13171$as_echo_n "checking for non-GNU ld... " >&6; }
13172fi
13173if ${lt_cv_path_LD+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175else
13176 if test -z "$LD"; then
13177 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13178 for ac_dir in $PATH; do
13179 IFS="$lt_save_ifs"
13180 test -z "$ac_dir" && ac_dir=.
13181 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13182 lt_cv_path_LD="$ac_dir/$ac_prog"
13183 # Check to see if the program is GNU ld. I'd rather use --version,
13184 # but apparently some variants of GNU ld only accept -v.
13185 # Break only if it was the GNU/non-GNU ld that we prefer.
13186 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13187 *GNU* | *'with BFD'*)
13188 test "$with_gnu_ld" != no && break
13189 ;;
13190 *)
13191 test "$with_gnu_ld" != yes && break
13192 ;;
13193 esac
13194 fi
13195 done
13196 IFS="$lt_save_ifs"
13197else
13198 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13199fi
13200fi
8414a40c 13201
80ed523f
VZ
13202LD="$lt_cv_path_LD"
13203if test -n "$LD"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13205$as_echo "$LD" >&6; }
13206else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208$as_echo "no" >&6; }
13209fi
13210test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13212$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13213if ${lt_cv_prog_gnu_ld+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215else
13216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13217case `$LD -v 2>&1 </dev/null` in
13218*GNU* | *'with BFD'*)
13219 lt_cv_prog_gnu_ld=yes
13220 ;;
13221*)
13222 lt_cv_prog_gnu_ld=no
13223 ;;
13224esac
13225fi
13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13227$as_echo "$lt_cv_prog_gnu_ld" >&6; }
13228with_gnu_ld=$lt_cv_prog_gnu_ld
8414a40c 13229
8414a40c 13230
8414a40c 13231
8414a40c 13232
8414a40c 13233
31cb0113 13234
8414a40c 13235
80ed523f
VZ
13236 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13237 # archiving commands below assume that GNU ld is being used.
13238 if test "$with_gnu_ld" = yes; then
13239 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13240 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8414a40c 13241
80ed523f
VZ
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8414a40c 13244
80ed523f
VZ
13245 # If archive_cmds runs LD, not CC, wlarc should be empty
13246 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13247 # investigate it a little bit more. (MM)
13248 wlarc='${wl}'
8414a40c 13249
80ed523f
VZ
13250 # ancient GNU ld didn't support --whole-archive et. al.
13251 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13252 $GREP 'no-whole-archive' > /dev/null; then
13253 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13254 else
13255 whole_archive_flag_spec_CXX=
13256 fi
13257 else
13258 with_gnu_ld=no
13259 wlarc=
8414a40c 13260
80ed523f
VZ
13261 # A generic and very simple default shared library creation
13262 # command for GNU C++ for the case where it uses the native
13263 # linker, instead of GNU ld. If possible, this setting should
13264 # overridden to take advantage of the native linker features on
13265 # the platform it is being used on.
13266 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13267 fi
8414a40c 13268
80ed523f
VZ
13269 # Commands to make compiler produce verbose output that lists
13270 # what "hidden" libraries, object files and flags are used when
13271 # linking a shared library.
13272 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
8414a40c 13273
80ed523f
VZ
13274 else
13275 GXX=no
13276 with_gnu_ld=no
13277 wlarc=
13278 fi
8414a40c 13279
80ed523f
VZ
13280 # PORTME: fill in a description of your system's C++ link characteristics
13281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13282$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13283 ld_shlibs_CXX=yes
13284 case $host_os in
13285 aix3*)
13286 # FIXME: insert proper C++ library support
13287 ld_shlibs_CXX=no
13288 ;;
13289 aix[4-9]*)
13290 if test "$host_cpu" = ia64; then
13291 # On IA64, the linker does run time linking by default, so we don't
13292 # have to do anything special.
13293 aix_use_runtimelinking=no
13294 exp_sym_flag='-Bexport'
13295 no_entry_flag=""
13296 else
13297 aix_use_runtimelinking=no
13298
13299 # Test if we are trying to use run time linking or normal
13300 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13301 # need to do runtime linking.
13302 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13303 for ld_flag in $LDFLAGS; do
13304 case $ld_flag in
13305 *-brtl*)
13306 aix_use_runtimelinking=yes
13307 break
13308 ;;
13309 esac
13310 done
13311 ;;
13312 esac
13313
13314 exp_sym_flag='-bexport'
13315 no_entry_flag='-bnoentry'
13316 fi
13317
13318 # When large executables or shared objects are built, AIX ld can
13319 # have problems creating the table of contents. If linking a library
13320 # or program results in "error TOC overflow" add -mminimal-toc to
13321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13323
13324 archive_cmds_CXX=''
13325 hardcode_direct_CXX=yes
13326 hardcode_direct_absolute_CXX=yes
13327 hardcode_libdir_separator_CXX=':'
13328 link_all_deplibs_CXX=yes
13329 file_list_spec_CXX='${wl}-f,'
13330
13331 if test "$GXX" = yes; then
13332 case $host_os in aix4.[012]|aix4.[012].*)
13333 # We only want to do this on AIX 4.2 and lower, the check
13334 # below for broken collect2 doesn't work under 4.3+
13335 collect2name=`${CC} -print-prog-name=collect2`
13336 if test -f "$collect2name" &&
13337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13338 then
13339 # We have reworked collect2
13340 :
13341 else
13342 # We have old collect2
13343 hardcode_direct_CXX=unsupported
13344 # It fails to find uninstalled libraries when the uninstalled
13345 # path is not listed in the libpath. Setting hardcode_minus_L
13346 # to unsupported forces relinking
13347 hardcode_minus_L_CXX=yes
13348 hardcode_libdir_flag_spec_CXX='-L$libdir'
13349 hardcode_libdir_separator_CXX=
13350 fi
13351 esac
13352 shared_flag='-shared'
13353 if test "$aix_use_runtimelinking" = yes; then
13354 shared_flag="$shared_flag "'${wl}-G'
13355 fi
13356 else
13357 # not using gcc
13358 if test "$host_cpu" = ia64; then
13359 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13360 # chokes on -Wl,-G. The following line is correct:
13361 shared_flag='-G'
13362 else
13363 if test "$aix_use_runtimelinking" = yes; then
13364 shared_flag='${wl}-G'
13365 else
13366 shared_flag='${wl}-bM:SRE'
13367 fi
13368 fi
13369 fi
13370
13371 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13372 # It seems that -bexpall does not export symbols beginning with
13373 # underscore (_), so it is better to generate a list of symbols to
13374 # export.
13375 always_export_symbols_CXX=yes
13376 if test "$aix_use_runtimelinking" = yes; then
13377 # Warning - without using the other runtime loading flags (-brtl),
13378 # -berok will link without error, but may produce a broken library.
13379 allow_undefined_flag_CXX='-berok'
13380 # Determine the default libpath from the value encoded in an empty
13381 # executable.
13382 if test "${lt_cv_aix_libpath+set}" = set; then
13383 aix_libpath=$lt_cv_aix_libpath
13384else
13385 if ${lt_cv_aix_libpath__CXX+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389/* end confdefs.h. */
8414a40c
VZ
13390
13391int
13392main ()
13393{
80ed523f 13394
8414a40c
VZ
13395 ;
13396 return 0;
13397}
13398_ACEOF
80ed523f 13399if ac_fn_cxx_try_link "$LINENO"; then :
8414a40c 13400
80ed523f
VZ
13401 lt_aix_libpath_sed='
13402 /Import File Strings/,/^$/ {
13403 /^0/ {
13404 s/^0 *\([^ ]*\) *$/\1/
13405 p
13406 }
13407 }'
13408 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13409 # Check for a 64-bit object if we didn't find anything.
13410 if test -z "$lt_cv_aix_libpath__CXX"; then
13411 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13412 fi
8414a40c 13413fi
80ed523f
VZ
13414rm -f core conftest.err conftest.$ac_objext \
13415 conftest$ac_exeext conftest.$ac_ext
13416 if test -z "$lt_cv_aix_libpath__CXX"; then
13417 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13418 fi
31cb0113 13419
8414a40c 13420fi
8414a40c 13421
80ed523f 13422 aix_libpath=$lt_cv_aix_libpath__CXX
8414a40c 13423fi
8414a40c 13424
80ed523f 13425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
8414a40c 13426
80ed523f
VZ
13427 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13428 else
13429 if test "$host_cpu" = ia64; then
13430 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13431 allow_undefined_flag_CXX="-z nodefs"
13432 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"
13433 else
13434 # Determine the default libpath from the value encoded in an
13435 # empty executable.
13436 if test "${lt_cv_aix_libpath+set}" = set; then
13437 aix_libpath=$lt_cv_aix_libpath
13438else
13439 if ${lt_cv_aix_libpath__CXX+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441else
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 13443/* end confdefs.h. */
8414a40c
VZ
13444
13445int
13446main ()
13447{
80ed523f 13448
8414a40c
VZ
13449 ;
13450 return 0;
13451}
13452_ACEOF
80ed523f 13453if ac_fn_cxx_try_link "$LINENO"; then :
8414a40c 13454
80ed523f
VZ
13455 lt_aix_libpath_sed='
13456 /Import File Strings/,/^$/ {
13457 /^0/ {
13458 s/^0 *\([^ ]*\) *$/\1/
13459 p
13460 }
13461 }'
13462 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13463 # Check for a 64-bit object if we didn't find anything.
13464 if test -z "$lt_cv_aix_libpath__CXX"; then
13465 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13466 fi
8414a40c 13467fi
80ed523f
VZ
13468rm -f core conftest.err conftest.$ac_objext \
13469 conftest$ac_exeext conftest.$ac_ext
13470 if test -z "$lt_cv_aix_libpath__CXX"; then
13471 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
13472 fi
31cb0113 13473
8414a40c 13474fi
8414a40c 13475
80ed523f 13476 aix_libpath=$lt_cv_aix_libpath__CXX
8414a40c 13477fi
8414a40c 13478
80ed523f
VZ
13479 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13480 # Warning - without using the other run time loading flags,
13481 # -berok will link without error, but may produce a broken library.
13482 no_undefined_flag_CXX=' ${wl}-bernotok'
13483 allow_undefined_flag_CXX=' ${wl}-berok'
13484 if test "$with_gnu_ld" = yes; then
13485 # We only use this code for GNU lds that support --whole-archive.
13486 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13487 else
13488 # Exported symbols can be pulled into shared objects from archives
13489 whole_archive_flag_spec_CXX='$convenience'
13490 fi
13491 archive_cmds_need_lc_CXX=yes
13492 # This is similar to how AIX traditionally builds its shared
13493 # libraries.
13494 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'
13495 fi
13496 fi
13497 ;;
8414a40c 13498
80ed523f
VZ
13499 beos*)
13500 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13501 allow_undefined_flag_CXX=unsupported
13502 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13503 # support --undefined. This deserves some investigation. FIXME
13504 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13505 else
13506 ld_shlibs_CXX=no
13507 fi
13508 ;;
8414a40c 13509
80ed523f
VZ
13510 chorus*)
13511 case $cc_basename in
13512 *)
13513 # FIXME: insert proper C++ library support
13514 ld_shlibs_CXX=no
13515 ;;
13516 esac
13517 ;;
8414a40c 13518
80ed523f
VZ
13519 cygwin* | mingw* | pw32* | cegcc*)
13520 case $GXX,$cc_basename in
13521 ,cl* | no,cl*)
13522 # Native MSVC
13523 # hardcode_libdir_flag_spec is actually meaningless, as there is
13524 # no search path for DLLs.
13525 hardcode_libdir_flag_spec_CXX=' '
13526 allow_undefined_flag_CXX=unsupported
13527 always_export_symbols_CXX=yes
13528 file_list_spec_CXX='@'
13529 # Tell ltmain to make .lib files, not .a files.
13530 libext=lib
13531 # Tell ltmain to make .dll files, not .so files.
13532 shrext_cmds=".dll"
13533 # FIXME: Setting linknames here is a bad hack.
13534 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
13535 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13536 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
13537 else
13538 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
13539 fi~
13540 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
13541 linknames='
13542 # The linker will not automatically build a static lib if we build a DLL.
13543 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
13544 enable_shared_with_static_runtimes_CXX=yes
13545 # Don't use ranlib
13546 old_postinstall_cmds_CXX='chmod 644 $oldlib'
13547 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
13548 lt_tool_outputfile="@TOOL_OUTPUT@"~
13549 case $lt_outputfile in
13550 *.exe|*.EXE) ;;
13551 *)
13552 lt_outputfile="$lt_outputfile.exe"
13553 lt_tool_outputfile="$lt_tool_outputfile.exe"
13554 ;;
13555 esac~
13556 func_to_tool_file "$lt_outputfile"~
13557 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
13558 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
13559 $RM "$lt_outputfile.manifest";
13560 fi'
13561 ;;
13562 *)
13563 # g++
13564 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13565 # as there is no search path for DLLs.
13566 hardcode_libdir_flag_spec_CXX='-L$libdir'
13567 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13568 allow_undefined_flag_CXX=unsupported
13569 always_export_symbols_CXX=no
13570 enable_shared_with_static_runtimes_CXX=yes
13571
13572 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13573 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'
13574 # If the export-symbols file already is a .def file (1st line
13575 # is EXPORTS), use it as is; otherwise, prepend...
13576 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13577 cp $export_symbols $output_objdir/$soname.def;
13578 else
13579 echo EXPORTS > $output_objdir/$soname.def;
13580 cat $export_symbols >> $output_objdir/$soname.def;
13581 fi~
13582 $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'
13583 else
13584 ld_shlibs_CXX=no
13585 fi
13586 ;;
13587 esac
13588 ;;
13589 darwin* | rhapsody*)
8414a40c 13590
8414a40c 13591
80ed523f
VZ
13592 archive_cmds_need_lc_CXX=no
13593 hardcode_direct_CXX=no
13594 hardcode_automatic_CXX=yes
13595 hardcode_shlibpath_var_CXX=unsupported
13596 if test "$lt_cv_ld_force_load" = "yes"; then
13597 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
8414a40c 13598
80ed523f
VZ
13599 else
13600 whole_archive_flag_spec_CXX=''
13601 fi
13602 link_all_deplibs_CXX=yes
13603 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13604 case $cc_basename in
13605 ifort*) _lt_dar_can_shared=yes ;;
13606 *) _lt_dar_can_shared=$GCC ;;
13607 esac
13608 if test "$_lt_dar_can_shared" = "yes"; then
13609 output_verbose_link_cmd=func_echo_all
13610 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13611 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13612 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13613 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
13614 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13615 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13616 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
13617 fi
31cb0113 13618
80ed523f
VZ
13619 else
13620 ld_shlibs_CXX=no
13621 fi
8414a40c 13622
80ed523f 13623 ;;
8414a40c 13624
80ed523f
VZ
13625 dgux*)
13626 case $cc_basename in
13627 ec++*)
13628 # FIXME: insert proper C++ library support
13629 ld_shlibs_CXX=no
13630 ;;
13631 ghcx*)
13632 # Green Hills C++ Compiler
13633 # FIXME: insert proper C++ library support
13634 ld_shlibs_CXX=no
13635 ;;
13636 *)
13637 # FIXME: insert proper C++ library support
13638 ld_shlibs_CXX=no
13639 ;;
13640 esac
13641 ;;
8414a40c 13642
80ed523f
VZ
13643 freebsd2.*)
13644 # C++ shared libraries reported to be fairly broken before
13645 # switch to ELF
13646 ld_shlibs_CXX=no
13647 ;;
8414a40c 13648
80ed523f
VZ
13649 freebsd-elf*)
13650 archive_cmds_need_lc_CXX=no
13651 ;;
8414a40c 13652
80ed523f
VZ
13653 freebsd* | dragonfly*)
13654 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13655 # conventions
13656 ld_shlibs_CXX=yes
13657 ;;
8414a40c 13658
80ed523f
VZ
13659 gnu*)
13660 ;;
8414a40c 13661
80ed523f
VZ
13662 haiku*)
13663 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664 link_all_deplibs_CXX=yes
13665 ;;
8414a40c 13666
80ed523f
VZ
13667 hpux9*)
13668 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13669 hardcode_libdir_separator_CXX=:
13670 export_dynamic_flag_spec_CXX='${wl}-E'
13671 hardcode_direct_CXX=yes
13672 hardcode_minus_L_CXX=yes # Not in the search PATH,
13673 # but as the default
13674 # location of the library.
8414a40c 13675
80ed523f
VZ
13676 case $cc_basename in
13677 CC*)
13678 # FIXME: insert proper C++ library support
13679 ld_shlibs_CXX=no
13680 ;;
13681 aCC*)
13682 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'
13683 # Commands to make compiler produce verbose output that lists
13684 # what "hidden" libraries, object files and flags are used when
13685 # linking a shared library.
13686 #
13687 # There doesn't appear to be a way to prevent this compiler from
13688 # explicitly linking system object files so we need to strip them
13689 # from the output so that they don't get included in the library
13690 # dependencies.
13691 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13692 ;;
13693 *)
13694 if test "$GXX" = yes; then
13695 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
13696 else
13697 # FIXME: insert proper C++ library support
13698 ld_shlibs_CXX=no
13699 fi
13700 ;;
13701 esac
13702 ;;
8414a40c 13703
80ed523f
VZ
13704 hpux10*|hpux11*)
13705 if test $with_gnu_ld = no; then
13706 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13707 hardcode_libdir_separator_CXX=:
8414a40c 13708
80ed523f
VZ
13709 case $host_cpu in
13710 hppa*64*|ia64*)
13711 ;;
13712 *)
13713 export_dynamic_flag_spec_CXX='${wl}-E'
13714 ;;
13715 esac
13716 fi
13717 case $host_cpu in
13718 hppa*64*|ia64*)
13719 hardcode_direct_CXX=no
13720 hardcode_shlibpath_var_CXX=no
13721 ;;
13722 *)
13723 hardcode_direct_CXX=yes
13724 hardcode_direct_absolute_CXX=yes
13725 hardcode_minus_L_CXX=yes # Not in the search PATH,
13726 # but as the default
13727 # location of the library.
13728 ;;
13729 esac
31cb0113 13730
80ed523f
VZ
13731 case $cc_basename in
13732 CC*)
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13735 ;;
13736 aCC*)
13737 case $host_cpu in
13738 hppa*64*)
13739 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13740 ;;
13741 ia64*)
13742 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13743 ;;
13744 *)
13745 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13746 ;;
13747 esac
13748 # Commands to make compiler produce verbose output that lists
13749 # what "hidden" libraries, object files and flags are used when
13750 # linking a shared library.
13751 #
13752 # There doesn't appear to be a way to prevent this compiler from
13753 # explicitly linking system object files so we need to strip them
13754 # from the output so that they don't get included in the library
13755 # dependencies.
13756 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
13757 ;;
13758 *)
13759 if test "$GXX" = yes; then
13760 if test $with_gnu_ld = no; then
13761 case $host_cpu in
13762 hppa*64*)
13763 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13764 ;;
13765 ia64*)
13766 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13767 ;;
13768 *)
13769 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13770 ;;
13771 esac
13772 fi
13773 else
13774 # FIXME: insert proper C++ library support
13775 ld_shlibs_CXX=no
13776 fi
13777 ;;
13778 esac
13779 ;;
8414a40c 13780
80ed523f
VZ
13781 interix[3-9]*)
13782 hardcode_direct_CXX=no
13783 hardcode_shlibpath_var_CXX=no
13784 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13785 export_dynamic_flag_spec_CXX='${wl}-E'
13786 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13787 # Instead, shared libraries are loaded at an image base (0x10000000 by
13788 # default) and relocated if they conflict, which is a slow very memory
13789 # consuming and fragmenting process. To avoid this, we pick a random,
13790 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13791 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13792 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'
13793 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'
13794 ;;
13795 irix5* | irix6*)
13796 case $cc_basename in
13797 CC*)
13798 # SGI C++
13799 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
8414a40c 13800
80ed523f
VZ
13801 # Archives containing C++ object files must be created using
13802 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13803 # necessary to make sure instantiated templates are included
13804 # in the archive.
13805 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13806 ;;
13807 *)
13808 if test "$GXX" = yes; then
13809 if test "$with_gnu_ld" = no; then
13810 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13811 else
13812 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
13813 fi
13814 fi
13815 link_all_deplibs_CXX=yes
13816 ;;
13817 esac
13818 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13819 hardcode_libdir_separator_CXX=:
13820 inherit_rpath_CXX=yes
13821 ;;
8414a40c 13822
80ed523f
VZ
13823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13824 case $cc_basename in
13825 KCC*)
13826 # Kuck and Associates, Inc. (KAI) C++ Compiler
8414a40c 13827
80ed523f
VZ
13828 # KCC will only create a shared library if the output file
13829 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13830 # to its proper name (with version) after linking.
13831 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'
13832 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'
13833 # Commands to make compiler produce verbose output that lists
13834 # what "hidden" libraries, object files and flags are used when
13835 # linking a shared library.
13836 #
13837 # There doesn't appear to be a way to prevent this compiler from
13838 # explicitly linking system object files so we need to strip them
13839 # from the output so that they don't get included in the library
13840 # dependencies.
13841 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
8414a40c 13842
80ed523f
VZ
13843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
8414a40c 13845
80ed523f
VZ
13846 # Archives containing C++ object files must be created using
13847 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13848 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13849 ;;
13850 icpc* | ecpc* )
13851 # Intel C++
13852 with_gnu_ld=yes
13853 # version 8.0 and above of icpc choke on multiply defined symbols
13854 # if we add $predep_objects and $postdep_objects, however 7.1 and
13855 # earlier do not add the objects themselves.
13856 case `$CC -V 2>&1` in
13857 *"Version 7."*)
13858 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13859 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'
13860 ;;
13861 *) # Version 8.0 or newer
13862 tmp_idyn=
13863 case $host_cpu in
13864 ia64*) tmp_idyn=' -i_dynamic';;
13865 esac
13866 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13867 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'
13868 ;;
13869 esac
13870 archive_cmds_need_lc_CXX=no
13871 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13872 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13873 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13874 ;;
13875 pgCC* | pgcpp*)
13876 # Portland Group C++ compiler
13877 case `$CC -V` in
13878 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13879 prelink_cmds_CXX='tpldir=Template.dir~
13880 rm -rf $tpldir~
13881 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13882 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13883 old_archive_cmds_CXX='tpldir=Template.dir~
13884 rm -rf $tpldir~
13885 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13886 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13887 $RANLIB $oldlib'
13888 archive_cmds_CXX='tpldir=Template.dir~
13889 rm -rf $tpldir~
13890 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13891 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13892 archive_expsym_cmds_CXX='tpldir=Template.dir~
13893 rm -rf $tpldir~
13894 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13895 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
13896 ;;
13897 *) # Version 6 and above use weak symbols
13898 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13899 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'
13900 ;;
13901 esac
8414a40c 13902
80ed523f
VZ
13903 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
13904 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13905 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13906 ;;
13907 cxx*)
13908 # Compaq C++
13909 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13910 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'
8414a40c 13911
80ed523f
VZ
13912 runpath_var=LD_RUN_PATH
13913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914 hardcode_libdir_separator_CXX=:
8414a40c 13915
80ed523f
VZ
13916 # Commands to make compiler produce verbose output that lists
13917 # what "hidden" libraries, object files and flags are used when
13918 # linking a shared library.
13919 #
13920 # There doesn't appear to be a way to prevent this compiler from
13921 # explicitly linking system object files so we need to strip them
13922 # from the output so that they don't get included in the library
13923 # dependencies.
13924 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
13925 ;;
13926 xl* | mpixl* | bgxl*)
13927 # IBM XL 8.0 on PPC, with GNU ld
13928 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13929 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13930 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13931 if test "x$supports_anon_versioning" = xyes; then
13932 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
13933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13934 echo "local: *; };" >> $output_objdir/$libname.ver~
13935 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13936 fi
13937 ;;
13938 *)
13939 case `$CC -V 2>&1 | sed 5q` in
13940 *Sun\ C*)
13941 # Sun C++ 5.9
13942 no_undefined_flag_CXX=' -zdefs'
13943 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13944 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
13945 hardcode_libdir_flag_spec_CXX='-R$libdir'
13946 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
13947 compiler_needs_object_CXX=yes
13948
13949 # Not sure whether something based on
13950 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
13951 # would be better.
13952 output_verbose_link_cmd='func_echo_all'
13953
13954 # Archives containing C++ object files must be created using
13955 # "CC -xar", where "CC" is the Sun C++ compiler. This is
13956 # necessary to make sure instantiated templates are included
13957 # in the archive.
13958 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13959 ;;
13960 esac
13961 ;;
13962 esac
13963 ;;
8414a40c 13964
80ed523f
VZ
13965 lynxos*)
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
13968 ;;
8414a40c 13969
80ed523f
VZ
13970 m88k*)
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
8414a40c 13974
80ed523f
VZ
13975 mvs*)
13976 case $cc_basename in
13977 cxx*)
13978 # FIXME: insert proper C++ library support
13979 ld_shlibs_CXX=no
13980 ;;
13981 *)
13982 # FIXME: insert proper C++ library support
13983 ld_shlibs_CXX=no
13984 ;;
13985 esac
13986 ;;
8414a40c 13987
80ed523f
VZ
13988 netbsd*)
13989 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13990 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
13991 wlarc=
13992 hardcode_libdir_flag_spec_CXX='-R$libdir'
13993 hardcode_direct_CXX=yes
13994 hardcode_shlibpath_var_CXX=no
13995 fi
13996 # Workaround some broken pre-1.5 toolchains
13997 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
13998 ;;
31cb0113 13999
80ed523f
VZ
14000 *nto* | *qnx*)
14001 ld_shlibs_CXX=yes
14002 ;;
8414a40c 14003
80ed523f
VZ
14004 openbsd2*)
14005 # C++ shared libraries are fairly broken
14006 ld_shlibs_CXX=no
14007 ;;
8414a40c 14008
80ed523f
VZ
14009 openbsd*)
14010 if test -f /usr/libexec/ld.so; then
14011 hardcode_direct_CXX=yes
14012 hardcode_shlibpath_var_CXX=no
14013 hardcode_direct_absolute_CXX=yes
14014 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14015 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14016 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14017 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14018 export_dynamic_flag_spec_CXX='${wl}-E'
14019 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14020 fi
14021 output_verbose_link_cmd=func_echo_all
14022 else
14023 ld_shlibs_CXX=no
14024 fi
14025 ;;
8414a40c 14026
80ed523f
VZ
14027 osf3* | osf4* | osf5*)
14028 case $cc_basename in
14029 KCC*)
14030 # Kuck and Associates, Inc. (KAI) C++ Compiler
8414a40c 14031
80ed523f
VZ
14032 # KCC will only create a shared library if the output file
14033 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14034 # to its proper name (with version) after linking.
14035 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'
8414a40c 14036
80ed523f
VZ
14037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14038 hardcode_libdir_separator_CXX=:
8414a40c 14039
80ed523f
VZ
14040 # Archives containing C++ object files must be created using
14041 # the KAI C++ compiler.
14042 case $host in
14043 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14044 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14045 esac
14046 ;;
14047 RCC*)
14048 # Rational C++ 2.4.1
14049 # FIXME: insert proper C++ library support
14050 ld_shlibs_CXX=no
14051 ;;
14052 cxx*)
14053 case $host in
14054 osf3*)
14055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14056 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14057 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14058 ;;
14059 *)
14060 allow_undefined_flag_CXX=' -expect_unresolved \*'
14061 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14062 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14063 echo "-hidden">> $lib.exp~
14064 $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~
14065 $RM $lib.exp'
14066 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14067 ;;
14068 esac
8414a40c 14069
80ed523f 14070 hardcode_libdir_separator_CXX=:
8414a40c 14071
80ed523f
VZ
14072 # Commands to make compiler produce verbose output that lists
14073 # what "hidden" libraries, object files and flags are used when
14074 # linking a shared library.
14075 #
14076 # There doesn't appear to be a way to prevent this compiler from
14077 # explicitly linking system object files so we need to strip them
14078 # from the output so that they don't get included in the library
14079 # dependencies.
14080 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14081 ;;
14082 *)
14083 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14084 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14085 case $host in
14086 osf3*)
14087 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14088 ;;
14089 *)
14090 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14091 ;;
14092 esac
8414a40c 14093
80ed523f
VZ
14094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14095 hardcode_libdir_separator_CXX=:
31cb0113 14096
80ed523f
VZ
14097 # Commands to make compiler produce verbose output that lists
14098 # what "hidden" libraries, object files and flags are used when
14099 # linking a shared library.
14100 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
31cb0113 14101
80ed523f
VZ
14102 else
14103 # FIXME: insert proper C++ library support
14104 ld_shlibs_CXX=no
14105 fi
14106 ;;
14107 esac
14108 ;;
8414a40c 14109
80ed523f
VZ
14110 psos*)
14111 # FIXME: insert proper C++ library support
14112 ld_shlibs_CXX=no
14113 ;;
31cb0113 14114
80ed523f
VZ
14115 sunos4*)
14116 case $cc_basename in
14117 CC*)
14118 # Sun C++ 4.x
14119 # FIXME: insert proper C++ library support
14120 ld_shlibs_CXX=no
14121 ;;
14122 lcc*)
14123 # Lucid
14124 # FIXME: insert proper C++ library support
14125 ld_shlibs_CXX=no
14126 ;;
14127 *)
14128 # FIXME: insert proper C++ library support
14129 ld_shlibs_CXX=no
14130 ;;
14131 esac
14132 ;;
31cb0113 14133
80ed523f
VZ
14134 solaris*)
14135 case $cc_basename in
14136 CC* | sunCC*)
14137 # Sun C++ 4.2, 5.x and Centerline C++
14138 archive_cmds_need_lc_CXX=yes
14139 no_undefined_flag_CXX=' -zdefs'
14140 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14141 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14142 $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'
14143
14144 hardcode_libdir_flag_spec_CXX='-R$libdir'
14145 hardcode_shlibpath_var_CXX=no
14146 case $host_os in
14147 solaris2.[0-5] | solaris2.[0-5].*) ;;
14148 *)
14149 # The compiler driver will combine and reorder linker options,
14150 # but understands `-z linker_flag'.
14151 # Supported since Solaris 2.6 (maybe 2.5.1?)
14152 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14153 ;;
14154 esac
14155 link_all_deplibs_CXX=yes
8414a40c 14156
80ed523f 14157 output_verbose_link_cmd='func_echo_all'
8414a40c 14158
80ed523f
VZ
14159 # Archives containing C++ object files must be created using
14160 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14161 # necessary to make sure instantiated templates are included
14162 # in the archive.
14163 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14164 ;;
14165 gcx*)
14166 # Green Hills C++ Compiler
14167 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
8414a40c 14168
80ed523f
VZ
14169 # The C++ compiler must be used to create the archive.
14170 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14171 ;;
14172 *)
14173 # GNU C++ compiler with Solaris linker
14174 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14175 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14176 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14177 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14178 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14179 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14180
14181 # Commands to make compiler produce verbose output that lists
14182 # what "hidden" libraries, object files and flags are used when
14183 # linking a shared library.
14184 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14185 else
14186 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14187 # platform.
14188 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14189 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14190 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14191
14192 # Commands to make compiler produce verbose output that lists
14193 # what "hidden" libraries, object files and flags are used when
14194 # linking a shared library.
14195 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14196 fi
14197
14198 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14199 case $host_os in
14200 solaris2.[0-5] | solaris2.[0-5].*) ;;
14201 *)
14202 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14203 ;;
14204 esac
14205 fi
14206 ;;
14207 esac
14208 ;;
31cb0113 14209
80ed523f
VZ
14210 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14211 no_undefined_flag_CXX='${wl}-z,text'
14212 archive_cmds_need_lc_CXX=no
14213 hardcode_shlibpath_var_CXX=no
14214 runpath_var='LD_RUN_PATH'
31cb0113 14215
80ed523f
VZ
14216 case $cc_basename in
14217 CC*)
14218 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14219 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14220 ;;
14221 *)
14222 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14223 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14224 ;;
14225 esac
14226 ;;
8414a40c 14227
80ed523f
VZ
14228 sysv5* | sco3.2v5* | sco5v6*)
14229 # Note: We can NOT use -z defs as we might desire, because we do not
14230 # link with -lc, and that would cause any symbols used from libc to
14231 # always be unresolved, which means just about no library would
14232 # ever link correctly. If we're not using GNU ld we use -z text
14233 # though, which does catch some bad symbols but isn't as heavy-handed
14234 # as -z defs.
14235 no_undefined_flag_CXX='${wl}-z,text'
14236 allow_undefined_flag_CXX='${wl}-z,nodefs'
14237 archive_cmds_need_lc_CXX=no
14238 hardcode_shlibpath_var_CXX=no
14239 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14240 hardcode_libdir_separator_CXX=':'
14241 link_all_deplibs_CXX=yes
14242 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14243 runpath_var='LD_RUN_PATH'
8414a40c 14244
80ed523f
VZ
14245 case $cc_basename in
14246 CC*)
14247 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14249 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14250 '"$old_archive_cmds_CXX"
14251 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14252 '"$reload_cmds_CXX"
14253 ;;
14254 *)
14255 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14256 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14257 ;;
14258 esac
14259 ;;
31cb0113 14260
80ed523f
VZ
14261 tandem*)
14262 case $cc_basename in
14263 NCC*)
14264 # NonStop-UX NCC 3.20
14265 # FIXME: insert proper C++ library support
14266 ld_shlibs_CXX=no
14267 ;;
14268 *)
14269 # FIXME: insert proper C++ library support
14270 ld_shlibs_CXX=no
14271 ;;
14272 esac
14273 ;;
31cb0113 14274
80ed523f
VZ
14275 vxworks*)
14276 # FIXME: insert proper C++ library support
14277 ld_shlibs_CXX=no
14278 ;;
8414a40c 14279
80ed523f
VZ
14280 *)
14281 # FIXME: insert proper C++ library support
14282 ld_shlibs_CXX=no
14283 ;;
14284 esac
8414a40c 14285
80ed523f
VZ
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14287$as_echo "$ld_shlibs_CXX" >&6; }
14288 test "$ld_shlibs_CXX" = no && can_build_shared=no
31cb0113 14289
80ed523f
VZ
14290 GCC_CXX="$GXX"
14291 LD_CXX="$LD"
31cb0113 14292
80ed523f
VZ
14293 ## CAVEAT EMPTOR:
14294 ## There is no encapsulation within the following macros, do not change
14295 ## the running order or otherwise move them around unless you know exactly
14296 ## what you are doing...
14297 # Dependencies to place before and after the object being linked:
14298predep_objects_CXX=
14299postdep_objects_CXX=
14300predeps_CXX=
14301postdeps_CXX=
14302compiler_lib_search_path_CXX=
8414a40c 14303
80ed523f
VZ
14304cat > conftest.$ac_ext <<_LT_EOF
14305class Foo
14306{
14307public:
14308 Foo (void) { a = 0; }
14309private:
14310 int a;
14311};
14312_LT_EOF
31cb0113 14313
31cb0113 14314
80ed523f
VZ
14315_lt_libdeps_save_CFLAGS=$CFLAGS
14316case "$CC $CFLAGS " in #(
14317*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
14318*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
14319*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
31cb0113 14320esac
8414a40c 14321
80ed523f
VZ
14322if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14323 (eval $ac_compile) 2>&5
14324 ac_status=$?
14325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14326 test $ac_status = 0; }; then
14327 # Parse the compiler output and extract the necessary
14328 # objects, libraries and library flags.
8414a40c 14329
80ed523f
VZ
14330 # Sentinel used to keep track of whether or not we are before
14331 # the conftest object file.
14332 pre_test_object_deps_done=no
8414a40c 14333
80ed523f
VZ
14334 for p in `eval "$output_verbose_link_cmd"`; do
14335 case ${prev}${p} in
8414a40c 14336
80ed523f
VZ
14337 -L* | -R* | -l*)
14338 # Some compilers place space between "-{L,R}" and the path.
14339 # Remove the space.
14340 if test $p = "-L" ||
14341 test $p = "-R"; then
14342 prev=$p
14343 continue
14344 fi
8414a40c 14345
80ed523f
VZ
14346 # Expand the sysroot to ease extracting the directories later.
14347 if test -z "$prev"; then
14348 case $p in
14349 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
14350 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
14351 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
14352 esac
14353 fi
14354 case $p in
14355 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
14356 esac
14357 if test "$pre_test_object_deps_done" = no; then
14358 case ${prev} in
14359 -L | -R)
14360 # Internal compiler library paths should come after those
14361 # provided the user. The postdeps already come after the
14362 # user supplied libs so there is no need to process them.
14363 if test -z "$compiler_lib_search_path_CXX"; then
14364 compiler_lib_search_path_CXX="${prev}${p}"
14365 else
14366 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14367 fi
14368 ;;
14369 # The "-l" case would never come before the object being
14370 # linked, so don't bother handling this case.
14371 esac
14372 else
14373 if test -z "$postdeps_CXX"; then
14374 postdeps_CXX="${prev}${p}"
14375 else
14376 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14377 fi
14378 fi
14379 prev=
14380 ;;
8414a40c 14381
80ed523f
VZ
14382 *.lto.$objext) ;; # Ignore GCC LTO objects
14383 *.$objext)
14384 # This assumes that the test object file only shows up
14385 # once in the compiler output.
14386 if test "$p" = "conftest.$objext"; then
14387 pre_test_object_deps_done=yes
14388 continue
14389 fi
8414a40c 14390
80ed523f
VZ
14391 if test "$pre_test_object_deps_done" = no; then
14392 if test -z "$predep_objects_CXX"; then
14393 predep_objects_CXX="$p"
14394 else
14395 predep_objects_CXX="$predep_objects_CXX $p"
14396 fi
14397 else
14398 if test -z "$postdep_objects_CXX"; then
14399 postdep_objects_CXX="$p"
14400 else
14401 postdep_objects_CXX="$postdep_objects_CXX $p"
14402 fi
14403 fi
14404 ;;
8414a40c 14405
80ed523f 14406 *) ;; # Ignore the rest.
8414a40c 14407
80ed523f
VZ
14408 esac
14409 done
8414a40c 14410
80ed523f
VZ
14411 # Clean up.
14412 rm -f a.out a.exe
8414a40c 14413else
80ed523f 14414 echo "libtool.m4: error: problem compiling CXX test program"
31cb0113
VZ
14415fi
14416
80ed523f
VZ
14417$RM -f confest.$objext
14418CFLAGS=$_lt_libdeps_save_CFLAGS
8414a40c 14419
80ed523f
VZ
14420# PORTME: override above test on systems where it is broken
14421case $host_os in
14422interix[3-9]*)
14423 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14424 # hack all around it, let's just trust "g++" to DTRT.
14425 predep_objects_CXX=
14426 postdep_objects_CXX=
14427 postdeps_CXX=
14428 ;;
8414a40c 14429
80ed523f
VZ
14430linux*)
14431 case `$CC -V 2>&1 | sed 5q` in
14432 *Sun\ C*)
14433 # Sun C++ 5.9
14434
14435 # The more standards-conforming stlport4 library is
14436 # incompatible with the Cstd library. Avoid specifying
14437 # it if it's in CXXFLAGS. Ignore libCrun as
14438 # -library=stlport4 depends on it.
14439 case " $CXX $CXXFLAGS " in
14440 *" -library=stlport4 "*)
14441 solaris_use_stlport4=yes
14442 ;;
14443 esac
31cb0113 14444
80ed523f
VZ
14445 if test "$solaris_use_stlport4" != yes; then
14446 postdeps_CXX='-library=Cstd -library=Crun'
14447 fi
14448 ;;
14449 esac
14450 ;;
8414a40c 14451
80ed523f
VZ
14452solaris*)
14453 case $cc_basename in
14454 CC* | sunCC*)
14455 # The more standards-conforming stlport4 library is
14456 # incompatible with the Cstd library. Avoid specifying
14457 # it if it's in CXXFLAGS. Ignore libCrun as
14458 # -library=stlport4 depends on it.
14459 case " $CXX $CXXFLAGS " in
14460 *" -library=stlport4 "*)
14461 solaris_use_stlport4=yes
14462 ;;
14463 esac
8414a40c 14464
80ed523f
VZ
14465 # Adding this requires a known-good setup of shared libraries for
14466 # Sun compiler versions before 5.6, else PIC objects from an old
14467 # archive will be linked into the output, leading to subtle bugs.
14468 if test "$solaris_use_stlport4" != yes; then
14469 postdeps_CXX='-library=Cstd -library=Crun'
14470 fi
14471 ;;
14472 esac
14473 ;;
14474esac
8414a40c 14475
8414a40c 14476
80ed523f
VZ
14477case " $postdeps_CXX " in
14478*" -lc "*) archive_cmds_need_lc_CXX=no ;;
14479esac
14480 compiler_lib_search_dirs_CXX=
14481if test -n "${compiler_lib_search_path_CXX}"; then
14482 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
31cb0113
VZ
14483fi
14484
8414a40c 14485
8414a40c 14486
8414a40c 14487
8414a40c 14488
31cb0113 14489
8414a40c 14490
8414a40c 14491
8414a40c 14492
8414a40c 14493
8414a40c 14494
31cb0113 14495
8414a40c 14496
8414a40c 14497
8414a40c 14498
8414a40c 14499
31cb0113 14500
8414a40c 14501
8414a40c 14502
8414a40c 14503
8414a40c
VZ
14504
14505
31cb0113 14506
8414a40c 14507
8414a40c 14508
8414a40c 14509
8414a40c
VZ
14510
14511
8414a40c 14512
8414a40c 14513
8414a40c 14514
80ed523f
VZ
14515 lt_prog_compiler_wl_CXX=
14516lt_prog_compiler_pic_CXX=
14517lt_prog_compiler_static_CXX=
8414a40c 14518
8414a40c 14519
80ed523f
VZ
14520 # C++ specific cases for pic, static, wl, etc.
14521 if test "$GXX" = yes; then
14522 lt_prog_compiler_wl_CXX='-Wl,'
14523 lt_prog_compiler_static_CXX='-static'
8414a40c 14524
80ed523f
VZ
14525 case $host_os in
14526 aix*)
14527 # All AIX code is PIC.
14528 if test "$host_cpu" = ia64; then
14529 # AIX 5 now supports IA64 processor
14530 lt_prog_compiler_static_CXX='-Bstatic'
14531 fi
14532 ;;
8414a40c 14533
80ed523f
VZ
14534 amigaos*)
14535 case $host_cpu in
14536 powerpc)
14537 # see comment about AmigaOS4 .so support
14538 lt_prog_compiler_pic_CXX='-fPIC'
14539 ;;
14540 m68k)
14541 # FIXME: we need at least 68020 code to build shared libraries, but
14542 # adding the `-m68020' flag to GCC prevents building anything better,
14543 # like `-m68040'.
14544 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14545 ;;
14546 esac
14547 ;;
8414a40c 14548
80ed523f
VZ
14549 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14550 # PIC is the default for these OSes.
14551 ;;
14552 mingw* | cygwin* | os2* | pw32* | cegcc*)
14553 # This hack is so that the source file can tell whether it is being
14554 # built for inclusion in a dll (and should export symbols for example).
14555 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14556 # (--disable-auto-import) libraries
14557 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14558 ;;
14559 darwin* | rhapsody*)
14560 # PIC is the default on this platform
14561 # Common symbols not allowed in MH_DYLIB files
14562 lt_prog_compiler_pic_CXX='-fno-common'
14563 ;;
14564 *djgpp*)
14565 # DJGPP does not support shared libraries at all
14566 lt_prog_compiler_pic_CXX=
14567 ;;
14568 haiku*)
14569 # PIC is the default for Haiku.
14570 # The "-static" flag exists, but is broken.
14571 lt_prog_compiler_static_CXX=
14572 ;;
14573 interix[3-9]*)
14574 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14575 # Instead, we relocate shared libraries at runtime.
14576 ;;
14577 sysv4*MP*)
14578 if test -d /usr/nec; then
14579 lt_prog_compiler_pic_CXX=-Kconform_pic
14580 fi
14581 ;;
14582 hpux*)
14583 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14584 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14585 # sets the default TLS model and affects inlining.
14586 case $host_cpu in
14587 hppa*64*)
14588 ;;
14589 *)
14590 lt_prog_compiler_pic_CXX='-fPIC'
14591 ;;
14592 esac
14593 ;;
14594 *qnx* | *nto*)
14595 # QNX uses GNU C++, but need to define -shared option too, otherwise
14596 # it will coredump.
14597 lt_prog_compiler_pic_CXX='-fPIC -shared'
14598 ;;
14599 *)
14600 lt_prog_compiler_pic_CXX='-fPIC'
14601 ;;
14602 esac
14603 else
14604 case $host_os in
14605 aix[4-9]*)
14606 # All AIX code is PIC.
14607 if test "$host_cpu" = ia64; then
14608 # AIX 5 now supports IA64 processor
14609 lt_prog_compiler_static_CXX='-Bstatic'
14610 else
14611 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14612 fi
14613 ;;
14614 chorus*)
14615 case $cc_basename in
14616 cxch68*)
14617 # Green Hills C++ Compiler
14618 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
14619 ;;
14620 esac
14621 ;;
14622 mingw* | cygwin* | os2* | pw32* | cegcc*)
14623 # This hack is so that the source file can tell whether it is being
14624 # built for inclusion in a dll (and should export symbols for example).
14625 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14626 ;;
14627 dgux*)
14628 case $cc_basename in
14629 ec++*)
14630 lt_prog_compiler_pic_CXX='-KPIC'
14631 ;;
14632 ghcx*)
14633 # Green Hills C++ Compiler
14634 lt_prog_compiler_pic_CXX='-pic'
14635 ;;
14636 *)
14637 ;;
14638 esac
14639 ;;
14640 freebsd* | dragonfly*)
14641 # FreeBSD uses GNU C++
14642 ;;
14643 hpux9* | hpux10* | hpux11*)
14644 case $cc_basename in
14645 CC*)
14646 lt_prog_compiler_wl_CXX='-Wl,'
14647 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14648 if test "$host_cpu" != ia64; then
14649 lt_prog_compiler_pic_CXX='+Z'
14650 fi
14651 ;;
14652 aCC*)
14653 lt_prog_compiler_wl_CXX='-Wl,'
14654 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14655 case $host_cpu in
14656 hppa*64*|ia64*)
14657 # +Z the default
14658 ;;
14659 *)
14660 lt_prog_compiler_pic_CXX='+Z'
14661 ;;
14662 esac
14663 ;;
14664 *)
14665 ;;
14666 esac
14667 ;;
14668 interix*)
14669 # This is c89, which is MS Visual C++ (no shared libs)
14670 # Anyone wants to do a port?
14671 ;;
14672 irix5* | irix6* | nonstopux*)
14673 case $cc_basename in
14674 CC*)
14675 lt_prog_compiler_wl_CXX='-Wl,'
14676 lt_prog_compiler_static_CXX='-non_shared'
14677 # CC pic flag -KPIC is the default.
14678 ;;
14679 *)
14680 ;;
14681 esac
14682 ;;
14683 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14684 case $cc_basename in
14685 KCC*)
14686 # KAI C++ Compiler
14687 lt_prog_compiler_wl_CXX='--backend -Wl,'
14688 lt_prog_compiler_pic_CXX='-fPIC'
14689 ;;
14690 ecpc* )
14691 # old Intel C++ for x86_64 which still supported -KPIC.
14692 lt_prog_compiler_wl_CXX='-Wl,'
14693 lt_prog_compiler_pic_CXX='-KPIC'
14694 lt_prog_compiler_static_CXX='-static'
14695 ;;
14696 icpc* )
14697 # Intel C++, used to be incompatible with GCC.
14698 # ICC 10 doesn't accept -KPIC any more.
14699 lt_prog_compiler_wl_CXX='-Wl,'
14700 lt_prog_compiler_pic_CXX='-fPIC'
14701 lt_prog_compiler_static_CXX='-static'
14702 ;;
14703 pgCC* | pgcpp*)
14704 # Portland Group C++ compiler
14705 lt_prog_compiler_wl_CXX='-Wl,'
14706 lt_prog_compiler_pic_CXX='-fpic'
14707 lt_prog_compiler_static_CXX='-Bstatic'
14708 ;;
14709 cxx*)
14710 # Compaq C++
14711 # Make sure the PIC flag is empty. It appears that all Alpha
14712 # Linux and Compaq Tru64 Unix objects are PIC.
14713 lt_prog_compiler_pic_CXX=
14714 lt_prog_compiler_static_CXX='-non_shared'
14715 ;;
14716 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14717 # IBM XL 8.0, 9.0 on PPC and BlueGene
14718 lt_prog_compiler_wl_CXX='-Wl,'
14719 lt_prog_compiler_pic_CXX='-qpic'
14720 lt_prog_compiler_static_CXX='-qstaticlink'
14721 ;;
14722 *)
14723 case `$CC -V 2>&1 | sed 5q` in
14724 *Sun\ C*)
14725 # Sun C++ 5.9
14726 lt_prog_compiler_pic_CXX='-KPIC'
14727 lt_prog_compiler_static_CXX='-Bstatic'
14728 lt_prog_compiler_wl_CXX='-Qoption ld '
14729 ;;
14730 esac
14731 ;;
14732 esac
14733 ;;
14734 lynxos*)
14735 ;;
14736 m88k*)
14737 ;;
14738 mvs*)
14739 case $cc_basename in
14740 cxx*)
14741 lt_prog_compiler_pic_CXX='-W c,exportall'
14742 ;;
14743 *)
14744 ;;
14745 esac
14746 ;;
14747 netbsd*)
14748 ;;
14749 *qnx* | *nto*)
14750 # QNX uses GNU C++, but need to define -shared option too, otherwise
14751 # it will coredump.
14752 lt_prog_compiler_pic_CXX='-fPIC -shared'
14753 ;;
14754 osf3* | osf4* | osf5*)
14755 case $cc_basename in
14756 KCC*)
14757 lt_prog_compiler_wl_CXX='--backend -Wl,'
14758 ;;
14759 RCC*)
14760 # Rational C++ 2.4.1
14761 lt_prog_compiler_pic_CXX='-pic'
14762 ;;
14763 cxx*)
14764 # Digital/Compaq C++
14765 lt_prog_compiler_wl_CXX='-Wl,'
14766 # Make sure the PIC flag is empty. It appears that all Alpha
14767 # Linux and Compaq Tru64 Unix objects are PIC.
14768 lt_prog_compiler_pic_CXX=
14769 lt_prog_compiler_static_CXX='-non_shared'
14770 ;;
14771 *)
14772 ;;
14773 esac
14774 ;;
14775 psos*)
14776 ;;
14777 solaris*)
14778 case $cc_basename in
14779 CC* | sunCC*)
14780 # Sun C++ 4.2, 5.x and Centerline C++
14781 lt_prog_compiler_pic_CXX='-KPIC'
14782 lt_prog_compiler_static_CXX='-Bstatic'
14783 lt_prog_compiler_wl_CXX='-Qoption ld '
14784 ;;
14785 gcx*)
14786 # Green Hills C++ Compiler
14787 lt_prog_compiler_pic_CXX='-PIC'
14788 ;;
14789 *)
14790 ;;
14791 esac
14792 ;;
14793 sunos4*)
14794 case $cc_basename in
14795 CC*)
14796 # Sun C++ 4.x
14797 lt_prog_compiler_pic_CXX='-pic'
14798 lt_prog_compiler_static_CXX='-Bstatic'
14799 ;;
14800 lcc*)
14801 # Lucid
14802 lt_prog_compiler_pic_CXX='-pic'
14803 ;;
14804 *)
14805 ;;
14806 esac
14807 ;;
14808 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14809 case $cc_basename in
14810 CC*)
14811 lt_prog_compiler_wl_CXX='-Wl,'
14812 lt_prog_compiler_pic_CXX='-KPIC'
14813 lt_prog_compiler_static_CXX='-Bstatic'
14814 ;;
14815 esac
14816 ;;
14817 tandem*)
14818 case $cc_basename in
14819 NCC*)
14820 # NonStop-UX NCC 3.20
14821 lt_prog_compiler_pic_CXX='-KPIC'
14822 ;;
14823 *)
14824 ;;
14825 esac
14826 ;;
14827 vxworks*)
14828 ;;
14829 *)
14830 lt_prog_compiler_can_build_shared_CXX=no
14831 ;;
14832 esac
14833 fi
8414a40c 14834
80ed523f
VZ
14835case $host_os in
14836 # For platforms which do not support PIC, -DPIC is meaningless:
14837 *djgpp*)
14838 lt_prog_compiler_pic_CXX=
14839 ;;
14840 *)
14841 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14842 ;;
31cb0113 14843esac
31cb0113 14844
80ed523f
VZ
14845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14846$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14847if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14848 $as_echo_n "(cached) " >&6
8414a40c 14849else
80ed523f 14850 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
8414a40c 14851fi
80ed523f
VZ
14852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
14853$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
14854lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
8414a40c 14855
80ed523f
VZ
14856#
14857# Check to make sure the PIC flag actually works.
14858#
14859if test -n "$lt_prog_compiler_pic_CXX"; then
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14861$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14862if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864else
14865 lt_cv_prog_compiler_pic_works_CXX=no
14866 ac_outfile=conftest.$ac_objext
14867 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14868 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14869 # Insert the option either (1) after the last *FLAGS variable, or
14870 # (2) before a word containing "conftest.", or (3) at the end.
14871 # Note that $ac_compile itself does not contain backslashes and begins
14872 # with a dollar sign (not a hyphen), so the echo should work correctly.
14873 # The option is referenced via a variable to avoid confusing sed.
14874 lt_compile=`echo "$ac_compile" | $SED \
14875 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14876 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14877 -e 's:$: $lt_compiler_flag:'`
14878 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14879 (eval "$lt_compile" 2>conftest.err)
14880 ac_status=$?
14881 cat conftest.err >&5
14882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14883 if (exit $ac_status) && test -s "$ac_outfile"; then
14884 # The compiler can only warn and ignore the option if not recognized
14885 # So say no if there are warnings other than the usual output.
14886 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14887 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14888 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14889 lt_cv_prog_compiler_pic_works_CXX=yes
14890 fi
14891 fi
14892 $RM conftest*
8414a40c 14893
8414a40c 14894fi
80ed523f
VZ
14895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14896$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14897
14898if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14899 case $lt_prog_compiler_pic_CXX in
14900 "" | " "*) ;;
14901 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14902 esac
8414a40c 14903else
80ed523f
VZ
14904 lt_prog_compiler_pic_CXX=
14905 lt_prog_compiler_can_build_shared_CXX=no
14906fi
8414a40c 14907
8414a40c 14908fi
31cb0113 14909
8414a40c 14910
8414a40c 14911
31cb0113 14912
8414a40c 14913
80ed523f
VZ
14914#
14915# Check to make sure the static flag actually works.
14916#
14917wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14919$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14920if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14921 $as_echo_n "(cached) " >&6
8414a40c 14922else
80ed523f
VZ
14923 lt_cv_prog_compiler_static_works_CXX=no
14924 save_LDFLAGS="$LDFLAGS"
14925 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14926 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14927 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14928 # The linker can only warn and ignore the option if not recognized
14929 # So say no if there are warnings
14930 if test -s conftest.err; then
14931 # Append any errors to the config.log.
14932 cat conftest.err 1>&5
14933 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
14934 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14935 if diff conftest.exp conftest.er2 >/dev/null; then
14936 lt_cv_prog_compiler_static_works_CXX=yes
14937 fi
14938 else
14939 lt_cv_prog_compiler_static_works_CXX=yes
14940 fi
14941 fi
14942 $RM -r conftest*
14943 LDFLAGS="$save_LDFLAGS"
8414a40c
VZ
14944
14945fi
80ed523f
VZ
14946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
14947$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
14948
14949if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14950 :
8414a40c 14951else
80ed523f 14952 lt_prog_compiler_static_CXX=
8414a40c
VZ
14953fi
14954
14955
8414a40c 14956
8414a40c 14957
80ed523f
VZ
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14959$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14960if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14961 $as_echo_n "(cached) " >&6
14962else
14963 lt_cv_prog_compiler_c_o_CXX=no
14964 $RM -r conftest 2>/dev/null
14965 mkdir conftest
14966 cd conftest
14967 mkdir out
14968 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 14969
80ed523f
VZ
14970 lt_compiler_flag="-o out/conftest2.$ac_objext"
14971 # Insert the option either (1) after the last *FLAGS variable, or
14972 # (2) before a word containing "conftest.", or (3) at the end.
14973 # Note that $ac_compile itself does not contain backslashes and begins
14974 # with a dollar sign (not a hyphen), so the echo should work correctly.
14975 lt_compile=`echo "$ac_compile" | $SED \
14976 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14977 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14978 -e 's:$: $lt_compiler_flag:'`
14979 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14980 (eval "$lt_compile" 2>out/conftest.err)
14981 ac_status=$?
14982 cat out/conftest.err >&5
14983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14984 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14985 then
14986 # The compiler can only warn and ignore the option if not recognized
14987 # So say no if there are warnings
14988 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
14989 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14990 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14991 lt_cv_prog_compiler_c_o_CXX=yes
14992 fi
14993 fi
14994 chmod u+w . 2>&5
14995 $RM conftest*
14996 # SGI C++ compiler will create directory out/ii_files/ for
14997 # template instantiation
14998 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14999 $RM out/* && rmdir out
15000 cd ..
15001 $RM -r conftest
15002 $RM conftest*
8414a40c 15003
80ed523f
VZ
15004fi
15005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15006$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
8414a40c 15007
8414a40c 15008
8414a40c 15009
80ed523f
VZ
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15011$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15012if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014else
15015 lt_cv_prog_compiler_c_o_CXX=no
15016 $RM -r conftest 2>/dev/null
15017 mkdir conftest
15018 cd conftest
15019 mkdir out
15020 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 15021
80ed523f
VZ
15022 lt_compiler_flag="-o out/conftest2.$ac_objext"
15023 # Insert the option either (1) after the last *FLAGS variable, or
15024 # (2) before a word containing "conftest.", or (3) at the end.
15025 # Note that $ac_compile itself does not contain backslashes and begins
15026 # with a dollar sign (not a hyphen), so the echo should work correctly.
15027 lt_compile=`echo "$ac_compile" | $SED \
15028 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15029 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15030 -e 's:$: $lt_compiler_flag:'`
15031 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15032 (eval "$lt_compile" 2>out/conftest.err)
15033 ac_status=$?
15034 cat out/conftest.err >&5
15035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15036 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15037 then
15038 # The compiler can only warn and ignore the option if not recognized
15039 # So say no if there are warnings
15040 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15041 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15042 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15043 lt_cv_prog_compiler_c_o_CXX=yes
15044 fi
15045 fi
15046 chmod u+w . 2>&5
15047 $RM conftest*
15048 # SGI C++ compiler will create directory out/ii_files/ for
15049 # template instantiation
15050 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15051 $RM out/* && rmdir out
15052 cd ..
15053 $RM -r conftest
15054 $RM conftest*
8414a40c 15055
31cb0113 15056fi
80ed523f
VZ
15057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15058$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
31cb0113 15059
8414a40c 15060
8414a40c 15061
8414a40c 15062
80ed523f
VZ
15063hard_links="nottested"
15064if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15065 # do not overwrite the value of need_locks provided by the user
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15067$as_echo_n "checking if we can lock with hard links... " >&6; }
15068 hard_links=yes
15069 $RM conftest*
15070 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15071 touch conftest.a
15072 ln conftest.a conftest.b 2>&5 || hard_links=no
15073 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15075$as_echo "$hard_links" >&6; }
15076 if test "$hard_links" = no; then
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15078$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15079 need_locks=warn
15080 fi
8414a40c 15081else
80ed523f 15082 need_locks=no
8414a40c
VZ
15083fi
15084
15085
8414a40c 15086
80ed523f
VZ
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15088$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8414a40c 15089
80ed523f
VZ
15090 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15091 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15092 case $host_os in
15093 aix[4-9]*)
15094 # If we're using GNU nm, then we don't want the "-C" option.
15095 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15096 # Also, AIX nm treats weak defined symbols like other global defined
15097 # symbols, whereas GNU nm marks them as "W".
15098 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15099 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15100 else
15101 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'
15102 fi
15103 ;;
15104 pw32*)
15105 export_symbols_cmds_CXX="$ltdll_cmds"
15106 ;;
15107 cygwin* | mingw* | cegcc*)
15108 case $cc_basename in
15109 cl*)
15110 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
15111 ;;
15112 *)
15113 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15114 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
15115 ;;
15116 esac
15117 ;;
15118 *)
15119 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15120 ;;
15121 esac
8414a40c 15122
80ed523f
VZ
15123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15124$as_echo "$ld_shlibs_CXX" >&6; }
15125test "$ld_shlibs_CXX" = no && can_build_shared=no
8414a40c 15126
80ed523f 15127with_gnu_ld_CXX=$with_gnu_ld
8414a40c 15128
8414a40c 15129
8414a40c 15130
8414a40c 15131
8414a40c 15132
80ed523f
VZ
15133
15134#
15135# Do we need to explicitly link libc?
15136#
15137case "x$archive_cmds_need_lc_CXX" in
15138x|xyes)
15139 # Assume -lc should be added
15140 archive_cmds_need_lc_CXX=yes
15141
15142 if test "$enable_shared" = yes && test "$GCC" = yes; then
15143 case $archive_cmds_CXX in
15144 *'~'*)
15145 # FIXME: we may have to deal with multi-command sequences.
15146 ;;
15147 '$CC '*)
15148 # Test whether the compiler implicitly links with -lc since on some
15149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15150 # to ld, don't add -lc before -lgcc.
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15152$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15153if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15154 $as_echo_n "(cached) " >&6
8414a40c 15155else
80ed523f
VZ
15156 $RM conftest*
15157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8414a40c 15158
80ed523f
VZ
15159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15160 (eval $ac_compile) 2>&5
8414a40c 15161 ac_status=$?
80ed523f
VZ
15162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15163 test $ac_status = 0; } 2>conftest.err; then
15164 soname=conftest
15165 lib=conftest
15166 libobjs=conftest.$ac_objext
15167 deplibs=
15168 wl=$lt_prog_compiler_wl_CXX
15169 pic_flag=$lt_prog_compiler_pic_CXX
15170 compiler_flags=-v
15171 linker_flags=-v
15172 verstring=
15173 output_objdir=.
15174 libname=conftest
15175 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15176 allow_undefined_flag_CXX=
15177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15178 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15179 ac_status=$?
15180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15181 test $ac_status = 0; }
15182 then
15183 lt_cv_archive_cmds_need_lc_CXX=no
15184 else
15185 lt_cv_archive_cmds_need_lc_CXX=yes
15186 fi
15187 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15188 else
15189 cat conftest.err 1>&5
15190 fi
15191 $RM conftest*
8414a40c 15192
8414a40c 15193fi
80ed523f
VZ
15194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15195$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15196 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15197 ;;
15198 esac
15199 fi
15200 ;;
15201esac
31cb0113 15202
8414a40c 15203
8414a40c 15204
8414a40c 15205
31cb0113 15206
8414a40c 15207
8414a40c 15208
31cb0113 15209
8414a40c 15210
8414a40c 15211
8414a40c
VZ
15212
15213
8414a40c 15214
8414a40c 15215
8414a40c 15216
8414a40c 15217
8414a40c 15218
8414a40c 15219
8414a40c 15220
8414a40c
VZ
15221
15222
31cb0113 15223
8414a40c 15224
8414a40c 15225
8414a40c 15226
8414a40c
VZ
15227
15228
31cb0113 15229
8414a40c 15230
8414a40c 15231
8414a40c 15232
8414a40c
VZ
15233
15234
15235
8414a40c
VZ
15236
15237
15238
8414a40c
VZ
15239
15240
8414a40c 15241
8414a40c 15242
8414a40c 15243
8414a40c 15244
8414a40c 15245
8414a40c 15246
8414a40c 15247
8414a40c 15248
8414a40c 15249
8414a40c 15250
31cb0113 15251
8414a40c 15252
8414a40c 15253
31cb0113 15254
8414a40c 15255
8414a40c 15256
8414a40c 15257
8414a40c 15258
8414a40c 15259
8414a40c 15260
8414a40c 15261
8414a40c 15262
8414a40c 15263
80ed523f
VZ
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265$as_echo_n "checking dynamic linker characteristics... " >&6; }
8414a40c 15266
80ed523f
VZ
15267library_names_spec=
15268libname_spec='lib$name'
15269soname_spec=
15270shrext_cmds=".so"
15271postinstall_cmds=
15272postuninstall_cmds=
15273finish_cmds=
15274finish_eval=
15275shlibpath_var=
15276shlibpath_overrides_runpath=unknown
15277version_type=none
15278dynamic_linker="$host_os ld.so"
15279sys_lib_dlsearch_path_spec="/lib /usr/lib"
15280need_lib_prefix=unknown
15281hardcode_into_libs=no
8414a40c 15282
80ed523f
VZ
15283# when you set need_version to no, make sure it does not cause -set_version
15284# flags to be left without arguments
15285need_version=unknown
8414a40c 15286
80ed523f
VZ
15287case $host_os in
15288aix3*)
15289 version_type=linux # correct to gnu/linux during the next big refactor
15290 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15291 shlibpath_var=LIBPATH
31cb0113 15292
80ed523f
VZ
15293 # AIX 3 has no versioning support, so we append a major version to the name.
15294 soname_spec='${libname}${release}${shared_ext}$major'
15295 ;;
31cb0113 15296
80ed523f
VZ
15297aix[4-9]*)
15298 version_type=linux # correct to gnu/linux during the next big refactor
15299 need_lib_prefix=no
15300 need_version=no
15301 hardcode_into_libs=yes
15302 if test "$host_cpu" = ia64; then
15303 # AIX 5 supports IA64
15304 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15305 shlibpath_var=LD_LIBRARY_PATH
15306 else
15307 # With GCC up to 2.95.x, collect2 would create an import file
15308 # for dependence libraries. The import file would start with
15309 # the line `#! .'. This would cause the generated library to
15310 # depend on `.', always an invalid library. This was fixed in
15311 # development snapshots of GCC prior to 3.0.
15312 case $host_os in
15313 aix4 | aix4.[01] | aix4.[01].*)
15314 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15315 echo ' yes '
15316 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15317 :
15318 else
15319 can_build_shared=no
15320 fi
15321 ;;
15322 esac
15323 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15324 # soname into executable. Probably we can add versioning support to
15325 # collect2, so additional links can be useful in future.
15326 if test "$aix_use_runtimelinking" = yes; then
15327 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15328 # instead of lib<name>.a to let people know that these are not
15329 # typical AIX shared libraries.
15330 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15331 else
15332 # We preserve .a as extension for shared libraries through AIX4.2
15333 # and later when we are not doing run time linking.
15334 library_names_spec='${libname}${release}.a $libname.a'
15335 soname_spec='${libname}${release}${shared_ext}$major'
15336 fi
15337 shlibpath_var=LIBPATH
8414a40c 15338 fi
80ed523f 15339 ;;
8414a40c 15340
80ed523f
VZ
15341amigaos*)
15342 case $host_cpu in
15343 powerpc)
15344 # Since July 2007 AmigaOS4 officially supports .so libraries.
15345 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 ;;
15348 m68k)
15349 library_names_spec='$libname.ixlibrary $libname.a'
15350 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15351 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15352 ;;
15353 esac
15354 ;;
8414a40c 15355
80ed523f
VZ
15356beos*)
15357 library_names_spec='${libname}${shared_ext}'
15358 dynamic_linker="$host_os ld.so"
15359 shlibpath_var=LIBRARY_PATH
15360 ;;
31cb0113 15361
80ed523f
VZ
15362bsdi[45]*)
15363 version_type=linux # correct to gnu/linux during the next big refactor
15364 need_version=no
15365 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15366 soname_spec='${libname}${release}${shared_ext}$major'
15367 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15368 shlibpath_var=LD_LIBRARY_PATH
15369 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15370 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15371 # the default ld.so.conf also contains /usr/contrib/lib and
15372 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15373 # libtool to hard-code these into programs
15374 ;;
8414a40c 15375
80ed523f
VZ
15376cygwin* | mingw* | pw32* | cegcc*)
15377 version_type=windows
15378 shrext_cmds=".dll"
15379 need_version=no
15380 need_lib_prefix=no
8414a40c 15381
80ed523f
VZ
15382 case $GCC,$cc_basename in
15383 yes,*)
15384 # gcc
15385 library_names_spec='$libname.dll.a'
15386 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15387 postinstall_cmds='base_file=`basename \${file}`~
15388 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15389 dldir=$destdir/`dirname \$dlpath`~
15390 test -d \$dldir || mkdir -p \$dldir~
15391 $install_prog $dir/$dlname \$dldir/$dlname~
15392 chmod a+x \$dldir/$dlname~
15393 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15394 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15395 fi'
15396 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15397 dlpath=$dir/\$dldll~
15398 $RM \$dlpath'
15399 shlibpath_overrides_runpath=yes
8414a40c 15400
80ed523f
VZ
15401 case $host_os in
15402 cygwin*)
15403 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15404 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
31cb0113 15405
80ed523f
VZ
15406 ;;
15407 mingw* | cegcc*)
15408 # MinGW DLLs use traditional 'lib' prefix
15409 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15410 ;;
15411 pw32*)
15412 # pw32 DLLs use 'pw' prefix rather than 'lib'
15413 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15414 ;;
15415 esac
15416 dynamic_linker='Win32 ld.exe'
15417 ;;
8414a40c 15418
80ed523f
VZ
15419 *,cl*)
15420 # Native MSVC
15421 libname_spec='$name'
15422 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15423 library_names_spec='${libname}.dll.lib'
31cb0113 15424
80ed523f
VZ
15425 case $build_os in
15426 mingw*)
15427 sys_lib_search_path_spec=
15428 lt_save_ifs=$IFS
15429 IFS=';'
15430 for lt_path in $LIB
15431 do
15432 IFS=$lt_save_ifs
15433 # Let DOS variable expansion print the short 8.3 style file name.
15434 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
15435 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
15436 done
15437 IFS=$lt_save_ifs
15438 # Convert to MSYS style.
15439 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
15440 ;;
15441 cygwin*)
15442 # Convert to unix form, then to dos form, then back to unix form
15443 # but this time dos style (no spaces!) so that the unix form looks
15444 # like /cygdrive/c/PROGRA~1:/cygdr...
15445 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
15446 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
15447 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15448 ;;
15449 *)
15450 sys_lib_search_path_spec="$LIB"
15451 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
15452 # It is most probably a Windows format PATH.
15453 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15454 else
15455 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15456 fi
15457 # FIXME: find the short name or the path components, as spaces are
15458 # common. (e.g. "Program Files" -> "PROGRA~1")
15459 ;;
15460 esac
8414a40c 15461
80ed523f
VZ
15462 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15463 postinstall_cmds='base_file=`basename \${file}`~
15464 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15465 dldir=$destdir/`dirname \$dlpath`~
15466 test -d \$dldir || mkdir -p \$dldir~
15467 $install_prog $dir/$dlname \$dldir/$dlname'
15468 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15469 dlpath=$dir/\$dldll~
15470 $RM \$dlpath'
15471 shlibpath_overrides_runpath=yes
15472 dynamic_linker='Win32 link.exe'
15473 ;;
8414a40c 15474
80ed523f
VZ
15475 *)
15476 # Assume MSVC wrapper
15477 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15478 dynamic_linker='Win32 ld.exe'
15479 ;;
15480 esac
15481 # FIXME: first we should search . and the directory the executable is in
15482 shlibpath_var=PATH
15483 ;;
8414a40c 15484
80ed523f
VZ
15485darwin* | rhapsody*)
15486 dynamic_linker="$host_os dyld"
15487 version_type=darwin
15488 need_lib_prefix=no
15489 need_version=no
15490 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15491 soname_spec='${libname}${release}${major}$shared_ext'
15492 shlibpath_overrides_runpath=yes
15493 shlibpath_var=DYLD_LIBRARY_PATH
15494 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8414a40c 15495
80ed523f
VZ
15496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15497 ;;
8414a40c 15498
80ed523f
VZ
15499dgux*)
15500 version_type=linux # correct to gnu/linux during the next big refactor
15501 need_lib_prefix=no
15502 need_version=no
15503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15504 soname_spec='${libname}${release}${shared_ext}$major'
15505 shlibpath_var=LD_LIBRARY_PATH
15506 ;;
8414a40c 15507
80ed523f
VZ
15508freebsd* | dragonfly*)
15509 # DragonFly does not have aout. When/if they implement a new
15510 # versioning mechanism, adjust this.
15511 if test -x /usr/bin/objformat; then
15512 objformat=`/usr/bin/objformat`
15513 else
15514 case $host_os in
15515 freebsd[23].*) objformat=aout ;;
15516 *) objformat=elf ;;
15517 esac
15518 fi
15519 version_type=freebsd-$objformat
15520 case $version_type in
15521 freebsd-elf*)
15522 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15523 need_version=no
15524 need_lib_prefix=no
15525 ;;
15526 freebsd-*)
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15528 need_version=yes
15529 ;;
15530 esac
15531 shlibpath_var=LD_LIBRARY_PATH
15532 case $host_os in
15533 freebsd2.*)
15534 shlibpath_overrides_runpath=yes
15535 ;;
15536 freebsd3.[01]* | freebsdelf3.[01]*)
15537 shlibpath_overrides_runpath=yes
15538 hardcode_into_libs=yes
15539 ;;
15540 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15541 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15542 shlibpath_overrides_runpath=no
15543 hardcode_into_libs=yes
15544 ;;
15545 *) # from 4.6 on, and DragonFly
15546 shlibpath_overrides_runpath=yes
15547 hardcode_into_libs=yes
15548 ;;
15549 esac
15550 ;;
8414a40c 15551
80ed523f
VZ
15552gnu*)
15553 version_type=linux # correct to gnu/linux during the next big refactor
15554 need_lib_prefix=no
15555 need_version=no
15556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15557 soname_spec='${libname}${release}${shared_ext}$major'
15558 shlibpath_var=LD_LIBRARY_PATH
15559 shlibpath_overrides_runpath=no
15560 hardcode_into_libs=yes
15561 ;;
31cb0113 15562
80ed523f
VZ
15563haiku*)
15564 version_type=linux # correct to gnu/linux during the next big refactor
15565 need_lib_prefix=no
15566 need_version=no
15567 dynamic_linker="$host_os runtime_loader"
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15569 soname_spec='${libname}${release}${shared_ext}$major'
15570 shlibpath_var=LIBRARY_PATH
15571 shlibpath_overrides_runpath=yes
15572 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15573 hardcode_into_libs=yes
15574 ;;
8414a40c 15575
80ed523f
VZ
15576hpux9* | hpux10* | hpux11*)
15577 # Give a soname corresponding to the major version so that dld.sl refuses to
15578 # link against other versions.
15579 version_type=sunos
15580 need_lib_prefix=no
15581 need_version=no
15582 case $host_cpu in
15583 ia64*)
15584 shrext_cmds='.so'
15585 hardcode_into_libs=yes
15586 dynamic_linker="$host_os dld.so"
15587 shlibpath_var=LD_LIBRARY_PATH
15588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 if test "X$HPUX_IA64_MODE" = X32; then
15592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15593 else
15594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15595 fi
15596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15597 ;;
15598 hppa*64*)
15599 shrext_cmds='.sl'
15600 hardcode_into_libs=yes
15601 dynamic_linker="$host_os dld.sl"
15602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15605 soname_spec='${libname}${release}${shared_ext}$major'
15606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15608 ;;
15609 *)
15610 shrext_cmds='.sl'
15611 dynamic_linker="$host_os dld.sl"
15612 shlibpath_var=SHLIB_PATH
15613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15615 soname_spec='${libname}${release}${shared_ext}$major'
15616 ;;
15617 esac
15618 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15619 postinstall_cmds='chmod 555 $lib'
15620 # or fails outright, so override atomically:
15621 install_override_mode=555
15622 ;;
8414a40c 15623
80ed523f
VZ
15624interix[3-9]*)
15625 version_type=linux # correct to gnu/linux during the next big refactor
15626 need_lib_prefix=no
15627 need_version=no
15628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15629 soname_spec='${libname}${release}${shared_ext}$major'
15630 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15631 shlibpath_var=LD_LIBRARY_PATH
15632 shlibpath_overrides_runpath=no
15633 hardcode_into_libs=yes
15634 ;;
8414a40c 15635
80ed523f
VZ
15636irix5* | irix6* | nonstopux*)
15637 case $host_os in
15638 nonstopux*) version_type=nonstopux ;;
15639 *)
15640 if test "$lt_cv_prog_gnu_ld" = yes; then
15641 version_type=linux # correct to gnu/linux during the next big refactor
15642 else
15643 version_type=irix
15644 fi ;;
15645 esac
15646 need_lib_prefix=no
15647 need_version=no
15648 soname_spec='${libname}${release}${shared_ext}$major'
15649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15650 case $host_os in
15651 irix5* | nonstopux*)
15652 libsuff= shlibsuff=
15653 ;;
15654 *)
15655 case $LD in # libtool.m4 will add one of these switches to LD
15656 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15657 libsuff= shlibsuff= libmagic=32-bit;;
15658 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15659 libsuff=32 shlibsuff=N32 libmagic=N32;;
15660 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15661 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15662 *) libsuff= shlibsuff= libmagic=never-match;;
15663 esac
15664 ;;
15665 esac
15666 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15667 shlibpath_overrides_runpath=no
15668 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15669 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15670 hardcode_into_libs=yes
15671 ;;
31cb0113 15672
80ed523f
VZ
15673# No shared lib support for Linux oldld, aout, or coff.
15674linux*oldld* | linux*aout* | linux*coff*)
15675 dynamic_linker=no
15676 ;;
8414a40c 15677
80ed523f
VZ
15678# This must be glibc/ELF.
15679linux* | k*bsd*-gnu | kopensolaris*-gnu)
15680 version_type=linux # correct to gnu/linux during the next big refactor
15681 need_lib_prefix=no
15682 need_version=no
15683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15684 soname_spec='${libname}${release}${shared_ext}$major'
15685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15686 shlibpath_var=LD_LIBRARY_PATH
15687 shlibpath_overrides_runpath=no
15688
15689 # Some binutils ld are patched to set DT_RUNPATH
15690 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15691 $as_echo_n "(cached) " >&6
8414a40c 15692else
80ed523f
VZ
15693 lt_cv_shlibpath_overrides_runpath=no
15694 save_LDFLAGS=$LDFLAGS
15695 save_libdir=$libdir
15696 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15697 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
15699/* end confdefs.h. */
15700
8414a40c
VZ
15701int
15702main ()
15703{
80ed523f 15704
8414a40c
VZ
15705 ;
15706 return 0;
15707}
15708_ACEOF
80ed523f
VZ
15709if ac_fn_cxx_try_link "$LINENO"; then :
15710 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15711 lt_cv_shlibpath_overrides_runpath=yes
8414a40c 15712fi
8414a40c 15713fi
80ed523f
VZ
15714rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 LDFLAGS=$save_LDFLAGS
15717 libdir=$save_libdir
15718
8414a40c
VZ
15719fi
15720
80ed523f 15721 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
8414a40c 15722
80ed523f
VZ
15723 # This implies no fast_install, which is unacceptable.
15724 # Some rework will be needed to allow for fast_install
15725 # before this can be enabled.
15726 hardcode_into_libs=yes
8414a40c 15727
80ed523f
VZ
15728 # Append ld.so.conf contents to the search path
15729 if test -f /etc/ld.so.conf; then
15730 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
15731 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15732 fi
8414a40c 15733
80ed523f
VZ
15734 # We used to test for /lib/ld.so.1 and disable shared libraries on
15735 # powerpc, because MkLinux only supported shared libraries with the
15736 # GNU dynamic linker. Since this was broken with cross compilers,
15737 # most powerpc-linux boxes support dynamic linking these days and
15738 # people can always --disable-shared, the test was removed, and we
15739 # assume the GNU/Linux dynamic linker is in use.
15740 dynamic_linker='GNU/Linux ld.so'
15741 ;;
8414a40c 15742
80ed523f
VZ
15743netbsd*)
15744 version_type=sunos
15745 need_lib_prefix=no
15746 need_version=no
15747 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15749 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15750 dynamic_linker='NetBSD (a.out) ld.so'
15751 else
15752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15753 soname_spec='${libname}${release}${shared_ext}$major'
15754 dynamic_linker='NetBSD ld.elf_so'
15755 fi
15756 shlibpath_var=LD_LIBRARY_PATH
15757 shlibpath_overrides_runpath=yes
15758 hardcode_into_libs=yes
15759 ;;
8414a40c 15760
80ed523f
VZ
15761newsos6)
15762 version_type=linux # correct to gnu/linux during the next big refactor
15763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15764 shlibpath_var=LD_LIBRARY_PATH
15765 shlibpath_overrides_runpath=yes
15766 ;;
8414a40c 15767
80ed523f
VZ
15768*nto* | *qnx*)
15769 version_type=qnx
15770 need_lib_prefix=no
15771 need_version=no
15772 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15773 soname_spec='${libname}${release}${shared_ext}$major'
15774 shlibpath_var=LD_LIBRARY_PATH
15775 shlibpath_overrides_runpath=no
15776 hardcode_into_libs=yes
15777 dynamic_linker='ldqnx.so'
15778 ;;
8414a40c 15779
80ed523f
VZ
15780openbsd*)
15781 version_type=sunos
15782 sys_lib_dlsearch_path_spec="/usr/lib"
15783 need_lib_prefix=no
15784 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15785 case $host_os in
15786 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15787 *) need_version=no ;;
15788 esac
15789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15791 shlibpath_var=LD_LIBRARY_PATH
15792 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15793 case $host_os in
15794 openbsd2.[89] | openbsd2.[89].*)
15795 shlibpath_overrides_runpath=no
15796 ;;
15797 *)
15798 shlibpath_overrides_runpath=yes
15799 ;;
15800 esac
15801 else
15802 shlibpath_overrides_runpath=yes
15803 fi
15804 ;;
31cb0113 15805
80ed523f
VZ
15806os2*)
15807 libname_spec='$name'
15808 shrext_cmds=".dll"
15809 need_lib_prefix=no
15810 library_names_spec='$libname${shared_ext} $libname.a'
15811 dynamic_linker='OS/2 ld.exe'
15812 shlibpath_var=LIBPATH
15813 ;;
8414a40c 15814
80ed523f
VZ
15815osf3* | osf4* | osf5*)
15816 version_type=osf
15817 need_lib_prefix=no
15818 need_version=no
15819 soname_spec='${libname}${release}${shared_ext}$major'
15820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15821 shlibpath_var=LD_LIBRARY_PATH
15822 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15823 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15824 ;;
8414a40c 15825
80ed523f
VZ
15826rdos*)
15827 dynamic_linker=no
15828 ;;
8414a40c 15829
80ed523f
VZ
15830solaris*)
15831 version_type=linux # correct to gnu/linux during the next big refactor
15832 need_lib_prefix=no
15833 need_version=no
15834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15835 soname_spec='${libname}${release}${shared_ext}$major'
15836 shlibpath_var=LD_LIBRARY_PATH
15837 shlibpath_overrides_runpath=yes
15838 hardcode_into_libs=yes
15839 # ldd complains unless libraries are executable
15840 postinstall_cmds='chmod +x $lib'
15841 ;;
31cb0113 15842
80ed523f
VZ
15843sunos4*)
15844 version_type=sunos
15845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15846 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15847 shlibpath_var=LD_LIBRARY_PATH
15848 shlibpath_overrides_runpath=yes
15849 if test "$with_gnu_ld" = yes; then
15850 need_lib_prefix=no
15851 fi
15852 need_version=yes
15853 ;;
8414a40c 15854
80ed523f
VZ
15855sysv4 | sysv4.3*)
15856 version_type=linux # correct to gnu/linux during the next big refactor
15857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15858 soname_spec='${libname}${release}${shared_ext}$major'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 case $host_vendor in
15861 sni)
15862 shlibpath_overrides_runpath=no
15863 need_lib_prefix=no
15864 runpath_var=LD_RUN_PATH
15865 ;;
15866 siemens)
15867 need_lib_prefix=no
15868 ;;
15869 motorola)
15870 need_lib_prefix=no
15871 need_version=no
15872 shlibpath_overrides_runpath=no
15873 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15874 ;;
15875 esac
15876 ;;
8414a40c 15877
80ed523f
VZ
15878sysv4*MP*)
15879 if test -d /usr/nec ;then
15880 version_type=linux # correct to gnu/linux during the next big refactor
15881 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15882 soname_spec='$libname${shared_ext}.$major'
15883 shlibpath_var=LD_LIBRARY_PATH
15884 fi
15885 ;;
8414a40c 15886
80ed523f
VZ
15887sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15888 version_type=freebsd-elf
15889 need_lib_prefix=no
15890 need_version=no
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 shlibpath_var=LD_LIBRARY_PATH
15894 shlibpath_overrides_runpath=yes
15895 hardcode_into_libs=yes
15896 if test "$with_gnu_ld" = yes; then
15897 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15898 else
15899 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15900 case $host_os in
15901 sco3.2v5*)
15902 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15903 ;;
15904 esac
15905 fi
15906 sys_lib_dlsearch_path_spec='/usr/lib'
15907 ;;
8414a40c 15908
80ed523f
VZ
15909tpf*)
15910 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15911 version_type=linux # correct to gnu/linux during the next big refactor
15912 need_lib_prefix=no
15913 need_version=no
15914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15915 shlibpath_var=LD_LIBRARY_PATH
15916 shlibpath_overrides_runpath=no
15917 hardcode_into_libs=yes
15918 ;;
8414a40c 15919
80ed523f
VZ
15920uts4*)
15921 version_type=linux # correct to gnu/linux during the next big refactor
15922 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923 soname_spec='${libname}${release}${shared_ext}$major'
15924 shlibpath_var=LD_LIBRARY_PATH
15925 ;;
8414a40c 15926
80ed523f
VZ
15927*)
15928 dynamic_linker=no
15929 ;;
31cb0113 15930esac
80ed523f
VZ
15931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15932$as_echo "$dynamic_linker" >&6; }
15933test "$dynamic_linker" = no && can_build_shared=no
8414a40c 15934
80ed523f
VZ
15935variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15936if test "$GCC" = yes; then
15937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
8414a40c 15938fi
31cb0113 15939
80ed523f
VZ
15940if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15941 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15942fi
15943if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
8414a40c 15945fi
8414a40c 15946
8414a40c 15947
8414a40c 15948
31cb0113 15949
80ed523f
VZ
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981
15982
15983
15984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15985$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15986hardcode_action_CXX=
15987if test -n "$hardcode_libdir_flag_spec_CXX" ||
15988 test -n "$runpath_var_CXX" ||
15989 test "X$hardcode_automatic_CXX" = "Xyes" ; then
15990
15991 # We can hardcode non-existent directories.
15992 if test "$hardcode_direct_CXX" != no &&
15993 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15994 # have to relink, otherwise we might link with an installed library
15995 # when we should be linking with a yet-to-be-installed one
15996 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
15997 test "$hardcode_minus_L_CXX" != no; then
15998 # Linking always hardcodes the temporary library directory.
15999 hardcode_action_CXX=relink
16000 else
16001 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16002 hardcode_action_CXX=immediate
16003 fi
16004else
16005 # We cannot hardcode anything, or else we can only hardcode existing
16006 # directories.
16007 hardcode_action_CXX=unsupported
8414a40c 16008fi
80ed523f
VZ
16009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16010$as_echo "$hardcode_action_CXX" >&6; }
16011
16012if test "$hardcode_action_CXX" = relink ||
16013 test "$inherit_rpath_CXX" = yes; then
16014 # Fast installation is not supported
16015 enable_fast_install=no
16016elif test "$shlibpath_overrides_runpath" = yes ||
16017 test "$enable_shared" = no; then
16018 # Fast installation is not necessary
16019 enable_fast_install=needless
8414a40c
VZ
16020fi
16021
8414a40c 16022
8414a40c 16023
8414a40c 16024
8414a40c 16025
8414a40c 16026
8414a40c 16027
80ed523f
VZ
16028 fi # test -n "$compiler"
16029
16030 CC=$lt_save_CC
16031 CFLAGS=$lt_save_CFLAGS
16032 LDCXX=$LD
16033 LD=$lt_save_LD
16034 GCC=$lt_save_GCC
16035 with_gnu_ld=$lt_save_with_gnu_ld
16036 lt_cv_path_LDCXX=$lt_cv_path_LD
16037 lt_cv_path_LD=$lt_save_path_LD
16038 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16039 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16040fi # test "$_lt_caught_CXX_error" != yes
16041
16042ac_ext=c
16043ac_cpp='$CPP $CPPFLAGS'
16044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047
8414a40c 16048
80ed523f
VZ
16049
16050# Enable support for silent build rules
16051# Check whether --enable-silent-rules was given.
16052if test "${enable_silent_rules+set}" = set; then :
16053 enableval=$enable_silent_rules;
8414a40c 16054fi
31cb0113 16055
80ed523f
VZ
16056case $enable_silent_rules in # (((
16057 yes) AM_DEFAULT_VERBOSITY=0;;
16058 no) AM_DEFAULT_VERBOSITY=1;;
16059 *) AM_DEFAULT_VERBOSITY=1;;
16060esac
16061am_make=${MAKE-make}
16062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
16063$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
16064if ${am_cv_make_support_nested_variables+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066else
16067 if $as_echo 'TRUE=$(BAR$(V))
16068BAR0=false
16069BAR1=true
16070V=1
16071am__doit:
16072 @$(TRUE)
16073.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16074 am_cv_make_support_nested_variables=yes
16075else
16076 am_cv_make_support_nested_variables=no
16077fi
16078fi
16079{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
16080$as_echo "$am_cv_make_support_nested_variables" >&6; }
16081if test $am_cv_make_support_nested_variables = yes; then
16082 AM_V='$(V)'
16083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16084else
16085 AM_V=$AM_DEFAULT_VERBOSITY
16086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
8414a40c 16087fi
80ed523f 16088AM_BACKSLASH='\'
8414a40c 16089
80ed523f
VZ
16090
16091case "${host_os}" in
16092 cygwin* | mingw32* | beos* | darwin*)
16093 ;;
16094 *)
16095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16096$as_echo_n "checking for sin in -lm... " >&6; }
16097if ${ac_cv_lib_m_sin+:} false; then :
16098 $as_echo_n "(cached) " >&6
8414a40c
VZ
16099else
16100 ac_check_lib_save_LIBS=$LIBS
80ed523f
VZ
16101LIBS="-lm $LIBS"
16102cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
16103/* end confdefs.h. */
16104
31cb0113
VZ
16105/* Override any GCC internal prototype to avoid an error.
16106 Use char because int might match the return type of a GCC
16107 builtin and then its argument prototype would still apply. */
8414a40c
VZ
16108#ifdef __cplusplus
16109extern "C"
16110#endif
80ed523f 16111char sin ();
8414a40c
VZ
16112int
16113main ()
16114{
80ed523f 16115return sin ();
8414a40c
VZ
16116 ;
16117 return 0;
16118}
16119_ACEOF
80ed523f
VZ
16120if ac_fn_c_try_link "$LINENO"; then :
16121 ac_cv_lib_m_sin=yes
8414a40c 16122else
80ed523f 16123 ac_cv_lib_m_sin=no
8414a40c 16124fi
80ed523f
VZ
16125rm -f core conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
8414a40c
VZ
16127LIBS=$ac_check_lib_save_LIBS
16128fi
80ed523f
VZ
16129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16130$as_echo "$ac_cv_lib_m_sin" >&6; }
16131if test "x$ac_cv_lib_m_sin" = xyes; then :
16132 cat >>confdefs.h <<_ACEOF
16133#define HAVE_LIBM 1
16134_ACEOF
16135
16136 LIBS="-lm $LIBS"
16137
8414a40c
VZ
16138fi
16139
80ed523f
VZ
16140 ;;
16141esac
8414a40c 16142
80ed523f
VZ
16143tiff_libs_private=
16144
16145
16146for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16147do :
16148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16150if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16151 cat >>confdefs.h <<_ACEOF
16152#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16153_ACEOF
16154
16155fi
16156
16157done
16158
16159
16160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16161$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16162if ${ac_cv_c_const+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164else
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166/* end confdefs.h. */
8414a40c 16167
8414a40c
VZ
16168int
16169main ()
16170{
80ed523f
VZ
16171
16172#ifndef __cplusplus
16173 /* Ultrix mips cc rejects this sort of thing. */
16174 typedef int charset[2];
16175 const charset cs = { 0, 0 };
16176 /* SunOS 4.1.1 cc rejects this. */
16177 char const *const *pcpcc;
16178 char **ppc;
16179 /* NEC SVR4.0.2 mips cc rejects this. */
16180 struct point {int x, y;};
16181 static struct point const zero = {0,0};
16182 /* AIX XL C 1.02.0.0 rejects this.
16183 It does not let you subtract one const X* pointer from another in
16184 an arm of an if-expression whose if-part is not a constant
16185 expression */
16186 const char *g = "string";
16187 pcpcc = &g + (g ? g-g : 0);
16188 /* HPUX 7.0 cc rejects these. */
16189 ++pcpcc;
16190 ppc = (char**) pcpcc;
16191 pcpcc = (char const *const *) ppc;
16192 { /* SCO 3.2v4 cc rejects this sort of thing. */
16193 char tx;
16194 char *t = &tx;
16195 char const *s = 0 ? (char *) 0 : (char const *) 0;
16196
16197 *t++ = 0;
16198 if (s) return 0;
16199 }
16200 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16201 int x[] = {25, 17};
16202 const int *foo = &x[0];
16203 ++foo;
16204 }
16205 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16206 typedef const int *iptr;
16207 iptr p = 0;
16208 ++p;
16209 }
16210 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16211 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16212 struct s { int j; const int *ap[3]; } bx;
16213 struct s *b = &bx; b->j = 5;
16214 }
16215 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16216 const int foo = 10;
16217 if (!foo) return 0;
16218 }
16219 return !cs[0] && !zero.x;
16220#endif
16221
8414a40c
VZ
16222 ;
16223 return 0;
16224}
16225_ACEOF
80ed523f
VZ
16226if ac_fn_c_try_compile "$LINENO"; then :
16227 ac_cv_c_const=yes
8414a40c 16228else
80ed523f
VZ
16229 ac_cv_c_const=no
16230fi
16231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232fi
16233{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16234$as_echo "$ac_cv_c_const" >&6; }
16235if test $ac_cv_c_const = no; then
16236
16237$as_echo "#define const /**/" >>confdefs.h
8414a40c 16238
8414a40c 16239fi
31cb0113 16240
80ed523f
VZ
16241{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16242$as_echo_n "checking for inline... " >&6; }
16243if ${ac_cv_c_inline+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245else
16246 ac_cv_c_inline=no
16247for ac_kw in inline __inline__ __inline; do
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249/* end confdefs.h. */
16250#ifndef __cplusplus
16251typedef int foo_t;
16252static $ac_kw foo_t static_foo () {return 0; }
16253$ac_kw foo_t foo () {return 0; }
16254#endif
16255
16256_ACEOF
16257if ac_fn_c_try_compile "$LINENO"; then :
16258 ac_cv_c_inline=$ac_kw
8414a40c 16259fi
80ed523f
VZ
16260rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 test "$ac_cv_c_inline" != no && break
16262done
16263
8414a40c 16264fi
80ed523f
VZ
16265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16266$as_echo "$ac_cv_c_inline" >&6; }
8414a40c 16267
80ed523f
VZ
16268case $ac_cv_c_inline in
16269 inline | yes) ;;
16270 *)
16271 case $ac_cv_c_inline in
16272 no) ac_val=;;
16273 *) ac_val=$ac_cv_c_inline;;
16274 esac
16275 cat >>confdefs.h <<_ACEOF
16276#ifndef __cplusplus
16277#define inline $ac_val
16278#endif
16279_ACEOF
16280 ;;
16281esac
8414a40c 16282
80ed523f
VZ
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16284$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16285if ${ac_cv_c_bigendian+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287else
16288 ac_cv_c_bigendian=unknown
16289 # See if we're dealing with a universal compiler.
16290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16291/* end confdefs.h. */
16292#ifndef __APPLE_CC__
16293 not a universal capable compiler
16294 #endif
16295 typedef int dummy;
16296
16297_ACEOF
16298if ac_fn_c_try_compile "$LINENO"; then :
16299
16300 # Check for potential -arch flags. It is not universal unless
16301 # there are at least two -arch flags with different values.
16302 ac_arch=
16303 ac_prev=
16304 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
16305 if test -n "$ac_prev"; then
16306 case $ac_word in
16307 i?86 | x86_64 | ppc | ppc64)
16308 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
16309 ac_arch=$ac_word
16310 else
16311 ac_cv_c_bigendian=universal
16312 break
16313 fi
16314 ;;
16315 esac
16316 ac_prev=
16317 elif test "x$ac_word" = "x-arch"; then
16318 ac_prev=arch
16319 fi
16320 done
8414a40c 16321fi
80ed523f
VZ
16322rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16323 if test $ac_cv_c_bigendian = unknown; then
16324 # See if sys/param.h defines the BYTE_ORDER macro.
16325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16326/* end confdefs.h. */
16327#include <sys/types.h>
16328 #include <sys/param.h>
8414a40c 16329
80ed523f
VZ
16330int
16331main ()
16332{
16333#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
16334 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
16335 && LITTLE_ENDIAN)
16336 bogus endian macros
16337 #endif
8414a40c 16338
80ed523f
VZ
16339 ;
16340 return 0;
16341}
16342_ACEOF
16343if ac_fn_c_try_compile "$LINENO"; then :
16344 # It does; now see whether it defined to BIG_ENDIAN or not.
16345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16346/* end confdefs.h. */
16347#include <sys/types.h>
16348 #include <sys/param.h>
8414a40c 16349
80ed523f
VZ
16350int
16351main ()
16352{
16353#if BYTE_ORDER != BIG_ENDIAN
16354 not big endian
16355 #endif
8414a40c 16356
80ed523f
VZ
16357 ;
16358 return 0;
16359}
16360_ACEOF
16361if ac_fn_c_try_compile "$LINENO"; then :
16362 ac_cv_c_bigendian=yes
16363else
16364 ac_cv_c_bigendian=no
16365fi
16366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367fi
16368rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16369 fi
16370 if test $ac_cv_c_bigendian = unknown; then
16371 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
16372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16373/* end confdefs.h. */
16374#include <limits.h>
8414a40c 16375
80ed523f
VZ
16376int
16377main ()
16378{
16379#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16380 bogus endian macros
16381 #endif
8414a40c 16382
80ed523f
VZ
16383 ;
16384 return 0;
16385}
16386_ACEOF
16387if ac_fn_c_try_compile "$LINENO"; then :
16388 # It does; now see whether it defined to _BIG_ENDIAN or not.
16389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16390/* end confdefs.h. */
16391#include <limits.h>
8414a40c 16392
80ed523f
VZ
16393int
16394main ()
16395{
16396#ifndef _BIG_ENDIAN
16397 not big endian
16398 #endif
8414a40c 16399
80ed523f
VZ
16400 ;
16401 return 0;
16402}
8414a40c 16403_ACEOF
80ed523f
VZ
16404if ac_fn_c_try_compile "$LINENO"; then :
16405 ac_cv_c_bigendian=yes
16406else
16407 ac_cv_c_bigendian=no
16408fi
16409rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410fi
16411rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16412 fi
16413 if test $ac_cv_c_bigendian = unknown; then
16414 # Compile a test program.
16415 if test "$cross_compiling" = yes; then :
16416 # Try to guess by grepping values from an object file.
16417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 16418/* end confdefs.h. */
80ed523f
VZ
16419short int ascii_mm[] =
16420 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16421 short int ascii_ii[] =
16422 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16423 int use_ascii (int i) {
16424 return ascii_mm[i] + ascii_ii[i];
16425 }
16426 short int ebcdic_ii[] =
16427 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16428 short int ebcdic_mm[] =
16429 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16430 int use_ebcdic (int i) {
16431 return ebcdic_mm[i] + ebcdic_ii[i];
16432 }
16433 extern int foo;
8414a40c 16434
8414a40c
VZ
16435int
16436main ()
16437{
80ed523f 16438return use_ascii (foo) == use_ebcdic (foo);
8414a40c
VZ
16439 ;
16440 return 0;
16441}
16442_ACEOF
80ed523f
VZ
16443if ac_fn_c_try_compile "$LINENO"; then :
16444 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
16445 ac_cv_c_bigendian=yes
16446 fi
16447 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
16448 if test "$ac_cv_c_bigendian" = unknown; then
16449 ac_cv_c_bigendian=no
16450 else
16451 # finding both strings is unlikely to happen, but who knows?
16452 ac_cv_c_bigendian=unknown
16453 fi
16454 fi
16455fi
16456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8414a40c 16457else
80ed523f
VZ
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459/* end confdefs.h. */
16460$ac_includes_default
16461int
16462main ()
16463{
8414a40c 16464
80ed523f
VZ
16465 /* Are we little or big endian? From Harbison&Steele. */
16466 union
16467 {
16468 long int l;
16469 char c[sizeof (long int)];
16470 } u;
16471 u.l = 1;
16472 return u.c[sizeof (long int) - 1] == 1;
31cb0113 16473
80ed523f
VZ
16474 ;
16475 return 0;
16476}
16477_ACEOF
16478if ac_fn_c_try_run "$LINENO"; then :
16479 ac_cv_c_bigendian=no
16480else
16481 ac_cv_c_bigendian=yes
16482fi
16483rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16484 conftest.$ac_objext conftest.beam conftest.$ac_ext
8414a40c 16485fi
31cb0113 16486
80ed523f 16487 fi
8414a40c 16488fi
80ed523f
VZ
16489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16490$as_echo "$ac_cv_c_bigendian" >&6; }
16491 case $ac_cv_c_bigendian in #(
16492 yes)
16493 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16494;; #(
16495 no)
16496 ;; #(
16497 universal)
8414a40c 16498
80ed523f 16499$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
8414a40c 16500
80ed523f
VZ
16501 ;; #(
16502 *)
16503 as_fn_error $? "unknown endianness
16504 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16505 esac
8414a40c 16506
80ed523f
VZ
16507ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16508if test "x$ac_cv_type_off_t" = xyes; then :
8414a40c 16509
80ed523f 16510else
8414a40c 16511
80ed523f
VZ
16512cat >>confdefs.h <<_ACEOF
16513#define off_t long int
16514_ACEOF
8414a40c 16515
80ed523f 16516fi
8414a40c 16517
80ed523f
VZ
16518ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16519if test "x$ac_cv_type_size_t" = xyes; then :
8414a40c 16520
8414a40c 16521else
8414a40c 16522
80ed523f
VZ
16523cat >>confdefs.h <<_ACEOF
16524#define size_t unsigned int
16525_ACEOF
16526
8414a40c
VZ
16527fi
16528
80ed523f
VZ
16529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
16530$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
16531if ${ac_cv_header_time+:} false; then :
16532 $as_echo_n "(cached) " >&6
16533else
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 16535/* end confdefs.h. */
80ed523f
VZ
16536#include <sys/types.h>
16537#include <sys/time.h>
16538#include <time.h>
16539
8414a40c
VZ
16540int
16541main ()
16542{
80ed523f
VZ
16543if ((struct tm *) 0)
16544return 0;
8414a40c
VZ
16545 ;
16546 return 0;
16547}
16548_ACEOF
80ed523f
VZ
16549if ac_fn_c_try_compile "$LINENO"; then :
16550 ac_cv_header_time=yes
8414a40c 16551else
80ed523f 16552 ac_cv_header_time=no
8414a40c 16553fi
80ed523f
VZ
16554rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555fi
16556{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16557$as_echo "$ac_cv_header_time" >&6; }
16558if test $ac_cv_header_time = yes; then
31cb0113 16559
80ed523f 16560$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
8414a40c 16561
8414a40c
VZ
16562fi
16563
80ed523f
VZ
16564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
16565$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
16566if ${ac_cv_struct_tm+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 16570/* end confdefs.h. */
80ed523f
VZ
16571#include <sys/types.h>
16572#include <time.h>
16573
8414a40c
VZ
16574int
16575main ()
16576{
80ed523f
VZ
16577struct tm tm;
16578 int *p = &tm.tm_sec;
16579 return !p;
8414a40c
VZ
16580 ;
16581 return 0;
16582}
16583_ACEOF
80ed523f
VZ
16584if ac_fn_c_try_compile "$LINENO"; then :
16585 ac_cv_struct_tm=time.h
8414a40c 16586else
80ed523f
VZ
16587 ac_cv_struct_tm=sys/time.h
16588fi
16589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590fi
16591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16592$as_echo "$ac_cv_struct_tm" >&6; }
16593if test $ac_cv_struct_tm = sys/time.h; then
8414a40c 16594
80ed523f 16595$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
31cb0113 16596
8414a40c 16597fi
31cb0113 16598
80ed523f
VZ
16599
16600
16601# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
16602# The cast to long int works around a bug in the HP C Compiler
16603# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16604# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16605# This bug is HP SR number 8606223364.
16606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
16607$as_echo_n "checking size of signed short... " >&6; }
16608if ${ac_cv_sizeof_signed_short+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610else
16611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
16612
16613else
16614 if test "$ac_cv_type_signed_short" = yes; then
16615 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16616$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16617as_fn_error 77 "cannot compute sizeof (signed short)
16618See \`config.log' for more details" "$LINENO" 5; }
16619 else
16620 ac_cv_sizeof_signed_short=0
16621 fi
16622fi
16623
16624fi
16625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
16626$as_echo "$ac_cv_sizeof_signed_short" >&6; }
16627
16628
8414a40c
VZ
16629
16630cat >>confdefs.h <<_ACEOF
80ed523f 16631#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
8414a40c
VZ
16632_ACEOF
16633
8414a40c 16634
8414a40c 16635
80ed523f
VZ
16636# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
16637# The cast to long int works around a bug in the HP C Compiler
16638# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16639# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16640# This bug is HP SR number 8606223364.
16641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
16642$as_echo_n "checking size of unsigned short... " >&6; }
16643if ${ac_cv_sizeof_unsigned_short+:} false; then :
16644 $as_echo_n "(cached) " >&6
8414a40c 16645else
80ed523f 16646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
8414a40c 16647
8414a40c 16648else
80ed523f
VZ
16649 if test "$ac_cv_type_unsigned_short" = yes; then
16650 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16651$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16652as_fn_error 77 "cannot compute sizeof (unsigned short)
16653See \`config.log' for more details" "$LINENO" 5; }
16654 else
16655 ac_cv_sizeof_unsigned_short=0
16656 fi
8414a40c
VZ
16657fi
16658
8414a40c 16659fi
80ed523f
VZ
16660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16661$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
8414a40c
VZ
16662
16663
16664
80ed523f
VZ
16665cat >>confdefs.h <<_ACEOF
16666#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16667_ACEOF
8414a40c
VZ
16668
16669
8414a40c 16670
80ed523f
VZ
16671# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
16672# The cast to long int works around a bug in the HP C Compiler
16673# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16674# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16675# This bug is HP SR number 8606223364.
16676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
16677$as_echo_n "checking size of signed int... " >&6; }
16678if ${ac_cv_sizeof_signed_int+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680else
16681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
8414a40c 16682
8414a40c 16683else
80ed523f
VZ
16684 if test "$ac_cv_type_signed_int" = yes; then
16685 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16686$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16687as_fn_error 77 "cannot compute sizeof (signed int)
16688See \`config.log' for more details" "$LINENO" 5; }
16689 else
16690 ac_cv_sizeof_signed_int=0
16691 fi
16692fi
8414a40c
VZ
16693
16694fi
80ed523f
VZ
16695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16696$as_echo "$ac_cv_sizeof_signed_int" >&6; }
8414a40c
VZ
16697
16698
16699
80ed523f
VZ
16700cat >>confdefs.h <<_ACEOF
16701#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16702_ACEOF
8414a40c 16703
8414a40c 16704
8414a40c 16705
80ed523f
VZ
16706# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
16707# The cast to long int works around a bug in the HP C Compiler
16708# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16709# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16710# This bug is HP SR number 8606223364.
16711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
16712$as_echo_n "checking size of unsigned int... " >&6; }
16713if ${ac_cv_sizeof_unsigned_int+:} false; then :
16714 $as_echo_n "(cached) " >&6
16715else
16716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
8414a40c 16717
8414a40c 16718else
80ed523f
VZ
16719 if test "$ac_cv_type_unsigned_int" = yes; then
16720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16721$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16722as_fn_error 77 "cannot compute sizeof (unsigned int)
16723See \`config.log' for more details" "$LINENO" 5; }
16724 else
16725 ac_cv_sizeof_unsigned_int=0
16726 fi
16727fi
8414a40c 16728
80ed523f
VZ
16729fi
16730{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16731$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
8414a40c 16732
8414a40c 16733
8414a40c 16734
80ed523f
VZ
16735cat >>confdefs.h <<_ACEOF
16736#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
8414a40c 16737_ACEOF
80ed523f
VZ
16738
16739
16740
16741# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
16742# The cast to long int works around a bug in the HP C Compiler
16743# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16744# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16745# This bug is HP SR number 8606223364.
16746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
16747$as_echo_n "checking size of signed long... " >&6; }
16748if ${ac_cv_sizeof_signed_long+:} false; then :
16749 $as_echo_n "(cached) " >&6
8414a40c 16750else
80ed523f 16751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
8414a40c 16752
80ed523f
VZ
16753else
16754 if test "$ac_cv_type_signed_long" = yes; then
16755 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16756$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16757as_fn_error 77 "cannot compute sizeof (signed long)
16758See \`config.log' for more details" "$LINENO" 5; }
16759 else
16760 ac_cv_sizeof_signed_long=0
16761 fi
8414a40c 16762fi
31cb0113 16763
8414a40c 16764fi
80ed523f
VZ
16765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16766$as_echo "$ac_cv_sizeof_signed_long" >&6; }
8414a40c 16767
8414a40c
VZ
16768
16769
80ed523f
VZ
16770cat >>confdefs.h <<_ACEOF
16771#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
8414a40c 16772_ACEOF
80ed523f
VZ
16773
16774
16775
16776# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
16777# The cast to long int works around a bug in the HP C Compiler
16778# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16779# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16780# This bug is HP SR number 8606223364.
16781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
16782$as_echo_n "checking size of unsigned long... " >&6; }
16783if ${ac_cv_sizeof_unsigned_long+:} false; then :
16784 $as_echo_n "(cached) " >&6
8414a40c 16785else
80ed523f 16786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
8414a40c 16787
80ed523f
VZ
16788else
16789 if test "$ac_cv_type_unsigned_long" = yes; then
16790 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16792as_fn_error 77 "cannot compute sizeof (unsigned long)
16793See \`config.log' for more details" "$LINENO" 5; }
16794 else
16795 ac_cv_sizeof_unsigned_long=0
16796 fi
8414a40c 16797fi
31cb0113 16798
80ed523f
VZ
16799fi
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16801$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
8414a40c 16802
80ed523f
VZ
16803
16804
16805cat >>confdefs.h <<_ACEOF
16806#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
8414a40c 16807_ACEOF
8414a40c 16808
31cb0113 16809
8414a40c 16810
80ed523f
VZ
16811# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG.
16812# If 'long long' is not supported then the value defined is zero.
16813# The cast to long int works around a bug in the HP C Compiler
16814# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16815# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16816# This bug is HP SR number 8606223364.
16817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
16818$as_echo_n "checking size of signed long long... " >&6; }
16819if ${ac_cv_sizeof_signed_long_long+:} false; then :
16820 $as_echo_n "(cached) " >&6
8414a40c 16821else
80ed523f 16822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
8414a40c 16823
80ed523f
VZ
16824else
16825 if test "$ac_cv_type_signed_long_long" = yes; then
16826 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16827$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16828as_fn_error 77 "cannot compute sizeof (signed long long)
16829See \`config.log' for more details" "$LINENO" 5; }
16830 else
16831 ac_cv_sizeof_signed_long_long=0
16832 fi
8414a40c 16833fi
8414a40c
VZ
16834
16835fi
80ed523f
VZ
16836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
16837$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
8414a40c 16838
8414a40c
VZ
16839
16840
80ed523f
VZ
16841cat >>confdefs.h <<_ACEOF
16842#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
8414a40c 16843_ACEOF
8414a40c 16844
8414a40c 16845
31cb0113 16846
80ed523f
VZ
16847# Obtain size of a 'unsigned long long' and define as
16848# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
16849# supported then the value defined is zero.
16850# The cast to long int works around a bug in the HP C Compiler
16851# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16852# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16853# This bug is HP SR number 8606223364.
16854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
16855$as_echo_n "checking size of unsigned long long... " >&6; }
16856if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16857 $as_echo_n "(cached) " >&6
16858else
16859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
31cb0113 16860
80ed523f
VZ
16861else
16862 if test "$ac_cv_type_unsigned_long_long" = yes; then
16863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16864$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16865as_fn_error 77 "cannot compute sizeof (unsigned long long)
16866See \`config.log' for more details" "$LINENO" 5; }
16867 else
16868 ac_cv_sizeof_unsigned_long_long=0
16869 fi
8414a40c 16870fi
8414a40c
VZ
16871
16872fi
80ed523f
VZ
16873{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
16874$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
8414a40c
VZ
16875
16876
16877
80ed523f
VZ
16878cat >>confdefs.h <<_ACEOF
16879#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16880_ACEOF
8414a40c
VZ
16881
16882
16883
80ed523f
VZ
16884# Obtain the size of an 'unsigned char *' and define as
16885# SIZEOF_UNSIGNED_CHAR_P. Result is available in
16886# ac_cv_sizeof_unsigned_char_p.
16887# The cast to long int works around a bug in the HP C Compiler
16888# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16889# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16890# This bug is HP SR number 8606223364.
16891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned char *" >&5
16892$as_echo_n "checking size of unsigned char *... " >&6; }
16893if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
16894 $as_echo_n "(cached) " >&6
8414a40c 16895else
80ed523f 16896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
8414a40c 16897
8414a40c 16898else
80ed523f
VZ
16899 if test "$ac_cv_type_unsigned_char_p" = yes; then
16900 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16901$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16902as_fn_error 77 "cannot compute sizeof (unsigned char *)
16903See \`config.log' for more details" "$LINENO" 5; }
16904 else
16905 ac_cv_sizeof_unsigned_char_p=0
16906 fi
8414a40c
VZ
16907fi
16908
8414a40c 16909fi
80ed523f
VZ
16910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_char_p" >&5
16911$as_echo "$ac_cv_sizeof_unsigned_char_p" >&6; }
8414a40c 16912
8414a40c 16913
31cb0113 16914
80ed523f
VZ
16915cat >>confdefs.h <<_ACEOF
16916#define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
16917_ACEOF
8414a40c 16918
8414a40c 16919
8414a40c 16920
80ed523f
VZ
16921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
16922$as_echo_n "checking for signed 8-bit type... " >&6; }
16923INT8_T='signed char'
16924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
16925$as_echo "$INT8_T" >&6; }
16926
16927cat >>confdefs.h <<_ACEOF
16928#define TIFF_INT8_T $INT8_T
8414a40c 16929_ACEOF
8414a40c 16930
8414a40c 16931
80ed523f
VZ
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
16933$as_echo_n "checking for unsigned 8-bit type... " >&6; }
16934UINT8_T='unsigned char'
16935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
16936$as_echo "$UINT8_T" >&6; }
16937
16938cat >>confdefs.h <<_ACEOF
16939#define TIFF_UINT8_T $UINT8_T
8414a40c 16940_ACEOF
8414a40c 16941
31cb0113 16942
80ed523f
VZ
16943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
16944$as_echo_n "checking for signed 16-bit type... " >&6; }
16945INT16_T='signed short'
16946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
16947$as_echo "$INT16_T" >&6; }
8414a40c 16948
80ed523f
VZ
16949cat >>confdefs.h <<_ACEOF
16950#define TIFF_INT16_T $INT16_T
8414a40c 16951_ACEOF
8414a40c 16952
8414a40c 16953
80ed523f
VZ
16954
16955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
16956$as_echo_n "checking for unsigned 16-bit type... " >&6; }
16957UINT16_T='unsigned short'
16958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
16959$as_echo "$UINT16_T" >&6; }
16960
16961cat >>confdefs.h <<_ACEOF
16962#define TIFF_UINT16_T $UINT16_T
8414a40c 16963_ACEOF
8414a40c 16964
80ed523f
VZ
16965
16966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
16967$as_echo_n "checking for signed 32-bit type... " >&6; }
16968INT32_T='none'
16969INT32_FORMAT='none'
16970if test $ac_cv_sizeof_signed_int -eq 4
16971then
16972 INT32_T='signed int'
16973 INT32_FORMAT='"%d"'
16974elif test $ac_cv_sizeof_signed_long -eq 4
16975then
16976 INT32_T='signed long'
16977 INT32_FORMAT='"%ld"'
16978fi
16979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
16980$as_echo "$INT32_T" >&6; }
16981
16982cat >>confdefs.h <<_ACEOF
16983#define TIFF_INT32_T $INT32_T
8414a40c 16984_ACEOF
31cb0113 16985
31cb0113 16986
80ed523f
VZ
16987cat >>confdefs.h <<_ACEOF
16988#define TIFF_INT32_FORMAT $INT32_FORMAT
8414a40c 16989_ACEOF
8414a40c 16990
80ed523f
VZ
16991
16992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
16993$as_echo_n "checking for unsigned 32-bit type... " >&6; }
16994UINT32_T='none'
16995UINT32_FORMAT='none'
16996if test $ac_cv_sizeof_unsigned_int -eq 4
16997then
16998 UINT32_T='unsigned int'
16999 UINT32_FORMAT='"%u"'
17000elif test $ac_cv_sizeof_unsigned_long -eq 4
17001then
17002 UINT32_T='unsigned long'
17003 UINT32_FORMAT='"%lu"'
17004fi
17005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17006$as_echo "$UINT32_T" >&6; }
17007
17008cat >>confdefs.h <<_ACEOF
17009#define TIFF_UINT32_T $UINT32_T
8414a40c 17010_ACEOF
31cb0113 17011
31cb0113 17012
80ed523f
VZ
17013cat >>confdefs.h <<_ACEOF
17014#define TIFF_UINT32_FORMAT $UINT32_FORMAT
8414a40c 17015_ACEOF
8414a40c 17016
31cb0113 17017
80ed523f
VZ
17018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
17019$as_echo_n "checking for signed 64-bit type... " >&6; }
17020INT64_T='none'
17021INT64_FORMAT='none'
17022if test $ac_cv_sizeof_signed_long -eq 8
17023then
17024 INT64_T='signed long'
17025 INT64_FORMAT='"%ld"'
17026elif test $ac_cv_sizeof_signed_long_long -eq 8
17027then
17028 INT64_T='signed long long'
17029 case "${host_os}" in
17030 mingw32*)
17031 # MinGW32 understands 'long long', but uses printf from WIN32 CRT
17032 INT64_FORMAT='"%I64d"'
17033 ;;
17034 *)
17035 INT64_FORMAT='"%lld"'
17036 ;;
17037 esac
8414a40c 17038fi
31cb0113 17039
8414a40c 17040
80ed523f
VZ
17041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17042$as_echo "$INT64_T" >&6; }
31cb0113 17043
80ed523f
VZ
17044cat >>confdefs.h <<_ACEOF
17045#define TIFF_INT64_T $INT64_T
17046_ACEOF
8414a40c 17047
8414a40c 17048
80ed523f
VZ
17049cat >>confdefs.h <<_ACEOF
17050#define TIFF_INT64_FORMAT $INT64_FORMAT
17051_ACEOF
8414a40c 17052
8414a40c 17053
80ed523f
VZ
17054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
17055$as_echo_n "checking for unsigned 64-bit type... " >&6; }
17056UINT64_T='none'
17057UINT64_FORMAT='none'
17058if test $ac_cv_sizeof_unsigned_long -eq 8
17059then
17060 UINT64_T='unsigned long'
17061 UINT64_FORMAT='"%lu"'
17062elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17063then
17064 UINT64_T='unsigned long long'
17065 case "${host_os}" in
17066 mingw32*)
17067 # MinGW32 understands 'unsigned long long', but uses printf from WIN32 CRT
17068 UINT64_FORMAT='"%I64u"'
8414a40c 17069 ;;
80ed523f
VZ
17070 *)
17071 UINT64_FORMAT='"%llu"'
17072 ;;
17073 esac
8414a40c 17074fi
80ed523f
VZ
17075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17076$as_echo "$UINT64_T" >&6; }
8414a40c 17077
80ed523f
VZ
17078cat >>confdefs.h <<_ACEOF
17079#define TIFF_UINT64_T $UINT64_T
17080_ACEOF
8414a40c
VZ
17081
17082
80ed523f
VZ
17083cat >>confdefs.h <<_ACEOF
17084#define TIFF_UINT64_FORMAT $UINT64_FORMAT
17085_ACEOF
8414a40c 17086
8414a40c 17087
80ed523f
VZ
17088# Determine TIFF equivalent of ssize_t
17089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed size type" >&5
17090$as_echo_n "checking for signed size type... " >&6; }
17091SSIZE_T='unknown'
17092SSIZE_FORMAT='unknown'
17093if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17094then
17095 SSIZE_T='signed long'
17096 SSIZE_FORMAT='"%ld"'
17097elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17098then
17099 SSIZE_T='signed long long'
17100 SSIZE_FORMAT='"%lld"'
17101fi
17102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17103$as_echo "$SSIZE_T" >&6; }
8414a40c 17104
80ed523f
VZ
17105cat >>confdefs.h <<_ACEOF
17106#define TIFF_SSIZE_T $SSIZE_T
8414a40c 17107_ACEOF
80ed523f
VZ
17108
17109
17110cat >>confdefs.h <<_ACEOF
17111#define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
8414a40c 17112_ACEOF
8414a40c 17113
80ed523f
VZ
17114
17115# Determine the type to use for the difference between two pointers.
17116# We will default to the POSIX ptrdiff_t if it is available, but will
17117# be prepared for the case when it is not.
17118PTRDIFF_T='unknown'
17119PTRDIFF_FORMAT='"%ld"'
17120ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17121if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17122 PTRDIFF_T=ptrdiff_t
8414a40c 17123fi
31cb0113 17124
80ed523f
VZ
17125if test $PTRDIFF_T = unknown
17126then
17127 PTRDIFF_T=$SSIZE_T
17128 PTRDIFF_FORMAT=$SSIZE_FORMAT
17129fi
17130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
17131$as_echo_n "checking for pointer difference type... " >&6; }
17132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTRDIFF_T" >&5
17133$as_echo "$PTRDIFF_T" >&6; }
8414a40c 17134
80ed523f
VZ
17135cat >>confdefs.h <<_ACEOF
17136#define TIFF_PTRDIFF_T $PTRDIFF_T
8414a40c 17137_ACEOF
80ed523f
VZ
17138
17139
17140cat >>confdefs.h <<_ACEOF
17141#define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
8414a40c 17142_ACEOF
8414a40c 17143
31cb0113 17144
80ed523f
VZ
17145ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17146#if HAVE_INTTYPES_H
17147# include <inttypes.h>
17148#endif
17149
17150"
17151if test "x$ac_cv_type_int8" = xyes; then :
17152
17153cat >>confdefs.h <<_ACEOF
17154#define HAVE_INT8 1
17155_ACEOF
17156
8414a40c 17157
8414a40c 17158fi
80ed523f
VZ
17159ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17160#if HAVE_INTTYPES_H
17161# include <inttypes.h>
17162#endif
17163
17164"
17165if test "x$ac_cv_type_int16" = xyes; then :
17166
17167cat >>confdefs.h <<_ACEOF
17168#define HAVE_INT16 1
17169_ACEOF
8414a40c 17170
8414a40c
VZ
17171
17172fi
80ed523f
VZ
17173ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17174#if HAVE_INTTYPES_H
17175# include <inttypes.h>
8414a40c 17176#endif
80ed523f
VZ
17177
17178"
17179if test "x$ac_cv_type_int32" = xyes; then :
17180
17181cat >>confdefs.h <<_ACEOF
17182#define HAVE_INT32 1
8414a40c 17183_ACEOF
8414a40c 17184
80ed523f 17185
8414a40c 17186fi
31cb0113 17187
8414a40c 17188
80ed523f
VZ
17189for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17190do :
17191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17192ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17193if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17194 cat >>confdefs.h <<_ACEOF
17195#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
8414a40c 17196_ACEOF
8414a40c 17197
8414a40c 17198fi
80ed523f 17199done
31cb0113 17200
8414a40c 17201
80ed523f
VZ
17202ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17203if test "x$ac_cv_func_getopt" = xyes; then :
17204 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17205
8414a40c 17206else
80ed523f
VZ
17207 case " $LIBOBJS " in
17208 *" getopt.$ac_objext "* ) ;;
17209 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17210 ;;
17211esac
17212
8414a40c
VZ
17213fi
17214
80ed523f
VZ
17215
17216ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17217if test "x$ac_cv_func_strcasecmp" = xyes; then :
17218 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
8414a40c
VZ
17219
17220else
80ed523f
VZ
17221 case " $LIBOBJS " in
17222 *" strcasecmp.$ac_objext "* ) ;;
17223 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17224 ;;
17225esac
17226
8414a40c
VZ
17227fi
17228
17229
80ed523f
VZ
17230ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17231if test "x$ac_cv_func_strtoul" = xyes; then :
17232 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
8414a40c 17233
8414a40c 17234else
80ed523f
VZ
17235 case " $LIBOBJS " in
17236 *" strtoul.$ac_objext "* ) ;;
17237 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17238 ;;
17239esac
8414a40c
VZ
17240
17241fi
80ed523f
VZ
17242
17243
17244ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17245if test "x$ac_cv_func_strtoull" = xyes; then :
17246 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17247
8414a40c 17248else
80ed523f
VZ
17249 case " $LIBOBJS " in
17250 *" strtoull.$ac_objext "* ) ;;
17251 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17252 ;;
17253esac
17254
8414a40c
VZ
17255fi
17256
31cb0113 17257
80ed523f
VZ
17258ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17259if test "x$ac_cv_func_lfind" = xyes; then :
17260 $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17261
8414a40c 17262else
80ed523f
VZ
17263 case " $LIBOBJS " in
17264 *" lfind.$ac_objext "* ) ;;
17265 *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17266 ;;
17267esac
8414a40c
VZ
17268
17269fi
80ed523f
VZ
17270
17271
17272
17273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking native cpu bit order" >&5
17274$as_echo_n "checking native cpu bit order... " >&6; }
17275case "$host_cpu" in
17276 i*86*|x86_64*)
17277 HOST_FILLORDER=FILLORDER_LSB2MSB
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lsb2msb" >&5
17279$as_echo "lsb2msb" >&6; }
17280 ;;
17281 *)
17282 HOST_FILLORDER=FILLORDER_MSB2LSB
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: msb2lsb" >&5
17284$as_echo "msb2lsb" >&6; }
17285 ;;
17286esac
17287
17288cat >>confdefs.h <<_ACEOF
17289#define HOST_FILLORDER $HOST_FILLORDER
17290_ACEOF
17291
17292
17293if test "$ac_cv_c_bigendian" = yes ; then
17294 HOST_BIGENDIAN=1
8414a40c 17295else
80ed523f 17296 HOST_BIGENDIAN=0
8414a40c
VZ
17297fi
17298
80ed523f
VZ
17299cat >>confdefs.h <<_ACEOF
17300#define HOST_BIGENDIAN $HOST_BIGENDIAN
17301_ACEOF
31cb0113 17302
8414a40c 17303
80ed523f
VZ
17304#_POSIX_C_SOURCE=2
17305#AC_DEFINE_UNQUOTED(_POSIX_C_SOURCE, $_POSIX_C_SOURCE, [Define this macro to a positive integer to control which POSIX functionality is made available.])
17306
17307HAVE_IEEEFP=1
17308
17309cat >>confdefs.h <<_ACEOF
17310#define HAVE_IEEEFP $HAVE_IEEEFP
17311_ACEOF
17312
17313
17314
17315# Check whether --enable-rpath was given.
17316if test "${enable_rpath+set}" = set; then :
17317 enableval=$enable_rpath; HAVE_RPATH=$enableval
17318else
17319 HAVE_RPATH=no
8414a40c
VZ
17320fi
17321
80ed523f
VZ
17322 if test "$HAVE_RPATH" = "yes"; then
17323 HAVE_RPATH_TRUE=
17324 HAVE_RPATH_FALSE='#'
17325else
17326 HAVE_RPATH_TRUE='#'
17327 HAVE_RPATH_FALSE=
31cb0113 17328fi
8414a40c 17329
80ed523f
VZ
17330
17331
17332# Check whether --enable-largefile was given.
17333if test "${enable_largefile+set}" = set; then :
17334 enableval=$enable_largefile;
17335fi
17336
17337if test "$enable_largefile" != no; then
17338
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
17340$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
17341if ${ac_cv_sys_largefile_CC+:} false; then :
17342 $as_echo_n "(cached) " >&6
8414a40c 17343else
80ed523f
VZ
17344 ac_cv_sys_largefile_CC=no
17345 if test "$GCC" != yes; then
17346 ac_save_CC=$CC
17347 while :; do
17348 # IRIX 6.2 and later do not support large files by default,
17349 # so use the C compiler's -n32 option if that helps.
17350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 17351/* end confdefs.h. */
80ed523f
VZ
17352#include <sys/types.h>
17353 /* Check that off_t can represent 2**63 - 1 correctly.
17354 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17355 since some C++ compilers masquerading as C compilers
17356 incorrectly reject 9223372036854775807. */
17357#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17358 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17359 && LARGE_OFF_T % 2147483647 == 1)
17360 ? 1 : -1];
8414a40c
VZ
17361int
17362main ()
17363{
8414a40c
VZ
17364
17365 ;
17366 return 0;
17367}
17368_ACEOF
80ed523f
VZ
17369 if ac_fn_c_try_compile "$LINENO"; then :
17370 break
8414a40c 17371fi
80ed523f
VZ
17372rm -f core conftest.err conftest.$ac_objext
17373 CC="$CC -n32"
17374 if ac_fn_c_try_compile "$LINENO"; then :
17375 ac_cv_sys_largefile_CC=' -n32'; break
8414a40c 17376fi
80ed523f
VZ
17377rm -f core conftest.err conftest.$ac_objext
17378 break
17379 done
17380 CC=$ac_save_CC
17381 rm -f conftest.$ac_ext
17382 fi
17383fi
17384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
17385$as_echo "$ac_cv_sys_largefile_CC" >&6; }
17386 if test "$ac_cv_sys_largefile_CC" != no; then
17387 CC=$CC$ac_cv_sys_largefile_CC
17388 fi
17389
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
17391$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
17392if ${ac_cv_sys_file_offset_bits+:} false; then :
17393 $as_echo_n "(cached) " >&6
8414a40c 17394else
80ed523f
VZ
17395 while :; do
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 17397/* end confdefs.h. */
80ed523f
VZ
17398#include <sys/types.h>
17399 /* Check that off_t can represent 2**63 - 1 correctly.
17400 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17401 since some C++ compilers masquerading as C compilers
17402 incorrectly reject 9223372036854775807. */
17403#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17404 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17405 && LARGE_OFF_T % 2147483647 == 1)
17406 ? 1 : -1];
8414a40c
VZ
17407int
17408main ()
17409{
17410
17411 ;
17412 return 0;
17413}
17414_ACEOF
80ed523f
VZ
17415if ac_fn_c_try_compile "$LINENO"; then :
17416 ac_cv_sys_file_offset_bits=no; break
17417fi
17418rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 17420/* end confdefs.h. */
80ed523f
VZ
17421#define _FILE_OFFSET_BITS 64
17422#include <sys/types.h>
17423 /* Check that off_t can represent 2**63 - 1 correctly.
17424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17425 since some C++ compilers masquerading as C compilers
17426 incorrectly reject 9223372036854775807. */
17427#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17429 && LARGE_OFF_T % 2147483647 == 1)
17430 ? 1 : -1];
8414a40c
VZ
17431int
17432main ()
17433{
31cb0113 17434
8414a40c
VZ
17435 ;
17436 return 0;
17437}
17438_ACEOF
80ed523f
VZ
17439if ac_fn_c_try_compile "$LINENO"; then :
17440 ac_cv_sys_file_offset_bits=64; break
17441fi
17442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 ac_cv_sys_file_offset_bits=unknown
17444 break
17445done
17446fi
17447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
17448$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
17449case $ac_cv_sys_file_offset_bits in #(
17450 no | unknown) ;;
17451 *)
17452cat >>confdefs.h <<_ACEOF
17453#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17454_ACEOF
17455;;
31cb0113 17456esac
80ed523f
VZ
17457rm -rf conftest*
17458 if test $ac_cv_sys_file_offset_bits = unknown; then
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
17460$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
17461if ${ac_cv_sys_large_files+:} false; then :
17462 $as_echo_n "(cached) " >&6
8414a40c 17463else
80ed523f
VZ
17464 while :; do
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c 17466/* end confdefs.h. */
80ed523f
VZ
17467#include <sys/types.h>
17468 /* Check that off_t can represent 2**63 - 1 correctly.
17469 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17470 since some C++ compilers masquerading as C compilers
17471 incorrectly reject 9223372036854775807. */
17472#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17473 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17474 && LARGE_OFF_T % 2147483647 == 1)
17475 ? 1 : -1];
8414a40c
VZ
17476int
17477main ()
17478{
31cb0113 17479
8414a40c
VZ
17480 ;
17481 return 0;
17482}
17483_ACEOF
80ed523f
VZ
17484if ac_fn_c_try_compile "$LINENO"; then :
17485 ac_cv_sys_large_files=no; break
8414a40c 17486fi
31cb0113 17487rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80ed523f
VZ
17488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17489/* end confdefs.h. */
17490#define _LARGE_FILES 1
17491#include <sys/types.h>
17492 /* Check that off_t can represent 2**63 - 1 correctly.
17493 We can't simply define LARGE_OFF_T to be 9223372036854775807,
17494 since some C++ compilers masquerading as C compilers
17495 incorrectly reject 9223372036854775807. */
17496#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
17497 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
17498 && LARGE_OFF_T % 2147483647 == 1)
17499 ? 1 : -1];
17500int
17501main ()
17502{
31cb0113 17503
80ed523f
VZ
17504 ;
17505 return 0;
17506}
17507_ACEOF
17508if ac_fn_c_try_compile "$LINENO"; then :
17509 ac_cv_sys_large_files=1; break
8414a40c 17510fi
31cb0113 17511rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
80ed523f
VZ
17512 ac_cv_sys_large_files=unknown
17513 break
17514done
31cb0113 17515fi
80ed523f
VZ
17516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17517$as_echo "$ac_cv_sys_large_files" >&6; }
17518case $ac_cv_sys_large_files in #(
17519 no | unknown) ;;
17520 *)
17521cat >>confdefs.h <<_ACEOF
17522#define _LARGE_FILES $ac_cv_sys_large_files
17523_ACEOF
17524;;
17525esac
17526rm -rf conftest*
31cb0113 17527 fi
80ed523f
VZ
17528
17529
31cb0113 17530fi
8414a40c 17531
8414a40c 17532
8414a40c 17533
80ed523f 17534LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
8414a40c 17535
8414a40c 17536
80ed523f
VZ
17537# Check whether --with-docdir was given.
17538if test "${with_docdir+set}" = set; then :
17539 withval=$with_docdir;
8414a40c
VZ
17540fi
17541
80ed523f
VZ
17542if test "x$with_docdir" != "x" ; then
17543 LIBTIFF_DOCDIR=$with_docdir
8414a40c 17544fi
8414a40c
VZ
17545
17546
17547
80ed523f
VZ
17548
17549# Check whether --enable-ccitt was given.
17550if test "${enable_ccitt+set}" = set; then :
17551 enableval=$enable_ccitt; HAVE_CCITT=$enableval
8414a40c 17552else
80ed523f 17553 HAVE_CCITT=yes
8414a40c
VZ
17554fi
17555
17556
80ed523f 17557if test "$HAVE_CCITT" = "yes" ; then
8414a40c 17558
80ed523f 17559$as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
8414a40c 17560
80ed523f 17561fi
8414a40c 17562
80ed523f
VZ
17563# Check whether --enable-packbits was given.
17564if test "${enable_packbits+set}" = set; then :
17565 enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17566else
17567 HAVE_PACKBITS=yes
17568fi
8414a40c 17569
8414a40c 17570
80ed523f 17571if test "$HAVE_PACKBITS" = "yes" ; then
8414a40c 17572
80ed523f 17573$as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
8414a40c 17574
80ed523f 17575fi
8414a40c 17576
80ed523f
VZ
17577# Check whether --enable-lzw was given.
17578if test "${enable_lzw+set}" = set; then :
17579 enableval=$enable_lzw; HAVE_LZW=$enableval
17580else
17581 HAVE_LZW=yes
17582fi
8414a40c
VZ
17583
17584
80ed523f 17585if test "$HAVE_LZW" = "yes" ; then
8414a40c 17586
80ed523f 17587$as_echo "#define LZW_SUPPORT 1" >>confdefs.h
8414a40c 17588
80ed523f 17589fi
8414a40c 17590
80ed523f
VZ
17591# Check whether --enable-thunder was given.
17592if test "${enable_thunder+set}" = set; then :
17593 enableval=$enable_thunder; HAVE_THUNDER=$enableval
17594else
17595 HAVE_THUNDER=yes
17596fi
8414a40c 17597
8414a40c 17598
80ed523f 17599if test "$HAVE_THUNDER" = "yes" ; then
8414a40c 17600
80ed523f 17601$as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
8414a40c 17602
80ed523f 17603fi
8414a40c 17604
80ed523f 17605HAVE_NEXT=yes
8414a40c 17606
80ed523f
VZ
17607# Check whether --enable-next was given.
17608if test "${enable_next+set}" = set; then :
17609 enableval=$enable_next; HAVE_NEXT=$enableval
17610else
17611 HAVE_NEXT=yes
17612fi
8414a40c 17613
8414a40c 17614
80ed523f 17615if test "$HAVE_NEXT" = "yes" ; then
8414a40c 17616
80ed523f 17617$as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
8414a40c 17618
31cb0113
VZ
17619fi
17620
80ed523f
VZ
17621# Check whether --enable-logluv was given.
17622if test "${enable_logluv+set}" = set; then :
17623 enableval=$enable_logluv; HAVE_LOGLUV=$enableval
8414a40c 17624else
80ed523f 17625 HAVE_LOGLUV=yes
8414a40c
VZ
17626fi
17627
80ed523f
VZ
17628
17629if test "$HAVE_LOGLUV" = "yes" ; then
17630
17631$as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17632
8414a40c 17633fi
80ed523f
VZ
17634
17635
17636# Check whether --enable-mdi was given.
17637if test "${enable_mdi+set}" = set; then :
17638 enableval=$enable_mdi; HAVE_MDI=$enableval
8414a40c 17639else
80ed523f 17640 HAVE_MDI=yes
8414a40c 17641fi
8414a40c
VZ
17642
17643
80ed523f 17644if test "$HAVE_MDI" = "yes" ; then
8414a40c 17645
80ed523f 17646$as_echo "#define MDI_SUPPORT 1" >>confdefs.h
8414a40c 17647
80ed523f 17648fi
8414a40c
VZ
17649
17650
80ed523f 17651HAVE_ZLIB=no
8414a40c 17652
80ed523f
VZ
17653# Check whether --enable-zlib was given.
17654if test "${enable_zlib+set}" = set; then :
17655 enableval=$enable_zlib;
17656fi
8414a40c 17657
8414a40c 17658
80ed523f
VZ
17659# Check whether --with-zlib-include-dir was given.
17660if test "${with_zlib_include_dir+set}" = set; then :
17661 withval=$with_zlib_include_dir;
17662fi
8414a40c 17663
8414a40c 17664
80ed523f
VZ
17665# Check whether --with-zlib-lib-dir was given.
17666if test "${with_zlib_lib_dir+set}" = set; then :
17667 withval=$with_zlib_lib_dir;
17668fi
8414a40c 17669
8414a40c 17670
80ed523f 17671if test "x$enable_zlib" != "xno" ; then
8414a40c 17672
80ed523f
VZ
17673 if test "x$with_zlib_lib_dir" != "x" ; then
17674 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17675 fi
8414a40c 17676
80ed523f
VZ
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17678$as_echo_n "checking for inflateEnd in -lz... " >&6; }
17679if ${ac_cv_lib_z_inflateEnd+:} false; then :
17680 $as_echo_n "(cached) " >&6
17681else
17682 ac_check_lib_save_LIBS=$LIBS
17683LIBS="-lz $LIBS"
17684cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
17685/* end confdefs.h. */
17686
80ed523f
VZ
17687/* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17690#ifdef __cplusplus
17691extern "C"
17692#endif
17693char inflateEnd ();
8414a40c
VZ
17694int
17695main ()
17696{
80ed523f 17697return inflateEnd ();
8414a40c
VZ
17698 ;
17699 return 0;
17700}
17701_ACEOF
80ed523f
VZ
17702if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_lib_z_inflateEnd=yes
17704else
17705 ac_cv_lib_z_inflateEnd=no
17706fi
17707rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709LIBS=$ac_check_lib_save_LIBS
8414a40c 17710fi
80ed523f
VZ
17711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17712$as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17713if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17714 zlib_lib=yes
8414a40c 17715else
80ed523f
VZ
17716 zlib_lib=no
17717fi
8414a40c 17718
80ed523f
VZ
17719 if test "$zlib_lib" = "no" -a "x$with_zlib_lib_dir" != "x"; then
17720 as_fn_error $? "Zlib library not found at $with_zlib_lib_dir" "$LINENO" 5
17721 fi
31cb0113 17722
80ed523f
VZ
17723 if test "x$with_zlib_include_dir" != "x" ; then
17724 CPPFLAGS="-I$with_zlib_include_dir $CPPFLAGS"
17725 fi
17726 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
17727if test "x$ac_cv_header_zlib_h" = xyes; then :
17728 zlib_h=yes
17729else
17730 zlib_h=no
8414a40c 17731fi
31cb0113 17732
8414a40c 17733
80ed523f
VZ
17734 if test "$zlib_h" = "no" -a "x$with_zlib_include_dir" != "x" ; then
17735 as_fn_error $? "Zlib headers not found at $with_zlib_include_dir" "$LINENO" 5
17736 fi
8414a40c 17737
80ed523f
VZ
17738 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17739 HAVE_ZLIB=yes
17740 fi
8414a40c 17741
8414a40c 17742fi
8414a40c 17743
80ed523f
VZ
17744if test "$HAVE_ZLIB" = "yes" ; then
17745
17746$as_echo "#define ZIP_SUPPORT 1" >>confdefs.h
17747
17748 LIBS="-lz $LIBS"
17749 tiff_libs_private="-lz ${tiff_libs_private}"
17750
17751 if test "$HAVE_RPATH" = "yes" -a "x$with_zlib_lib_dir" != "x" ; then
17752 LIBDIR="-R $with_zlib_lib_dir $LIBDIR"
17753 fi
31cb0113 17754
8414a40c 17755fi
31cb0113 17756
8414a40c 17757
80ed523f
VZ
17758# Check whether --enable-pixarlog was given.
17759if test "${enable_pixarlog+set}" = set; then :
17760 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17761else
17762 HAVE_PIXARLOG=yes
17763fi
8414a40c 17764
8414a40c 17765
80ed523f 17766if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
8414a40c 17767
80ed523f 17768$as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
8414a40c 17769
8414a40c 17770else
80ed523f 17771 HAVE_PIXARLOG=no
8414a40c
VZ
17772fi
17773
8414a40c 17774
80ed523f 17775HAVE_JPEG=no
8414a40c 17776
80ed523f
VZ
17777# Check whether --enable-jpeg was given.
17778if test "${enable_jpeg+set}" = set; then :
17779 enableval=$enable_jpeg;
17780fi
8414a40c 17781
8414a40c 17782
80ed523f
VZ
17783# Check whether --with-jpeg-include-dir was given.
17784if test "${with_jpeg_include_dir+set}" = set; then :
17785 withval=$with_jpeg_include_dir;
17786fi
8414a40c 17787
8414a40c 17788
80ed523f
VZ
17789# Check whether --with-jpeg-lib-dir was given.
17790if test "${with_jpeg_lib_dir+set}" = set; then :
17791 withval=$with_jpeg_lib_dir;
17792fi
8414a40c 17793
8414a40c 17794
80ed523f 17795if test "x$enable_jpeg" != "xno" ; then
8414a40c 17796
80ed523f
VZ
17797 if test "x$with_jpeg_lib_dir" != "x" ; then
17798 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
8414a40c 17799
80ed523f 17800 fi
8414a40c 17801
80ed523f
VZ
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_scanlines in -ljpeg" >&5
17803$as_echo_n "checking for jpeg_read_scanlines in -ljpeg... " >&6; }
17804if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17805 $as_echo_n "(cached) " >&6
17806else
17807 ac_check_lib_save_LIBS=$LIBS
17808LIBS="-ljpeg $LIBS"
17809cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810/* end confdefs.h. */
8414a40c 17811
80ed523f
VZ
17812/* Override any GCC internal prototype to avoid an error.
17813 Use char because int might match the return type of a GCC
17814 builtin and then its argument prototype would still apply. */
17815#ifdef __cplusplus
17816extern "C"
17817#endif
17818char jpeg_read_scanlines ();
17819int
17820main ()
17821{
17822return jpeg_read_scanlines ();
17823 ;
17824 return 0;
17825}
17826_ACEOF
17827if ac_fn_c_try_link "$LINENO"; then :
17828 ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17829else
17830 ac_cv_lib_jpeg_jpeg_read_scanlines=no
17831fi
17832rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834LIBS=$ac_check_lib_save_LIBS
17835fi
17836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_scanlines" >&5
17837$as_echo "$ac_cv_lib_jpeg_jpeg_read_scanlines" >&6; }
17838if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
17839 jpeg_lib=yes
17840else
17841 jpeg_lib=no
17842fi
8414a40c 17843
80ed523f
VZ
17844 if test "$jpeg_lib" = "no" -a "x$with_jpeg_lib_dir" != "x" ; then
17845 as_fn_error $? "IJG JPEG library not found at $with_jpeg_lib_dir" "$LINENO" 5
17846 fi
8414a40c 17847
80ed523f
VZ
17848 if test "x$with_jpeg_include_dir" != "x" ; then
17849 CPPFLAGS="-I$with_jpeg_include_dir $CPPFLAGS"
17850 fi
17851 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
17852if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17853 jpeg_h=yes
17854else
17855 jpeg_h=no
17856fi
8414a40c 17857
8414a40c 17858
80ed523f
VZ
17859 if test "$jpeg_h" = "no" -a "x$with_jpeg_include_dir" != "x" ; then
17860 as_fn_error $? "IJG JPEG library headers not found at $with_jpeg_include_dir" "$LINENO" 5
17861 fi
8414a40c 17862
80ed523f
VZ
17863 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
17864 HAVE_JPEG=yes
17865 fi
8414a40c 17866
80ed523f 17867fi
8414a40c 17868
80ed523f
VZ
17869if test "$HAVE_JPEG" = "yes" ; then
17870
17871$as_echo "#define JPEG_SUPPORT 1" >>confdefs.h
17872
17873 LIBS="-ljpeg $LIBS"
17874 tiff_libs_private="-ljpeg ${tiff_libs_private}"
17875
17876 if test "$HAVE_RPATH" = "yes" -a "x$with_jpeg_lib_dir" != "x" ; then
17877 LIBDIR="-R $with_jpeg_lib_dir $LIBDIR"
8414a40c
VZ
17878 fi
17879
80ed523f 17880fi
8414a40c
VZ
17881
17882
80ed523f
VZ
17883# Check whether --enable-old-jpeg was given.
17884if test "${enable_old_jpeg+set}" = set; then :
17885 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
17886else
17887 HAVE_OJPEG=yes
17888fi
17889
17890
17891if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
17892
17893$as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
8414a40c 17894
8414a40c 17895else
80ed523f
VZ
17896 HAVE_OJPEG=no
17897fi
17898
8414a40c 17899
80ed523f
VZ
17900HAVE_JBIG=no
17901
17902# Check whether --enable-jbig was given.
17903if test "${enable_jbig+set}" = set; then :
17904 enableval=$enable_jbig;
8414a40c 17905fi
8414a40c 17906
80ed523f
VZ
17907
17908# Check whether --with-jbig-include-dir was given.
17909if test "${with_jbig_include_dir+set}" = set; then :
17910 withval=$with_jbig_include_dir;
8414a40c
VZ
17911fi
17912
80ed523f
VZ
17913
17914# Check whether --with-jbig-lib-dir was given.
17915if test "${with_jbig_lib_dir+set}" = set; then :
17916 withval=$with_jbig_lib_dir;
8414a40c
VZ
17917fi
17918
17919
80ed523f 17920if test "x$enable_jbig" != "xno" ; then
8414a40c 17921
80ed523f
VZ
17922 if test "x$with_jbig_lib_dir" != "x" ; then
17923 LDFLAGS="-L$with_jbig_lib_dir $LDFLAGS"
17924
17925 fi
17926
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
17928$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
17929if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
17930 $as_echo_n "(cached) " >&6
8414a40c 17931else
80ed523f
VZ
17932 ac_check_lib_save_LIBS=$LIBS
17933LIBS="-ljbig $LIBS"
17934cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935/* end confdefs.h. */
8414a40c 17936
80ed523f
VZ
17937/* Override any GCC internal prototype to avoid an error.
17938 Use char because int might match the return type of a GCC
17939 builtin and then its argument prototype would still apply. */
17940#ifdef __cplusplus
17941extern "C"
17942#endif
17943char jbg_dec_init ();
17944int
17945main ()
17946{
17947return jbg_dec_init ();
17948 ;
17949 return 0;
17950}
17951_ACEOF
17952if ac_fn_c_try_link "$LINENO"; then :
17953 ac_cv_lib_jbig_jbg_dec_init=yes
17954else
17955 ac_cv_lib_jbig_jbg_dec_init=no
17956fi
17957rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959LIBS=$ac_check_lib_save_LIBS
17960fi
17961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
17962$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
17963if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
17964 jbig_lib=yes
17965else
17966 jbig_lib=no
8414a40c 17967fi
8414a40c 17968
80ed523f
VZ
17969 if test "$jbig_lib" = "no" -a "x$with_jbig_lib_dir" != "x" ; then
17970 as_fn_error $? "JBIG-KIT library not found at $with_jbig_lib_dir" "$LINENO" 5
17971 fi
17972
17973 if test "x$with_jbig_include_dir" != "x" ; then
17974 CPPFLAGS="-I$with_jbig_include_dir $CPPFLAGS"
17975 fi
17976 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
17977if test "x$ac_cv_header_jbig_h" = xyes; then :
17978 jbig_h=yes
8414a40c 17979else
80ed523f 17980 jbig_h=no
8414a40c
VZ
17981fi
17982
17983
80ed523f
VZ
17984 if test "$jbig_h" = "no" -a "x$with_jbig_include_dir" != "x" ; then
17985 as_fn_error $? "JBIG-KIT library headers not found at $with_jbig_include_dir" "$LINENO" 5
17986 fi
8414a40c 17987
80ed523f
VZ
17988 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
17989 HAVE_JBIG=yes
17990 fi
8414a40c 17991
80ed523f 17992fi
8414a40c 17993
80ed523f
VZ
17994if test "$HAVE_JBIG" = "yes" ; then
17995
17996$as_echo "#define JBIG_SUPPORT 1" >>confdefs.h
17997
17998 LIBS="-ljbig $LIBS"
17999 tiff_libs_private="-ljbig ${tiff_libs_private}"
18000
18001 if test "$HAVE_RPATH" = "yes" -a "x$with_jbig_lib_dir" != "x" ; then
18002 LIBDIR="-R $with_jbig_lib_dir $LIBDIR"
18003 fi
18004
18005 # Older versions of jbigkit lack jbg_newlen
18006 for ac_func in jbg_newlen
18007do :
18008 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18009if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18010 cat >>confdefs.h <<_ACEOF
18011#define HAVE_JBG_NEWLEN 1
18012_ACEOF
8414a40c
VZ
18013
18014fi
80ed523f 18015done
8414a40c
VZ
18016
18017
80ed523f 18018fi
8414a40c 18019
8414a40c 18020
80ed523f 18021HAVE_LZMA=no
8414a40c 18022
80ed523f
VZ
18023# Check whether --enable-lzma was given.
18024if test "${enable_lzma+set}" = set; then :
18025 enableval=$enable_lzma;
8414a40c 18026fi
8414a40c
VZ
18027
18028
80ed523f
VZ
18029# Check whether --with-lzma-include-dir was given.
18030if test "${with_lzma_include_dir+set}" = set; then :
18031 withval=$with_lzma_include_dir;
18032fi
8414a40c
VZ
18033
18034
80ed523f
VZ
18035# Check whether --with-lzma-lib-dir was given.
18036if test "${with_lzma_lib_dir+set}" = set; then :
18037 withval=$with_lzma_lib_dir;
8414a40c
VZ
18038fi
18039
18040
80ed523f 18041if test "x$enable_lzma" != "xno" ; then
8414a40c 18042
80ed523f
VZ
18043 if test "x$with_lzma_lib_dir" != "x" ; then
18044 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18045 fi
8414a40c 18046
80ed523f
VZ
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lzma_code in -llzma" >&5
18048$as_echo_n "checking for lzma_code in -llzma... " >&6; }
18049if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051else
18052 ac_check_lib_save_LIBS=$LIBS
18053LIBS="-llzma $LIBS"
18054cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18055/* end confdefs.h. */
18056
18057/* Override any GCC internal prototype to avoid an error.
18058 Use char because int might match the return type of a GCC
18059 builtin and then its argument prototype would still apply. */
18060#ifdef __cplusplus
18061extern "C"
18062#endif
18063char lzma_code ();
18064int
18065main ()
18066{
18067return lzma_code ();
18068 ;
18069 return 0;
18070}
18071_ACEOF
18072if ac_fn_c_try_link "$LINENO"; then :
18073 ac_cv_lib_lzma_lzma_code=yes
18074else
18075 ac_cv_lib_lzma_lzma_code=no
18076fi
18077rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079LIBS=$ac_check_lib_save_LIBS
18080fi
18081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lzma_lzma_code" >&5
18082$as_echo "$ac_cv_lib_lzma_lzma_code" >&6; }
18083if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18084 lzma_lib=yes
18085else
18086 lzma_lib=no
18087fi
18088
18089 if test "$lzma_lib" = "no" -a "x$with_lzma_lib_dir" != "x"; then
18090 as_fn_error $? "lzma library not found at $with_lzma_lib_dir" "$LINENO" 5
18091 fi
18092
18093 if test "x$with_lzma_include_dir" != "x" ; then
18094 CPPFLAGS="-I$with_lzma_include_dir $CPPFLAGS"
18095 fi
18096 ac_fn_c_check_header_mongrel "$LINENO" "lzma.h" "ac_cv_header_lzma_h" "$ac_includes_default"
18097if test "x$ac_cv_header_lzma_h" = xyes; then :
18098 lzma_h=yes
18099else
18100 lzma_h=no
18101fi
8414a40c 18102
8414a40c 18103
80ed523f
VZ
18104 if test "$lzma_h" = "no" -a "x$with_lzma_include_dir" != "x" ; then
18105 as_fn_error $? "Liblzma headers not found at $with_lzma_include_dir" "$LINENO" 5
18106 fi
8414a40c 18107
80ed523f
VZ
18108 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18109 HAVE_LZMA=yes
18110 fi
8414a40c 18111
80ed523f 18112fi
8414a40c 18113
80ed523f 18114if test "$HAVE_LZMA" = "yes" ; then
8414a40c 18115
80ed523f 18116$as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
8414a40c 18117
80ed523f
VZ
18118 LIBS="-llzma $LIBS"
18119 tiff_libs_private="-llzma ${tiff_libs_private}"
8414a40c 18120
80ed523f
VZ
18121 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18122 LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18123 fi
8414a40c 18124
80ed523f 18125fi
8414a40c 18126
80ed523f
VZ
18127
18128HAVE_JPEG12=no
18129
18130# Check whether --enable-jpeg12 was given.
18131if test "${enable_jpeg12+set}" = set; then :
18132 enableval=$enable_jpeg12;
18133fi
18134
18135
18136# Check whether --with-jpeg12-include-dir was given.
18137if test "${with_jpeg12_include_dir+set}" = set; then :
18138 withval=$with_jpeg12_include_dir;
18139fi
18140
18141
18142# Check whether --with-jpeg12-lib was given.
18143if test "${with_jpeg12_lib+set}" = set; then :
18144 withval=$with_jpeg12_lib;
18145fi
18146
18147
18148if test "x$enable_jpeg12" == "xyes" ; then
18149
18150 if test "x$with_jpeg12_lib" != "x" ; then
18151 LIBS="$with_jpeg12_lib $LIBS"
8414a40c 18152 fi
8414a40c 18153
80ed523f 18154 HAVE_JPEG12=yes
8414a40c
VZ
18155
18156
80ed523f 18157$as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
8414a40c 18158
80ed523f 18159 if test "x$with_jpeg12_include_dir" != "x" ; then
8414a40c 18160
80ed523f
VZ
18161cat >>confdefs.h <<_ACEOF
18162#define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18163_ACEOF
8414a40c 18164
80ed523f
VZ
18165 fi
18166fi
8414a40c
VZ
18167
18168
18169
80ed523f
VZ
18170# Check whether --enable-cxx was given.
18171if test "${enable_cxx+set}" = set; then :
18172 enableval=$enable_cxx; HAVE_CXX=$enableval
18173else
18174 HAVE_CXX=yes
18175fi
8414a40c
VZ
18176
18177
80ed523f 18178if test "$HAVE_CXX" = "yes" ; then
8414a40c 18179
80ed523f 18180$as_echo "#define CXX_SUPPORT 1" >>confdefs.h
8414a40c 18181
80ed523f
VZ
18182else
18183 HAVE_CXX=no
18184fi
8414a40c 18185
80ed523f
VZ
18186 if test "$HAVE_CXX" = "yes"; then
18187 HAVE_CXX_TRUE=
18188 HAVE_CXX_FALSE='#'
18189else
18190 HAVE_CXX_TRUE='#'
18191 HAVE_CXX_FALSE=
18192fi
8414a40c
VZ
18193
18194
18195
80ed523f 18196HAVE_OPENGL=no
8414a40c
VZ
18197
18198
80ed523f
VZ
18199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18200$as_echo_n "checking for X... " >&6; }
8414a40c
VZ
18201
18202
80ed523f
VZ
18203# Check whether --with-x was given.
18204if test "${with_x+set}" = set; then :
18205 withval=$with_x;
18206fi
8414a40c 18207
80ed523f
VZ
18208# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18209if test "x$with_x" = xno; then
18210 # The user explicitly disabled X.
18211 have_x=disabled
18212else
18213 case $x_includes,$x_libraries in #(
18214 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
18215 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
18216 $as_echo_n "(cached) " >&6
18217else
18218 # One or both of the vars are not set, and there is no cached value.
18219ac_x_includes=no ac_x_libraries=no
18220rm -f -r conftest.dir
18221if mkdir conftest.dir; then
18222 cd conftest.dir
18223 cat >Imakefile <<'_ACEOF'
18224incroot:
18225 @echo incroot='${INCROOT}'
18226usrlibdir:
18227 @echo usrlibdir='${USRLIBDIR}'
18228libdir:
18229 @echo libdir='${LIBDIR}'
18230_ACEOF
18231 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
18232 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
18233 for ac_var in incroot usrlibdir libdir; do
18234 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
18235 done
18236 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
18237 for ac_extension in a so sl dylib la dll; do
18238 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
18239 test -f "$ac_im_libdir/libX11.$ac_extension"; then
18240 ac_im_usrlibdir=$ac_im_libdir; break
18241 fi
18242 done
18243 # Screen out bogus values from the imake configuration. They are
18244 # bogus both because they are the default anyway, and because
18245 # using them would break gcc on systems where it needs fixed includes.
18246 case $ac_im_incroot in
18247 /usr/include) ac_x_includes= ;;
18248 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
18249 esac
18250 case $ac_im_usrlibdir in
18251 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
18252 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
18253 esac
18254 fi
18255 cd ..
18256 rm -f -r conftest.dir
18257fi
8414a40c 18258
80ed523f
VZ
18259# Standard set of common directories for X headers.
18260# Check X11 before X11Rn because it is often a symlink to the current release.
18261ac_x_header_dirs='
18262/usr/X11/include
18263/usr/X11R7/include
18264/usr/X11R6/include
18265/usr/X11R5/include
18266/usr/X11R4/include
8414a40c 18267
80ed523f
VZ
18268/usr/include/X11
18269/usr/include/X11R7
18270/usr/include/X11R6
18271/usr/include/X11R5
18272/usr/include/X11R4
8414a40c 18273
80ed523f
VZ
18274/usr/local/X11/include
18275/usr/local/X11R7/include
18276/usr/local/X11R6/include
18277/usr/local/X11R5/include
18278/usr/local/X11R4/include
8414a40c 18279
80ed523f
VZ
18280/usr/local/include/X11
18281/usr/local/include/X11R7
18282/usr/local/include/X11R6
18283/usr/local/include/X11R5
18284/usr/local/include/X11R4
8414a40c 18285
80ed523f
VZ
18286/usr/X386/include
18287/usr/x386/include
18288/usr/XFree86/include/X11
8414a40c 18289
80ed523f
VZ
18290/usr/include
18291/usr/local/include
18292/usr/unsupported/include
18293/usr/athena/include
18294/usr/local/x11r5/include
18295/usr/lpp/Xamples/include
8414a40c 18296
80ed523f
VZ
18297/usr/openwin/include
18298/usr/openwin/share/include'
8414a40c 18299
80ed523f
VZ
18300if test "$ac_x_includes" = no; then
18301 # Guess where to find include files, by looking for Xlib.h.
18302 # First, try using that file with no special directory specified.
18303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18304/* end confdefs.h. */
18305#include <X11/Xlib.h>
18306_ACEOF
18307if ac_fn_c_try_cpp "$LINENO"; then :
18308 # We can compile using X headers with no special include directory.
18309ac_x_includes=
18310else
18311 for ac_dir in $ac_x_header_dirs; do
18312 if test -r "$ac_dir/X11/Xlib.h"; then
18313 ac_x_includes=$ac_dir
18314 break
18315 fi
18316done
18317fi
18318rm -f conftest.err conftest.i conftest.$ac_ext
18319fi # $ac_x_includes = no
8414a40c 18320
80ed523f
VZ
18321if test "$ac_x_libraries" = no; then
18322 # Check for the libraries.
18323 # See if we find them without any special options.
18324 # Don't add to $LIBS permanently.
18325 ac_save_LIBS=$LIBS
18326 LIBS="-lX11 $LIBS"
18327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18328/* end confdefs.h. */
18329#include <X11/Xlib.h>
18330int
18331main ()
18332{
18333XrmInitialize ()
18334 ;
18335 return 0;
18336}
18337_ACEOF
18338if ac_fn_c_try_link "$LINENO"; then :
18339 LIBS=$ac_save_LIBS
18340# We can link X programs with no special library path.
18341ac_x_libraries=
18342else
18343 LIBS=$ac_save_LIBS
18344for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18345do
18346 # Don't even attempt the hair of trying to link an X program!
18347 for ac_extension in a so sl dylib la dll; do
18348 if test -r "$ac_dir/libX11.$ac_extension"; then
18349 ac_x_libraries=$ac_dir
18350 break 2
18351 fi
18352 done
18353done
18354fi
18355rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357fi # $ac_x_libraries = no
8414a40c 18358
80ed523f
VZ
18359case $ac_x_includes,$ac_x_libraries in #(
18360 no,* | *,no | *\'*)
18361 # Didn't find X, or a directory has "'" in its name.
18362 ac_cv_have_x="have_x=no";; #(
18363 *)
18364 # Record where we found X for the cache.
18365 ac_cv_have_x="have_x=yes\
18366 ac_x_includes='$ac_x_includes'\
18367 ac_x_libraries='$ac_x_libraries'"
18368esac
18369fi
18370;; #(
18371 *) have_x=yes;;
18372 esac
18373 eval "$ac_cv_have_x"
18374fi # $with_x != no
8414a40c 18375
80ed523f
VZ
18376if test "$have_x" != yes; then
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
18378$as_echo "$have_x" >&6; }
18379 no_x=yes
18380else
18381 # If each of the values was on the command line, it overrides each guess.
18382 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
18383 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
18384 # Update the cache value to reflect the command line values.
18385 ac_cv_have_x="have_x=yes\
18386 ac_x_includes='$x_includes'\
18387 ac_x_libraries='$x_libraries'"
18388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
18389$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
18390fi
8414a40c 18391
80ed523f
VZ
18392if test "$no_x" = yes; then
18393 # Not all programs may use this symbol, but it does not hurt to define it.
8414a40c 18394
80ed523f 18395$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
8414a40c 18396
80ed523f
VZ
18397 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18398else
18399 if test -n "$x_includes"; then
18400 X_CFLAGS="$X_CFLAGS -I$x_includes"
18401 fi
8414a40c 18402
80ed523f
VZ
18403 # It would also be nice to do this for all -L options, not just this one.
18404 if test -n "$x_libraries"; then
18405 X_LIBS="$X_LIBS -L$x_libraries"
18406 # For Solaris; some versions of Sun CC require a space after -R and
18407 # others require no space. Words are not sufficient . . . .
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
18409$as_echo_n "checking whether -R must be followed by a space... " >&6; }
18410 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
18411 ac_xsave_c_werror_flag=$ac_c_werror_flag
18412 ac_c_werror_flag=yes
18413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18414/* end confdefs.h. */
8414a40c 18415
80ed523f
VZ
18416int
18417main ()
18418{
8414a40c 18419
80ed523f
VZ
18420 ;
18421 return 0;
18422}
18423_ACEOF
18424if ac_fn_c_try_link "$LINENO"; then :
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18426$as_echo "no" >&6; }
18427 X_LIBS="$X_LIBS -R$x_libraries"
18428else
18429 LIBS="$ac_xsave_LIBS -R $x_libraries"
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431/* end confdefs.h. */
8414a40c 18432
80ed523f
VZ
18433int
18434main ()
18435{
8414a40c 18436
80ed523f
VZ
18437 ;
18438 return 0;
18439}
18440_ACEOF
18441if ac_fn_c_try_link "$LINENO"; then :
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18443$as_echo "yes" >&6; }
18444 X_LIBS="$X_LIBS -R $x_libraries"
18445else
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18447$as_echo "neither works" >&6; }
18448fi
18449rm -f core conftest.err conftest.$ac_objext \
18450 conftest$ac_exeext conftest.$ac_ext
18451fi
18452rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18454 ac_c_werror_flag=$ac_xsave_c_werror_flag
18455 LIBS=$ac_xsave_LIBS
18456 fi
8414a40c 18457
80ed523f
VZ
18458 # Check for system-dependent libraries X programs must link with.
18459 # Do this before checking for the system-independent R6 libraries
18460 # (-lICE), since we may need -lsocket or whatever for X linking.
8414a40c 18461
80ed523f
VZ
18462 if test "$ISC" = yes; then
18463 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
18464 else
18465 # Martyn Johnson says this is needed for Ultrix, if the X
18466 # libraries were built with DECnet support. And Karl Berry says
18467 # the Alpha needs dnet_stub (dnet does not exist).
18468 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
18469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18470/* end confdefs.h. */
8414a40c 18471
80ed523f
VZ
18472/* Override any GCC internal prototype to avoid an error.
18473 Use char because int might match the return type of a GCC
18474 builtin and then its argument prototype would still apply. */
18475#ifdef __cplusplus
18476extern "C"
18477#endif
18478char XOpenDisplay ();
18479int
18480main ()
18481{
18482return XOpenDisplay ();
18483 ;
18484 return 0;
18485}
18486_ACEOF
18487if ac_fn_c_try_link "$LINENO"; then :
8414a40c 18488
80ed523f
VZ
18489else
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
18491$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
18492if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18493 $as_echo_n "(cached) " >&6
18494else
18495 ac_check_lib_save_LIBS=$LIBS
18496LIBS="-ldnet $LIBS"
18497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498/* end confdefs.h. */
8414a40c 18499
80ed523f
VZ
18500/* Override any GCC internal prototype to avoid an error.
18501 Use char because int might match the return type of a GCC
18502 builtin and then its argument prototype would still apply. */
18503#ifdef __cplusplus
18504extern "C"
18505#endif
18506char dnet_ntoa ();
18507int
18508main ()
18509{
18510return dnet_ntoa ();
18511 ;
18512 return 0;
18513}
18514_ACEOF
18515if ac_fn_c_try_link "$LINENO"; then :
18516 ac_cv_lib_dnet_dnet_ntoa=yes
18517else
18518 ac_cv_lib_dnet_dnet_ntoa=no
18519fi
18520rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522LIBS=$ac_check_lib_save_LIBS
18523fi
18524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
18525$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
18526if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18527 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18528fi
8414a40c 18529
80ed523f
VZ
18530 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
18531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
18532$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
18533if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18534 $as_echo_n "(cached) " >&6
18535else
18536 ac_check_lib_save_LIBS=$LIBS
18537LIBS="-ldnet_stub $LIBS"
18538cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539/* end confdefs.h. */
8414a40c 18540
80ed523f
VZ
18541/* Override any GCC internal prototype to avoid an error.
18542 Use char because int might match the return type of a GCC
18543 builtin and then its argument prototype would still apply. */
18544#ifdef __cplusplus
18545extern "C"
18546#endif
18547char dnet_ntoa ();
18548int
18549main ()
18550{
18551return dnet_ntoa ();
18552 ;
18553 return 0;
18554}
18555_ACEOF
18556if ac_fn_c_try_link "$LINENO"; then :
18557 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18558else
18559 ac_cv_lib_dnet_stub_dnet_ntoa=no
18560fi
18561rm -f core conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563LIBS=$ac_check_lib_save_LIBS
18564fi
18565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
18566$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
18567if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18568 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18569fi
8414a40c 18570
80ed523f
VZ
18571 fi
18572fi
18573rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS="$ac_xsave_LIBS"
8414a40c 18576
80ed523f
VZ
18577 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
18578 # to get the SysV transport functions.
18579 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
18580 # needs -lnsl.
18581 # The nsl library prevents programs from opening the X display
18582 # on Irix 5.2, according to T.E. Dickey.
18583 # The functions gethostbyname, getservbyname, and inet_addr are
18584 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
18585 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
18586if test "x$ac_cv_func_gethostbyname" = xyes; then :
8414a40c 18587
80ed523f 18588fi
8414a40c 18589
80ed523f
VZ
18590 if test $ac_cv_func_gethostbyname = no; then
18591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
18592$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
18593if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18594 $as_echo_n "(cached) " >&6
18595else
18596 ac_check_lib_save_LIBS=$LIBS
18597LIBS="-lnsl $LIBS"
18598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599/* end confdefs.h. */
8414a40c 18600
80ed523f
VZ
18601/* Override any GCC internal prototype to avoid an error.
18602 Use char because int might match the return type of a GCC
18603 builtin and then its argument prototype would still apply. */
18604#ifdef __cplusplus
18605extern "C"
18606#endif
18607char gethostbyname ();
18608int
18609main ()
18610{
18611return gethostbyname ();
18612 ;
18613 return 0;
18614}
18615_ACEOF
18616if ac_fn_c_try_link "$LINENO"; then :
18617 ac_cv_lib_nsl_gethostbyname=yes
18618else
18619 ac_cv_lib_nsl_gethostbyname=no
18620fi
18621rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623LIBS=$ac_check_lib_save_LIBS
18624fi
18625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18626$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18627if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18629fi
8414a40c 18630
80ed523f
VZ
18631 if test $ac_cv_lib_nsl_gethostbyname = no; then
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
18633$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
18634if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636else
18637 ac_check_lib_save_LIBS=$LIBS
18638LIBS="-lbsd $LIBS"
18639cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640/* end confdefs.h. */
8414a40c 18641
80ed523f
VZ
18642/* Override any GCC internal prototype to avoid an error.
18643 Use char because int might match the return type of a GCC
18644 builtin and then its argument prototype would still apply. */
18645#ifdef __cplusplus
18646extern "C"
18647#endif
18648char gethostbyname ();
18649int
18650main ()
18651{
18652return gethostbyname ();
18653 ;
18654 return 0;
18655}
18656_ACEOF
18657if ac_fn_c_try_link "$LINENO"; then :
18658 ac_cv_lib_bsd_gethostbyname=yes
18659else
18660 ac_cv_lib_bsd_gethostbyname=no
18661fi
18662rm -f core conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18664LIBS=$ac_check_lib_save_LIBS
18665fi
18666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18667$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18668if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18670fi
8414a40c 18671
80ed523f
VZ
18672 fi
18673 fi
8414a40c 18674
80ed523f
VZ
18675 # lieder@skyler.mavd.honeywell.com says without -lsocket,
18676 # socket/setsockopt and other routines are undefined under SCO ODT
18677 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
18678 # on later versions), says Simon Leinen: it contains gethostby*
18679 # variants that don't use the name server (or something). -lsocket
18680 # must be given before -lnsl if both are needed. We assume that
18681 # if connect needs -lnsl, so does gethostbyname.
18682 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
18683if test "x$ac_cv_func_connect" = xyes; then :
8414a40c 18684
80ed523f 18685fi
8414a40c 18686
80ed523f
VZ
18687 if test $ac_cv_func_connect = no; then
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
18689$as_echo_n "checking for connect in -lsocket... " >&6; }
18690if ${ac_cv_lib_socket_connect+:} false; then :
18691 $as_echo_n "(cached) " >&6
18692else
18693 ac_check_lib_save_LIBS=$LIBS
18694LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18695cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696/* end confdefs.h. */
8414a40c 18697
80ed523f
VZ
18698/* Override any GCC internal prototype to avoid an error.
18699 Use char because int might match the return type of a GCC
18700 builtin and then its argument prototype would still apply. */
18701#ifdef __cplusplus
18702extern "C"
18703#endif
18704char connect ();
18705int
18706main ()
18707{
18708return connect ();
18709 ;
18710 return 0;
18711}
18712_ACEOF
18713if ac_fn_c_try_link "$LINENO"; then :
18714 ac_cv_lib_socket_connect=yes
8414a40c 18715else
80ed523f 18716 ac_cv_lib_socket_connect=no
8414a40c 18717fi
80ed523f
VZ
18718rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720LIBS=$ac_check_lib_save_LIBS
18721fi
18722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18723$as_echo "$ac_cv_lib_socket_connect" >&6; }
18724if test "x$ac_cv_lib_socket_connect" = xyes; then :
18725 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18726fi
18727
8414a40c 18728 fi
8414a40c 18729
80ed523f
VZ
18730 # Guillermo Gomez says -lposix is necessary on A/UX.
18731 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18732if test "x$ac_cv_func_remove" = xyes; then :
8414a40c 18733
80ed523f 18734fi
8414a40c 18735
80ed523f
VZ
18736 if test $ac_cv_func_remove = no; then
18737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
18738$as_echo_n "checking for remove in -lposix... " >&6; }
18739if ${ac_cv_lib_posix_remove+:} false; then :
18740 $as_echo_n "(cached) " >&6
18741else
18742 ac_check_lib_save_LIBS=$LIBS
18743LIBS="-lposix $LIBS"
18744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745/* end confdefs.h. */
8414a40c 18746
80ed523f
VZ
18747/* Override any GCC internal prototype to avoid an error.
18748 Use char because int might match the return type of a GCC
18749 builtin and then its argument prototype would still apply. */
18750#ifdef __cplusplus
18751extern "C"
18752#endif
18753char remove ();
18754int
18755main ()
18756{
18757return remove ();
18758 ;
18759 return 0;
18760}
18761_ACEOF
18762if ac_fn_c_try_link "$LINENO"; then :
18763 ac_cv_lib_posix_remove=yes
18764else
18765 ac_cv_lib_posix_remove=no
18766fi
18767rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769LIBS=$ac_check_lib_save_LIBS
18770fi
18771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18772$as_echo "$ac_cv_lib_posix_remove" >&6; }
18773if test "x$ac_cv_lib_posix_remove" = xyes; then :
18774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18775fi
8414a40c 18776
80ed523f 18777 fi
8414a40c 18778
80ed523f
VZ
18779 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18780 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18781if test "x$ac_cv_func_shmat" = xyes; then :
8414a40c 18782
80ed523f 18783fi
8414a40c 18784
80ed523f
VZ
18785 if test $ac_cv_func_shmat = no; then
18786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
18787$as_echo_n "checking for shmat in -lipc... " >&6; }
18788if ${ac_cv_lib_ipc_shmat+:} false; then :
18789 $as_echo_n "(cached) " >&6
18790else
18791 ac_check_lib_save_LIBS=$LIBS
18792LIBS="-lipc $LIBS"
18793cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18794/* end confdefs.h. */
18795
18796/* Override any GCC internal prototype to avoid an error.
18797 Use char because int might match the return type of a GCC
18798 builtin and then its argument prototype would still apply. */
18799#ifdef __cplusplus
18800extern "C"
18801#endif
18802char shmat ();
18803int
18804main ()
18805{
18806return shmat ();
18807 ;
18808 return 0;
18809}
18810_ACEOF
18811if ac_fn_c_try_link "$LINENO"; then :
18812 ac_cv_lib_ipc_shmat=yes
18813else
18814 ac_cv_lib_ipc_shmat=no
18815fi
18816rm -f core conftest.err conftest.$ac_objext \
18817 conftest$ac_exeext conftest.$ac_ext
18818LIBS=$ac_check_lib_save_LIBS
18819fi
18820{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18821$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18822if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18824fi
18825
18826 fi
8414a40c 18827 fi
8414a40c 18828
80ed523f
VZ
18829 # Check for libraries that X11R6 Xt/Xaw programs need.
18830 ac_save_LDFLAGS=$LDFLAGS
18831 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
18832 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
18833 # check for ICE first), but we must link in the order -lSM -lICE or
18834 # we get undefined symbols. So assume we have SM if we have ICE.
18835 # These have to be linked with before -lX11, unlike the other
18836 # libraries we check for below, so use a different variable.
18837 # John Interrante, Karl Berry
18838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
18839$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
18840if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842else
18843 ac_check_lib_save_LIBS=$LIBS
18844LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846/* end confdefs.h. */
8414a40c 18847
80ed523f
VZ
18848/* Override any GCC internal prototype to avoid an error.
18849 Use char because int might match the return type of a GCC
18850 builtin and then its argument prototype would still apply. */
18851#ifdef __cplusplus
18852extern "C"
18853#endif
18854char IceConnectionNumber ();
18855int
18856main ()
18857{
18858return IceConnectionNumber ();
18859 ;
18860 return 0;
18861}
18862_ACEOF
18863if ac_fn_c_try_link "$LINENO"; then :
18864 ac_cv_lib_ICE_IceConnectionNumber=yes
18865else
18866 ac_cv_lib_ICE_IceConnectionNumber=no
18867fi
18868rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870LIBS=$ac_check_lib_save_LIBS
18871fi
18872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18873$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18874if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18875 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18876fi
8414a40c 18877
80ed523f 18878 LDFLAGS=$ac_save_LDFLAGS
8414a40c 18879
80ed523f 18880fi
8414a40c 18881
8414a40c 18882
8414a40c 18883
8414a40c 18884
8414a40c 18885
80ed523f
VZ
18886ac_ext=c
18887ac_cpp='$CPP $CPPFLAGS'
18888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892ax_pthread_ok=no
18893
18894
18895if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
18896 save_CFLAGS="$CFLAGS"
18897 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
18898 save_LIBS="$LIBS"
18899 LIBS="$PTHREAD_LIBS $LIBS"
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
18901$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
18902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18903/* end confdefs.h. */
18904
18905/* Override any GCC internal prototype to avoid an error.
18906 Use char because int might match the return type of a GCC
18907 builtin and then its argument prototype would still apply. */
18908#ifdef __cplusplus
18909extern "C"
18910#endif
18911char pthread_join ();
18912int
18913main ()
18914{
18915return pthread_join ();
18916 ;
18917 return 0;
18918}
18919_ACEOF
18920if ac_fn_c_try_link "$LINENO"; then :
18921 ax_pthread_ok=yes
18922fi
18923rm -f core conftest.err conftest.$ac_objext \
18924 conftest$ac_exeext conftest.$ac_ext
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
18926$as_echo "$ax_pthread_ok" >&6; }
18927 if test x"$ax_pthread_ok" = xno; then
18928 PTHREAD_LIBS=""
18929 PTHREAD_CFLAGS=""
18930 fi
18931 LIBS="$save_LIBS"
18932 CFLAGS="$save_CFLAGS"
18933fi
8414a40c 18934
8414a40c 18935
8414a40c 18936
80ed523f 18937ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
8414a40c 18938
8414a40c 18939
8414a40c 18940
80ed523f
VZ
18941case "${host_cpu}-${host_os}" in
18942 *solaris*)
8414a40c 18943
8414a40c 18944
80ed523f
VZ
18945 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18946 ;;
18947
18948 *-darwin*)
18949 ax_pthread_flags="-pthread $ax_pthread_flags"
8414a40c 18950 ;;
80ed523f
VZ
18951esac
18952
18953if test x"$ax_pthread_ok" = xno; then
18954for flag in $ax_pthread_flags; do
18955
18956 case $flag in
18957 none)
18958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
18959$as_echo_n "checking whether pthreads work without any flags... " >&6; }
18960 ;;
18961
18962 -*)
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
18964$as_echo_n "checking whether pthreads work with $flag... " >&6; }
18965 PTHREAD_CFLAGS="$flag"
18966 ;;
18967
18968 pthread-config)
18969 # Extract the first word of "pthread-config", so it can be a program name with args.
18970set dummy pthread-config; ac_word=$2
18971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18972$as_echo_n "checking for $ac_word... " >&6; }
18973if ${ac_cv_prog_ax_pthread_config+:} false; then :
18974 $as_echo_n "(cached) " >&6
18975else
18976 if test -n "$ax_pthread_config"; then
18977 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18978else
18979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980for as_dir in $PATH
18981do
18982 IFS=$as_save_IFS
18983 test -z "$as_dir" && as_dir=.
18984 for ac_exec_ext in '' $ac_executable_extensions; do
18985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18986 ac_cv_prog_ax_pthread_config="yes"
18987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18988 break 2
8414a40c 18989 fi
80ed523f
VZ
18990done
18991 done
18992IFS=$as_save_IFS
18993
18994 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18995fi
18996fi
18997ax_pthread_config=$ac_cv_prog_ax_pthread_config
18998if test -n "$ax_pthread_config"; then
18999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
19000$as_echo "$ax_pthread_config" >&6; }
19001else
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003$as_echo "no" >&6; }
19004fi
19005
19006
19007 if test x"$ax_pthread_config" = xno; then continue; fi
19008 PTHREAD_CFLAGS="`pthread-config --cflags`"
19009 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
19010 ;;
19011
19012 *)
19013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
19014$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
19015 PTHREAD_LIBS="-l$flag"
19016 ;;
19017 esac
19018
19019 save_LIBS="$LIBS"
19020 save_CFLAGS="$CFLAGS"
19021 LIBS="$PTHREAD_LIBS $LIBS"
19022 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8414a40c 19023
80ed523f
VZ
19024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19025/* end confdefs.h. */
19026#include <pthread.h>
19027 static void routine(void* a) {a=0;}
19028 static void* start_routine(void* a) {return a;}
19029int
19030main ()
19031{
19032pthread_t th; pthread_attr_t attr;
19033 pthread_create(&th,0,start_routine,0);
19034 pthread_join(th, 0);
19035 pthread_attr_init(&attr);
19036 pthread_cleanup_push(routine, 0);
19037 pthread_cleanup_pop(0);
19038 ;
19039 return 0;
19040}
19041_ACEOF
19042if ac_fn_c_try_link "$LINENO"; then :
19043 ax_pthread_ok=yes
19044fi
19045rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
8414a40c 19047
80ed523f
VZ
19048 LIBS="$save_LIBS"
19049 CFLAGS="$save_CFLAGS"
8414a40c 19050
80ed523f
VZ
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19052$as_echo "$ax_pthread_ok" >&6; }
19053 if test "x$ax_pthread_ok" = xyes; then
19054 break;
19055 fi
8414a40c 19056
80ed523f
VZ
19057 PTHREAD_LIBS=""
19058 PTHREAD_CFLAGS=""
19059done
19060fi
8414a40c 19061
80ed523f
VZ
19062if test "x$ax_pthread_ok" = xyes; then
19063 save_LIBS="$LIBS"
19064 LIBS="$PTHREAD_LIBS $LIBS"
19065 save_CFLAGS="$CFLAGS"
19066 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8414a40c 19067
80ed523f
VZ
19068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
19069$as_echo_n "checking for joinable pthread attribute... " >&6; }
19070 attr_name=unknown
19071 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
19072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19073/* end confdefs.h. */
19074#include <pthread.h>
19075int
19076main ()
19077{
19078int attr=$attr; return attr;
19079 ;
19080 return 0;
19081}
19082_ACEOF
19083if ac_fn_c_try_link "$LINENO"; then :
19084 attr_name=$attr; break
19085fi
19086rm -f core conftest.err conftest.$ac_objext \
19087 conftest$ac_exeext conftest.$ac_ext
19088 done
19089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
19090$as_echo "$attr_name" >&6; }
19091 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
8414a40c 19092
80ed523f
VZ
19093cat >>confdefs.h <<_ACEOF
19094#define PTHREAD_CREATE_JOINABLE $attr_name
19095_ACEOF
8414a40c 19096
80ed523f 19097 fi
8414a40c 19098
80ed523f
VZ
19099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
19100$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
19101 flag=no
19102 case "${host_cpu}-${host_os}" in
19103 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
19104 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
19105 esac
19106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
19107$as_echo "${flag}" >&6; }
19108 if test "x$flag" != xno; then
19109 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
19110 fi
8414a40c 19111
80ed523f
VZ
19112 LIBS="$save_LIBS"
19113 CFLAGS="$save_CFLAGS"
8414a40c 19114
80ed523f
VZ
19115 if test x"$GCC" != xyes; then
19116 for ac_prog in xlc_r cc_r
19117do
19118 # Extract the first word of "$ac_prog", so it can be a program name with args.
19119set dummy $ac_prog; ac_word=$2
19120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19121$as_echo_n "checking for $ac_word... " >&6; }
19122if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19123 $as_echo_n "(cached) " >&6
19124else
19125 if test -n "$PTHREAD_CC"; then
19126 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19127else
19128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19129for as_dir in $PATH
19130do
19131 IFS=$as_save_IFS
19132 test -z "$as_dir" && as_dir=.
19133 for ac_exec_ext in '' $ac_executable_extensions; do
19134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19135 ac_cv_prog_PTHREAD_CC="$ac_prog"
19136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19137 break 2
19138 fi
19139done
19140 done
19141IFS=$as_save_IFS
8414a40c 19142
80ed523f
VZ
19143fi
19144fi
19145PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19146if test -n "$PTHREAD_CC"; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19148$as_echo "$PTHREAD_CC" >&6; }
19149else
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151$as_echo "no" >&6; }
8414a40c
VZ
19152fi
19153
19154
80ed523f
VZ
19155 test -n "$PTHREAD_CC" && break
19156done
19157test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19158
19159 else
19160 PTHREAD_CC=$CC
19161 fi
19162else
19163 PTHREAD_CC="$CC"
19164fi
8414a40c
VZ
19165
19166
19167
19168
19169
80ed523f 19170if test x"$ax_pthread_ok" = xyes; then
8414a40c 19171
80ed523f 19172$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
8414a40c 19173
80ed523f
VZ
19174 :
19175else
19176 ax_pthread_ok=no
8414a40c 19177
80ed523f
VZ
19178fi
19179ac_ext=c
19180ac_cpp='$CPP $CPPFLAGS'
19181ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c
VZ
19184
19185
19186
19187
80ed523f
VZ
19188ac_ext=c
19189ac_cpp='$CPP $CPPFLAGS'
19190ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c 19193
80ed523f
VZ
19194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
19195$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
19196if ${ax_cv_c_compiler_ms+:} false; then :
19197 $as_echo_n "(cached) " >&6
19198else
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200/* end confdefs.h. */
8414a40c 19201
80ed523f
VZ
19202int
19203main ()
19204{
19205#ifndef _MSC_VER
19206 choke me
19207#endif
8414a40c 19208
80ed523f
VZ
19209 ;
19210 return 0;
19211}
19212_ACEOF
19213if ac_fn_c_try_compile "$LINENO"; then :
19214 ax_compiler_ms=yes
19215else
19216 ax_compiler_ms=no
19217fi
19218rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219ax_cv_c_compiler_ms=$ax_compiler_ms
8414a40c 19220
80ed523f
VZ
19221fi
19222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19223$as_echo "$ax_cv_c_compiler_ms" >&6; }
19224if test X$ax_compiler_ms = Xno; then :
19225 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19226fi
8414a40c 19227
80ed523f
VZ
19228if test "X$no_x" != "Xyes"; then :
19229 if test -n "$x_includes"; then :
19230 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19231fi
19232 if test -n "$x_libraries"; then :
19233 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19234fi
19235fi
8414a40c 19236
80ed523f
VZ
19237ax_save_CPPFLAGS="${CPPFLAGS}"
19238CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19239for ac_header in GL/gl.h OpenGL/gl.h
19240do :
19241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19243if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19244 cat >>confdefs.h <<_ACEOF
19245#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19246_ACEOF
8414a40c 19247
80ed523f 19248fi
8414a40c 19249
80ed523f 19250done
8414a40c 19251
80ed523f 19252CPPFLAGS="${ax_save_CPPFLAGS}"
8414a40c 19253
80ed523f
VZ
19254for ac_header in windows.h
19255do :
19256 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19257if test "x$ac_cv_header_windows_h" = xyes; then :
19258 cat >>confdefs.h <<_ACEOF
19259#define HAVE_WINDOWS_H 1
19260_ACEOF
8414a40c 19261
80ed523f 19262fi
8414a40c 19263
80ed523f 19264done
8414a40c
VZ
19265
19266
19267
19268
80ed523f
VZ
19269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19270$as_echo_n "checking for OpenGL library... " >&6; }
19271if ${ax_cv_check_gl_libgl+:} false; then :
19272 $as_echo_n "(cached) " >&6
19273else
19274 ax_cv_check_gl_libgl="no"
19275case $host_cpu in
19276 x86_64) ax_check_gl_libdir=lib64 ;;
19277 *) ax_check_gl_libdir=lib ;;
19278esac
19279ax_save_CPPFLAGS="${CPPFLAGS}"
19280CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19281ax_save_LIBS="${LIBS}"
19282LIBS=""
19283ax_check_libs="-lopengl32 -lGL"
19284for ax_lib in ${ax_check_libs}; do
19285 if test X$ax_compiler_ms = Xyes; then :
19286 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19287else
19288 ax_try_lib="${ax_lib}"
19289fi
19290 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19291cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292/* end confdefs.h. */
8414a40c 19293
80ed523f
VZ
19294# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19295# include <windows.h>
19296# endif
19297# ifdef HAVE_GL_GL_H
19298# include <GL/gl.h>
19299# elif defined(HAVE_OPENGL_GL_H)
19300# include <OpenGL/gl.h>
19301# else
19302# error no gl.h
19303# endif
19304int
19305main ()
19306{
19307glBegin(0)
19308 ;
19309 return 0;
19310}
19311_ACEOF
19312if ac_fn_c_try_link "$LINENO"; then :
19313 ax_cv_check_gl_libgl="${ax_try_lib}"; break
19314else
19315 ax_check_gl_nvidia_flags="-L/usr/${ax_check_gl_libdir}/nvidia" LIBS="${ax_try_lib} ${ax_check_gl_nvidia_flags} ${GL_LIBS} ${ax_save_LIBS}"
19316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317/* end confdefs.h. */
8414a40c 19318
80ed523f
VZ
19319# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19320# include <windows.h>
19321# endif
19322# ifdef HAVE_GL_GL_H
19323# include <GL/gl.h>
19324# elif defined(HAVE_OPENGL_GL_H)
19325# include <OpenGL/gl.h>
19326# else
19327# error no gl.h
19328# endif
19329int
19330main ()
19331{
19332glBegin(0)
19333 ;
19334 return 0;
19335}
19336_ACEOF
19337if ac_fn_c_try_link "$LINENO"; then :
19338 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19339else
19340 ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib' LIBS="${ax_try_lib} ${ax_check_gl_dylib_flag} ${GL_LIBS} ${ax_save_LIBS}"
19341cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342/* end confdefs.h. */
8414a40c 19343
80ed523f
VZ
19344# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19345# include <windows.h>
19346# endif
19347# ifdef HAVE_GL_GL_H
19348# include <GL/gl.h>
19349# elif defined(HAVE_OPENGL_GL_H)
19350# include <OpenGL/gl.h>
19351# else
19352# error no gl.h
19353# endif
19354int
19355main ()
19356{
19357glBegin(0)
19358 ;
19359 return 0;
19360}
19361_ACEOF
19362if ac_fn_c_try_link "$LINENO"; then :
19363 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19364fi
19365rm -f core conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
19367fi
19368rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370fi
19371rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373done
8414a40c 19374
80ed523f
VZ
19375if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19376 LIBS='-framework OpenGL'
19377cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378/* end confdefs.h. */
8414a40c 19379
80ed523f
VZ
19380# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19381# include <windows.h>
19382# endif
19383# ifdef HAVE_GL_GL_H
19384# include <GL/gl.h>
19385# elif defined(HAVE_OPENGL_GL_H)
19386# include <OpenGL/gl.h>
19387# else
19388# error no gl.h
19389# endif
19390int
19391main ()
19392{
19393glBegin(0)
19394 ;
19395 return 0;
19396}
19397_ACEOF
19398if ac_fn_c_try_link "$LINENO"; then :
19399 ax_cv_check_gl_libgl="$LIBS"
19400fi
19401rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403fi
8414a40c 19404
80ed523f
VZ
19405LIBS=${ax_save_LIBS}
19406CPPFLAGS=${ax_save_CPPFLAGS}
19407fi
19408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19409$as_echo "$ax_cv_check_gl_libgl" >&6; }
8414a40c 19410
80ed523f
VZ
19411if test "X$ax_cv_check_gl_libgl" = Xno; then :
19412 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
8414a40c 19413else
80ed523f 19414 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
8414a40c 19415fi
80ed523f
VZ
19416ac_ext=c
19417ac_cpp='$CPP $CPPFLAGS'
19418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420ac_compiler_gnu=$ac_cv_c_compiler_gnu
8414a40c 19421
8414a40c
VZ
19422
19423
19424
19425
19426
80ed523f 19427GLU_CFLAGS="${GL_CFLAGS}"
8414a40c 19428
80ed523f
VZ
19429ax_save_CPPFLAGS="${CPPFLAGS}"
19430CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19431for ac_header in GL/glu.h OpenGL/glu.h
19432do :
19433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19434ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19435if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19436 cat >>confdefs.h <<_ACEOF
19437#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19438_ACEOF
8414a40c 19439
80ed523f 19440fi
8414a40c 19441
80ed523f 19442done
8414a40c 19443
80ed523f 19444CPPFLAGS="${ax_save_CPPFLAGS}"
8414a40c
VZ
19445
19446
80ed523f
VZ
19447
19448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL Utility library" >&5
19449$as_echo_n "checking for OpenGL Utility library... " >&6; }
19450if ${ax_cv_check_glu_libglu+:} false; then :
19451 $as_echo_n "(cached) " >&6
8414a40c
VZ
19452else
19453 ax_cv_check_glu_libglu="no"
80ed523f
VZ
19454ax_save_CPPFLAGS="${CPPFLAGS}"
19455CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19456ax_save_LIBS="${LIBS}"
19457
19458LIBS="${GL_LIBS} ${ax_save_LIBS}"
19459ac_ext=cpp
8414a40c
VZ
19460ac_cpp='$CXXCPP $CPPFLAGS'
19461ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19464
80ed523f
VZ
19465if test X$ax_compiler_ms = Xyes; then :
19466 ac_ext=c
8414a40c
VZ
19467ac_cpp='$CPP $CPPFLAGS'
19468ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471
80ed523f
VZ
19472fi
19473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
19474/* end confdefs.h. */
19475
80ed523f 19476# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8414a40c
VZ
19477# include <windows.h>
19478# endif
80ed523f
VZ
19479# ifdef HAVE_GL_GLU_H
19480# include <GL/glu.h>
19481# elif defined(HAVE_OPENGL_GLU_H)
19482# include <OpenGL/glu.h>
19483# else
19484# error no glu.h
19485# endif
8414a40c
VZ
19486int
19487main ()
19488{
19489gluBeginCurve(0)
19490 ;
19491 return 0;
19492}
19493_ACEOF
80ed523f
VZ
19494if ac_fn_c_try_link "$LINENO"; then :
19495 ax_cv_check_glu_libglu=yes
8414a40c 19496else
80ed523f
VZ
19497 LIBS=""
19498ax_check_libs="-lglu32 -lGLU"
19499for ax_lib in ${ax_check_libs}; do
19500 if test X$ax_compiler_ms = Xyes; then :
19501 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
19502else
19503 ax_try_lib="${ax_lib}"
19504fi
19505 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507/* end confdefs.h. */
31cb0113 19508
80ed523f
VZ
19509# if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19510# include <windows.h>
19511# endif
19512# ifdef HAVE_GL_GLU_H
19513# include <GL/glu.h>
19514# elif defined(HAVE_OPENGL_GLU_H)
19515# include <OpenGL/glu.h>
19516# else
19517# error no glu.h
19518# endif
19519int
19520main ()
19521{
19522gluBeginCurve(0)
19523 ;
19524 return 0;
19525}
19526_ACEOF
19527if ac_fn_c_try_link "$LINENO"; then :
19528 ax_cv_check_glu_libglu="${ax_try_lib}"; break
8414a40c 19529fi
80ed523f
VZ
19530rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532done
31cb0113 19533
80ed523f
VZ
19534fi
19535rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537if test X$ax_compiler_ms = Xyes; then :
19538 ac_ext=cpp
8414a40c
VZ
19539ac_cpp='$CXXCPP $CPPFLAGS'
19540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19543
80ed523f
VZ
19544fi
19545ac_ext=c
8414a40c
VZ
19546ac_cpp='$CPP $CPPFLAGS'
19547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19549ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550
8414a40c 19551
80ed523f
VZ
19552LIBS=${ax_save_LIBS}
19553CPPFLAGS=${ax_save_CPPFLAGS}
19554fi
19555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19556$as_echo "$ax_cv_check_glu_libglu" >&6; }
19557if test "X$ax_cv_check_glu_libglu" = Xno; then :
19558 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19559else
19560 if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19561 GLU_LIBS="$GL_LIBS"
19562else
19563 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19564fi
19565fi
8414a40c
VZ
19566
19567
19568
80ed523f
VZ
19569if test "X$ax_cv_check_glu_libglu" != Xno; then :
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for varargs GLU tesselator callback function type" >&5
19571$as_echo_n "checking for varargs GLU tesselator callback function type... " >&6; }
19572if ${ax_cv_varargs_glu_tesscb+:} false; then :
19573 $as_echo_n "(cached) " >&6
8414a40c 19574else
80ed523f
VZ
19575 ax_cv_varargs_glu_tesscb=no
19576ax_save_CFLAGS="$CFLAGS"
19577CFLAGS="$GL_CFLAGS $CFLAGS"
19578cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579/* end confdefs.h. */
8414a40c 19580
80ed523f
VZ
19581# ifdef HAVE_GL_GLU_H
19582# include <GL/glu.h>
19583# else
19584# include <OpenGL/glu.h>
19585# endif
19586int
19587main ()
19588{
19589GLvoid (*func)(...); gluTessCallback(0, 0, func)
19590 ;
19591 return 0;
19592}
19593_ACEOF
19594if ac_fn_c_try_compile "$LINENO"; then :
19595 ax_cv_varargs_glu_tesscb=yes
19596fi
19597rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598CFLAGS="$ax_save_CFLAGS"
19599fi
19600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19601$as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19602if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
8414a40c 19603
80ed523f
VZ
19604$as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19605
19606fi
19607fi
19608
19609
19610
19611ax_save_CPPFLAGS="${CPPFLAGS}"
19612CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19613for ac_header in GL/glut.h GLUT/glut.h
19614do :
19615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19616ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19617if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19618 cat >>confdefs.h <<_ACEOF
19619#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19620_ACEOF
19621
19622fi
19623
19624done
19625
19626CPPFLAGS="${ax_save_CPPFLAGS}"
19627
19628GLUT_CFLAGS=${GLU_CFLAGS}
19629GLUT_LIBS=${GLU_LIBS}
19630
19631
19632
19633if test X$no_x != Xyes; then :
19634 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19635fi
19636
19637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19638$as_echo_n "checking for GLUT library... " >&6; }
19639if ${ax_cv_check_glut_libglut+:} false; then :
19640 $as_echo_n "(cached) " >&6
19641else
19642 ax_cv_check_glut_libglut="no"
19643ac_ext=c
8414a40c
VZ
19644ac_cpp='$CPP $CPPFLAGS'
19645ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19646ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19647ac_compiler_gnu=$ac_cv_c_compiler_gnu
19648
80ed523f
VZ
19649ax_save_CPPFLAGS="${CPPFLAGS}"
19650CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19651ax_save_LIBS="${LIBS}"
19652LIBS=""
19653ax_check_libs="-lglut32 -lglut"
19654for ax_lib in ${ax_check_libs}; do
19655 if test X$ax_compiler_ms = Xyes; then :
19656 ax_try_lib=`echo $ax_lib | sed -e 's/^-l//' -e 's/$/.lib/'`
8414a40c 19657else
80ed523f
VZ
19658 ax_try_lib="${ax_lib}"
19659fi
19660 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8414a40c
VZ
19662/* end confdefs.h. */
19663
19664# if HAVE_WINDOWS_H && defined(_WIN32)
19665# include <windows.h>
19666# endif
80ed523f
VZ
19667# ifdef HAVE_GL_GLUT_H
19668# include <GL/glut.h>
19669# elif defined(HAVE_GLUT_GLUT_H)
19670# include <GLUT/glut.h>
19671# else
19672# error no glut.h
19673# endif
8414a40c
VZ
19674int
19675main ()
19676{
19677glutMainLoop()
19678 ;
19679 return 0;
19680}
19681_ACEOF
80ed523f 19682if ac_fn_c_try_link "$LINENO"; then :
8414a40c 19683 ax_cv_check_glut_libglut="${ax_try_lib}"; break
8414a40c 19684fi
80ed523f
VZ
19685rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19687done
31cb0113 19688
80ed523f
VZ
19689if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19690 LIBS='-framework GLUT'
19691cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692/* end confdefs.h. */
8414a40c 19693
80ed523f
VZ
19694# if HAVE_WINDOWS_H && defined(_WIN32)
19695# include <windows.h>
19696# endif
19697# ifdef HAVE_GL_GLUT_H
19698# include <GL/glut.h>
19699# elif defined(HAVE_GLUT_GLUT_H)
19700# include <GLUT/glut.h>
19701# else
19702# error no glut.h
19703# endif
19704int
19705main ()
19706{
19707glutMainLoop()
19708 ;
19709 return 0;
19710}
19711_ACEOF
19712if ac_fn_c_try_link "$LINENO"; then :
19713 ax_cv_check_glut_libglut="$LIBS"
8414a40c 19714fi
80ed523f
VZ
19715rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717fi
19718
19719CPPFLAGS="${ax_save_CPPFLAGS}"
19720LIBS="${ax_save_LIBS}"
19721ac_ext=c
8414a40c
VZ
19722ac_cpp='$CPP $CPPFLAGS'
19723ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726
80ed523f
VZ
19727fi
19728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19729$as_echo "$ax_cv_check_glut_libglut" >&6; }
8414a40c 19730
80ed523f
VZ
19731if test "X$ax_cv_check_glut_libglut" = Xno; then :
19732 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19733else
19734 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19735fi
19736
19737
19738
19739
19740
19741if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19742 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19743 HAVE_OPENGL=yes
19744fi
19745
19746 if test "$HAVE_OPENGL" = "yes"; then
19747 HAVE_OPENGL_TRUE=
19748 HAVE_OPENGL_FALSE='#'
19749else
19750 HAVE_OPENGL_TRUE='#'
19751 HAVE_OPENGL_FALSE=
8414a40c
VZ
19752fi
19753
19754
19755
80ed523f
VZ
19756win32_io_ok=no
19757case "${host_os}" in
19758 cygwin*)
19759 ;;
19760 *)
19761 if test x"$ac_cv_header_windows_h" = xyes; then
19762 win32_io_ok=yes
8414a40c 19763
80ed523f 19764$as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
8414a40c 19765
80ed523f
VZ
19766 fi
19767 ;;
19768esac
19769 if test "$win32_io_ok" = yes; then
19770 WIN32_IO_TRUE=
19771 WIN32_IO_FALSE='#'
19772else
19773 WIN32_IO_TRUE='#'
19774 WIN32_IO_FALSE=
8414a40c
VZ
19775fi
19776
19777
19778
80ed523f
VZ
19779
19780
8414a40c
VZ
19781
19782
19783
19784
31cb0113 19785# Check whether --enable-strip-chopping was given.
80ed523f 19786if test "${enable_strip_chopping+set}" = set; then :
31cb0113 19787 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
8414a40c
VZ
19788else
19789 HAVE_STRIPCHOP=yes
31cb0113 19790fi
8414a40c 19791
31cb0113
VZ
19792
19793# Check whether --with-default-strip-size was given.
80ed523f 19794if test "${with_default_strip_size+set}" = set; then :
31cb0113
VZ
19795 withval=$with_default_strip_size;
19796fi
8414a40c 19797
8414a40c
VZ
19798
19799if test "$HAVE_STRIPCHOP" = "yes" \
19800 -a "x$with_default_strip_size" != "xno"; then
19801
80ed523f 19802$as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
8414a40c
VZ
19803
19804
19805 if test "x$with_default_strip_size" = "x" \
19806 -o "x$with_default_strip_size" = "xyes"; then
19807 with_default_strip_size="8192"
19808 fi
19809
19810
19811cat >>confdefs.h <<_ACEOF
19812#define STRIP_SIZE_DEFAULT $with_default_strip_size
19813_ACEOF
19814
19815
19816fi
19817
19818
80ed523f
VZ
19819# Check whether --enable-defer-strile-load was given.
19820if test "${enable_defer_strile_load+set}" = set; then :
19821 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
19822else
19823 HAVE_DEFER_STRILE_LOAD=no
19824fi
19825
19826
19827if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
19828
19829$as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
19830
19831
19832fi
19833
19834
19835# Check whether --enable-chunky-strip-read was given.
19836if test "${enable_chunky_strip_read+set}" = set; then :
19837 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
19838else
19839 HAVE_CHUNKY_STRIP_READ=no
19840fi
19841
19842
19843if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
19844
19845$as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
19846
19847
19848fi
19849
19850
19851$as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
8414a40c
VZ
19852
19853
19854
31cb0113 19855# Check whether --enable-extrasample-as-alpha was given.
80ed523f 19856if test "${enable_extrasample_as_alpha+set}" = set; then :
31cb0113 19857 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
8414a40c
VZ
19858else
19859 HAVE_EXTRASAMPLE_AS_ALPHA=yes
31cb0113
VZ
19860fi
19861
8414a40c
VZ
19862
19863if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
19864
80ed523f 19865$as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
8414a40c
VZ
19866
19867fi
19868
19869
31cb0113 19870# Check whether --enable-check-ycbcr-subsampling was given.
80ed523f 19871if test "${enable_check_ycbcr_subsampling+set}" = set; then :
31cb0113 19872 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
8414a40c
VZ
19873else
19874 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
31cb0113
VZ
19875fi
19876
8414a40c
VZ
19877
19878if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
19879
80ed523f 19880$as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
8414a40c
VZ
19881
19882fi
19883
19884
19885
19886
31cb0113 19887ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
8414a40c
VZ
19888
19889
80ed523f 19890ac_config_files="$ac_config_files Makefile build/Makefile contrib/Makefile contrib/addtiffo/Makefile contrib/dbs/Makefile contrib/dbs/xtiff/Makefile contrib/iptcutil/Makefile contrib/mfs/Makefile contrib/pds/Makefile contrib/ras/Makefile contrib/stream/Makefile contrib/tags/Makefile contrib/win_dib/Makefile html/Makefile html/images/Makefile html/man/Makefile libtiff-4.pc libtiff/Makefile man/Makefile port/Makefile test/Makefile tools/Makefile"
8414a40c
VZ
19891
19892cat >confcache <<\_ACEOF
19893# This file is a shell script that caches the results of configure
19894# tests run on this system so they can be shared between configure
19895# scripts and configure runs, see configure's option --config-cache.
19896# It is not useful on other systems. If it contains results you don't
19897# want to keep, you may remove or edit it.
19898#
19899# config.status only pays attention to the cache file if you give it
19900# the --recheck option to rerun configure.
19901#
19902# `ac_cv_env_foo' variables (set or unset) will be overridden when
19903# loading this file, other *unset* `ac_cv_foo' will be assigned the
19904# following values.
19905
19906_ACEOF
19907
19908# The following way of writing the cache mishandles newlines in values,
19909# but we know of no workaround that is simple, portable, and efficient.
31cb0113 19910# So, we kill variables containing newlines.
8414a40c
VZ
19911# Ultrix sh set writes to stderr and can't be redirected directly,
19912# and sets the high bit in the cache file unless we assign to the vars.
31cb0113
VZ
19913(
19914 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19915 eval ac_val=\$$ac_var
19916 case $ac_val in #(
19917 *${as_nl}*)
19918 case $ac_var in #(
80ed523f
VZ
19919 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
19920$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
31cb0113
VZ
19921 esac
19922 case $ac_var in #(
19923 _ | IFS | as_nl) ;; #(
80ed523f
VZ
19924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19925 *) { eval $ac_var=; unset $ac_var;} ;;
31cb0113
VZ
19926 esac ;;
19927 esac
19928 done
19929
8414a40c 19930 (set) 2>&1 |
31cb0113
VZ
19931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19932 *${as_nl}ac_space=\ *)
80ed523f
VZ
19933 # `set' does not quote correctly, so add quotes: double-quote
19934 # substitution turns \\\\ into \\, and sed turns \\ into \.
8414a40c
VZ
19935 sed -n \
19936 "s/'/'\\\\''/g;
19937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31cb0113 19938 ;; #(
8414a40c
VZ
19939 *)
19940 # `set' quotes correctly as required by POSIX, so do not add quotes.
31cb0113 19941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8414a40c 19942 ;;
31cb0113
VZ
19943 esac |
19944 sort
19945) |
8414a40c 19946 sed '
31cb0113 19947 /^ac_cv_env_/b end
8414a40c 19948 t clear
31cb0113 19949 :clear
8414a40c
VZ
19950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19951 t end
31cb0113
VZ
19952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19953 :end' >>confcache
19954if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19955 if test -w "$cache_file"; then
80ed523f
VZ
19956 if test "x$cache_file" != "x/dev/null"; then
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
19958$as_echo "$as_me: updating cache $cache_file" >&6;}
19959 if test ! -f "$cache_file" || test -h "$cache_file"; then
19960 cat confcache >"$cache_file"
19961 else
19962 case $cache_file in #(
19963 */* | ?:*)
19964 mv -f confcache "$cache_file"$$ &&
19965 mv -f "$cache_file"$$ "$cache_file" ;; #(
19966 *)
19967 mv -f confcache "$cache_file" ;;
19968 esac
19969 fi
19970 fi
8414a40c 19971 else
80ed523f
VZ
19972 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
19973$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8414a40c
VZ
19974 fi
19975fi
19976rm -f confcache
19977
19978test "x$prefix" = xNONE && prefix=$ac_default_prefix
19979# Let make expand exec_prefix.
19980test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19981
8414a40c
VZ
19982DEFS=-DHAVE_CONFIG_H
19983
19984ac_libobjs=
19985ac_ltlibobjs=
80ed523f 19986U=
8414a40c
VZ
19987for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19988 # 1. Remove the extension, and $U if already installed.
31cb0113 19989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
80ed523f 19990 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
31cb0113
VZ
19991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19992 # will be set to the directory where LIBOBJS objects are built.
80ed523f
VZ
19993 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19994 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8414a40c
VZ
19995done
19996LIBOBJS=$ac_libobjs
19997
19998LTLIBOBJS=$ac_ltlibobjs
19999
20000
80ed523f
VZ
20001{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20002$as_echo_n "checking that generated files are newer than configure... " >&6; }
20003 if test -n "$am_sleep_pid"; then
20004 # Hide warnings about reused PIDs.
20005 wait $am_sleep_pid 2>/dev/null
20006 fi
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20008$as_echo "done" >&6; }
20009 if test -n "$EXEEXT"; then
20010 am__EXEEXT_TRUE=
20011 am__EXEEXT_FALSE='#'
20012else
20013 am__EXEEXT_TRUE='#'
20014 am__EXEEXT_FALSE=
20015fi
20016
8414a40c 20017if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
80ed523f
VZ
20018 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20019Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c
VZ
20020fi
20021if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
80ed523f
VZ
20022 as_fn_error $? "conditional \"AMDEP\" was never defined.
20023Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c
VZ
20024fi
20025if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
80ed523f
VZ
20026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20027Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c 20028fi
80ed523f
VZ
20029if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20030 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20031Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c
VZ
20032fi
20033if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
80ed523f
VZ
20034 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20035Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c 20036fi
80ed523f
VZ
20037
20038if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20039 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20040Usually this means the macro was only invoked conditionally." "$LINENO" 5
20041fi
20042if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20043 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20044Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c
VZ
20045fi
20046if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
80ed523f
VZ
20047 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20048Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049fi
20050if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20051 as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20052Usually this means the macro was only invoked conditionally." "$LINENO" 5
8414a40c
VZ
20053fi
20054
80ed523f
VZ
20055: "${CONFIG_STATUS=./config.status}"
20056ac_write_fail=0
8414a40c
VZ
20057ac_clean_files_save=$ac_clean_files
20058ac_clean_files="$ac_clean_files $CONFIG_STATUS"
80ed523f
VZ
20059{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20060$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20061as_write_fail=0
20062cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8414a40c
VZ
20063#! $SHELL
20064# Generated by $as_me.
20065# Run this file to recreate the current configuration.
20066# Compiler output produced by configure, useful for debugging
20067# configure, is in config.log if it exists.
20068
20069debug=false
20070ac_cs_recheck=false
20071ac_cs_silent=false
8414a40c 20072
80ed523f
VZ
20073SHELL=\${CONFIG_SHELL-$SHELL}
20074export SHELL
20075_ASEOF
20076cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20077## -------------------- ##
20078## M4sh Initialization. ##
20079## -------------------- ##
8414a40c 20080
31cb0113
VZ
20081# Be more Bourne compatible
20082DUALCASE=1; export DUALCASE # for MKS sh
80ed523f 20083if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8414a40c
VZ
20084 emulate sh
20085 NULLCMD=:
80ed523f 20086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8414a40c
VZ
20087 # is contrary to our usage. Disable this feature.
20088 alias -g '${1+"$@"}'='"$@"'
31cb0113
VZ
20089 setopt NO_GLOB_SUBST
20090else
80ed523f
VZ
20091 case `(set -o) 2>/dev/null` in #(
20092 *posix*) :
20093 set -o posix ;; #(
20094 *) :
20095 ;;
31cb0113 20096esac
31cb0113
VZ
20097fi
20098
20099
80ed523f
VZ
20100as_nl='
20101'
20102export as_nl
20103# Printing a long string crashes Solaris 7 /usr/bin/printf.
20104as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20105as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20106as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20107# Prefer a ksh shell builtin over an external printf program on Solaris,
20108# but without wasting forks for bash or zsh.
20109if test -z "$BASH_VERSION$ZSH_VERSION" \
20110 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20111 as_echo='print -r --'
20112 as_echo_n='print -rn --'
20113elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20114 as_echo='printf %s\n'
20115 as_echo_n='printf %s'
20116else
20117 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20118 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20119 as_echo_n='/usr/ucb/echo -n'
31cb0113 20120 else
80ed523f
VZ
20121 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20122 as_echo_n_body='eval
20123 arg=$1;
20124 case $arg in #(
20125 *"$as_nl"*)
20126 expr "X$arg" : "X\\(.*\\)$as_nl";
20127 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20128 esac;
20129 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20130 '
20131 export as_echo_n_body
20132 as_echo_n='sh -c $as_echo_n_body as_echo'
31cb0113 20133 fi
80ed523f
VZ
20134 export as_echo_body
20135 as_echo='sh -c $as_echo_body as_echo'
8414a40c 20136fi
8414a40c 20137
80ed523f
VZ
20138# The user is always right.
20139if test "${PATH_SEPARATOR+set}" != set; then
20140 PATH_SEPARATOR=:
20141 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20142 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20143 PATH_SEPARATOR=';'
20144 }
8414a40c
VZ
20145fi
20146
20147
31cb0113
VZ
20148# IFS
20149# We need space, tab and new line, in precisely that order. Quoting is
20150# there to prevent editors from complaining about space-tab.
20151# (If _AS_PATH_WALK were called with IFS unset, it would disable word
20152# splitting by setting IFS to empty value.)
31cb0113
VZ
20153IFS=" "" $as_nl"
20154
20155# Find who we are. Look in the path if we contain no directory separator.
80ed523f
VZ
20156as_myself=
20157case $0 in #((
31cb0113
VZ
20158 *[\\/]* ) as_myself=$0 ;;
20159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160for as_dir in $PATH
20161do
20162 IFS=$as_save_IFS
20163 test -z "$as_dir" && as_dir=.
80ed523f
VZ
20164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20165 done
31cb0113
VZ
20166IFS=$as_save_IFS
20167
20168 ;;
20169esac
20170# We did not find ourselves, most probably we were run as `sh COMMAND'
20171# in which case we are not to be found in the path.
20172if test "x$as_myself" = x; then
20173 as_myself=$0
20174fi
20175if test ! -f "$as_myself"; then
80ed523f
VZ
20176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20177 exit 1
31cb0113
VZ
20178fi
20179
80ed523f
VZ
20180# Unset variables that we do not need and which cause bugs (e.g. in
20181# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20182# suppresses any "Segmentation fault" message there. '((' could
20183# trigger a bug in pdksh 5.2.14.
20184for as_var in BASH_ENV ENV MAIL MAILPATH
20185do eval test x\${$as_var+set} = xset \
20186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
31cb0113 20187done
8414a40c
VZ
20188PS1='$ '
20189PS2='> '
20190PS4='+ '
20191
20192# NLS nuisances.
80ed523f
VZ
20193LC_ALL=C
20194export LC_ALL
20195LANGUAGE=C
20196export LANGUAGE
20197
20198# CDPATH.
20199(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20200
20201
20202# as_fn_error STATUS ERROR [LINENO LOG_FD]
20203# ----------------------------------------
20204# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20205# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20206# script with STATUS, using 1 if that was 0.
20207as_fn_error ()
20208{
20209 as_status=$1; test $as_status -eq 0 && as_status=1
20210 if test "$4"; then
20211 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20212 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8414a40c 20213 fi
80ed523f
VZ
20214 $as_echo "$as_me: error: $2" >&2
20215 as_fn_exit $as_status
20216} # as_fn_error
20217
20218
20219# as_fn_set_status STATUS
20220# -----------------------
20221# Set $? to STATUS, without forking.
20222as_fn_set_status ()
20223{
20224 return $1
20225} # as_fn_set_status
20226
20227# as_fn_exit STATUS
20228# -----------------
20229# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20230as_fn_exit ()
20231{
20232 set +e
20233 as_fn_set_status $1
20234 exit $1
20235} # as_fn_exit
20236
20237# as_fn_unset VAR
20238# ---------------
20239# Portably unset VAR.
20240as_fn_unset ()
20241{
20242 { eval $1=; unset $1;}
20243}
20244as_unset=as_fn_unset
20245# as_fn_append VAR VALUE
20246# ----------------------
20247# Append the text in VALUE to the end of the definition contained in VAR. Take
20248# advantage of any shell optimizations that allow amortized linear growth over
20249# repeated appends, instead of the typical quadratic growth present in naive
20250# implementations.
20251if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20252 eval 'as_fn_append ()
20253 {
20254 eval $1+=\$2
20255 }'
20256else
20257 as_fn_append ()
20258 {
20259 eval $1=\$$1\$2
20260 }
20261fi # as_fn_append
20262
20263# as_fn_arith ARG...
20264# ------------------
20265# Perform arithmetic evaluation on the ARGs, and store the result in the
20266# global $as_val. Take advantage of shells that can avoid forks. The arguments
20267# must be portable across $(()) and expr.
20268if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20269 eval 'as_fn_arith ()
20270 {
20271 as_val=$(( $* ))
20272 }'
20273else
20274 as_fn_arith ()
20275 {
20276 as_val=`expr "$@" || test $? -eq 1`
20277 }
20278fi # as_fn_arith
20279
8414a40c 20280
31cb0113
VZ
20281if expr a : '\(a\)' >/dev/null 2>&1 &&
20282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8414a40c
VZ
20283 as_expr=expr
20284else
20285 as_expr=false
20286fi
20287
31cb0113 20288if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8414a40c
VZ
20289 as_basename=basename
20290else
20291 as_basename=false
20292fi
20293
80ed523f
VZ
20294if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20295 as_dirname=dirname
20296else
20297 as_dirname=false
20298fi
8414a40c 20299
31cb0113 20300as_me=`$as_basename -- "$0" ||
8414a40c
VZ
20301$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20302 X"$0" : 'X\(//\)$' \| \
31cb0113 20303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
80ed523f 20304$as_echo X/"$0" |
31cb0113
VZ
20305 sed '/^.*\/\([^/][^/]*\)\/*$/{
20306 s//\1/
20307 q
20308 }
20309 /^X\/\(\/\/\)$/{
20310 s//\1/
20311 q
20312 }
20313 /^X\/\(\/\).*/{
20314 s//\1/
20315 q
20316 }
20317 s/.*/./; q'`
8414a40c 20318
80ed523f
VZ
20319# Avoid depending upon Character Ranges.
20320as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20321as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20322as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20323as_cr_digits='0123456789'
20324as_cr_alnum=$as_cr_Letters$as_cr_digits
31cb0113
VZ
20325
20326ECHO_C= ECHO_N= ECHO_T=
80ed523f 20327case `echo -n x` in #(((((
31cb0113 20328-n*)
80ed523f 20329 case `echo 'xy\c'` in
31cb0113 20330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
80ed523f
VZ
20331 xy) ECHO_C='\c';;
20332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20333 ECHO_T=' ';;
31cb0113
VZ
20334 esac;;
20335*)
20336 ECHO_N='-n';;
8414a40c
VZ
20337esac
20338
8414a40c 20339rm -f conf$$ conf$$.exe conf$$.file
31cb0113
VZ
20340if test -d conf$$.dir; then
20341 rm -f conf$$.dir/conf$$.file
20342else
20343 rm -f conf$$.dir
80ed523f
VZ
20344 mkdir conf$$.dir 2>/dev/null
20345fi
20346if (echo >conf$$.file) 2>/dev/null; then
20347 if ln -s conf$$.file conf$$ 2>/dev/null; then
20348 as_ln_s='ln -s'
20349 # ... but there are two gotchas:
20350 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20351 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20352 # In both cases, we have to default to `cp -pR'.
20353 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20354 as_ln_s='cp -pR'
20355 elif ln conf$$.file conf$$ 2>/dev/null; then
20356 as_ln_s=ln
20357 else
20358 as_ln_s='cp -pR'
20359 fi
20360else
20361 as_ln_s='cp -pR'
8414a40c 20362fi
31cb0113
VZ
20363rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20364rmdir conf$$.dir 2>/dev/null
8414a40c 20365
80ed523f
VZ
20366
20367# as_fn_mkdir_p
20368# -------------
20369# Create "$as_dir" as a directory, including parents if necessary.
20370as_fn_mkdir_p ()
20371{
20372
20373 case $as_dir in #(
20374 -*) as_dir=./$as_dir;;
20375 esac
20376 test -d "$as_dir" || eval $as_mkdir_p || {
20377 as_dirs=
20378 while :; do
20379 case $as_dir in #(
20380 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20381 *) as_qdir=$as_dir;;
20382 esac
20383 as_dirs="'$as_qdir' $as_dirs"
20384 as_dir=`$as_dirname -- "$as_dir" ||
20385$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20386 X"$as_dir" : 'X\(//\)[^/]' \| \
20387 X"$as_dir" : 'X\(//\)$' \| \
20388 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20389$as_echo X"$as_dir" |
20390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20391 s//\1/
20392 q
20393 }
20394 /^X\(\/\/\)[^/].*/{
20395 s//\1/
20396 q
20397 }
20398 /^X\(\/\/\)$/{
20399 s//\1/
20400 q
20401 }
20402 /^X\(\/\).*/{
20403 s//\1/
20404 q
20405 }
20406 s/.*/./; q'`
20407 test -d "$as_dir" && break
20408 done
20409 test -z "$as_dirs" || eval "mkdir $as_dirs"
20410 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20411
20412
20413} # as_fn_mkdir_p
8414a40c 20414if mkdir -p . 2>/dev/null; then
80ed523f 20415 as_mkdir_p='mkdir -p "$as_dir"'
8414a40c
VZ
20416else
20417 test -d ./-p && rmdir ./-p
20418 as_mkdir_p=false
20419fi
31cb0113 20420
80ed523f
VZ
20421
20422# as_fn_executable_p FILE
20423# -----------------------
20424# Test if FILE is an executable regular file.
20425as_fn_executable_p ()
20426{
20427 test -f "$1" && test -x "$1"
20428} # as_fn_executable_p
20429as_test_x='test -x'
20430as_executable_p=as_fn_executable_p
8414a40c
VZ
20431
20432# Sed expression to map a string onto a valid CPP name.
20433as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20434
20435# Sed expression to map a string onto a valid variable name.
20436as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20437
20438
8414a40c 20439exec 6>&1
80ed523f
VZ
20440## ----------------------------------- ##
20441## Main body of $CONFIG_STATUS script. ##
20442## ----------------------------------- ##
20443_ASEOF
20444test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8414a40c 20445
80ed523f
VZ
20446cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447# Save the log message, to keep $0 and so on meaningful, and to
8414a40c 20448# report actual input values of CONFIG_FILES etc. instead of their
31cb0113
VZ
20449# values after options handling.
20450ac_log="
80ed523f
VZ
20451This file was extended by LibTIFF Software $as_me 4.0.3, which was
20452generated by GNU Autoconf 2.69. Invocation command line was
8414a40c
VZ
20453
20454 CONFIG_FILES = $CONFIG_FILES
20455 CONFIG_HEADERS = $CONFIG_HEADERS
20456 CONFIG_LINKS = $CONFIG_LINKS
20457 CONFIG_COMMANDS = $CONFIG_COMMANDS
20458 $ $0 $@
20459
31cb0113
VZ
20460on `(hostname || uname -n) 2>/dev/null | sed 1q`
20461"
20462
8414a40c
VZ
20463_ACEOF
20464
80ed523f
VZ
20465case $ac_config_files in *"
20466"*) set x $ac_config_files; shift; ac_config_files=$*;;
20467esac
20468
20469case $ac_config_headers in *"
20470"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20471esac
20472
20473
20474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8414a40c 20475# Files that config.status was made for.
31cb0113
VZ
20476config_files="$ac_config_files"
20477config_headers="$ac_config_headers"
20478config_commands="$ac_config_commands"
8414a40c 20479
31cb0113 20480_ACEOF
8414a40c 20481
80ed523f 20482cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414a40c 20483ac_cs_usage="\
80ed523f
VZ
20484\`$as_me' instantiates files and other configuration actions
20485from templates according to the current configuration. Unless the files
20486and actions are specified as TAGs, all are instantiated by default.
8414a40c 20487
80ed523f 20488Usage: $0 [OPTION]... [TAG]...
8414a40c
VZ
20489
20490 -h, --help print this help, then exit
31cb0113 20491 -V, --version print version number and configuration settings, then exit
80ed523f
VZ
20492 --config print configuration, then exit
20493 -q, --quiet, --silent
20494 do not print progress messages
8414a40c
VZ
20495 -d, --debug don't remove temporary files
20496 --recheck update $as_me by reconfiguring in the same conditions
80ed523f
VZ
20497 --file=FILE[:TEMPLATE]
20498 instantiate the configuration file FILE
20499 --header=FILE[:TEMPLATE]
20500 instantiate the configuration header FILE
8414a40c
VZ
20501
20502Configuration files:
20503$config_files
20504
20505Configuration headers:
20506$config_headers
20507
20508Configuration commands:
20509$config_commands
20510
80ed523f 20511Report bugs to <tiff@lists.maptools.org>."
8414a40c 20512
31cb0113 20513_ACEOF
80ed523f
VZ
20514cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20515ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8414a40c 20516ac_cs_version="\\
80ed523f
VZ
20517LibTIFF Software config.status 4.0.3
20518configured by $0, generated by GNU Autoconf 2.69,
20519 with options \\"\$ac_cs_config\\"
8414a40c 20520
80ed523f 20521Copyright (C) 2012 Free Software Foundation, Inc.
8414a40c
VZ
20522This config.status script is free software; the Free Software Foundation
20523gives unlimited permission to copy, distribute and modify it."
31cb0113
VZ
20524
20525ac_pwd='$ac_pwd'
20526srcdir='$srcdir'
20527INSTALL='$INSTALL'
80ed523f
VZ
20528MKDIR_P='$MKDIR_P'
20529AWK='$AWK'
20530test -n "\$AWK" || AWK=awk
8414a40c
VZ
20531_ACEOF
20532
80ed523f
VZ
20533cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20534# The default lists apply if the user does not specify any file.
8414a40c
VZ
20535ac_need_defaults=:
20536while test $# != 0
20537do
20538 case $1 in
80ed523f 20539 --*=?*)
31cb0113
VZ
20540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8414a40c
VZ
20542 ac_shift=:
20543 ;;
80ed523f
VZ
20544 --*=)
20545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20546 ac_optarg=
20547 ac_shift=:
20548 ;;
31cb0113 20549 *)
8414a40c
VZ
20550 ac_option=$1
20551 ac_optarg=$2
20552 ac_shift=shift
20553 ;;
8414a40c
VZ
20554 esac
20555
20556 case $ac_option in
20557 # Handling of the options.
8414a40c
VZ
20558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20559 ac_cs_recheck=: ;;
31cb0113 20560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
80ed523f
VZ
20561 $as_echo "$ac_cs_version"; exit ;;
20562 --config | --confi | --conf | --con | --co | --c )
20563 $as_echo "$ac_cs_config"; exit ;;
31cb0113 20564 --debug | --debu | --deb | --de | --d | -d )
8414a40c
VZ
20565 debug=: ;;
20566 --file | --fil | --fi | --f )
20567 $ac_shift
80ed523f
VZ
20568 case $ac_optarg in
20569 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20570 '') as_fn_error $? "missing file argument" ;;
20571 esac
20572 as_fn_append CONFIG_FILES " '$ac_optarg'"
8414a40c
VZ
20573 ac_need_defaults=false;;
20574 --header | --heade | --head | --hea )
20575 $ac_shift
80ed523f
VZ
20576 case $ac_optarg in
20577 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20578 esac
20579 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8414a40c 20580 ac_need_defaults=false;;
31cb0113
VZ
20581 --he | --h)
20582 # Conflict between --help and --header
80ed523f
VZ
20583 as_fn_error $? "ambiguous option: \`$1'
20584Try \`$0 --help' for more information.";;
31cb0113 20585 --help | --hel | -h )
80ed523f 20586 $as_echo "$ac_cs_usage"; exit ;;
8414a40c
VZ
20587 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20588 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20589 ac_cs_silent=: ;;
20590
20591 # This is an error.
80ed523f
VZ
20592 -*) as_fn_error $? "unrecognized option: \`$1'
20593Try \`$0 --help' for more information." ;;
8414a40c 20594
80ed523f 20595 *) as_fn_append ac_config_targets " $1"
31cb0113 20596 ac_need_defaults=false ;;
8414a40c
VZ
20597
20598 esac
20599 shift
20600done
20601
20602ac_configure_extra_args=
20603
20604if $ac_cs_silent; then
20605 exec 6>/dev/null
20606 ac_configure_extra_args="$ac_configure_extra_args --silent"
20607fi
20608
20609_ACEOF
80ed523f 20610cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8414a40c 20611if \$ac_cs_recheck; then
80ed523f
VZ
20612 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20613 shift
20614 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20615 CONFIG_SHELL='$SHELL'
31cb0113 20616 export CONFIG_SHELL
80ed523f 20617 exec "\$@"
8414a40c
VZ
20618fi
20619
20620_ACEOF
80ed523f 20621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31cb0113
VZ
20622exec 5>>config.log
20623{
20624 echo
20625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20626## Running $as_me. ##
20627_ASBOX
80ed523f 20628 $as_echo "$ac_log"
31cb0113 20629} >&5
8414a40c 20630
31cb0113 20631_ACEOF
80ed523f 20632cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8414a40c 20633#
31cb0113 20634# INIT-COMMANDS
8414a40c 20635#
8414a40c
VZ
20636AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20637
20638
20639# The HP-UX ksh and POSIX shell print the target directory to stdout
20640# if CDPATH is set.
20641(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20642
20643sed_quote_subst='$sed_quote_subst'
20644double_quote_subst='$double_quote_subst'
20645delay_variable_subst='$delay_variable_subst'
80ed523f
VZ
20646macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20647macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20648AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20649DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20650OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20651enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20652enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20653pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20654enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20655SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20656ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20657PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20658host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20659host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20660host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20661build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20662build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20663build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20664SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20665Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20666GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20667EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20668FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20669LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20670NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20671LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20672max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20673ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20674exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20675lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20676lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20677lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20678lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20679lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20680reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20681reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20682deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20683file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20684file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20685want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20686sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20687AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20688AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20689archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20690STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20691RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20692old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20693old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20694old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20695lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20696CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20697CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20698compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20699GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20700lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20701lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20702lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20703lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20704nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20705lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20706objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20707MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20708lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20709lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20710lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20711lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20712lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20713need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20714MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20715DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20716NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20717LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20718OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20719OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20720libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20721shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20722extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20723archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20724enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20725export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20726whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20727compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20728old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20729old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20730archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20731archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20732module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20733module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20734with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20735allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20736no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20737hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20738hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20739hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20740hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20741hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20742hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20743hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20744inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20745link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20746always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20747export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20748exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20749include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20750prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20751postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20752file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20753variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20754need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20755need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20756version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20757runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20758shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20759shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20760libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20761library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20762soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20763install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20764postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20765postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20766finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20767finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20768hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20769sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20770sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20771hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20772enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20773enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20774enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20775old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20776striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20777compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20778predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20779postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20780predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20781postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20782compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20783LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20784reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20785reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20786old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20787compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20788GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20789lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20790lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20791lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20792lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20793lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20794archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20795enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20796export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20797whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20798compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20799old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20800old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20803module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20804module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20805with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20806allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20807no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20808hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20809hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20810hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20811hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20812hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20813hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20814hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20815inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20816link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20817always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20818export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20819exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20820include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20821prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20822postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20823file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20824hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20825compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20826predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20827postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20828predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20829postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20830compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
8414a40c
VZ
20831
20832LTCC='$LTCC'
20833LTCFLAGS='$LTCFLAGS'
20834compiler='$compiler_DEFAULT'
20835
80ed523f
VZ
20836# A function that is used when there is no print builtin or printf.
20837func_fallback_echo ()
20838{
20839 eval 'cat <<_LTECHO_EOF
20840\$1
20841_LTECHO_EOF'
20842}
20843
8414a40c 20844# Quote evaled strings.
80ed523f
VZ
20845for var in AS \
20846DLLTOOL \
20847OBJDUMP \
20848SHELL \
20849ECHO \
20850PATH_SEPARATOR \
20851SED \
8414a40c
VZ
20852GREP \
20853EGREP \
20854FGREP \
20855LD \
20856NM \
20857LN_S \
80ed523f
VZ
20858lt_SP2NL \
20859lt_NL2SP \
8414a40c
VZ
20860reload_flag \
20861deplibs_check_method \
20862file_magic_cmd \
80ed523f
VZ
20863file_magic_glob \
20864want_nocaseglob \
20865sharedlib_from_linklib_cmd \
8414a40c
VZ
20866AR \
20867AR_FLAGS \
80ed523f 20868archiver_list_spec \
8414a40c
VZ
20869STRIP \
20870RANLIB \
20871CC \
20872CFLAGS \
20873compiler \
20874lt_cv_sys_global_symbol_pipe \
20875lt_cv_sys_global_symbol_to_cdecl \
20876lt_cv_sys_global_symbol_to_c_name_address \
80ed523f
VZ
20877lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20878nm_file_list_spec \
8414a40c 20879lt_prog_compiler_no_builtin_flag \
8414a40c 20880lt_prog_compiler_pic \
80ed523f 20881lt_prog_compiler_wl \
8414a40c
VZ
20882lt_prog_compiler_static \
20883lt_cv_prog_compiler_c_o \
20884need_locks \
80ed523f
VZ
20885MANIFEST_TOOL \
20886DSYMUTIL \
20887NMEDIT \
20888LIPO \
20889OTOOL \
20890OTOOL64 \
8414a40c
VZ
20891shrext_cmds \
20892export_dynamic_flag_spec \
20893whole_archive_flag_spec \
80ed523f 20894compiler_needs_object \
8414a40c
VZ
20895with_gnu_ld \
20896allow_undefined_flag \
20897no_undefined_flag \
20898hardcode_libdir_flag_spec \
8414a40c 20899hardcode_libdir_separator \
8414a40c
VZ
20900exclude_expsyms \
20901include_expsyms \
20902file_list_spec \
20903variables_saved_for_relink \
20904libname_spec \
20905library_names_spec \
20906soname_spec \
80ed523f 20907install_override_mode \
8414a40c
VZ
20908finish_eval \
20909old_striplib \
20910striplib \
80ed523f 20911compiler_lib_search_dirs \
8414a40c
VZ
20912predep_objects \
20913postdep_objects \
20914predeps \
20915postdeps \
20916compiler_lib_search_path \
20917LD_CXX \
80ed523f 20918reload_flag_CXX \
8414a40c
VZ
20919compiler_CXX \
20920lt_prog_compiler_no_builtin_flag_CXX \
8414a40c 20921lt_prog_compiler_pic_CXX \
80ed523f 20922lt_prog_compiler_wl_CXX \
8414a40c
VZ
20923lt_prog_compiler_static_CXX \
20924lt_cv_prog_compiler_c_o_CXX \
20925export_dynamic_flag_spec_CXX \
20926whole_archive_flag_spec_CXX \
80ed523f 20927compiler_needs_object_CXX \
8414a40c
VZ
20928with_gnu_ld_CXX \
20929allow_undefined_flag_CXX \
20930no_undefined_flag_CXX \
20931hardcode_libdir_flag_spec_CXX \
8414a40c 20932hardcode_libdir_separator_CXX \
8414a40c
VZ
20933exclude_expsyms_CXX \
20934include_expsyms_CXX \
20935file_list_spec_CXX \
80ed523f 20936compiler_lib_search_dirs_CXX \
8414a40c
VZ
20937predep_objects_CXX \
20938postdep_objects_CXX \
20939predeps_CXX \
20940postdeps_CXX \
20941compiler_lib_search_path_CXX; do
80ed523f 20942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8414a40c 20943 *[\\\\\\\`\\"\\\$]*)
80ed523f 20944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
8414a40c
VZ
20945 ;;
20946 *)
20947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20948 ;;
20949 esac
20950done
20951
20952# Double-quote double-evaled strings.
20953for var in reload_cmds \
20954old_postinstall_cmds \
20955old_postuninstall_cmds \
20956old_archive_cmds \
20957extract_expsyms_cmds \
20958old_archive_from_new_cmds \
20959old_archive_from_expsyms_cmds \
20960archive_cmds \
20961archive_expsym_cmds \
20962module_cmds \
20963module_expsym_cmds \
20964export_symbols_cmds \
20965prelink_cmds \
80ed523f 20966postlink_cmds \
8414a40c
VZ
20967postinstall_cmds \
20968postuninstall_cmds \
20969finish_cmds \
20970sys_lib_search_path_spec \
20971sys_lib_dlsearch_path_spec \
80ed523f 20972reload_cmds_CXX \
8414a40c
VZ
20973old_archive_cmds_CXX \
20974old_archive_from_new_cmds_CXX \
20975old_archive_from_expsyms_cmds_CXX \
20976archive_cmds_CXX \
20977archive_expsym_cmds_CXX \
20978module_cmds_CXX \
20979module_expsym_cmds_CXX \
20980export_symbols_cmds_CXX \
80ed523f
VZ
20981prelink_cmds_CXX \
20982postlink_cmds_CXX; do
20983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
8414a40c 20984 *[\\\\\\\`\\"\\\$]*)
80ed523f 20985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
8414a40c
VZ
20986 ;;
20987 *)
20988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20989 ;;
20990 esac
20991done
20992
8414a40c
VZ
20993ac_aux_dir='$ac_aux_dir'
20994xsi_shell='$xsi_shell'
80ed523f 20995lt_shell_append='$lt_shell_append'
8414a40c
VZ
20996
20997# See if we are running on zsh, and set the options which allow our
20998# commands through without removal of \ escapes INIT.
20999if test -n "\${ZSH_VERSION+set}" ; then
21000 setopt NO_GLOB_SUBST
21001fi
21002
21003
21004 PACKAGE='$PACKAGE'
21005 VERSION='$VERSION'
21006 TIMESTAMP='$TIMESTAMP'
21007 RM='$RM'
21008 ofile='$ofile'
21009
21010
21011
21012
21013
21014
21015_ACEOF
21016
80ed523f 21017cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31cb0113
VZ
21018
21019# Handling of arguments.
8414a40c
VZ
21020for ac_config_target in $ac_config_targets
21021do
31cb0113
VZ
21022 case $ac_config_target in
21023 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21024 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21025 "libtiff/tif_config.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tif_config.h" ;;
21026 "libtiff/tiffconf.h") CONFIG_HEADERS="$CONFIG_HEADERS libtiff/tiffconf.h" ;;
21027 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
80ed523f 21028 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
31cb0113 21029 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
31cb0113
VZ
21030 "contrib/addtiffo/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/addtiffo/Makefile" ;;
21031 "contrib/dbs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/Makefile" ;;
21032 "contrib/dbs/xtiff/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/dbs/xtiff/Makefile" ;;
21033 "contrib/iptcutil/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/iptcutil/Makefile" ;;
31cb0113 21034 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
31cb0113
VZ
21035 "contrib/pds/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/pds/Makefile" ;;
21036 "contrib/ras/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/ras/Makefile" ;;
21037 "contrib/stream/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/stream/Makefile" ;;
21038 "contrib/tags/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/tags/Makefile" ;;
21039 "contrib/win_dib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/win_dib/Makefile" ;;
21040 "html/Makefile") CONFIG_FILES="$CONFIG_FILES html/Makefile" ;;
21041 "html/images/Makefile") CONFIG_FILES="$CONFIG_FILES html/images/Makefile" ;;
21042 "html/man/Makefile") CONFIG_FILES="$CONFIG_FILES html/man/Makefile" ;;
80ed523f 21043 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
31cb0113
VZ
21044 "libtiff/Makefile") CONFIG_FILES="$CONFIG_FILES libtiff/Makefile" ;;
21045 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
21046 "port/Makefile") CONFIG_FILES="$CONFIG_FILES port/Makefile" ;;
21047 "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;;
21048 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
21049
80ed523f 21050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8414a40c
VZ
21051 esac
21052done
21053
31cb0113 21054
8414a40c
VZ
21055# If the user did not use the arguments to specify the items to instantiate,
21056# then the envvar interface is used. Set only those that are not.
21057# We use the long form for the default assignment because of an extremely
21058# bizarre bug on SunOS 4.1.3.
21059if $ac_need_defaults; then
21060 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21061 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21063fi
21064
21065# Have a temporary directory for convenience. Make it in the build tree
31cb0113 21066# simply because there is no reason against having it here, and in addition,
8414a40c 21067# creating and moving files from /tmp can sometimes cause problems.
31cb0113
VZ
21068# Hook for its removal unless debugging.
21069# Note that there is a small window in which the directory will not be cleaned:
21070# after its creation but before its name has been assigned to `$tmp'.
8414a40c
VZ
21071$debug ||
21072{
80ed523f 21073 tmp= ac_tmp=
31cb0113 21074 trap 'exit_status=$?
80ed523f
VZ
21075 : "${ac_tmp:=$tmp}"
21076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
31cb0113 21077' 0
80ed523f 21078 trap 'as_fn_exit 1' 1 2 13 15
8414a40c 21079}
8414a40c
VZ
21080# Create a (secure) tmp directory for tmp files.
21081
21082{
31cb0113 21083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
80ed523f 21084 test -d "$tmp"
8414a40c
VZ
21085} ||
21086{
31cb0113 21087 tmp=./conf$$-$RANDOM
80ed523f
VZ
21088 (umask 077 && mkdir "$tmp")
21089} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21090ac_tmp=$tmp
31cb0113 21091
80ed523f
VZ
21092# Set up the scripts for CONFIG_FILES section.
21093# No need to generate them if there are no CONFIG_FILES.
21094# This happens for instance with `./config.status config.h'.
21095if test -n "$CONFIG_FILES"; then
31cb0113 21096
31cb0113 21097
80ed523f
VZ
21098ac_cr=`echo X | tr X '\015'`
21099# On cygwin, bash can eat \r inside `` if the user requested igncr.
21100# But we know of no other shell where ac_cr would be empty at this
21101# point, so we can use a bashism as a fallback.
21102if test "x$ac_cr" = x; then
21103 eval ac_cr=\$\'\\r\'
21104fi
21105ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21106if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21107 ac_cs_awk_cr='\\r'
21108else
21109 ac_cs_awk_cr=$ac_cr
31cb0113
VZ
21110fi
21111
80ed523f 21112echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
31cb0113
VZ
21113_ACEOF
21114
21115
80ed523f
VZ
21116{
21117 echo "cat >conf$$subs.awk <<_ACEOF" &&
21118 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21119 echo "_ACEOF"
21120} >conf$$subs.sh ||
21121 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21122ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
31cb0113
VZ
21123ac_delim='%!_!# '
21124for ac_last_try in false false false false false :; do
80ed523f
VZ
21125 . ./conf$$subs.sh ||
21126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31cb0113 21127
80ed523f
VZ
21128 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21129 if test $ac_delim_n = $ac_delim_num; then
31cb0113
VZ
21130 break
21131 elif $ac_last_try; then
80ed523f 21132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
31cb0113
VZ
21133 else
21134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21135 fi
21136done
80ed523f
VZ
21137rm -f conf$$subs.sh
21138
21139cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21140cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21141_ACEOF
21142sed -n '
21143h
21144s/^/S["/; s/!.*/"]=/
21145p
21146g
21147s/^[^!]*!//
21148:repl
21149t repl
21150s/'"$ac_delim"'$//
21151t delim
21152:nl
21153h
21154s/\(.\{148\}\)..*/\1/
21155t more1
21156s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21157p
21158n
21159b repl
21160:more1
21161s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21162p
21163g
21164s/.\{148\}//
21165t nl
21166:delim
21167h
21168s/\(.\{148\}\)..*/\1/
21169t more2
21170s/["\\]/\\&/g; s/^/"/; s/$/"/
21171p
21172b
21173:more2
21174s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21175p
21176g
21177s/.\{148\}//
21178t delim
21179' <conf$$subs.awk | sed '
21180/^[^""]/{
21181 N
21182 s/\n//
21183}
21184' >>$CONFIG_STATUS || ac_write_fail=1
21185rm -f conf$$subs.awk
21186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187_ACAWK
21188cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21189 for (key in S) S_is_set[key] = 1
21190 FS = "\a"
31cb0113 21191
80ed523f
VZ
21192}
21193{
21194 line = $ 0
21195 nfields = split(line, field, "@")
21196 substed = 0
21197 len = length(field[1])
21198 for (i = 2; i < nfields; i++) {
21199 key = field[i]
21200 keylen = length(key)
21201 if (S_is_set[key]) {
21202 value = S[key]
21203 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21204 len += length(value) + length(field[++i])
21205 substed = 1
21206 } else
21207 len += 1 + keylen
21208 }
21209
21210 print line
21211}
8414a40c 21212
80ed523f 21213_ACAWK
31cb0113 21214_ACEOF
80ed523f
VZ
21215cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21216if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21218else
21219 cat
21220fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21221 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8414a40c 21222_ACEOF
31cb0113 21223
80ed523f
VZ
21224# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21225# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
31cb0113
VZ
21226# trailing colons and then remove the whole line if VPATH becomes empty
21227# (actually we leave an empty line to preserve line numbers).
21228if test "x$srcdir" = x.; then
80ed523f
VZ
21229 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21230h
21231s///
21232s/^/:/
21233s/[ ]*$/:/
21234s/:\$(srcdir):/:/g
21235s/:\${srcdir}:/:/g
21236s/:@srcdir@:/:/g
21237s/^:*//
31cb0113 21238s/:*$//
80ed523f
VZ
21239x
21240s/\(=[ ]*\).*/\1/
21241G
21242s/\n//
31cb0113
VZ
21243s/^[^=]*=[ ]*$//
21244}'
21245fi
21246
80ed523f 21247cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31cb0113
VZ
21248fi # test -n "$CONFIG_FILES"
21249
80ed523f
VZ
21250# Set up the scripts for CONFIG_HEADERS section.
21251# No need to generate them if there are no CONFIG_HEADERS.
21252# This happens for instance with `./config.status Makefile'.
21253if test -n "$CONFIG_HEADERS"; then
21254cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21255BEGIN {
21256_ACEOF
21257
21258# Transform confdefs.h into an awk script `defines.awk', embedded as
21259# here-document in config.status, that substitutes the proper values into
21260# config.h.in to produce config.h.
21261
21262# Create a delimiter string that does not exist in confdefs.h, to ease
21263# handling of long lines.
21264ac_delim='%!_!# '
21265for ac_last_try in false false :; do
21266 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21267 if test -z "$ac_tt"; then
21268 break
21269 elif $ac_last_try; then
21270 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21271 else
21272 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21273 fi
21274done
21275
21276# For the awk script, D is an array of macro values keyed by name,
21277# likewise P contains macro parameters if any. Preserve backslash
21278# newline sequences.
21279
21280ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21281sed -n '
21282s/.\{148\}/&'"$ac_delim"'/g
21283t rset
21284:rset
21285s/^[ ]*#[ ]*define[ ][ ]*/ /
21286t def
21287d
21288:def
21289s/\\$//
21290t bsnl
21291s/["\\]/\\&/g
21292s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21293D["\1"]=" \3"/p
21294s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21295d
21296:bsnl
21297s/["\\]/\\&/g
21298s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21299D["\1"]=" \3\\\\\\n"\\/p
21300t cont
21301s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21302t cont
21303d
21304:cont
21305n
21306s/.\{148\}/&'"$ac_delim"'/g
21307t clear
21308:clear
21309s/\\$//
21310t bsnlc
21311s/["\\]/\\&/g; s/^/"/; s/$/"/p
21312d
21313:bsnlc
21314s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21315b cont
21316' <confdefs.h | sed '
21317s/'"$ac_delim"'/"\\\
21318"/g' >>$CONFIG_STATUS || ac_write_fail=1
21319
21320cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21321 for (key in D) D_is_set[key] = 1
21322 FS = "\a"
21323}
21324/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21325 line = \$ 0
21326 split(line, arg, " ")
21327 if (arg[1] == "#") {
21328 defundef = arg[2]
21329 mac1 = arg[3]
21330 } else {
21331 defundef = substr(arg[1], 2)
21332 mac1 = arg[2]
21333 }
21334 split(mac1, mac2, "(") #)
21335 macro = mac2[1]
21336 prefix = substr(line, 1, index(line, defundef) - 1)
21337 if (D_is_set[macro]) {
21338 # Preserve the white space surrounding the "#".
21339 print prefix "define", macro P[macro] D[macro]
21340 next
21341 } else {
21342 # Replace #undef with comments. This is necessary, for example,
21343 # in the case of _POSIX_SOURCE, which is predefined and required
21344 # on some systems where configure will not decide to define it.
21345 if (defundef == "undef") {
21346 print "/*", prefix defundef, macro, "*/"
21347 next
21348 }
21349 }
21350}
21351{ print }
21352_ACAWK
21353_ACEOF
21354cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21355 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21356fi # test -n "$CONFIG_HEADERS"
21357
31cb0113 21358
80ed523f
VZ
21359eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21360shift
21361for ac_tag
31cb0113
VZ
21362do
21363 case $ac_tag in
21364 :[FHLC]) ac_mode=$ac_tag; continue;;
21365 esac
21366 case $ac_mode$ac_tag in
21367 :[FHL]*:*);;
80ed523f 21368 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
31cb0113
VZ
21369 :[FH]-) ac_tag=-:-;;
21370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21371 esac
21372 ac_save_IFS=$IFS
21373 IFS=:
21374 set x $ac_tag
21375 IFS=$ac_save_IFS
21376 shift
21377 ac_file=$1
21378 shift
21379
21380 case $ac_mode in
21381 :L) ac_source=$1;;
21382 :[FH])
21383 ac_file_inputs=
21384 for ac_f
21385 do
21386 case $ac_f in
80ed523f 21387 -) ac_f="$ac_tmp/stdin";;
31cb0113
VZ
21388 *) # Look for the file first in the build tree, then in the source tree
21389 # (if the path is not absolute). The absolute path cannot be DOS-style,
21390 # because $ac_f cannot contain `:'.
21391 test -f "$ac_f" ||
21392 case $ac_f in
21393 [\\/$]*) false;;
21394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21395 esac ||
80ed523f 21396 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
31cb0113 21397 esac
80ed523f
VZ
21398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21399 as_fn_append ac_file_inputs " '$ac_f'"
31cb0113
VZ
21400 done
21401
21402 # Let's still pretend it is `configure' which instantiates (i.e., don't
21403 # use $as_me), people would be surprised to read:
21404 # /* config.h. Generated by config.status. */
80ed523f
VZ
21405 configure_input='Generated from '`
21406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21407 `' by configure.'
31cb0113
VZ
21408 if test x"$ac_file" != x-; then
21409 configure_input="$ac_file. $configure_input"
80ed523f
VZ
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21411$as_echo "$as_me: creating $ac_file" >&6;}
31cb0113 21412 fi
80ed523f
VZ
21413 # Neutralize special characters interpreted by sed in replacement strings.
21414 case $configure_input in #(
21415 *\&* | *\|* | *\\* )
21416 ac_sed_conf_input=`$as_echo "$configure_input" |
21417 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21418 *) ac_sed_conf_input=$configure_input;;
21419 esac
31cb0113
VZ
21420
21421 case $ac_tag in
80ed523f
VZ
21422 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
31cb0113
VZ
21424 esac
21425 ;;
8414a40c
VZ
21426 esac
21427
31cb0113 21428 ac_dir=`$as_dirname -- "$ac_file" ||
8414a40c
VZ
21429$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21430 X"$ac_file" : 'X\(//\)[^/]' \| \
21431 X"$ac_file" : 'X\(//\)$' \| \
31cb0113 21432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
80ed523f 21433$as_echo X"$ac_file" |
31cb0113
VZ
21434 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21435 s//\1/
21436 q
21437 }
21438 /^X\(\/\/\)[^/].*/{
21439 s//\1/
21440 q
21441 }
21442 /^X\(\/\/\)$/{
21443 s//\1/
21444 q
21445 }
21446 /^X\(\/\).*/{
21447 s//\1/
21448 q
21449 }
21450 s/.*/./; q'`
80ed523f 21451 as_dir="$ac_dir"; as_fn_mkdir_p
8414a40c
VZ
21452 ac_builddir=.
21453
31cb0113
VZ
21454case "$ac_dir" in
21455.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21456*)
80ed523f 21457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
31cb0113 21458 # A ".." for each directory in $ac_dir_suffix.
80ed523f 21459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
31cb0113
VZ
21460 case $ac_top_builddir_sub in
21461 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21462 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21463 esac ;;
21464esac
21465ac_abs_top_builddir=$ac_pwd
21466ac_abs_builddir=$ac_pwd$ac_dir_suffix
21467# for backward compatibility:
21468ac_top_builddir=$ac_top_build_prefix
8414a40c
VZ
21469
21470case $srcdir in
31cb0113 21471 .) # We are building in place.
8414a40c 21472 ac_srcdir=.
31cb0113
VZ
21473 ac_top_srcdir=$ac_top_builddir_sub
21474 ac_abs_top_srcdir=$ac_pwd ;;
21475 [\\/]* | ?:[\\/]* ) # Absolute name.
8414a40c 21476 ac_srcdir=$srcdir$ac_dir_suffix;
31cb0113
VZ
21477 ac_top_srcdir=$srcdir
21478 ac_abs_top_srcdir=$srcdir ;;
21479 *) # Relative name.
21480 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21481 ac_top_srcdir=$ac_top_build_prefix$srcdir
21482 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8414a40c 21483esac
31cb0113 21484ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8414a40c 21485
8414a40c 21486
31cb0113
VZ
21487 case $ac_mode in
21488 :F)
21489 #
21490 # CONFIG_FILE
21491 #
8414a40c
VZ
21492
21493 case $INSTALL in
21494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
31cb0113 21495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8414a40c 21496 esac
80ed523f
VZ
21497 ac_MKDIR_P=$MKDIR_P
21498 case $MKDIR_P in
21499 [\\/$]* | ?:[\\/]* ) ;;
21500 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21501 esac
31cb0113 21502_ACEOF
8414a40c 21503
80ed523f 21504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
31cb0113
VZ
21505# If the template does not know about datarootdir, expand it.
21506# FIXME: This hack should be removed a few years after 2.60.
21507ac_datarootdir_hack=; ac_datarootdir_seen=
80ed523f
VZ
21508ac_sed_dataroot='
21509/datarootdir/ {
31cb0113
VZ
21510 p
21511 q
21512}
21513/@datadir@/p
21514/@docdir@/p
21515/@infodir@/p
21516/@localedir@/p
80ed523f
VZ
21517/@mandir@/p'
21518case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
31cb0113
VZ
21519*datarootdir*) ac_datarootdir_seen=yes;;
21520*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
80ed523f
VZ
21521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21522$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8414a40c 21523_ACEOF
80ed523f 21524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
31cb0113
VZ
21525 ac_datarootdir_hack='
21526 s&@datadir@&$datadir&g
21527 s&@docdir@&$docdir&g
21528 s&@infodir@&$infodir&g
21529 s&@localedir@&$localedir&g
21530 s&@mandir@&$mandir&g
80ed523f 21531 s&\\\${datarootdir}&$datarootdir&g' ;;
31cb0113
VZ
21532esac
21533_ACEOF
21534
21535# Neutralize VPATH when `$srcdir' = `.'.
21536# Shell code in configure.ac might set extrasub.
21537# FIXME: do we really want to maintain this feature?
80ed523f
VZ
21538cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21539ac_sed_extra="$ac_vpsub
8414a40c
VZ
21540$extrasub
21541_ACEOF
80ed523f 21542cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8414a40c
VZ
21543:t
21544/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
80ed523f 21545s|@configure_input@|$ac_sed_conf_input|;t t
31cb0113 21546s&@top_builddir@&$ac_top_builddir_sub&;t t
80ed523f 21547s&@top_build_prefix@&$ac_top_build_prefix&;t t
31cb0113
VZ
21548s&@srcdir@&$ac_srcdir&;t t
21549s&@abs_srcdir@&$ac_abs_srcdir&;t t
21550s&@top_srcdir@&$ac_top_srcdir&;t t
21551s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21552s&@builddir@&$ac_builddir&;t t
21553s&@abs_builddir@&$ac_abs_builddir&;t t
21554s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21555s&@INSTALL@&$ac_INSTALL&;t t
80ed523f 21556s&@MKDIR_P@&$ac_MKDIR_P&;t t
31cb0113 21557$ac_datarootdir_hack
80ed523f
VZ
21558"
21559eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21560 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31cb0113
VZ
21561
21562test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
80ed523f
VZ
21563 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21564 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21565 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21567which seems to be undefined. Please make sure it is defined" >&5
21568$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21569which seems to be undefined. Please make sure it is defined" >&2;}
21570
21571 rm -f "$ac_tmp/stdin"
8414a40c 21572 case $ac_file in
80ed523f
VZ
21573 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21574 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21575 esac \
21576 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
31cb0113
VZ
21577 ;;
21578 :H)
21579 #
21580 # CONFIG_HEADER
21581 #
8414a40c 21582 if test x"$ac_file" != x-; then
80ed523f
VZ
21583 {
21584 $as_echo "/* $configure_input */" \
21585 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21586 } >"$ac_tmp/config.h" \
21587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21588 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21589 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21590$as_echo "$as_me: $ac_file is unchanged" >&6;}
8414a40c 21591 else
80ed523f
VZ
21592 rm -f "$ac_file"
21593 mv "$ac_tmp/config.h" "$ac_file" \
21594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8414a40c
VZ
21595 fi
21596 else
80ed523f
VZ
21597 $as_echo "/* $configure_input */" \
21598 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21599 || as_fn_error $? "could not create -" "$LINENO" 5
8414a40c 21600 fi
80ed523f
VZ
21601# Compute "$ac_file"'s index in $config_headers.
21602_am_arg="$ac_file"
8414a40c
VZ
21603_am_stamp_count=1
21604for _am_header in $config_headers :; do
21605 case $_am_header in
80ed523f 21606 $_am_arg | $_am_arg:* )
8414a40c
VZ
21607 break ;;
21608 * )
21609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21610 esac
21611done
80ed523f
VZ
21612echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21613$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21614 X"$_am_arg" : 'X\(//\)[^/]' \| \
21615 X"$_am_arg" : 'X\(//\)$' \| \
21616 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21617$as_echo X"$_am_arg" |
31cb0113
VZ
21618 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21619 s//\1/
21620 q
21621 }
21622 /^X\(\/\/\)[^/].*/{
21623 s//\1/
21624 q
21625 }
21626 /^X\(\/\/\)$/{
21627 s//\1/
21628 q
21629 }
21630 /^X\(\/\).*/{
21631 s//\1/
21632 q
21633 }
21634 s/.*/./; q'`/stamp-h$_am_stamp_count
21635 ;;
8414a40c 21636
80ed523f
VZ
21637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21638$as_echo "$as_me: executing $ac_file commands" >&6;}
31cb0113
VZ
21639 ;;
21640 esac
8414a40c
VZ
21641
21642
31cb0113 21643 case $ac_file$ac_mode in
80ed523f
VZ
21644 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21645 # Autoconf 2.62 quotes --file arguments for eval, but not when files
21646 # are listed without --file. Let's play safe and only enable the eval
21647 # if we detect the quoting.
21648 case $CONFIG_FILES in
21649 *\'*) eval set x "$CONFIG_FILES" ;;
21650 *) set x $CONFIG_FILES ;;
21651 esac
21652 shift
21653 for mf
21654 do
21655 # Strip MF so we end up with the name of the file.
21656 mf=`echo "$mf" | sed -e 's/:.*$//'`
21657 # Check whether this is an Automake generated Makefile or not.
21658 # We used to match only the files named 'Makefile.in', but
21659 # some people rename them; so instead we look at the file content.
21660 # Grep'ing the first line is not enough: some people post-process
21661 # each Makefile.in and add a new line on top of each file to say so.
21662 # Grep'ing the whole file is not good either: AIX grep has a line
21663 # limit of 2048, but all sed's we know have understand at least 4000.
21664 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21665 dirpart=`$as_dirname -- "$mf" ||
8414a40c
VZ
21666$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21667 X"$mf" : 'X\(//\)[^/]' \| \
21668 X"$mf" : 'X\(//\)$' \| \
31cb0113 21669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
80ed523f 21670$as_echo X"$mf" |
31cb0113
VZ
21671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21672 s//\1/
21673 q
21674 }
21675 /^X\(\/\/\)[^/].*/{
21676 s//\1/
21677 q
21678 }
21679 /^X\(\/\/\)$/{
21680 s//\1/
21681 q
21682 }
21683 /^X\(\/\).*/{
21684 s//\1/
21685 q
21686 }
21687 s/.*/./; q'`
80ed523f
VZ
21688 else
21689 continue
21690 fi
21691 # Extract the definition of DEPDIR, am__include, and am__quote
21692 # from the Makefile without running 'make'.
21693 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21694 test -z "$DEPDIR" && continue
21695 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21696 test -z "am__include" && continue
21697 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21698 # Find all dependency output files, they are included files with
21699 # $(DEPDIR) in their names. We invoke sed twice because it is the
21700 # simplest approach to changing $(DEPDIR) to its actual value in the
21701 # expansion.
21702 for file in `sed -n "
21703 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21704 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21705 # Make sure the directory exists.
21706 test -f "$dirpart/$file" && continue
21707 fdir=`$as_dirname -- "$file" ||
8414a40c
VZ
21708$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709 X"$file" : 'X\(//\)[^/]' \| \
21710 X"$file" : 'X\(//\)$' \| \
31cb0113 21711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
80ed523f 21712$as_echo X"$file" |
31cb0113
VZ
21713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21714 s//\1/
21715 q
21716 }
21717 /^X\(\/\/\)[^/].*/{
21718 s//\1/
21719 q
21720 }
21721 /^X\(\/\/\)$/{
21722 s//\1/
21723 q
21724 }
21725 /^X\(\/\).*/{
21726 s//\1/
21727 q
21728 }
21729 s/.*/./; q'`
80ed523f
VZ
21730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21731 # echo "creating $dirpart/$file"
21732 echo '# dummy' > "$dirpart/$file"
8414a40c 21733 done
8414a40c 21734 done
80ed523f 21735}
8414a40c 21736 ;;
31cb0113 21737 "libtool":C)
8414a40c
VZ
21738
21739 # See if we are running on zsh, and set the options which allow our
21740 # commands through without removal of \ escapes.
21741 if test -n "${ZSH_VERSION+set}" ; then
21742 setopt NO_GLOB_SUBST
21743 fi
21744
21745 cfgfile="${ofile}T"
21746 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21747 $RM "$cfgfile"
21748
21749 cat <<_LT_EOF >> "$cfgfile"
21750#! $SHELL
21751
21752# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
80ed523f 21753# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
8414a40c
VZ
21754# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21755# NOTE: Changes made to this file will be lost: look at ltmain.sh.
21756#
80ed523f
VZ
21757# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21758# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
21759# Foundation, Inc.
21760# Written by Gordon Matzigkeit, 1996
8414a40c 21761#
80ed523f 21762# This file is part of GNU Libtool.
8414a40c 21763#
80ed523f
VZ
21764# GNU Libtool is free software; you can redistribute it and/or
21765# modify it under the terms of the GNU General Public License as
21766# published by the Free Software Foundation; either version 2 of
21767# the License, or (at your option) any later version.
8414a40c 21768#
80ed523f
VZ
21769# As a special exception to the GNU General Public License,
21770# if you distribute this file as part of a program or library that
21771# is built using GNU Libtool, you may include this file under the
21772# same distribution terms that you use for the rest of that program.
8414a40c 21773#
80ed523f
VZ
21774# GNU Libtool is distributed in the hope that it will be useful,
21775# but WITHOUT ANY WARRANTY; without even the implied warranty of
21776# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21777# GNU General Public License for more details.
8414a40c 21778#
80ed523f
VZ
21779# You should have received a copy of the GNU General Public License
21780# along with GNU Libtool; see the file COPYING. If not, a copy
21781# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
21782# obtained by writing to the Free Software Foundation, Inc.,
21783# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
8414a40c 21784
8414a40c
VZ
21785
21786# The names of the tagged configurations supported by this script.
21787available_tags="CXX "
21788
21789# ### BEGIN LIBTOOL CONFIG
21790
21791# Which release of libtool.m4 was used?
21792macro_version=$macro_version
21793macro_revision=$macro_revision
21794
80ed523f
VZ
21795# Assembler program.
21796AS=$lt_AS
21797
21798# DLL creation program.
21799DLLTOOL=$lt_DLLTOOL
21800
21801# Object dumper program.
21802OBJDUMP=$lt_OBJDUMP
21803
8414a40c
VZ
21804# Whether or not to build shared libraries.
21805build_libtool_libs=$enable_shared
21806
21807# Whether or not to build static libraries.
21808build_old_libs=$enable_static
21809
21810# What type of objects to build.
21811pic_mode=$pic_mode
21812
21813# Whether or not to optimize for fast installation.
21814fast_install=$enable_fast_install
21815
80ed523f
VZ
21816# Shell to use when invoking shell scripts.
21817SHELL=$lt_SHELL
21818
21819# An echo program that protects backslashes.
21820ECHO=$lt_ECHO
21821
21822# The PATH separator for the build system.
21823PATH_SEPARATOR=$lt_PATH_SEPARATOR
21824
8414a40c
VZ
21825# The host system.
21826host_alias=$host_alias
21827host=$host
21828host_os=$host_os
21829
21830# The build system.
21831build_alias=$build_alias
21832build=$build
21833build_os=$build_os
21834
21835# A sed program that does not truncate output.
21836SED=$lt_SED
21837
21838# Sed that helps us avoid accidentally triggering echo(1) options like -n.
21839Xsed="\$SED -e 1s/^X//"
21840
21841# A grep program that handles long lines.
21842GREP=$lt_GREP
21843
21844# An ERE matcher.
21845EGREP=$lt_EGREP
21846
21847# A literal string matcher.
21848FGREP=$lt_FGREP
21849
21850# A BSD- or MS-compatible name lister.
21851NM=$lt_NM
21852
21853# Whether we need soft or hard links.
21854LN_S=$lt_LN_S
21855
21856# What is the maximum length of a command?
21857max_cmd_len=$max_cmd_len
21858
21859# Object file suffix (normally "o").
21860objext=$ac_objext
21861
21862# Executable file suffix (normally "").
21863exeext=$exeext
21864
80ed523f
VZ
21865# whether the shell understands "unset".
21866lt_unset=$lt_unset
21867
21868# turn spaces into newlines.
21869SP2NL=$lt_lt_SP2NL
21870
21871# turn newlines into spaces.
21872NL2SP=$lt_lt_NL2SP
21873
21874# convert \$build file names to \$host format.
21875to_host_file_cmd=$lt_cv_to_host_file_cmd
21876
21877# convert \$build files to toolchain format.
21878to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8414a40c
VZ
21879
21880# Method to check whether dependent libraries are shared objects.
21881deplibs_check_method=$lt_deplibs_check_method
21882
80ed523f 21883# Command to use when deplibs_check_method = "file_magic".
8414a40c
VZ
21884file_magic_cmd=$lt_file_magic_cmd
21885
80ed523f
VZ
21886# How to find potential files when deplibs_check_method = "file_magic".
21887file_magic_glob=$lt_file_magic_glob
21888
21889# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21890want_nocaseglob=$lt_want_nocaseglob
21891
21892# Command to associate shared and link libraries.
21893sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21894
8414a40c
VZ
21895# The archiver.
21896AR=$lt_AR
80ed523f
VZ
21897
21898# Flags to create an archive.
8414a40c
VZ
21899AR_FLAGS=$lt_AR_FLAGS
21900
80ed523f
VZ
21901# How to feed a file listing to the archiver.
21902archiver_list_spec=$lt_archiver_list_spec
21903
8414a40c
VZ
21904# A symbol stripping program.
21905STRIP=$lt_STRIP
21906
21907# Commands used to install an old-style archive.
21908RANLIB=$lt_RANLIB
21909old_postinstall_cmds=$lt_old_postinstall_cmds
21910old_postuninstall_cmds=$lt_old_postuninstall_cmds
21911
80ed523f
VZ
21912# Whether to use a lock for old archive extraction.
21913lock_old_archive_extraction=$lock_old_archive_extraction
21914
8414a40c
VZ
21915# A C compiler.
21916LTCC=$lt_CC
21917
21918# LTCC compiler flags.
21919LTCFLAGS=$lt_CFLAGS
21920
21921# Take the output of nm and produce a listing of raw symbols and C names.
21922global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21923
21924# Transform the output of nm in a proper C declaration.
21925global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21926
21927# Transform the output of nm in a C name address pair.
21928global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21929
80ed523f
VZ
21930# Transform the output of nm in a C name address pair when lib prefix is needed.
21931global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
8414a40c 21932
80ed523f
VZ
21933# Specify filename containing input files for \$NM.
21934nm_file_list_spec=$lt_nm_file_list_spec
8414a40c 21935
80ed523f
VZ
21936# The root where to search for dependent libraries,and in which our libraries should be installed.
21937lt_sysroot=$lt_sysroot
21938
21939# The name of the directory that contains temporary libtool files.
21940objdir=$objdir
8414a40c
VZ
21941
21942# Used to examine libraries when file_magic_cmd begins with "file".
21943MAGIC_CMD=$MAGIC_CMD
21944
21945# Must we lock files when doing compilation?
21946need_locks=$lt_need_locks
21947
80ed523f
VZ
21948# Manifest tool.
21949MANIFEST_TOOL=$lt_MANIFEST_TOOL
21950
21951# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21952DSYMUTIL=$lt_DSYMUTIL
21953
21954# Tool to change global to local symbols on Mac OS X.
21955NMEDIT=$lt_NMEDIT
21956
21957# Tool to manipulate fat objects and archives on Mac OS X.
21958LIPO=$lt_LIPO
21959
21960# ldd/readelf like tool for Mach-O binaries on Mac OS X.
21961OTOOL=$lt_OTOOL
21962
21963# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21964OTOOL64=$lt_OTOOL64
21965
8414a40c
VZ
21966# Old archive suffix (normally "a").
21967libext=$libext
21968
21969# Shared library suffix (normally ".so").
21970shrext_cmds=$lt_shrext_cmds
21971
21972# The commands to extract the exported symbol list from a shared archive.
21973extract_expsyms_cmds=$lt_extract_expsyms_cmds
21974
21975# Variables whose values should be saved in libtool wrapper scripts and
21976# restored at link time.
21977variables_saved_for_relink=$lt_variables_saved_for_relink
21978
21979# Do we need the "lib" prefix for modules?
21980need_lib_prefix=$need_lib_prefix
21981
21982# Do we need a version for libraries?
21983need_version=$need_version
21984
21985# Library versioning type.
21986version_type=$version_type
21987
21988# Shared library runtime path variable.
21989runpath_var=$runpath_var
21990
21991# Shared library path variable.
21992shlibpath_var=$shlibpath_var
21993
21994# Is shlibpath searched before the hard-coded library search path?
21995shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21996
21997# Format of library name prefix.
21998libname_spec=$lt_libname_spec
21999
22000# List of archive names. First name is the real one, the rest are links.
22001# The last name is the one that the linker finds with -lNAME
22002library_names_spec=$lt_library_names_spec
22003
22004# The coded name of the library, if different from the real name.
22005soname_spec=$lt_soname_spec
22006
80ed523f
VZ
22007# Permission mode override for installation of shared libraries.
22008install_override_mode=$lt_install_override_mode
22009
8414a40c
VZ
22010# Command to use after installation of a shared archive.
22011postinstall_cmds=$lt_postinstall_cmds
22012
22013# Command to use after uninstallation of a shared archive.
22014postuninstall_cmds=$lt_postuninstall_cmds
22015
22016# Commands used to finish a libtool library installation in a directory.
22017finish_cmds=$lt_finish_cmds
22018
22019# As "finish_cmds", except a single script fragment to be evaled but
22020# not shown.
22021finish_eval=$lt_finish_eval
22022
22023# Whether we should hardcode library paths into libraries.
22024hardcode_into_libs=$hardcode_into_libs
22025
22026# Compile-time system search path for libraries.
22027sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22028
22029# Run-time system search path for libraries.
22030sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22031
22032# Whether dlopen is supported.
22033dlopen_support=$enable_dlopen
22034
22035# Whether dlopen of programs is supported.
22036dlopen_self=$enable_dlopen_self
22037
22038# Whether dlopen of statically linked programs is supported.
22039dlopen_self_static=$enable_dlopen_self_static
22040
22041# Commands to strip libraries.
22042old_striplib=$lt_old_striplib
22043striplib=$lt_striplib
22044
8414a40c
VZ
22045
22046# The linker used to build libraries.
22047LD=$lt_LD
22048
80ed523f
VZ
22049# How to create reloadable object files.
22050reload_flag=$lt_reload_flag
22051reload_cmds=$lt_reload_cmds
22052
8414a40c
VZ
22053# Commands used to build an old-style archive.
22054old_archive_cmds=$lt_old_archive_cmds
22055
22056# A language specific compiler.
22057CC=$lt_compiler
22058
22059# Is the compiler the GNU compiler?
22060with_gcc=$GCC
22061
22062# Compiler flag to turn off builtin functions.
22063no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22064
8414a40c
VZ
22065# Additional compiler flags for building library objects.
22066pic_flag=$lt_lt_prog_compiler_pic
22067
80ed523f
VZ
22068# How to pass a linker flag through the compiler.
22069wl=$lt_lt_prog_compiler_wl
22070
8414a40c
VZ
22071# Compiler flag to prevent dynamic linking.
22072link_static_flag=$lt_lt_prog_compiler_static
22073
22074# Does compiler simultaneously support -c and -o options?
22075compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22076
22077# Whether or not to add -lc for building shared libraries.
22078build_libtool_need_lc=$archive_cmds_need_lc
22079
22080# Whether or not to disallow shared libs when runtime libs are static.
22081allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22082
22083# Compiler flag to allow reflexive dlopens.
22084export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22085
22086# Compiler flag to generate shared objects directly from archives.
22087whole_archive_flag_spec=$lt_whole_archive_flag_spec
22088
80ed523f
VZ
22089# Whether the compiler copes with passing no objects directly.
22090compiler_needs_object=$lt_compiler_needs_object
22091
8414a40c
VZ
22092# Create an old-style archive from a shared archive.
22093old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22094
22095# Create a temporary old-style archive to link instead of a shared archive.
22096old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22097
22098# Commands used to build a shared archive.
22099archive_cmds=$lt_archive_cmds
22100archive_expsym_cmds=$lt_archive_expsym_cmds
22101
22102# Commands used to build a loadable module if different from building
22103# a shared archive.
22104module_cmds=$lt_module_cmds
22105module_expsym_cmds=$lt_module_expsym_cmds
22106
22107# Whether we are building with GNU ld or not.
22108with_gnu_ld=$lt_with_gnu_ld
22109
22110# Flag that allows shared libraries with undefined symbols to be built.
22111allow_undefined_flag=$lt_allow_undefined_flag
22112
22113# Flag that enforces no undefined symbols.
22114no_undefined_flag=$lt_no_undefined_flag
22115
22116# Flag to hardcode \$libdir into a binary during linking.
22117# This must work even if \$libdir does not exist
22118hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22119
8414a40c
VZ
22120# Whether we need a single "-rpath" flag with a separated argument.
22121hardcode_libdir_separator=$lt_hardcode_libdir_separator
22122
22123# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22124# DIR into the resulting binary.
22125hardcode_direct=$hardcode_direct
22126
80ed523f
VZ
22127# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22128# DIR into the resulting binary and the resulting library dependency is
22129# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22130# library is relocated.
22131hardcode_direct_absolute=$hardcode_direct_absolute
22132
8414a40c
VZ
22133# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22134# into the resulting binary.
22135hardcode_minus_L=$hardcode_minus_L
22136
22137# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22138# into the resulting binary.
22139hardcode_shlibpath_var=$hardcode_shlibpath_var
22140
22141# Set to "yes" if building a shared library automatically hardcodes DIR
22142# into the library and all subsequent libraries and executables linked
22143# against it.
22144hardcode_automatic=$hardcode_automatic
22145
22146# Set to yes if linker adds runtime paths of dependent libraries
22147# to runtime path list.
22148inherit_rpath=$inherit_rpath
22149
22150# Whether libtool must link a program against all its dependency libraries.
22151link_all_deplibs=$link_all_deplibs
22152
8414a40c
VZ
22153# Set to "yes" if exported symbols are required.
22154always_export_symbols=$always_export_symbols
22155
22156# The commands to list exported symbols.
22157export_symbols_cmds=$lt_export_symbols_cmds
22158
22159# Symbols that should not be listed in the preloaded symbols.
22160exclude_expsyms=$lt_exclude_expsyms
22161
22162# Symbols that must always be exported.
22163include_expsyms=$lt_include_expsyms
22164
22165# Commands necessary for linking programs (against libraries) with templates.
22166prelink_cmds=$lt_prelink_cmds
22167
80ed523f
VZ
22168# Commands necessary for finishing linking programs.
22169postlink_cmds=$lt_postlink_cmds
22170
8414a40c
VZ
22171# Specify filename containing input files.
22172file_list_spec=$lt_file_list_spec
22173
22174# How to hardcode a shared library path into an executable.
22175hardcode_action=$hardcode_action
22176
80ed523f
VZ
22177# The directories searched by this compiler when creating a shared library.
22178compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22179
8414a40c
VZ
22180# Dependencies to place before and after the objects being linked to
22181# create a shared library.
22182predep_objects=$lt_predep_objects
22183postdep_objects=$lt_postdep_objects
22184predeps=$lt_predeps
22185postdeps=$lt_postdeps
22186
22187# The library search path used internally by the compiler when linking
22188# a shared library.
22189compiler_lib_search_path=$lt_compiler_lib_search_path
22190
22191# ### END LIBTOOL CONFIG
22192
8414a40c
VZ
22193_LT_EOF
22194
22195 case $host_os in
22196 aix3*)
22197 cat <<\_LT_EOF >> "$cfgfile"
22198# AIX sometimes has problems with the GCC collect2 program. For some
22199# reason, if we set the COLLECT_NAMES environment variable, the problems
22200# vanish in a puff of smoke.
22201if test "X${COLLECT_NAMES+set}" != Xset; then
22202 COLLECT_NAMES=
22203 export COLLECT_NAMES
22204fi
22205_LT_EOF
22206 ;;
22207 esac
22208
22209
22210ltmain="$ac_aux_dir/ltmain.sh"
22211
22212
22213 # We use sed instead of cat because bash on DJGPP gets confused if
22214 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22215 # text mode, it properly converts lines to CR/LF. This bash problem
22216 # is reportedly fixed, but why not run on old versions too?
80ed523f
VZ
22217 sed '$q' "$ltmain" >> "$cfgfile" \
22218 || (rm -f "$cfgfile"; exit 1)
22219
22220 if test x"$xsi_shell" = xyes; then
22221 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
22222func_dirname ()\
22223{\
22224\ case ${1} in\
22225\ */*) func_dirname_result="${1%/*}${2}" ;;\
22226\ * ) func_dirname_result="${3}" ;;\
22227\ esac\
22228} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
22229 && mv -f "$cfgfile.tmp" "$cfgfile" \
22230 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22231test 0 -eq $? || _lt_function_replace_fail=:
22232
22233
22234 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22235func_basename ()\
22236{\
22237\ func_basename_result="${1##*/}"\
22238} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
22239 && mv -f "$cfgfile.tmp" "$cfgfile" \
22240 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22241test 0 -eq $? || _lt_function_replace_fail=:
22242
22243
22244 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22245func_dirname_and_basename ()\
22246{\
22247\ case ${1} in\
22248\ */*) func_dirname_result="${1%/*}${2}" ;;\
22249\ * ) func_dirname_result="${3}" ;;\
22250\ esac\
22251\ func_basename_result="${1##*/}"\
22252} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
22253 && mv -f "$cfgfile.tmp" "$cfgfile" \
22254 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22255test 0 -eq $? || _lt_function_replace_fail=:
22256
22257
22258 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22259func_stripname ()\
22260{\
22261\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
22262\ # positional parameters, so assign one to ordinary parameter first.\
22263\ func_stripname_result=${3}\
22264\ func_stripname_result=${func_stripname_result#"${1}"}\
22265\ func_stripname_result=${func_stripname_result%"${2}"}\
22266} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
22267 && mv -f "$cfgfile.tmp" "$cfgfile" \
22268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22269test 0 -eq $? || _lt_function_replace_fail=:
22270
22271
22272 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22273func_split_long_opt ()\
22274{\
22275\ func_split_long_opt_name=${1%%=*}\
22276\ func_split_long_opt_arg=${1#*=}\
22277} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
22278 && mv -f "$cfgfile.tmp" "$cfgfile" \
22279 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22280test 0 -eq $? || _lt_function_replace_fail=:
22281
22282
22283 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22284func_split_short_opt ()\
22285{\
22286\ func_split_short_opt_arg=${1#??}\
22287\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
22288} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
22289 && mv -f "$cfgfile.tmp" "$cfgfile" \
22290 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22291test 0 -eq $? || _lt_function_replace_fail=:
22292
22293
22294 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22295func_lo2o ()\
22296{\
22297\ case ${1} in\
22298\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
22299\ *) func_lo2o_result=${1} ;;\
22300\ esac\
22301} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
22302 && mv -f "$cfgfile.tmp" "$cfgfile" \
22303 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22304test 0 -eq $? || _lt_function_replace_fail=:
22305
22306
22307 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22308func_xform ()\
22309{\
22310 func_xform_result=${1%.*}.lo\
22311} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
22312 && mv -f "$cfgfile.tmp" "$cfgfile" \
22313 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22314test 0 -eq $? || _lt_function_replace_fail=:
22315
22316
22317 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22318func_arith ()\
22319{\
22320 func_arith_result=$(( $* ))\
22321} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
22322 && mv -f "$cfgfile.tmp" "$cfgfile" \
22323 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22324test 0 -eq $? || _lt_function_replace_fail=:
22325
22326
22327 sed -e '/^func_len ()$/,/^} # func_len /c\
22328func_len ()\
22329{\
22330 func_len_result=${#1}\
22331} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
22332 && mv -f "$cfgfile.tmp" "$cfgfile" \
22333 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22334test 0 -eq $? || _lt_function_replace_fail=:
22335
22336fi
22337
22338if test x"$lt_shell_append" = xyes; then
22339 sed -e '/^func_append ()$/,/^} # func_append /c\
22340func_append ()\
22341{\
22342 eval "${1}+=\\${2}"\
22343} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
22344 && mv -f "$cfgfile.tmp" "$cfgfile" \
22345 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22346test 0 -eq $? || _lt_function_replace_fail=:
22347
22348
22349 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22350func_append_quoted ()\
22351{\
22352\ func_quote_for_eval "${2}"\
22353\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
22354} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
22355 && mv -f "$cfgfile.tmp" "$cfgfile" \
22356 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22357test 0 -eq $? || _lt_function_replace_fail=:
22358
22359
22360 # Save a `func_append' function call where possible by direct use of '+='
22361 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
22362 && mv -f "$cfgfile.tmp" "$cfgfile" \
22363 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22364 test 0 -eq $? || _lt_function_replace_fail=:
22365else
22366 # Save a `func_append' function call even when '+=' is not available
22367 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
22368 && mv -f "$cfgfile.tmp" "$cfgfile" \
22369 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
22370 test 0 -eq $? || _lt_function_replace_fail=:
22371fi
22372
22373if test x"$_lt_function_replace_fail" = x":"; then
22374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
22375$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
22376fi
22377
22378
22379 mv -f "$cfgfile" "$ofile" ||
8414a40c
VZ
22380 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22381 chmod +x "$ofile"
22382
22383
22384 cat <<_LT_EOF >> "$ofile"
22385
22386# ### BEGIN LIBTOOL TAG CONFIG: CXX
22387
22388# The linker used to build libraries.
22389LD=$lt_LD_CXX
22390
80ed523f
VZ
22391# How to create reloadable object files.
22392reload_flag=$lt_reload_flag_CXX
22393reload_cmds=$lt_reload_cmds_CXX
22394
8414a40c
VZ
22395# Commands used to build an old-style archive.
22396old_archive_cmds=$lt_old_archive_cmds_CXX
22397
22398# A language specific compiler.
22399CC=$lt_compiler_CXX
22400
22401# Is the compiler the GNU compiler?
22402with_gcc=$GCC_CXX
22403
22404# Compiler flag to turn off builtin functions.
22405no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22406
8414a40c
VZ
22407# Additional compiler flags for building library objects.
22408pic_flag=$lt_lt_prog_compiler_pic_CXX
22409
80ed523f
VZ
22410# How to pass a linker flag through the compiler.
22411wl=$lt_lt_prog_compiler_wl_CXX
22412
8414a40c
VZ
22413# Compiler flag to prevent dynamic linking.
22414link_static_flag=$lt_lt_prog_compiler_static_CXX
22415
22416# Does compiler simultaneously support -c and -o options?
22417compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22418
22419# Whether or not to add -lc for building shared libraries.
22420build_libtool_need_lc=$archive_cmds_need_lc_CXX
22421
22422# Whether or not to disallow shared libs when runtime libs are static.
22423allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22424
22425# Compiler flag to allow reflexive dlopens.
22426export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22427
22428# Compiler flag to generate shared objects directly from archives.
22429whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22430
80ed523f
VZ
22431# Whether the compiler copes with passing no objects directly.
22432compiler_needs_object=$lt_compiler_needs_object_CXX
22433
8414a40c
VZ
22434# Create an old-style archive from a shared archive.
22435old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22436
22437# Create a temporary old-style archive to link instead of a shared archive.
22438old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22439
22440# Commands used to build a shared archive.
22441archive_cmds=$lt_archive_cmds_CXX
22442archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22443
22444# Commands used to build a loadable module if different from building
22445# a shared archive.
22446module_cmds=$lt_module_cmds_CXX
22447module_expsym_cmds=$lt_module_expsym_cmds_CXX
22448
22449# Whether we are building with GNU ld or not.
22450with_gnu_ld=$lt_with_gnu_ld_CXX
22451
22452# Flag that allows shared libraries with undefined symbols to be built.
22453allow_undefined_flag=$lt_allow_undefined_flag_CXX
22454
22455# Flag that enforces no undefined symbols.
22456no_undefined_flag=$lt_no_undefined_flag_CXX
22457
22458# Flag to hardcode \$libdir into a binary during linking.
22459# This must work even if \$libdir does not exist
22460hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22461
8414a40c
VZ
22462# Whether we need a single "-rpath" flag with a separated argument.
22463hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22464
22465# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22466# DIR into the resulting binary.
22467hardcode_direct=$hardcode_direct_CXX
22468
80ed523f
VZ
22469# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22470# DIR into the resulting binary and the resulting library dependency is
22471# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22472# library is relocated.
22473hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22474
8414a40c
VZ
22475# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22476# into the resulting binary.
22477hardcode_minus_L=$hardcode_minus_L_CXX
22478
22479# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22480# into the resulting binary.
22481hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22482
22483# Set to "yes" if building a shared library automatically hardcodes DIR
22484# into the library and all subsequent libraries and executables linked
22485# against it.
22486hardcode_automatic=$hardcode_automatic_CXX
22487
22488# Set to yes if linker adds runtime paths of dependent libraries
22489# to runtime path list.
22490inherit_rpath=$inherit_rpath_CXX
22491
22492# Whether libtool must link a program against all its dependency libraries.
22493link_all_deplibs=$link_all_deplibs_CXX
22494
8414a40c
VZ
22495# Set to "yes" if exported symbols are required.
22496always_export_symbols=$always_export_symbols_CXX
22497
22498# The commands to list exported symbols.
22499export_symbols_cmds=$lt_export_symbols_cmds_CXX
22500
22501# Symbols that should not be listed in the preloaded symbols.
22502exclude_expsyms=$lt_exclude_expsyms_CXX
22503
22504# Symbols that must always be exported.
22505include_expsyms=$lt_include_expsyms_CXX
22506
22507# Commands necessary for linking programs (against libraries) with templates.
22508prelink_cmds=$lt_prelink_cmds_CXX
22509
80ed523f
VZ
22510# Commands necessary for finishing linking programs.
22511postlink_cmds=$lt_postlink_cmds_CXX
22512
8414a40c
VZ
22513# Specify filename containing input files.
22514file_list_spec=$lt_file_list_spec_CXX
22515
22516# How to hardcode a shared library path into an executable.
22517hardcode_action=$hardcode_action_CXX
22518
80ed523f
VZ
22519# The directories searched by this compiler when creating a shared library.
22520compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22521
8414a40c
VZ
22522# Dependencies to place before and after the objects being linked to
22523# create a shared library.
22524predep_objects=$lt_predep_objects_CXX
22525postdep_objects=$lt_postdep_objects_CXX
22526predeps=$lt_predeps_CXX
22527postdeps=$lt_postdeps_CXX
22528
22529# The library search path used internally by the compiler when linking
22530# a shared library.
22531compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22532
22533# ### END LIBTOOL TAG CONFIG: CXX
22534_LT_EOF
22535
22536 ;;
31cb0113 22537
8414a40c 22538 esac
31cb0113 22539done # for ac_tag
8414a40c 22540
8414a40c 22541
80ed523f 22542as_fn_exit 0
8414a40c 22543_ACEOF
8414a40c
VZ
22544ac_clean_files=$ac_clean_files_save
22545
80ed523f
VZ
22546test $ac_write_fail = 0 ||
22547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22548
8414a40c
VZ
22549
22550# configure is writing to config.log, and then calls config.status.
22551# config.status does its own redirection, appending to config.log.
22552# Unfortunately, on DOS this fails, as config.log is still kept open
22553# by configure, so config.status won't be able to write to it; its
22554# output is simply discarded. So we exec the FD to /dev/null,
22555# effectively closing config.log, so it can be properly (re)opened and
22556# appended to by config.status. When coming back to configure, we
22557# need to make the FD available again.
22558if test "$no_create" != yes; then
22559 ac_cs_success=:
22560 ac_config_status_args=
22561 test "$silent" = yes &&
22562 ac_config_status_args="$ac_config_status_args --quiet"
22563 exec 5>/dev/null
22564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22565 exec 5>>config.log
22566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22567 # would make configure fail if this is the last instruction.
80ed523f
VZ
22568 $ac_cs_success || as_fn_exit 1
22569fi
22570if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22572$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8414a40c
VZ
22573fi
22574
22575
22576
22577echo ""
22578echo "Libtiff is now configured for ${host}"
22579echo ""
22580echo " Installation directory: ${prefix}"
22581echo " Documentation directory: ${LIBTIFF_DOCDIR}"
22582echo " C compiler: ${CC} ${CFLAGS}"
22583echo " C++ compiler: ${CXX} ${CXXFLAGS}"
22584echo " Enable runtime linker paths: ${HAVE_RPATH}"
80ed523f 22585echo " Enable linker symbol versioning: ${have_ld_version_script}"
8414a40c 22586echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
80ed523f 22587echo " Use win32 IO: ${win32_io_ok}"
8414a40c
VZ
22588echo ""
22589echo " Support for internal codecs:"
22590echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
22591echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
22592echo " LZW algorithm: ${HAVE_LZW}"
22593echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
22594echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
22595echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22596echo ""
22597echo " Support for external codecs:"
22598echo " ZLIB support: ${HAVE_ZLIB}"
22599echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
22600echo " JPEG support: ${HAVE_JPEG}"
22601echo " Old JPEG support: ${HAVE_OJPEG}"
80ed523f
VZ
22602echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}"
22603echo " ISO JBIG support: ${HAVE_JBIG}"
22604echo " LZMA2 support: ${HAVE_LZMA}"
8414a40c
VZ
22605echo ""
22606echo " C++ support: ${HAVE_CXX}"
22607echo ""
22608echo " OpenGL support: ${HAVE_OPENGL}"
22609echo ""
22610