]> git.saurik.com Git - wxWidgets.git/blob - src/tiff/configure
Reflect changes in stc.cpp in stc.cpp.in from which it's generated.
[wxWidgets.git] / src / tiff / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for LibTIFF Software 4.0.3.
4 #
5 # Report bugs to <tiff@lists.maptools.org>.
6 #
7 #
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 #
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
90
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
97 do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
103
104 ;;
105 esac
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
109 as_myself=$0
110 fi
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114 fi
115
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
127
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
133
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176 esac
177 fi
178 "
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
184
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192 else
193 exitcode=1; echo positional parameters were not saved.
194 fi
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201
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
209 test \$(( 1 + 1 )) = 2 || exit 1"
210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212 else
213 as_have_required=no
214 fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217 else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219 as_found=false
220 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
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
235 fi
236 fi
237 done;;
238 esac
239 as_found=false
240 done
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
244 fi; }
245 IFS=$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.
254 BASH_ENV=/dev/null
255 ENV=/dev/null
256 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257 case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262 esac
263 exec $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
267 exit 255
268 fi
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."
276 else
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."
282 fi
283 exit 1
284 fi
285 fi
286 fi
287 SHELL=${CONFIG_SHELL-/bin/sh}
288 export SHELL
289 # Unset more variables known to interfere with behavior of common tools.
290 CLICOLOR_FORCE= GREP_OPTIONS=
291 unset CLICOLOR_FORCE GREP_OPTIONS
292
293 ## --------------------- ##
294 ## M4sh Shell Functions. ##
295 ## --------------------- ##
296 # as_fn_unset VAR
297 # ---------------
298 # Portably unset VAR.
299 as_fn_unset ()
300 {
301 { eval $1=; unset $1;}
302 }
303 as_unset=as_fn_unset
304
305 # as_fn_set_status STATUS
306 # -----------------------
307 # Set $? to STATUS, without forking.
308 as_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.
316 as_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.
326 as_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.
374 as_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.
384 if (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 }'
389 else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394 fi # 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.
401 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406 else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411 fi # 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.
419 as_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
429
430 if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433 else
434 as_expr=false
435 fi
436
437 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439 else
440 as_basename=false
441 fi
442
443 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445 else
446 as_dirname=false
447 fi
448
449 as_me=`$as_basename -- "$0" ||
450 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453 $as_echo X/"$0" |
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'`
467
468 # Avoid depending upon Character Ranges.
469 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472 as_cr_digits='0123456789'
473 as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
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; }
498
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
509 }
510
511 ECHO_C= ECHO_N= ECHO_T=
512 case `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';;
522 esac
523
524 rm -f conf$$ conf$$.exe conf$$.file
525 if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527 else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530 fi
531 if (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
545 else
546 as_ln_s='cp -pR'
547 fi
548 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549 rmdir conf$$.dir 2>/dev/null
550
551 if mkdir -p . 2>/dev/null; then
552 as_mkdir_p='mkdir -p "$as_dir"'
553 else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556 fi
557
558 as_test_x='test -x'
559 as_executable_p=as_fn_executable_p
560
561 # Sed expression to map a string onto a valid CPP name.
562 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564 # Sed expression to map a string onto a valid variable name.
565 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567 SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570 test -n "$DJDIR" || exec 7<&0 </dev/null
571 exec 6>&1
572
573 # Name of the host.
574 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575 # so uname gets run too.
576 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578 #
579 # Initializations.
580 #
581 ac_default_prefix=/usr/local
582 ac_clean_files=
583 ac_config_libobj_dir=.
584 LIBOBJS=
585 cross_compiling=no
586 subdirs=
587 MFLAGS=
588 MAKEFLAGS=
589
590 # Identity of this package.
591 PACKAGE_NAME='LibTIFF Software'
592 PACKAGE_TARNAME='tiff'
593 PACKAGE_VERSION='4.0.3'
594 PACKAGE_STRING='LibTIFF Software 4.0.3'
595 PACKAGE_BUGREPORT='tiff@lists.maptools.org'
596 PACKAGE_URL=''
597
598 # Factoring default headers for most tests.
599 ac_includes_default="\
600 #include <stdio.h>
601 #ifdef HAVE_SYS_TYPES_H
602 # include <sys/types.h>
603 #endif
604 #ifdef HAVE_SYS_STAT_H
605 # include <sys/stat.h>
606 #endif
607 #ifdef STDC_HEADERS
608 # include <stdlib.h>
609 # include <stddef.h>
610 #else
611 # ifdef HAVE_STDLIB_H
612 # include <stdlib.h>
613 # endif
614 #endif
615 #ifdef HAVE_STRING_H
616 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
617 # include <memory.h>
618 # endif
619 # include <string.h>
620 #endif
621 #ifdef HAVE_STRINGS_H
622 # include <strings.h>
623 #endif
624 #ifdef HAVE_INTTYPES_H
625 # include <inttypes.h>
626 #endif
627 #ifdef HAVE_STDINT_H
628 # include <stdint.h>
629 #endif
630 #ifdef HAVE_UNISTD_H
631 # include <unistd.h>
632 #endif"
633
634 ac_subst_vars='am__EXEEXT_FALSE
635 am__EXEEXT_TRUE
636 LTLIBOBJS
637 LIBDIR
638 WIN32_IO_FALSE
639 WIN32_IO_TRUE
640 HAVE_OPENGL_FALSE
641 HAVE_OPENGL_TRUE
642 GLUT_LIBS
643 GLUT_CFLAGS
644 GLU_LIBS
645 GLU_CFLAGS
646 GL_LIBS
647 GL_CFLAGS
648 PTHREAD_CFLAGS
649 PTHREAD_LIBS
650 PTHREAD_CC
651 ax_pthread_config
652 X_EXTRA_LIBS
653 X_LIBS
654 X_PRE_LIBS
655 X_CFLAGS
656 XMKMF
657 HAVE_CXX_FALSE
658 HAVE_CXX_TRUE
659 LIBTIFF_DOCDIR
660 HAVE_RPATH_FALSE
661 HAVE_RPATH_TRUE
662 LIBOBJS
663 tiff_libs_private
664 AM_BACKSLASH
665 AM_DEFAULT_VERBOSITY
666 AM_DEFAULT_V
667 AM_V
668 CXXCPP
669 am__fastdepCXX_FALSE
670 am__fastdepCXX_TRUE
671 CXXDEPMODE
672 ac_ct_CXX
673 CXXFLAGS
674 CXX
675 CPP
676 OTOOL64
677 OTOOL
678 LIPO
679 NMEDIT
680 DSYMUTIL
681 MANIFEST_TOOL
682 RANLIB
683 ac_ct_AR
684 AR
685 NM
686 ac_ct_DUMPBIN
687 DUMPBIN
688 LD
689 FGREP
690 EGREP
691 GREP
692 SED
693 LIBTOOL
694 OBJDUMP
695 DLLTOOL
696 AS
697 HAVE_LD_VERSION_SCRIPT_FALSE
698 HAVE_LD_VERSION_SCRIPT_TRUE
699 LN_S
700 am__fastdepCC_FALSE
701 am__fastdepCC_TRUE
702 CCDEPMODE
703 am__nodep
704 AMDEPBACKSLASH
705 AMDEP_FALSE
706 AMDEP_TRUE
707 am__quote
708 am__include
709 DEPDIR
710 OBJEXT
711 EXEEXT
712 ac_ct_CC
713 CPPFLAGS
714 LDFLAGS
715 CFLAGS
716 CC
717 LIBTIFF_RELEASE_DATE
718 LIBTIFF_VERSION_INFO
719 LIBTIFF_VERSION
720 LIBTIFF_ALPHA_VERSION
721 LIBTIFF_MICRO_VERSION
722 LIBTIFF_MINOR_VERSION
723 LIBTIFF_MAJOR_VERSION
724 MAINT
725 MAINTAINER_MODE_FALSE
726 MAINTAINER_MODE_TRUE
727 am__untar
728 am__tar
729 AMTAR
730 am__leading_dot
731 SET_MAKE
732 AWK
733 mkdir_p
734 MKDIR_P
735 INSTALL_STRIP_PROGRAM
736 STRIP
737 install_sh
738 MAKEINFO
739 AUTOHEADER
740 AUTOMAKE
741 AUTOCONF
742 ACLOCAL
743 VERSION
744 PACKAGE
745 CYGPATH_W
746 am__isrc
747 INSTALL_DATA
748 INSTALL_SCRIPT
749 INSTALL_PROGRAM
750 host_os
751 host_vendor
752 host_cpu
753 host
754 build_os
755 build_vendor
756 build_cpu
757 build
758 target_alias
759 host_alias
760 build_alias
761 LIBS
762 ECHO_T
763 ECHO_N
764 ECHO_C
765 DEFS
766 mandir
767 localedir
768 libdir
769 psdir
770 pdfdir
771 dvidir
772 htmldir
773 infodir
774 docdir
775 oldincludedir
776 includedir
777 localstatedir
778 sharedstatedir
779 sysconfdir
780 datadir
781 datarootdir
782 libexecdir
783 sbindir
784 bindir
785 program_transform_name
786 prefix
787 exec_prefix
788 PACKAGE_URL
789 PACKAGE_BUGREPORT
790 PACKAGE_STRING
791 PACKAGE_VERSION
792 PACKAGE_TARNAME
793 PACKAGE_NAME
794 PATH_SEPARATOR
795 SHELL'
796 ac_subst_files=''
797 ac_user_opts='
798 enable_option_checking
799 enable_maintainer_mode
800 enable_dependency_tracking
801 enable_ld_version_script
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 with_sysroot
808 enable_libtool_lock
809 enable_silent_rules
810 enable_rpath
811 enable_largefile
812 with_docdir
813 enable_ccitt
814 enable_packbits
815 enable_lzw
816 enable_thunder
817 enable_next
818 enable_logluv
819 enable_mdi
820 enable_zlib
821 with_zlib_include_dir
822 with_zlib_lib_dir
823 enable_pixarlog
824 enable_jpeg
825 with_jpeg_include_dir
826 with_jpeg_lib_dir
827 enable_old_jpeg
828 enable_jbig
829 with_jbig_include_dir
830 with_jbig_lib_dir
831 enable_lzma
832 with_lzma_include_dir
833 with_lzma_lib_dir
834 enable_jpeg12
835 with_jpeg12_include_dir
836 with_jpeg12_lib
837 enable_cxx
838 with_x
839 enable_strip_chopping
840 with_default_strip_size
841 enable_defer_strile_load
842 enable_chunky_strip_read
843 enable_extrasample_as_alpha
844 enable_check_ycbcr_subsampling
845 '
846 ac_precious_vars='build_alias
847 host_alias
848 target_alias
849 CC
850 CFLAGS
851 LDFLAGS
852 LIBS
853 CPPFLAGS
854 CPP
855 CXX
856 CXXFLAGS
857 CCC
858 CXXCPP
859 XMKMF'
860
861
862 # Initialize some variables set by options.
863 ac_init_help=
864 ac_init_version=false
865 ac_unrecognized_opts=
866 ac_unrecognized_sep=
867 # The variables have the same names as the options, with
868 # dashes changed to underlines.
869 cache_file=/dev/null
870 exec_prefix=NONE
871 no_create=
872 no_recursion=
873 prefix=NONE
874 program_prefix=NONE
875 program_suffix=NONE
876 program_transform_name=s,x,x,
877 silent=
878 site=
879 srcdir=
880 verbose=
881 x_includes=NONE
882 x_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.
889 # (The list follows the same order as the GNU Coding Standards.)
890 bindir='${exec_prefix}/bin'
891 sbindir='${exec_prefix}/sbin'
892 libexecdir='${exec_prefix}/libexec'
893 datarootdir='${prefix}/share'
894 datadir='${datarootdir}'
895 sysconfdir='${prefix}/etc'
896 sharedstatedir='${prefix}/com'
897 localstatedir='${prefix}/var'
898 includedir='${prefix}/include'
899 oldincludedir='/usr/include'
900 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
901 infodir='${datarootdir}/info'
902 htmldir='${docdir}'
903 dvidir='${docdir}'
904 pdfdir='${docdir}'
905 psdir='${docdir}'
906 libdir='${exec_prefix}/lib'
907 localedir='${datarootdir}/locale'
908 mandir='${datarootdir}/man'
909
910 ac_prev=
911 ac_dashdash=
912 for ac_option
913 do
914 # If the previous option needs an argument, assign it.
915 if test -n "$ac_prev"; then
916 eval $ac_prev=\$ac_option
917 ac_prev=
918 continue
919 fi
920
921 case $ac_option in
922 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
923 *=) ac_optarg= ;;
924 *) ac_optarg=yes ;;
925 esac
926
927 # Accept the important Cygnus configure options, so we can diagnose typos.
928
929 case $ac_dashdash$ac_option in
930 --)
931 ac_dashdash=yes ;;
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
953 -datadir | --datadir | --datadi | --datad)
954 ac_prev=datadir ;;
955 -datadir=* | --datadir=* | --datadi=* | --datad=*)
956 datadir=$ac_optarg ;;
957
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
965 -disable-* | --disable-*)
966 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
967 # Reject names that are not valid shell variable names.
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 ;;
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 ;;
990
991 -enable-* | --enable-*)
992 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
993 # Reject names that are not valid shell variable names.
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 ;;
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
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
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
1062 -localedir | --localedir | --localedi | --localed | --locale)
1063 ac_prev=localedir ;;
1064 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1065 localedir=$ac_optarg ;;
1066
1067 -localstatedir | --localstatedir | --localstatedi | --localstated \
1068 | --localstate | --localstat | --localsta | --localst | --locals)
1069 ac_prev=localstatedir ;;
1070 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1071 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
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
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
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-*)
1196 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1197 # Reject names that are not valid shell variable names.
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 ;;
1210
1211 -without-* | --without-*)
1212 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1213 # Reject names that are not valid shell variable names.
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 ;;
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
1245 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1246 Try \`$0 --help' for more information"
1247 ;;
1248
1249 *=*)
1250 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1251 # Reject names that are not valid shell variable names.
1252 case $ac_envvar in #(
1253 '' | [0-9]* | *[!_$as_cr_alnum]* )
1254 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1255 esac
1256 eval $ac_envvar=\$ac_optarg
1257 export $ac_envvar ;;
1258
1259 *)
1260 # FIXME: should be removed in autoconf 3.0.
1261 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1262 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
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}"
1265 ;;
1266
1267 esac
1268 done
1269
1270 if test -n "$ac_prev"; then
1271 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1272 as_fn_error $? "missing argument to $ac_option"
1273 fi
1274
1275 if 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
1281 fi
1282
1283 # Check all directory arguments for consistency.
1284 for 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
1288 do
1289 eval ac_val=\$$ac_var
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.
1297 case $ac_val in
1298 [\\/$]* | ?:[\\/]* ) continue;;
1299 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1300 esac
1301 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1302 done
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.
1307 build=$build_alias
1308 host=$host_alias
1309 target=$target_alias
1310
1311 # FIXME: To remove some day.
1312 if test "x$host_alias" != x; then
1313 if test "x$build_alias" = x; then
1314 cross_compiling=maybe
1315 elif test "x$build_alias" != "x$host_alias"; then
1316 cross_compiling=yes
1317 fi
1318 fi
1319
1320 ac_tool_prefix=
1321 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1322
1323 test "$silent" = yes && exec 6>/dev/null
1324
1325
1326 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1327 ac_ls_di=`ls -di .` &&
1328 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1329 as_fn_error $? "working directory cannot be determined"
1330 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1331 as_fn_error $? "pwd does not report name of working directory"
1332
1333
1334 # Find the source files, if location was not specified.
1335 if test -z "$srcdir"; then
1336 ac_srcdir_defaulted=yes
1337 # Try the directory containing this script, then the parent directory.
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" |
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'`
1361 srcdir=$ac_confdir
1362 if test ! -r "$srcdir/$ac_unique_file"; then
1363 srcdir=..
1364 fi
1365 else
1366 ac_srcdir_defaulted=no
1367 fi
1368 if test ! -r "$srcdir/$ac_unique_file"; then
1369 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1370 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1371 fi
1372 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1373 ac_abs_confdir=`(
1374 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1375 pwd)`
1376 # When building in place, set srcdir=.
1377 if test "$ac_abs_confdir" = "$ac_pwd"; then
1378 srcdir=.
1379 fi
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.
1383 case $srcdir in
1384 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1385 esac
1386 for 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}
1391 done
1392
1393 #
1394 # Report the --help message.
1395 #
1396 if 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
1400 \`configure' configures LibTIFF Software 4.0.3 to adapt to many kinds of systems.
1401
1402 Usage: $0 [OPTION]... [VAR=VALUE]...
1403
1404 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1405 VAR=VALUE. See below for descriptions of some of the useful variables.
1406
1407 Defaults for the options are specified in brackets.
1408
1409 Configuration:
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
1414 -q, --quiet, --silent do not print \`checking ...' messages
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
1420 Installation directories:
1421 --prefix=PREFIX install architecture-independent files in PREFIX
1422 [$ac_default_prefix]
1423 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1424 [PREFIX]
1425
1426 By default, \`make install' will install all the files in
1427 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1428 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1429 for instance \`--prefix=\$HOME'.
1430
1431 For better control, use the options below.
1432
1433 Fine tuning of the installation directories:
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]
1453 _ACEOF
1454
1455 cat <<\_ACEOF
1456
1457 Program 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
1462 X features:
1463 --x-includes=DIR X include files are in DIR
1464 --x-libraries=DIR X library files are in DIR
1465
1466 System types:
1467 --build=BUILD configure for building on BUILD [guessed]
1468 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1469 _ACEOF
1470 fi
1471
1472 if test -n "$ac_init_help"; then
1473 case $ac_init_help in
1474 short | recursive ) echo "Configuration of LibTIFF Software 4.0.3:";;
1475 esac
1476 cat <<\_ACEOF
1477
1478 Optional Features:
1479 --disable-option-checking ignore unrecognized --enable/--with options
1480 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1481 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
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)
1491 --enable-shared[=PKGS] build shared libraries [default=yes]
1492 --enable-static[=PKGS] build static libraries [default=yes]
1493 --enable-fast-install[=PKGS]
1494 optimize for fast installation [default=yes]
1495 --disable-libtool-lock avoid locking (might break parallel builds)
1496 --enable-silent-rules less verbose build output (undo: "make V=1")
1497 --disable-silent-rules verbose build output (undo: "make V=0")
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)
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
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)
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)
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
1543 Optional Packages:
1544 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1545 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1546 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
1547 both]
1548 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1549 --with-sysroot=DIR Search for dependent libraries within DIR
1550 (or the compiler's sysroot if not specified).
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
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
1568 --with-x use the X Window System
1569 --with-default-strip-size=SIZE
1570 default size of the strip in bytes (when strip
1571 chopping enabled) [[default=8192]]
1572
1573 Some 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>
1578 LIBS libraries to pass to the linker, e.g. -l<library>
1579 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1580 you have headers in a nonstandard directory <include dir>
1581 CPP C preprocessor
1582 CXX C++ compiler command
1583 CXXFLAGS C++ compiler flags
1584 CXXCPP C++ preprocessor
1585 XMKMF Path to xmkmf, Makefile generator for X Window System
1586
1587 Use these variables to override the choices made by `configure' or to help
1588 it to find libraries and programs with nonstandard names/locations.
1589
1590 Report bugs to <tiff@lists.maptools.org>.
1591 _ACEOF
1592 ac_status=$?
1593 fi
1594
1595 if test "$ac_init_help" = "recursive"; then
1596 # If there are subdirs, report their specific --help.
1597 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1598 test -d "$ac_dir" ||
1599 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1600 continue
1601 ac_builddir=.
1602
1603 case "$ac_dir" in
1604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1605 *)
1606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1607 # A ".." for each directory in $ac_dir_suffix.
1608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
1613 esac
1614 ac_abs_top_builddir=$ac_pwd
1615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1616 # for backward compatibility:
1617 ac_top_builddir=$ac_top_build_prefix
1618
1619 case $srcdir in
1620 .) # We are building in place.
1621 ac_srcdir=.
1622 ac_top_srcdir=$ac_top_builddir_sub
1623 ac_abs_top_srcdir=$ac_pwd ;;
1624 [\\/]* | ?:[\\/]* ) # Absolute name.
1625 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
1632 esac
1633 ac_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
1643 else
1644 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1645 fi || ac_status=$?
1646 cd "$ac_pwd" || { ac_status=$?; break; }
1647 done
1648 fi
1649
1650 test -n "$ac_init_help" && exit $ac_status
1651 if $ac_init_version; then
1652 cat <<\_ACEOF
1653 LibTIFF Software configure 4.0.3
1654 generated by GNU Autoconf 2.69
1655
1656 Copyright (C) 2012 Free Software Foundation, Inc.
1657 This configure script is free software; the Free Software Foundation
1658 gives unlimited permission to copy, distribute and modify it.
1659 _ACEOF
1660 exit
1661 fi
1662
1663 ## ------------------------ ##
1664 ## Autoconf initialization. ##
1665 ## ------------------------ ##
1666
1667 # ac_fn_c_try_compile LINENO
1668 # --------------------------
1669 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1670 ac_fn_c_try_compile ()
1671 {
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"
1675 case "(($ac_try" in
1676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1677 *) ac_try_echo=$ac_try;;
1678 esac
1679 eval 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
1694 else
1695 $as_echo "$as_me: failed program was:" >&5
1696 sed 's/^/| /' conftest.$ac_ext >&5
1697
1698 ac_retval=1
1699 fi
1700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1701 as_fn_set_status $ac_retval
1702
1703 } # ac_fn_c_try_compile
1704
1705 # ac_fn_c_try_link LINENO
1706 # -----------------------
1707 # Try to link conftest.$ac_ext, and return whether this succeeded.
1708 ac_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"
1713 case "(($ac_try" in
1714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1715 *) ac_try_echo=$ac_try;;
1716 esac
1717 eval 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
1735 else
1736 $as_echo "$as_me: failed program was:" >&5
1737 sed 's/^/| /' conftest.$ac_ext >&5
1738
1739 ac_retval=1
1740 fi
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
1748
1749 } # ac_fn_c_try_link
1750
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.
1755 ac_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; }
1760 if eval \${$3+:} false; then :
1761 $as_echo_n "(cached) " >&6
1762 else
1763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1764 /* end confdefs.h. */
1765 $4
1766 #include <$2>
1767 _ACEOF
1768 if ac_fn_c_try_compile "$LINENO"; then :
1769 eval "$3=yes"
1770 else
1771 eval "$3=no"
1772 fi
1773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1774 fi
1775 eval 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
1779
1780 } # ac_fn_c_check_header_compile
1781
1782 # ac_fn_c_try_cpp LINENO
1783 # ----------------------
1784 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1785 ac_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"
1789 case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1792 esac
1793 eval 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
1808 else
1809 $as_echo "$as_me: failed program was:" >&5
1810 sed 's/^/| /' conftest.$ac_ext >&5
1811
1812 ac_retval=1
1813 fi
1814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1815 as_fn_set_status $ac_retval
1816
1817 } # ac_fn_c_try_cpp
1818
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.
1823 ac_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"
1827 case "(($ac_try" in
1828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1830 esac
1831 eval 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;;
1840 esac
1841 eval 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
1848 else
1849 $as_echo "$as_me: program exited with status $ac_status" >&5
1850 $as_echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 ac_retval=$ac_status
1854 fi
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
1858
1859 } # ac_fn_c_try_run
1860
1861 # ac_fn_c_check_func LINENO FUNC VAR
1862 # ----------------------------------
1863 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1864 ac_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; }
1869 if eval \${$3+:} false; then :
1870 $as_echo_n "(cached) " >&6
1871 else
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
1877
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. */
1882
1883 #ifdef __STDC__
1884 # include <limits.h>
1885 #else
1886 # include <assert.h>
1887 #endif
1888
1889 #undef $2
1890
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
1895 extern "C"
1896 #endif
1897 char $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
1902 choke me
1903 #endif
1904
1905 int
1906 main ()
1907 {
1908 return $2 ();
1909 ;
1910 return 0;
1911 }
1912 _ACEOF
1913 if ac_fn_c_try_link "$LINENO"; then :
1914 eval "$3=yes"
1915 else
1916 eval "$3=no"
1917 fi
1918 rm -f core conftest.err conftest.$ac_objext \
1919 conftest$ac_exeext conftest.$ac_ext
1920 fi
1921 eval 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
1925
1926 } # ac_fn_c_check_func
1927
1928 # ac_fn_cxx_try_compile LINENO
1929 # ----------------------------
1930 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1931 ac_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"
1936 case "(($ac_try" in
1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1938 *) ac_try_echo=$ac_try;;
1939 esac
1940 eval 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
1955 else
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.$ac_ext >&5
1958
1959 ac_retval=1
1960 fi
1961 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1962 as_fn_set_status $ac_retval
1963
1964 } # ac_fn_cxx_try_compile
1965
1966 # ac_fn_cxx_try_cpp LINENO
1967 # ------------------------
1968 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1969 ac_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"
1973 case "(($ac_try" in
1974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1975 *) ac_try_echo=$ac_try;;
1976 esac
1977 eval 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
1992 else
1993 $as_echo "$as_me: failed program was:" >&5
1994 sed 's/^/| /' conftest.$ac_ext >&5
1995
1996 ac_retval=1
1997 fi
1998 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1999 as_fn_set_status $ac_retval
2000
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.
2006 ac_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"
2011 case "(($ac_try" in
2012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2013 *) ac_try_echo=$ac_try;;
2014 esac
2015 eval 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
2023 fi
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
2033 else
2034 $as_echo "$as_me: failed program was:" >&5
2035 sed 's/^/| /' conftest.$ac_ext >&5
2036
2037 ac_retval=1
2038 fi
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
2046
2047 } # ac_fn_cxx_try_link
2048
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.
2054 ac_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; }
2060 if eval \${$3+:} false; then :
2061 $as_echo_n "(cached) " >&6
2062 fi
2063 eval ac_res=\$$3
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2065 $as_echo "$ac_res" >&6; }
2066 else
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; }
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2072 $4
2073 #include <$2>
2074 _ACEOF
2075 if ac_fn_c_try_compile "$LINENO"; then :
2076 ac_header_compiler=yes
2077 else
2078 ac_header_compiler=no
2079 fi
2080 rm -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; }
2083
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; }
2087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2088 /* end confdefs.h. */
2089 #include <$2>
2090 _ACEOF
2091 if ac_fn_c_try_cpp "$LINENO"; then :
2092 ac_header_preproc=yes
2093 else
2094 ac_header_preproc=no
2095 fi
2096 rm -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; }
2099
2100 # So? What about this header?
2101 case $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 ;;
2124 esac
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2126 $as_echo_n "checking for $2... " >&6; }
2127 if eval \${$3+:} false; then :
2128 $as_echo_n "(cached) " >&6
2129 else
2130 eval "$3=\$ac_header_compiler"
2131 fi
2132 eval ac_res=\$$3
2133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2134 $as_echo "$ac_res" >&6; }
2135 fi
2136 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2137
2138 } # ac_fn_c_check_header_mongrel
2139
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.
2144 ac_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; }
2149 if eval \${$3+:} false; then :
2150 $as_echo_n "(cached) " >&6
2151 else
2152 eval "$3=no"
2153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2154 /* end confdefs.h. */
2155 $4
2156 int
2157 main ()
2158 {
2159 if (sizeof ($2))
2160 return 0;
2161 ;
2162 return 0;
2163 }
2164 _ACEOF
2165 if ac_fn_c_try_compile "$LINENO"; then :
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 $4
2169 int
2170 main ()
2171 {
2172 if (sizeof (($2)))
2173 return 0;
2174 ;
2175 return 0;
2176 }
2177 _ACEOF
2178 if ac_fn_c_try_compile "$LINENO"; then :
2179
2180 else
2181 eval "$3=yes"
2182 fi
2183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2184 fi
2185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186 fi
2187 eval 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
2191
2192 } # ac_fn_c_check_type
2193
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
2199 ac_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.
2204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2205 /* end confdefs.h. */
2206 $4
2207 int
2208 main ()
2209 {
2210 static int test_array [1 - 2 * !(($2) >= 0)];
2211 test_array [0] = 0;
2212 return test_array [0];
2213
2214 ;
2215 return 0;
2216 }
2217 _ACEOF
2218 if 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
2224 int
2225 main ()
2226 {
2227 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2228 test_array [0] = 0;
2229 return test_array [0];
2230
2231 ;
2232 return 0;
2233 }
2234 _ACEOF
2235 if ac_fn_c_try_compile "$LINENO"; then :
2236 ac_hi=$ac_mid; break
2237 else
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
2244 fi
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2246 done
2247 else
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2250 $4
2251 int
2252 main ()
2253 {
2254 static int test_array [1 - 2 * !(($2) < 0)];
2255 test_array [0] = 0;
2256 return test_array [0];
2257
2258 ;
2259 return 0;
2260 }
2261 _ACEOF
2262 if 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
2268 int
2269 main ()
2270 {
2271 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2272 test_array [0] = 0;
2273 return test_array [0];
2274
2275 ;
2276 return 0;
2277 }
2278 _ACEOF
2279 if ac_fn_c_try_compile "$LINENO"; then :
2280 ac_lo=$ac_mid; break
2281 else
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
2288 fi
2289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2290 done
2291 else
2292 ac_lo= ac_hi=
2293 fi
2294 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2295 fi
2296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2297 # Binary search between lo and hi bounds.
2298 while 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
2303 int
2304 main ()
2305 {
2306 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2307 test_array [0] = 0;
2308 return test_array [0];
2309
2310 ;
2311 return 0;
2312 }
2313 _ACEOF
2314 if ac_fn_c_try_compile "$LINENO"; then :
2315 ac_hi=$ac_mid
2316 else
2317 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2318 fi
2319 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2320 done
2321 case $ac_lo in #((
2322 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2323 '') ac_retval=1 ;;
2324 esac
2325 else
2326 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2327 /* end confdefs.h. */
2328 $4
2329 static long int longval () { return $2; }
2330 static unsigned long int ulongval () { return $2; }
2331 #include <stdio.h>
2332 #include <stdlib.h>
2333 int
2334 main ()
2335 {
2336
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;
2357
2358 ;
2359 return 0;
2360 }
2361 _ACEOF
2362 if ac_fn_c_try_run "$LINENO"; then :
2363 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2364 else
2365 ac_retval=1
2366 fi
2367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2368 conftest.$ac_objext conftest.beam conftest.$ac_ext
2369 rm -f conftest.val
2370
2371 fi
2372 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2373 as_fn_set_status $ac_retval
2374
2375 } # ac_fn_c_compute_int
2376 cat >config.log <<_ACEOF
2377 This file contains any messages produced by compilers while
2378 running configure, to aid debugging if configure makes a mistake.
2379
2380 It was created by LibTIFF Software $as_me 4.0.3, which was
2381 generated by GNU Autoconf 2.69. Invocation command line was
2382
2383 $ $0 $@
2384
2385 _ACEOF
2386 exec 5>>config.log
2387 {
2388 cat <<_ASUNAME
2389 ## --------- ##
2390 ## Platform. ##
2391 ## --------- ##
2392
2393 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2394 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2395 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2396 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2397 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2398
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`
2401
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`
2409
2410 _ASUNAME
2411
2412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2413 for as_dir in $PATH
2414 do
2415 IFS=$as_save_IFS
2416 test -z "$as_dir" && as_dir=.
2417 $as_echo "PATH: $as_dir"
2418 done
2419 IFS=$as_save_IFS
2420
2421 } >&5
2422
2423 cat >&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.
2438 ac_configure_args=
2439 ac_configure_args0=
2440 ac_configure_args1=
2441 ac_must_keep_next=false
2442 for ac_pass in 1 2
2443 do
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
2477 done
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.
2486 trap '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
2573 for ac_signal in 1 2 13 15; do
2574 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2575 done
2576 ac_signal=0
2577
2578 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2579 rm -f -r conftest* confdefs.h
2580
2581 $as_echo "/* confdefs.h */" > confdefs.h
2582
2583 # Predefined preprocessor variables.
2584
2585 cat >>confdefs.h <<_ACEOF
2586 #define PACKAGE_NAME "$PACKAGE_NAME"
2587 _ACEOF
2588
2589 cat >>confdefs.h <<_ACEOF
2590 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2591 _ACEOF
2592
2593 cat >>confdefs.h <<_ACEOF
2594 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2595 _ACEOF
2596
2597 cat >>confdefs.h <<_ACEOF
2598 #define PACKAGE_STRING "$PACKAGE_STRING"
2599 _ACEOF
2600
2601 cat >>confdefs.h <<_ACEOF
2602 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2603 _ACEOF
2604
2605 cat >>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.
2612 ac_site_file1=NONE
2613 ac_site_file2=NONE
2614 if 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
2621 elif test "x$prefix" != xNONE; then
2622 ac_site_file1=$prefix/share/config.site
2623 ac_site_file2=$prefix/etc/config.site
2624 else
2625 ac_site_file1=$ac_default_prefix/share/config.site
2626 ac_site_file2=$ac_default_prefix/etc/config.site
2627 fi
2628 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2629 do
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;}
2638 as_fn_error $? "failed to load site script $ac_site_file
2639 See \`config.log' for more details" "$LINENO" 5; }
2640 fi
2641 done
2642
2643 if 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
2654 else
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
2658 fi
2659
2660 # Check that the precious variables saved in the cache have kept the same
2661 # value.
2662 ac_cache_corrupted=false
2663 for 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
2709 done
2710 if $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
2716 fi
2717 ## -------------------- ##
2718 ## Main body of script. ##
2719 ## -------------------- ##
2720
2721 ac_ext=c
2722 ac_cpp='$CPP $CPPFLAGS'
2723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2726
2727
2728 ac_aux_dir=
2729 for ac_dir in config "$srcdir"/config; do
2730 if test -f "$ac_dir/install-sh"; then
2731 ac_aux_dir=$ac_dir
2732 ac_install_sh="$ac_aux_dir/install-sh -c"
2733 break
2734 elif test -f "$ac_dir/install.sh"; then
2735 ac_aux_dir=$ac_dir
2736 ac_install_sh="$ac_aux_dir/install.sh -c"
2737 break
2738 elif test -f "$ac_dir/shtool"; then
2739 ac_aux_dir=$ac_dir
2740 ac_install_sh="$ac_aux_dir/shtool install -c"
2741 break
2742 fi
2743 done
2744 if test -z "$ac_aux_dir"; then
2745 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
2746 fi
2747
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.
2752 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2753 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2754 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2755
2756
2757
2758 ac_ext=c
2759 ac_cpp='$CPP $CPPFLAGS'
2760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2763
2764
2765 # Make sure we can run config.sub.
2766 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2767 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2768
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2770 $as_echo_n "checking build system type... " >&6; }
2771 if ${ac_cv_build+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 ac_build_alias=$build_alias
2775 test "x$ac_build_alias" = x &&
2776 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2777 test "x$ac_build_alias" = x &&
2778 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2779 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2780 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2781
2782 fi
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2784 $as_echo "$ac_cv_build" >&6; }
2785 case $ac_cv_build in
2786 *-*-*) ;;
2787 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2788 esac
2789 build=$ac_cv_build
2790 ac_save_IFS=$IFS; IFS='-'
2791 set x $ac_cv_build
2792 shift
2793 build_cpu=$1
2794 build_vendor=$2
2795 shift; shift
2796 # Remember, the first character of IFS is used to create $*,
2797 # except with old shells:
2798 build_os=$*
2799 IFS=$ac_save_IFS
2800 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2801
2802
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2804 $as_echo_n "checking host system type... " >&6; }
2805 if ${ac_cv_host+:} false; then :
2806 $as_echo_n "(cached) " >&6
2807 else
2808 if test "x$host_alias" = x; then
2809 ac_cv_host=$ac_cv_build
2810 else
2811 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2812 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2813 fi
2814
2815 fi
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2817 $as_echo "$ac_cv_host" >&6; }
2818 case $ac_cv_host in
2819 *-*-*) ;;
2820 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2821 esac
2822 host=$ac_cv_host
2823 ac_save_IFS=$IFS; IFS='-'
2824 set x $ac_cv_host
2825 shift
2826 host_cpu=$1
2827 host_vendor=$2
2828 shift; shift
2829 # Remember, the first character of IFS is used to create $*,
2830 # except with old shells:
2831 host_os=$*
2832 IFS=$ac_save_IFS
2833 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2834
2835
2836
2837 am__api_version='1.12'
2838
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.
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; }
2855 if test -z "$INSTALL"; then
2856 if ${ac_cv_path_install+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2860 for as_dir in $PATH
2861 do
2862 IFS=$as_save_IFS
2863 test -z "$as_dir" && as_dir=.
2864 # Account for people who put trailing slashes in PATH elements.
2865 case $as_dir/ in #((
2866 ./ | .// | /[cC]/* | \
2867 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2868 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
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
2876 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
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
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
2898 fi
2899 fi
2900 done
2901 done
2902 ;;
2903 esac
2904
2905 done
2906 IFS=$as_save_IFS
2907
2908 rm -rf conftest.one conftest.two conftest.dir
2909
2910 fi
2911 if test "${ac_cv_path_install+set}" = set; then
2912 INSTALL=$ac_cv_path_install
2913 else
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
2916 # break other packages using the cache if that directory is
2917 # removed, or if the value is a relative name.
2918 INSTALL=$ac_install_sh
2919 fi
2920 fi
2921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2922 $as_echo "$INSTALL" >&6; }
2923
2924 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2925 # It thinks the first close brace ends the variable substitution.
2926 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2927
2928 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2929
2930 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2931
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.
2936 am_lf='
2937 '
2938 case `pwd` in
2939 *[\\\"\#\$\&\'\`$am_lf]*)
2940 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2941 esac
2942 case $srcdir in
2943 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2944 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2945 esac
2946
2947 # Do 'set' in a subshell so we don't clobber the current shell's
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).
2952 if (
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
2978 test "$2" = conftest.file
2979 )
2980 then
2981 # Ok.
2982 :
2983 else
2984 as_fn_error $? "newly created file is older than distributed files!
2985 Check your system clock" "$LINENO" 5
2986 fi
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.
2991 am_sleep_pid=
2992 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2993 ( sleep 1 ) &
2994 am_sleep_pid=$!
2995 fi
2996
2997 rm -f conftest.file
2998
2999 test "$program_prefix" != NONE &&
3000 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3001 # Use a double $ so make ignores it.
3002 test "$program_suffix" != NONE &&
3003 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3004 # Double any \ or $.
3005 # By default was `s,x,x', remove it if useless.
3006 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3007 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3008
3009 # expand $ac_aux_dir to an absolute path
3010 am_aux_dir=`cd $ac_aux_dir && pwd`
3011
3012 if 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
3019 fi
3020 # Use eval to expand $SHELL
3021 if eval "$MISSING --run true"; then
3022 am_missing_run="$MISSING --run "
3023 else
3024 am_missing_run=
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;}
3027 fi
3028
3029 if 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
3036 fi
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.
3042 if 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.
3045 set 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; }
3048 if ${ac_cv_prog_STRIP+:} false; then :
3049 $as_echo_n "(cached) " >&6
3050 else
3051 if test -n "$STRIP"; then
3052 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3053 else
3054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3055 for as_dir in $PATH
3056 do
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
3065 done
3066 done
3067 IFS=$as_save_IFS
3068
3069 fi
3070 fi
3071 STRIP=$ac_cv_prog_STRIP
3072 if test -n "$STRIP"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3074 $as_echo "$STRIP" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3078 fi
3079
3080
3081 fi
3082 if 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.
3085 set 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; }
3088 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3089 $as_echo_n "(cached) " >&6
3090 else
3091 if test -n "$ac_ct_STRIP"; then
3092 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3093 else
3094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3095 for as_dir in $PATH
3096 do
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
3105 done
3106 done
3107 IFS=$as_save_IFS
3108
3109 fi
3110 fi
3111 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3112 if 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; }
3115 else
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3117 $as_echo "no" >&6; }
3118 fi
3119
3120 if test "x$ac_ct_STRIP" = x; then
3121 STRIP=":"
3122 else
3123 case $cross_compiling:$ac_tool_warned in
3124 yes:)
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;}
3127 ac_tool_warned=yes ;;
3128 esac
3129 STRIP=$ac_ct_STRIP
3130 fi
3131 else
3132 STRIP="$ac_cv_prog_STRIP"
3133 fi
3134
3135 fi
3136 INSTALL_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; }
3140 if test -z "$MKDIR_P"; then
3141 if ${ac_cv_path_mkdir+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3145 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3146 do
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
3161 done
3162 IFS=$as_save_IFS
3163
3164 fi
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"
3169 else
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"
3175 fi
3176 fi
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3178 $as_echo "$MKDIR_P" >&6; }
3179
3180 for ac_prog in gawk mawk nawk awk
3181 do
3182 # Extract the first word of "$ac_prog", so it can be a program name with args.
3183 set dummy $ac_prog; ac_word=$2
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3185 $as_echo_n "checking for $ac_word... " >&6; }
3186 if ${ac_cv_prog_AWK+:} false; then :
3187 $as_echo_n "(cached) " >&6
3188 else
3189 if test -n "$AWK"; then
3190 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3199 ac_cv_prog_AWK="$ac_prog"
3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 AWK=$ac_cv_prog_AWK
3210 if test -n "$AWK"; then
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3212 $as_echo "$AWK" >&6; }
3213 else
3214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3215 $as_echo "no" >&6; }
3216 fi
3217
3218
3219 test -n "$AWK" && break
3220 done
3221
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; }
3224 set x ${MAKE-make}
3225 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3226 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3227 $as_echo_n "(cached) " >&6
3228 else
3229 cat >conftest.make <<\_ACEOF
3230 SHELL = /bin/sh
3231 all:
3232 @echo '@@@%%%=$(MAKE)=@@@%%%'
3233 _ACEOF
3234 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3235 case `${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;;
3240 esac
3241 rm -f conftest.make
3242 fi
3243 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3245 $as_echo "yes" >&6; }
3246 SET_MAKE=
3247 else
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 SET_MAKE="MAKE=${MAKE-make}"
3251 fi
3252
3253 rm -rf .tst 2>/dev/null
3254 mkdir .tst 2>/dev/null
3255 if test -d .tst; then
3256 am__leading_dot=.
3257 else
3258 am__leading_dot=_
3259 fi
3260 rmdir .tst 2>/dev/null
3261
3262 if 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
3270 fi
3271
3272 # test whether we have cygpath
3273 if 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
3279 fi
3280
3281
3282 # Define the identity of the package.
3283 PACKAGE='tiff'
3284 VERSION='4.0.3'
3285
3286
3287 cat >>confdefs.h <<_ACEOF
3288 #define PACKAGE "$PACKAGE"
3289 _ACEOF
3290
3291
3292 cat >>confdefs.h <<_ACEOF
3293 #define VERSION "$VERSION"
3294 _ACEOF
3295
3296 # Some tools Automake needs.
3297
3298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3299
3300
3301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3302
3303
3304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3305
3306
3307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3308
3309
3310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311
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>
3316 mkdir_p='$(MKDIR_P)'
3317
3318 # We need awk for the "check" target. The system "awk" is bad on
3319 # some platforms.
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 ...
3322 AMTAR='$${TAR-tar}'
3323
3324 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3325
3326
3327
3328
3329
3330
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; }
3333 # Check whether --enable-maintainer-mode was given.
3334 if test "${enable_maintainer_mode+set}" = set; then :
3335 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3336 else
3337 USE_MAINTAINER_MODE=no
3338 fi
3339
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
3343 MAINTAINER_MODE_TRUE=
3344 MAINTAINER_MODE_FALSE='#'
3345 else
3346 MAINTAINER_MODE_TRUE='#'
3347 MAINTAINER_MODE_FALSE=
3348 fi
3349
3350 MAINT=$MAINTAINER_MODE_TRUE
3351
3352
3353
3354 LIBTIFF_MAJOR_VERSION=4
3355 LIBTIFF_MINOR_VERSION=0
3356 LIBTIFF_MICRO_VERSION=3
3357 LIBTIFF_ALPHA_VERSION=
3358 LIBTIFF_VERSION=$LIBTIFF_MAJOR_VERSION.$LIBTIFF_MINOR_VERSION.$LIBTIFF_MICRO_VERSION$LIBTIFF_ALPHA_VERSION
3359 LIBTIFF_RELEASE_DATE=`date +"%Y%m%d"`
3360
3361 LIBTIFF_CURRENT=7
3362 LIBTIFF_REVISION=0
3363 LIBTIFF_AGE=2
3364 LIBTIFF_VERSION_INFO=$LIBTIFF_CURRENT:$LIBTIFF_REVISION:$LIBTIFF_AGE
3365
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.
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
3378
3379
3380
3381
3382
3383
3384
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 if 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.
3394 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3396 $as_echo_n "checking for $ac_word... " >&6; }
3397 if ${ac_cv_prog_CC+:} false; then :
3398 $as_echo_n "(cached) " >&6
3399 else
3400 if test -n "$CC"; then
3401 ac_cv_prog_CC="$CC" # Let the user override the test.
3402 else
3403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3404 for as_dir in $PATH
3405 do
3406 IFS=$as_save_IFS
3407 test -z "$as_dir" && as_dir=.
3408 for ac_exec_ext in '' $ac_executable_extensions; do
3409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3410 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3412 break 2
3413 fi
3414 done
3415 done
3416 IFS=$as_save_IFS
3417
3418 fi
3419 fi
3420 CC=$ac_cv_prog_CC
3421 if test -n "$CC"; then
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3423 $as_echo "$CC" >&6; }
3424 else
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3426 $as_echo "no" >&6; }
3427 fi
3428
3429
3430 fi
3431 if 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.
3434 set dummy gcc; ac_word=$2
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3436 $as_echo_n "checking for $ac_word... " >&6; }
3437 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3438 $as_echo_n "(cached) " >&6
3439 else
3440 if test -n "$ac_ct_CC"; then
3441 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3442 else
3443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3444 for as_dir in $PATH
3445 do
3446 IFS=$as_save_IFS
3447 test -z "$as_dir" && as_dir=.
3448 for ac_exec_ext in '' $ac_executable_extensions; do
3449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3450 ac_cv_prog_ac_ct_CC="gcc"
3451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3452 break 2
3453 fi
3454 done
3455 done
3456 IFS=$as_save_IFS
3457
3458 fi
3459 fi
3460 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3461 if test -n "$ac_ct_CC"; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3463 $as_echo "$ac_ct_CC" >&6; }
3464 else
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3466 $as_echo "no" >&6; }
3467 fi
3468
3469 if test "x$ac_ct_CC" = x; then
3470 CC=""
3471 else
3472 case $cross_compiling:$ac_tool_warned in
3473 yes:)
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;}
3476 ac_tool_warned=yes ;;
3477 esac
3478 CC=$ac_ct_CC
3479 fi
3480 else
3481 CC="$ac_cv_prog_CC"
3482 fi
3483
3484 if test -z "$CC"; then
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.
3487 set dummy ${ac_tool_prefix}cc; ac_word=$2
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3489 $as_echo_n "checking for $ac_word... " >&6; }
3490 if ${ac_cv_prog_CC+:} false; then :
3491 $as_echo_n "(cached) " >&6
3492 else
3493 if test -n "$CC"; then
3494 ac_cv_prog_CC="$CC" # Let the user override the test.
3495 else
3496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3497 for as_dir in $PATH
3498 do
3499 IFS=$as_save_IFS
3500 test -z "$as_dir" && as_dir=.
3501 for ac_exec_ext in '' $ac_executable_extensions; do
3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3503 ac_cv_prog_CC="${ac_tool_prefix}cc"
3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3505 break 2
3506 fi
3507 done
3508 done
3509 IFS=$as_save_IFS
3510
3511 fi
3512 fi
3513 CC=$ac_cv_prog_CC
3514 if test -n "$CC"; then
3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3516 $as_echo "$CC" >&6; }
3517 else
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 fi
3521
3522
3523 fi
3524 fi
3525 if test -z "$CC"; then
3526 # Extract the first word of "cc", so it can be a program name with args.
3527 set dummy cc; ac_word=$2
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3529 $as_echo_n "checking for $ac_word... " >&6; }
3530 if ${ac_cv_prog_CC+:} false; then :
3531 $as_echo_n "(cached) " >&6
3532 else
3533 if test -n "$CC"; then
3534 ac_cv_prog_CC="$CC" # Let the user override the test.
3535 else
3536 ac_prog_rejected=no
3537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3538 for as_dir in $PATH
3539 do
3540 IFS=$as_save_IFS
3541 test -z "$as_dir" && as_dir=.
3542 for ac_exec_ext in '' $ac_executable_extensions; do
3543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
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"
3549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3550 break 2
3551 fi
3552 done
3553 done
3554 IFS=$as_save_IFS
3555
3556 if 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
3567 fi
3568 fi
3569 fi
3570 CC=$ac_cv_prog_CC
3571 if test -n "$CC"; then
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3573 $as_echo "$CC" >&6; }
3574 else
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3576 $as_echo "no" >&6; }
3577 fi
3578
3579
3580 fi
3581 if test -z "$CC"; then
3582 if test -n "$ac_tool_prefix"; then
3583 for ac_prog in cl.exe
3584 do
3585 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3586 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3588 $as_echo_n "checking for $ac_word... " >&6; }
3589 if ${ac_cv_prog_CC+:} false; then :
3590 $as_echo_n "(cached) " >&6
3591 else
3592 if test -n "$CC"; then
3593 ac_cv_prog_CC="$CC" # Let the user override the test.
3594 else
3595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3596 for as_dir in $PATH
3597 do
3598 IFS=$as_save_IFS
3599 test -z "$as_dir" && as_dir=.
3600 for ac_exec_ext in '' $ac_executable_extensions; do
3601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3602 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3604 break 2
3605 fi
3606 done
3607 done
3608 IFS=$as_save_IFS
3609
3610 fi
3611 fi
3612 CC=$ac_cv_prog_CC
3613 if test -n "$CC"; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3615 $as_echo "$CC" >&6; }
3616 else
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3618 $as_echo "no" >&6; }
3619 fi
3620
3621
3622 test -n "$CC" && break
3623 done
3624 fi
3625 if test -z "$CC"; then
3626 ac_ct_CC=$CC
3627 for ac_prog in cl.exe
3628 do
3629 # Extract the first word of "$ac_prog", so it can be a program name with args.
3630 set dummy $ac_prog; ac_word=$2
3631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3632 $as_echo_n "checking for $ac_word... " >&6; }
3633 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3634 $as_echo_n "(cached) " >&6
3635 else
3636 if test -n "$ac_ct_CC"; then
3637 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3638 else
3639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3640 for as_dir in $PATH
3641 do
3642 IFS=$as_save_IFS
3643 test -z "$as_dir" && as_dir=.
3644 for ac_exec_ext in '' $ac_executable_extensions; do
3645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3646 ac_cv_prog_ac_ct_CC="$ac_prog"
3647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3648 break 2
3649 fi
3650 done
3651 done
3652 IFS=$as_save_IFS
3653
3654 fi
3655 fi
3656 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3657 if test -n "$ac_ct_CC"; then
3658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3659 $as_echo "$ac_ct_CC" >&6; }
3660 else
3661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3662 $as_echo "no" >&6; }
3663 fi
3664
3665
3666 test -n "$ac_ct_CC" && break
3667 done
3668
3669 if test "x$ac_ct_CC" = x; then
3670 CC=""
3671 else
3672 case $cross_compiling:$ac_tool_warned in
3673 yes:)
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;}
3676 ac_tool_warned=yes ;;
3677 esac
3678 CC=$ac_ct_CC
3679 fi
3680 fi
3681
3682 fi
3683
3684
3685 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3687 as_fn_error $? "no acceptable C compiler found in \$PATH
3688 See \`config.log' for more details" "$LINENO" 5; }
3689
3690 # Provide some information about the compiler.
3691 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3692 set X $ac_compile
3693 ac_compiler=$2
3694 for ac_option in --version -v -V -qversion; do
3695 { { ac_try="$ac_compiler $ac_option >&5"
3696 case "(($ac_try" in
3697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3698 *) ac_try_echo=$ac_try;;
3699 esac
3700 eval 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
3703 ac_status=$?
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; }
3713 done
3714
3715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3716 /* end confdefs.h. */
3717
3718 int
3719 main ()
3720 {
3721
3722 ;
3723 return 0;
3724 }
3725 _ACEOF
3726 ac_clean_files_save=$ac_clean_files
3727 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
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.
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; }
3733 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3734
3735 # The possible output files:
3736 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3737
3738 ac_rmfiles=
3739 for ac_file in $ac_files
3740 do
3741 case $ac_file in
3742 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3743 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3744 esac
3745 done
3746 rm -f $ac_rmfiles
3747
3748 if { { ac_try="$ac_link_default"
3749 case "(($ac_try" in
3750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3751 *) ac_try_echo=$ac_try;;
3752 esac
3753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3754 $as_echo "$ac_try_echo"; } >&5
3755 (eval "$ac_link_default") 2>&5
3756 ac_status=$?
3757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3758 test $ac_status = 0; }; then :
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.
3764 for ac_file in $ac_files ''
3765 do
3766 test -f "$ac_file" || continue
3767 case $ac_file in
3768 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3769 ;;
3770 [ab].out )
3771 # We found the default executable, but exeext='' is most
3772 # certainly right.
3773 break;;
3774 *.* )
3775 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
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.
3784 break;;
3785 * )
3786 break;;
3787 esac
3788 done
3789 test "$ac_cv_exeext" = no && ac_cv_exeext=
3790
3791 else
3792 ac_file=''
3793 fi
3794 if 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
3798 sed 's/^/| /' conftest.$ac_ext >&5
3799
3800 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3801 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3802 as_fn_error 77 "C compiler cannot create executables
3803 See \`config.log' for more details" "$LINENO" 5; }
3804 else
3805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3806 $as_echo "yes" >&6; }
3807 fi
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; }
3812 ac_exeext=$ac_cv_exeext
3813
3814 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3815 ac_clean_files=$ac_clean_files_save
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3817 $as_echo_n "checking for suffix of executables... " >&6; }
3818 if { { ac_try="$ac_link"
3819 case "(($ac_try" in
3820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3821 *) ac_try_echo=$ac_try;;
3822 esac
3823 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3824 $as_echo "$ac_try_echo"; } >&5
3825 (eval "$ac_link") 2>&5
3826 ac_status=$?
3827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3828 test $ac_status = 0; }; then :
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'.
3833 for ac_file in conftest.exe conftest conftest.*; do
3834 test -f "$ac_file" || continue
3835 case $ac_file in
3836 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3837 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3838 break;;
3839 * ) break;;
3840 esac
3841 done
3842 else
3843 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3846 See \`config.log' for more details" "$LINENO" 5; }
3847 fi
3848 rm -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; }
3851
3852 rm -f conftest.$ac_ext
3853 EXEEXT=$ac_cv_exeext
3854 ac_exeext=$EXEEXT
3855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3856 /* end confdefs.h. */
3857 #include <stdio.h>
3858 int
3859 main ()
3860 {
3861 FILE *f = fopen ("conftest.out", "w");
3862 return ferror (f) || fclose (f) != 0;
3863
3864 ;
3865 return 0;
3866 }
3867 _ACEOF
3868 ac_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; }
3873 if test "$cross_compiling" != yes; then
3874 { { ac_try="$ac_link"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3880 $as_echo "$ac_try_echo"; } >&5
3881 (eval "$ac_link") 2>&5
3882 ac_status=$?
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;;
3889 esac
3890 eval 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;}
3903 as_fn_error $? "cannot run C compiled programs.
3904 If you meant to cross compile, use \`--host'.
3905 See \`config.log' for more details" "$LINENO" 5; }
3906 fi
3907 fi
3908 fi
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3910 $as_echo "$cross_compiling" >&6; }
3911
3912 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3913 ac_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; }
3916 if ${ac_cv_objext+:} false; then :
3917 $as_echo_n "(cached) " >&6
3918 else
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921
3922 int
3923 main ()
3924 {
3925
3926 ;
3927 return 0;
3928 }
3929 _ACEOF
3930 rm -f conftest.o conftest.obj
3931 if { { ac_try="$ac_compile"
3932 case "(($ac_try" in
3933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3934 *) ac_try_echo=$ac_try;;
3935 esac
3936 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3937 $as_echo "$ac_try_echo"; } >&5
3938 (eval "$ac_compile") 2>&5
3939 ac_status=$?
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
3949 done
3950 else
3951 $as_echo "$as_me: failed program was:" >&5
3952 sed 's/^/| /' conftest.$ac_ext >&5
3953
3954 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3955 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3956 as_fn_error $? "cannot compute suffix of object files: cannot compile
3957 See \`config.log' for more details" "$LINENO" 5; }
3958 fi
3959 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3960 fi
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3962 $as_echo "$ac_cv_objext" >&6; }
3963 OBJEXT=$ac_cv_objext
3964 ac_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; }
3967 if ${ac_cv_c_compiler_gnu+:} false; then :
3968 $as_echo_n "(cached) " >&6
3969 else
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3972
3973 int
3974 main ()
3975 {
3976 #ifndef __GNUC__
3977 choke me
3978 #endif
3979
3980 ;
3981 return 0;
3982 }
3983 _ACEOF
3984 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_compiler_gnu=yes
3986 else
3987 ac_compiler_gnu=no
3988 fi
3989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3990 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3991
3992 fi
3993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3994 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3995 if test $ac_compiler_gnu = yes; then
3996 GCC=yes
3997 else
3998 GCC=
3999 fi
4000 ac_test_CFLAGS=${CFLAGS+set}
4001 ac_save_CFLAGS=$CFLAGS
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4003 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4004 if ${ac_cv_prog_cc_g+:} false; then :
4005 $as_echo_n "(cached) " >&6
4006 else
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"
4011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4012 /* end confdefs.h. */
4013
4014 int
4015 main ()
4016 {
4017
4018 ;
4019 return 0;
4020 }
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_prog_cc_g=yes
4024 else
4025 CFLAGS=""
4026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4027 /* end confdefs.h. */
4028
4029 int
4030 main ()
4031 {
4032
4033 ;
4034 return 0;
4035 }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4038
4039 else
4040 ac_c_werror_flag=$ac_save_c_werror_flag
4041 CFLAGS="-g"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044
4045 int
4046 main ()
4047 {
4048
4049 ;
4050 return 0;
4051 }
4052 _ACEOF
4053 if ac_fn_c_try_compile "$LINENO"; then :
4054 ac_cv_prog_cc_g=yes
4055 fi
4056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4057 fi
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4061 ac_c_werror_flag=$ac_save_c_werror_flag
4062 fi
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4064 $as_echo "$ac_cv_prog_cc_g" >&6; }
4065 if test "$ac_test_CFLAGS" = set; then
4066 CFLAGS=$ac_save_CFLAGS
4067 elif 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
4073 else
4074 if test "$GCC" = yes; then
4075 CFLAGS="-O2"
4076 else
4077 CFLAGS=
4078 fi
4079 fi
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; }
4082 if ${ac_cv_prog_cc_c89+:} false; then :
4083 $as_echo_n "(cached) " >&6
4084 else
4085 ac_cv_prog_cc_c89=no
4086 ac_save_CC=$CC
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4089 #include <stdarg.h>
4090 #include <stdio.h>
4091 struct stat;
4092 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4093 struct buf { int x; };
4094 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4095 static char *e (p, i)
4096 char **p;
4097 int i;
4098 {
4099 return p[i];
4100 }
4101 static 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
4114 as 'x'. The following induces an error, until -std is added to get
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
4117 that's true only with -std. */
4118 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4119
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'
4123 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4124
4125 int test (int i, double x);
4126 struct s1 {int (*f) (int a);};
4127 struct s2 {int (*f) (double a);};
4128 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4129 int argc;
4130 char **argv;
4131 int
4132 main ()
4133 {
4134 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4135 ;
4136 return 0;
4137 }
4138 _ACEOF
4139 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4140 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4141 do
4142 CC="$ac_save_CC $ac_arg"
4143 if ac_fn_c_try_compile "$LINENO"; then :
4144 ac_cv_prog_cc_c89=$ac_arg
4145 fi
4146 rm -f core conftest.err conftest.$ac_objext
4147 test "x$ac_cv_prog_cc_c89" != "xno" && break
4148 done
4149 rm -f conftest.$ac_ext
4150 CC=$ac_save_CC
4151
4152 fi
4153 # AC_CACHE_VAL
4154 case "x$ac_cv_prog_cc_c89" in
4155 x)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4157 $as_echo "none needed" >&6; } ;;
4158 xno)
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4160 $as_echo "unsupported" >&6; } ;;
4161 *)
4162 CC="$CC $ac_cv_prog_cc_c89"
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4164 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4165 esac
4166 if test "x$ac_cv_prog_cc_c89" != xno; then :
4167
4168 fi
4169
4170 ac_ext=c
4171 ac_cpp='$CPP $CPPFLAGS'
4172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4175 DEPDIR="${am__leading_dot}deps"
4176
4177 ac_config_commands="$ac_config_commands depfiles"
4178
4179
4180 am_make=${MAKE-make}
4181 cat > confinc << 'END'
4182 am__doit:
4183 @echo this is the am__doit target
4184 .PHONY: am__doit
4185 END
4186 # If we don't find an include directive, just comment out the code.
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; }
4189 am__include="#"
4190 am__quote=
4191 _am_result=none
4192 # First try GNU make style include.
4193 echo "include confinc" > confmf
4194 # Ignore all kinds of additional output from 'make'.
4195 case `$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 ;;
4201 esac
4202 # Now try BSD make style include.
4203 if test "$am__include" = "#"; then
4204 echo '.include "confinc"' > confmf
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
4212 fi
4213
4214
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4216 $as_echo "$_am_result" >&6; }
4217 rm -f confinc confmf
4218
4219 # Check whether --enable-dependency-tracking was given.
4220 if test "${enable_dependency_tracking+set}" = set; then :
4221 enableval=$enable_dependency_tracking;
4222 fi
4223
4224 if test "x$enable_dependency_tracking" != xno; then
4225 am_depcomp="$ac_aux_dir/depcomp"
4226 AMDEPBACKSLASH='\'
4227 am__nodep='_no'
4228 fi
4229 if test "x$enable_dependency_tracking" != xno; then
4230 AMDEP_TRUE=
4231 AMDEP_FALSE='#'
4232 else
4233 AMDEP_TRUE='#'
4234 AMDEP_FALSE=
4235 fi
4236
4237
4238
4239 depcc="$CC" am_compiler_list=
4240
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4242 $as_echo_n "checking dependency style of $depcc... " >&6; }
4243 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
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
4250 # making a dummy file named 'D' -- because '-MD' means "put the output
4251 # in D".
4252 rm -rf conftest.dir
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
4270 am__universal=false
4271 case " $depcc " in #(
4272 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4273 esac
4274
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
4286 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4287 # Solaris 10 /bin/sh.
4288 echo '/* dummy */' > sub/conftst$i.h
4289 done
4290 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4291
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"
4298 case $depmode in
4299 gcc)
4300 # This depmode causes a compiler race in universal mode.
4301 test "$am__universal" = false || continue
4302 ;;
4303 nosideeffect)
4304 # After this tag, mechanisms are not by side-effect, so they'll
4305 # only be used when explicitly requested.
4306 if test "x$enable_dependency_tracking" = xyes; then
4307 continue
4308 else
4309 break
4310 fi
4311 ;;
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 ;;
4319 none) break ;;
4320 esac
4321 if depmode=$depmode \
4322 source=sub/conftest.c object=$am__obj \
4323 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4324 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4325 >/dev/null 2>conftest.err &&
4326 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4327 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4328 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
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
4347 else
4348 am_cv_CC_dependencies_compiler_type=none
4349 fi
4350
4351 fi
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; }
4354 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4355
4356 if
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='#'
4361 else
4362 am__fastdepCC_TRUE='#'
4363 am__fastdepCC_FALSE=
4364 fi
4365
4366
4367 if test "x$CC" != xcc; then
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; }
4370 else
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; }
4373 fi
4374 set dummy $CC; ac_cc=`$as_echo "$2" |
4375 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4376 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4377 $as_echo_n "(cached) " >&6
4378 else
4379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4380 /* end confdefs.h. */
4381
4382 int
4383 main ()
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.
4393 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4394 rm -f conftest2.*
4395 if { { case "(($ac_try" in
4396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4397 *) ac_try_echo=$ac_try;;
4398 esac
4399 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4400 $as_echo "$ac_try_echo"; } >&5
4401 (eval "$ac_try") 2>&5
4402 ac_status=$?
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
4406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4407 *) ac_try_echo=$ac_try;;
4408 esac
4409 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4410 $as_echo "$ac_try_echo"; } >&5
4411 (eval "$ac_try") 2>&5
4412 ac_status=$?
4413 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4414 test $ac_status = 0; };
4415 then
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'
4420 { { case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4425 $as_echo "$ac_try_echo"; } >&5
4426 (eval "$ac_try") 2>&5
4427 ac_status=$?
4428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4429 test $ac_status = 0; }; }; then
4430 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4431 rm -f conftest2.*
4432 if { { case "(($ac_try" in
4433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4434 *) ac_try_echo=$ac_try;;
4435 esac
4436 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4437 $as_echo "$ac_try_echo"; } >&5
4438 (eval "$ac_try") 2>&5
4439 ac_status=$?
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
4443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4444 *) ac_try_echo=$ac_try;;
4445 esac
4446 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4447 $as_echo "$ac_try_echo"; } >&5
4448 (eval "$ac_try") 2>&5
4449 ac_status=$?
4450 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4451 test $ac_status = 0; };
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
4461 else
4462 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4463 fi
4464 rm -f core conftest*
4465
4466 fi
4467 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4469 $as_echo "yes" >&6; }
4470 else
4471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4472 $as_echo "no" >&6; }
4473
4474 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4475
4476 fi
4477
4478 # FIXME: we rely on the cache variable name because
4479 # there is no other way.
4480 set dummy $CC
4481 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4482 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4483 if test "$am_t" != yes; then
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"
4490 fi
4491
4492
4493
4494
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
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $msg" >&5
4502 $as_echo_n "checking $msg... " >&6; }
4503 if ${vl_cv_prog_cc_warnings+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506
4507 if test -n "$CC"; then
4508 cat > conftest.c <<EOF
4509 int main(int argc, char **argv) { return 0; }
4510 EOF
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
4592 fi
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $vl_cv_prog_cc_warnings" >&5
4594 $as_echo "$vl_cv_prog_cc_warnings" >&6; }
4595
4596
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; }
4600 LN_S=$as_ln_s
4601 if test "$LN_S" = "ln -s"; then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo "yes" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4606 $as_echo "no, using $LN_S" >&6; }
4607 fi
4608
4609
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.
4616 if test "${enable_ld_version_script+set}" = set; then :
4617 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
4618 else
4619 have_ld_version_script=no
4620 fi
4621
4622 if 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
4628 VERS_1 {
4629 global: sym;
4630 };
4631
4632 VERS_2 {
4633 global: sym;
4634 } VERS_1;
4635 EOF
4636
4637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4638 /* end confdefs.h. */
4639
4640 int
4641 main ()
4642 {
4643
4644 ;
4645 return 0;
4646 }
4647 _ACEOF
4648 if ac_fn_c_try_link "$LINENO"; then :
4649 have_ld_version_script=yes
4650 else
4651 have_ld_version_script=no
4652 fi
4653 rm -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; }
4659 fi
4660 if test "$have_ld_version_script" = "yes"; then
4661 HAVE_LD_VERSION_SCRIPT_TRUE=
4662 HAVE_LD_VERSION_SCRIPT_FALSE='#'
4663 else
4664 HAVE_LD_VERSION_SCRIPT_TRUE='#'
4665 HAVE_LD_VERSION_SCRIPT_FALSE=
4666 fi
4667
4668
4669
4670
4671
4672
4673 case `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;} ;;
4677 esac
4678
4679
4680
4681 macro_version='2.4.2'
4682 macro_revision='1.3337'
4683
4684
4685
4686
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696 ltmain="$ac_aux_dir/ltmain.sh"
4697
4698 # Backslashify metacharacters that are still active within
4699 # double-quoted strings.
4700 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
4701
4702 # Same as above, but do not quote variable references.
4703 double_quote_subst='s/\(["`\\]\)/\\\1/g'
4704
4705 # Sed substitution to delay expansion of an escaped shell variable in a
4706 # double_quote_subst'ed string.
4707 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
4708
4709 # Sed substitution to delay expansion of an escaped single quote.
4710 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
4711
4712 # Sed substitution to avoid accidental globbing in evaled expressions
4713 no_glob_subst='s/\*/\\\*/g'
4714
4715 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4716 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
4717 ECHO=$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.
4722 if 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 --'
4725 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
4726 ECHO='printf %s\n'
4727 else
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'
4736 fi
4737
4738 # func_echo_all arg...
4739 # Invoke $ECHO with all args, space-separated.
4740 func_echo_all ()
4741 {
4742 $ECHO ""
4743 }
4744
4745 case "$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; } ;;
4752 esac
4753
4754
4755
4756
4757
4758
4759
4760
4761
4762
4763
4764
4765
4766
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; }
4769 if ${ac_cv_path_SED+:} false; then :
4770 $as_echo_n "(cached) " >&6
4771 else
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
4776 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4777 { ac_script=; unset ac_script;}
4778 if test -z "$SED"; then
4779 ac_path_SED_found=false
4780 # Loop through the user's path and test for each of PROGNAME-LIST
4781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4782 for as_dir in $PATH
4783 do
4784 IFS=$as_save_IFS
4785 test -z "$as_dir" && as_dir=.
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.
4791 # Check for GNU $ac_path_SED
4792 case `"$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
4797 $as_echo_n 0123456789 >"conftest.in"
4798 while :
4799 do
4800 cat "conftest.in" "conftest.in" >"conftest.tmp"
4801 mv "conftest.tmp" "conftest.in"
4802 cp "conftest.in" "conftest.nl"
4803 $as_echo '' >> "conftest.nl"
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
4806 as_fn_arith $ac_count + 1 && ac_count=$as_val
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;;
4816 esac
4817
4818 $ac_path_SED_found && break 3
4819 done
4820 done
4821 done
4822 IFS=$as_save_IFS
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
4826 else
4827 ac_cv_path_SED=$SED
4828 fi
4829
4830 fi
4831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4832 $as_echo "$ac_cv_path_SED" >&6; }
4833 SED="$ac_cv_path_SED"
4834 rm -f conftest.sed
4835
4836 test -z "$SED" && SED=sed
4837 Xsed="$SED -e 1s/^X//"
4838
4839
4840
4841
4842
4843
4844
4845
4846
4847
4848
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; }
4851 if ${ac_cv_path_GREP+:} false; then :
4852 $as_echo_n "(cached) " >&6
4853 else
4854 if test -z "$GREP"; then
4855 ac_path_GREP_found=false
4856 # Loop through the user's path and test for each of PROGNAME-LIST
4857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4858 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4859 do
4860 IFS=$as_save_IFS
4861 test -z "$as_dir" && as_dir=.
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.
4867 # Check for GNU $ac_path_GREP
4868 case `"$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
4873 $as_echo_n 0123456789 >"conftest.in"
4874 while :
4875 do
4876 cat "conftest.in" "conftest.in" >"conftest.tmp"
4877 mv "conftest.tmp" "conftest.in"
4878 cp "conftest.in" "conftest.nl"
4879 $as_echo 'GREP' >> "conftest.nl"
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
4882 as_fn_arith $ac_count + 1 && ac_count=$as_val
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;;
4892 esac
4893
4894 $ac_path_GREP_found && break 3
4895 done
4896 done
4897 done
4898 IFS=$as_save_IFS
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
4902 else
4903 ac_cv_path_GREP=$GREP
4904 fi
4905
4906 fi
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4908 $as_echo "$ac_cv_path_GREP" >&6; }
4909 GREP="$ac_cv_path_GREP"
4910
4911
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4913 $as_echo_n "checking for egrep... " >&6; }
4914 if ${ac_cv_path_EGREP+:} false; then :
4915 $as_echo_n "(cached) " >&6
4916 else
4917 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4918 then ac_cv_path_EGREP="$GREP -E"
4919 else
4920 if test -z "$EGREP"; then
4921 ac_path_EGREP_found=false
4922 # Loop through the user's path and test for each of PROGNAME-LIST
4923 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4924 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4925 do
4926 IFS=$as_save_IFS
4927 test -z "$as_dir" && as_dir=.
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.
4933 # Check for GNU $ac_path_EGREP
4934 case `"$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
4939 $as_echo_n 0123456789 >"conftest.in"
4940 while :
4941 do
4942 cat "conftest.in" "conftest.in" >"conftest.tmp"
4943 mv "conftest.tmp" "conftest.in"
4944 cp "conftest.in" "conftest.nl"
4945 $as_echo 'EGREP' >> "conftest.nl"
4946 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4947 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4948 as_fn_arith $ac_count + 1 && ac_count=$as_val
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
4953 fi
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;;
4958 esac
4959
4960 $ac_path_EGREP_found && break 3
4961 done
4962 done
4963 done
4964 IFS=$as_save_IFS
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
4968 else
4969 ac_cv_path_EGREP=$EGREP
4970 fi
4971
4972 fi
4973 fi
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4975 $as_echo "$ac_cv_path_EGREP" >&6; }
4976 EGREP="$ac_cv_path_EGREP"
4977
4978
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4980 $as_echo_n "checking for fgrep... " >&6; }
4981 if ${ac_cv_path_FGREP+:} false; then :
4982 $as_echo_n "(cached) " >&6
4983 else
4984 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4985 then ac_cv_path_FGREP="$GREP -F"
4986 else
4987 if test -z "$FGREP"; then
4988 ac_path_FGREP_found=false
4989 # Loop through the user's path and test for each of PROGNAME-LIST
4990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4991 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4992 do
4993 IFS=$as_save_IFS
4994 test -z "$as_dir" && as_dir=.
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.
5000 # Check for GNU $ac_path_FGREP
5001 case `"$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
5006 $as_echo_n 0123456789 >"conftest.in"
5007 while :
5008 do
5009 cat "conftest.in" "conftest.in" >"conftest.tmp"
5010 mv "conftest.tmp" "conftest.in"
5011 cp "conftest.in" "conftest.nl"
5012 $as_echo 'FGREP' >> "conftest.nl"
5013 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5014 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5015 as_fn_arith $ac_count + 1 && ac_count=$as_val
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;;
5025 esac
5026
5027 $ac_path_FGREP_found && break 3
5028 done
5029 done
5030 done
5031 IFS=$as_save_IFS
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
5035 else
5036 ac_cv_path_FGREP=$FGREP
5037 fi
5038
5039 fi
5040 fi
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5042 $as_echo "$ac_cv_path_FGREP" >&6; }
5043 FGREP="$ac_cv_path_FGREP"
5044
5045
5046 test -z "$GREP" && GREP=grep
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057
5058
5059
5060
5061
5062
5063
5064
5065
5066 # Check whether --with-gnu-ld was given.
5067 if test "${with_gnu_ld+set}" = set; then :
5068 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5069 else
5070 with_gnu_ld=no
5071 fi
5072
5073 ac_prog=ld
5074 if test "$GCC" = yes; then
5075 # Check if gcc -print-prog-name=ld gives a path.
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; }
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
5105 elif test "$with_gnu_ld" = yes; then
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5107 $as_echo_n "checking for GNU ld... " >&6; }
5108 else
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5110 $as_echo_n "checking for non-GNU ld... " >&6; }
5111 fi
5112 if ${lt_cv_path_LD+:} false; then :
5113 $as_echo_n "(cached) " >&6
5114 else
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"
5136 else
5137 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5138 fi
5139 fi
5140
5141 LD="$lt_cv_path_LD"
5142 if test -n "$LD"; then
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5144 $as_echo "$LD" >&6; }
5145 else
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5147 $as_echo "no" >&6; }
5148 fi
5149 test -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; }
5152 if ${lt_cv_prog_gnu_ld+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5156 case `$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 ;;
5163 esac
5164 fi
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5166 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
5167 with_gnu_ld=$lt_cv_prog_gnu_ld
5168
5169
5170
5171
5172
5173
5174
5175
5176
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; }
5179 if ${lt_cv_path_NM+:} false; then :
5180 $as_echo_n "(cached) " >&6
5181 else
5182 if test -n "$NM"; then
5183 # Let the user override the test.
5184 lt_cv_path_NM="$NM"
5185 else
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}
5224 fi
5225 fi
5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5227 $as_echo "$lt_cv_path_NM" >&6; }
5228 if test "$lt_cv_path_NM" != "no"; then
5229 NM="$lt_cv_path_NM"
5230 else
5231 # Didn't find any BSD compatible name lister, look for dumpbin.
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"
5237 do
5238 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5239 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5241 $as_echo_n "checking for $ac_word... " >&6; }
5242 if ${ac_cv_prog_DUMPBIN+:} false; then :
5243 $as_echo_n "(cached) " >&6
5244 else
5245 if test -n "$DUMPBIN"; then
5246 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5247 else
5248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5249 for as_dir in $PATH
5250 do
5251 IFS=$as_save_IFS
5252 test -z "$as_dir" && as_dir=.
5253 for ac_exec_ext in '' $ac_executable_extensions; do
5254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5255 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5257 break 2
5258 fi
5259 done
5260 done
5261 IFS=$as_save_IFS
5262
5263 fi
5264 fi
5265 DUMPBIN=$ac_cv_prog_DUMPBIN
5266 if test -n "$DUMPBIN"; then
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5268 $as_echo "$DUMPBIN" >&6; }
5269 else
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5271 $as_echo "no" >&6; }
5272 fi
5273
5274
5275 test -n "$DUMPBIN" && break
5276 done
5277 fi
5278 if test -z "$DUMPBIN"; then
5279 ac_ct_DUMPBIN=$DUMPBIN
5280 for ac_prog in dumpbin "link -dump"
5281 do
5282 # Extract the first word of "$ac_prog", so it can be a program name with args.
5283 set dummy $ac_prog; ac_word=$2
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5285 $as_echo_n "checking for $ac_word... " >&6; }
5286 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 if test -n "$ac_ct_DUMPBIN"; then
5290 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5291 else
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5294 do
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5301 break 2
5302 fi
5303 done
5304 done
5305 IFS=$as_save_IFS
5306
5307 fi
5308 fi
5309 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5310 if test -n "$ac_ct_DUMPBIN"; then
5311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5312 $as_echo "$ac_ct_DUMPBIN" >&6; }
5313 else
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5315 $as_echo "no" >&6; }
5316 fi
5317
5318
5319 test -n "$ac_ct_DUMPBIN" && break
5320 done
5321
5322 if test "x$ac_ct_DUMPBIN" = x; then
5323 DUMPBIN=":"
5324 else
5325 case $cross_compiling:$ac_tool_warned in
5326 yes:)
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;}
5329 ac_tool_warned=yes ;;
5330 esac
5331 DUMPBIN=$ac_ct_DUMPBIN
5332 fi
5333 fi
5334
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
5344
5345 if test "$DUMPBIN" != ":"; then
5346 NM="$DUMPBIN"
5347 fi
5348 fi
5349 test -z "$NM" && NM=nm
5350
5351
5352
5353
5354
5355
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; }
5358 if ${lt_cv_nm_interface+:} false; then :
5359 $as_echo_n "(cached) " >&6
5360 else
5361 lt_cv_nm_interface="BSD nm"
5362 echo "int some_variable = 0;" > conftest.$ac_ext
5363 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5364 (eval "$ac_compile" 2>conftest.err)
5365 cat conftest.err >&5
5366 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5367 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5368 cat conftest.err >&5
5369 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
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*
5375 fi
5376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5377 $as_echo "$lt_cv_nm_interface" >&6; }
5378
5379 # find the maximum length of command line arguments
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; }
5382 if ${lt_cv_sys_max_cmd_len+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
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
5404 cygwin* | mingw* | cegcc*)
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
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
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
5445 os2*)
5446 # The test takes a long time on OS/2.
5447 lt_cv_sys_max_cmd_len=8192
5448 ;;
5449
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
5469 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5470 else
5471 lt_cv_sys_max_cmd_len=32768
5472 fi
5473 ;;
5474 *)
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
5504 ;;
5505 esac
5506
5507 fi
5508
5509 if test -n $lt_cv_sys_max_cmd_len ; then
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; }
5512 else
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5514 $as_echo "none" >&6; }
5515 fi
5516 max_cmd_len=$lt_cv_sys_max_cmd_len
5517
5518
5519
5520
5521
5522
5523 : ${CP="cp -f"}
5524 : ${MV="mv -f"}
5525 : ${RM="rm -f"}
5526
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; }
5529 # Try some XSI features
5530 xsi_shell=no
5531 ( _lt_dummy="a/b/c"
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 \
5536 && xsi_shell=yes
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; }
5543 lt_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
5551 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5552 lt_unset=unset
5553 else
5554 lt_unset=false
5555 fi
5556
5557
5558
5559
5560
5561 # test EBCDIC or ASCII
5562 case `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 ;;
5572 esac
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; }
5584 if ${lt_cv_to_host_file_cmd+:} false; then :
5585 $as_echo_n "(cached) " >&6
5586 else
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 ;;
5617 esac
5618
5619 fi
5620
5621 to_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; }
5631 if ${lt_cv_to_tool_file_cmd+:} false; then :
5632 $as_echo_n "(cached) " >&6
5633 else
5634 #assume ordinary cross tools, or native build.
5635 lt_cv_to_tool_file_cmd=func_convert_file_noop
5636 case $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 ;;
5644 esac
5645
5646 fi
5647
5648 to_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; }
5651
5652
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; }
5658 if ${lt_cv_ld_reload_flag+:} false; then :
5659 $as_echo_n "(cached) " >&6
5660 else
5661 lt_cv_ld_reload_flag='-r'
5662 fi
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5664 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5665 reload_flag=$lt_cv_ld_reload_flag
5666 case $reload_flag in
5667 "" | " "*) ;;
5668 *) reload_flag=" $reload_flag" ;;
5669 esac
5670 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5671 case $host_os in
5672 cygwin* | mingw* | pw32* | cegcc*)
5673 if test "$GCC" != yes; then
5674 reload_cmds=false
5675 fi
5676 ;;
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 ;;
5684 esac
5685
5686
5687
5688
5689
5690
5691
5692
5693
5694 if 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.
5696 set 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; }
5699 if ${ac_cv_prog_OBJDUMP+:} false; then :
5700 $as_echo_n "(cached) " >&6
5701 else
5702 if test -n "$OBJDUMP"; then
5703 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5704 else
5705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5706 for as_dir in $PATH
5707 do
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
5716 done
5717 done
5718 IFS=$as_save_IFS
5719
5720 fi
5721 fi
5722 OBJDUMP=$ac_cv_prog_OBJDUMP
5723 if test -n "$OBJDUMP"; then
5724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5725 $as_echo "$OBJDUMP" >&6; }
5726 else
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5728 $as_echo "no" >&6; }
5729 fi
5730
5731
5732 fi
5733 if 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.
5736 set 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; }
5739 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5740 $as_echo_n "(cached) " >&6
5741 else
5742 if test -n "$ac_ct_OBJDUMP"; then
5743 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5744 else
5745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5746 for as_dir in $PATH
5747 do
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
5756 done
5757 done
5758 IFS=$as_save_IFS
5759
5760 fi
5761 fi
5762 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5763 if 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; }
5766 else
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5768 $as_echo "no" >&6; }
5769 fi
5770
5771 if test "x$ac_ct_OBJDUMP" = x; then
5772 OBJDUMP="false"
5773 else
5774 case $cross_compiling:$ac_tool_warned in
5775 yes:)
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;}
5778 ac_tool_warned=yes ;;
5779 esac
5780 OBJDUMP=$ac_ct_OBJDUMP
5781 fi
5782 else
5783 OBJDUMP="$ac_cv_prog_OBJDUMP"
5784 fi
5785
5786 test -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; }
5795 if ${lt_cv_deplibs_check_method+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 lt_cv_file_magic_cmd='$MAGIC_CMD'
5799 lt_cv_file_magic_test_file=
5800 lt_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
5812 case $host_os in
5813 aix[4-9]*)
5814 lt_cv_deplibs_check_method=pass_all
5815 ;;
5816
5817 beos*)
5818 lt_cv_deplibs_check_method=pass_all
5819 ;;
5820
5821 bsdi[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
5827 cygwin*)
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
5833 mingw* | pw32*)
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
5848 cegcc*)
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)?'
5851 lt_cv_file_magic_cmd='$OBJDUMP -f'
5852 ;;
5853
5854 darwin* | rhapsody*)
5855 lt_cv_deplibs_check_method=pass_all
5856 ;;
5857
5858 freebsd* | dragonfly*)
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
5874 gnu*)
5875 lt_cv_deplibs_check_method=pass_all
5876 ;;
5877
5878 haiku*)
5879 lt_cv_deplibs_check_method=pass_all
5880 ;;
5881
5882 hpux10.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*)
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]'
5891 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5892 ;;
5893 *)
5894 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5895 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5896 ;;
5897 esac
5898 ;;
5899
5900 interix[3-9]*)
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
5905 irix5* | 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
5915 # This must be glibc/ELF.
5916 linux* | k*bsd*-gnu | kopensolaris*-gnu)
5917 lt_cv_deplibs_check_method=pass_all
5918 ;;
5919
5920 netbsd*)
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
5928 newos6*)
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
5938 openbsd*)
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
5946 osf3* | osf4* | osf5*)
5947 lt_cv_deplibs_check_method=pass_all
5948 ;;
5949
5950 rdos*)
5951 lt_cv_deplibs_check_method=pass_all
5952 ;;
5953
5954 solaris*)
5955 lt_cv_deplibs_check_method=pass_all
5956 ;;
5957
5958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5959 lt_cv_deplibs_check_method=pass_all
5960 ;;
5961
5962 sysv4 | 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
5989 tpf*)
5990 lt_cv_deplibs_check_method=pass_all
5991 ;;
5992 esac
5993
5994 fi
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
5998 file_magic_glob=
5999 want_nocaseglob=no
6000 if 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
6010 fi
6011
6012 file_magic_cmd=$lt_cv_file_magic_cmd
6013 deplibs_check_method=$lt_cv_deplibs_check_method
6014 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026
6027
6028
6029
6030
6031
6032
6033
6034
6035
6036
6037 if 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.
6039 set 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; }
6042 if ${ac_cv_prog_DLLTOOL+:} false; then :
6043 $as_echo_n "(cached) " >&6
6044 else
6045 if test -n "$DLLTOOL"; then
6046 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
6047 else
6048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6049 for as_dir in $PATH
6050 do
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
6059 done
6060 done
6061 IFS=$as_save_IFS
6062
6063 fi
6064 fi
6065 DLLTOOL=$ac_cv_prog_DLLTOOL
6066 if test -n "$DLLTOOL"; then
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
6068 $as_echo "$DLLTOOL" >&6; }
6069 else
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6071 $as_echo "no" >&6; }
6072 fi
6073
6074
6075 fi
6076 if 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.
6079 set 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; }
6082 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
6083 $as_echo_n "(cached) " >&6
6084 else
6085 if test -n "$ac_ct_DLLTOOL"; then
6086 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
6087 else
6088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6089 for as_dir in $PATH
6090 do
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
6099 done
6100 done
6101 IFS=$as_save_IFS
6102
6103 fi
6104 fi
6105 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
6106 if 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; }
6109 else
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6111 $as_echo "no" >&6; }
6112 fi
6113
6114 if test "x$ac_ct_DLLTOOL" = x; then
6115 DLLTOOL="false"
6116 else
6117 case $cross_compiling:$ac_tool_warned in
6118 yes:)
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;}
6121 ac_tool_warned=yes ;;
6122 esac
6123 DLLTOOL=$ac_ct_DLLTOOL
6124 fi
6125 else
6126 DLLTOOL="$ac_cv_prog_DLLTOOL"
6127 fi
6128
6129 test -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; }
6139 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
6140 $as_echo_n "(cached) " >&6
6141 else
6142 lt_cv_sharedlib_from_linklib_cmd='unknown'
6143
6144 case $host_os in
6145 cygwin* | 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 ;;
6161 esac
6162
6163 fi
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; }
6166 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
6167 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
6168
6169
6170
6171
6172
6173
6174
6175 if test -n "$ac_tool_prefix"; then
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.
6179 set 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; }
6182 if ${ac_cv_prog_AR+:} false; then :
6183 $as_echo_n "(cached) " >&6
6184 else
6185 if test -n "$AR"; then
6186 ac_cv_prog_AR="$AR" # Let the user override the test.
6187 else
6188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6189 for as_dir in $PATH
6190 do
6191 IFS=$as_save_IFS
6192 test -z "$as_dir" && as_dir=.
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
6197 break 2
6198 fi
6199 done
6200 done
6201 IFS=$as_save_IFS
6202
6203 fi
6204 fi
6205 AR=$ac_cv_prog_AR
6206 if test -n "$AR"; then
6207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6208 $as_echo "$AR" >&6; }
6209 else
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6211 $as_echo "no" >&6; }
6212 fi
6213
6214
6215 test -n "$AR" && break
6216 done
6217 fi
6218 if test -z "$AR"; then
6219 ac_ct_AR=$AR
6220 for ac_prog in ar
6221 do
6222 # Extract the first word of "$ac_prog", so it can be a program name with args.
6223 set 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; }
6226 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6229 if test -n "$ac_ct_AR"; then
6230 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6231 else
6232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6233 for as_dir in $PATH
6234 do
6235 IFS=$as_save_IFS
6236 test -z "$as_dir" && as_dir=.
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
6241 break 2
6242 fi
6243 done
6244 done
6245 IFS=$as_save_IFS
6246
6247 fi
6248 fi
6249 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6250 if test -n "$ac_ct_AR"; then
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6252 $as_echo "$ac_ct_AR" >&6; }
6253 else
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6255 $as_echo "no" >&6; }
6256 fi
6257
6258
6259 test -n "$ac_ct_AR" && break
6260 done
6261
6262 if test "x$ac_ct_AR" = x; then
6263 AR="false"
6264 else
6265 case $cross_compiling:$ac_tool_warned in
6266 yes:)
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;}
6269 ac_tool_warned=yes ;;
6270 esac
6271 AR=$ac_ct_AR
6272 fi
6273 fi
6274
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; }
6290 if ${lt_cv_ar_at_file+:} false; then :
6291 $as_echo_n "(cached) " >&6
6292 else
6293 lt_cv_ar_at_file=no
6294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6295 /* end confdefs.h. */
6296
6297 int
6298 main ()
6299 {
6300
6301 ;
6302 return 0;
6303 }
6304 _ACEOF
6305 if 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
6326
6327 fi
6328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6329
6330 fi
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6332 $as_echo "$lt_cv_ar_at_file" >&6; }
6333
6334 if test "x$lt_cv_ar_at_file" = xno; then
6335 archiver_list_spec=
6336 else
6337 archiver_list_spec=$lt_cv_ar_at_file
6338 fi
6339
6340
6341
6342
6343
6344
6345
6346 if 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.
6348 set dummy ${ac_tool_prefix}strip; ac_word=$2
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6350 $as_echo_n "checking for $ac_word... " >&6; }
6351 if ${ac_cv_prog_STRIP+:} false; then :
6352 $as_echo_n "(cached) " >&6
6353 else
6354 if test -n "$STRIP"; then
6355 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6356 else
6357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6358 for as_dir in $PATH
6359 do
6360 IFS=$as_save_IFS
6361 test -z "$as_dir" && as_dir=.
6362 for ac_exec_ext in '' $ac_executable_extensions; do
6363 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6364 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6365 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6366 break 2
6367 fi
6368 done
6369 done
6370 IFS=$as_save_IFS
6371
6372 fi
6373 fi
6374 STRIP=$ac_cv_prog_STRIP
6375 if test -n "$STRIP"; then
6376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6377 $as_echo "$STRIP" >&6; }
6378 else
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6380 $as_echo "no" >&6; }
6381 fi
6382
6383
6384 fi
6385 if 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.
6388 set dummy strip; ac_word=$2
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6390 $as_echo_n "checking for $ac_word... " >&6; }
6391 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6392 $as_echo_n "(cached) " >&6
6393 else
6394 if test -n "$ac_ct_STRIP"; then
6395 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6396 else
6397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6398 for as_dir in $PATH
6399 do
6400 IFS=$as_save_IFS
6401 test -z "$as_dir" && as_dir=.
6402 for ac_exec_ext in '' $ac_executable_extensions; do
6403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6404 ac_cv_prog_ac_ct_STRIP="strip"
6405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6406 break 2
6407 fi
6408 done
6409 done
6410 IFS=$as_save_IFS
6411
6412 fi
6413 fi
6414 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6415 if test -n "$ac_ct_STRIP"; then
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6417 $as_echo "$ac_ct_STRIP" >&6; }
6418 else
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6420 $as_echo "no" >&6; }
6421 fi
6422
6423 if test "x$ac_ct_STRIP" = x; then
6424 STRIP=":"
6425 else
6426 case $cross_compiling:$ac_tool_warned in
6427 yes:)
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;}
6430 ac_tool_warned=yes ;;
6431 esac
6432 STRIP=$ac_ct_STRIP
6433 fi
6434 else
6435 STRIP="$ac_cv_prog_STRIP"
6436 fi
6437
6438 test -z "$STRIP" && STRIP=:
6439
6440
6441
6442
6443
6444
6445 if 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.
6447 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6449 $as_echo_n "checking for $ac_word... " >&6; }
6450 if ${ac_cv_prog_RANLIB+:} false; then :
6451 $as_echo_n "(cached) " >&6
6452 else
6453 if test -n "$RANLIB"; then
6454 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6455 else
6456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6457 for as_dir in $PATH
6458 do
6459 IFS=$as_save_IFS
6460 test -z "$as_dir" && as_dir=.
6461 for ac_exec_ext in '' $ac_executable_extensions; do
6462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6463 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6465 break 2
6466 fi
6467 done
6468 done
6469 IFS=$as_save_IFS
6470
6471 fi
6472 fi
6473 RANLIB=$ac_cv_prog_RANLIB
6474 if test -n "$RANLIB"; then
6475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6476 $as_echo "$RANLIB" >&6; }
6477 else
6478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6479 $as_echo "no" >&6; }
6480 fi
6481
6482
6483 fi
6484 if 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.
6487 set dummy ranlib; ac_word=$2
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6489 $as_echo_n "checking for $ac_word... " >&6; }
6490 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6491 $as_echo_n "(cached) " >&6
6492 else
6493 if test -n "$ac_ct_RANLIB"; then
6494 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6495 else
6496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6497 for as_dir in $PATH
6498 do
6499 IFS=$as_save_IFS
6500 test -z "$as_dir" && as_dir=.
6501 for ac_exec_ext in '' $ac_executable_extensions; do
6502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6503 ac_cv_prog_ac_ct_RANLIB="ranlib"
6504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6505 break 2
6506 fi
6507 done
6508 done
6509 IFS=$as_save_IFS
6510
6511 fi
6512 fi
6513 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6514 if test -n "$ac_ct_RANLIB"; then
6515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6516 $as_echo "$ac_ct_RANLIB" >&6; }
6517 else
6518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6519 $as_echo "no" >&6; }
6520 fi
6521
6522 if test "x$ac_ct_RANLIB" = x; then
6523 RANLIB=":"
6524 else
6525 case $cross_compiling:$ac_tool_warned in
6526 yes:)
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;}
6529 ac_tool_warned=yes ;;
6530 esac
6531 RANLIB=$ac_ct_RANLIB
6532 fi
6533 else
6534 RANLIB="$ac_cv_prog_RANLIB"
6535 fi
6536
6537 test -z "$RANLIB" && RANLIB=:
6538
6539
6540
6541
6542
6543
6544 # Determine commands to create old-style static archives.
6545 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6546 old_postinstall_cmds='chmod 644 $oldlib'
6547 old_postuninstall_cmds=
6548
6549 if test -n "$RANLIB"; then
6550 case $host_os in
6551 openbsd*)
6552 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6553 ;;
6554 *)
6555 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6556 ;;
6557 esac
6558 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6559 fi
6560
6561 case $host_os in
6562 darwin*)
6563 lock_old_archive_extraction=yes ;;
6564 *)
6565 lock_old_archive_extraction=no ;;
6566 esac
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
6600
6601
6602
6603
6604
6605
6606 # If no C compiler was specified, use CC.
6607 LTCC=${LTCC-"$CC"}
6608
6609 # If no C compiler flags were specified, use CFLAGS.
6610 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6611
6612 # Allow CC to be a program name with arguments.
6613 compiler=$CC
6614
6615
6616 # Check for command to grab the raw symbol name followed by C symbol from nm.
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; }
6619 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6620 $as_echo_n "(cached) " >&6
6621 else
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.
6627 symcode='[BCDEGRST]'
6628
6629 # Regexp to match symbols that can be accessed directly from C.
6630 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6631
6632 # Define system-specific variables.
6633 case $host_os in
6634 aix*)
6635 symcode='[BCDT]'
6636 ;;
6637 cygwin* | mingw* | pw32* | cegcc*)
6638 symcode='[ABCDGISTW]'
6639 ;;
6640 hpux*)
6641 if test "$host_cpu" = ia64; then
6642 symcode='[ABCDEGRST]'
6643 fi
6644 ;;
6645 irix* | nonstopux*)
6646 symcode='[BCDEGRST]'
6647 ;;
6648 osf*)
6649 symcode='[BCDEGQRST]'
6650 ;;
6651 solaris*)
6652 symcode='[BDRT]'
6653 ;;
6654 sco3.2v5*)
6655 symcode='[DT]'
6656 ;;
6657 sysv4.2uw2*)
6658 symcode='[DT]'
6659 ;;
6660 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6661 symcode='[ABDT]'
6662 ;;
6663 sysv4)
6664 symcode='[DFNSTU]'
6665 ;;
6666 esac
6667
6668 # If we're using GNU nm, then use its standard symbol codes.
6669 case `$NM -V 2>&1` in
6670 *GNU* | *'with BFD'*)
6671 symcode='[ABCDGIRSTW]' ;;
6672 esac
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.
6677 lt_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
6680 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6681 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6682
6683 # Handle CRLF in mingw tool chain
6684 opt_cr=
6685 case $build_os in
6686 mingw*)
6687 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6688 ;;
6689 esac
6690
6691 # Try without a prefix underscore, then with it.
6692 for 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};"\
6705 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
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
6716 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6717 fi
6718 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
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
6726 extern "C" {
6727 #endif
6728 char nm_test_var;
6729 void nm_test_func(void);
6730 void nm_test_func(void){}
6731 #ifdef __cplusplus
6732 }
6733 #endif
6734 int main(){nm_test_var='a';nm_test_func();return(0);}
6735 _LT_EOF
6736
6737 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6738 (eval $ac_compile) 2>&5
6739 ac_status=$?
6740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6741 test $ac_status = 0; }; then
6742 # Now try to grab the symbols.
6743 nlist=conftest.nm
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
6746 ac_status=$?
6747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6748 test $ac_status = 0; } && test -s "$nlist"; then
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
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
6772 #ifdef __cplusplus
6773 extern "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. */
6783 LT_DLSYM_CONST struct {
6784 const char *name;
6785 void *address;
6786 }
6787 lt__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
6798 static 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
6809 lt_globsym_save_LIBS=$LIBS
6810 lt_globsym_save_CFLAGS=$CFLAGS
6811 LIBS="conftstm.$ac_objext"
6812 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6814 (eval $ac_link) 2>&5
6815 ac_status=$?
6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6817 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6818 pipe_works=yes
6819 fi
6820 LIBS=$lt_globsym_save_LIBS
6821 CFLAGS=$lt_globsym_save_CFLAGS
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
6835 rm -rf conftest* conftst*
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
6843 done
6844
6845 fi
6846
6847 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6848 lt_cv_sys_global_symbol_to_cdecl=
6849 fi
6850 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6852 $as_echo "failed" >&6; }
6853 else
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6855 $as_echo "ok" >&6; }
6856 fi
6857
6858 # Response file support.
6859 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6860 nm_file_list_spec='@'
6861 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6862 nm_file_list_spec='@'
6863 fi
6864
6865
6866
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
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.
6895 if test "${with_sysroot+set}" = set; then :
6896 withval=$with_sysroot;
6897 else
6898 with_sysroot=no
6899 fi
6900
6901
6902 lt_sysroot=
6903 case ${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 ;;
6919 esac
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
6928 # Check whether --enable-libtool-lock was given.
6929 if test "${enable_libtool_lock+set}" = set; then :
6930 enableval=$enable_libtool_lock;
6931 fi
6932
6933 test "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.
6937 case $host in
6938 ia64-*-hpux*)
6939 # Find out which ABI we are using.
6940 echo 'int i;' > conftest.$ac_ext
6941 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6942 (eval $ac_compile) 2>&5
6943 ac_status=$?
6944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6945 test $ac_status = 0; }; then
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.
6959 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6960 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6961 (eval $ac_compile) 2>&5
6962 ac_status=$?
6963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6964 test $ac_status = 0; }; then
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
6994 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
6995 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6996 # Find out which ABI we are using.
6997 echo 'int i;' > conftest.$ac_ext
6998 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6999 (eval $ac_compile) 2>&5
7000 ac_status=$?
7001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7002 test $ac_status = 0; }; then
7003 case `/usr/bin/file conftest.o` in
7004 *32-bit*)
7005 case $host in
7006 x86_64-*kfreebsd*-gnu)
7007 LD="${LD-ld} -m elf_i386_fbsd"
7008 ;;
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
7025 x86_64-*kfreebsd*-gnu)
7026 LD="${LD-ld} -m elf_x86_64_fbsd"
7027 ;;
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"
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; }
7053 if ${lt_cv_cc_needs_belf+:} false; then :
7054 $as_echo_n "(cached) " >&6
7055 else
7056 ac_ext=c
7057 ac_cpp='$CPP $CPPFLAGS'
7058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7061
7062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7063 /* end confdefs.h. */
7064
7065 int
7066 main ()
7067 {
7068
7069 ;
7070 return 0;
7071 }
7072 _ACEOF
7073 if ac_fn_c_try_link "$LINENO"; then :
7074 lt_cv_cc_needs_belf=yes
7075 else
7076 lt_cv_cc_needs_belf=no
7077 fi
7078 rm -f core conftest.err conftest.$ac_objext \
7079 conftest$ac_exeext conftest.$ac_ext
7080 ac_ext=c
7081 ac_cpp='$CPP $CPPFLAGS'
7082 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7083 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7084 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7085
7086 fi
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7088 $as_echo "$lt_cv_cc_needs_belf" >&6; }
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 ;;
7094 *-*solaris*)
7095 # Find out which ABI we are using.
7096 echo 'int i;' > conftest.$ac_ext
7097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7098 (eval $ac_compile) 2>&5
7099 ac_status=$?
7100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7101 test $ac_status = 0; }; then
7102 case `/usr/bin/file conftest.o` in
7103 *64-bit*)
7104 case $lt_cv_prog_gnu_ld in
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 ;;
7124 esac
7125 ;;
7126 esac
7127 fi
7128 rm -rf conftest*
7129 ;;
7130 esac
7131
7132 need_locks="$enable_libtool_lock"
7133
7134 if 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.
7136 set 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; }
7139 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 if test -n "$MANIFEST_TOOL"; then
7143 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
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
7156 done
7157 done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
7163 if test -n "$MANIFEST_TOOL"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
7165 $as_echo "$MANIFEST_TOOL" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171
7172 fi
7173 if 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.
7176 set 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; }
7179 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
7180 $as_echo_n "(cached) " >&6
7181 else
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.
7184 else
7185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7186 for as_dir in $PATH
7187 do
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
7196 done
7197 done
7198 IFS=$as_save_IFS
7199
7200 fi
7201 fi
7202 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
7203 if 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; }
7206 else
7207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }
7209 fi
7210
7211 if test "x$ac_ct_MANIFEST_TOOL" = x; then
7212 MANIFEST_TOOL=":"
7213 else
7214 case $cross_compiling:$ac_tool_warned in
7215 yes:)
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;}
7218 ac_tool_warned=yes ;;
7219 esac
7220 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7221 fi
7222 else
7223 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7224 fi
7225
7226 test -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; }
7229 if ${lt_cv_path_mainfest_tool+:} false; then :
7230 $as_echo_n "(cached) " >&6
7231 else
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*
7240 fi
7241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7242 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7243 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7244 MANIFEST_TOOL=:
7245 fi
7246
7247
7248
7249
7250
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.
7256 set 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; }
7259 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7260 $as_echo_n "(cached) " >&6
7261 else
7262 if test -n "$DSYMUTIL"; then
7263 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7264 else
7265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7266 for as_dir in $PATH
7267 do
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
7276 done
7277 done
7278 IFS=$as_save_IFS
7279
7280 fi
7281 fi
7282 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7283 if test -n "$DSYMUTIL"; then
7284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7285 $as_echo "$DSYMUTIL" >&6; }
7286 else
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7288 $as_echo "no" >&6; }
7289 fi
7290
7291
7292 fi
7293 if 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.
7296 set 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; }
7299 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7300 $as_echo_n "(cached) " >&6
7301 else
7302 if test -n "$ac_ct_DSYMUTIL"; then
7303 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7304 else
7305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7306 for as_dir in $PATH
7307 do
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
7316 done
7317 done
7318 IFS=$as_save_IFS
7319
7320 fi
7321 fi
7322 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7323 if 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; }
7326 else
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7328 $as_echo "no" >&6; }
7329 fi
7330
7331 if test "x$ac_ct_DSYMUTIL" = x; then
7332 DSYMUTIL=":"
7333 else
7334 case $cross_compiling:$ac_tool_warned in
7335 yes:)
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;}
7338 ac_tool_warned=yes ;;
7339 esac
7340 DSYMUTIL=$ac_ct_DSYMUTIL
7341 fi
7342 else
7343 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7344 fi
7345
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.
7348 set 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; }
7351 if ${ac_cv_prog_NMEDIT+:} false; then :
7352 $as_echo_n "(cached) " >&6
7353 else
7354 if test -n "$NMEDIT"; then
7355 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7356 else
7357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7358 for as_dir in $PATH
7359 do
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
7368 done
7369 done
7370 IFS=$as_save_IFS
7371
7372 fi
7373 fi
7374 NMEDIT=$ac_cv_prog_NMEDIT
7375 if test -n "$NMEDIT"; then
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7377 $as_echo "$NMEDIT" >&6; }
7378 else
7379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }
7381 fi
7382
7383
7384 fi
7385 if 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.
7388 set 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; }
7391 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7392 $as_echo_n "(cached) " >&6
7393 else
7394 if test -n "$ac_ct_NMEDIT"; then
7395 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7396 else
7397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7398 for as_dir in $PATH
7399 do
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
7408 done
7409 done
7410 IFS=$as_save_IFS
7411
7412 fi
7413 fi
7414 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7415 if 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; }
7418 else
7419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7420 $as_echo "no" >&6; }
7421 fi
7422
7423 if test "x$ac_ct_NMEDIT" = x; then
7424 NMEDIT=":"
7425 else
7426 case $cross_compiling:$ac_tool_warned in
7427 yes:)
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;}
7430 ac_tool_warned=yes ;;
7431 esac
7432 NMEDIT=$ac_ct_NMEDIT
7433 fi
7434 else
7435 NMEDIT="$ac_cv_prog_NMEDIT"
7436 fi
7437
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.
7440 set 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; }
7443 if ${ac_cv_prog_LIPO+:} false; then :
7444 $as_echo_n "(cached) " >&6
7445 else
7446 if test -n "$LIPO"; then
7447 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7448 else
7449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7450 for as_dir in $PATH
7451 do
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
7460 done
7461 done
7462 IFS=$as_save_IFS
7463
7464 fi
7465 fi
7466 LIPO=$ac_cv_prog_LIPO
7467 if test -n "$LIPO"; then
7468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7469 $as_echo "$LIPO" >&6; }
7470 else
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }
7473 fi
7474
7475
7476 fi
7477 if 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.
7480 set 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; }
7483 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 if test -n "$ac_ct_LIPO"; then
7487 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7491 do
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
7500 done
7501 done
7502 IFS=$as_save_IFS
7503
7504 fi
7505 fi
7506 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7507 if 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; }
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7513 fi
7514
7515 if test "x$ac_ct_LIPO" = x; then
7516 LIPO=":"
7517 else
7518 case $cross_compiling:$ac_tool_warned in
7519 yes:)
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;}
7522 ac_tool_warned=yes ;;
7523 esac
7524 LIPO=$ac_ct_LIPO
7525 fi
7526 else
7527 LIPO="$ac_cv_prog_LIPO"
7528 fi
7529
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.
7532 set 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; }
7535 if ${ac_cv_prog_OTOOL+:} false; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$OTOOL"; then
7539 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7543 do
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
7552 done
7553 done
7554 IFS=$as_save_IFS
7555
7556 fi
7557 fi
7558 OTOOL=$ac_cv_prog_OTOOL
7559 if test -n "$OTOOL"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7561 $as_echo "$OTOOL" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7565 fi
7566
7567
7568 fi
7569 if 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.
7572 set 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; }
7575 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7576 $as_echo_n "(cached) " >&6
7577 else
7578 if test -n "$ac_ct_OTOOL"; then
7579 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7580 else
7581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
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
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596 fi
7597 fi
7598 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7599 if 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; }
7602 else
7603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7604 $as_echo "no" >&6; }
7605 fi
7606
7607 if test "x$ac_ct_OTOOL" = x; then
7608 OTOOL=":"
7609 else
7610 case $cross_compiling:$ac_tool_warned in
7611 yes:)
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;}
7614 ac_tool_warned=yes ;;
7615 esac
7616 OTOOL=$ac_ct_OTOOL
7617 fi
7618 else
7619 OTOOL="$ac_cv_prog_OTOOL"
7620 fi
7621
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.
7624 set 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; }
7627 if ${ac_cv_prog_OTOOL64+:} false; then :
7628 $as_echo_n "(cached) " >&6
7629 else
7630 if test -n "$OTOOL64"; then
7631 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7632 else
7633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7634 for as_dir in $PATH
7635 do
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
7644 done
7645 done
7646 IFS=$as_save_IFS
7647
7648 fi
7649 fi
7650 OTOOL64=$ac_cv_prog_OTOOL64
7651 if test -n "$OTOOL64"; then
7652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7653 $as_echo "$OTOOL64" >&6; }
7654 else
7655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7656 $as_echo "no" >&6; }
7657 fi
7658
7659
7660 fi
7661 if 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.
7664 set 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; }
7667 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7668 $as_echo_n "(cached) " >&6
7669 else
7670 if test -n "$ac_ct_OTOOL64"; then
7671 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7672 else
7673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 for as_dir in $PATH
7675 do
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
7684 done
7685 done
7686 IFS=$as_save_IFS
7687
7688 fi
7689 fi
7690 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7691 if 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; }
7694 else
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7696 $as_echo "no" >&6; }
7697 fi
7698
7699 if test "x$ac_ct_OTOOL64" = x; then
7700 OTOOL64=":"
7701 else
7702 case $cross_compiling:$ac_tool_warned in
7703 yes:)
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;}
7706 ac_tool_warned=yes ;;
7707 esac
7708 OTOOL64=$ac_ct_OTOOL64
7709 fi
7710 else
7711 OTOOL64="$ac_cv_prog_OTOOL64"
7712 fi
7713
7714
7715
7716
7717
7718
7719
7720
7721
7722
7723
7724
7725
7726
7727
7728
7729
7730
7731
7732
7733
7734
7735
7736
7737
7738
7739
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; }
7742 if ${lt_cv_apple_cc_single_mod+:} false; then :
7743 $as_echo_n "(cached) " >&6
7744 else
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
7772 fi
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; }
7775
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; }
7778 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7779 $as_echo_n "(cached) " >&6
7780 else
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. */
7787
7788 int
7789 main ()
7790 {
7791
7792 ;
7793 return 0;
7794 }
7795 _ACEOF
7796 if ac_fn_c_try_link "$LINENO"; then :
7797 lt_cv_ld_exported_symbols_list=yes
7798 else
7799 lt_cv_ld_exported_symbols_list=no
7800 fi
7801 rm -f core conftest.err conftest.$ac_objext \
7802 conftest$ac_exeext conftest.$ac_ext
7803 LDFLAGS="$save_LDFLAGS"
7804
7805 fi
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; }
7808
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; }
7811 if ${lt_cv_ld_force_load+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 lt_cv_ld_force_load=no
7815 cat > conftest.c << _LT_EOF
7816 int 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
7825 int 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
7839
7840 fi
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
7877
7878 ac_ext=c
7879 ac_cpp='$CPP $CPPFLAGS'
7880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7882 ac_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.
7886 if test -n "$CPP" && test -d "$CPP"; then
7887 CPP=
7888 fi
7889 if test -z "$CPP"; then
7890 if ${ac_cv_prog_CPP+:} false; then :
7891 $as_echo_n "(cached) " >&6
7892 else
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
7897 for ac_c_preproc_warn_flag in '' yes
7898 do
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
7914 if ac_fn_c_try_cpp "$LINENO"; then :
7915
7916 else
7917 # Broken: fails on valid input.
7918 continue
7919 fi
7920 rm -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
7928 if ac_fn_c_try_cpp "$LINENO"; then :
7929 # Broken: success on invalid input.
7930 continue
7931 else
7932 # Passes both tests.
7933 ac_preproc_ok=:
7934 break
7935 fi
7936 rm -f conftest.err conftest.i conftest.$ac_ext
7937
7938 done
7939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7940 rm -f conftest.i conftest.err conftest.$ac_ext
7941 if $ac_preproc_ok; then :
7942 break
7943 fi
7944
7945 done
7946 ac_cv_prog_CPP=$CPP
7947
7948 fi
7949 CPP=$ac_cv_prog_CPP
7950 else
7951 ac_cv_prog_CPP=$CPP
7952 fi
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7954 $as_echo "$CPP" >&6; }
7955 ac_preproc_ok=false
7956 for ac_c_preproc_warn_flag in '' yes
7957 do
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
7973 if ac_fn_c_try_cpp "$LINENO"; then :
7974
7975 else
7976 # Broken: fails on valid input.
7977 continue
7978 fi
7979 rm -f conftest.err conftest.i conftest.$ac_ext
7980
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>
7986 _ACEOF
7987 if ac_fn_c_try_cpp "$LINENO"; then :
7988 # Broken: success on invalid input.
7989 continue
7990 else
7991 # Passes both tests.
7992 ac_preproc_ok=:
7993 break
7994 fi
7995 rm -f conftest.err conftest.i conftest.$ac_ext
7996
7997 done
7998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7999 rm -f conftest.i conftest.err conftest.$ac_ext
8000 if $ac_preproc_ok; then :
8001
8002 else
8003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8004 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8005 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
8006 See \`config.log' for more details" "$LINENO" 5; }
8007 fi
8008
8009 ac_ext=c
8010 ac_cpp='$CPP $CPPFLAGS'
8011 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8012 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8013 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8014
8015
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; }
8018 if ${ac_cv_header_stdc+:} false; then :
8019 $as_echo_n "(cached) " >&6
8020 else
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>
8027
8028 int
8029 main ()
8030 {
8031
8032 ;
8033 return 0;
8034 }
8035 _ACEOF
8036 if ac_fn_c_try_compile "$LINENO"; then :
8037 ac_cv_header_stdc=yes
8038 else
8039 ac_cv_header_stdc=no
8040 fi
8041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8042
8043 if 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>
8048
8049 _ACEOF
8050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8051 $EGREP "memchr" >/dev/null 2>&1; then :
8052
8053 else
8054 ac_cv_header_stdc=no
8055 fi
8056 rm -f conftest*
8057
8058 fi
8059
8060 if 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>
8065
8066 _ACEOF
8067 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8068 $EGREP "free" >/dev/null 2>&1; then :
8069
8070 else
8071 ac_cv_header_stdc=no
8072 fi
8073 rm -f conftest*
8074
8075 fi
8076
8077 if 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 :
8081 else
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
8096
8097 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
8098 int
8099 main ()
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
8109 if ac_fn_c_try_run "$LINENO"; then :
8110
8111 else
8112 ac_cv_header_stdc=no
8113 fi
8114 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8115 conftest.$ac_objext conftest.beam conftest.$ac_ext
8116 fi
8117
8118 fi
8119 fi
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
8121 $as_echo "$ac_cv_header_stdc" >&6; }
8122 if test $ac_cv_header_stdc = yes; then
8123
8124 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
8125
8126 fi
8127
8128 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
8129 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
8130 inttypes.h stdint.h unistd.h
8131 do :
8132 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8133 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
8134 "
8135 if 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
8139
8140 fi
8141
8142 done
8143
8144
8145 for ac_header in dlfcn.h
8146 do :
8147 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8148 "
8149 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
8150 cat >>confdefs.h <<_ACEOF
8151 #define HAVE_DLFCN_H 1
8152 _ACEOF
8153
8154 fi
8155
8156 done
8157
8158
8159
8160
8161
8162 # Set options
8163 enable_win32_dll=yes
8164
8165 case $host in
8166 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
8167 if test -n "$ac_tool_prefix"; then
8168 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
8169 set 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; }
8172 if ${ac_cv_prog_AS+:} false; then :
8173 $as_echo_n "(cached) " >&6
8174 else
8175 if test -n "$AS"; then
8176 ac_cv_prog_AS="$AS" # Let the user override the test.
8177 else
8178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
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
8189 done
8190 done
8191 IFS=$as_save_IFS
8192
8193 fi
8194 fi
8195 AS=$ac_cv_prog_AS
8196 if test -n "$AS"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
8198 $as_echo "$AS" >&6; }
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8202 fi
8203
8204
8205 fi
8206 if 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.
8209 set 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; }
8212 if ${ac_cv_prog_ac_ct_AS+:} false; then :
8213 $as_echo_n "(cached) " >&6
8214 else
8215 if test -n "$ac_ct_AS"; then
8216 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
8217 else
8218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
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
8228 fi
8229 done
8230 done
8231 IFS=$as_save_IFS
8232
8233 fi
8234 fi
8235 ac_ct_AS=$ac_cv_prog_ac_ct_AS
8236 if 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; }
8239 else
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }
8242 fi
8243
8244 if test "x$ac_ct_AS" = x; then
8245 AS="false"
8246 else
8247 case $cross_compiling:$ac_tool_warned in
8248 yes:)
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;}
8251 ac_tool_warned=yes ;;
8252 esac
8253 AS=$ac_ct_AS
8254 fi
8255 else
8256 AS="$ac_cv_prog_AS"
8257 fi
8258
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.
8261 set 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; }
8264 if ${ac_cv_prog_DLLTOOL+:} false; then :
8265 $as_echo_n "(cached) " >&6
8266 else
8267 if test -n "$DLLTOOL"; then
8268 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8269 else
8270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8271 for as_dir in $PATH
8272 do
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
8281 done
8282 done
8283 IFS=$as_save_IFS
8284
8285 fi
8286 fi
8287 DLLTOOL=$ac_cv_prog_DLLTOOL
8288 if test -n "$DLLTOOL"; then
8289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8290 $as_echo "$DLLTOOL" >&6; }
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 fi
8295
8296
8297 fi
8298 if 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.
8301 set 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; }
8304 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
8305 $as_echo_n "(cached) " >&6
8306 else
8307 if test -n "$ac_ct_DLLTOOL"; then
8308 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
8309 else
8310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8311 for as_dir in $PATH
8312 do
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
8321 done
8322 done
8323 IFS=$as_save_IFS
8324
8325 fi
8326 fi
8327 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
8328 if 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; }
8331 else
8332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8333 $as_echo "no" >&6; }
8334 fi
8335
8336 if test "x$ac_ct_DLLTOOL" = x; then
8337 DLLTOOL="false"
8338 else
8339 case $cross_compiling:$ac_tool_warned in
8340 yes:)
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;}
8343 ac_tool_warned=yes ;;
8344 esac
8345 DLLTOOL=$ac_ct_DLLTOOL
8346 fi
8347 else
8348 DLLTOOL="$ac_cv_prog_DLLTOOL"
8349 fi
8350
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.
8353 set 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; }
8356 if ${ac_cv_prog_OBJDUMP+:} false; then :
8357 $as_echo_n "(cached) " >&6
8358 else
8359 if test -n "$OBJDUMP"; then
8360 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8361 else
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8364 do
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
8373 done
8374 done
8375 IFS=$as_save_IFS
8376
8377 fi
8378 fi
8379 OBJDUMP=$ac_cv_prog_OBJDUMP
8380 if test -n "$OBJDUMP"; then
8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8382 $as_echo "$OBJDUMP" >&6; }
8383 else
8384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8385 $as_echo "no" >&6; }
8386 fi
8387
8388
8389 fi
8390 if 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.
8393 set 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; }
8396 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8397 $as_echo_n "(cached) " >&6
8398 else
8399 if test -n "$ac_ct_OBJDUMP"; then
8400 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8401 else
8402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8403 for as_dir in $PATH
8404 do
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
8413 done
8414 done
8415 IFS=$as_save_IFS
8416
8417 fi
8418 fi
8419 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8420 if 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; }
8423 else
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8425 $as_echo "no" >&6; }
8426 fi
8427
8428 if test "x$ac_ct_OBJDUMP" = x; then
8429 OBJDUMP="false"
8430 else
8431 case $cross_compiling:$ac_tool_warned in
8432 yes:)
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;}
8435 ac_tool_warned=yes ;;
8436 esac
8437 OBJDUMP=$ac_ct_OBJDUMP
8438 fi
8439 else
8440 OBJDUMP="$ac_cv_prog_OBJDUMP"
8441 fi
8442
8443 ;;
8444 esac
8445
8446 test -z "$AS" && AS=as
8447
8448
8449
8450
8451
8452 test -z "$DLLTOOL" && DLLTOOL=dlltool
8453
8454
8455
8456
8457
8458 test -z "$OBJDUMP" && OBJDUMP=objdump
8459
8460
8461
8462
8463
8464
8465
8466 enable_dlopen=no
8467
8468
8469
8470 # Check whether --enable-shared was given.
8471 if 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"
8487 ;;
8488 esac
8489 else
8490 enable_shared=yes
8491 fi
8492
8493
8494
8495
8496
8497
8498
8499
8500
8501 # Check whether --enable-static was given.
8502 if 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 ;;
8507 *)
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"
8518 ;;
8519 esac
8520 else
8521 enable_static=yes
8522 fi
8523
8524
8525
8526
8527
8528
8529
8530
8531
8532
8533 # Check whether --with-pic was given.
8534 if 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"
8549 ;;
8550 esac
8551 else
8552 pic_mode=default
8553 fi
8554
8555
8556 test -z "$pic_mode" && pic_mode=default
8557
8558
8559
8560
8561
8562
8563
8564 # Check whether --enable-fast-install was given.
8565 if 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 ;;
8570 *)
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"
8581 ;;
8582 esac
8583 else
8584 enable_fast_install=yes
8585 fi
8586
8587
8588
8589
8590
8591
8592
8593
8594
8595
8596
8597 # This can be used to rebuild libtool when needed
8598 LIBTOOL_DEPS="$ltmain"
8599
8600 # Always use our own libtool.
8601 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8602
8603
8604
8605
8606
8607
8608
8609
8610
8611
8612
8613
8614
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632 test -z "$LN_S" && LN_S="ln -s"
8633
8634
8635
8636
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647 if test -n "${ZSH_VERSION+set}" ; then
8648 setopt NO_GLOB_SUBST
8649 fi
8650
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8652 $as_echo_n "checking for objdir... " >&6; }
8653 if ${lt_cv_objdir+:} false; then :
8654 $as_echo_n "(cached) " >&6
8655 else
8656 rm -f .libs 2>/dev/null
8657 mkdir .libs 2>/dev/null
8658 if test -d .libs; then
8659 lt_cv_objdir=.libs
8660 else
8661 # MS-DOS does not allow filenames that begin with a dot.
8662 lt_cv_objdir=_libs
8663 fi
8664 rmdir .libs 2>/dev/null
8665 fi
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8667 $as_echo "$lt_cv_objdir" >&6; }
8668 objdir=$lt_cv_objdir
8669
8670
8671
8672
8673
8674 cat >>confdefs.h <<_ACEOF
8675 #define LT_OBJDIR "$lt_cv_objdir/"
8676 _ACEOF
8677
8678
8679
8680
8681 case $host_os in
8682 aix3*)
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 ;;
8691 esac
8692
8693 # Global variables:
8694 ofile=libtool
8695 can_build_shared=yes
8696
8697 # All known linkers require a `.a' archive for static linking (except MSVC,
8698 # which needs '.lib').
8699 libext=a
8700
8701 with_gnu_ld="$lt_cv_prog_gnu_ld"
8702
8703 old_CC="$CC"
8704 old_CFLAGS="$CFLAGS"
8705
8706 # Set sane defaults for various variables
8707 test -z "$CC" && CC=cc
8708 test -z "$LTCC" && LTCC=$CC
8709 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8710 test -z "$LD" && LD=ld
8711 test -z "$ac_objext" && ac_objext=o
8712
8713 for 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
8720 done
8721 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8722
8723
8724 # Only perform the check for file, if the check method requires it
8725 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8726 case $deplibs_check_method in
8727 file_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; }
8731 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
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 :
8755 else
8756 cat <<_LT_EOF 1>&2
8757
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
8766
8767 _LT_EOF
8768 fi ;;
8769 esac
8770 fi
8771 break
8772 fi
8773 done
8774 IFS="$lt_save_ifs"
8775 MAGIC_CMD="$lt_save_MAGIC_CMD"
8776 ;;
8777 esac
8778 fi
8779
8780 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8781 if test -n "$MAGIC_CMD"; then
8782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8783 $as_echo "$MAGIC_CMD" >&6; }
8784 else
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8786 $as_echo "no" >&6; }
8787 fi
8788
8789
8790
8791
8792
8793 if 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; }
8797 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8798 $as_echo_n "(cached) " >&6
8799 else
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 :
8821 else
8822 cat <<_LT_EOF 1>&2
8823
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
8832
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 ;;
8843 esac
8844 fi
8845
8846 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8847 if test -n "$MAGIC_CMD"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8849 $as_echo "$MAGIC_CMD" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8853 fi
8854
8855
8856 else
8857 MAGIC_CMD=:
8858 fi
8859 fi
8860
8861 fi
8862 ;;
8863 esac
8864
8865 # Use C for the default configuration in the libtool script
8866
8867 lt_save_CC="$CC"
8868 ac_ext=c
8869 ac_cpp='$CPP $CPPFLAGS'
8870 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8871 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8872 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8873
8874
8875 # Source file extension for C test sources.
8876 ac_ext=c
8877
8878 # Object file extension for compiled C test sources.
8879 objext=o
8880 objext=$objext
8881
8882 # Code to be used in simple compile tests
8883 lt_simple_compile_test_code="int some_variable = 0;"
8884
8885 # Code to be used in simple link tests
8886 lt_simple_link_test_code='int main(){return(0);}'
8887
8888
8889
8890
8891
8892
8893
8894 # If no C compiler was specified, use CC.
8895 LTCC=${LTCC-"$CC"}
8896
8897 # If no C compiler flags were specified, use CFLAGS.
8898 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8899
8900 # Allow CC to be a program name with arguments.
8901 compiler=$CC
8902
8903 # Save the default compiler, since it gets overwritten when the other
8904 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8905 compiler_DEFAULT=$CC
8906
8907 # save warnings/boilerplate of simple test code
8908 ac_outfile=conftest.$ac_objext
8909 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8910 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8911 _lt_compiler_boilerplate=`cat conftest.err`
8912 $RM conftest*
8913
8914 ac_outfile=conftest.$ac_objext
8915 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8916 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8917 _lt_linker_boilerplate=`cat conftest.err`
8918 $RM -r conftest*
8919
8920
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...
8925 if test -n "$compiler"; then
8926
8927 lt_prog_compiler_no_builtin_flag=
8928
8929 if 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
8936
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; }
8939 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
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*
8970
8971 fi
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; }
8974
8975 if 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"
8977 else
8978 :
8979 fi
8980
8981 fi
8982
8983
8984
8985
8986
8987
8988 lt_prog_compiler_wl=
8989 lt_prog_compiler_pic=
8990 lt_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'
9003 fi
9004 ;;
9005
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
9019 ;;
9020
9021 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9022 # PIC is the default for these OSes.
9023 ;;
9024
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'
9031 ;;
9032
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'
9037 ;;
9038
9039 haiku*)
9040 # PIC is the default for Haiku.
9041 # The "-static" flag exists, but is broken.
9042 lt_prog_compiler_static=
9043 ;;
9044
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
9052 ;;
9053 *)
9054 lt_prog_compiler_pic='-fPIC'
9055 ;;
9056 esac
9057 ;;
9058
9059 interix[3-9]*)
9060 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9061 # Instead, we relocate shared libraries at runtime.
9062 ;;
9063
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
9080 fi
9081 ;;
9082
9083 *)
9084 lt_prog_compiler_pic='-fPIC'
9085 ;;
9086 esac
9087
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'
9104 else
9105 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9106 fi
9107 ;;
9108
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 ;;
9114
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'
9264 fi
9265 ;;
9266
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
9278 uts4*)
9279 lt_prog_compiler_pic='-pic'
9280 lt_prog_compiler_static='-Bstatic'
9281 ;;
9282
9283 *)
9284 lt_prog_compiler_can_build_shared=no
9285 ;;
9286 esac
9287 fi
9288
9289 case $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 ;;
9297 esac
9298
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; }
9301 if ${lt_cv_prog_compiler_pic+:} false; then :
9302 $as_echo_n "(cached) " >&6
9303 else
9304 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
9305 fi
9306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
9307 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
9308 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
9309
9310 #
9311 # Check to make sure the PIC flag actually works.
9312 #
9313 if 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; }
9316 if ${lt_cv_prog_compiler_pic_works+:} false; then :
9317 $as_echo_n "(cached) " >&6
9318 else
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*
9347
9348 fi
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; }
9351
9352 if 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
9357 else
9358 lt_prog_compiler_pic=
9359 lt_prog_compiler_can_build_shared=no
9360 fi
9361
9362 fi
9363
9364
9365
9366
9367
9368
9369
9370
9371
9372
9373
9374 #
9375 # Check to make sure the static flag actually works.
9376 #
9377 wl=$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; }
9380 if ${lt_cv_prog_compiler_static_works+:} false; then :
9381 $as_echo_n "(cached) " >&6
9382 else
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"
9404
9405 fi
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; }
9408
9409 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9410 :
9411 else
9412 lt_prog_compiler_static=
9413 fi
9414
9415
9416
9417
9418
9419
9420
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; }
9423 if ${lt_cv_prog_compiler_c_o+:} false; then :
9424 $as_echo_n "(cached) " >&6
9425 else
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
9432
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*
9466
9467 fi
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; }
9470
9471
9472
9473
9474
9475
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; }
9478 if ${lt_cv_prog_compiler_c_o+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
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
9487
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*
9521
9522 fi
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; }
9525
9526
9527
9528
9529 hard_links="nottested"
9530 if 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
9547 else
9548 need_locks=no
9549 fi
9550
9551
9552
9553
9554
9555
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; }
9558
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=
9598
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
9616
9617 ld_shlibs=yes
9618
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
9643
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}'
9647
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
9669
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
9677
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.
9684
9685 _LT_EOF
9686 fi
9687 ;;
9688
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 ;;
9703
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 ;;
9714
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'
9725
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 ;;
9741
9742 haiku*)
9743 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9744 link_all_deplibs=yes
9745 ;;
9746
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 ;;
9761
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'
9809
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
9816
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 ;;
9835
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 ;;
9845
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
9850
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.
9857
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 ;;
9866
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
9872
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.
9879
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 ;;
9897
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 ;;
9904
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
9914
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 ;;
9937
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
9956
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
9969
9970 exp_sym_flag='-bexport'
9971 no_entry_flag='-bnoentry'
9972 fi
9973
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.
9979
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,'
9986
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
10027
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
10040 else
10041 if ${lt_cv_aix_libpath_+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10045 /* end confdefs.h. */
10046
10047 int
10048 main ()
10049 {
10050
10051 ;
10052 return 0;
10053 }
10054 _ACEOF
10055 if ac_fn_c_try_link "$LINENO"; then :
10056
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
10069 fi
10070 rm -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
10075
10076 fi
10077
10078 aix_libpath=$lt_cv_aix_libpath_
10079 fi
10080
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
10093 else
10094 if ${lt_cv_aix_libpath_+:} false; then :
10095 $as_echo_n "(cached) " >&6
10096 else
10097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10098 /* end confdefs.h. */
10099
10100 int
10101 main ()
10102 {
10103
10104 ;
10105 return 0;
10106 }
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"; then :
10109
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
10122 fi
10123 rm -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
10128
10129 fi
10130
10131 aix_libpath=$lt_cv_aix_libpath_
10132 fi
10133
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 ;;
10152
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 ;;
10167
10168 bsdi[45]*)
10169 export_dynamic_flag_spec=-rdynamic
10170 ;;
10171
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 ;;
10236
10237 darwin* | rhapsody*)
10238
10239
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\"`'
10246
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}"
10262
10263 else
10264 ld_shlibs=no
10265 fi
10266
10267 ;;
10268
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 ;;
10274
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 ;;
10285
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 ;;
10293
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 ;;
10301
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
10311
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 ;;
10317
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 ;;
10335
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 *)
10358
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; }
10363 if ${lt_cv_prog_compiler__b+:} false; then :
10364 $as_echo_n "(cached) " >&6
10365 else
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"
10387
10388 fi
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10390 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10391
10392 if 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'
10394 else
10395 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10396 fi
10397
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=:
10404
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'
10414
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 ;;
10422
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; }
10432 if ${lt_cv_irix_exported_symbol+:} false; then :
10433 $as_echo_n "(cached) " >&6
10434 else
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. */
10439 int foo (void) { return 0; }
10440 _ACEOF
10441 if ac_fn_c_try_link "$LINENO"; then :
10442 lt_cv_irix_exported_symbol=yes
10443 else
10444 lt_cv_irix_exported_symbol=no
10445 fi
10446 rm -f core conftest.err conftest.$ac_objext \
10447 conftest$ac_exeext conftest.$ac_ext
10448 LDFLAGS="$save_LDFLAGS"
10449 fi
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 ;;
10465
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 ;;
10476
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 ;;
10484
10485 *nto* | *qnx*)
10486 ;;
10487
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 ;;
10514
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 ;;
10522
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 ;;
10535
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'
10546
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 ;;
10553
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 ;;
10595
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 ;;
10609
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 ;;
10631
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 ;;
10637
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 ;;
10647
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'
10653
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 ;;
10662
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'
10679
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 ;;
10688
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 ;;
10694
10695 *)
10696 ld_shlibs=no
10697 ;;
10698 esac
10699
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
10708
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10710 $as_echo "$ld_shlibs" >&6; }
10711 test "$ld_shlibs" = no && can_build_shared=no
10712
10713 with_gnu_ld=$with_gnu_ld
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728
10729 #
10730 # Do we need to explicitly link libc?
10731 #
10732 case "x$archive_cmds_need_lc" in
10733 x|xyes)
10734 # Assume -lc should be added
10735 archive_cmds_need_lc=yes
10736
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; }
10748 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10749 $as_echo_n "(cached) " >&6
10750 else
10751 $RM conftest*
10752 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10753
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*
10787
10788 fi
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
10792 ;;
10793 esac
10794 fi
10795 ;;
10796 esac
10797
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810
10811
10812
10813
10814
10815
10816
10817
10818
10819
10820
10821
10822
10823
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
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
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942
10943
10944
10945
10946
10947
10948
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10950 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10951
10952 if 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 '
10987 BEGIN {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`
11013 else
11014 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11015 fi
11016 library_names_spec=
11017 libname_spec='lib$name'
11018 soname_spec=
11019 shrext_cmds=".so"
11020 postinstall_cmds=
11021 postuninstall_cmds=
11022 finish_cmds=
11023 finish_eval=
11024 shlibpath_var=
11025 shlibpath_overrides_runpath=unknown
11026 version_type=none
11027 dynamic_linker="$host_os ld.so"
11028 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11029 need_lib_prefix=unknown
11030 hardcode_into_libs=no
11031
11032 # when you set need_version to no, make sure it does not cause -set_version
11033 # flags to be left without arguments
11034 need_version=unknown
11035
11036 case $host_os in
11037 aix3*)
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
11041
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 ;;
11045
11046 aix[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 ;;
11089
11090 amigaos*)
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 ;;
11104
11105 beos*)
11106 library_names_spec='${libname}${shared_ext}'
11107 dynamic_linker="$host_os ld.so"
11108 shlibpath_var=LIBRARY_PATH
11109 ;;
11110
11111 bsdi[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 ;;
11124
11125 cygwin* | mingw* | pw32* | cegcc*)
11126 version_type=windows
11127 shrext_cmds=".dll"
11128 need_version=no
11129 need_lib_prefix=no
11130
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
11149
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}'
11154
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 ;;
11168
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'
11174
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
11211
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 ;;
11224
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 ;;
11234
11235 darwin* | 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`'
11245
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 ;;
11249
11250 dgux*)
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 ;;
11258
11259 freebsd* | 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`
11264 else
11265 case $host_os in
11266 freebsd[23].*) objformat=aout ;;
11267 *) objformat=elf ;;
11268 esac
11269 fi
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 ;;
11302
11303 gnu*)
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 ;;
11313
11314 haiku*)
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 ;;
11326
11327 hpux9* | 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 ;;
11374
11375 interix[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 ;;
11386
11387 irix5* | 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 ;;
11423
11424 # No shared lib support for Linux oldld, aout, or coff.
11425 linux*oldld* | linux*aout* | linux*coff*)
11426 dynamic_linker=no
11427 ;;
11428
11429 # This must be glibc/ELF.
11430 linux* | 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
11439
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
11443 else
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. */
11451
11452 int
11453 main ()
11454 {
11455
11456 ;
11457 return 0;
11458 }
11459 _ACEOF
11460 if 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
11463 fi
11464 fi
11465 rm -f core conftest.err conftest.$ac_objext \
11466 conftest$ac_exeext conftest.$ac_ext
11467 LDFLAGS=$save_LDFLAGS
11468 libdir=$save_libdir
11469
11470 fi
11471
11472 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11473
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
11478
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
11484
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 ;;
11493
11494 netbsd*)
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'
11502 else
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'
11506 fi
11507 shlibpath_var=LD_LIBRARY_PATH
11508 shlibpath_overrides_runpath=yes
11509 hardcode_into_libs=yes
11510 ;;
11511
11512 newsos6)
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 ;;
11518
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 ;;
11530
11531 openbsd*)
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 ;;
11539 esac
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 ;;
11556
11557 os2*)
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 ;;
11565
11566 osf3* | 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 ;;
11576
11577 rdos*)
11578 dynamic_linker=no
11579 ;;
11580
11581 solaris*)
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 ;;
11593
11594 sunos4*)
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 ;;
11605
11606 sysv4 | 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 ;;
11628
11629 sysv4*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 ;;
11637
11638 sysv5* | 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 ;;
11659
11660 tpf*)
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 ;;
11670
11671 uts4*)
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 ;;
11677
11678 *)
11679 dynamic_linker=no
11680 ;;
11681 esac
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11683 $as_echo "$dynamic_linker" >&6; }
11684 test "$dynamic_linker" = no && can_build_shared=no
11685
11686 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11687 if test "$GCC" = yes; then
11688 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11689 fi
11690
11691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11692 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11693 fi
11694 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11695 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11696 fi
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709
11710
11711
11712
11713
11714
11715
11716
11717
11718
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734
11735
11736
11737
11738
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753
11754
11755
11756
11757
11758
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
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; }
11791 hardcode_action=
11792 if 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
11809 else
11810 # We cannot hardcode anything, or else we can only hardcode existing
11811 # directories.
11812 hardcode_action=unsupported
11813 fi
11814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11815 $as_echo "$hardcode_action" >&6; }
11816
11817 if test "$hardcode_action" = relink ||
11818 test "$inherit_rpath" = yes; then
11819 # Fast installation is not supported
11820 enable_fast_install=no
11821 elif test "$shlibpath_overrides_runpath" = yes ||
11822 test "$enable_shared" = no; then
11823 # Fast installation is not necessary
11824 enable_fast_install=needless
11825 fi
11826
11827
11828
11829
11830
11831
11832 if test "x$enable_dlopen" != xyes; then
11833 enable_dlopen=unknown
11834 enable_dlopen_self=unknown
11835 enable_dlopen_self_static=unknown
11836 else
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; }
11861 if ${ac_cv_lib_dl_dlopen+:} false; then :
11862 $as_echo_n "(cached) " >&6
11863 else
11864 ac_check_lib_save_LIBS=$LIBS
11865 LIBS="-ldl $LIBS"
11866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11867 /* end confdefs.h. */
11868
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
11873 extern "C"
11874 #endif
11875 char dlopen ();
11876 int
11877 main ()
11878 {
11879 return dlopen ();
11880 ;
11881 return 0;
11882 }
11883 _ACEOF
11884 if ac_fn_c_try_link "$LINENO"; then :
11885 ac_cv_lib_dl_dlopen=yes
11886 else
11887 ac_cv_lib_dl_dlopen=no
11888 fi
11889 rm -f core conftest.err conftest.$ac_objext \
11890 conftest$ac_exeext conftest.$ac_ext
11891 LIBS=$ac_check_lib_save_LIBS
11892 fi
11893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11894 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11895 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11896 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11897 else
11898
11899 lt_cv_dlopen="dyld"
11900 lt_cv_dlopen_libs=
11901 lt_cv_dlopen_self=yes
11902
11903 fi
11904
11905 ;;
11906
11907 *)
11908 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11909 if test "x$ac_cv_func_shl_load" = xyes; then :
11910 lt_cv_dlopen="shl_load"
11911 else
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; }
11914 if ${ac_cv_lib_dld_shl_load+:} false; then :
11915 $as_echo_n "(cached) " >&6
11916 else
11917 ac_check_lib_save_LIBS=$LIBS
11918 LIBS="-ldld $LIBS"
11919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11920 /* end confdefs.h. */
11921
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
11926 extern "C"
11927 #endif
11928 char shl_load ();
11929 int
11930 main ()
11931 {
11932 return shl_load ();
11933 ;
11934 return 0;
11935 }
11936 _ACEOF
11937 if ac_fn_c_try_link "$LINENO"; then :
11938 ac_cv_lib_dld_shl_load=yes
11939 else
11940 ac_cv_lib_dld_shl_load=no
11941 fi
11942 rm -f core conftest.err conftest.$ac_objext \
11943 conftest$ac_exeext conftest.$ac_ext
11944 LIBS=$ac_check_lib_save_LIBS
11945 fi
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; }
11948 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11949 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11950 else
11951 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11952 if test "x$ac_cv_func_dlopen" = xyes; then :
11953 lt_cv_dlopen="dlopen"
11954 else
11955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11956 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11957 if ${ac_cv_lib_dl_dlopen+:} false; then :
11958 $as_echo_n "(cached) " >&6
11959 else
11960 ac_check_lib_save_LIBS=$LIBS
11961 LIBS="-ldl $LIBS"
11962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11963 /* end confdefs.h. */
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
11969 extern "C"
11970 #endif
11971 char dlopen ();
11972 int
11973 main ()
11974 {
11975 return dlopen ();
11976 ;
11977 return 0;
11978 }
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 ac_cv_lib_dl_dlopen=yes
11982 else
11983 ac_cv_lib_dl_dlopen=no
11984 fi
11985 rm -f core conftest.err conftest.$ac_objext \
11986 conftest$ac_exeext conftest.$ac_ext
11987 LIBS=$ac_check_lib_save_LIBS
11988 fi
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11990 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11991 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11992 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11993 else
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11995 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11996 if ${ac_cv_lib_svld_dlopen+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 ac_check_lib_save_LIBS=$LIBS
12000 LIBS="-lsvld $LIBS"
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12003
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
12008 extern "C"
12009 #endif
12010 char dlopen ();
12011 int
12012 main ()
12013 {
12014 return dlopen ();
12015 ;
12016 return 0;
12017 }
12018 _ACEOF
12019 if ac_fn_c_try_link "$LINENO"; then :
12020 ac_cv_lib_svld_dlopen=yes
12021 else
12022 ac_cv_lib_svld_dlopen=no
12023 fi
12024 rm -f core conftest.err conftest.$ac_objext \
12025 conftest$ac_exeext conftest.$ac_ext
12026 LIBS=$ac_check_lib_save_LIBS
12027 fi
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12029 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12030 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12031 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12032 else
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; }
12035 if ${ac_cv_lib_dld_dld_link+:} false; then :
12036 $as_echo_n "(cached) " >&6
12037 else
12038 ac_check_lib_save_LIBS=$LIBS
12039 LIBS="-ldld $LIBS"
12040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12041 /* end confdefs.h. */
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
12047 extern "C"
12048 #endif
12049 char dld_link ();
12050 int
12051 main ()
12052 {
12053 return dld_link ();
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 if ac_fn_c_try_link "$LINENO"; then :
12059 ac_cv_lib_dld_dld_link=yes
12060 else
12061 ac_cv_lib_dld_dld_link=no
12062 fi
12063 rm -f core conftest.err conftest.$ac_objext \
12064 conftest$ac_exeext conftest.$ac_ext
12065 LIBS=$ac_check_lib_save_LIBS
12066 fi
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; }
12069 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12070 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12071 fi
12072
12073
12074 fi
12075
12076
12077 fi
12078
12079
12080 fi
12081
12082
12083 fi
12084
12085
12086 fi
12087
12088 ;;
12089 esac
12090
12091 if test "x$lt_cv_dlopen" != xno; then
12092 enable_dlopen=yes
12093 else
12094 enable_dlopen=no
12095 fi
12096
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"
12101
12102 save_LDFLAGS="$LDFLAGS"
12103 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12104
12105 save_LIBS="$LIBS"
12106 LIBS="$lt_cv_dlopen_libs $LIBS"
12107
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; }
12110 if ${lt_cv_dlopen_self+:} false; then :
12111 $as_echo_n "(cached) " >&6
12112 else
12113 if test "$cross_compiling" = yes; then :
12114 lt_cv_dlopen_self=cross
12115 else
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"
12121
12122 #if HAVE_DLFCN_H
12123 #include <dlfcn.h>
12124 #endif
12125
12126 #include <stdio.h>
12127
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
12136 #endif
12137
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
12158 #endif
12159
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))
12163 int fnord () __attribute__((visibility("default")));
12164 #endif
12165
12166 int fnord () { return 42; }
12167 int main ()
12168 {
12169 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12170 int status = $lt_dlunknown;
12171
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 ());
12184
12185 return status;
12186 }
12187 _LT_EOF
12188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12189 (eval $ac_link) 2>&5
12190 ac_status=$?
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
12203 fi
12204 fi
12205 rm -fr conftest*
12206
12207
12208 fi
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12210 $as_echo "$lt_cv_dlopen_self" >&6; }
12211
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; }
12216 if ${lt_cv_dlopen_self_static+:} false; then :
12217 $as_echo_n "(cached) " >&6
12218 else
12219 if test "$cross_compiling" = yes; then :
12220 lt_cv_dlopen_self_static=cross
12221 else
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"
12227
12228 #if HAVE_DLFCN_H
12229 #include <dlfcn.h>
12230 #endif
12231
12232 #include <stdio.h>
12233
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
12243
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
12265
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))
12269 int fnord () __attribute__((visibility("default")));
12270 #endif
12271
12272 int fnord () { return 42; }
12273 int main ()
12274 {
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;
12292 }
12293 _LT_EOF
12294 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12295 (eval $ac_link) 2>&5
12296 ac_status=$?
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
12310 fi
12311 rm -fr conftest*
12312
12313
12314 fi
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
12318
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
12329
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
12334 fi
12335
12336
12337
12338
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351
12352 striplib=
12353 old_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; }
12356 if 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; }
12361 else
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
12380 fi
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
12432
12433 fi
12434 ac_ext=c
12435 ac_cpp='$CPP $CPPFLAGS'
12436 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12437 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12438 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12439
12440 CC="$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
12464 ac_ext=cpp
12465 ac_cpp='$CXXCPP $CPPFLAGS'
12466 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12467 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12468 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12469 if 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.
12477 set 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; }
12480 if ${ac_cv_prog_CXX+:} false; then :
12481 $as_echo_n "(cached) " >&6
12482 else
12483 if test -n "$CXX"; then
12484 ac_cv_prog_CXX="$CXX" # Let the user override the test.
12485 else
12486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12487 for as_dir in $PATH
12488 do
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
12497 done
12498 done
12499 IFS=$as_save_IFS
12500
12501 fi
12502 fi
12503 CXX=$ac_cv_prog_CXX
12504 if test -n "$CXX"; then
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
12506 $as_echo "$CXX" >&6; }
12507 else
12508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12509 $as_echo "no" >&6; }
12510 fi
12511
12512
12513 test -n "$CXX" && break
12514 done
12515 fi
12516 if 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
12519 do
12520 # Extract the first word of "$ac_prog", so it can be a program name with args.
12521 set 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; }
12524 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 if test -n "$ac_ct_CXX"; then
12528 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
12529 else
12530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12531 for as_dir in $PATH
12532 do
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
12541 done
12542 done
12543 IFS=$as_save_IFS
12544
12545 fi
12546 fi
12547 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
12548 if 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; }
12551 else
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12553 $as_echo "no" >&6; }
12554 fi
12555
12556
12557 test -n "$ac_ct_CXX" && break
12558 done
12559
12560 if test "x$ac_ct_CXX" = x; then
12561 CXX="g++"
12562 else
12563 case $cross_compiling:$ac_tool_warned in
12564 yes:)
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;}
12567 ac_tool_warned=yes ;;
12568 esac
12569 CXX=$ac_ct_CXX
12570 fi
12571 fi
12572
12573 fi
12574 fi
12575 # Provide some information about the compiler.
12576 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
12577 set X $ac_compile
12578 ac_compiler=$2
12579 for ac_option in --version -v -V -qversion; do
12580 { { ac_try="$ac_compiler $ac_option >&5"
12581 case "(($ac_try" in
12582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12583 *) ac_try_echo=$ac_try;;
12584 esac
12585 eval 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; }
12598 done
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; }
12602 if ${ac_cv_cxx_compiler_gnu+:} false; then :
12603 $as_echo_n "(cached) " >&6
12604 else
12605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12606 /* end confdefs.h. */
12607
12608 int
12609 main ()
12610 {
12611 #ifndef __GNUC__
12612 choke me
12613 #endif
12614
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 if ac_fn_cxx_try_compile "$LINENO"; then :
12620 ac_compiler_gnu=yes
12621 else
12622 ac_compiler_gnu=no
12623 fi
12624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12625 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
12626
12627 fi
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
12629 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
12630 if test $ac_compiler_gnu = yes; then
12631 GXX=yes
12632 else
12633 GXX=
12634 fi
12635 ac_test_CXXFLAGS=${CXXFLAGS+set}
12636 ac_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; }
12639 if ${ac_cv_prog_cxx_g+:} false; then :
12640 $as_echo_n "(cached) " >&6
12641 else
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
12647 /* end confdefs.h. */
12648
12649 int
12650 main ()
12651 {
12652
12653 ;
12654 return 0;
12655 }
12656 _ACEOF
12657 if ac_fn_cxx_try_compile "$LINENO"; then :
12658 ac_cv_prog_cxx_g=yes
12659 else
12660 CXXFLAGS=""
12661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12662 /* end confdefs.h. */
12663
12664 int
12665 main ()
12666 {
12667
12668 ;
12669 return 0;
12670 }
12671 _ACEOF
12672 if ac_fn_cxx_try_compile "$LINENO"; then :
12673
12674 else
12675 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12676 CXXFLAGS="-g"
12677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12678 /* end confdefs.h. */
12679
12680 int
12681 main ()
12682 {
12683
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 if ac_fn_cxx_try_compile "$LINENO"; then :
12689 ac_cv_prog_cxx_g=yes
12690 fi
12691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12692 fi
12693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12694 fi
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
12697 fi
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
12699 $as_echo "$ac_cv_prog_cxx_g" >&6; }
12700 if test "$ac_test_CXXFLAGS" = set; then
12701 CXXFLAGS=$ac_save_CXXFLAGS
12702 elif 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
12708 else
12709 if test "$GXX" = yes; then
12710 CXXFLAGS="-O2"
12711 else
12712 CXXFLAGS=
12713 fi
12714 fi
12715 ac_ext=c
12716 ac_cpp='$CPP $CPPFLAGS'
12717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12720
12721 depcc="$CXX" am_compiler_list=
12722
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12724 $as_echo_n "checking dependency style of $depcc... " >&6; }
12725 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
12726 $as_echo_n "(cached) " >&6
12727 else
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
12747
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
12756
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
12825 done
12826
12827 cd ..
12828 rm -rf conftest.dir
12829 else
12830 am_cv_CXX_dependencies_compiler_type=none
12831 fi
12832
12833 fi
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; }
12836 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
12837
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='#'
12843 else
12844 am__fastdepCXX_TRUE='#'
12845 am__fastdepCXX_FALSE=
12846 fi
12847
12848
12849
12850
12851
12852 func_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
12859
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
12864 ac_cpp='$CXXCPP $CPPFLAGS'
12865 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12866 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12867 ac_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; }
12870 if test -z "$CXXCPP"; then
12871 if ${ac_cv_prog_CXXCPP+:} false; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 # Double quotes because CXXCPP needs to be expanded
12875 for CXXCPP in "$CXX -E" "/lib/cpp"
12876 do
12877 ac_preproc_ok=false
12878 for ac_cxx_preproc_warn_flag in '' yes
12879 do
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
12887 /* end confdefs.h. */
12888 #ifdef __STDC__
12889 # include <limits.h>
12890 #else
12891 # include <assert.h>
12892 #endif
12893 Syntax error
12894 _ACEOF
12895 if ac_fn_cxx_try_cpp "$LINENO"; then :
12896
12897 else
12898 # Broken: fails on valid input.
12899 continue
12900 fi
12901 rm -f conftest.err conftest.i conftest.$ac_ext
12902
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
12906 /* end confdefs.h. */
12907 #include <ac_nonexistent.h>
12908 _ACEOF
12909 if ac_fn_cxx_try_cpp "$LINENO"; then :
12910 # Broken: success on invalid input.
12911 continue
12912 else
12913 # Passes both tests.
12914 ac_preproc_ok=:
12915 break
12916 fi
12917 rm -f conftest.err conftest.i conftest.$ac_ext
12918
12919 done
12920 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12921 rm -f conftest.i conftest.err conftest.$ac_ext
12922 if $ac_preproc_ok; then :
12923 break
12924 fi
12925
12926 done
12927 ac_cv_prog_CXXCPP=$CXXCPP
12928
12929 fi
12930 CXXCPP=$ac_cv_prog_CXXCPP
12931 else
12932 ac_cv_prog_CXXCPP=$CXXCPP
12933 fi
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
12935 $as_echo "$CXXCPP" >&6; }
12936 ac_preproc_ok=false
12937 for ac_cxx_preproc_warn_flag in '' yes
12938 do
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
12946 /* end confdefs.h. */
12947 #ifdef __STDC__
12948 # include <limits.h>
12949 #else
12950 # include <assert.h>
12951 #endif
12952 Syntax error
12953 _ACEOF
12954 if ac_fn_cxx_try_cpp "$LINENO"; then :
12955
12956 else
12957 # Broken: fails on valid input.
12958 continue
12959 fi
12960 rm -f conftest.err conftest.i conftest.$ac_ext
12961
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>
12967 _ACEOF
12968 if ac_fn_cxx_try_cpp "$LINENO"; then :
12969 # Broken: success on invalid input.
12970 continue
12971 else
12972 # Passes both tests.
12973 ac_preproc_ok=:
12974 break
12975 fi
12976 rm -f conftest.err conftest.i conftest.$ac_ext
12977
12978 done
12979 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
12980 rm -f conftest.i conftest.err conftest.$ac_ext
12981 if $ac_preproc_ok; then :
12982
12983 else
12984 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12985 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12986 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
12987 See \`config.log' for more details" "$LINENO" 5; }
12988 fi
12989
12990 ac_ext=c
12991 ac_cpp='$CPP $CPPFLAGS'
12992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12995
12996 else
12997 _lt_caught_CXX_error=yes
12998 fi
12999
13000 ac_ext=cpp
13001 ac_cpp='$CXXCPP $CPPFLAGS'
13002 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13003 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13004 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13005
13006 archive_cmds_need_lc_CXX=no
13007 allow_undefined_flag_CXX=
13008 always_export_symbols_CXX=no
13009 archive_expsym_cmds_CXX=
13010 compiler_needs_object_CXX=no
13011 export_dynamic_flag_spec_CXX=
13012 hardcode_direct_CXX=no
13013 hardcode_direct_absolute_CXX=no
13014 hardcode_libdir_flag_spec_CXX=
13015 hardcode_libdir_separator_CXX=
13016 hardcode_minus_L_CXX=no
13017 hardcode_shlibpath_var_CXX=unsupported
13018 hardcode_automatic_CXX=no
13019 inherit_rpath_CXX=no
13020 module_cmds_CXX=
13021 module_expsym_cmds_CXX=
13022 link_all_deplibs_CXX=unknown
13023 old_archive_cmds_CXX=$old_archive_cmds
13024 reload_flag_CXX=$reload_flag
13025 reload_cmds_CXX=$reload_cmds
13026 no_undefined_flag_CXX=
13027 whole_archive_flag_spec_CXX=
13028 enable_shared_with_static_runtimes_CXX=no
13029
13030 # Source file extension for C++ test sources.
13031 ac_ext=cpp
13032
13033 # Object file extension for compiled C++ test sources.
13034 objext=o
13035 objext_CXX=$objext
13036
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.
13041 if 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;"
13044
13045 # Code to be used in simple link tests
13046 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13047
13048 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13049
13050
13051
13052
13053
13054
13055 # If no C compiler was specified, use CC.
13056 LTCC=${LTCC-"$CC"}
13057
13058 # If no C compiler flags were specified, use CFLAGS.
13059 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13060
13061 # Allow CC to be a program name with arguments.
13062 compiler=$CC
13063
13064
13065 # save warnings/boilerplate of simple test code
13066 ac_outfile=conftest.$ac_objext
13067 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13068 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13069 _lt_compiler_boilerplate=`cat conftest.err`
13070 $RM conftest*
13071
13072 ac_outfile=conftest.$ac_objext
13073 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13074 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13075 _lt_linker_boilerplate=`cat conftest.err`
13076 $RM -r conftest*
13077
13078
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
13109 done
13110 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13111
13112
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
13121
13122 if test "$GXX" = yes; then
13123 # Set up default GNU C++ configuration
13124
13125
13126
13127 # Check whether --with-gnu-ld was given.
13128 if test "${with_gnu_ld+set}" = set; then :
13129 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13130 else
13131 with_gnu_ld=no
13132 fi
13133
13134 ac_prog=ld
13135 if 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
13166 elif 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; }
13169 else
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13171 $as_echo_n "checking for non-GNU ld... " >&6; }
13172 fi
13173 if ${lt_cv_path_LD+:} false; then :
13174 $as_echo_n "(cached) " >&6
13175 else
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"
13197 else
13198 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13199 fi
13200 fi
13201
13202 LD="$lt_cv_path_LD"
13203 if test -n "$LD"; then
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13205 $as_echo "$LD" >&6; }
13206 else
13207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13208 $as_echo "no" >&6; }
13209 fi
13210 test -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; }
13213 if ${lt_cv_prog_gnu_ld+:} false; then :
13214 $as_echo_n "(cached) " >&6
13215 else
13216 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13217 case `$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 ;;
13224 esac
13225 fi
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13227 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13228 with_gnu_ld=$lt_cv_prog_gnu_ld
13229
13230
13231
13232
13233
13234
13235
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'
13241
13242 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13243 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13244
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}'
13249
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=
13260
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
13268
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"'
13273
13274 else
13275 GXX=no
13276 with_gnu_ld=no
13277 wlarc=
13278 fi
13279
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
13384 else
13385 if ${lt_cv_aix_libpath__CXX+:} false; then :
13386 $as_echo_n "(cached) " >&6
13387 else
13388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13389 /* end confdefs.h. */
13390
13391 int
13392 main ()
13393 {
13394
13395 ;
13396 return 0;
13397 }
13398 _ACEOF
13399 if ac_fn_cxx_try_link "$LINENO"; then :
13400
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
13413 fi
13414 rm -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
13419
13420 fi
13421
13422 aix_libpath=$lt_cv_aix_libpath__CXX
13423 fi
13424
13425 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13426
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
13438 else
13439 if ${lt_cv_aix_libpath__CXX+:} false; then :
13440 $as_echo_n "(cached) " >&6
13441 else
13442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13443 /* end confdefs.h. */
13444
13445 int
13446 main ()
13447 {
13448
13449 ;
13450 return 0;
13451 }
13452 _ACEOF
13453 if ac_fn_cxx_try_link "$LINENO"; then :
13454
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
13467 fi
13468 rm -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
13473
13474 fi
13475
13476 aix_libpath=$lt_cv_aix_libpath__CXX
13477 fi
13478
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 ;;
13498
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 ;;
13509
13510 chorus*)
13511 case $cc_basename in
13512 *)
13513 # FIXME: insert proper C++ library support
13514 ld_shlibs_CXX=no
13515 ;;
13516 esac
13517 ;;
13518
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*)
13590
13591
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\"`'
13598
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
13618
13619 else
13620 ld_shlibs_CXX=no
13621 fi
13622
13623 ;;
13624
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 ;;
13642
13643 freebsd2.*)
13644 # C++ shared libraries reported to be fairly broken before
13645 # switch to ELF
13646 ld_shlibs_CXX=no
13647 ;;
13648
13649 freebsd-elf*)
13650 archive_cmds_need_lc_CXX=no
13651 ;;
13652
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 ;;
13658
13659 gnu*)
13660 ;;
13661
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 ;;
13666
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.
13675
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 ;;
13703
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=:
13708
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
13730
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 ;;
13780
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'
13800
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 ;;
13822
13823 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13824 case $cc_basename in
13825 KCC*)
13826 # Kuck and Associates, Inc. (KAI) C++ Compiler
13827
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"'
13842
13843 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13844 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13845
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
13902
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'
13911
13912 runpath_var=LD_RUN_PATH
13913 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
13914 hardcode_libdir_separator_CXX=:
13915
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 ;;
13964
13965 lynxos*)
13966 # FIXME: insert proper C++ library support
13967 ld_shlibs_CXX=no
13968 ;;
13969
13970 m88k*)
13971 # FIXME: insert proper C++ library support
13972 ld_shlibs_CXX=no
13973 ;;
13974
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 ;;
13987
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 ;;
13999
14000 *nto* | *qnx*)
14001 ld_shlibs_CXX=yes
14002 ;;
14003
14004 openbsd2*)
14005 # C++ shared libraries are fairly broken
14006 ld_shlibs_CXX=no
14007 ;;
14008
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 ;;
14026
14027 osf3* | osf4* | osf5*)
14028 case $cc_basename in
14029 KCC*)
14030 # Kuck and Associates, Inc. (KAI) C++ Compiler
14031
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'
14036
14037 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14038 hardcode_libdir_separator_CXX=:
14039
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
14069
14070 hardcode_libdir_separator_CXX=:
14071
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
14093
14094 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14095 hardcode_libdir_separator_CXX=:
14096
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"'
14101
14102 else
14103 # FIXME: insert proper C++ library support
14104 ld_shlibs_CXX=no
14105 fi
14106 ;;
14107 esac
14108 ;;
14109
14110 psos*)
14111 # FIXME: insert proper C++ library support
14112 ld_shlibs_CXX=no
14113 ;;
14114
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 ;;
14133
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
14156
14157 output_verbose_link_cmd='func_echo_all'
14158
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'
14168
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 ;;
14209
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'
14215
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 ;;
14227
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'
14244
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 ;;
14260
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 ;;
14274
14275 vxworks*)
14276 # FIXME: insert proper C++ library support
14277 ld_shlibs_CXX=no
14278 ;;
14279
14280 *)
14281 # FIXME: insert proper C++ library support
14282 ld_shlibs_CXX=no
14283 ;;
14284 esac
14285
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
14289
14290 GCC_CXX="$GXX"
14291 LD_CXX="$LD"
14292
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:
14298 predep_objects_CXX=
14299 postdep_objects_CXX=
14300 predeps_CXX=
14301 postdeps_CXX=
14302 compiler_lib_search_path_CXX=
14303
14304 cat > conftest.$ac_ext <<_LT_EOF
14305 class Foo
14306 {
14307 public:
14308 Foo (void) { a = 0; }
14309 private:
14310 int a;
14311 };
14312 _LT_EOF
14313
14314
14315 _lt_libdeps_save_CFLAGS=$CFLAGS
14316 case "$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" ;;
14320 esac
14321
14322 if { { 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.
14329
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
14333
14334 for p in `eval "$output_verbose_link_cmd"`; do
14335 case ${prev}${p} in
14336
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
14345
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 ;;
14381
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
14390
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 ;;
14405
14406 *) ;; # Ignore the rest.
14407
14408 esac
14409 done
14410
14411 # Clean up.
14412 rm -f a.out a.exe
14413 else
14414 echo "libtool.m4: error: problem compiling CXX test program"
14415 fi
14416
14417 $RM -f confest.$objext
14418 CFLAGS=$_lt_libdeps_save_CFLAGS
14419
14420 # PORTME: override above test on systems where it is broken
14421 case $host_os in
14422 interix[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 ;;
14429
14430 linux*)
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
14444
14445 if test "$solaris_use_stlport4" != yes; then
14446 postdeps_CXX='-library=Cstd -library=Crun'
14447 fi
14448 ;;
14449 esac
14450 ;;
14451
14452 solaris*)
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
14464
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 ;;
14474 esac
14475
14476
14477 case " $postdeps_CXX " in
14478 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14479 esac
14480 compiler_lib_search_dirs_CXX=
14481 if 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!^ !!'`
14483 fi
14484
14485
14486
14487
14488
14489
14490
14491
14492
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506
14507
14508
14509
14510
14511
14512
14513
14514
14515 lt_prog_compiler_wl_CXX=
14516 lt_prog_compiler_pic_CXX=
14517 lt_prog_compiler_static_CXX=
14518
14519
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'
14524
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 ;;
14533
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 ;;
14548
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
14834
14835 case $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 ;;
14843 esac
14844
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; }
14847 if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
14848 $as_echo_n "(cached) " >&6
14849 else
14850 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
14851 fi
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; }
14854 lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
14855
14856 #
14857 # Check to make sure the PIC flag actually works.
14858 #
14859 if 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; }
14862 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14863 $as_echo_n "(cached) " >&6
14864 else
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*
14893
14894 fi
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
14898 if 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
14903 else
14904 lt_prog_compiler_pic_CXX=
14905 lt_prog_compiler_can_build_shared_CXX=no
14906 fi
14907
14908 fi
14909
14910
14911
14912
14913
14914 #
14915 # Check to make sure the static flag actually works.
14916 #
14917 wl=$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; }
14920 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
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"
14944
14945 fi
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
14949 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
14950 :
14951 else
14952 lt_prog_compiler_static_CXX=
14953 fi
14954
14955
14956
14957
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; }
14960 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
14961 $as_echo_n "(cached) " >&6
14962 else
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
14969
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*
15003
15004 fi
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; }
15007
15008
15009
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; }
15012 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15013 $as_echo_n "(cached) " >&6
15014 else
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
15021
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*
15055
15056 fi
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; }
15059
15060
15061
15062
15063 hard_links="nottested"
15064 if 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
15081 else
15082 need_locks=no
15083 fi
15084
15085
15086
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; }
15089
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
15122
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15124 $as_echo "$ld_shlibs_CXX" >&6; }
15125 test "$ld_shlibs_CXX" = no && can_build_shared=no
15126
15127 with_gnu_ld_CXX=$with_gnu_ld
15128
15129
15130
15131
15132
15133
15134 #
15135 # Do we need to explicitly link libc?
15136 #
15137 case "x$archive_cmds_need_lc_CXX" in
15138 x|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; }
15153 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15154 $as_echo_n "(cached) " >&6
15155 else
15156 $RM conftest*
15157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15158
15159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15160 (eval $ac_compile) 2>&5
15161 ac_status=$?
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*
15192
15193 fi
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 ;;
15201 esac
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258
15259
15260
15261
15262
15263
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15265 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15266
15267 library_names_spec=
15268 libname_spec='lib$name'
15269 soname_spec=
15270 shrext_cmds=".so"
15271 postinstall_cmds=
15272 postuninstall_cmds=
15273 finish_cmds=
15274 finish_eval=
15275 shlibpath_var=
15276 shlibpath_overrides_runpath=unknown
15277 version_type=none
15278 dynamic_linker="$host_os ld.so"
15279 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15280 need_lib_prefix=unknown
15281 hardcode_into_libs=no
15282
15283 # when you set need_version to no, make sure it does not cause -set_version
15284 # flags to be left without arguments
15285 need_version=unknown
15286
15287 case $host_os in
15288 aix3*)
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
15292
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 ;;
15296
15297 aix[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
15338 fi
15339 ;;
15340
15341 amigaos*)
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 ;;
15355
15356 beos*)
15357 library_names_spec='${libname}${shared_ext}'
15358 dynamic_linker="$host_os ld.so"
15359 shlibpath_var=LIBRARY_PATH
15360 ;;
15361
15362 bsdi[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 ;;
15375
15376 cygwin* | mingw* | pw32* | cegcc*)
15377 version_type=windows
15378 shrext_cmds=".dll"
15379 need_version=no
15380 need_lib_prefix=no
15381
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
15400
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}'
15405
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 ;;
15418
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'
15424
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
15461
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 ;;
15474
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 ;;
15484
15485 darwin* | 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`'
15495
15496 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15497 ;;
15498
15499 dgux*)
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 ;;
15507
15508 freebsd* | 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 ;;
15551
15552 gnu*)
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 ;;
15562
15563 haiku*)
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 ;;
15575
15576 hpux9* | 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 ;;
15623
15624 interix[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 ;;
15635
15636 irix5* | 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 ;;
15672
15673 # No shared lib support for Linux oldld, aout, or coff.
15674 linux*oldld* | linux*aout* | linux*coff*)
15675 dynamic_linker=no
15676 ;;
15677
15678 # This must be glibc/ELF.
15679 linux* | 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
15692 else
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
15699 /* end confdefs.h. */
15700
15701 int
15702 main ()
15703 {
15704
15705 ;
15706 return 0;
15707 }
15708 _ACEOF
15709 if 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
15712 fi
15713 fi
15714 rm -f core conftest.err conftest.$ac_objext \
15715 conftest$ac_exeext conftest.$ac_ext
15716 LDFLAGS=$save_LDFLAGS
15717 libdir=$save_libdir
15718
15719 fi
15720
15721 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15722
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
15727
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
15733
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 ;;
15742
15743 netbsd*)
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 ;;
15760
15761 newsos6)
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 ;;
15767
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 ;;
15779
15780 openbsd*)
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 ;;
15805
15806 os2*)
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 ;;
15814
15815 osf3* | 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 ;;
15825
15826 rdos*)
15827 dynamic_linker=no
15828 ;;
15829
15830 solaris*)
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 ;;
15842
15843 sunos4*)
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 ;;
15854
15855 sysv4 | 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 ;;
15877
15878 sysv4*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 ;;
15886
15887 sysv5* | 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 ;;
15908
15909 tpf*)
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 ;;
15919
15920 uts4*)
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 ;;
15926
15927 *)
15928 dynamic_linker=no
15929 ;;
15930 esac
15931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15932 $as_echo "$dynamic_linker" >&6; }
15933 test "$dynamic_linker" = no && can_build_shared=no
15934
15935 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15936 if test "$GCC" = yes; then
15937 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15938 fi
15939
15940 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15941 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15942 fi
15943 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15944 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15945 fi
15946
15947
15948
15949
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; }
15986 hardcode_action_CXX=
15987 if 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
16004 else
16005 # We cannot hardcode anything, or else we can only hardcode existing
16006 # directories.
16007 hardcode_action_CXX=unsupported
16008 fi
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16010 $as_echo "$hardcode_action_CXX" >&6; }
16011
16012 if test "$hardcode_action_CXX" = relink ||
16013 test "$inherit_rpath_CXX" = yes; then
16014 # Fast installation is not supported
16015 enable_fast_install=no
16016 elif test "$shlibpath_overrides_runpath" = yes ||
16017 test "$enable_shared" = no; then
16018 # Fast installation is not necessary
16019 enable_fast_install=needless
16020 fi
16021
16022
16023
16024
16025
16026
16027
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
16040 fi # test "$_lt_caught_CXX_error" != yes
16041
16042 ac_ext=c
16043 ac_cpp='$CPP $CPPFLAGS'
16044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16047
16048
16049
16050 # Enable support for silent build rules
16051 # Check whether --enable-silent-rules was given.
16052 if test "${enable_silent_rules+set}" = set; then :
16053 enableval=$enable_silent_rules;
16054 fi
16055
16056 case $enable_silent_rules in # (((
16057 yes) AM_DEFAULT_VERBOSITY=0;;
16058 no) AM_DEFAULT_VERBOSITY=1;;
16059 *) AM_DEFAULT_VERBOSITY=1;;
16060 esac
16061 am_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; }
16064 if ${am_cv_make_support_nested_variables+:} false; then :
16065 $as_echo_n "(cached) " >&6
16066 else
16067 if $as_echo 'TRUE=$(BAR$(V))
16068 BAR0=false
16069 BAR1=true
16070 V=1
16071 am__doit:
16072 @$(TRUE)
16073 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
16074 am_cv_make_support_nested_variables=yes
16075 else
16076 am_cv_make_support_nested_variables=no
16077 fi
16078 fi
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; }
16081 if test $am_cv_make_support_nested_variables = yes; then
16082 AM_V='$(V)'
16083 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
16084 else
16085 AM_V=$AM_DEFAULT_VERBOSITY
16086 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
16087 fi
16088 AM_BACKSLASH='\'
16089
16090
16091 case "${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; }
16097 if ${ac_cv_lib_m_sin+:} false; then :
16098 $as_echo_n "(cached) " >&6
16099 else
16100 ac_check_lib_save_LIBS=$LIBS
16101 LIBS="-lm $LIBS"
16102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16103 /* end confdefs.h. */
16104
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. */
16108 #ifdef __cplusplus
16109 extern "C"
16110 #endif
16111 char sin ();
16112 int
16113 main ()
16114 {
16115 return sin ();
16116 ;
16117 return 0;
16118 }
16119 _ACEOF
16120 if ac_fn_c_try_link "$LINENO"; then :
16121 ac_cv_lib_m_sin=yes
16122 else
16123 ac_cv_lib_m_sin=no
16124 fi
16125 rm -f core conftest.err conftest.$ac_objext \
16126 conftest$ac_exeext conftest.$ac_ext
16127 LIBS=$ac_check_lib_save_LIBS
16128 fi
16129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16130 $as_echo "$ac_cv_lib_m_sin" >&6; }
16131 if 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
16138 fi
16139
16140 ;;
16141 esac
16142
16143 tiff_libs_private=
16144
16145
16146 for ac_header in assert.h fcntl.h io.h limits.h malloc.h search.h sys/time.h unistd.h
16147 do :
16148 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16149 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16150 if 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
16155 fi
16156
16157 done
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; }
16162 if ${ac_cv_c_const+:} false; then :
16163 $as_echo_n "(cached) " >&6
16164 else
16165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16166 /* end confdefs.h. */
16167
16168 int
16169 main ()
16170 {
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
16222 ;
16223 return 0;
16224 }
16225 _ACEOF
16226 if ac_fn_c_try_compile "$LINENO"; then :
16227 ac_cv_c_const=yes
16228 else
16229 ac_cv_c_const=no
16230 fi
16231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16232 fi
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16234 $as_echo "$ac_cv_c_const" >&6; }
16235 if test $ac_cv_c_const = no; then
16236
16237 $as_echo "#define const /**/" >>confdefs.h
16238
16239 fi
16240
16241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16242 $as_echo_n "checking for inline... " >&6; }
16243 if ${ac_cv_c_inline+:} false; then :
16244 $as_echo_n "(cached) " >&6
16245 else
16246 ac_cv_c_inline=no
16247 for ac_kw in inline __inline__ __inline; do
16248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16249 /* end confdefs.h. */
16250 #ifndef __cplusplus
16251 typedef int foo_t;
16252 static $ac_kw foo_t static_foo () {return 0; }
16253 $ac_kw foo_t foo () {return 0; }
16254 #endif
16255
16256 _ACEOF
16257 if ac_fn_c_try_compile "$LINENO"; then :
16258 ac_cv_c_inline=$ac_kw
16259 fi
16260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16261 test "$ac_cv_c_inline" != no && break
16262 done
16263
16264 fi
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
16266 $as_echo "$ac_cv_c_inline" >&6; }
16267
16268 case $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 ;;
16281 esac
16282
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; }
16285 if ${ac_cv_c_bigendian+:} false; then :
16286 $as_echo_n "(cached) " >&6
16287 else
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
16298 if 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
16321 fi
16322 rm -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>
16329
16330 int
16331 main ()
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
16338
16339 ;
16340 return 0;
16341 }
16342 _ACEOF
16343 if 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>
16349
16350 int
16351 main ()
16352 {
16353 #if BYTE_ORDER != BIG_ENDIAN
16354 not big endian
16355 #endif
16356
16357 ;
16358 return 0;
16359 }
16360 _ACEOF
16361 if ac_fn_c_try_compile "$LINENO"; then :
16362 ac_cv_c_bigendian=yes
16363 else
16364 ac_cv_c_bigendian=no
16365 fi
16366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16367 fi
16368 rm -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>
16375
16376 int
16377 main ()
16378 {
16379 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
16380 bogus endian macros
16381 #endif
16382
16383 ;
16384 return 0;
16385 }
16386 _ACEOF
16387 if 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>
16392
16393 int
16394 main ()
16395 {
16396 #ifndef _BIG_ENDIAN
16397 not big endian
16398 #endif
16399
16400 ;
16401 return 0;
16402 }
16403 _ACEOF
16404 if ac_fn_c_try_compile "$LINENO"; then :
16405 ac_cv_c_bigendian=yes
16406 else
16407 ac_cv_c_bigendian=no
16408 fi
16409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16410 fi
16411 rm -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
16418 /* end confdefs.h. */
16419 short 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;
16434
16435 int
16436 main ()
16437 {
16438 return use_ascii (foo) == use_ebcdic (foo);
16439 ;
16440 return 0;
16441 }
16442 _ACEOF
16443 if 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
16455 fi
16456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16457 else
16458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16459 /* end confdefs.h. */
16460 $ac_includes_default
16461 int
16462 main ()
16463 {
16464
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;
16473
16474 ;
16475 return 0;
16476 }
16477 _ACEOF
16478 if ac_fn_c_try_run "$LINENO"; then :
16479 ac_cv_c_bigendian=no
16480 else
16481 ac_cv_c_bigendian=yes
16482 fi
16483 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16484 conftest.$ac_objext conftest.beam conftest.$ac_ext
16485 fi
16486
16487 fi
16488 fi
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)
16498
16499 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
16500
16501 ;; #(
16502 *)
16503 as_fn_error $? "unknown endianness
16504 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
16505 esac
16506
16507 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
16508 if test "x$ac_cv_type_off_t" = xyes; then :
16509
16510 else
16511
16512 cat >>confdefs.h <<_ACEOF
16513 #define off_t long int
16514 _ACEOF
16515
16516 fi
16517
16518 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
16519 if test "x$ac_cv_type_size_t" = xyes; then :
16520
16521 else
16522
16523 cat >>confdefs.h <<_ACEOF
16524 #define size_t unsigned int
16525 _ACEOF
16526
16527 fi
16528
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; }
16531 if ${ac_cv_header_time+:} false; then :
16532 $as_echo_n "(cached) " >&6
16533 else
16534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16535 /* end confdefs.h. */
16536 #include <sys/types.h>
16537 #include <sys/time.h>
16538 #include <time.h>
16539
16540 int
16541 main ()
16542 {
16543 if ((struct tm *) 0)
16544 return 0;
16545 ;
16546 return 0;
16547 }
16548 _ACEOF
16549 if ac_fn_c_try_compile "$LINENO"; then :
16550 ac_cv_header_time=yes
16551 else
16552 ac_cv_header_time=no
16553 fi
16554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16555 fi
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
16557 $as_echo "$ac_cv_header_time" >&6; }
16558 if test $ac_cv_header_time = yes; then
16559
16560 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
16561
16562 fi
16563
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; }
16566 if ${ac_cv_struct_tm+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16571 #include <sys/types.h>
16572 #include <time.h>
16573
16574 int
16575 main ()
16576 {
16577 struct tm tm;
16578 int *p = &tm.tm_sec;
16579 return !p;
16580 ;
16581 return 0;
16582 }
16583 _ACEOF
16584 if ac_fn_c_try_compile "$LINENO"; then :
16585 ac_cv_struct_tm=time.h
16586 else
16587 ac_cv_struct_tm=sys/time.h
16588 fi
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 fi
16591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
16592 $as_echo "$ac_cv_struct_tm" >&6; }
16593 if test $ac_cv_struct_tm = sys/time.h; then
16594
16595 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
16596
16597 fi
16598
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; }
16608 if ${ac_cv_sizeof_signed_short+:} false; then :
16609 $as_echo_n "(cached) " >&6
16610 else
16611 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed short))" "ac_cv_sizeof_signed_short" "$ac_includes_default"; then :
16612
16613 else
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;}
16617 as_fn_error 77 "cannot compute sizeof (signed short)
16618 See \`config.log' for more details" "$LINENO" 5; }
16619 else
16620 ac_cv_sizeof_signed_short=0
16621 fi
16622 fi
16623
16624 fi
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
16629
16630 cat >>confdefs.h <<_ACEOF
16631 #define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
16632 _ACEOF
16633
16634
16635
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; }
16643 if ${ac_cv_sizeof_unsigned_short+:} false; then :
16644 $as_echo_n "(cached) " >&6
16645 else
16646 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
16647
16648 else
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;}
16652 as_fn_error 77 "cannot compute sizeof (unsigned short)
16653 See \`config.log' for more details" "$LINENO" 5; }
16654 else
16655 ac_cv_sizeof_unsigned_short=0
16656 fi
16657 fi
16658
16659 fi
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
16661 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
16662
16663
16664
16665 cat >>confdefs.h <<_ACEOF
16666 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
16667 _ACEOF
16668
16669
16670
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; }
16678 if ${ac_cv_sizeof_signed_int+:} false; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed int))" "ac_cv_sizeof_signed_int" "$ac_includes_default"; then :
16682
16683 else
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;}
16687 as_fn_error 77 "cannot compute sizeof (signed int)
16688 See \`config.log' for more details" "$LINENO" 5; }
16689 else
16690 ac_cv_sizeof_signed_int=0
16691 fi
16692 fi
16693
16694 fi
16695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
16696 $as_echo "$ac_cv_sizeof_signed_int" >&6; }
16697
16698
16699
16700 cat >>confdefs.h <<_ACEOF
16701 #define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
16702 _ACEOF
16703
16704
16705
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; }
16713 if ${ac_cv_sizeof_unsigned_int+:} false; then :
16714 $as_echo_n "(cached) " >&6
16715 else
16716 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned int))" "ac_cv_sizeof_unsigned_int" "$ac_includes_default"; then :
16717
16718 else
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;}
16722 as_fn_error 77 "cannot compute sizeof (unsigned int)
16723 See \`config.log' for more details" "$LINENO" 5; }
16724 else
16725 ac_cv_sizeof_unsigned_int=0
16726 fi
16727 fi
16728
16729 fi
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
16731 $as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
16732
16733
16734
16735 cat >>confdefs.h <<_ACEOF
16736 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
16737 _ACEOF
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; }
16748 if ${ac_cv_sizeof_signed_long+:} false; then :
16749 $as_echo_n "(cached) " >&6
16750 else
16751 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long))" "ac_cv_sizeof_signed_long" "$ac_includes_default"; then :
16752
16753 else
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;}
16757 as_fn_error 77 "cannot compute sizeof (signed long)
16758 See \`config.log' for more details" "$LINENO" 5; }
16759 else
16760 ac_cv_sizeof_signed_long=0
16761 fi
16762 fi
16763
16764 fi
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
16766 $as_echo "$ac_cv_sizeof_signed_long" >&6; }
16767
16768
16769
16770 cat >>confdefs.h <<_ACEOF
16771 #define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
16772 _ACEOF
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; }
16783 if ${ac_cv_sizeof_unsigned_long+:} false; then :
16784 $as_echo_n "(cached) " >&6
16785 else
16786 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
16787
16788 else
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;}
16792 as_fn_error 77 "cannot compute sizeof (unsigned long)
16793 See \`config.log' for more details" "$LINENO" 5; }
16794 else
16795 ac_cv_sizeof_unsigned_long=0
16796 fi
16797 fi
16798
16799 fi
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
16801 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
16802
16803
16804
16805 cat >>confdefs.h <<_ACEOF
16806 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
16807 _ACEOF
16808
16809
16810
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; }
16819 if ${ac_cv_sizeof_signed_long_long+:} false; then :
16820 $as_echo_n "(cached) " >&6
16821 else
16822 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (signed long long))" "ac_cv_sizeof_signed_long_long" "$ac_includes_default"; then :
16823
16824 else
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;}
16828 as_fn_error 77 "cannot compute sizeof (signed long long)
16829 See \`config.log' for more details" "$LINENO" 5; }
16830 else
16831 ac_cv_sizeof_signed_long_long=0
16832 fi
16833 fi
16834
16835 fi
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; }
16838
16839
16840
16841 cat >>confdefs.h <<_ACEOF
16842 #define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
16843 _ACEOF
16844
16845
16846
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; }
16856 if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
16857 $as_echo_n "(cached) " >&6
16858 else
16859 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long long))" "ac_cv_sizeof_unsigned_long_long" "$ac_includes_default"; then :
16860
16861 else
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;}
16865 as_fn_error 77 "cannot compute sizeof (unsigned long long)
16866 See \`config.log' for more details" "$LINENO" 5; }
16867 else
16868 ac_cv_sizeof_unsigned_long_long=0
16869 fi
16870 fi
16871
16872 fi
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; }
16875
16876
16877
16878 cat >>confdefs.h <<_ACEOF
16879 #define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
16880 _ACEOF
16881
16882
16883
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; }
16893 if ${ac_cv_sizeof_unsigned_char_p+:} false; then :
16894 $as_echo_n "(cached) " >&6
16895 else
16896 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned char *))" "ac_cv_sizeof_unsigned_char_p" "$ac_includes_default"; then :
16897
16898 else
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;}
16902 as_fn_error 77 "cannot compute sizeof (unsigned char *)
16903 See \`config.log' for more details" "$LINENO" 5; }
16904 else
16905 ac_cv_sizeof_unsigned_char_p=0
16906 fi
16907 fi
16908
16909 fi
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; }
16912
16913
16914
16915 cat >>confdefs.h <<_ACEOF
16916 #define SIZEOF_UNSIGNED_CHAR_P $ac_cv_sizeof_unsigned_char_p
16917 _ACEOF
16918
16919
16920
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; }
16923 INT8_T='signed char'
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT8_T" >&5
16925 $as_echo "$INT8_T" >&6; }
16926
16927 cat >>confdefs.h <<_ACEOF
16928 #define TIFF_INT8_T $INT8_T
16929 _ACEOF
16930
16931
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; }
16934 UINT8_T='unsigned char'
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT8_T" >&5
16936 $as_echo "$UINT8_T" >&6; }
16937
16938 cat >>confdefs.h <<_ACEOF
16939 #define TIFF_UINT8_T $UINT8_T
16940 _ACEOF
16941
16942
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; }
16945 INT16_T='signed short'
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT16_T" >&5
16947 $as_echo "$INT16_T" >&6; }
16948
16949 cat >>confdefs.h <<_ACEOF
16950 #define TIFF_INT16_T $INT16_T
16951 _ACEOF
16952
16953
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; }
16957 UINT16_T='unsigned short'
16958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT16_T" >&5
16959 $as_echo "$UINT16_T" >&6; }
16960
16961 cat >>confdefs.h <<_ACEOF
16962 #define TIFF_UINT16_T $UINT16_T
16963 _ACEOF
16964
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; }
16968 INT32_T='none'
16969 INT32_FORMAT='none'
16970 if test $ac_cv_sizeof_signed_int -eq 4
16971 then
16972 INT32_T='signed int'
16973 INT32_FORMAT='"%d"'
16974 elif test $ac_cv_sizeof_signed_long -eq 4
16975 then
16976 INT32_T='signed long'
16977 INT32_FORMAT='"%ld"'
16978 fi
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT32_T" >&5
16980 $as_echo "$INT32_T" >&6; }
16981
16982 cat >>confdefs.h <<_ACEOF
16983 #define TIFF_INT32_T $INT32_T
16984 _ACEOF
16985
16986
16987 cat >>confdefs.h <<_ACEOF
16988 #define TIFF_INT32_FORMAT $INT32_FORMAT
16989 _ACEOF
16990
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; }
16994 UINT32_T='none'
16995 UINT32_FORMAT='none'
16996 if test $ac_cv_sizeof_unsigned_int -eq 4
16997 then
16998 UINT32_T='unsigned int'
16999 UINT32_FORMAT='"%u"'
17000 elif test $ac_cv_sizeof_unsigned_long -eq 4
17001 then
17002 UINT32_T='unsigned long'
17003 UINT32_FORMAT='"%lu"'
17004 fi
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT32_T" >&5
17006 $as_echo "$UINT32_T" >&6; }
17007
17008 cat >>confdefs.h <<_ACEOF
17009 #define TIFF_UINT32_T $UINT32_T
17010 _ACEOF
17011
17012
17013 cat >>confdefs.h <<_ACEOF
17014 #define TIFF_UINT32_FORMAT $UINT32_FORMAT
17015 _ACEOF
17016
17017
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; }
17020 INT64_T='none'
17021 INT64_FORMAT='none'
17022 if test $ac_cv_sizeof_signed_long -eq 8
17023 then
17024 INT64_T='signed long'
17025 INT64_FORMAT='"%ld"'
17026 elif test $ac_cv_sizeof_signed_long_long -eq 8
17027 then
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
17038 fi
17039
17040
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INT64_T" >&5
17042 $as_echo "$INT64_T" >&6; }
17043
17044 cat >>confdefs.h <<_ACEOF
17045 #define TIFF_INT64_T $INT64_T
17046 _ACEOF
17047
17048
17049 cat >>confdefs.h <<_ACEOF
17050 #define TIFF_INT64_FORMAT $INT64_FORMAT
17051 _ACEOF
17052
17053
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; }
17056 UINT64_T='none'
17057 UINT64_FORMAT='none'
17058 if test $ac_cv_sizeof_unsigned_long -eq 8
17059 then
17060 UINT64_T='unsigned long'
17061 UINT64_FORMAT='"%lu"'
17062 elif test $ac_cv_sizeof_unsigned_long_long -eq 8
17063 then
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"'
17069 ;;
17070 *)
17071 UINT64_FORMAT='"%llu"'
17072 ;;
17073 esac
17074 fi
17075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UINT64_T" >&5
17076 $as_echo "$UINT64_T" >&6; }
17077
17078 cat >>confdefs.h <<_ACEOF
17079 #define TIFF_UINT64_T $UINT64_T
17080 _ACEOF
17081
17082
17083 cat >>confdefs.h <<_ACEOF
17084 #define TIFF_UINT64_FORMAT $UINT64_FORMAT
17085 _ACEOF
17086
17087
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; }
17091 SSIZE_T='unknown'
17092 SSIZE_FORMAT='unknown'
17093 if test $ac_cv_sizeof_signed_long -eq $ac_cv_sizeof_unsigned_char_p
17094 then
17095 SSIZE_T='signed long'
17096 SSIZE_FORMAT='"%ld"'
17097 elif test $ac_cv_sizeof_signed_long_long -eq $ac_cv_sizeof_unsigned_char_p
17098 then
17099 SSIZE_T='signed long long'
17100 SSIZE_FORMAT='"%lld"'
17101 fi
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SSIZE_T" >&5
17103 $as_echo "$SSIZE_T" >&6; }
17104
17105 cat >>confdefs.h <<_ACEOF
17106 #define TIFF_SSIZE_T $SSIZE_T
17107 _ACEOF
17108
17109
17110 cat >>confdefs.h <<_ACEOF
17111 #define TIFF_SSIZE_FORMAT $SSIZE_FORMAT
17112 _ACEOF
17113
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.
17118 PTRDIFF_T='unknown'
17119 PTRDIFF_FORMAT='"%ld"'
17120 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
17121 if test "x$ac_cv_type_ptrdiff_t" = xyes; then :
17122 PTRDIFF_T=ptrdiff_t
17123 fi
17124
17125 if test $PTRDIFF_T = unknown
17126 then
17127 PTRDIFF_T=$SSIZE_T
17128 PTRDIFF_FORMAT=$SSIZE_FORMAT
17129 fi
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; }
17134
17135 cat >>confdefs.h <<_ACEOF
17136 #define TIFF_PTRDIFF_T $PTRDIFF_T
17137 _ACEOF
17138
17139
17140 cat >>confdefs.h <<_ACEOF
17141 #define TIFF_PTRDIFF_FORMAT $PTRDIFF_FORMAT
17142 _ACEOF
17143
17144
17145 ac_fn_c_check_type "$LINENO" "int8" "ac_cv_type_int8" "
17146 #if HAVE_INTTYPES_H
17147 # include <inttypes.h>
17148 #endif
17149
17150 "
17151 if test "x$ac_cv_type_int8" = xyes; then :
17152
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_INT8 1
17155 _ACEOF
17156
17157
17158 fi
17159 ac_fn_c_check_type "$LINENO" "int16" "ac_cv_type_int16" "
17160 #if HAVE_INTTYPES_H
17161 # include <inttypes.h>
17162 #endif
17163
17164 "
17165 if test "x$ac_cv_type_int16" = xyes; then :
17166
17167 cat >>confdefs.h <<_ACEOF
17168 #define HAVE_INT16 1
17169 _ACEOF
17170
17171
17172 fi
17173 ac_fn_c_check_type "$LINENO" "int32" "ac_cv_type_int32" "
17174 #if HAVE_INTTYPES_H
17175 # include <inttypes.h>
17176 #endif
17177
17178 "
17179 if test "x$ac_cv_type_int32" = xyes; then :
17180
17181 cat >>confdefs.h <<_ACEOF
17182 #define HAVE_INT32 1
17183 _ACEOF
17184
17185
17186 fi
17187
17188
17189 for ac_func in floor isascii memmove memset mmap pow setmode sqrt strchr strrchr strstr strtol strtoull
17190 do :
17191 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17192 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17193 if 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
17196 _ACEOF
17197
17198 fi
17199 done
17200
17201
17202 ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt"
17203 if test "x$ac_cv_func_getopt" = xyes; then :
17204 $as_echo "#define HAVE_GETOPT 1" >>confdefs.h
17205
17206 else
17207 case " $LIBOBJS " in
17208 *" getopt.$ac_objext "* ) ;;
17209 *) LIBOBJS="$LIBOBJS getopt.$ac_objext"
17210 ;;
17211 esac
17212
17213 fi
17214
17215
17216 ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp"
17217 if test "x$ac_cv_func_strcasecmp" = xyes; then :
17218 $as_echo "#define HAVE_STRCASECMP 1" >>confdefs.h
17219
17220 else
17221 case " $LIBOBJS " in
17222 *" strcasecmp.$ac_objext "* ) ;;
17223 *) LIBOBJS="$LIBOBJS strcasecmp.$ac_objext"
17224 ;;
17225 esac
17226
17227 fi
17228
17229
17230 ac_fn_c_check_func "$LINENO" "strtoul" "ac_cv_func_strtoul"
17231 if test "x$ac_cv_func_strtoul" = xyes; then :
17232 $as_echo "#define HAVE_STRTOUL 1" >>confdefs.h
17233
17234 else
17235 case " $LIBOBJS " in
17236 *" strtoul.$ac_objext "* ) ;;
17237 *) LIBOBJS="$LIBOBJS strtoul.$ac_objext"
17238 ;;
17239 esac
17240
17241 fi
17242
17243
17244 ac_fn_c_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
17245 if test "x$ac_cv_func_strtoull" = xyes; then :
17246 $as_echo "#define HAVE_STRTOULL 1" >>confdefs.h
17247
17248 else
17249 case " $LIBOBJS " in
17250 *" strtoull.$ac_objext "* ) ;;
17251 *) LIBOBJS="$LIBOBJS strtoull.$ac_objext"
17252 ;;
17253 esac
17254
17255 fi
17256
17257
17258 ac_fn_c_check_func "$LINENO" "lfind" "ac_cv_func_lfind"
17259 if test "x$ac_cv_func_lfind" = xyes; then :
17260 $as_echo "#define HAVE_LFIND 1" >>confdefs.h
17261
17262 else
17263 case " $LIBOBJS " in
17264 *" lfind.$ac_objext "* ) ;;
17265 *) LIBOBJS="$LIBOBJS lfind.$ac_objext"
17266 ;;
17267 esac
17268
17269 fi
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; }
17275 case "$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 ;;
17286 esac
17287
17288 cat >>confdefs.h <<_ACEOF
17289 #define HOST_FILLORDER $HOST_FILLORDER
17290 _ACEOF
17291
17292
17293 if test "$ac_cv_c_bigendian" = yes ; then
17294 HOST_BIGENDIAN=1
17295 else
17296 HOST_BIGENDIAN=0
17297 fi
17298
17299 cat >>confdefs.h <<_ACEOF
17300 #define HOST_BIGENDIAN $HOST_BIGENDIAN
17301 _ACEOF
17302
17303
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
17307 HAVE_IEEEFP=1
17308
17309 cat >>confdefs.h <<_ACEOF
17310 #define HAVE_IEEEFP $HAVE_IEEEFP
17311 _ACEOF
17312
17313
17314
17315 # Check whether --enable-rpath was given.
17316 if test "${enable_rpath+set}" = set; then :
17317 enableval=$enable_rpath; HAVE_RPATH=$enableval
17318 else
17319 HAVE_RPATH=no
17320 fi
17321
17322 if test "$HAVE_RPATH" = "yes"; then
17323 HAVE_RPATH_TRUE=
17324 HAVE_RPATH_FALSE='#'
17325 else
17326 HAVE_RPATH_TRUE='#'
17327 HAVE_RPATH_FALSE=
17328 fi
17329
17330
17331
17332 # Check whether --enable-largefile was given.
17333 if test "${enable_largefile+set}" = set; then :
17334 enableval=$enable_largefile;
17335 fi
17336
17337 if 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; }
17341 if ${ac_cv_sys_largefile_CC+:} false; then :
17342 $as_echo_n "(cached) " >&6
17343 else
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
17351 /* end confdefs.h. */
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];
17361 int
17362 main ()
17363 {
17364
17365 ;
17366 return 0;
17367 }
17368 _ACEOF
17369 if ac_fn_c_try_compile "$LINENO"; then :
17370 break
17371 fi
17372 rm -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
17376 fi
17377 rm -f core conftest.err conftest.$ac_objext
17378 break
17379 done
17380 CC=$ac_save_CC
17381 rm -f conftest.$ac_ext
17382 fi
17383 fi
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; }
17392 if ${ac_cv_sys_file_offset_bits+:} false; then :
17393 $as_echo_n "(cached) " >&6
17394 else
17395 while :; do
17396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17397 /* end confdefs.h. */
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];
17407 int
17408 main ()
17409 {
17410
17411 ;
17412 return 0;
17413 }
17414 _ACEOF
17415 if ac_fn_c_try_compile "$LINENO"; then :
17416 ac_cv_sys_file_offset_bits=no; break
17417 fi
17418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17420 /* end confdefs.h. */
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];
17431 int
17432 main ()
17433 {
17434
17435 ;
17436 return 0;
17437 }
17438 _ACEOF
17439 if ac_fn_c_try_compile "$LINENO"; then :
17440 ac_cv_sys_file_offset_bits=64; break
17441 fi
17442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17443 ac_cv_sys_file_offset_bits=unknown
17444 break
17445 done
17446 fi
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; }
17449 case $ac_cv_sys_file_offset_bits in #(
17450 no | unknown) ;;
17451 *)
17452 cat >>confdefs.h <<_ACEOF
17453 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
17454 _ACEOF
17455 ;;
17456 esac
17457 rm -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; }
17461 if ${ac_cv_sys_large_files+:} false; then :
17462 $as_echo_n "(cached) " >&6
17463 else
17464 while :; do
17465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17466 /* end confdefs.h. */
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];
17476 int
17477 main ()
17478 {
17479
17480 ;
17481 return 0;
17482 }
17483 _ACEOF
17484 if ac_fn_c_try_compile "$LINENO"; then :
17485 ac_cv_sys_large_files=no; break
17486 fi
17487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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];
17500 int
17501 main ()
17502 {
17503
17504 ;
17505 return 0;
17506 }
17507 _ACEOF
17508 if ac_fn_c_try_compile "$LINENO"; then :
17509 ac_cv_sys_large_files=1; break
17510 fi
17511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17512 ac_cv_sys_large_files=unknown
17513 break
17514 done
17515 fi
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
17517 $as_echo "$ac_cv_sys_large_files" >&6; }
17518 case $ac_cv_sys_large_files in #(
17519 no | unknown) ;;
17520 *)
17521 cat >>confdefs.h <<_ACEOF
17522 #define _LARGE_FILES $ac_cv_sys_large_files
17523 _ACEOF
17524 ;;
17525 esac
17526 rm -rf conftest*
17527 fi
17528
17529
17530 fi
17531
17532
17533
17534 LIBTIFF_DOCDIR=\${prefix}/share/doc/${PACKAGE}-${LIBTIFF_VERSION}
17535
17536
17537 # Check whether --with-docdir was given.
17538 if test "${with_docdir+set}" = set; then :
17539 withval=$with_docdir;
17540 fi
17541
17542 if test "x$with_docdir" != "x" ; then
17543 LIBTIFF_DOCDIR=$with_docdir
17544 fi
17545
17546
17547
17548
17549 # Check whether --enable-ccitt was given.
17550 if test "${enable_ccitt+set}" = set; then :
17551 enableval=$enable_ccitt; HAVE_CCITT=$enableval
17552 else
17553 HAVE_CCITT=yes
17554 fi
17555
17556
17557 if test "$HAVE_CCITT" = "yes" ; then
17558
17559 $as_echo "#define CCITT_SUPPORT 1" >>confdefs.h
17560
17561 fi
17562
17563 # Check whether --enable-packbits was given.
17564 if test "${enable_packbits+set}" = set; then :
17565 enableval=$enable_packbits; HAVE_PACKBITS=$enableval
17566 else
17567 HAVE_PACKBITS=yes
17568 fi
17569
17570
17571 if test "$HAVE_PACKBITS" = "yes" ; then
17572
17573 $as_echo "#define PACKBITS_SUPPORT 1" >>confdefs.h
17574
17575 fi
17576
17577 # Check whether --enable-lzw was given.
17578 if test "${enable_lzw+set}" = set; then :
17579 enableval=$enable_lzw; HAVE_LZW=$enableval
17580 else
17581 HAVE_LZW=yes
17582 fi
17583
17584
17585 if test "$HAVE_LZW" = "yes" ; then
17586
17587 $as_echo "#define LZW_SUPPORT 1" >>confdefs.h
17588
17589 fi
17590
17591 # Check whether --enable-thunder was given.
17592 if test "${enable_thunder+set}" = set; then :
17593 enableval=$enable_thunder; HAVE_THUNDER=$enableval
17594 else
17595 HAVE_THUNDER=yes
17596 fi
17597
17598
17599 if test "$HAVE_THUNDER" = "yes" ; then
17600
17601 $as_echo "#define THUNDER_SUPPORT 1" >>confdefs.h
17602
17603 fi
17604
17605 HAVE_NEXT=yes
17606
17607 # Check whether --enable-next was given.
17608 if test "${enable_next+set}" = set; then :
17609 enableval=$enable_next; HAVE_NEXT=$enableval
17610 else
17611 HAVE_NEXT=yes
17612 fi
17613
17614
17615 if test "$HAVE_NEXT" = "yes" ; then
17616
17617 $as_echo "#define NEXT_SUPPORT 1" >>confdefs.h
17618
17619 fi
17620
17621 # Check whether --enable-logluv was given.
17622 if test "${enable_logluv+set}" = set; then :
17623 enableval=$enable_logluv; HAVE_LOGLUV=$enableval
17624 else
17625 HAVE_LOGLUV=yes
17626 fi
17627
17628
17629 if test "$HAVE_LOGLUV" = "yes" ; then
17630
17631 $as_echo "#define LOGLUV_SUPPORT 1" >>confdefs.h
17632
17633 fi
17634
17635
17636 # Check whether --enable-mdi was given.
17637 if test "${enable_mdi+set}" = set; then :
17638 enableval=$enable_mdi; HAVE_MDI=$enableval
17639 else
17640 HAVE_MDI=yes
17641 fi
17642
17643
17644 if test "$HAVE_MDI" = "yes" ; then
17645
17646 $as_echo "#define MDI_SUPPORT 1" >>confdefs.h
17647
17648 fi
17649
17650
17651 HAVE_ZLIB=no
17652
17653 # Check whether --enable-zlib was given.
17654 if test "${enable_zlib+set}" = set; then :
17655 enableval=$enable_zlib;
17656 fi
17657
17658
17659 # Check whether --with-zlib-include-dir was given.
17660 if test "${with_zlib_include_dir+set}" = set; then :
17661 withval=$with_zlib_include_dir;
17662 fi
17663
17664
17665 # Check whether --with-zlib-lib-dir was given.
17666 if test "${with_zlib_lib_dir+set}" = set; then :
17667 withval=$with_zlib_lib_dir;
17668 fi
17669
17670
17671 if test "x$enable_zlib" != "xno" ; then
17672
17673 if test "x$with_zlib_lib_dir" != "x" ; then
17674 LDFLAGS="-L$with_zlib_lib_dir $LDFLAGS"
17675 fi
17676
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflateEnd in -lz" >&5
17678 $as_echo_n "checking for inflateEnd in -lz... " >&6; }
17679 if ${ac_cv_lib_z_inflateEnd+:} false; then :
17680 $as_echo_n "(cached) " >&6
17681 else
17682 ac_check_lib_save_LIBS=$LIBS
17683 LIBS="-lz $LIBS"
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17686
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
17691 extern "C"
17692 #endif
17693 char inflateEnd ();
17694 int
17695 main ()
17696 {
17697 return inflateEnd ();
17698 ;
17699 return 0;
17700 }
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_lib_z_inflateEnd=yes
17704 else
17705 ac_cv_lib_z_inflateEnd=no
17706 fi
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 LIBS=$ac_check_lib_save_LIBS
17710 fi
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflateEnd" >&5
17712 $as_echo "$ac_cv_lib_z_inflateEnd" >&6; }
17713 if test "x$ac_cv_lib_z_inflateEnd" = xyes; then :
17714 zlib_lib=yes
17715 else
17716 zlib_lib=no
17717 fi
17718
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
17722
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"
17727 if test "x$ac_cv_header_zlib_h" = xyes; then :
17728 zlib_h=yes
17729 else
17730 zlib_h=no
17731 fi
17732
17733
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
17737
17738 if test "$zlib_lib" = "yes" -a "$zlib_h" = "yes" ; then
17739 HAVE_ZLIB=yes
17740 fi
17741
17742 fi
17743
17744 if 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
17754
17755 fi
17756
17757
17758 # Check whether --enable-pixarlog was given.
17759 if test "${enable_pixarlog+set}" = set; then :
17760 enableval=$enable_pixarlog; HAVE_PIXARLOG=$enableval
17761 else
17762 HAVE_PIXARLOG=yes
17763 fi
17764
17765
17766 if test "$HAVE_ZLIB" = "yes" -a "$HAVE_PIXARLOG" = "yes" ; then
17767
17768 $as_echo "#define PIXARLOG_SUPPORT 1" >>confdefs.h
17769
17770 else
17771 HAVE_PIXARLOG=no
17772 fi
17773
17774
17775 HAVE_JPEG=no
17776
17777 # Check whether --enable-jpeg was given.
17778 if test "${enable_jpeg+set}" = set; then :
17779 enableval=$enable_jpeg;
17780 fi
17781
17782
17783 # Check whether --with-jpeg-include-dir was given.
17784 if test "${with_jpeg_include_dir+set}" = set; then :
17785 withval=$with_jpeg_include_dir;
17786 fi
17787
17788
17789 # Check whether --with-jpeg-lib-dir was given.
17790 if test "${with_jpeg_lib_dir+set}" = set; then :
17791 withval=$with_jpeg_lib_dir;
17792 fi
17793
17794
17795 if test "x$enable_jpeg" != "xno" ; then
17796
17797 if test "x$with_jpeg_lib_dir" != "x" ; then
17798 LDFLAGS="-L$with_jpeg_lib_dir $LDFLAGS"
17799
17800 fi
17801
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; }
17804 if ${ac_cv_lib_jpeg_jpeg_read_scanlines+:} false; then :
17805 $as_echo_n "(cached) " >&6
17806 else
17807 ac_check_lib_save_LIBS=$LIBS
17808 LIBS="-ljpeg $LIBS"
17809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17810 /* end confdefs.h. */
17811
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
17816 extern "C"
17817 #endif
17818 char jpeg_read_scanlines ();
17819 int
17820 main ()
17821 {
17822 return jpeg_read_scanlines ();
17823 ;
17824 return 0;
17825 }
17826 _ACEOF
17827 if ac_fn_c_try_link "$LINENO"; then :
17828 ac_cv_lib_jpeg_jpeg_read_scanlines=yes
17829 else
17830 ac_cv_lib_jpeg_jpeg_read_scanlines=no
17831 fi
17832 rm -f core conftest.err conftest.$ac_objext \
17833 conftest$ac_exeext conftest.$ac_ext
17834 LIBS=$ac_check_lib_save_LIBS
17835 fi
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; }
17838 if test "x$ac_cv_lib_jpeg_jpeg_read_scanlines" = xyes; then :
17839 jpeg_lib=yes
17840 else
17841 jpeg_lib=no
17842 fi
17843
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
17847
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"
17852 if test "x$ac_cv_header_jpeglib_h" = xyes; then :
17853 jpeg_h=yes
17854 else
17855 jpeg_h=no
17856 fi
17857
17858
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
17862
17863 if test "$jpeg_lib" = "yes" -a "$jpeg_h" = "yes" ; then
17864 HAVE_JPEG=yes
17865 fi
17866
17867 fi
17868
17869 if 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"
17878 fi
17879
17880 fi
17881
17882
17883 # Check whether --enable-old-jpeg was given.
17884 if test "${enable_old_jpeg+set}" = set; then :
17885 enableval=$enable_old_jpeg; HAVE_OJPEG=${enableval}
17886 else
17887 HAVE_OJPEG=yes
17888 fi
17889
17890
17891 if test "$HAVE_JPEG" = "yes" -a "$HAVE_OJPEG" = "yes" ; then
17892
17893 $as_echo "#define OJPEG_SUPPORT 1" >>confdefs.h
17894
17895 else
17896 HAVE_OJPEG=no
17897 fi
17898
17899
17900 HAVE_JBIG=no
17901
17902 # Check whether --enable-jbig was given.
17903 if test "${enable_jbig+set}" = set; then :
17904 enableval=$enable_jbig;
17905 fi
17906
17907
17908 # Check whether --with-jbig-include-dir was given.
17909 if test "${with_jbig_include_dir+set}" = set; then :
17910 withval=$with_jbig_include_dir;
17911 fi
17912
17913
17914 # Check whether --with-jbig-lib-dir was given.
17915 if test "${with_jbig_lib_dir+set}" = set; then :
17916 withval=$with_jbig_lib_dir;
17917 fi
17918
17919
17920 if test "x$enable_jbig" != "xno" ; then
17921
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; }
17929 if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
17930 $as_echo_n "(cached) " >&6
17931 else
17932 ac_check_lib_save_LIBS=$LIBS
17933 LIBS="-ljbig $LIBS"
17934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17935 /* end confdefs.h. */
17936
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
17941 extern "C"
17942 #endif
17943 char jbg_dec_init ();
17944 int
17945 main ()
17946 {
17947 return jbg_dec_init ();
17948 ;
17949 return 0;
17950 }
17951 _ACEOF
17952 if ac_fn_c_try_link "$LINENO"; then :
17953 ac_cv_lib_jbig_jbg_dec_init=yes
17954 else
17955 ac_cv_lib_jbig_jbg_dec_init=no
17956 fi
17957 rm -f core conftest.err conftest.$ac_objext \
17958 conftest$ac_exeext conftest.$ac_ext
17959 LIBS=$ac_check_lib_save_LIBS
17960 fi
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; }
17963 if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
17964 jbig_lib=yes
17965 else
17966 jbig_lib=no
17967 fi
17968
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"
17977 if test "x$ac_cv_header_jbig_h" = xyes; then :
17978 jbig_h=yes
17979 else
17980 jbig_h=no
17981 fi
17982
17983
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
17987
17988 if test "$jbig_lib" = "yes" -a "$jbig_h" = "yes" ; then
17989 HAVE_JBIG=yes
17990 fi
17991
17992 fi
17993
17994 if 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
18007 do :
18008 ac_fn_c_check_func "$LINENO" "jbg_newlen" "ac_cv_func_jbg_newlen"
18009 if test "x$ac_cv_func_jbg_newlen" = xyes; then :
18010 cat >>confdefs.h <<_ACEOF
18011 #define HAVE_JBG_NEWLEN 1
18012 _ACEOF
18013
18014 fi
18015 done
18016
18017
18018 fi
18019
18020
18021 HAVE_LZMA=no
18022
18023 # Check whether --enable-lzma was given.
18024 if test "${enable_lzma+set}" = set; then :
18025 enableval=$enable_lzma;
18026 fi
18027
18028
18029 # Check whether --with-lzma-include-dir was given.
18030 if test "${with_lzma_include_dir+set}" = set; then :
18031 withval=$with_lzma_include_dir;
18032 fi
18033
18034
18035 # Check whether --with-lzma-lib-dir was given.
18036 if test "${with_lzma_lib_dir+set}" = set; then :
18037 withval=$with_lzma_lib_dir;
18038 fi
18039
18040
18041 if test "x$enable_lzma" != "xno" ; then
18042
18043 if test "x$with_lzma_lib_dir" != "x" ; then
18044 LDFLAGS="-L$with_lzma_lib_dir $LDFLAGS"
18045 fi
18046
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; }
18049 if ${ac_cv_lib_lzma_lzma_code+:} false; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 ac_check_lib_save_LIBS=$LIBS
18053 LIBS="-llzma $LIBS"
18054 cat 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
18061 extern "C"
18062 #endif
18063 char lzma_code ();
18064 int
18065 main ()
18066 {
18067 return lzma_code ();
18068 ;
18069 return 0;
18070 }
18071 _ACEOF
18072 if ac_fn_c_try_link "$LINENO"; then :
18073 ac_cv_lib_lzma_lzma_code=yes
18074 else
18075 ac_cv_lib_lzma_lzma_code=no
18076 fi
18077 rm -f core conftest.err conftest.$ac_objext \
18078 conftest$ac_exeext conftest.$ac_ext
18079 LIBS=$ac_check_lib_save_LIBS
18080 fi
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; }
18083 if test "x$ac_cv_lib_lzma_lzma_code" = xyes; then :
18084 lzma_lib=yes
18085 else
18086 lzma_lib=no
18087 fi
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"
18097 if test "x$ac_cv_header_lzma_h" = xyes; then :
18098 lzma_h=yes
18099 else
18100 lzma_h=no
18101 fi
18102
18103
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
18107
18108 if test "$lzma_lib" = "yes" -a "$lzma_h" = "yes" ; then
18109 HAVE_LZMA=yes
18110 fi
18111
18112 fi
18113
18114 if test "$HAVE_LZMA" = "yes" ; then
18115
18116 $as_echo "#define LZMA_SUPPORT 1" >>confdefs.h
18117
18118 LIBS="-llzma $LIBS"
18119 tiff_libs_private="-llzma ${tiff_libs_private}"
18120
18121 if test "$HAVE_RPATH" = "yes" -a "x$with_lzma_lib_dir" != "x" ; then
18122 LIBDIR="-R $with_lzma_lib_dir $LIBDIR"
18123 fi
18124
18125 fi
18126
18127
18128 HAVE_JPEG12=no
18129
18130 # Check whether --enable-jpeg12 was given.
18131 if test "${enable_jpeg12+set}" = set; then :
18132 enableval=$enable_jpeg12;
18133 fi
18134
18135
18136 # Check whether --with-jpeg12-include-dir was given.
18137 if test "${with_jpeg12_include_dir+set}" = set; then :
18138 withval=$with_jpeg12_include_dir;
18139 fi
18140
18141
18142 # Check whether --with-jpeg12-lib was given.
18143 if test "${with_jpeg12_lib+set}" = set; then :
18144 withval=$with_jpeg12_lib;
18145 fi
18146
18147
18148 if test "x$enable_jpeg12" == "xyes" ; then
18149
18150 if test "x$with_jpeg12_lib" != "x" ; then
18151 LIBS="$with_jpeg12_lib $LIBS"
18152 fi
18153
18154 HAVE_JPEG12=yes
18155
18156
18157 $as_echo "#define JPEG_DUAL_MODE_8_12 1" >>confdefs.h
18158
18159 if test "x$with_jpeg12_include_dir" != "x" ; then
18160
18161 cat >>confdefs.h <<_ACEOF
18162 #define LIBJPEG_12_PATH "$with_jpeg12_include_dir/jpeglib.h"
18163 _ACEOF
18164
18165 fi
18166 fi
18167
18168
18169
18170 # Check whether --enable-cxx was given.
18171 if test "${enable_cxx+set}" = set; then :
18172 enableval=$enable_cxx; HAVE_CXX=$enableval
18173 else
18174 HAVE_CXX=yes
18175 fi
18176
18177
18178 if test "$HAVE_CXX" = "yes" ; then
18179
18180 $as_echo "#define CXX_SUPPORT 1" >>confdefs.h
18181
18182 else
18183 HAVE_CXX=no
18184 fi
18185
18186 if test "$HAVE_CXX" = "yes"; then
18187 HAVE_CXX_TRUE=
18188 HAVE_CXX_FALSE='#'
18189 else
18190 HAVE_CXX_TRUE='#'
18191 HAVE_CXX_FALSE=
18192 fi
18193
18194
18195
18196 HAVE_OPENGL=no
18197
18198
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18200 $as_echo_n "checking for X... " >&6; }
18201
18202
18203 # Check whether --with-x was given.
18204 if test "${with_x+set}" = set; then :
18205 withval=$with_x;
18206 fi
18207
18208 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18209 if test "x$with_x" = xno; then
18210 # The user explicitly disabled X.
18211 have_x=disabled
18212 else
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
18217 else
18218 # One or both of the vars are not set, and there is no cached value.
18219 ac_x_includes=no ac_x_libraries=no
18220 rm -f -r conftest.dir
18221 if mkdir conftest.dir; then
18222 cd conftest.dir
18223 cat >Imakefile <<'_ACEOF'
18224 incroot:
18225 @echo incroot='${INCROOT}'
18226 usrlibdir:
18227 @echo usrlibdir='${USRLIBDIR}'
18228 libdir:
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
18257 fi
18258
18259 # Standard set of common directories for X headers.
18260 # Check X11 before X11Rn because it is often a symlink to the current release.
18261 ac_x_header_dirs='
18262 /usr/X11/include
18263 /usr/X11R7/include
18264 /usr/X11R6/include
18265 /usr/X11R5/include
18266 /usr/X11R4/include
18267
18268 /usr/include/X11
18269 /usr/include/X11R7
18270 /usr/include/X11R6
18271 /usr/include/X11R5
18272 /usr/include/X11R4
18273
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
18279
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
18285
18286 /usr/X386/include
18287 /usr/x386/include
18288 /usr/XFree86/include/X11
18289
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
18296
18297 /usr/openwin/include
18298 /usr/openwin/share/include'
18299
18300 if 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
18307 if ac_fn_c_try_cpp "$LINENO"; then :
18308 # We can compile using X headers with no special include directory.
18309 ac_x_includes=
18310 else
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
18316 done
18317 fi
18318 rm -f conftest.err conftest.i conftest.$ac_ext
18319 fi # $ac_x_includes = no
18320
18321 if 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>
18330 int
18331 main ()
18332 {
18333 XrmInitialize ()
18334 ;
18335 return 0;
18336 }
18337 _ACEOF
18338 if ac_fn_c_try_link "$LINENO"; then :
18339 LIBS=$ac_save_LIBS
18340 # We can link X programs with no special library path.
18341 ac_x_libraries=
18342 else
18343 LIBS=$ac_save_LIBS
18344 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
18345 do
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
18353 done
18354 fi
18355 rm -f core conftest.err conftest.$ac_objext \
18356 conftest$ac_exeext conftest.$ac_ext
18357 fi # $ac_x_libraries = no
18358
18359 case $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'"
18368 esac
18369 fi
18370 ;; #(
18371 *) have_x=yes;;
18372 esac
18373 eval "$ac_cv_have_x"
18374 fi # $with_x != no
18375
18376 if 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
18380 else
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; }
18390 fi
18391
18392 if test "$no_x" = yes; then
18393 # Not all programs may use this symbol, but it does not hurt to define it.
18394
18395 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
18396
18397 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
18398 else
18399 if test -n "$x_includes"; then
18400 X_CFLAGS="$X_CFLAGS -I$x_includes"
18401 fi
18402
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. */
18415
18416 int
18417 main ()
18418 {
18419
18420 ;
18421 return 0;
18422 }
18423 _ACEOF
18424 if 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"
18428 else
18429 LIBS="$ac_xsave_LIBS -R $x_libraries"
18430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18431 /* end confdefs.h. */
18432
18433 int
18434 main ()
18435 {
18436
18437 ;
18438 return 0;
18439 }
18440 _ACEOF
18441 if 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"
18445 else
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
18447 $as_echo "neither works" >&6; }
18448 fi
18449 rm -f core conftest.err conftest.$ac_objext \
18450 conftest$ac_exeext conftest.$ac_ext
18451 fi
18452 rm -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
18457
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.
18461
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. */
18471
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
18476 extern "C"
18477 #endif
18478 char XOpenDisplay ();
18479 int
18480 main ()
18481 {
18482 return XOpenDisplay ();
18483 ;
18484 return 0;
18485 }
18486 _ACEOF
18487 if ac_fn_c_try_link "$LINENO"; then :
18488
18489 else
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; }
18492 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
18493 $as_echo_n "(cached) " >&6
18494 else
18495 ac_check_lib_save_LIBS=$LIBS
18496 LIBS="-ldnet $LIBS"
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18499
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
18504 extern "C"
18505 #endif
18506 char dnet_ntoa ();
18507 int
18508 main ()
18509 {
18510 return dnet_ntoa ();
18511 ;
18512 return 0;
18513 }
18514 _ACEOF
18515 if ac_fn_c_try_link "$LINENO"; then :
18516 ac_cv_lib_dnet_dnet_ntoa=yes
18517 else
18518 ac_cv_lib_dnet_dnet_ntoa=no
18519 fi
18520 rm -f core conftest.err conftest.$ac_objext \
18521 conftest$ac_exeext conftest.$ac_ext
18522 LIBS=$ac_check_lib_save_LIBS
18523 fi
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; }
18526 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
18527 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
18528 fi
18529
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; }
18533 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
18534 $as_echo_n "(cached) " >&6
18535 else
18536 ac_check_lib_save_LIBS=$LIBS
18537 LIBS="-ldnet_stub $LIBS"
18538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18539 /* end confdefs.h. */
18540
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
18545 extern "C"
18546 #endif
18547 char dnet_ntoa ();
18548 int
18549 main ()
18550 {
18551 return dnet_ntoa ();
18552 ;
18553 return 0;
18554 }
18555 _ACEOF
18556 if ac_fn_c_try_link "$LINENO"; then :
18557 ac_cv_lib_dnet_stub_dnet_ntoa=yes
18558 else
18559 ac_cv_lib_dnet_stub_dnet_ntoa=no
18560 fi
18561 rm -f core conftest.err conftest.$ac_objext \
18562 conftest$ac_exeext conftest.$ac_ext
18563 LIBS=$ac_check_lib_save_LIBS
18564 fi
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; }
18567 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
18568 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
18569 fi
18570
18571 fi
18572 fi
18573 rm -f core conftest.err conftest.$ac_objext \
18574 conftest$ac_exeext conftest.$ac_ext
18575 LIBS="$ac_xsave_LIBS"
18576
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"
18586 if test "x$ac_cv_func_gethostbyname" = xyes; then :
18587
18588 fi
18589
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; }
18593 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
18594 $as_echo_n "(cached) " >&6
18595 else
18596 ac_check_lib_save_LIBS=$LIBS
18597 LIBS="-lnsl $LIBS"
18598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18599 /* end confdefs.h. */
18600
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
18605 extern "C"
18606 #endif
18607 char gethostbyname ();
18608 int
18609 main ()
18610 {
18611 return gethostbyname ();
18612 ;
18613 return 0;
18614 }
18615 _ACEOF
18616 if ac_fn_c_try_link "$LINENO"; then :
18617 ac_cv_lib_nsl_gethostbyname=yes
18618 else
18619 ac_cv_lib_nsl_gethostbyname=no
18620 fi
18621 rm -f core conftest.err conftest.$ac_objext \
18622 conftest$ac_exeext conftest.$ac_ext
18623 LIBS=$ac_check_lib_save_LIBS
18624 fi
18625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
18626 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
18627 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
18628 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
18629 fi
18630
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; }
18634 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
18635 $as_echo_n "(cached) " >&6
18636 else
18637 ac_check_lib_save_LIBS=$LIBS
18638 LIBS="-lbsd $LIBS"
18639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18640 /* end confdefs.h. */
18641
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
18646 extern "C"
18647 #endif
18648 char gethostbyname ();
18649 int
18650 main ()
18651 {
18652 return gethostbyname ();
18653 ;
18654 return 0;
18655 }
18656 _ACEOF
18657 if ac_fn_c_try_link "$LINENO"; then :
18658 ac_cv_lib_bsd_gethostbyname=yes
18659 else
18660 ac_cv_lib_bsd_gethostbyname=no
18661 fi
18662 rm -f core conftest.err conftest.$ac_objext \
18663 conftest$ac_exeext conftest.$ac_ext
18664 LIBS=$ac_check_lib_save_LIBS
18665 fi
18666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
18667 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
18668 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
18669 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
18670 fi
18671
18672 fi
18673 fi
18674
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"
18683 if test "x$ac_cv_func_connect" = xyes; then :
18684
18685 fi
18686
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; }
18690 if ${ac_cv_lib_socket_connect+:} false; then :
18691 $as_echo_n "(cached) " >&6
18692 else
18693 ac_check_lib_save_LIBS=$LIBS
18694 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
18695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18696 /* end confdefs.h. */
18697
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
18702 extern "C"
18703 #endif
18704 char connect ();
18705 int
18706 main ()
18707 {
18708 return connect ();
18709 ;
18710 return 0;
18711 }
18712 _ACEOF
18713 if ac_fn_c_try_link "$LINENO"; then :
18714 ac_cv_lib_socket_connect=yes
18715 else
18716 ac_cv_lib_socket_connect=no
18717 fi
18718 rm -f core conftest.err conftest.$ac_objext \
18719 conftest$ac_exeext conftest.$ac_ext
18720 LIBS=$ac_check_lib_save_LIBS
18721 fi
18722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
18723 $as_echo "$ac_cv_lib_socket_connect" >&6; }
18724 if test "x$ac_cv_lib_socket_connect" = xyes; then :
18725 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
18726 fi
18727
18728 fi
18729
18730 # Guillermo Gomez says -lposix is necessary on A/UX.
18731 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
18732 if test "x$ac_cv_func_remove" = xyes; then :
18733
18734 fi
18735
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; }
18739 if ${ac_cv_lib_posix_remove+:} false; then :
18740 $as_echo_n "(cached) " >&6
18741 else
18742 ac_check_lib_save_LIBS=$LIBS
18743 LIBS="-lposix $LIBS"
18744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18745 /* end confdefs.h. */
18746
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
18751 extern "C"
18752 #endif
18753 char remove ();
18754 int
18755 main ()
18756 {
18757 return remove ();
18758 ;
18759 return 0;
18760 }
18761 _ACEOF
18762 if ac_fn_c_try_link "$LINENO"; then :
18763 ac_cv_lib_posix_remove=yes
18764 else
18765 ac_cv_lib_posix_remove=no
18766 fi
18767 rm -f core conftest.err conftest.$ac_objext \
18768 conftest$ac_exeext conftest.$ac_ext
18769 LIBS=$ac_check_lib_save_LIBS
18770 fi
18771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
18772 $as_echo "$ac_cv_lib_posix_remove" >&6; }
18773 if test "x$ac_cv_lib_posix_remove" = xyes; then :
18774 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
18775 fi
18776
18777 fi
18778
18779 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
18780 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
18781 if test "x$ac_cv_func_shmat" = xyes; then :
18782
18783 fi
18784
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; }
18788 if ${ac_cv_lib_ipc_shmat+:} false; then :
18789 $as_echo_n "(cached) " >&6
18790 else
18791 ac_check_lib_save_LIBS=$LIBS
18792 LIBS="-lipc $LIBS"
18793 cat 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
18800 extern "C"
18801 #endif
18802 char shmat ();
18803 int
18804 main ()
18805 {
18806 return shmat ();
18807 ;
18808 return 0;
18809 }
18810 _ACEOF
18811 if ac_fn_c_try_link "$LINENO"; then :
18812 ac_cv_lib_ipc_shmat=yes
18813 else
18814 ac_cv_lib_ipc_shmat=no
18815 fi
18816 rm -f core conftest.err conftest.$ac_objext \
18817 conftest$ac_exeext conftest.$ac_ext
18818 LIBS=$ac_check_lib_save_LIBS
18819 fi
18820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
18821 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
18822 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
18823 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
18824 fi
18825
18826 fi
18827 fi
18828
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; }
18840 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
18841 $as_echo_n "(cached) " >&6
18842 else
18843 ac_check_lib_save_LIBS=$LIBS
18844 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
18845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18846 /* end confdefs.h. */
18847
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
18852 extern "C"
18853 #endif
18854 char IceConnectionNumber ();
18855 int
18856 main ()
18857 {
18858 return IceConnectionNumber ();
18859 ;
18860 return 0;
18861 }
18862 _ACEOF
18863 if ac_fn_c_try_link "$LINENO"; then :
18864 ac_cv_lib_ICE_IceConnectionNumber=yes
18865 else
18866 ac_cv_lib_ICE_IceConnectionNumber=no
18867 fi
18868 rm -f core conftest.err conftest.$ac_objext \
18869 conftest$ac_exeext conftest.$ac_ext
18870 LIBS=$ac_check_lib_save_LIBS
18871 fi
18872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
18873 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
18874 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
18875 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
18876 fi
18877
18878 LDFLAGS=$ac_save_LDFLAGS
18879
18880 fi
18881
18882
18883
18884
18885
18886 ac_ext=c
18887 ac_cpp='$CPP $CPPFLAGS'
18888 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18889 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18890 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18891
18892 ax_pthread_ok=no
18893
18894
18895 if 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
18909 extern "C"
18910 #endif
18911 char pthread_join ();
18912 int
18913 main ()
18914 {
18915 return pthread_join ();
18916 ;
18917 return 0;
18918 }
18919 _ACEOF
18920 if ac_fn_c_try_link "$LINENO"; then :
18921 ax_pthread_ok=yes
18922 fi
18923 rm -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"
18933 fi
18934
18935
18936
18937 ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
18938
18939
18940
18941 case "${host_cpu}-${host_os}" in
18942 *solaris*)
18943
18944
18945 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
18946 ;;
18947
18948 *-darwin*)
18949 ax_pthread_flags="-pthread $ax_pthread_flags"
18950 ;;
18951 esac
18952
18953 if test x"$ax_pthread_ok" = xno; then
18954 for 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.
18970 set 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; }
18973 if ${ac_cv_prog_ax_pthread_config+:} false; then :
18974 $as_echo_n "(cached) " >&6
18975 else
18976 if test -n "$ax_pthread_config"; then
18977 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
18978 else
18979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18980 for as_dir in $PATH
18981 do
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
18989 fi
18990 done
18991 done
18992 IFS=$as_save_IFS
18993
18994 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
18995 fi
18996 fi
18997 ax_pthread_config=$ac_cv_prog_ax_pthread_config
18998 if 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; }
19001 else
19002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19003 $as_echo "no" >&6; }
19004 fi
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"
19023
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;}
19029 int
19030 main ()
19031 {
19032 pthread_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
19042 if ac_fn_c_try_link "$LINENO"; then :
19043 ax_pthread_ok=yes
19044 fi
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047
19048 LIBS="$save_LIBS"
19049 CFLAGS="$save_CFLAGS"
19050
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
19056
19057 PTHREAD_LIBS=""
19058 PTHREAD_CFLAGS=""
19059 done
19060 fi
19061
19062 if 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"
19067
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>
19075 int
19076 main ()
19077 {
19078 int attr=$attr; return attr;
19079 ;
19080 return 0;
19081 }
19082 _ACEOF
19083 if ac_fn_c_try_link "$LINENO"; then :
19084 attr_name=$attr; break
19085 fi
19086 rm -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
19092
19093 cat >>confdefs.h <<_ACEOF
19094 #define PTHREAD_CREATE_JOINABLE $attr_name
19095 _ACEOF
19096
19097 fi
19098
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
19111
19112 LIBS="$save_LIBS"
19113 CFLAGS="$save_CFLAGS"
19114
19115 if test x"$GCC" != xyes; then
19116 for ac_prog in xlc_r cc_r
19117 do
19118 # Extract the first word of "$ac_prog", so it can be a program name with args.
19119 set 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; }
19122 if ${ac_cv_prog_PTHREAD_CC+:} false; then :
19123 $as_echo_n "(cached) " >&6
19124 else
19125 if test -n "$PTHREAD_CC"; then
19126 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
19127 else
19128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19129 for as_dir in $PATH
19130 do
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
19139 done
19140 done
19141 IFS=$as_save_IFS
19142
19143 fi
19144 fi
19145 PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
19146 if test -n "$PTHREAD_CC"; then
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
19148 $as_echo "$PTHREAD_CC" >&6; }
19149 else
19150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19151 $as_echo "no" >&6; }
19152 fi
19153
19154
19155 test -n "$PTHREAD_CC" && break
19156 done
19157 test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
19158
19159 else
19160 PTHREAD_CC=$CC
19161 fi
19162 else
19163 PTHREAD_CC="$CC"
19164 fi
19165
19166
19167
19168
19169
19170 if test x"$ax_pthread_ok" = xyes; then
19171
19172 $as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
19173
19174 :
19175 else
19176 ax_pthread_ok=no
19177
19178 fi
19179 ac_ext=c
19180 ac_cpp='$CPP $CPPFLAGS'
19181 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19182 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19183 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19184
19185
19186
19187
19188 ac_ext=c
19189 ac_cpp='$CPP $CPPFLAGS'
19190 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19191 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19192 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19193
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; }
19196 if ${ax_cv_c_compiler_ms+:} false; then :
19197 $as_echo_n "(cached) " >&6
19198 else
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h. */
19201
19202 int
19203 main ()
19204 {
19205 #ifndef _MSC_VER
19206 choke me
19207 #endif
19208
19209 ;
19210 return 0;
19211 }
19212 _ACEOF
19213 if ac_fn_c_try_compile "$LINENO"; then :
19214 ax_compiler_ms=yes
19215 else
19216 ax_compiler_ms=no
19217 fi
19218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19219 ax_cv_c_compiler_ms=$ax_compiler_ms
19220
19221 fi
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
19223 $as_echo "$ax_cv_c_compiler_ms" >&6; }
19224 if test X$ax_compiler_ms = Xno; then :
19225 GL_CFLAGS="${PTHREAD_CFLAGS}"; GL_LIBS="${PTHREAD_LIBS} -lm"
19226 fi
19227
19228 if test "X$no_x" != "Xyes"; then :
19229 if test -n "$x_includes"; then :
19230 GL_CFLAGS="-I${x_includes} ${GL_CFLAGS}"
19231 fi
19232 if test -n "$x_libraries"; then :
19233 GL_LIBS="-L${x_libraries} -lX11 ${GL_LIBS}"
19234 fi
19235 fi
19236
19237 ax_save_CPPFLAGS="${CPPFLAGS}"
19238 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19239 for ac_header in GL/gl.h OpenGL/gl.h
19240 do :
19241 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19242 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19243 if 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
19247
19248 fi
19249
19250 done
19251
19252 CPPFLAGS="${ax_save_CPPFLAGS}"
19253
19254 for ac_header in windows.h
19255 do :
19256 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
19257 if test "x$ac_cv_header_windows_h" = xyes; then :
19258 cat >>confdefs.h <<_ACEOF
19259 #define HAVE_WINDOWS_H 1
19260 _ACEOF
19261
19262 fi
19263
19264 done
19265
19266
19267
19268
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
19270 $as_echo_n "checking for OpenGL library... " >&6; }
19271 if ${ax_cv_check_gl_libgl+:} false; then :
19272 $as_echo_n "(cached) " >&6
19273 else
19274 ax_cv_check_gl_libgl="no"
19275 case $host_cpu in
19276 x86_64) ax_check_gl_libdir=lib64 ;;
19277 *) ax_check_gl_libdir=lib ;;
19278 esac
19279 ax_save_CPPFLAGS="${CPPFLAGS}"
19280 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19281 ax_save_LIBS="${LIBS}"
19282 LIBS=""
19283 ax_check_libs="-lopengl32 -lGL"
19284 for 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/'`
19287 else
19288 ax_try_lib="${ax_lib}"
19289 fi
19290 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19292 /* end confdefs.h. */
19293
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
19304 int
19305 main ()
19306 {
19307 glBegin(0)
19308 ;
19309 return 0;
19310 }
19311 _ACEOF
19312 if ac_fn_c_try_link "$LINENO"; then :
19313 ax_cv_check_gl_libgl="${ax_try_lib}"; break
19314 else
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}"
19316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19317 /* end confdefs.h. */
19318
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
19329 int
19330 main ()
19331 {
19332 glBegin(0)
19333 ;
19334 return 0;
19335 }
19336 _ACEOF
19337 if ac_fn_c_try_link "$LINENO"; then :
19338 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_nvidia_flags}"; break
19339 else
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}"
19341 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19342 /* end confdefs.h. */
19343
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
19354 int
19355 main ()
19356 {
19357 glBegin(0)
19358 ;
19359 return 0;
19360 }
19361 _ACEOF
19362 if ac_fn_c_try_link "$LINENO"; then :
19363 ax_cv_check_gl_libgl="${ax_try_lib} ${ax_check_gl_dylib_flag}"; break
19364 fi
19365 rm -f core conftest.err conftest.$ac_objext \
19366 conftest$ac_exeext conftest.$ac_ext
19367 fi
19368 rm -f core conftest.err conftest.$ac_objext \
19369 conftest$ac_exeext conftest.$ac_ext
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext \
19372 conftest$ac_exeext conftest.$ac_ext
19373 done
19374
19375 if test "X$ax_cv_check_gl_libgl" = Xno -a "X$no_x" = Xyes; then :
19376 LIBS='-framework OpenGL'
19377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19378 /* end confdefs.h. */
19379
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
19390 int
19391 main ()
19392 {
19393 glBegin(0)
19394 ;
19395 return 0;
19396 }
19397 _ACEOF
19398 if ac_fn_c_try_link "$LINENO"; then :
19399 ax_cv_check_gl_libgl="$LIBS"
19400 fi
19401 rm -f core conftest.err conftest.$ac_objext \
19402 conftest$ac_exeext conftest.$ac_ext
19403 fi
19404
19405 LIBS=${ax_save_LIBS}
19406 CPPFLAGS=${ax_save_CPPFLAGS}
19407 fi
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
19409 $as_echo "$ax_cv_check_gl_libgl" >&6; }
19410
19411 if test "X$ax_cv_check_gl_libgl" = Xno; then :
19412 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
19413 else
19414 GL_LIBS="${ax_cv_check_gl_libgl} ${GL_LIBS}"
19415 fi
19416 ac_ext=c
19417 ac_cpp='$CPP $CPPFLAGS'
19418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19421
19422
19423
19424
19425
19426
19427 GLU_CFLAGS="${GL_CFLAGS}"
19428
19429 ax_save_CPPFLAGS="${CPPFLAGS}"
19430 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19431 for ac_header in GL/glu.h OpenGL/glu.h
19432 do :
19433 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19434 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19435 if 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
19439
19440 fi
19441
19442 done
19443
19444 CPPFLAGS="${ax_save_CPPFLAGS}"
19445
19446
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; }
19450 if ${ax_cv_check_glu_libglu+:} false; then :
19451 $as_echo_n "(cached) " >&6
19452 else
19453 ax_cv_check_glu_libglu="no"
19454 ax_save_CPPFLAGS="${CPPFLAGS}"
19455 CPPFLAGS="${GL_CFLAGS} ${CPPFLAGS}"
19456 ax_save_LIBS="${LIBS}"
19457
19458 LIBS="${GL_LIBS} ${ax_save_LIBS}"
19459 ac_ext=cpp
19460 ac_cpp='$CXXCPP $CPPFLAGS'
19461 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19464
19465 if test X$ax_compiler_ms = Xyes; then :
19466 ac_ext=c
19467 ac_cpp='$CPP $CPPFLAGS'
19468 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19469 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19470 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19471
19472 fi
19473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19474 /* end confdefs.h. */
19475
19476 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
19477 # include <windows.h>
19478 # endif
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
19486 int
19487 main ()
19488 {
19489 gluBeginCurve(0)
19490 ;
19491 return 0;
19492 }
19493 _ACEOF
19494 if ac_fn_c_try_link "$LINENO"; then :
19495 ax_cv_check_glu_libglu=yes
19496 else
19497 LIBS=""
19498 ax_check_libs="-lglu32 -lGLU"
19499 for 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/'`
19502 else
19503 ax_try_lib="${ax_lib}"
19504 fi
19505 LIBS="${ax_try_lib} ${GL_LIBS} ${ax_save_LIBS}"
19506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19507 /* end confdefs.h. */
19508
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
19519 int
19520 main ()
19521 {
19522 gluBeginCurve(0)
19523 ;
19524 return 0;
19525 }
19526 _ACEOF
19527 if ac_fn_c_try_link "$LINENO"; then :
19528 ax_cv_check_glu_libglu="${ax_try_lib}"; break
19529 fi
19530 rm -f core conftest.err conftest.$ac_objext \
19531 conftest$ac_exeext conftest.$ac_ext
19532 done
19533
19534 fi
19535 rm -f core conftest.err conftest.$ac_objext \
19536 conftest$ac_exeext conftest.$ac_ext
19537 if test X$ax_compiler_ms = Xyes; then :
19538 ac_ext=cpp
19539 ac_cpp='$CXXCPP $CPPFLAGS'
19540 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19541 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19542 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19543
19544 fi
19545 ac_ext=c
19546 ac_cpp='$CPP $CPPFLAGS'
19547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19550
19551
19552 LIBS=${ax_save_LIBS}
19553 CPPFLAGS=${ax_save_CPPFLAGS}
19554 fi
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glu_libglu" >&5
19556 $as_echo "$ax_cv_check_glu_libglu" >&6; }
19557 if test "X$ax_cv_check_glu_libglu" = Xno; then :
19558 no_glu=yes; GLU_CFLAGS=""; GLU_LIBS=""
19559 else
19560 if test "X$ax_cv_check_glu_libglu" = Xyes; then :
19561 GLU_LIBS="$GL_LIBS"
19562 else
19563 GLU_LIBS="${ax_cv_check_glu_libglu} ${GL_LIBS}"
19564 fi
19565 fi
19566
19567
19568
19569 if 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; }
19572 if ${ax_cv_varargs_glu_tesscb+:} false; then :
19573 $as_echo_n "(cached) " >&6
19574 else
19575 ax_cv_varargs_glu_tesscb=no
19576 ax_save_CFLAGS="$CFLAGS"
19577 CFLAGS="$GL_CFLAGS $CFLAGS"
19578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19579 /* end confdefs.h. */
19580
19581 # ifdef HAVE_GL_GLU_H
19582 # include <GL/glu.h>
19583 # else
19584 # include <OpenGL/glu.h>
19585 # endif
19586 int
19587 main ()
19588 {
19589 GLvoid (*func)(...); gluTessCallback(0, 0, func)
19590 ;
19591 return 0;
19592 }
19593 _ACEOF
19594 if ac_fn_c_try_compile "$LINENO"; then :
19595 ax_cv_varargs_glu_tesscb=yes
19596 fi
19597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19598 CFLAGS="$ax_save_CFLAGS"
19599 fi
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_varargs_glu_tesscb" >&5
19601 $as_echo "$ax_cv_varargs_glu_tesscb" >&6; }
19602 if test X$ax_cv_varargs_glu_tesscb = Xyes; then :
19603
19604 $as_echo "#define HAVE_VARARGS_GLU_TESSCB 1" >>confdefs.h
19605
19606 fi
19607 fi
19608
19609
19610
19611 ax_save_CPPFLAGS="${CPPFLAGS}"
19612 CPPFLAGS="${GLU_CFLAGS} ${CPPFLAGS}"
19613 for ac_header in GL/glut.h GLUT/glut.h
19614 do :
19615 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19616 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19617 if 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
19622 fi
19623
19624 done
19625
19626 CPPFLAGS="${ax_save_CPPFLAGS}"
19627
19628 GLUT_CFLAGS=${GLU_CFLAGS}
19629 GLUT_LIBS=${GLU_LIBS}
19630
19631
19632
19633 if test X$no_x != Xyes; then :
19634 GLUT_LIBS="${X_PRE_LIBS} -lXi ${X_EXTRA_LIBS} ${GLUT_LIBS}"
19635 fi
19636
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLUT library" >&5
19638 $as_echo_n "checking for GLUT library... " >&6; }
19639 if ${ax_cv_check_glut_libglut+:} false; then :
19640 $as_echo_n "(cached) " >&6
19641 else
19642 ax_cv_check_glut_libglut="no"
19643 ac_ext=c
19644 ac_cpp='$CPP $CPPFLAGS'
19645 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19646 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19647 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19648
19649 ax_save_CPPFLAGS="${CPPFLAGS}"
19650 CPPFLAGS="${GLUT_CFLAGS} ${CPPFLAGS}"
19651 ax_save_LIBS="${LIBS}"
19652 LIBS=""
19653 ax_check_libs="-lglut32 -lglut"
19654 for 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/'`
19657 else
19658 ax_try_lib="${ax_lib}"
19659 fi
19660 LIBS="${ax_try_lib} ${GLUT_LIBS} ${ax_save_LIBS}"
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h. */
19663
19664 # if HAVE_WINDOWS_H && defined(_WIN32)
19665 # include <windows.h>
19666 # endif
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
19674 int
19675 main ()
19676 {
19677 glutMainLoop()
19678 ;
19679 return 0;
19680 }
19681 _ACEOF
19682 if ac_fn_c_try_link "$LINENO"; then :
19683 ax_cv_check_glut_libglut="${ax_try_lib}"; break
19684 fi
19685 rm -f core conftest.err conftest.$ac_objext \
19686 conftest$ac_exeext conftest.$ac_ext
19687 done
19688
19689 if test "X$ax_cv_check_glut_libglut" = Xno -a "X$no_x" = Xyes; then :
19690 LIBS='-framework GLUT'
19691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19692 /* end confdefs.h. */
19693
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
19704 int
19705 main ()
19706 {
19707 glutMainLoop()
19708 ;
19709 return 0;
19710 }
19711 _ACEOF
19712 if ac_fn_c_try_link "$LINENO"; then :
19713 ax_cv_check_glut_libglut="$LIBS"
19714 fi
19715 rm -f core conftest.err conftest.$ac_objext \
19716 conftest$ac_exeext conftest.$ac_ext
19717 fi
19718
19719 CPPFLAGS="${ax_save_CPPFLAGS}"
19720 LIBS="${ax_save_LIBS}"
19721 ac_ext=c
19722 ac_cpp='$CPP $CPPFLAGS'
19723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19726
19727 fi
19728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_glut_libglut" >&5
19729 $as_echo "$ax_cv_check_glut_libglut" >&6; }
19730
19731 if test "X$ax_cv_check_glut_libglut" = Xno; then :
19732 no_glut="yes"; GLUT_CFLAGS=""; GLUT_LIBS=""
19733 else
19734 GLUT_LIBS="${ax_cv_check_glut_libglut} ${GLUT_LIBS}"
19735 fi
19736
19737
19738
19739
19740
19741 if test "$no_x" != "yes" -a "$no_gl" != "yes" \
19742 -a "$no_glu" != "yes" -a "$no_glut" != "yes" ; then
19743 HAVE_OPENGL=yes
19744 fi
19745
19746 if test "$HAVE_OPENGL" = "yes"; then
19747 HAVE_OPENGL_TRUE=
19748 HAVE_OPENGL_FALSE='#'
19749 else
19750 HAVE_OPENGL_TRUE='#'
19751 HAVE_OPENGL_FALSE=
19752 fi
19753
19754
19755
19756 win32_io_ok=no
19757 case "${host_os}" in
19758 cygwin*)
19759 ;;
19760 *)
19761 if test x"$ac_cv_header_windows_h" = xyes; then
19762 win32_io_ok=yes
19763
19764 $as_echo "#define USE_WIN32_FILEIO 1" >>confdefs.h
19765
19766 fi
19767 ;;
19768 esac
19769 if test "$win32_io_ok" = yes; then
19770 WIN32_IO_TRUE=
19771 WIN32_IO_FALSE='#'
19772 else
19773 WIN32_IO_TRUE='#'
19774 WIN32_IO_FALSE=
19775 fi
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785 # Check whether --enable-strip-chopping was given.
19786 if test "${enable_strip_chopping+set}" = set; then :
19787 enableval=$enable_strip_chopping; HAVE_STRIPCHOP=$enableval
19788 else
19789 HAVE_STRIPCHOP=yes
19790 fi
19791
19792
19793 # Check whether --with-default-strip-size was given.
19794 if test "${with_default_strip_size+set}" = set; then :
19795 withval=$with_default_strip_size;
19796 fi
19797
19798
19799 if test "$HAVE_STRIPCHOP" = "yes" \
19800 -a "x$with_default_strip_size" != "xno"; then
19801
19802 $as_echo "#define STRIPCHOP_DEFAULT TIFF_STRIPCHOP" >>confdefs.h
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
19811 cat >>confdefs.h <<_ACEOF
19812 #define STRIP_SIZE_DEFAULT $with_default_strip_size
19813 _ACEOF
19814
19815
19816 fi
19817
19818
19819 # Check whether --enable-defer-strile-load was given.
19820 if test "${enable_defer_strile_load+set}" = set; then :
19821 enableval=$enable_defer_strile_load; HAVE_DEFER_STRILE_LOAD=$enableval
19822 else
19823 HAVE_DEFER_STRILE_LOAD=no
19824 fi
19825
19826
19827 if test "$HAVE_DEFER_STRILE_LOAD" = "yes" ; then
19828
19829 $as_echo "#define DEFER_STRILE_LOAD 1" >>confdefs.h
19830
19831
19832 fi
19833
19834
19835 # Check whether --enable-chunky-strip-read was given.
19836 if test "${enable_chunky_strip_read+set}" = set; then :
19837 enableval=$enable_chunky_strip_read; HAVE_CHUNKY_STRIP_READ=$enableval
19838 else
19839 HAVE_CHUNKY_STRIP_READ=no
19840 fi
19841
19842
19843 if test "$HAVE_CHUNKY_STRIP_READ" = "yes" ; then
19844
19845 $as_echo "#define CHUNKY_STRIP_READ_SUPPORT 1" >>confdefs.h
19846
19847
19848 fi
19849
19850
19851 $as_echo "#define SUBIFD_SUPPORT 1" >>confdefs.h
19852
19853
19854
19855 # Check whether --enable-extrasample-as-alpha was given.
19856 if test "${enable_extrasample_as_alpha+set}" = set; then :
19857 enableval=$enable_extrasample_as_alpha; HAVE_EXTRASAMPLE_AS_ALPHA=$enableval
19858 else
19859 HAVE_EXTRASAMPLE_AS_ALPHA=yes
19860 fi
19861
19862
19863 if test "$HAVE_EXTRASAMPLE_AS_ALPHA" = "yes" ; then
19864
19865 $as_echo "#define DEFAULT_EXTRASAMPLE_AS_ALPHA 1" >>confdefs.h
19866
19867 fi
19868
19869
19870 # Check whether --enable-check-ycbcr-subsampling was given.
19871 if test "${enable_check_ycbcr_subsampling+set}" = set; then :
19872 enableval=$enable_check_ycbcr_subsampling; CHECK_JPEG_YCBCR_SUBSAMPLING=$enableval
19873 else
19874 CHECK_JPEG_YCBCR_SUBSAMPLING=yes
19875 fi
19876
19877
19878 if test "$CHECK_JPEG_YCBCR_SUBSAMPLING" = "yes" ; then
19879
19880 $as_echo "#define CHECK_JPEG_YCBCR_SUBSAMPLING 1" >>confdefs.h
19881
19882 fi
19883
19884
19885
19886
19887 ac_config_headers="$ac_config_headers libtiff/tif_config.h libtiff/tiffconf.h"
19888
19889
19890 ac_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"
19891
19892 cat >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.
19910 # So, we kill variables containing newlines.
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.
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 #(
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;} ;;
19921 esac
19922 case $ac_var in #(
19923 _ | IFS | as_nl) ;; #(
19924 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19925 *) { eval $ac_var=; unset $ac_var;} ;;
19926 esac ;;
19927 esac
19928 done
19929
19930 (set) 2>&1 |
19931 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19932 *${as_nl}ac_space=\ *)
19933 # `set' does not quote correctly, so add quotes: double-quote
19934 # substitution turns \\\\ into \\, and sed turns \\ into \.
19935 sed -n \
19936 "s/'/'\\\\''/g;
19937 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
19938 ;; #(
19939 *)
19940 # `set' quotes correctly as required by POSIX, so do not add quotes.
19941 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
19942 ;;
19943 esac |
19944 sort
19945 ) |
19946 sed '
19947 /^ac_cv_env_/b end
19948 t clear
19949 :clear
19950 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
19951 t end
19952 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
19953 :end' >>confcache
19954 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
19955 if test -w "$cache_file"; then
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
19971 else
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;}
19974 fi
19975 fi
19976 rm -f confcache
19977
19978 test "x$prefix" = xNONE && prefix=$ac_default_prefix
19979 # Let make expand exec_prefix.
19980 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
19981
19982 DEFS=-DHAVE_CONFIG_H
19983
19984 ac_libobjs=
19985 ac_ltlibobjs=
19986 U=
19987 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
19988 # 1. Remove the extension, and $U if already installed.
19989 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
19990 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
19991 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
19992 # will be set to the directory where LIBOBJS objects are built.
19993 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19994 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
19995 done
19996 LIBOBJS=$ac_libobjs
19997
19998 LTLIBOBJS=$ac_ltlibobjs
19999
20000
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='#'
20012 else
20013 am__EXEEXT_TRUE='#'
20014 am__EXEEXT_FALSE=
20015 fi
20016
20017 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20018 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20019 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20020 fi
20021 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20022 as_fn_error $? "conditional \"AMDEP\" was never defined.
20023 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20024 fi
20025 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20026 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20027 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20028 fi
20029 if 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.
20031 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20032 fi
20033 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20034 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20035 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20036 fi
20037
20038 if test -z "${HAVE_RPATH_TRUE}" && test -z "${HAVE_RPATH_FALSE}"; then
20039 as_fn_error $? "conditional \"HAVE_RPATH\" was never defined.
20040 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20041 fi
20042 if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then
20043 as_fn_error $? "conditional \"HAVE_CXX\" was never defined.
20044 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20045 fi
20046 if test -z "${HAVE_OPENGL_TRUE}" && test -z "${HAVE_OPENGL_FALSE}"; then
20047 as_fn_error $? "conditional \"HAVE_OPENGL\" was never defined.
20048 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20049 fi
20050 if test -z "${WIN32_IO_TRUE}" && test -z "${WIN32_IO_FALSE}"; then
20051 as_fn_error $? "conditional \"WIN32_IO\" was never defined.
20052 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20053 fi
20054
20055 : "${CONFIG_STATUS=./config.status}"
20056 ac_write_fail=0
20057 ac_clean_files_save=$ac_clean_files
20058 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20059 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20060 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20061 as_write_fail=0
20062 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
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
20069 debug=false
20070 ac_cs_recheck=false
20071 ac_cs_silent=false
20072
20073 SHELL=\${CONFIG_SHELL-$SHELL}
20074 export SHELL
20075 _ASEOF
20076 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20077 ## -------------------- ##
20078 ## M4sh Initialization. ##
20079 ## -------------------- ##
20080
20081 # Be more Bourne compatible
20082 DUALCASE=1; export DUALCASE # for MKS sh
20083 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20084 emulate sh
20085 NULLCMD=:
20086 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20087 # is contrary to our usage. Disable this feature.
20088 alias -g '${1+"$@"}'='"$@"'
20089 setopt NO_GLOB_SUBST
20090 else
20091 case `(set -o) 2>/dev/null` in #(
20092 *posix*) :
20093 set -o posix ;; #(
20094 *) :
20095 ;;
20096 esac
20097 fi
20098
20099
20100 as_nl='
20101 '
20102 export as_nl
20103 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20104 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20105 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20106 as_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.
20109 if 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 --'
20113 elif (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'
20116 else
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'
20120 else
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'
20133 fi
20134 export as_echo_body
20135 as_echo='sh -c $as_echo_body as_echo'
20136 fi
20137
20138 # The user is always right.
20139 if 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 }
20145 fi
20146
20147
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.)
20153 IFS=" "" $as_nl"
20154
20155 # Find who we are. Look in the path if we contain no directory separator.
20156 as_myself=
20157 case $0 in #((
20158 *[\\/]* ) as_myself=$0 ;;
20159 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20160 for as_dir in $PATH
20161 do
20162 IFS=$as_save_IFS
20163 test -z "$as_dir" && as_dir=.
20164 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20165 done
20166 IFS=$as_save_IFS
20167
20168 ;;
20169 esac
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.
20172 if test "x$as_myself" = x; then
20173 as_myself=$0
20174 fi
20175 if test ! -f "$as_myself"; then
20176 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20177 exit 1
20178 fi
20179
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.
20184 for as_var in BASH_ENV ENV MAIL MAILPATH
20185 do eval test x\${$as_var+set} = xset \
20186 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20187 done
20188 PS1='$ '
20189 PS2='> '
20190 PS4='+ '
20191
20192 # NLS nuisances.
20193 LC_ALL=C
20194 export LC_ALL
20195 LANGUAGE=C
20196 export 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.
20207 as_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
20213 fi
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.
20222 as_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.
20230 as_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.
20240 as_fn_unset ()
20241 {
20242 { eval $1=; unset $1;}
20243 }
20244 as_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.
20251 if (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 }'
20256 else
20257 as_fn_append ()
20258 {
20259 eval $1=\$$1\$2
20260 }
20261 fi # 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.
20268 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20269 eval 'as_fn_arith ()
20270 {
20271 as_val=$(( $* ))
20272 }'
20273 else
20274 as_fn_arith ()
20275 {
20276 as_val=`expr "$@" || test $? -eq 1`
20277 }
20278 fi # as_fn_arith
20279
20280
20281 if expr a : '\(a\)' >/dev/null 2>&1 &&
20282 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20283 as_expr=expr
20284 else
20285 as_expr=false
20286 fi
20287
20288 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20289 as_basename=basename
20290 else
20291 as_basename=false
20292 fi
20293
20294 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20295 as_dirname=dirname
20296 else
20297 as_dirname=false
20298 fi
20299
20300 as_me=`$as_basename -- "$0" ||
20301 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20302 X"$0" : 'X\(//\)$' \| \
20303 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20304 $as_echo X/"$0" |
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'`
20318
20319 # Avoid depending upon Character Ranges.
20320 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20321 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20322 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20323 as_cr_digits='0123456789'
20324 as_cr_alnum=$as_cr_Letters$as_cr_digits
20325
20326 ECHO_C= ECHO_N= ECHO_T=
20327 case `echo -n x` in #(((((
20328 -n*)
20329 case `echo 'xy\c'` in
20330 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20331 xy) ECHO_C='\c';;
20332 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20333 ECHO_T=' ';;
20334 esac;;
20335 *)
20336 ECHO_N='-n';;
20337 esac
20338
20339 rm -f conf$$ conf$$.exe conf$$.file
20340 if test -d conf$$.dir; then
20341 rm -f conf$$.dir/conf$$.file
20342 else
20343 rm -f conf$$.dir
20344 mkdir conf$$.dir 2>/dev/null
20345 fi
20346 if (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
20360 else
20361 as_ln_s='cp -pR'
20362 fi
20363 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20364 rmdir conf$$.dir 2>/dev/null
20365
20366
20367 # as_fn_mkdir_p
20368 # -------------
20369 # Create "$as_dir" as a directory, including parents if necessary.
20370 as_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
20414 if mkdir -p . 2>/dev/null; then
20415 as_mkdir_p='mkdir -p "$as_dir"'
20416 else
20417 test -d ./-p && rmdir ./-p
20418 as_mkdir_p=false
20419 fi
20420
20421
20422 # as_fn_executable_p FILE
20423 # -----------------------
20424 # Test if FILE is an executable regular file.
20425 as_fn_executable_p ()
20426 {
20427 test -f "$1" && test -x "$1"
20428 } # as_fn_executable_p
20429 as_test_x='test -x'
20430 as_executable_p=as_fn_executable_p
20431
20432 # Sed expression to map a string onto a valid CPP name.
20433 as_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.
20436 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20437
20438
20439 exec 6>&1
20440 ## ----------------------------------- ##
20441 ## Main body of $CONFIG_STATUS script. ##
20442 ## ----------------------------------- ##
20443 _ASEOF
20444 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20445
20446 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20447 # Save the log message, to keep $0 and so on meaningful, and to
20448 # report actual input values of CONFIG_FILES etc. instead of their
20449 # values after options handling.
20450 ac_log="
20451 This file was extended by LibTIFF Software $as_me 4.0.3, which was
20452 generated by GNU Autoconf 2.69. Invocation command line was
20453
20454 CONFIG_FILES = $CONFIG_FILES
20455 CONFIG_HEADERS = $CONFIG_HEADERS
20456 CONFIG_LINKS = $CONFIG_LINKS
20457 CONFIG_COMMANDS = $CONFIG_COMMANDS
20458 $ $0 $@
20459
20460 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20461 "
20462
20463 _ACEOF
20464
20465 case $ac_config_files in *"
20466 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20467 esac
20468
20469 case $ac_config_headers in *"
20470 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20471 esac
20472
20473
20474 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20475 # Files that config.status was made for.
20476 config_files="$ac_config_files"
20477 config_headers="$ac_config_headers"
20478 config_commands="$ac_config_commands"
20479
20480 _ACEOF
20481
20482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20483 ac_cs_usage="\
20484 \`$as_me' instantiates files and other configuration actions
20485 from templates according to the current configuration. Unless the files
20486 and actions are specified as TAGs, all are instantiated by default.
20487
20488 Usage: $0 [OPTION]... [TAG]...
20489
20490 -h, --help print this help, then exit
20491 -V, --version print version number and configuration settings, then exit
20492 --config print configuration, then exit
20493 -q, --quiet, --silent
20494 do not print progress messages
20495 -d, --debug don't remove temporary files
20496 --recheck update $as_me by reconfiguring in the same conditions
20497 --file=FILE[:TEMPLATE]
20498 instantiate the configuration file FILE
20499 --header=FILE[:TEMPLATE]
20500 instantiate the configuration header FILE
20501
20502 Configuration files:
20503 $config_files
20504
20505 Configuration headers:
20506 $config_headers
20507
20508 Configuration commands:
20509 $config_commands
20510
20511 Report bugs to <tiff@lists.maptools.org>."
20512
20513 _ACEOF
20514 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20515 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20516 ac_cs_version="\\
20517 LibTIFF Software config.status 4.0.3
20518 configured by $0, generated by GNU Autoconf 2.69,
20519 with options \\"\$ac_cs_config\\"
20520
20521 Copyright (C) 2012 Free Software Foundation, Inc.
20522 This config.status script is free software; the Free Software Foundation
20523 gives unlimited permission to copy, distribute and modify it."
20524
20525 ac_pwd='$ac_pwd'
20526 srcdir='$srcdir'
20527 INSTALL='$INSTALL'
20528 MKDIR_P='$MKDIR_P'
20529 AWK='$AWK'
20530 test -n "\$AWK" || AWK=awk
20531 _ACEOF
20532
20533 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20534 # The default lists apply if the user does not specify any file.
20535 ac_need_defaults=:
20536 while test $# != 0
20537 do
20538 case $1 in
20539 --*=?*)
20540 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20541 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20542 ac_shift=:
20543 ;;
20544 --*=)
20545 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20546 ac_optarg=
20547 ac_shift=:
20548 ;;
20549 *)
20550 ac_option=$1
20551 ac_optarg=$2
20552 ac_shift=shift
20553 ;;
20554 esac
20555
20556 case $ac_option in
20557 # Handling of the options.
20558 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20559 ac_cs_recheck=: ;;
20560 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20561 $as_echo "$ac_cs_version"; exit ;;
20562 --config | --confi | --conf | --con | --co | --c )
20563 $as_echo "$ac_cs_config"; exit ;;
20564 --debug | --debu | --deb | --de | --d | -d )
20565 debug=: ;;
20566 --file | --fil | --fi | --f )
20567 $ac_shift
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'"
20573 ac_need_defaults=false;;
20574 --header | --heade | --head | --hea )
20575 $ac_shift
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'"
20580 ac_need_defaults=false;;
20581 --he | --h)
20582 # Conflict between --help and --header
20583 as_fn_error $? "ambiguous option: \`$1'
20584 Try \`$0 --help' for more information.";;
20585 --help | --hel | -h )
20586 $as_echo "$ac_cs_usage"; exit ;;
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.
20592 -*) as_fn_error $? "unrecognized option: \`$1'
20593 Try \`$0 --help' for more information." ;;
20594
20595 *) as_fn_append ac_config_targets " $1"
20596 ac_need_defaults=false ;;
20597
20598 esac
20599 shift
20600 done
20601
20602 ac_configure_extra_args=
20603
20604 if $ac_cs_silent; then
20605 exec 6>/dev/null
20606 ac_configure_extra_args="$ac_configure_extra_args --silent"
20607 fi
20608
20609 _ACEOF
20610 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20611 if \$ac_cs_recheck; then
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'
20616 export CONFIG_SHELL
20617 exec "\$@"
20618 fi
20619
20620 _ACEOF
20621 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20622 exec 5>>config.log
20623 {
20624 echo
20625 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20626 ## Running $as_me. ##
20627 _ASBOX
20628 $as_echo "$ac_log"
20629 } >&5
20630
20631 _ACEOF
20632 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20633 #
20634 # INIT-COMMANDS
20635 #
20636 AMDEP_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
20643 sed_quote_subst='$sed_quote_subst'
20644 double_quote_subst='$double_quote_subst'
20645 delay_variable_subst='$delay_variable_subst'
20646 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20647 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20648 AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
20649 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
20650 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20651 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20652 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20653 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20654 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20655 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20656 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20657 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
20658 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20659 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20660 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20661 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20662 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20663 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20664 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20665 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20666 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20667 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20668 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20669 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20670 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20671 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20672 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20673 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20674 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20675 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20676 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20677 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20678 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
20679 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
20680 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20681 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20682 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20683 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20684 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
20685 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
20686 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
20687 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20688 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20689 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
20690 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20691 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20692 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20693 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20694 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20695 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20696 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20697 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20698 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20699 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20700 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20701 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20702 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20703 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
20704 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
20705 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
20706 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20707 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20708 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20709 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20710 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20711 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20712 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20713 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20714 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
20715 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20716 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20717 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20718 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20719 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20720 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20721 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20722 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20723 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20724 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20725 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20726 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20727 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20728 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20729 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20730 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20731 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20732 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20733 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20734 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20735 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20736 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20737 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20738 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20739 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20740 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20741 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20742 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20743 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20744 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20745 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20746 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20747 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20748 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20749 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20750 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20751 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
20752 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20753 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
20754 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
20755 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
20756 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
20757 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
20758 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
20759 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
20760 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
20761 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
20762 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
20763 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
20764 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20765 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20766 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
20767 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
20768 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
20769 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
20770 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
20771 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
20772 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
20773 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
20774 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
20775 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
20776 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
20777 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
20778 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
20779 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
20780 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
20781 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
20782 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
20783 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
20784 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
20785 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20786 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20787 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
20788 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
20789 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
20790 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
20791 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
20792 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
20793 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
20794 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
20795 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
20796 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20797 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20798 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
20799 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20800 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20801 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20802 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20803 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20804 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20805 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
20806 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20807 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
20808 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
20809 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
20810 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
20811 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
20812 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
20813 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
20814 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
20815 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
20816 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
20817 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
20818 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20819 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20820 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
20821 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20822 postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
20823 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
20824 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
20825 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
20826 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20827 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
20828 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
20829 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
20830 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
20831
20832 LTCC='$LTCC'
20833 LTCFLAGS='$LTCFLAGS'
20834 compiler='$compiler_DEFAULT'
20835
20836 # A function that is used when there is no print builtin or printf.
20837 func_fallback_echo ()
20838 {
20839 eval 'cat <<_LTECHO_EOF
20840 \$1
20841 _LTECHO_EOF'
20842 }
20843
20844 # Quote evaled strings.
20845 for var in AS \
20846 DLLTOOL \
20847 OBJDUMP \
20848 SHELL \
20849 ECHO \
20850 PATH_SEPARATOR \
20851 SED \
20852 GREP \
20853 EGREP \
20854 FGREP \
20855 LD \
20856 NM \
20857 LN_S \
20858 lt_SP2NL \
20859 lt_NL2SP \
20860 reload_flag \
20861 deplibs_check_method \
20862 file_magic_cmd \
20863 file_magic_glob \
20864 want_nocaseglob \
20865 sharedlib_from_linklib_cmd \
20866 AR \
20867 AR_FLAGS \
20868 archiver_list_spec \
20869 STRIP \
20870 RANLIB \
20871 CC \
20872 CFLAGS \
20873 compiler \
20874 lt_cv_sys_global_symbol_pipe \
20875 lt_cv_sys_global_symbol_to_cdecl \
20876 lt_cv_sys_global_symbol_to_c_name_address \
20877 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
20878 nm_file_list_spec \
20879 lt_prog_compiler_no_builtin_flag \
20880 lt_prog_compiler_pic \
20881 lt_prog_compiler_wl \
20882 lt_prog_compiler_static \
20883 lt_cv_prog_compiler_c_o \
20884 need_locks \
20885 MANIFEST_TOOL \
20886 DSYMUTIL \
20887 NMEDIT \
20888 LIPO \
20889 OTOOL \
20890 OTOOL64 \
20891 shrext_cmds \
20892 export_dynamic_flag_spec \
20893 whole_archive_flag_spec \
20894 compiler_needs_object \
20895 with_gnu_ld \
20896 allow_undefined_flag \
20897 no_undefined_flag \
20898 hardcode_libdir_flag_spec \
20899 hardcode_libdir_separator \
20900 exclude_expsyms \
20901 include_expsyms \
20902 file_list_spec \
20903 variables_saved_for_relink \
20904 libname_spec \
20905 library_names_spec \
20906 soname_spec \
20907 install_override_mode \
20908 finish_eval \
20909 old_striplib \
20910 striplib \
20911 compiler_lib_search_dirs \
20912 predep_objects \
20913 postdep_objects \
20914 predeps \
20915 postdeps \
20916 compiler_lib_search_path \
20917 LD_CXX \
20918 reload_flag_CXX \
20919 compiler_CXX \
20920 lt_prog_compiler_no_builtin_flag_CXX \
20921 lt_prog_compiler_pic_CXX \
20922 lt_prog_compiler_wl_CXX \
20923 lt_prog_compiler_static_CXX \
20924 lt_cv_prog_compiler_c_o_CXX \
20925 export_dynamic_flag_spec_CXX \
20926 whole_archive_flag_spec_CXX \
20927 compiler_needs_object_CXX \
20928 with_gnu_ld_CXX \
20929 allow_undefined_flag_CXX \
20930 no_undefined_flag_CXX \
20931 hardcode_libdir_flag_spec_CXX \
20932 hardcode_libdir_separator_CXX \
20933 exclude_expsyms_CXX \
20934 include_expsyms_CXX \
20935 file_list_spec_CXX \
20936 compiler_lib_search_dirs_CXX \
20937 predep_objects_CXX \
20938 postdep_objects_CXX \
20939 predeps_CXX \
20940 postdeps_CXX \
20941 compiler_lib_search_path_CXX; do
20942 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20943 *[\\\\\\\`\\"\\\$]*)
20944 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
20945 ;;
20946 *)
20947 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20948 ;;
20949 esac
20950 done
20951
20952 # Double-quote double-evaled strings.
20953 for var in reload_cmds \
20954 old_postinstall_cmds \
20955 old_postuninstall_cmds \
20956 old_archive_cmds \
20957 extract_expsyms_cmds \
20958 old_archive_from_new_cmds \
20959 old_archive_from_expsyms_cmds \
20960 archive_cmds \
20961 archive_expsym_cmds \
20962 module_cmds \
20963 module_expsym_cmds \
20964 export_symbols_cmds \
20965 prelink_cmds \
20966 postlink_cmds \
20967 postinstall_cmds \
20968 postuninstall_cmds \
20969 finish_cmds \
20970 sys_lib_search_path_spec \
20971 sys_lib_dlsearch_path_spec \
20972 reload_cmds_CXX \
20973 old_archive_cmds_CXX \
20974 old_archive_from_new_cmds_CXX \
20975 old_archive_from_expsyms_cmds_CXX \
20976 archive_cmds_CXX \
20977 archive_expsym_cmds_CXX \
20978 module_cmds_CXX \
20979 module_expsym_cmds_CXX \
20980 export_symbols_cmds_CXX \
20981 prelink_cmds_CXX \
20982 postlink_cmds_CXX; do
20983 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
20984 *[\\\\\\\`\\"\\\$]*)
20985 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
20986 ;;
20987 *)
20988 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
20989 ;;
20990 esac
20991 done
20992
20993 ac_aux_dir='$ac_aux_dir'
20994 xsi_shell='$xsi_shell'
20995 lt_shell_append='$lt_shell_append'
20996
20997 # See if we are running on zsh, and set the options which allow our
20998 # commands through without removal of \ escapes INIT.
20999 if test -n "\${ZSH_VERSION+set}" ; then
21000 setopt NO_GLOB_SUBST
21001 fi
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
21017 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21018
21019 # Handling of arguments.
21020 for ac_config_target in $ac_config_targets
21021 do
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" ;;
21028 "build/Makefile") CONFIG_FILES="$CONFIG_FILES build/Makefile" ;;
21029 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;;
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" ;;
21034 "contrib/mfs/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/mfs/Makefile" ;;
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" ;;
21043 "libtiff-4.pc") CONFIG_FILES="$CONFIG_FILES libtiff-4.pc" ;;
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
21050 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21051 esac
21052 done
21053
21054
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.
21059 if $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
21063 fi
21064
21065 # Have a temporary directory for convenience. Make it in the build tree
21066 # simply because there is no reason against having it here, and in addition,
21067 # creating and moving files from /tmp can sometimes cause problems.
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'.
21071 $debug ||
21072 {
21073 tmp= ac_tmp=
21074 trap 'exit_status=$?
21075 : "${ac_tmp:=$tmp}"
21076 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21077 ' 0
21078 trap 'as_fn_exit 1' 1 2 13 15
21079 }
21080 # Create a (secure) tmp directory for tmp files.
21081
21082 {
21083 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21084 test -d "$tmp"
21085 } ||
21086 {
21087 tmp=./conf$$-$RANDOM
21088 (umask 077 && mkdir "$tmp")
21089 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21090 ac_tmp=$tmp
21091
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'.
21095 if test -n "$CONFIG_FILES"; then
21096
21097
21098 ac_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.
21102 if test "x$ac_cr" = x; then
21103 eval ac_cr=\$\'\\r\'
21104 fi
21105 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21106 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21107 ac_cs_awk_cr='\\r'
21108 else
21109 ac_cs_awk_cr=$ac_cr
21110 fi
21111
21112 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21113 _ACEOF
21114
21115
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
21122 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21123 ac_delim='%!_!# '
21124 for ac_last_try in false false false false false :; do
21125 . ./conf$$subs.sh ||
21126 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21127
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
21130 break
21131 elif $ac_last_try; then
21132 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21133 else
21134 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21135 fi
21136 done
21137 rm -f conf$$subs.sh
21138
21139 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21140 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21141 _ACEOF
21142 sed -n '
21143 h
21144 s/^/S["/; s/!.*/"]=/
21145 p
21146 g
21147 s/^[^!]*!//
21148 :repl
21149 t repl
21150 s/'"$ac_delim"'$//
21151 t delim
21152 :nl
21153 h
21154 s/\(.\{148\}\)..*/\1/
21155 t more1
21156 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21157 p
21158 n
21159 b repl
21160 :more1
21161 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21162 p
21163 g
21164 s/.\{148\}//
21165 t nl
21166 :delim
21167 h
21168 s/\(.\{148\}\)..*/\1/
21169 t more2
21170 s/["\\]/\\&/g; s/^/"/; s/$/"/
21171 p
21172 b
21173 :more2
21174 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21175 p
21176 g
21177 s/.\{148\}//
21178 t delim
21179 ' <conf$$subs.awk | sed '
21180 /^[^""]/{
21181 N
21182 s/\n//
21183 }
21184 ' >>$CONFIG_STATUS || ac_write_fail=1
21185 rm -f conf$$subs.awk
21186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21187 _ACAWK
21188 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21189 for (key in S) S_is_set[key] = 1
21190 FS = "\a"
21191
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 }
21212
21213 _ACAWK
21214 _ACEOF
21215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21216 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21217 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21218 else
21219 cat
21220 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21221 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21222 _ACEOF
21223
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
21226 # trailing colons and then remove the whole line if VPATH becomes empty
21227 # (actually we leave an empty line to preserve line numbers).
21228 if test "x$srcdir" = x.; then
21229 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21230 h
21231 s///
21232 s/^/:/
21233 s/[ ]*$/:/
21234 s/:\$(srcdir):/:/g
21235 s/:\${srcdir}:/:/g
21236 s/:@srcdir@:/:/g
21237 s/^:*//
21238 s/:*$//
21239 x
21240 s/\(=[ ]*\).*/\1/
21241 G
21242 s/\n//
21243 s/^[^=]*=[ ]*$//
21244 }'
21245 fi
21246
21247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21248 fi # test -n "$CONFIG_FILES"
21249
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'.
21253 if test -n "$CONFIG_HEADERS"; then
21254 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21255 BEGIN {
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.
21264 ac_delim='%!_!# '
21265 for 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
21274 done
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
21280 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21281 sed -n '
21282 s/.\{148\}/&'"$ac_delim"'/g
21283 t rset
21284 :rset
21285 s/^[ ]*#[ ]*define[ ][ ]*/ /
21286 t def
21287 d
21288 :def
21289 s/\\$//
21290 t bsnl
21291 s/["\\]/\\&/g
21292 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21293 D["\1"]=" \3"/p
21294 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21295 d
21296 :bsnl
21297 s/["\\]/\\&/g
21298 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21299 D["\1"]=" \3\\\\\\n"\\/p
21300 t cont
21301 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21302 t cont
21303 d
21304 :cont
21305 n
21306 s/.\{148\}/&'"$ac_delim"'/g
21307 t clear
21308 :clear
21309 s/\\$//
21310 t bsnlc
21311 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21312 d
21313 :bsnlc
21314 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21315 b cont
21316 ' <confdefs.h | sed '
21317 s/'"$ac_delim"'/"\\\
21318 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21319
21320 cat >>$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
21354 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21355 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21356 fi # test -n "$CONFIG_HEADERS"
21357
21358
21359 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21360 shift
21361 for ac_tag
21362 do
21363 case $ac_tag in
21364 :[FHLC]) ac_mode=$ac_tag; continue;;
21365 esac
21366 case $ac_mode$ac_tag in
21367 :[FHL]*:*);;
21368 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
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
21387 -) ac_f="$ac_tmp/stdin";;
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 ||
21396 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21397 esac
21398 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21399 as_fn_append ac_file_inputs " '$ac_f'"
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. */
21405 configure_input='Generated from '`
21406 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21407 `' by configure.'
21408 if test x"$ac_file" != x-; then
21409 configure_input="$ac_file. $configure_input"
21410 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21411 $as_echo "$as_me: creating $ac_file" >&6;}
21412 fi
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
21420
21421 case $ac_tag in
21422 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21423 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21424 esac
21425 ;;
21426 esac
21427
21428 ac_dir=`$as_dirname -- "$ac_file" ||
21429 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21430 X"$ac_file" : 'X\(//\)[^/]' \| \
21431 X"$ac_file" : 'X\(//\)$' \| \
21432 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21433 $as_echo X"$ac_file" |
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'`
21451 as_dir="$ac_dir"; as_fn_mkdir_p
21452 ac_builddir=.
21453
21454 case "$ac_dir" in
21455 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21456 *)
21457 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21458 # A ".." for each directory in $ac_dir_suffix.
21459 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
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 ;;
21464 esac
21465 ac_abs_top_builddir=$ac_pwd
21466 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21467 # for backward compatibility:
21468 ac_top_builddir=$ac_top_build_prefix
21469
21470 case $srcdir in
21471 .) # We are building in place.
21472 ac_srcdir=.
21473 ac_top_srcdir=$ac_top_builddir_sub
21474 ac_abs_top_srcdir=$ac_pwd ;;
21475 [\\/]* | ?:[\\/]* ) # Absolute name.
21476 ac_srcdir=$srcdir$ac_dir_suffix;
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 ;;
21483 esac
21484 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21485
21486
21487 case $ac_mode in
21488 :F)
21489 #
21490 # CONFIG_FILE
21491 #
21492
21493 case $INSTALL in
21494 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21495 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21496 esac
21497 ac_MKDIR_P=$MKDIR_P
21498 case $MKDIR_P in
21499 [\\/$]* | ?:[\\/]* ) ;;
21500 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21501 esac
21502 _ACEOF
21503
21504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21505 # If the template does not know about datarootdir, expand it.
21506 # FIXME: This hack should be removed a few years after 2.60.
21507 ac_datarootdir_hack=; ac_datarootdir_seen=
21508 ac_sed_dataroot='
21509 /datarootdir/ {
21510 p
21511 q
21512 }
21513 /@datadir@/p
21514 /@docdir@/p
21515 /@infodir@/p
21516 /@localedir@/p
21517 /@mandir@/p'
21518 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21519 *datarootdir*) ac_datarootdir_seen=yes;;
21520 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
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;}
21523 _ACEOF
21524 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
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
21531 s&\\\${datarootdir}&$datarootdir&g' ;;
21532 esac
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?
21538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21539 ac_sed_extra="$ac_vpsub
21540 $extrasub
21541 _ACEOF
21542 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21543 :t
21544 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21545 s|@configure_input@|$ac_sed_conf_input|;t t
21546 s&@top_builddir@&$ac_top_builddir_sub&;t t
21547 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21548 s&@srcdir@&$ac_srcdir&;t t
21549 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21550 s&@top_srcdir@&$ac_top_srcdir&;t t
21551 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21552 s&@builddir@&$ac_builddir&;t t
21553 s&@abs_builddir@&$ac_abs_builddir&;t t
21554 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21555 s&@INSTALL@&$ac_INSTALL&;t t
21556 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21557 $ac_datarootdir_hack
21558 "
21559 eval 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
21561
21562 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
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'
21567 which 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'
21569 which seems to be undefined. Please make sure it is defined" >&2;}
21570
21571 rm -f "$ac_tmp/stdin"
21572 case $ac_file in
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
21577 ;;
21578 :H)
21579 #
21580 # CONFIG_HEADER
21581 #
21582 if test x"$ac_file" != x-; then
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;}
21591 else
21592 rm -f "$ac_file"
21593 mv "$ac_tmp/config.h" "$ac_file" \
21594 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21595 fi
21596 else
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
21600 fi
21601 # Compute "$ac_file"'s index in $config_headers.
21602 _am_arg="$ac_file"
21603 _am_stamp_count=1
21604 for _am_header in $config_headers :; do
21605 case $_am_header in
21606 $_am_arg | $_am_arg:* )
21607 break ;;
21608 * )
21609 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21610 esac
21611 done
21612 echo "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" |
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 ;;
21636
21637 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21638 $as_echo "$as_me: executing $ac_file commands" >&6;}
21639 ;;
21640 esac
21641
21642
21643 case $ac_file$ac_mode in
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" ||
21666 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21667 X"$mf" : 'X\(//\)[^/]' \| \
21668 X"$mf" : 'X\(//\)$' \| \
21669 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21670 $as_echo X"$mf" |
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'`
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" ||
21708 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21709 X"$file" : 'X\(//\)[^/]' \| \
21710 X"$file" : 'X\(//\)$' \| \
21711 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21712 $as_echo X"$file" |
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'`
21730 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21731 # echo "creating $dirpart/$file"
21732 echo '# dummy' > "$dirpart/$file"
21733 done
21734 done
21735 }
21736 ;;
21737 "libtool":C)
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.
21753 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
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 #
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
21761 #
21762 # This file is part of GNU Libtool.
21763 #
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.
21768 #
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.
21773 #
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.
21778 #
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.
21784
21785
21786 # The names of the tagged configurations supported by this script.
21787 available_tags="CXX "
21788
21789 # ### BEGIN LIBTOOL CONFIG
21790
21791 # Which release of libtool.m4 was used?
21792 macro_version=$macro_version
21793 macro_revision=$macro_revision
21794
21795 # Assembler program.
21796 AS=$lt_AS
21797
21798 # DLL creation program.
21799 DLLTOOL=$lt_DLLTOOL
21800
21801 # Object dumper program.
21802 OBJDUMP=$lt_OBJDUMP
21803
21804 # Whether or not to build shared libraries.
21805 build_libtool_libs=$enable_shared
21806
21807 # Whether or not to build static libraries.
21808 build_old_libs=$enable_static
21809
21810 # What type of objects to build.
21811 pic_mode=$pic_mode
21812
21813 # Whether or not to optimize for fast installation.
21814 fast_install=$enable_fast_install
21815
21816 # Shell to use when invoking shell scripts.
21817 SHELL=$lt_SHELL
21818
21819 # An echo program that protects backslashes.
21820 ECHO=$lt_ECHO
21821
21822 # The PATH separator for the build system.
21823 PATH_SEPARATOR=$lt_PATH_SEPARATOR
21824
21825 # The host system.
21826 host_alias=$host_alias
21827 host=$host
21828 host_os=$host_os
21829
21830 # The build system.
21831 build_alias=$build_alias
21832 build=$build
21833 build_os=$build_os
21834
21835 # A sed program that does not truncate output.
21836 SED=$lt_SED
21837
21838 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
21839 Xsed="\$SED -e 1s/^X//"
21840
21841 # A grep program that handles long lines.
21842 GREP=$lt_GREP
21843
21844 # An ERE matcher.
21845 EGREP=$lt_EGREP
21846
21847 # A literal string matcher.
21848 FGREP=$lt_FGREP
21849
21850 # A BSD- or MS-compatible name lister.
21851 NM=$lt_NM
21852
21853 # Whether we need soft or hard links.
21854 LN_S=$lt_LN_S
21855
21856 # What is the maximum length of a command?
21857 max_cmd_len=$max_cmd_len
21858
21859 # Object file suffix (normally "o").
21860 objext=$ac_objext
21861
21862 # Executable file suffix (normally "").
21863 exeext=$exeext
21864
21865 # whether the shell understands "unset".
21866 lt_unset=$lt_unset
21867
21868 # turn spaces into newlines.
21869 SP2NL=$lt_lt_SP2NL
21870
21871 # turn newlines into spaces.
21872 NL2SP=$lt_lt_NL2SP
21873
21874 # convert \$build file names to \$host format.
21875 to_host_file_cmd=$lt_cv_to_host_file_cmd
21876
21877 # convert \$build files to toolchain format.
21878 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
21879
21880 # Method to check whether dependent libraries are shared objects.
21881 deplibs_check_method=$lt_deplibs_check_method
21882
21883 # Command to use when deplibs_check_method = "file_magic".
21884 file_magic_cmd=$lt_file_magic_cmd
21885
21886 # How to find potential files when deplibs_check_method = "file_magic".
21887 file_magic_glob=$lt_file_magic_glob
21888
21889 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
21890 want_nocaseglob=$lt_want_nocaseglob
21891
21892 # Command to associate shared and link libraries.
21893 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
21894
21895 # The archiver.
21896 AR=$lt_AR
21897
21898 # Flags to create an archive.
21899 AR_FLAGS=$lt_AR_FLAGS
21900
21901 # How to feed a file listing to the archiver.
21902 archiver_list_spec=$lt_archiver_list_spec
21903
21904 # A symbol stripping program.
21905 STRIP=$lt_STRIP
21906
21907 # Commands used to install an old-style archive.
21908 RANLIB=$lt_RANLIB
21909 old_postinstall_cmds=$lt_old_postinstall_cmds
21910 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21911
21912 # Whether to use a lock for old archive extraction.
21913 lock_old_archive_extraction=$lock_old_archive_extraction
21914
21915 # A C compiler.
21916 LTCC=$lt_CC
21917
21918 # LTCC compiler flags.
21919 LTCFLAGS=$lt_CFLAGS
21920
21921 # Take the output of nm and produce a listing of raw symbols and C names.
21922 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21923
21924 # Transform the output of nm in a proper C declaration.
21925 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21926
21927 # Transform the output of nm in a C name address pair.
21928 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21929
21930 # Transform the output of nm in a C name address pair when lib prefix is needed.
21931 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
21932
21933 # Specify filename containing input files for \$NM.
21934 nm_file_list_spec=$lt_nm_file_list_spec
21935
21936 # The root where to search for dependent libraries,and in which our libraries should be installed.
21937 lt_sysroot=$lt_sysroot
21938
21939 # The name of the directory that contains temporary libtool files.
21940 objdir=$objdir
21941
21942 # Used to examine libraries when file_magic_cmd begins with "file".
21943 MAGIC_CMD=$MAGIC_CMD
21944
21945 # Must we lock files when doing compilation?
21946 need_locks=$lt_need_locks
21947
21948 # Manifest tool.
21949 MANIFEST_TOOL=$lt_MANIFEST_TOOL
21950
21951 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
21952 DSYMUTIL=$lt_DSYMUTIL
21953
21954 # Tool to change global to local symbols on Mac OS X.
21955 NMEDIT=$lt_NMEDIT
21956
21957 # Tool to manipulate fat objects and archives on Mac OS X.
21958 LIPO=$lt_LIPO
21959
21960 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
21961 OTOOL=$lt_OTOOL
21962
21963 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
21964 OTOOL64=$lt_OTOOL64
21965
21966 # Old archive suffix (normally "a").
21967 libext=$libext
21968
21969 # Shared library suffix (normally ".so").
21970 shrext_cmds=$lt_shrext_cmds
21971
21972 # The commands to extract the exported symbol list from a shared archive.
21973 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21974
21975 # Variables whose values should be saved in libtool wrapper scripts and
21976 # restored at link time.
21977 variables_saved_for_relink=$lt_variables_saved_for_relink
21978
21979 # Do we need the "lib" prefix for modules?
21980 need_lib_prefix=$need_lib_prefix
21981
21982 # Do we need a version for libraries?
21983 need_version=$need_version
21984
21985 # Library versioning type.
21986 version_type=$version_type
21987
21988 # Shared library runtime path variable.
21989 runpath_var=$runpath_var
21990
21991 # Shared library path variable.
21992 shlibpath_var=$shlibpath_var
21993
21994 # Is shlibpath searched before the hard-coded library search path?
21995 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21996
21997 # Format of library name prefix.
21998 libname_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
22002 library_names_spec=$lt_library_names_spec
22003
22004 # The coded name of the library, if different from the real name.
22005 soname_spec=$lt_soname_spec
22006
22007 # Permission mode override for installation of shared libraries.
22008 install_override_mode=$lt_install_override_mode
22009
22010 # Command to use after installation of a shared archive.
22011 postinstall_cmds=$lt_postinstall_cmds
22012
22013 # Command to use after uninstallation of a shared archive.
22014 postuninstall_cmds=$lt_postuninstall_cmds
22015
22016 # Commands used to finish a libtool library installation in a directory.
22017 finish_cmds=$lt_finish_cmds
22018
22019 # As "finish_cmds", except a single script fragment to be evaled but
22020 # not shown.
22021 finish_eval=$lt_finish_eval
22022
22023 # Whether we should hardcode library paths into libraries.
22024 hardcode_into_libs=$hardcode_into_libs
22025
22026 # Compile-time system search path for libraries.
22027 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22028
22029 # Run-time system search path for libraries.
22030 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22031
22032 # Whether dlopen is supported.
22033 dlopen_support=$enable_dlopen
22034
22035 # Whether dlopen of programs is supported.
22036 dlopen_self=$enable_dlopen_self
22037
22038 # Whether dlopen of statically linked programs is supported.
22039 dlopen_self_static=$enable_dlopen_self_static
22040
22041 # Commands to strip libraries.
22042 old_striplib=$lt_old_striplib
22043 striplib=$lt_striplib
22044
22045
22046 # The linker used to build libraries.
22047 LD=$lt_LD
22048
22049 # How to create reloadable object files.
22050 reload_flag=$lt_reload_flag
22051 reload_cmds=$lt_reload_cmds
22052
22053 # Commands used to build an old-style archive.
22054 old_archive_cmds=$lt_old_archive_cmds
22055
22056 # A language specific compiler.
22057 CC=$lt_compiler
22058
22059 # Is the compiler the GNU compiler?
22060 with_gcc=$GCC
22061
22062 # Compiler flag to turn off builtin functions.
22063 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22064
22065 # Additional compiler flags for building library objects.
22066 pic_flag=$lt_lt_prog_compiler_pic
22067
22068 # How to pass a linker flag through the compiler.
22069 wl=$lt_lt_prog_compiler_wl
22070
22071 # Compiler flag to prevent dynamic linking.
22072 link_static_flag=$lt_lt_prog_compiler_static
22073
22074 # Does compiler simultaneously support -c and -o options?
22075 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22076
22077 # Whether or not to add -lc for building shared libraries.
22078 build_libtool_need_lc=$archive_cmds_need_lc
22079
22080 # Whether or not to disallow shared libs when runtime libs are static.
22081 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22082
22083 # Compiler flag to allow reflexive dlopens.
22084 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22085
22086 # Compiler flag to generate shared objects directly from archives.
22087 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22088
22089 # Whether the compiler copes with passing no objects directly.
22090 compiler_needs_object=$lt_compiler_needs_object
22091
22092 # Create an old-style archive from a shared archive.
22093 old_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.
22096 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22097
22098 # Commands used to build a shared archive.
22099 archive_cmds=$lt_archive_cmds
22100 archive_expsym_cmds=$lt_archive_expsym_cmds
22101
22102 # Commands used to build a loadable module if different from building
22103 # a shared archive.
22104 module_cmds=$lt_module_cmds
22105 module_expsym_cmds=$lt_module_expsym_cmds
22106
22107 # Whether we are building with GNU ld or not.
22108 with_gnu_ld=$lt_with_gnu_ld
22109
22110 # Flag that allows shared libraries with undefined symbols to be built.
22111 allow_undefined_flag=$lt_allow_undefined_flag
22112
22113 # Flag that enforces no undefined symbols.
22114 no_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
22118 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22119
22120 # Whether we need a single "-rpath" flag with a separated argument.
22121 hardcode_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.
22125 hardcode_direct=$hardcode_direct
22126
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.
22131 hardcode_direct_absolute=$hardcode_direct_absolute
22132
22133 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22134 # into the resulting binary.
22135 hardcode_minus_L=$hardcode_minus_L
22136
22137 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22138 # into the resulting binary.
22139 hardcode_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.
22144 hardcode_automatic=$hardcode_automatic
22145
22146 # Set to yes if linker adds runtime paths of dependent libraries
22147 # to runtime path list.
22148 inherit_rpath=$inherit_rpath
22149
22150 # Whether libtool must link a program against all its dependency libraries.
22151 link_all_deplibs=$link_all_deplibs
22152
22153 # Set to "yes" if exported symbols are required.
22154 always_export_symbols=$always_export_symbols
22155
22156 # The commands to list exported symbols.
22157 export_symbols_cmds=$lt_export_symbols_cmds
22158
22159 # Symbols that should not be listed in the preloaded symbols.
22160 exclude_expsyms=$lt_exclude_expsyms
22161
22162 # Symbols that must always be exported.
22163 include_expsyms=$lt_include_expsyms
22164
22165 # Commands necessary for linking programs (against libraries) with templates.
22166 prelink_cmds=$lt_prelink_cmds
22167
22168 # Commands necessary for finishing linking programs.
22169 postlink_cmds=$lt_postlink_cmds
22170
22171 # Specify filename containing input files.
22172 file_list_spec=$lt_file_list_spec
22173
22174 # How to hardcode a shared library path into an executable.
22175 hardcode_action=$hardcode_action
22176
22177 # The directories searched by this compiler when creating a shared library.
22178 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22179
22180 # Dependencies to place before and after the objects being linked to
22181 # create a shared library.
22182 predep_objects=$lt_predep_objects
22183 postdep_objects=$lt_postdep_objects
22184 predeps=$lt_predeps
22185 postdeps=$lt_postdeps
22186
22187 # The library search path used internally by the compiler when linking
22188 # a shared library.
22189 compiler_lib_search_path=$lt_compiler_lib_search_path
22190
22191 # ### END LIBTOOL CONFIG
22192
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.
22201 if test "X${COLLECT_NAMES+set}" != Xset; then
22202 COLLECT_NAMES=
22203 export COLLECT_NAMES
22204 fi
22205 _LT_EOF
22206 ;;
22207 esac
22208
22209
22210 ltmain="$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?
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\
22222 func_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")
22231 test 0 -eq $? || _lt_function_replace_fail=:
22232
22233
22234 sed -e '/^func_basename ()$/,/^} # func_basename /c\
22235 func_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")
22241 test 0 -eq $? || _lt_function_replace_fail=:
22242
22243
22244 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
22245 func_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")
22255 test 0 -eq $? || _lt_function_replace_fail=:
22256
22257
22258 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
22259 func_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")
22269 test 0 -eq $? || _lt_function_replace_fail=:
22270
22271
22272 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
22273 func_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")
22280 test 0 -eq $? || _lt_function_replace_fail=:
22281
22282
22283 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
22284 func_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")
22291 test 0 -eq $? || _lt_function_replace_fail=:
22292
22293
22294 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
22295 func_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")
22304 test 0 -eq $? || _lt_function_replace_fail=:
22305
22306
22307 sed -e '/^func_xform ()$/,/^} # func_xform /c\
22308 func_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")
22314 test 0 -eq $? || _lt_function_replace_fail=:
22315
22316
22317 sed -e '/^func_arith ()$/,/^} # func_arith /c\
22318 func_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")
22324 test 0 -eq $? || _lt_function_replace_fail=:
22325
22326
22327 sed -e '/^func_len ()$/,/^} # func_len /c\
22328 func_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")
22334 test 0 -eq $? || _lt_function_replace_fail=:
22335
22336 fi
22337
22338 if test x"$lt_shell_append" = xyes; then
22339 sed -e '/^func_append ()$/,/^} # func_append /c\
22340 func_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")
22346 test 0 -eq $? || _lt_function_replace_fail=:
22347
22348
22349 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
22350 func_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")
22357 test 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=:
22365 else
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=:
22371 fi
22372
22373 if 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;}
22376 fi
22377
22378
22379 mv -f "$cfgfile" "$ofile" ||
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.
22389 LD=$lt_LD_CXX
22390
22391 # How to create reloadable object files.
22392 reload_flag=$lt_reload_flag_CXX
22393 reload_cmds=$lt_reload_cmds_CXX
22394
22395 # Commands used to build an old-style archive.
22396 old_archive_cmds=$lt_old_archive_cmds_CXX
22397
22398 # A language specific compiler.
22399 CC=$lt_compiler_CXX
22400
22401 # Is the compiler the GNU compiler?
22402 with_gcc=$GCC_CXX
22403
22404 # Compiler flag to turn off builtin functions.
22405 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22406
22407 # Additional compiler flags for building library objects.
22408 pic_flag=$lt_lt_prog_compiler_pic_CXX
22409
22410 # How to pass a linker flag through the compiler.
22411 wl=$lt_lt_prog_compiler_wl_CXX
22412
22413 # Compiler flag to prevent dynamic linking.
22414 link_static_flag=$lt_lt_prog_compiler_static_CXX
22415
22416 # Does compiler simultaneously support -c and -o options?
22417 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22418
22419 # Whether or not to add -lc for building shared libraries.
22420 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22421
22422 # Whether or not to disallow shared libs when runtime libs are static.
22423 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22424
22425 # Compiler flag to allow reflexive dlopens.
22426 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22427
22428 # Compiler flag to generate shared objects directly from archives.
22429 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22430
22431 # Whether the compiler copes with passing no objects directly.
22432 compiler_needs_object=$lt_compiler_needs_object_CXX
22433
22434 # Create an old-style archive from a shared archive.
22435 old_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.
22438 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22439
22440 # Commands used to build a shared archive.
22441 archive_cmds=$lt_archive_cmds_CXX
22442 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22443
22444 # Commands used to build a loadable module if different from building
22445 # a shared archive.
22446 module_cmds=$lt_module_cmds_CXX
22447 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22448
22449 # Whether we are building with GNU ld or not.
22450 with_gnu_ld=$lt_with_gnu_ld_CXX
22451
22452 # Flag that allows shared libraries with undefined symbols to be built.
22453 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22454
22455 # Flag that enforces no undefined symbols.
22456 no_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
22460 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22461
22462 # Whether we need a single "-rpath" flag with a separated argument.
22463 hardcode_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.
22467 hardcode_direct=$hardcode_direct_CXX
22468
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.
22473 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22474
22475 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22476 # into the resulting binary.
22477 hardcode_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.
22481 hardcode_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.
22486 hardcode_automatic=$hardcode_automatic_CXX
22487
22488 # Set to yes if linker adds runtime paths of dependent libraries
22489 # to runtime path list.
22490 inherit_rpath=$inherit_rpath_CXX
22491
22492 # Whether libtool must link a program against all its dependency libraries.
22493 link_all_deplibs=$link_all_deplibs_CXX
22494
22495 # Set to "yes" if exported symbols are required.
22496 always_export_symbols=$always_export_symbols_CXX
22497
22498 # The commands to list exported symbols.
22499 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22500
22501 # Symbols that should not be listed in the preloaded symbols.
22502 exclude_expsyms=$lt_exclude_expsyms_CXX
22503
22504 # Symbols that must always be exported.
22505 include_expsyms=$lt_include_expsyms_CXX
22506
22507 # Commands necessary for linking programs (against libraries) with templates.
22508 prelink_cmds=$lt_prelink_cmds_CXX
22509
22510 # Commands necessary for finishing linking programs.
22511 postlink_cmds=$lt_postlink_cmds_CXX
22512
22513 # Specify filename containing input files.
22514 file_list_spec=$lt_file_list_spec_CXX
22515
22516 # How to hardcode a shared library path into an executable.
22517 hardcode_action=$hardcode_action_CXX
22518
22519 # The directories searched by this compiler when creating a shared library.
22520 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22521
22522 # Dependencies to place before and after the objects being linked to
22523 # create a shared library.
22524 predep_objects=$lt_predep_objects_CXX
22525 postdep_objects=$lt_postdep_objects_CXX
22526 predeps=$lt_predeps_CXX
22527 postdeps=$lt_postdeps_CXX
22528
22529 # The library search path used internally by the compiler when linking
22530 # a shared library.
22531 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22532
22533 # ### END LIBTOOL TAG CONFIG: CXX
22534 _LT_EOF
22535
22536 ;;
22537
22538 esac
22539 done # for ac_tag
22540
22541
22542 as_fn_exit 0
22543 _ACEOF
22544 ac_clean_files=$ac_clean_files_save
22545
22546 test $ac_write_fail = 0 ||
22547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22548
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.
22558 if 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.
22568 $ac_cs_success || as_fn_exit 1
22569 fi
22570 if 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;}
22573 fi
22574
22575
22576
22577 echo ""
22578 echo "Libtiff is now configured for ${host}"
22579 echo ""
22580 echo " Installation directory: ${prefix}"
22581 echo " Documentation directory: ${LIBTIFF_DOCDIR}"
22582 echo " C compiler: ${CC} ${CFLAGS}"
22583 echo " C++ compiler: ${CXX} ${CXXFLAGS}"
22584 echo " Enable runtime linker paths: ${HAVE_RPATH}"
22585 echo " Enable linker symbol versioning: ${have_ld_version_script}"
22586 echo " Support Microsoft Document Imaging: ${HAVE_MDI}"
22587 echo " Use win32 IO: ${win32_io_ok}"
22588 echo ""
22589 echo " Support for internal codecs:"
22590 echo " CCITT Group 3 & 4 algorithms: ${HAVE_CCITT}"
22591 echo " Macintosh PackBits algorithm: ${HAVE_PACKBITS}"
22592 echo " LZW algorithm: ${HAVE_LZW}"
22593 echo " ThunderScan 4-bit RLE algorithm: ${HAVE_THUNDER}"
22594 echo " NeXT 2-bit RLE algorithm: ${HAVE_NEXT}"
22595 echo " LogLuv high dynamic range encoding: ${HAVE_LOGLUV}"
22596 echo ""
22597 echo " Support for external codecs:"
22598 echo " ZLIB support: ${HAVE_ZLIB}"
22599 echo " Pixar log-format algorithm: ${HAVE_PIXARLOG}"
22600 echo " JPEG support: ${HAVE_JPEG}"
22601 echo " Old JPEG support: ${HAVE_OJPEG}"
22602 echo " JPEG 8/12 bit dual mode: ${HAVE_JPEG12}"
22603 echo " ISO JBIG support: ${HAVE_JBIG}"
22604 echo " LZMA2 support: ${HAVE_LZMA}"
22605 echo ""
22606 echo " C++ support: ${HAVE_CXX}"
22607 echo ""
22608 echo " OpenGL support: ${HAVE_OPENGL}"
22609 echo ""
22610